~ubuntu-branches/debian/jessie/make-dfsg/jessie

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Manoj Srivastava
  • Date: 2010-03-21 12:42:55 UTC
  • Revision ID: james.westby@ubuntu.com-20100321124255-ukc2euswom49jf2z
Tags: 3.81-8
* New bug fixing release.
* [a6f53b8]: [topic--overlap-strcpy-fix]: make corrupts commands with
  latest eglibc make uses strcpy() on overlapping strings, recent
  (e)glibc doesn't tolerate this. strcpy is not defined to work on
  overlapping regions. This is upstream bug
  https://savannah.gnu.org/bugs/index.php?29253 The fix comes thanks
  to Roderich Schupp and Max Bowsher.
  Bug fix: "make corrupts commands with latest eglibc (strcpy of
  overlapping strings)", thanks to Roderich Schupp    (Closes: #568665).
* Bug fix: "make package built from source missing libc6 dependency",
  thanks to Daniel Schepler                           (Closes: #569924).
* Bug fix: "Please build-depend on autopoint", thanks to Santiago Vila
                                                       (Closes: #572474).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
2
# From configure.in Id: configure.in,v 1.142 2006/04/01 06:36:40 psmith Exp .
3
3
# Guess values for system-dependent variables and create Makefiles.
4
 
# Generated by GNU Autoconf 2.59 for GNU make 3.81.
 
4
# Generated by GNU Autoconf 2.65 for GNU make 3.81.
5
5
#
6
6
# Report bugs to <bug-make@gnu.org>.
7
7
#
8
 
# Copyright (C) 2003 Free Software Foundation, Inc.
 
8
#
 
9
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
 
10
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
 
11
# Inc.
 
12
#
 
13
#
9
14
# This configure script is free software; the Free Software Foundation
10
15
# gives unlimited permission to copy, distribute and modify it.
11
 
## --------------------- ##
12
 
## M4sh Initialization.  ##
13
 
## --------------------- ##
 
16
## -------------------- ##
 
17
## M4sh Initialization. ##
 
18
## -------------------- ##
14
19
 
15
 
# Be Bourne compatible
16
 
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
20
# Be more Bourne compatible
 
21
DUALCASE=1; export DUALCASE # for MKS sh
 
22
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17
23
  emulate sh
18
24
  NULLCMD=:
19
 
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
25
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20
26
  # is contrary to our usage.  Disable this feature.
21
27
  alias -g '${1+"$@"}'='"$@"'
22
 
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23
 
  set -o posix
24
 
fi
25
 
DUALCASE=1; export DUALCASE # for MKS sh
26
 
 
27
 
# Support unset when possible.
28
 
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29
 
  as_unset=unset
30
 
else
31
 
  as_unset=false
32
 
fi
33
 
 
34
 
 
35
 
# Work around bugs in pre-3.0 UWIN ksh.
36
 
$as_unset ENV MAIL MAILPATH
 
28
  setopt NO_GLOB_SUBST
 
29
else
 
30
  case `(set -o) 2>/dev/null` in #(
 
31
  *posix*) :
 
32
    set -o posix ;; #(
 
33
  *) :
 
34
     ;;
 
35
esac
 
36
fi
 
37
 
 
38
 
 
39
as_nl='
 
40
'
 
41
export as_nl
 
42
# Printing a long string crashes Solaris 7 /usr/bin/printf.
 
43
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
44
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
 
45
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
 
46
# Prefer a ksh shell builtin over an external printf program on Solaris,
 
47
# but without wasting forks for bash or zsh.
 
48
if test -z "$BASH_VERSION$ZSH_VERSION" \
 
49
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
 
50
  as_echo='print -r --'
 
51
  as_echo_n='print -rn --'
 
52
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
 
53
  as_echo='printf %s\n'
 
54
  as_echo_n='printf %s'
 
55
else
 
56
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
 
57
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
 
58
    as_echo_n='/usr/ucb/echo -n'
 
59
  else
 
60
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
 
61
    as_echo_n_body='eval
 
62
      arg=$1;
 
63
      case $arg in #(
 
64
      *"$as_nl"*)
 
65
        expr "X$arg" : "X\\(.*\\)$as_nl";
 
66
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
 
67
      esac;
 
68
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
 
69
    '
 
70
    export as_echo_n_body
 
71
    as_echo_n='sh -c $as_echo_n_body as_echo'
 
72
  fi
 
73
  export as_echo_body
 
74
  as_echo='sh -c $as_echo_body as_echo'
 
75
fi
 
76
 
 
77
# The user is always right.
 
78
if test "${PATH_SEPARATOR+set}" != set; then
 
79
  PATH_SEPARATOR=:
 
80
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
 
81
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
 
82
      PATH_SEPARATOR=';'
 
83
  }
 
84
fi
 
85
 
 
86
 
 
87
# IFS
 
88
# We need space, tab and new line, in precisely that order.  Quoting is
 
89
# there to prevent editors from complaining about space-tab.
 
90
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
91
# splitting by setting IFS to empty value.)
 
92
IFS=" ""        $as_nl"
 
93
 
 
94
# Find who we are.  Look in the path if we contain no directory separator.
 
95
case $0 in #((
 
96
  *[\\/]* ) as_myself=$0 ;;
 
97
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
98
for as_dir in $PATH
 
99
do
 
100
  IFS=$as_save_IFS
 
101
  test -z "$as_dir" && as_dir=.
 
102
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
103
  done
 
104
IFS=$as_save_IFS
 
105
 
 
106
     ;;
 
107
esac
 
108
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
109
# in which case we are not to be found in the path.
 
110
if test "x$as_myself" = x; then
 
111
  as_myself=$0
 
112
fi
 
113
if test ! -f "$as_myself"; then
 
114
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
115
  exit 1
 
116
fi
 
117
 
 
118
# Unset variables that we do not need and which cause bugs (e.g. in
 
119
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
 
120
# suppresses any "Segmentation fault" message there.  '((' could
 
121
# trigger a bug in pdksh 5.2.14.
 
122
for as_var in BASH_ENV ENV MAIL MAILPATH
 
123
do eval test x\${$as_var+set} = xset \
 
124
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
 
125
done
37
126
PS1='$ '
38
127
PS2='> '
39
128
PS4='+ '
40
129
 
41
130
# NLS nuisances.
42
 
for as_var in \
43
 
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44
 
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45
 
  LC_TELEPHONE LC_TIME
 
131
LC_ALL=C
 
132
export LC_ALL
 
133
LANGUAGE=C
 
134
export LANGUAGE
 
135
 
 
136
# CDPATH.
 
137
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
138
 
 
139
if test "x$CONFIG_SHELL" = x; then
 
140
  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
 
141
  emulate sh
 
142
  NULLCMD=:
 
143
  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
 
144
  # is contrary to our usage.  Disable this feature.
 
145
  alias -g '\${1+\"\$@\"}'='\"\$@\"'
 
146
  setopt NO_GLOB_SUBST
 
147
else
 
148
  case \`(set -o) 2>/dev/null\` in #(
 
149
  *posix*) :
 
150
    set -o posix ;; #(
 
151
  *) :
 
152
     ;;
 
153
esac
 
154
fi
 
155
"
 
156
  as_required="as_fn_return () { (exit \$1); }
 
157
as_fn_success () { as_fn_return 0; }
 
158
as_fn_failure () { as_fn_return 1; }
 
159
as_fn_ret_success () { return 0; }
 
160
as_fn_ret_failure () { return 1; }
 
161
 
 
162
exitcode=0
 
163
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
 
164
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
 
165
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
 
166
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
 
167
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
 
168
 
 
169
else
 
170
  exitcode=1; echo positional parameters were not saved.
 
171
fi
 
172
test x\$exitcode = x0 || exit 1"
 
173
  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
 
174
  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
 
175
  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
 
176
  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
 
177
test \$(( 1 + 1 )) = 2 || exit 1"
 
178
  if (eval "$as_required") 2>/dev/null; then :
 
179
  as_have_required=yes
 
180
else
 
181
  as_have_required=no
 
182
fi
 
183
  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
 
184
 
 
185
else
 
186
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
187
as_found=false
 
188
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
46
189
do
47
 
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
48
 
    eval $as_var=C; export $as_var
 
190
  IFS=$as_save_IFS
 
191
  test -z "$as_dir" && as_dir=.
 
192
  as_found=:
 
193
  case $as_dir in #(
 
194
         /*)
 
195
           for as_base in sh bash ksh sh5; do
 
196
             # Try only shells that exist, to save several forks.
 
197
             as_shell=$as_dir/$as_base
 
198
             if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
 
199
                    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
 
200
  CONFIG_SHELL=$as_shell as_have_required=yes
 
201
                   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
 
202
  break 2
 
203
fi
 
204
fi
 
205
           done;;
 
206
       esac
 
207
  as_found=false
 
208
done
 
209
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
 
210
              { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
 
211
  CONFIG_SHELL=$SHELL as_have_required=yes
 
212
fi; }
 
213
IFS=$as_save_IFS
 
214
 
 
215
 
 
216
      if test "x$CONFIG_SHELL" != x; then :
 
217
  # We cannot yet assume a decent shell, so we have to provide a
 
218
        # neutralization value for shells without unset; and this also
 
219
        # works around shells that cannot unset nonexistent variables.
 
220
        BASH_ENV=/dev/null
 
221
        ENV=/dev/null
 
222
        (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
 
223
        export CONFIG_SHELL
 
224
        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
 
225
fi
 
226
 
 
227
    if test x$as_have_required = xno; then :
 
228
  $as_echo "$0: This script requires a shell more modern than all"
 
229
  $as_echo "$0: the shells that I found on your system."
 
230
  if test x${ZSH_VERSION+set} = xset ; then
 
231
    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
 
232
    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
49
233
  else
50
 
    $as_unset $as_var
51
 
  fi
52
 
done
53
 
 
54
 
# Required to use basename.
55
 
if expr a : '\(a\)' >/dev/null 2>&1; then
 
234
    $as_echo "$0: Please tell bug-autoconf@gnu.org and bug-make@gnu.org
 
235
$0: about your system, including any error possibly output
 
236
$0: before this message. Then install a modern shell, or
 
237
$0: manually run the script under such a shell if you do
 
238
$0: have one."
 
239
  fi
 
240
  exit 1
 
241
fi
 
242
fi
 
243
fi
 
244
SHELL=${CONFIG_SHELL-/bin/sh}
 
245
export SHELL
 
246
# Unset more variables known to interfere with behavior of common tools.
 
247
CLICOLOR_FORCE= GREP_OPTIONS=
 
248
unset CLICOLOR_FORCE GREP_OPTIONS
 
249
 
 
250
## --------------------- ##
 
251
## M4sh Shell Functions. ##
 
252
## --------------------- ##
 
253
# as_fn_unset VAR
 
254
# ---------------
 
255
# Portably unset VAR.
 
256
as_fn_unset ()
 
257
{
 
258
  { eval $1=; unset $1;}
 
259
}
 
260
as_unset=as_fn_unset
 
261
 
 
262
# as_fn_set_status STATUS
 
263
# -----------------------
 
264
# Set $? to STATUS, without forking.
 
265
as_fn_set_status ()
 
266
{
 
267
  return $1
 
268
} # as_fn_set_status
 
269
 
 
270
# as_fn_exit STATUS
 
271
# -----------------
 
272
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
 
273
as_fn_exit ()
 
274
{
 
275
  set +e
 
276
  as_fn_set_status $1
 
277
  exit $1
 
278
} # as_fn_exit
 
279
 
 
280
# as_fn_mkdir_p
 
281
# -------------
 
282
# Create "$as_dir" as a directory, including parents if necessary.
 
283
as_fn_mkdir_p ()
 
284
{
 
285
 
 
286
  case $as_dir in #(
 
287
  -*) as_dir=./$as_dir;;
 
288
  esac
 
289
  test -d "$as_dir" || eval $as_mkdir_p || {
 
290
    as_dirs=
 
291
    while :; do
 
292
      case $as_dir in #(
 
293
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 
294
      *) as_qdir=$as_dir;;
 
295
      esac
 
296
      as_dirs="'$as_qdir' $as_dirs"
 
297
      as_dir=`$as_dirname -- "$as_dir" ||
 
298
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
299
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
300
         X"$as_dir" : 'X\(//\)$' \| \
 
301
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
302
$as_echo X"$as_dir" |
 
303
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
304
            s//\1/
 
305
            q
 
306
          }
 
307
          /^X\(\/\/\)[^/].*/{
 
308
            s//\1/
 
309
            q
 
310
          }
 
311
          /^X\(\/\/\)$/{
 
312
            s//\1/
 
313
            q
 
314
          }
 
315
          /^X\(\/\).*/{
 
316
            s//\1/
 
317
            q
 
318
          }
 
319
          s/.*/./; q'`
 
320
      test -d "$as_dir" && break
 
321
    done
 
322
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
323
  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
 
324
 
 
325
 
 
326
} # as_fn_mkdir_p
 
327
# as_fn_append VAR VALUE
 
328
# ----------------------
 
329
# Append the text in VALUE to the end of the definition contained in VAR. Take
 
330
# advantage of any shell optimizations that allow amortized linear growth over
 
331
# repeated appends, instead of the typical quadratic growth present in naive
 
332
# implementations.
 
333
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
 
334
  eval 'as_fn_append ()
 
335
  {
 
336
    eval $1+=\$2
 
337
  }'
 
338
else
 
339
  as_fn_append ()
 
340
  {
 
341
    eval $1=\$$1\$2
 
342
  }
 
343
fi # as_fn_append
 
344
 
 
345
# as_fn_arith ARG...
 
346
# ------------------
 
347
# Perform arithmetic evaluation on the ARGs, and store the result in the
 
348
# global $as_val. Take advantage of shells that can avoid forks. The arguments
 
349
# must be portable across $(()) and expr.
 
350
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
 
351
  eval 'as_fn_arith ()
 
352
  {
 
353
    as_val=$(( $* ))
 
354
  }'
 
355
else
 
356
  as_fn_arith ()
 
357
  {
 
358
    as_val=`expr "$@" || test $? -eq 1`
 
359
  }
 
360
fi # as_fn_arith
 
361
 
 
362
 
 
363
# as_fn_error ERROR [LINENO LOG_FD]
 
364
# ---------------------------------
 
365
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
 
366
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
 
367
# script with status $?, using 1 if that was 0.
 
368
as_fn_error ()
 
369
{
 
370
  as_status=$?; test $as_status -eq 0 && as_status=1
 
371
  if test "$3"; then
 
372
    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
373
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
 
374
  fi
 
375
  $as_echo "$as_me: error: $1" >&2
 
376
  as_fn_exit $as_status
 
377
} # as_fn_error
 
378
 
 
379
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
380
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
56
381
  as_expr=expr
57
382
else
58
383
  as_expr=false
59
384
fi
60
385
 
61
 
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
386
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
62
387
  as_basename=basename
63
388
else
64
389
  as_basename=false
65
390
fi
66
391
 
 
392
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
393
  as_dirname=dirname
 
394
else
 
395
  as_dirname=false
 
396
fi
67
397
 
68
 
# Name of the executable.
69
 
as_me=`$as_basename "$0" ||
 
398
as_me=`$as_basename -- "$0" ||
70
399
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71
400
         X"$0" : 'X\(//\)$' \| \
72
 
         X"$0" : 'X\(/\)$' \| \
73
 
         .     : '\(.\)' 2>/dev/null ||
74
 
echo X/"$0" |
75
 
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76
 
          /^X\/\(\/\/\)$/{ s//\1/; q; }
77
 
          /^X\/\(\/\).*/{ s//\1/; q; }
78
 
          s/.*/./; q'`
79
 
 
80
 
 
81
 
# PATH needs CR, and LINENO needs CR and PATH.
 
401
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
402
$as_echo X/"$0" |
 
403
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
404
            s//\1/
 
405
            q
 
406
          }
 
407
          /^X\/\(\/\/\)$/{
 
408
            s//\1/
 
409
            q
 
410
          }
 
411
          /^X\/\(\/\).*/{
 
412
            s//\1/
 
413
            q
 
414
          }
 
415
          s/.*/./; q'`
 
416
 
82
417
# Avoid depending upon Character Ranges.
83
418
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
84
419
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
86
421
as_cr_digits='0123456789'
87
422
as_cr_alnum=$as_cr_Letters$as_cr_digits
88
423
 
89
 
# The user is always right.
90
 
if test "${PATH_SEPARATOR+set}" != set; then
91
 
  echo "#! /bin/sh" >conf$$.sh
92
 
  echo  "exit 0"   >>conf$$.sh
93
 
  chmod +x conf$$.sh
94
 
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
95
 
    PATH_SEPARATOR=';'
96
 
  else
97
 
    PATH_SEPARATOR=:
98
 
  fi
99
 
  rm -f conf$$.sh
100
 
fi
101
 
 
102
 
 
103
 
  as_lineno_1=$LINENO
104
 
  as_lineno_2=$LINENO
105
 
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
106
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
107
 
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
108
 
  # Find who we are.  Look in the path if we contain no path at all
109
 
  # relative or not.
110
 
  case $0 in
111
 
    *[\\/]* ) as_myself=$0 ;;
112
 
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113
 
for as_dir in $PATH
114
 
do
115
 
  IFS=$as_save_IFS
116
 
  test -z "$as_dir" && as_dir=.
117
 
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
118
 
done
119
 
 
120
 
       ;;
121
 
  esac
122
 
  # We did not find ourselves, most probably we were run as `sh COMMAND'
123
 
  # in which case we are not to be found in the path.
124
 
  if test "x$as_myself" = x; then
125
 
    as_myself=$0
126
 
  fi
127
 
  if test ! -f "$as_myself"; then
128
 
    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129
 
   { (exit 1); exit 1; }; }
130
 
  fi
131
 
  case $CONFIG_SHELL in
132
 
  '')
133
 
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134
 
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135
 
do
136
 
  IFS=$as_save_IFS
137
 
  test -z "$as_dir" && as_dir=.
138
 
  for as_base in sh bash ksh sh5; do
139
 
         case $as_dir in
140
 
         /*)
141
 
           if ("$as_dir/$as_base" -c '
142
 
  as_lineno_1=$LINENO
143
 
  as_lineno_2=$LINENO
144
 
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
146
 
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
147
 
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
148
 
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
149
 
             CONFIG_SHELL=$as_dir/$as_base
150
 
             export CONFIG_SHELL
151
 
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
152
 
           fi;;
153
 
         esac
154
 
       done
155
 
done
156
 
;;
157
 
  esac
158
 
 
159
 
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160
 
  # uniformly replaced by the line number.  The first 'sed' inserts a
161
 
  # line-number line before each line; the second 'sed' does the real
162
 
  # work.  The second script uses 'N' to pair each line-number line
163
 
  # with the numbered line, and appends trailing '-' during
164
 
  # substitution so that $LINENO is not a special case at line end.
165
 
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166
 
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
167
 
  sed '=' <$as_myself |
 
424
 
 
425
  as_lineno_1=$LINENO as_lineno_1a=$LINENO
 
426
  as_lineno_2=$LINENO as_lineno_2a=$LINENO
 
427
  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
 
428
  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
 
429
  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
 
430
  sed -n '
 
431
    p
 
432
    /[$]LINENO/=
 
433
  ' <$as_myself |
168
434
    sed '
 
435
      s/[$]LINENO.*/&-/
 
436
      t lineno
 
437
      b
 
438
      :lineno
169
439
      N
170
 
      s,$,-,
171
 
      : loop
172
 
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
440
      :loop
 
441
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
173
442
      t loop
174
 
      s,-$,,
175
 
      s,^['$as_cr_digits']*\n,,
 
443
      s/-\n.*//
176
444
    ' >$as_me.lineno &&
177
 
  chmod +x $as_me.lineno ||
178
 
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179
 
   { (exit 1); exit 1; }; }
 
445
  chmod +x "$as_me.lineno" ||
 
446
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
180
447
 
181
448
  # Don't try to exec as it changes $[0], causing all sort of problems
182
449
  # (the dirname of $[0] is not the place where we might find the
183
 
  # original and so on.  Autoconf is especially sensible to this).
184
 
  . ./$as_me.lineno
 
450
  # original and so on.  Autoconf is especially sensitive to this).
 
451
  . "./$as_me.lineno"
185
452
  # Exit status is that of the last command.
186
453
  exit
187
454
}
188
455
 
189
 
 
190
 
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191
 
  *c*,-n*) ECHO_N= ECHO_C='
192
 
' ECHO_T='      ' ;;
193
 
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
194
 
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
456
ECHO_C= ECHO_N= ECHO_T=
 
457
case `echo -n x` in #(((((
 
458
-n*)
 
459
  case `echo 'xy\c'` in
 
460
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
461
  xy)  ECHO_C='\c';;
 
462
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
 
463
       ECHO_T=' ';;
 
464
  esac;;
 
465
*)
 
466
  ECHO_N='-n';;
195
467
esac
196
468
 
197
 
if expr a : '\(a\)' >/dev/null 2>&1; then
198
 
  as_expr=expr
 
469
rm -f conf$$ conf$$.exe conf$$.file
 
470
if test -d conf$$.dir; then
 
471
  rm -f conf$$.dir/conf$$.file
199
472
else
200
 
  as_expr=false
 
473
  rm -f conf$$.dir
 
474
  mkdir conf$$.dir 2>/dev/null
201
475
fi
202
 
 
203
 
rm -f conf$$ conf$$.exe conf$$.file
204
 
echo >conf$$.file
205
 
if ln -s conf$$.file conf$$ 2>/dev/null; then
206
 
  # We could just check for DJGPP; but this test a) works b) is more generic
207
 
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208
 
  if test -f conf$$.exe; then
209
 
    # Don't use ln at all; we don't have any links
 
476
if (echo >conf$$.file) 2>/dev/null; then
 
477
  if ln -s conf$$.file conf$$ 2>/dev/null; then
 
478
    as_ln_s='ln -s'
 
479
    # ... but there are two gotchas:
 
480
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
481
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
482
    # In both cases, we have to default to `cp -p'.
 
483
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
484
      as_ln_s='cp -p'
 
485
  elif ln conf$$.file conf$$ 2>/dev/null; then
 
486
    as_ln_s=ln
 
487
  else
210
488
    as_ln_s='cp -p'
211
 
  else
212
 
    as_ln_s='ln -s'
213
489
  fi
214
 
elif ln conf$$.file conf$$ 2>/dev/null; then
215
 
  as_ln_s=ln
216
490
else
217
491
  as_ln_s='cp -p'
218
492
fi
219
 
rm -f conf$$ conf$$.exe conf$$.file
 
493
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
494
rmdir conf$$.dir 2>/dev/null
220
495
 
221
496
if mkdir -p . 2>/dev/null; then
222
 
  as_mkdir_p=:
 
497
  as_mkdir_p='mkdir -p "$as_dir"'
223
498
else
224
499
  test -d ./-p && rmdir ./-p
225
500
  as_mkdir_p=false
226
501
fi
227
502
 
228
 
as_executable_p="test -f"
 
503
if test -x / >/dev/null 2>&1; then
 
504
  as_test_x='test -x'
 
505
else
 
506
  if ls -dL / >/dev/null 2>&1; then
 
507
    as_ls_L_option=L
 
508
  else
 
509
    as_ls_L_option=
 
510
  fi
 
511
  as_test_x='
 
512
    eval sh -c '\''
 
513
      if test -d "$1"; then
 
514
        test -d "$1/.";
 
515
      else
 
516
        case $1 in #(
 
517
        -*)set "./$1";;
 
518
        esac;
 
519
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
 
520
        ???[sx]*):;;*)false;;esac;fi
 
521
    '\'' sh
 
522
  '
 
523
fi
 
524
as_executable_p=$as_test_x
229
525
 
230
526
# Sed expression to map a string onto a valid CPP name.
231
527
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
234
530
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235
531
 
236
532
 
237
 
# IFS
238
 
# We need space, tab and new line, in precisely that order.
239
 
as_nl='
240
 
'
241
 
IFS="   $as_nl"
242
 
 
243
 
# CDPATH.
244
 
$as_unset CDPATH
245
 
 
 
533
test -n "$DJDIR" || exec 7<&0 </dev/null
 
534
exec 6>&1
246
535
 
247
536
# Name of the host.
248
537
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
249
538
# so uname gets run too.
250
539
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
251
540
 
252
 
exec 6>&1
253
 
 
254
541
#
255
542
# Initializations.
256
543
#
257
544
ac_default_prefix=/usr/local
 
545
ac_clean_files=
258
546
ac_config_libobj_dir=.
 
547
LIBOBJS=
259
548
cross_compiling=no
260
549
subdirs=
261
550
MFLAGS=
262
551
MAKEFLAGS=
263
 
SHELL=${CONFIG_SHELL-/bin/sh}
264
 
 
265
 
# Maximum number of lines to put in a shell here document.
266
 
# This variable seems obsolete.  It should probably be removed, and
267
 
# only ac_max_sed_lines should be used.
268
 
: ${ac_max_here_lines=38}
269
552
 
270
553
# Identity of this package.
271
554
PACKAGE_NAME='GNU make'
273
556
PACKAGE_VERSION='3.81'
274
557
PACKAGE_STRING='GNU make 3.81'
275
558
PACKAGE_BUGREPORT='bug-make@gnu.org'
 
559
PACKAGE_URL='http://www.gnu.org/software/make/'
276
560
 
277
561
ac_unique_file="vpath.c"
278
562
# Factoring default headers for most tests.
279
563
ac_includes_default="\
280
564
#include <stdio.h>
281
 
#if HAVE_SYS_TYPES_H
 
565
#ifdef HAVE_SYS_TYPES_H
282
566
# include <sys/types.h>
283
567
#endif
284
 
#if HAVE_SYS_STAT_H
 
568
#ifdef HAVE_SYS_STAT_H
285
569
# include <sys/stat.h>
286
570
#endif
287
 
#if STDC_HEADERS
 
571
#ifdef STDC_HEADERS
288
572
# include <stdlib.h>
289
573
# include <stddef.h>
290
574
#else
291
 
# if HAVE_STDLIB_H
 
575
# ifdef HAVE_STDLIB_H
292
576
#  include <stdlib.h>
293
577
# endif
294
578
#endif
295
 
#if HAVE_STRING_H
296
 
# if !STDC_HEADERS && HAVE_MEMORY_H
 
579
#ifdef HAVE_STRING_H
 
580
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
297
581
#  include <memory.h>
298
582
# endif
299
583
# include <string.h>
300
584
#endif
301
 
#if HAVE_STRINGS_H
 
585
#ifdef HAVE_STRINGS_H
302
586
# include <strings.h>
303
587
#endif
304
 
#if HAVE_INTTYPES_H
 
588
#ifdef HAVE_INTTYPES_H
305
589
# include <inttypes.h>
306
 
#else
307
 
# if HAVE_STDINT_H
308
 
#  include <stdint.h>
309
 
# endif
310
 
#endif
311
 
#if HAVE_UNISTD_H
 
590
#endif
 
591
#ifdef HAVE_STDINT_H
 
592
# include <stdint.h>
 
593
#endif
 
594
#ifdef HAVE_UNISTD_H
312
595
# include <unistd.h>
313
596
#endif"
314
597
 
315
 
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE RANLIB ac_ct_RANLIB CPP AR PERL build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP U ANSI2KNR MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE LIBICONV LTLIBICONV INTLLIBS LIBINTL LTLIBINTL POSUB ALLOCA LIBOBJS NEED_SETGID KMEM_GROUP GETLOADAVG_LIBS REMOTE USE_CUSTOMS_TRUE USE_CUSTOMS_FALSE GLOBINC GLOBLIB USE_LOCAL_GLOB_TRUE USE_LOCAL_GLOB_FALSE MAKE_HOST WINDOWSENV_TRUE WINDOWSENV_FALSE LTLIBOBJS'
 
598
ac_subst_vars='am__EXEEXT_FALSE
 
599
am__EXEEXT_TRUE
 
600
LTLIBOBJS
 
601
WINDOWSENV_FALSE
 
602
WINDOWSENV_TRUE
 
603
MAKE_HOST
 
604
USE_LOCAL_GLOB_FALSE
 
605
USE_LOCAL_GLOB_TRUE
 
606
GLOBLIB
 
607
GLOBINC
 
608
USE_CUSTOMS_FALSE
 
609
USE_CUSTOMS_TRUE
 
610
REMOTE
 
611
GETLOADAVG_LIBS
 
612
KMEM_GROUP
 
613
NEED_SETGID
 
614
LIBOBJS
 
615
ALLOCA
 
616
POSUB
 
617
LTLIBINTL
 
618
LIBINTL
 
619
INTLLIBS
 
620
LTLIBICONV
 
621
LIBICONV
 
622
MSGMERGE
 
623
XGETTEXT
 
624
GMSGFMT
 
625
MSGFMT
 
626
USE_NLS
 
627
MKINSTALLDIRS
 
628
ANSI2KNR
 
629
U
 
630
EGREP
 
631
GREP
 
632
host_os
 
633
host_vendor
 
634
host_cpu
 
635
host
 
636
build_os
 
637
build_vendor
 
638
build_cpu
 
639
build
 
640
PERL
 
641
AR
 
642
CPP
 
643
RANLIB
 
644
am__fastdepCC_FALSE
 
645
am__fastdepCC_TRUE
 
646
CCDEPMODE
 
647
AMDEPBACKSLASH
 
648
AMDEP_FALSE
 
649
AMDEP_TRUE
 
650
am__quote
 
651
am__include
 
652
DEPDIR
 
653
OBJEXT
 
654
EXEEXT
 
655
ac_ct_CC
 
656
CPPFLAGS
 
657
LDFLAGS
 
658
CFLAGS
 
659
CC
 
660
am__untar
 
661
am__tar
 
662
AMTAR
 
663
am__leading_dot
 
664
SET_MAKE
 
665
AWK
 
666
mkdir_p
 
667
MKDIR_P
 
668
INSTALL_STRIP_PROGRAM
 
669
STRIP
 
670
install_sh
 
671
MAKEINFO
 
672
AUTOHEADER
 
673
AUTOMAKE
 
674
AUTOCONF
 
675
ACLOCAL
 
676
VERSION
 
677
PACKAGE
 
678
CYGPATH_W
 
679
am__isrc
 
680
INSTALL_DATA
 
681
INSTALL_SCRIPT
 
682
INSTALL_PROGRAM
 
683
MAINT
 
684
MAINTAINER_MODE_FALSE
 
685
MAINTAINER_MODE_TRUE
 
686
target_alias
 
687
host_alias
 
688
build_alias
 
689
LIBS
 
690
ECHO_T
 
691
ECHO_N
 
692
ECHO_C
 
693
DEFS
 
694
mandir
 
695
localedir
 
696
libdir
 
697
psdir
 
698
pdfdir
 
699
dvidir
 
700
htmldir
 
701
infodir
 
702
docdir
 
703
oldincludedir
 
704
includedir
 
705
localstatedir
 
706
sharedstatedir
 
707
sysconfdir
 
708
datadir
 
709
datarootdir
 
710
libexecdir
 
711
sbindir
 
712
bindir
 
713
program_transform_name
 
714
prefix
 
715
exec_prefix
 
716
PACKAGE_URL
 
717
PACKAGE_BUGREPORT
 
718
PACKAGE_STRING
 
719
PACKAGE_VERSION
 
720
PACKAGE_TARNAME
 
721
PACKAGE_NAME
 
722
PATH_SEPARATOR
 
723
SHELL'
316
724
ac_subst_files='MAINT_MAKEFILE'
 
725
ac_user_opts='
 
726
enable_option_checking
 
727
enable_maintainer_mode
 
728
enable_dependency_tracking
 
729
enable_nls
 
730
with_gnu_ld
 
731
enable_rpath
 
732
with_libiconv_prefix
 
733
with_libintl_prefix
 
734
enable_largefile
 
735
with_customs
 
736
enable_case_insensitive_file_system
 
737
enable_job_server
 
738
with_dmalloc
 
739
'
 
740
      ac_precious_vars='build_alias
 
741
host_alias
 
742
target_alias
 
743
CC
 
744
CFLAGS
 
745
LDFLAGS
 
746
LIBS
 
747
CPPFLAGS
 
748
CPP'
 
749
 
317
750
 
318
751
# Initialize some variables set by options.
319
752
ac_init_help=
320
753
ac_init_version=false
 
754
ac_unrecognized_opts=
 
755
ac_unrecognized_sep=
321
756
# The variables have the same names as the options, with
322
757
# dashes changed to underlines.
323
758
cache_file=/dev/null
340
775
# and all the variables that are supposed to be based on exec_prefix
341
776
# by default will actually change.
342
777
# Use braces instead of parens because sh, perl, etc. also accept them.
 
778
# (The list follows the same order as the GNU Coding Standards.)
343
779
bindir='${exec_prefix}/bin'
344
780
sbindir='${exec_prefix}/sbin'
345
781
libexecdir='${exec_prefix}/libexec'
346
 
datadir='${prefix}/share'
 
782
datarootdir='${prefix}/share'
 
783
datadir='${datarootdir}'
347
784
sysconfdir='${prefix}/etc'
348
785
sharedstatedir='${prefix}/com'
349
786
localstatedir='${prefix}/var'
350
 
libdir='${exec_prefix}/lib'
351
787
includedir='${prefix}/include'
352
788
oldincludedir='/usr/include'
353
 
infodir='${prefix}/info'
354
 
mandir='${prefix}/man'
 
789
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
 
790
infodir='${datarootdir}/info'
 
791
htmldir='${docdir}'
 
792
dvidir='${docdir}'
 
793
pdfdir='${docdir}'
 
794
psdir='${docdir}'
 
795
libdir='${exec_prefix}/lib'
 
796
localedir='${datarootdir}/locale'
 
797
mandir='${datarootdir}/man'
355
798
 
356
799
ac_prev=
 
800
ac_dashdash=
357
801
for ac_option
358
802
do
359
803
  # If the previous option needs an argument, assign it.
360
804
  if test -n "$ac_prev"; then
361
 
    eval "$ac_prev=\$ac_option"
 
805
    eval $ac_prev=\$ac_option
362
806
    ac_prev=
363
807
    continue
364
808
  fi
365
809
 
366
 
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
 
810
  case $ac_option in
 
811
  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
 
812
  *)    ac_optarg=yes ;;
 
813
  esac
367
814
 
368
815
  # Accept the important Cygnus configure options, so we can diagnose typos.
369
816
 
370
 
  case $ac_option in
 
817
  case $ac_dashdash$ac_option in
 
818
  --)
 
819
    ac_dashdash=yes ;;
371
820
 
372
821
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
373
822
    ac_prev=bindir ;;
389
838
  --config-cache | -C)
390
839
    cache_file=config.cache ;;
391
840
 
392
 
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
 
841
  -datadir | --datadir | --datadi | --datad)
393
842
    ac_prev=datadir ;;
394
 
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
395
 
  | --da=*)
 
843
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
396
844
    datadir=$ac_optarg ;;
397
845
 
 
846
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
 
847
  | --dataroo | --dataro | --datar)
 
848
    ac_prev=datarootdir ;;
 
849
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
 
850
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
 
851
    datarootdir=$ac_optarg ;;
 
852
 
398
853
  -disable-* | --disable-*)
399
 
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 
854
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
400
855
    # Reject names that are not valid shell variable names.
401
 
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
402
 
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
403
 
   { (exit 1); exit 1; }; }
404
 
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
405
 
    eval "enable_$ac_feature=no" ;;
 
856
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
857
      as_fn_error "invalid feature name: $ac_useropt"
 
858
    ac_useropt_orig=$ac_useropt
 
859
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
860
    case $ac_user_opts in
 
861
      *"
 
862
"enable_$ac_useropt"
 
863
"*) ;;
 
864
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
 
865
         ac_unrecognized_sep=', ';;
 
866
    esac
 
867
    eval enable_$ac_useropt=no ;;
 
868
 
 
869
  -docdir | --docdir | --docdi | --doc | --do)
 
870
    ac_prev=docdir ;;
 
871
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
 
872
    docdir=$ac_optarg ;;
 
873
 
 
874
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
 
875
    ac_prev=dvidir ;;
 
876
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
 
877
    dvidir=$ac_optarg ;;
406
878
 
407
879
  -enable-* | --enable-*)
408
 
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 
880
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
409
881
    # Reject names that are not valid shell variable names.
410
 
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
411
 
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
412
 
   { (exit 1); exit 1; }; }
413
 
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
414
 
    case $ac_option in
415
 
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
416
 
      *) ac_optarg=yes ;;
 
882
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
883
      as_fn_error "invalid feature name: $ac_useropt"
 
884
    ac_useropt_orig=$ac_useropt
 
885
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
886
    case $ac_user_opts in
 
887
      *"
 
888
"enable_$ac_useropt"
 
889
"*) ;;
 
890
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
 
891
         ac_unrecognized_sep=', ';;
417
892
    esac
418
 
    eval "enable_$ac_feature='$ac_optarg'" ;;
 
893
    eval enable_$ac_useropt=\$ac_optarg ;;
419
894
 
420
895
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
421
896
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
442
917
  -host=* | --host=* | --hos=* | --ho=*)
443
918
    host_alias=$ac_optarg ;;
444
919
 
 
920
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
 
921
    ac_prev=htmldir ;;
 
922
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
 
923
  | --ht=*)
 
924
    htmldir=$ac_optarg ;;
 
925
 
445
926
  -includedir | --includedir | --includedi | --included | --include \
446
927
  | --includ | --inclu | --incl | --inc)
447
928
    ac_prev=includedir ;;
466
947
  | --libexe=* | --libex=* | --libe=*)
467
948
    libexecdir=$ac_optarg ;;
468
949
 
 
950
  -localedir | --localedir | --localedi | --localed | --locale)
 
951
    ac_prev=localedir ;;
 
952
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
 
953
    localedir=$ac_optarg ;;
 
954
 
469
955
  -localstatedir | --localstatedir | --localstatedi | --localstated \
470
 
  | --localstate | --localstat | --localsta | --localst \
471
 
  | --locals | --local | --loca | --loc | --lo)
 
956
  | --localstate | --localstat | --localsta | --localst | --locals)
472
957
    ac_prev=localstatedir ;;
473
958
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
474
 
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
475
 
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
 
959
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
476
960
    localstatedir=$ac_optarg ;;
477
961
 
478
962
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
537
1021
  | --progr-tra=* | --program-tr=* | --program-t=*)
538
1022
    program_transform_name=$ac_optarg ;;
539
1023
 
 
1024
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
 
1025
    ac_prev=pdfdir ;;
 
1026
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
 
1027
    pdfdir=$ac_optarg ;;
 
1028
 
 
1029
  -psdir | --psdir | --psdi | --psd | --ps)
 
1030
    ac_prev=psdir ;;
 
1031
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
 
1032
    psdir=$ac_optarg ;;
 
1033
 
540
1034
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
541
1035
  | -silent | --silent | --silen | --sile | --sil)
542
1036
    silent=yes ;;
587
1081
    ac_init_version=: ;;
588
1082
 
589
1083
  -with-* | --with-*)
590
 
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 
1084
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
591
1085
    # Reject names that are not valid shell variable names.
592
 
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
593
 
      { echo "$as_me: error: invalid package name: $ac_package" >&2
594
 
   { (exit 1); exit 1; }; }
595
 
    ac_package=`echo $ac_package| sed 's/-/_/g'`
596
 
    case $ac_option in
597
 
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
598
 
      *) ac_optarg=yes ;;
 
1086
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1087
      as_fn_error "invalid package name: $ac_useropt"
 
1088
    ac_useropt_orig=$ac_useropt
 
1089
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1090
    case $ac_user_opts in
 
1091
      *"
 
1092
"with_$ac_useropt"
 
1093
"*) ;;
 
1094
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
 
1095
         ac_unrecognized_sep=', ';;
599
1096
    esac
600
 
    eval "with_$ac_package='$ac_optarg'" ;;
 
1097
    eval with_$ac_useropt=\$ac_optarg ;;
601
1098
 
602
1099
  -without-* | --without-*)
603
 
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 
1100
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
604
1101
    # Reject names that are not valid shell variable names.
605
 
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
606
 
      { echo "$as_me: error: invalid package name: $ac_package" >&2
607
 
   { (exit 1); exit 1; }; }
608
 
    ac_package=`echo $ac_package | sed 's/-/_/g'`
609
 
    eval "with_$ac_package=no" ;;
 
1102
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1103
      as_fn_error "invalid package name: $ac_useropt"
 
1104
    ac_useropt_orig=$ac_useropt
 
1105
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1106
    case $ac_user_opts in
 
1107
      *"
 
1108
"with_$ac_useropt"
 
1109
"*) ;;
 
1110
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
 
1111
         ac_unrecognized_sep=', ';;
 
1112
    esac
 
1113
    eval with_$ac_useropt=no ;;
610
1114
 
611
1115
  --x)
612
1116
    # Obsolete; use --with-x.
626
1130
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
627
1131
    x_libraries=$ac_optarg ;;
628
1132
 
629
 
  -*) { echo "$as_me: error: unrecognized option: $ac_option
630
 
Try \`$0 --help' for more information." >&2
631
 
   { (exit 1); exit 1; }; }
 
1133
  -*) as_fn_error "unrecognized option: \`$ac_option'
 
1134
Try \`$0 --help' for more information."
632
1135
    ;;
633
1136
 
634
1137
  *=*)
635
1138
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
636
1139
    # Reject names that are not valid shell variable names.
637
 
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
638
 
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
639
 
   { (exit 1); exit 1; }; }
640
 
    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
641
 
    eval "$ac_envvar='$ac_optarg'"
 
1140
    case $ac_envvar in #(
 
1141
      '' | [0-9]* | *[!_$as_cr_alnum]* )
 
1142
      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
 
1143
    esac
 
1144
    eval $ac_envvar=\$ac_optarg
642
1145
    export $ac_envvar ;;
643
1146
 
644
1147
  *)
645
1148
    # FIXME: should be removed in autoconf 3.0.
646
 
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
1149
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
647
1150
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
648
 
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
1151
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
649
1152
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
650
1153
    ;;
651
1154
 
654
1157
 
655
1158
if test -n "$ac_prev"; then
656
1159
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
657
 
  { echo "$as_me: error: missing argument to $ac_option" >&2
658
 
   { (exit 1); exit 1; }; }
659
 
fi
660
 
 
661
 
# Be sure to have absolute paths.
662
 
for ac_var in exec_prefix prefix
663
 
do
664
 
  eval ac_val=$`echo $ac_var`
665
 
  case $ac_val in
666
 
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
667
 
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
668
 
   { (exit 1); exit 1; }; };;
669
 
  esac
670
 
done
671
 
 
672
 
# Be sure to have absolute paths.
673
 
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
674
 
              localstatedir libdir includedir oldincludedir infodir mandir
675
 
do
676
 
  eval ac_val=$`echo $ac_var`
677
 
  case $ac_val in
678
 
    [\\/$]* | ?:[\\/]* ) ;;
679
 
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
680
 
   { (exit 1); exit 1; }; };;
681
 
  esac
 
1160
  as_fn_error "missing argument to $ac_option"
 
1161
fi
 
1162
 
 
1163
if test -n "$ac_unrecognized_opts"; then
 
1164
  case $enable_option_checking in
 
1165
    no) ;;
 
1166
    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
 
1167
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
 
1168
  esac
 
1169
fi
 
1170
 
 
1171
# Check all directory arguments for consistency.
 
1172
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
 
1173
                datadir sysconfdir sharedstatedir localstatedir includedir \
 
1174
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
 
1175
                libdir localedir mandir
 
1176
do
 
1177
  eval ac_val=\$$ac_var
 
1178
  # Remove trailing slashes.
 
1179
  case $ac_val in
 
1180
    */ )
 
1181
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
 
1182
      eval $ac_var=\$ac_val;;
 
1183
  esac
 
1184
  # Be sure to have absolute directory names.
 
1185
  case $ac_val in
 
1186
    [\\/$]* | ?:[\\/]* )  continue;;
 
1187
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
 
1188
  esac
 
1189
  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
682
1190
done
683
1191
 
684
1192
# There might be people who depend on the old broken behavior: `$host'
692
1200
if test "x$host_alias" != x; then
693
1201
  if test "x$build_alias" = x; then
694
1202
    cross_compiling=maybe
695
 
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
 
1203
    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
696
1204
    If a cross compiler is detected then cross compile mode will be used." >&2
697
1205
  elif test "x$build_alias" != "x$host_alias"; then
698
1206
    cross_compiling=yes
705
1213
test "$silent" = yes && exec 6>/dev/null
706
1214
 
707
1215
 
 
1216
ac_pwd=`pwd` && test -n "$ac_pwd" &&
 
1217
ac_ls_di=`ls -di .` &&
 
1218
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
 
1219
  as_fn_error "working directory cannot be determined"
 
1220
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
 
1221
  as_fn_error "pwd does not report name of working directory"
 
1222
 
 
1223
 
708
1224
# Find the source files, if location was not specified.
709
1225
if test -z "$srcdir"; then
710
1226
  ac_srcdir_defaulted=yes
711
 
  # Try the directory containing this script, then its parent.
712
 
  ac_confdir=`(dirname "$0") 2>/dev/null ||
713
 
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
714
 
         X"$0" : 'X\(//\)[^/]' \| \
715
 
         X"$0" : 'X\(//\)$' \| \
716
 
         X"$0" : 'X\(/\)' \| \
717
 
         .     : '\(.\)' 2>/dev/null ||
718
 
echo X"$0" |
719
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
720
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
721
 
          /^X\(\/\/\)$/{ s//\1/; q; }
722
 
          /^X\(\/\).*/{ s//\1/; q; }
723
 
          s/.*/./; q'`
 
1227
  # Try the directory containing this script, then the parent directory.
 
1228
  ac_confdir=`$as_dirname -- "$as_myself" ||
 
1229
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
1230
         X"$as_myself" : 'X\(//\)[^/]' \| \
 
1231
         X"$as_myself" : 'X\(//\)$' \| \
 
1232
         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
 
1233
$as_echo X"$as_myself" |
 
1234
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
1235
            s//\1/
 
1236
            q
 
1237
          }
 
1238
          /^X\(\/\/\)[^/].*/{
 
1239
            s//\1/
 
1240
            q
 
1241
          }
 
1242
          /^X\(\/\/\)$/{
 
1243
            s//\1/
 
1244
            q
 
1245
          }
 
1246
          /^X\(\/\).*/{
 
1247
            s//\1/
 
1248
            q
 
1249
          }
 
1250
          s/.*/./; q'`
724
1251
  srcdir=$ac_confdir
725
 
  if test ! -r $srcdir/$ac_unique_file; then
 
1252
  if test ! -r "$srcdir/$ac_unique_file"; then
726
1253
    srcdir=..
727
1254
  fi
728
1255
else
729
1256
  ac_srcdir_defaulted=no
730
1257
fi
731
 
if test ! -r $srcdir/$ac_unique_file; then
732
 
  if test "$ac_srcdir_defaulted" = yes; then
733
 
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
734
 
   { (exit 1); exit 1; }; }
735
 
  else
736
 
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
737
 
   { (exit 1); exit 1; }; }
738
 
  fi
739
 
fi
740
 
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
741
 
  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
742
 
   { (exit 1); exit 1; }; }
743
 
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
744
 
ac_env_build_alias_set=${build_alias+set}
745
 
ac_env_build_alias_value=$build_alias
746
 
ac_cv_env_build_alias_set=${build_alias+set}
747
 
ac_cv_env_build_alias_value=$build_alias
748
 
ac_env_host_alias_set=${host_alias+set}
749
 
ac_env_host_alias_value=$host_alias
750
 
ac_cv_env_host_alias_set=${host_alias+set}
751
 
ac_cv_env_host_alias_value=$host_alias
752
 
ac_env_target_alias_set=${target_alias+set}
753
 
ac_env_target_alias_value=$target_alias
754
 
ac_cv_env_target_alias_set=${target_alias+set}
755
 
ac_cv_env_target_alias_value=$target_alias
756
 
ac_env_CC_set=${CC+set}
757
 
ac_env_CC_value=$CC
758
 
ac_cv_env_CC_set=${CC+set}
759
 
ac_cv_env_CC_value=$CC
760
 
ac_env_CFLAGS_set=${CFLAGS+set}
761
 
ac_env_CFLAGS_value=$CFLAGS
762
 
ac_cv_env_CFLAGS_set=${CFLAGS+set}
763
 
ac_cv_env_CFLAGS_value=$CFLAGS
764
 
ac_env_LDFLAGS_set=${LDFLAGS+set}
765
 
ac_env_LDFLAGS_value=$LDFLAGS
766
 
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
767
 
ac_cv_env_LDFLAGS_value=$LDFLAGS
768
 
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
769
 
ac_env_CPPFLAGS_value=$CPPFLAGS
770
 
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
771
 
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
772
 
ac_env_CPP_set=${CPP+set}
773
 
ac_env_CPP_value=$CPP
774
 
ac_cv_env_CPP_set=${CPP+set}
775
 
ac_cv_env_CPP_value=$CPP
 
1258
if test ! -r "$srcdir/$ac_unique_file"; then
 
1259
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
 
1260
  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
 
1261
fi
 
1262
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
 
1263
ac_abs_confdir=`(
 
1264
        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
 
1265
        pwd)`
 
1266
# When building in place, set srcdir=.
 
1267
if test "$ac_abs_confdir" = "$ac_pwd"; then
 
1268
  srcdir=.
 
1269
fi
 
1270
# Remove unnecessary trailing slashes from srcdir.
 
1271
# Double slashes in file names in object file debugging info
 
1272
# mess up M-x gdb in Emacs.
 
1273
case $srcdir in
 
1274
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
 
1275
esac
 
1276
for ac_var in $ac_precious_vars; do
 
1277
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
 
1278
  eval ac_env_${ac_var}_value=\$${ac_var}
 
1279
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
 
1280
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
 
1281
done
776
1282
 
777
1283
#
778
1284
# Report the --help message.
801
1307
  -n, --no-create         do not create output files
802
1308
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
803
1309
 
804
 
_ACEOF
805
 
 
806
 
  cat <<_ACEOF
807
1310
Installation directories:
808
1311
  --prefix=PREFIX         install architecture-independent files in PREFIX
809
 
                          [$ac_default_prefix]
 
1312
                          [$ac_default_prefix]
810
1313
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
811
 
                          [PREFIX]
 
1314
                          [PREFIX]
812
1315
 
813
1316
By default, \`make install' will install all the files in
814
1317
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
818
1321
For better control, use the options below.
819
1322
 
820
1323
Fine tuning of the installation directories:
821
 
  --bindir=DIR           user executables [EPREFIX/bin]
822
 
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
823
 
  --libexecdir=DIR       program executables [EPREFIX/libexec]
824
 
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
825
 
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
826
 
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
827
 
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
828
 
  --libdir=DIR           object code libraries [EPREFIX/lib]
829
 
  --includedir=DIR       C header files [PREFIX/include]
830
 
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
831
 
  --infodir=DIR          info documentation [PREFIX/info]
832
 
  --mandir=DIR           man documentation [PREFIX/man]
 
1324
  --bindir=DIR            user executables [EPREFIX/bin]
 
1325
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
 
1326
  --libexecdir=DIR        program executables [EPREFIX/libexec]
 
1327
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
 
1328
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
 
1329
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
 
1330
  --libdir=DIR            object code libraries [EPREFIX/lib]
 
1331
  --includedir=DIR        C header files [PREFIX/include]
 
1332
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
 
1333
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
 
1334
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
 
1335
  --infodir=DIR           info documentation [DATAROOTDIR/info]
 
1336
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
 
1337
  --mandir=DIR            man documentation [DATAROOTDIR/man]
 
1338
  --docdir=DIR            documentation root [DATAROOTDIR/doc/make]
 
1339
  --htmldir=DIR           html documentation [DOCDIR]
 
1340
  --dvidir=DIR            dvi documentation [DOCDIR]
 
1341
  --pdfdir=DIR            pdf documentation [DOCDIR]
 
1342
  --psdir=DIR             ps documentation [DOCDIR]
833
1343
_ACEOF
834
1344
 
835
1345
  cat <<\_ACEOF
852
1362
  cat <<\_ACEOF
853
1363
 
854
1364
Optional Features:
 
1365
  --disable-option-checking  ignore unrecognized --enable/--with options
855
1366
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
856
1367
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
857
1368
  --enable-maintainer-mode  enable make rules and dependencies not useful
882
1393
  CFLAGS      C compiler flags
883
1394
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
884
1395
              nonstandard directory <lib dir>
885
 
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
886
 
              headers in a nonstandard directory <include dir>
 
1396
  LIBS        libraries to pass to the linker, e.g. -l<library>
 
1397
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
 
1398
              you have headers in a nonstandard directory <include dir>
887
1399
  CPP         C preprocessor
888
1400
 
889
1401
Use these variables to override the choices made by `configure' or to help
890
1402
it to find libraries and programs with nonstandard names/locations.
891
1403
 
892
1404
Report bugs to <bug-make@gnu.org>.
 
1405
GNU make home page: <http://www.gnu.org/software/make/>.
 
1406
General help using GNU software: <http://www.gnu.org/gethelp/>.
893
1407
_ACEOF
 
1408
ac_status=$?
894
1409
fi
895
1410
 
896
1411
if test "$ac_init_help" = "recursive"; then
897
1412
  # If there are subdirs, report their specific --help.
898
 
  ac_popdir=`pwd`
899
1413
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
900
 
    test -d $ac_dir || continue
 
1414
    test -d "$ac_dir" ||
 
1415
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
 
1416
      continue
901
1417
    ac_builddir=.
902
1418
 
903
 
if test "$ac_dir" != .; then
904
 
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
905
 
  # A "../" for each directory in $ac_dir_suffix.
906
 
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
907
 
else
908
 
  ac_dir_suffix= ac_top_builddir=
909
 
fi
 
1419
case "$ac_dir" in
 
1420
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1421
*)
 
1422
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 
1423
  # A ".." for each directory in $ac_dir_suffix.
 
1424
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 
1425
  case $ac_top_builddir_sub in
 
1426
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1427
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
1428
  esac ;;
 
1429
esac
 
1430
ac_abs_top_builddir=$ac_pwd
 
1431
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
1432
# for backward compatibility:
 
1433
ac_top_builddir=$ac_top_build_prefix
910
1434
 
911
1435
case $srcdir in
912
 
  .)  # No --srcdir option.  We are building in place.
 
1436
  .)  # We are building in place.
913
1437
    ac_srcdir=.
914
 
    if test -z "$ac_top_builddir"; then
915
 
       ac_top_srcdir=.
916
 
    else
917
 
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
918
 
    fi ;;
919
 
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
1438
    ac_top_srcdir=$ac_top_builddir_sub
 
1439
    ac_abs_top_srcdir=$ac_pwd ;;
 
1440
  [\\/]* | ?:[\\/]* )  # Absolute name.
920
1441
    ac_srcdir=$srcdir$ac_dir_suffix;
921
 
    ac_top_srcdir=$srcdir ;;
922
 
  *) # Relative path.
923
 
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
924
 
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
925
 
esac
926
 
 
927
 
# Do not use `cd foo && pwd` to compute absolute paths, because
928
 
# the directories may not exist.
929
 
case `pwd` in
930
 
.) ac_abs_builddir="$ac_dir";;
931
 
*)
932
 
  case "$ac_dir" in
933
 
  .) ac_abs_builddir=`pwd`;;
934
 
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
935
 
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
936
 
  esac;;
937
 
esac
938
 
case $ac_abs_builddir in
939
 
.) ac_abs_top_builddir=${ac_top_builddir}.;;
940
 
*)
941
 
  case ${ac_top_builddir}. in
942
 
  .) ac_abs_top_builddir=$ac_abs_builddir;;
943
 
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
944
 
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
945
 
  esac;;
946
 
esac
947
 
case $ac_abs_builddir in
948
 
.) ac_abs_srcdir=$ac_srcdir;;
949
 
*)
950
 
  case $ac_srcdir in
951
 
  .) ac_abs_srcdir=$ac_abs_builddir;;
952
 
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
953
 
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
954
 
  esac;;
955
 
esac
956
 
case $ac_abs_builddir in
957
 
.) ac_abs_top_srcdir=$ac_top_srcdir;;
958
 
*)
959
 
  case $ac_top_srcdir in
960
 
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
961
 
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
962
 
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
963
 
  esac;;
964
 
esac
965
 
 
966
 
    cd $ac_dir
967
 
    # Check for guested configure; otherwise get Cygnus style configure.
968
 
    if test -f $ac_srcdir/configure.gnu; then
969
 
      echo
970
 
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
971
 
    elif test -f $ac_srcdir/configure; then
972
 
      echo
973
 
      $SHELL $ac_srcdir/configure  --help=recursive
974
 
    elif test -f $ac_srcdir/configure.ac ||
975
 
           test -f $ac_srcdir/configure.in; then
976
 
      echo
977
 
      $ac_configure --help
 
1442
    ac_top_srcdir=$srcdir
 
1443
    ac_abs_top_srcdir=$srcdir ;;
 
1444
  *) # Relative name.
 
1445
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
1446
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
1447
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
1448
esac
 
1449
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
1450
 
 
1451
    cd "$ac_dir" || { ac_status=$?; continue; }
 
1452
    # Check for guested configure.
 
1453
    if test -f "$ac_srcdir/configure.gnu"; then
 
1454
      echo &&
 
1455
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
 
1456
    elif test -f "$ac_srcdir/configure"; then
 
1457
      echo &&
 
1458
      $SHELL "$ac_srcdir/configure" --help=recursive
978
1459
    else
979
 
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
980
 
    fi
981
 
    cd "$ac_popdir"
 
1460
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
1461
    fi || ac_status=$?
 
1462
    cd "$ac_pwd" || { ac_status=$?; break; }
982
1463
  done
983
1464
fi
984
1465
 
985
 
test -n "$ac_init_help" && exit 0
 
1466
test -n "$ac_init_help" && exit $ac_status
986
1467
if $ac_init_version; then
987
1468
  cat <<\_ACEOF
988
1469
GNU make configure 3.81
989
 
generated by GNU Autoconf 2.59
 
1470
generated by GNU Autoconf 2.65
990
1471
 
991
 
Copyright (C) 2003 Free Software Foundation, Inc.
 
1472
Copyright (C) 2009 Free Software Foundation, Inc.
992
1473
This configure script is free software; the Free Software Foundation
993
1474
gives unlimited permission to copy, distribute and modify it.
994
1475
_ACEOF
995
 
  exit 0
996
 
fi
997
 
exec 5>config.log
998
 
cat >&5 <<_ACEOF
 
1476
  exit
 
1477
fi
 
1478
 
 
1479
## ------------------------ ##
 
1480
## Autoconf initialization. ##
 
1481
## ------------------------ ##
 
1482
 
 
1483
# ac_fn_c_try_compile LINENO
 
1484
# --------------------------
 
1485
# Try to compile conftest.$ac_ext, and return whether this succeeded.
 
1486
ac_fn_c_try_compile ()
 
1487
{
 
1488
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1489
  rm -f conftest.$ac_objext
 
1490
  if { { ac_try="$ac_compile"
 
1491
case "(($ac_try" in
 
1492
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1493
  *) ac_try_echo=$ac_try;;
 
1494
esac
 
1495
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1496
$as_echo "$ac_try_echo"; } >&5
 
1497
  (eval "$ac_compile") 2>conftest.err
 
1498
  ac_status=$?
 
1499
  if test -s conftest.err; then
 
1500
    grep -v '^ *+' conftest.err >conftest.er1
 
1501
    cat conftest.er1 >&5
 
1502
    mv -f conftest.er1 conftest.err
 
1503
  fi
 
1504
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1505
  test $ac_status = 0; } && {
 
1506
         test -z "$ac_c_werror_flag" ||
 
1507
         test ! -s conftest.err
 
1508
       } && test -s conftest.$ac_objext; then :
 
1509
  ac_retval=0
 
1510
else
 
1511
  $as_echo "$as_me: failed program was:" >&5
 
1512
sed 's/^/| /' conftest.$ac_ext >&5
 
1513
 
 
1514
        ac_retval=1
 
1515
fi
 
1516
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1517
  as_fn_set_status $ac_retval
 
1518
 
 
1519
} # ac_fn_c_try_compile
 
1520
 
 
1521
# ac_fn_c_try_cpp LINENO
 
1522
# ----------------------
 
1523
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
 
1524
ac_fn_c_try_cpp ()
 
1525
{
 
1526
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1527
  if { { ac_try="$ac_cpp conftest.$ac_ext"
 
1528
case "(($ac_try" in
 
1529
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1530
  *) ac_try_echo=$ac_try;;
 
1531
esac
 
1532
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1533
$as_echo "$ac_try_echo"; } >&5
 
1534
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
 
1535
  ac_status=$?
 
1536
  if test -s conftest.err; then
 
1537
    grep -v '^ *+' conftest.err >conftest.er1
 
1538
    cat conftest.er1 >&5
 
1539
    mv -f conftest.er1 conftest.err
 
1540
  fi
 
1541
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1542
  test $ac_status = 0; } >/dev/null && {
 
1543
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
1544
         test ! -s conftest.err
 
1545
       }; then :
 
1546
  ac_retval=0
 
1547
else
 
1548
  $as_echo "$as_me: failed program was:" >&5
 
1549
sed 's/^/| /' conftest.$ac_ext >&5
 
1550
 
 
1551
    ac_retval=1
 
1552
fi
 
1553
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1554
  as_fn_set_status $ac_retval
 
1555
 
 
1556
} # ac_fn_c_try_cpp
 
1557
 
 
1558
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
 
1559
# -------------------------------------------------------
 
1560
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
 
1561
# the include files in INCLUDES and setting the cache variable VAR
 
1562
# accordingly.
 
1563
ac_fn_c_check_header_mongrel ()
 
1564
{
 
1565
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1566
  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
 
1567
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1568
$as_echo_n "checking for $2... " >&6; }
 
1569
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
 
1570
  $as_echo_n "(cached) " >&6
 
1571
fi
 
1572
eval ac_res=\$$3
 
1573
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1574
$as_echo "$ac_res" >&6; }
 
1575
else
 
1576
  # Is the header compilable?
 
1577
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
 
1578
$as_echo_n "checking $2 usability... " >&6; }
 
1579
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1580
/* end confdefs.h.  */
 
1581
$4
 
1582
#include <$2>
 
1583
_ACEOF
 
1584
if ac_fn_c_try_compile "$LINENO"; then :
 
1585
  ac_header_compiler=yes
 
1586
else
 
1587
  ac_header_compiler=no
 
1588
fi
 
1589
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
1590
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
 
1591
$as_echo "$ac_header_compiler" >&6; }
 
1592
 
 
1593
# Is the header present?
 
1594
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
 
1595
$as_echo_n "checking $2 presence... " >&6; }
 
1596
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1597
/* end confdefs.h.  */
 
1598
#include <$2>
 
1599
_ACEOF
 
1600
if ac_fn_c_try_cpp "$LINENO"; then :
 
1601
  ac_header_preproc=yes
 
1602
else
 
1603
  ac_header_preproc=no
 
1604
fi
 
1605
rm -f conftest.err conftest.$ac_ext
 
1606
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
 
1607
$as_echo "$ac_header_preproc" >&6; }
 
1608
 
 
1609
# So?  What about this header?
 
1610
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
 
1611
  yes:no: )
 
1612
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
 
1613
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
1614
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
 
1615
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
 
1616
    ;;
 
1617
  no:yes:* )
 
1618
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
 
1619
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
 
1620
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
 
1621
$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
 
1622
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
 
1623
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
 
1624
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
 
1625
$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
 
1626
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
 
1627
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
 
1628
( cat <<\_ASBOX
 
1629
## ------------------------------- ##
 
1630
## Report this to bug-make@gnu.org ##
 
1631
## ------------------------------- ##
 
1632
_ASBOX
 
1633
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
1634
    ;;
 
1635
esac
 
1636
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1637
$as_echo_n "checking for $2... " >&6; }
 
1638
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
 
1639
  $as_echo_n "(cached) " >&6
 
1640
else
 
1641
  eval "$3=\$ac_header_compiler"
 
1642
fi
 
1643
eval ac_res=\$$3
 
1644
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1645
$as_echo "$ac_res" >&6; }
 
1646
fi
 
1647
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1648
 
 
1649
} # ac_fn_c_check_header_mongrel
 
1650
 
 
1651
# ac_fn_c_try_run LINENO
 
1652
# ----------------------
 
1653
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
 
1654
# that executables *can* be run.
 
1655
ac_fn_c_try_run ()
 
1656
{
 
1657
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1658
  if { { ac_try="$ac_link"
 
1659
case "(($ac_try" in
 
1660
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1661
  *) ac_try_echo=$ac_try;;
 
1662
esac
 
1663
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1664
$as_echo "$ac_try_echo"; } >&5
 
1665
  (eval "$ac_link") 2>&5
 
1666
  ac_status=$?
 
1667
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1668
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
 
1669
  { { case "(($ac_try" in
 
1670
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1671
  *) ac_try_echo=$ac_try;;
 
1672
esac
 
1673
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1674
$as_echo "$ac_try_echo"; } >&5
 
1675
  (eval "$ac_try") 2>&5
 
1676
  ac_status=$?
 
1677
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1678
  test $ac_status = 0; }; }; then :
 
1679
  ac_retval=0
 
1680
else
 
1681
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
1682
       $as_echo "$as_me: failed program was:" >&5
 
1683
sed 's/^/| /' conftest.$ac_ext >&5
 
1684
 
 
1685
       ac_retval=$ac_status
 
1686
fi
 
1687
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 
1688
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1689
  as_fn_set_status $ac_retval
 
1690
 
 
1691
} # ac_fn_c_try_run
 
1692
 
 
1693
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
 
1694
# -------------------------------------------------------
 
1695
# Tests whether HEADER exists and can be compiled using the include files in
 
1696
# INCLUDES, setting the cache variable VAR accordingly.
 
1697
ac_fn_c_check_header_compile ()
 
1698
{
 
1699
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1700
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1701
$as_echo_n "checking for $2... " >&6; }
 
1702
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
 
1703
  $as_echo_n "(cached) " >&6
 
1704
else
 
1705
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1706
/* end confdefs.h.  */
 
1707
$4
 
1708
#include <$2>
 
1709
_ACEOF
 
1710
if ac_fn_c_try_compile "$LINENO"; then :
 
1711
  eval "$3=yes"
 
1712
else
 
1713
  eval "$3=no"
 
1714
fi
 
1715
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
1716
fi
 
1717
eval ac_res=\$$3
 
1718
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1719
$as_echo "$ac_res" >&6; }
 
1720
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1721
 
 
1722
} # ac_fn_c_check_header_compile
 
1723
 
 
1724
# ac_fn_c_try_link LINENO
 
1725
# -----------------------
 
1726
# Try to link conftest.$ac_ext, and return whether this succeeded.
 
1727
ac_fn_c_try_link ()
 
1728
{
 
1729
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1730
  rm -f conftest.$ac_objext conftest$ac_exeext
 
1731
  if { { ac_try="$ac_link"
 
1732
case "(($ac_try" in
 
1733
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1734
  *) ac_try_echo=$ac_try;;
 
1735
esac
 
1736
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1737
$as_echo "$ac_try_echo"; } >&5
 
1738
  (eval "$ac_link") 2>conftest.err
 
1739
  ac_status=$?
 
1740
  if test -s conftest.err; then
 
1741
    grep -v '^ *+' conftest.err >conftest.er1
 
1742
    cat conftest.er1 >&5
 
1743
    mv -f conftest.er1 conftest.err
 
1744
  fi
 
1745
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1746
  test $ac_status = 0; } && {
 
1747
         test -z "$ac_c_werror_flag" ||
 
1748
         test ! -s conftest.err
 
1749
       } && test -s conftest$ac_exeext && {
 
1750
         test "$cross_compiling" = yes ||
 
1751
         $as_test_x conftest$ac_exeext
 
1752
       }; then :
 
1753
  ac_retval=0
 
1754
else
 
1755
  $as_echo "$as_me: failed program was:" >&5
 
1756
sed 's/^/| /' conftest.$ac_ext >&5
 
1757
 
 
1758
        ac_retval=1
 
1759
fi
 
1760
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
 
1761
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
 
1762
  # interfere with the next link command; also delete a directory that is
 
1763
  # left behind by Apple's compiler.  We do this before executing the actions.
 
1764
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 
1765
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1766
  as_fn_set_status $ac_retval
 
1767
 
 
1768
} # ac_fn_c_try_link
 
1769
 
 
1770
# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
 
1771
# -------------------------------------------
 
1772
# Tests whether TYPE exists after having included INCLUDES, setting cache
 
1773
# variable VAR accordingly.
 
1774
ac_fn_c_check_type ()
 
1775
{
 
1776
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1777
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1778
$as_echo_n "checking for $2... " >&6; }
 
1779
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
 
1780
  $as_echo_n "(cached) " >&6
 
1781
else
 
1782
  eval "$3=no"
 
1783
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1784
/* end confdefs.h.  */
 
1785
$4
 
1786
int
 
1787
main ()
 
1788
{
 
1789
if (sizeof ($2))
 
1790
         return 0;
 
1791
  ;
 
1792
  return 0;
 
1793
}
 
1794
_ACEOF
 
1795
if ac_fn_c_try_compile "$LINENO"; then :
 
1796
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1797
/* end confdefs.h.  */
 
1798
$4
 
1799
int
 
1800
main ()
 
1801
{
 
1802
if (sizeof (($2)))
 
1803
            return 0;
 
1804
  ;
 
1805
  return 0;
 
1806
}
 
1807
_ACEOF
 
1808
if ac_fn_c_try_compile "$LINENO"; then :
 
1809
 
 
1810
else
 
1811
  eval "$3=yes"
 
1812
fi
 
1813
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
1814
fi
 
1815
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
1816
fi
 
1817
eval ac_res=\$$3
 
1818
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1819
$as_echo "$ac_res" >&6; }
 
1820
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1821
 
 
1822
} # ac_fn_c_check_type
 
1823
 
 
1824
# ac_fn_c_check_func LINENO FUNC VAR
 
1825
# ----------------------------------
 
1826
# Tests whether FUNC exists, setting the cache variable VAR accordingly
 
1827
ac_fn_c_check_func ()
 
1828
{
 
1829
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1830
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1831
$as_echo_n "checking for $2... " >&6; }
 
1832
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
 
1833
  $as_echo_n "(cached) " >&6
 
1834
else
 
1835
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1836
/* end confdefs.h.  */
 
1837
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
 
1838
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
1839
#define $2 innocuous_$2
 
1840
 
 
1841
/* System header to define __stub macros and hopefully few prototypes,
 
1842
    which can conflict with char $2 (); below.
 
1843
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
1844
    <limits.h> exists even on freestanding compilers.  */
 
1845
 
 
1846
#ifdef __STDC__
 
1847
# include <limits.h>
 
1848
#else
 
1849
# include <assert.h>
 
1850
#endif
 
1851
 
 
1852
#undef $2
 
1853
 
 
1854
/* Override any GCC internal prototype to avoid an error.
 
1855
   Use char because int might match the return type of a GCC
 
1856
   builtin and then its argument prototype would still apply.  */
 
1857
#ifdef __cplusplus
 
1858
extern "C"
 
1859
#endif
 
1860
char $2 ();
 
1861
/* The GNU C library defines this for functions which it implements
 
1862
    to always fail with ENOSYS.  Some functions are actually named
 
1863
    something starting with __ and the normal name is an alias.  */
 
1864
#if defined __stub_$2 || defined __stub___$2
 
1865
choke me
 
1866
#endif
 
1867
 
 
1868
int
 
1869
main ()
 
1870
{
 
1871
return $2 ();
 
1872
  ;
 
1873
  return 0;
 
1874
}
 
1875
_ACEOF
 
1876
if ac_fn_c_try_link "$LINENO"; then :
 
1877
  eval "$3=yes"
 
1878
else
 
1879
  eval "$3=no"
 
1880
fi
 
1881
rm -f core conftest.err conftest.$ac_objext \
 
1882
    conftest$ac_exeext conftest.$ac_ext
 
1883
fi
 
1884
eval ac_res=\$$3
 
1885
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1886
$as_echo "$ac_res" >&6; }
 
1887
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1888
 
 
1889
} # ac_fn_c_check_func
 
1890
 
 
1891
# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
 
1892
# ----------------------------------------------------
 
1893
# Tries to find if the field MEMBER exists in type AGGR, after including
 
1894
# INCLUDES, setting cache variable VAR accordingly.
 
1895
ac_fn_c_check_member ()
 
1896
{
 
1897
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1898
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
 
1899
$as_echo_n "checking for $2.$3... " >&6; }
 
1900
if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
 
1901
  $as_echo_n "(cached) " >&6
 
1902
else
 
1903
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1904
/* end confdefs.h.  */
 
1905
$5
 
1906
int
 
1907
main ()
 
1908
{
 
1909
static $2 ac_aggr;
 
1910
if (ac_aggr.$3)
 
1911
return 0;
 
1912
  ;
 
1913
  return 0;
 
1914
}
 
1915
_ACEOF
 
1916
if ac_fn_c_try_compile "$LINENO"; then :
 
1917
  eval "$4=yes"
 
1918
else
 
1919
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1920
/* end confdefs.h.  */
 
1921
$5
 
1922
int
 
1923
main ()
 
1924
{
 
1925
static $2 ac_aggr;
 
1926
if (sizeof ac_aggr.$3)
 
1927
return 0;
 
1928
  ;
 
1929
  return 0;
 
1930
}
 
1931
_ACEOF
 
1932
if ac_fn_c_try_compile "$LINENO"; then :
 
1933
  eval "$4=yes"
 
1934
else
 
1935
  eval "$4=no"
 
1936
fi
 
1937
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
1938
fi
 
1939
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
1940
fi
 
1941
eval ac_res=\$$4
 
1942
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1943
$as_echo "$ac_res" >&6; }
 
1944
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1945
 
 
1946
} # ac_fn_c_check_member
 
1947
 
 
1948
# ac_fn_c_check_decl LINENO SYMBOL VAR
 
1949
# ------------------------------------
 
1950
# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
 
1951
ac_fn_c_check_decl ()
 
1952
{
 
1953
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1954
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
 
1955
$as_echo_n "checking whether $2 is declared... " >&6; }
 
1956
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
 
1957
  $as_echo_n "(cached) " >&6
 
1958
else
 
1959
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1960
/* end confdefs.h.  */
 
1961
$4
 
1962
int
 
1963
main ()
 
1964
{
 
1965
#ifndef $2
 
1966
  (void) $2;
 
1967
#endif
 
1968
 
 
1969
  ;
 
1970
  return 0;
 
1971
}
 
1972
_ACEOF
 
1973
if ac_fn_c_try_compile "$LINENO"; then :
 
1974
  eval "$3=yes"
 
1975
else
 
1976
  eval "$3=no"
 
1977
fi
 
1978
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
1979
fi
 
1980
eval ac_res=\$$3
 
1981
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1982
$as_echo "$ac_res" >&6; }
 
1983
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1984
 
 
1985
} # ac_fn_c_check_decl
 
1986
cat >config.log <<_ACEOF
999
1987
This file contains any messages produced by compilers while
1000
1988
running configure, to aid debugging if configure makes a mistake.
1001
1989
 
1002
1990
It was created by GNU make $as_me 3.81, which was
1003
 
generated by GNU Autoconf 2.59.  Invocation command line was
 
1991
generated by GNU Autoconf 2.65.  Invocation command line was
1004
1992
 
1005
1993
  $ $0 $@
1006
1994
 
1007
1995
_ACEOF
 
1996
exec 5>>config.log
1008
1997
{
1009
1998
cat <<_ASUNAME
1010
1999
## --------- ##
1023
2012
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1024
2013
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1025
2014
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1026
 
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
 
2015
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1027
2016
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1028
2017
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1029
2018
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1035
2024
do
1036
2025
  IFS=$as_save_IFS
1037
2026
  test -z "$as_dir" && as_dir=.
1038
 
  echo "PATH: $as_dir"
1039
 
done
 
2027
    $as_echo "PATH: $as_dir"
 
2028
  done
 
2029
IFS=$as_save_IFS
1040
2030
 
1041
2031
} >&5
1042
2032
 
1058
2048
ac_configure_args=
1059
2049
ac_configure_args0=
1060
2050
ac_configure_args1=
1061
 
ac_sep=
1062
2051
ac_must_keep_next=false
1063
2052
for ac_pass in 1 2
1064
2053
do
1069
2058
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1070
2059
    | -silent | --silent | --silen | --sile | --sil)
1071
2060
      continue ;;
1072
 
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1073
 
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
2061
    *\'*)
 
2062
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1074
2063
    esac
1075
2064
    case $ac_pass in
1076
 
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
 
2065
    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1077
2066
    2)
1078
 
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
 
2067
      as_fn_append ac_configure_args1 " '$ac_arg'"
1079
2068
      if test $ac_must_keep_next = true; then
1080
2069
        ac_must_keep_next=false # Got value, back to normal.
1081
2070
      else
1091
2080
          -* ) ac_must_keep_next=true ;;
1092
2081
        esac
1093
2082
      fi
1094
 
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1095
 
      # Get rid of the leading space.
1096
 
      ac_sep=" "
 
2083
      as_fn_append ac_configure_args " '$ac_arg'"
1097
2084
      ;;
1098
2085
    esac
1099
2086
  done
1100
2087
done
1101
 
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1102
 
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
 
2088
{ ac_configure_args0=; unset ac_configure_args0;}
 
2089
{ ac_configure_args1=; unset ac_configure_args1;}
1103
2090
 
1104
2091
# When interrupted or exit'd, cleanup temporary files, and complete
1105
2092
# config.log.  We remove comments because anyway the quotes in there
1106
2093
# would cause problems or look ugly.
1107
 
# WARNING: Be sure not to use single quotes in there, as some shells,
1108
 
# such as our DU 5.0 friend, will then `close' the trap.
 
2094
# WARNING: Use '\'' to represent an apostrophe within the trap.
 
2095
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1109
2096
trap 'exit_status=$?
1110
2097
  # Save into config.log some information that might help in debugging.
1111
2098
  {
1118
2105
_ASBOX
1119
2106
    echo
1120
2107
    # The following way of writing the cache mishandles newlines in values,
1121
 
{
 
2108
(
 
2109
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
 
2110
    eval ac_val=\$$ac_var
 
2111
    case $ac_val in #(
 
2112
    *${as_nl}*)
 
2113
      case $ac_var in #(
 
2114
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
 
2115
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
 
2116
      esac
 
2117
      case $ac_var in #(
 
2118
      _ | IFS | as_nl) ;; #(
 
2119
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 
2120
      *) { eval $ac_var=; unset $ac_var;} ;;
 
2121
      esac ;;
 
2122
    esac
 
2123
  done
1122
2124
  (set) 2>&1 |
1123
 
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1124
 
    *ac_space=\ *)
 
2125
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
 
2126
    *${as_nl}ac_space=\ *)
1125
2127
      sed -n \
1126
 
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1127
 
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1128
 
      ;;
 
2128
        "s/'\''/'\''\\\\'\'''\''/g;
 
2129
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
 
2130
      ;; #(
1129
2131
    *)
1130
 
      sed -n \
1131
 
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
2132
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1132
2133
      ;;
1133
 
    esac;
1134
 
}
 
2134
    esac |
 
2135
    sort
 
2136
)
1135
2137
    echo
1136
2138
 
1137
2139
    cat <<\_ASBOX
1142
2144
    echo
1143
2145
    for ac_var in $ac_subst_vars
1144
2146
    do
1145
 
      eval ac_val=$`echo $ac_var`
1146
 
      echo "$ac_var='"'"'$ac_val'"'"'"
 
2147
      eval ac_val=\$$ac_var
 
2148
      case $ac_val in
 
2149
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
2150
      esac
 
2151
      $as_echo "$ac_var='\''$ac_val'\''"
1147
2152
    done | sort
1148
2153
    echo
1149
2154
 
1150
2155
    if test -n "$ac_subst_files"; then
1151
2156
      cat <<\_ASBOX
1152
 
## ------------- ##
1153
 
## Output files. ##
1154
 
## ------------- ##
 
2157
## ------------------- ##
 
2158
## File substitutions. ##
 
2159
## ------------------- ##
1155
2160
_ASBOX
1156
2161
      echo
1157
2162
      for ac_var in $ac_subst_files
1158
2163
      do
1159
 
        eval ac_val=$`echo $ac_var`
1160
 
        echo "$ac_var='"'"'$ac_val'"'"'"
 
2164
        eval ac_val=\$$ac_var
 
2165
        case $ac_val in
 
2166
        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
2167
        esac
 
2168
        $as_echo "$ac_var='\''$ac_val'\''"
1161
2169
      done | sort
1162
2170
      echo
1163
2171
    fi
1169
2177
## ----------- ##
1170
2178
_ASBOX
1171
2179
      echo
1172
 
      sed "/^$/d" confdefs.h | sort
 
2180
      cat confdefs.h
1173
2181
      echo
1174
2182
    fi
1175
2183
    test "$ac_signal" != 0 &&
1176
 
      echo "$as_me: caught signal $ac_signal"
1177
 
    echo "$as_me: exit $exit_status"
 
2184
      $as_echo "$as_me: caught signal $ac_signal"
 
2185
    $as_echo "$as_me: exit $exit_status"
1178
2186
  } >&5
1179
 
  rm -f core *.core &&
1180
 
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
 
2187
  rm -f core *.core core.conftest.* &&
 
2188
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1181
2189
    exit $exit_status
1182
 
     ' 0
 
2190
' 0
1183
2191
for ac_signal in 1 2 13 15; do
1184
 
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
 
2192
  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1185
2193
done
1186
2194
ac_signal=0
1187
2195
 
1188
2196
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1189
 
rm -rf conftest* confdefs.h
1190
 
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1191
 
echo >confdefs.h
 
2197
rm -f -r conftest* confdefs.h
 
2198
 
 
2199
$as_echo "/* confdefs.h */" > confdefs.h
1192
2200
 
1193
2201
# Predefined preprocessor variables.
1194
2202
 
1196
2204
#define PACKAGE_NAME "$PACKAGE_NAME"
1197
2205
_ACEOF
1198
2206
 
1199
 
 
1200
2207
cat >>confdefs.h <<_ACEOF
1201
2208
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1202
2209
_ACEOF
1203
2210
 
1204
 
 
1205
2211
cat >>confdefs.h <<_ACEOF
1206
2212
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1207
2213
_ACEOF
1208
2214
 
1209
 
 
1210
2215
cat >>confdefs.h <<_ACEOF
1211
2216
#define PACKAGE_STRING "$PACKAGE_STRING"
1212
2217
_ACEOF
1213
2218
 
1214
 
 
1215
2219
cat >>confdefs.h <<_ACEOF
1216
2220
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1217
2221
_ACEOF
1218
2222
 
 
2223
cat >>confdefs.h <<_ACEOF
 
2224
#define PACKAGE_URL "$PACKAGE_URL"
 
2225
_ACEOF
 
2226
 
1219
2227
 
1220
2228
# Let the site file select an alternate cache file if it wants to.
1221
 
# Prefer explicitly selected file to automatically selected ones.
1222
 
if test -z "$CONFIG_SITE"; then
1223
 
  if test "x$prefix" != xNONE; then
1224
 
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1225
 
  else
1226
 
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1227
 
  fi
 
2229
# Prefer an explicitly selected file to automatically selected ones.
 
2230
ac_site_file1=NONE
 
2231
ac_site_file2=NONE
 
2232
if test -n "$CONFIG_SITE"; then
 
2233
  ac_site_file1=$CONFIG_SITE
 
2234
elif test "x$prefix" != xNONE; then
 
2235
  ac_site_file1=$prefix/share/config.site
 
2236
  ac_site_file2=$prefix/etc/config.site
 
2237
else
 
2238
  ac_site_file1=$ac_default_prefix/share/config.site
 
2239
  ac_site_file2=$ac_default_prefix/etc/config.site
1228
2240
fi
1229
 
for ac_site_file in $CONFIG_SITE; do
1230
 
  if test -r "$ac_site_file"; then
1231
 
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1232
 
echo "$as_me: loading site script $ac_site_file" >&6;}
 
2241
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
 
2242
do
 
2243
  test "x$ac_site_file" = xNONE && continue
 
2244
  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
 
2245
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
 
2246
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1233
2247
    sed 's/^/| /' "$ac_site_file" >&5
1234
2248
    . "$ac_site_file"
1235
2249
  fi
1236
2250
done
1237
2251
 
1238
2252
if test -r "$cache_file"; then
1239
 
  # Some versions of bash will fail to source /dev/null (special
1240
 
  # files actually), so we avoid doing that.
1241
 
  if test -f "$cache_file"; then
1242
 
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1243
 
echo "$as_me: loading cache $cache_file" >&6;}
 
2253
  # Some versions of bash will fail to source /dev/null (special files
 
2254
  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
 
2255
  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
 
2256
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
 
2257
$as_echo "$as_me: loading cache $cache_file" >&6;}
1244
2258
    case $cache_file in
1245
 
      [\\/]* | ?:[\\/]* ) . $cache_file;;
1246
 
      *)                      . ./$cache_file;;
 
2259
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
 
2260
      *)                      . "./$cache_file";;
1247
2261
    esac
1248
2262
  fi
1249
2263
else
1250
 
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1251
 
echo "$as_me: creating cache $cache_file" >&6;}
 
2264
  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
 
2265
$as_echo "$as_me: creating cache $cache_file" >&6;}
1252
2266
  >$cache_file
1253
2267
fi
1254
2268
 
1255
2269
# Check that the precious variables saved in the cache have kept the same
1256
2270
# value.
1257
2271
ac_cache_corrupted=false
1258
 
for ac_var in `(set) 2>&1 |
1259
 
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
 
2272
for ac_var in $ac_precious_vars; do
1260
2273
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1261
2274
  eval ac_new_set=\$ac_env_${ac_var}_set
1262
 
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1263
 
  eval ac_new_val="\$ac_env_${ac_var}_value"
 
2275
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
 
2276
  eval ac_new_val=\$ac_env_${ac_var}_value
1264
2277
  case $ac_old_set,$ac_new_set in
1265
2278
    set,)
1266
 
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1267
 
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
2279
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
2280
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1268
2281
      ac_cache_corrupted=: ;;
1269
2282
    ,set)
1270
 
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1271
 
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
2283
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
 
2284
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1272
2285
      ac_cache_corrupted=: ;;
1273
2286
    ,);;
1274
2287
    *)
1275
2288
      if test "x$ac_old_val" != "x$ac_new_val"; then
1276
 
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1277
 
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1278
 
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1279
 
echo "$as_me:   former value:  $ac_old_val" >&2;}
1280
 
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1281
 
echo "$as_me:   current value: $ac_new_val" >&2;}
1282
 
        ac_cache_corrupted=:
 
2289
        # differences in whitespace do not lead to failure.
 
2290
        ac_old_val_w=`echo x $ac_old_val`
 
2291
        ac_new_val_w=`echo x $ac_new_val`
 
2292
        if test "$ac_old_val_w" != "$ac_new_val_w"; then
 
2293
          { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
 
2294
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
2295
          ac_cache_corrupted=:
 
2296
        else
 
2297
          { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
 
2298
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
 
2299
          eval $ac_var=\$ac_old_val
 
2300
        fi
 
2301
        { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
 
2302
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
 
2303
        { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
 
2304
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1283
2305
      fi;;
1284
2306
  esac
1285
2307
  # Pass precious variables to config.status.
1286
2308
  if test "$ac_new_set" = set; then
1287
2309
    case $ac_new_val in
1288
 
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1289
 
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
2310
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1290
2311
    *) ac_arg=$ac_var=$ac_new_val ;;
1291
2312
    esac
1292
2313
    case " $ac_configure_args " in
1293
2314
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1294
 
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
 
2315
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1295
2316
    esac
1296
2317
  fi
1297
2318
done
1298
2319
if $ac_cache_corrupted; then
1299
 
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1300
 
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1301
 
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1302
 
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1303
 
   { (exit 1); exit 1; }; }
 
2320
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
2321
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2322
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
 
2323
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
2324
  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1304
2325
fi
 
2326
## -------------------- ##
 
2327
## Main body of script. ##
 
2328
## -------------------- ##
1305
2329
 
1306
2330
ac_ext=c
1307
2331
ac_cpp='$CPP $CPPFLAGS'
1315
2339
 
1316
2340
 
1317
2341
 
1318
 
 
1319
 
 
1320
 
 
1321
 
 
1322
 
 
1323
 
 
1324
 
 
1325
 
 
1326
 
 
1327
 
 
1328
 
 
1329
 
 
1330
 
 
1331
 
 
1332
 
 
1333
 
 
1334
 
 
1335
 
 
1336
 
 
1337
 
 
1338
 
 
1339
 
 
1340
 
 
1341
 
 
1342
 
echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1343
 
echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1344
 
    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1345
 
if test "${enable_maintainer_mode+set}" = set; then
1346
 
  enableval="$enable_maintainer_mode"
1347
 
  USE_MAINTAINER_MODE=$enableval
 
2342
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
 
2343
$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
 
2344
    # Check whether --enable-maintainer-mode was given.
 
2345
if test "${enable_maintainer_mode+set}" = set; then :
 
2346
  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
1348
2347
else
1349
2348
  USE_MAINTAINER_MODE=no
1350
 
fi;
1351
 
  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1352
 
echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1353
 
 
1354
 
 
1355
 
if test $USE_MAINTAINER_MODE = yes; then
 
2349
fi
 
2350
 
 
2351
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
 
2352
$as_echo "$USE_MAINTAINER_MODE" >&6; }
 
2353
   if test $USE_MAINTAINER_MODE = yes; then
1356
2354
  MAINTAINER_MODE_TRUE=
1357
2355
  MAINTAINER_MODE_FALSE='#'
1358
2356
else
1366
2364
 
1367
2365
# Autoconf setup
1368
2366
ac_aux_dir=
1369
 
for ac_dir in config $srcdir/config; do
1370
 
  if test -f $ac_dir/install-sh; then
1371
 
    ac_aux_dir=$ac_dir
1372
 
    ac_install_sh="$ac_aux_dir/install-sh -c"
1373
 
    break
1374
 
  elif test -f $ac_dir/install.sh; then
1375
 
    ac_aux_dir=$ac_dir
1376
 
    ac_install_sh="$ac_aux_dir/install.sh -c"
1377
 
    break
1378
 
  elif test -f $ac_dir/shtool; then
1379
 
    ac_aux_dir=$ac_dir
1380
 
    ac_install_sh="$ac_aux_dir/shtool install -c"
1381
 
    break
1382
 
  fi
 
2367
for ac_dir in config "$srcdir"/config; do
 
2368
  for ac_t in install-sh install.sh shtool; do
 
2369
    if test -f "$ac_dir/$ac_t"; then
 
2370
      ac_aux_dir=$ac_dir
 
2371
      ac_install_sh="$ac_aux_dir/$ac_t -c"
 
2372
      break 2
 
2373
    fi
 
2374
  done
1383
2375
done
1384
2376
if test -z "$ac_aux_dir"; then
1385
 
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1386
 
echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1387
 
   { (exit 1); exit 1; }; }
 
2377
  as_fn_error "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
1388
2378
fi
1389
 
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1390
 
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1391
 
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1392
 
 
1393
 
 
1394
 
          ac_config_headers="$ac_config_headers config.h"
 
2379
 
 
2380
# These three variables are undocumented and unsupported,
 
2381
# and are intended to be withdrawn in a future Autoconf release.
 
2382
# They can cause serious problems if a builder's source tree is in a directory
 
2383
# whose full name contains unusual characters.
 
2384
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
 
2385
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
 
2386
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
 
2387
 
 
2388
 
 
2389
 
 
2390
ac_config_headers="$ac_config_headers config.h"
1395
2391
 
1396
2392
 
1397
2393
# Automake setup
1398
 
am__api_version="1.9"
 
2394
am__api_version='1.11'
 
2395
 
1399
2396
# Find a good install program.  We prefer a C program (faster),
1400
2397
# so one script is as good as another.  But avoid the broken or
1401
2398
# incompatible versions:
1409
2406
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1410
2407
# OS/2's system install, which has a completely different semantic
1411
2408
# ./install, which can be erroneously created by make from ./install.sh.
1412
 
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1413
 
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
 
2409
# Reject install programs that cannot install multiple files.
 
2410
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
 
2411
$as_echo_n "checking for a BSD-compatible install... " >&6; }
1414
2412
if test -z "$INSTALL"; then
1415
 
if test "${ac_cv_path_install+set}" = set; then
1416
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2413
if test "${ac_cv_path_install+set}" = set; then :
 
2414
  $as_echo_n "(cached) " >&6
1417
2415
else
1418
2416
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1419
2417
for as_dir in $PATH
1420
2418
do
1421
2419
  IFS=$as_save_IFS
1422
2420
  test -z "$as_dir" && as_dir=.
1423
 
  # Account for people who put trailing slashes in PATH elements.
1424
 
case $as_dir/ in
1425
 
  ./ | .// | /cC/* | \
 
2421
    # Account for people who put trailing slashes in PATH elements.
 
2422
case $as_dir/ in #((
 
2423
  ./ | .// | /[cC]/* | \
1426
2424
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1427
 
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
2425
  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
1428
2426
  /usr/ucb/* ) ;;
1429
2427
  *)
1430
2428
    # OSF1 and SCO ODT 3.0 have their own names for install.
1432
2430
    # by default.
1433
2431
    for ac_prog in ginstall scoinst install; do
1434
2432
      for ac_exec_ext in '' $ac_executable_extensions; do
1435
 
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
 
2433
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1436
2434
          if test $ac_prog = install &&
1437
2435
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1438
2436
            # AIX install.  It has an incompatible calling convention.
1442
2440
            # program-specific install script used by HP pwplus--don't use.
1443
2441
            :
1444
2442
          else
1445
 
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1446
 
            break 3
 
2443
            rm -rf conftest.one conftest.two conftest.dir
 
2444
            echo one > conftest.one
 
2445
            echo two > conftest.two
 
2446
            mkdir conftest.dir
 
2447
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
 
2448
              test -s conftest.one && test -s conftest.two &&
 
2449
              test -s conftest.dir/conftest.one &&
 
2450
              test -s conftest.dir/conftest.two
 
2451
            then
 
2452
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
2453
              break 3
 
2454
            fi
1447
2455
          fi
1448
2456
        fi
1449
2457
      done
1450
2458
    done
1451
2459
    ;;
1452
2460
esac
1453
 
done
1454
 
 
 
2461
 
 
2462
  done
 
2463
IFS=$as_save_IFS
 
2464
 
 
2465
rm -rf conftest.one conftest.two conftest.dir
1455
2466
 
1456
2467
fi
1457
2468
  if test "${ac_cv_path_install+set}" = set; then
1458
2469
    INSTALL=$ac_cv_path_install
1459
2470
  else
1460
 
    # As a last resort, use the slow shell script.  We don't cache a
1461
 
    # path for INSTALL within a source directory, because that will
 
2471
    # As a last resort, use the slow shell script.  Don't cache a
 
2472
    # value for INSTALL within a source directory, because that will
1462
2473
    # break other packages using the cache if that directory is
1463
 
    # removed, or if the path is relative.
 
2474
    # removed, or if the value is a relative name.
1464
2475
    INSTALL=$ac_install_sh
1465
2476
  fi
1466
2477
fi
1467
 
echo "$as_me:$LINENO: result: $INSTALL" >&5
1468
 
echo "${ECHO_T}$INSTALL" >&6
 
2478
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
 
2479
$as_echo "$INSTALL" >&6; }
1469
2480
 
1470
2481
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1471
2482
# It thinks the first close brace ends the variable substitution.
1475
2486
 
1476
2487
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1477
2488
 
1478
 
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1479
 
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
 
2489
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
 
2490
$as_echo_n "checking whether build environment is sane... " >&6; }
1480
2491
# Just in case
1481
2492
sleep 1
1482
2493
echo timestamp > conftest.file
 
2494
# Reject unsafe characters in $srcdir or the absolute working directory
 
2495
# name.  Accept space and tab only in the latter.
 
2496
am_lf='
 
2497
'
 
2498
case `pwd` in
 
2499
  *[\\\"\#\$\&\'\`$am_lf]*)
 
2500
    as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
 
2501
esac
 
2502
case $srcdir in
 
2503
  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
 
2504
    as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
 
2505
esac
 
2506
 
1483
2507
# Do `set' in a subshell so we don't clobber the current shell's
1484
2508
# arguments.  Must try -L first in case configure is actually a
1485
2509
# symlink; some systems play weird games with the mod time of symlinks
1486
2510
# (eg FreeBSD returns the mod time of the symlink's containing
1487
2511
# directory).
1488
2512
if (
1489
 
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
 
2513
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
1490
2514
   if test "$*" = "X"; then
1491
2515
      # -L didn't work.
1492
 
      set X `ls -t $srcdir/configure conftest.file`
 
2516
      set X `ls -t "$srcdir/configure" conftest.file`
1493
2517
   fi
1494
2518
   rm -f conftest.file
1495
2519
   if test "$*" != "X $srcdir/configure conftest.file" \
1499
2523
      # if, for instance, CONFIG_SHELL is bash and it inherits a
1500
2524
      # broken ls alias from the environment.  This has actually
1501
2525
      # happened.  Such a system could not be considered "sane".
1502
 
      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1503
 
alias in your environment" >&5
1504
 
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1505
 
alias in your environment" >&2;}
1506
 
   { (exit 1); exit 1; }; }
 
2526
      as_fn_error "ls -t appears to fail.  Make sure there is not a broken
 
2527
alias in your environment" "$LINENO" 5
1507
2528
   fi
1508
2529
 
1509
2530
   test "$2" = conftest.file
1512
2533
   # Ok.
1513
2534
   :
1514
2535
else
1515
 
   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1516
 
Check your system clock" >&5
1517
 
echo "$as_me: error: newly created file is older than distributed files!
1518
 
Check your system clock" >&2;}
1519
 
   { (exit 1); exit 1; }; }
 
2536
   as_fn_error "newly created file is older than distributed files!
 
2537
Check your system clock" "$LINENO" 5
1520
2538
fi
1521
 
echo "$as_me:$LINENO: result: yes" >&5
1522
 
echo "${ECHO_T}yes" >&6
 
2539
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
2540
$as_echo "yes" >&6; }
1523
2541
test "$program_prefix" != NONE &&
1524
 
  program_transform_name="s,^,$program_prefix,;$program_transform_name"
 
2542
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
1525
2543
# Use a double $ so make ignores it.
1526
2544
test "$program_suffix" != NONE &&
1527
 
  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1528
 
# Double any \ or $.  echo might interpret backslashes.
 
2545
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
 
2546
# Double any \ or $.
1529
2547
# By default was `s,x,x', remove it if useless.
1530
 
cat <<\_ACEOF >conftest.sed
1531
 
s/[\\$]/&&/g;s/;s,x,x,$//
1532
 
_ACEOF
1533
 
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1534
 
rm conftest.sed
 
2548
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
 
2549
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
1535
2550
 
1536
2551
# expand $ac_aux_dir to an absolute path
1537
2552
am_aux_dir=`cd $ac_aux_dir && pwd`
1538
2553
 
1539
 
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
 
2554
if test x"${MISSING+set}" != xset; then
 
2555
  case $am_aux_dir in
 
2556
  *\ * | *\     *)
 
2557
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
 
2558
  *)
 
2559
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
 
2560
  esac
 
2561
fi
1540
2562
# Use eval to expand $SHELL
1541
2563
if eval "$MISSING --run true"; then
1542
2564
  am_missing_run="$MISSING --run "
1543
2565
else
1544
2566
  am_missing_run=
1545
 
  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1546
 
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1547
 
fi
1548
 
 
1549
 
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1550
 
  # We used to keeping the `.' as first argument, in order to
1551
 
  # allow $(mkdir_p) to be used without argument.  As in
1552
 
  #   $(mkdir_p) $(somedir)
1553
 
  # where $(somedir) is conditionally defined.  However this is wrong
1554
 
  # for two reasons:
1555
 
  #  1. if the package is installed by a user who cannot write `.'
1556
 
  #     make install will fail,
1557
 
  #  2. the above comment should most certainly read
1558
 
  #     $(mkdir_p) $(DESTDIR)$(somedir)
1559
 
  #     so it does not work when $(somedir) is undefined and
1560
 
  #     $(DESTDIR) is not.
1561
 
  #  To support the latter case, we have to write
1562
 
  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1563
 
  #  so the `.' trick is pointless.
1564
 
  mkdir_p='mkdir -p --'
1565
 
else
1566
 
  # On NextStep and OpenStep, the `mkdir' command does not
1567
 
  # recognize any option.  It will interpret all options as
1568
 
  # directories to create, and then abort because `.' already
1569
 
  # exists.
1570
 
  for d in ./-p ./--version;
1571
 
  do
1572
 
    test -d $d && rmdir $d
1573
 
  done
1574
 
  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1575
 
  if test -f "$ac_aux_dir/mkinstalldirs"; then
1576
 
    mkdir_p='$(mkinstalldirs)'
1577
 
  else
1578
 
    mkdir_p='$(install_sh) -d'
1579
 
  fi
1580
 
fi
 
2567
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
 
2568
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
 
2569
fi
 
2570
 
 
2571
if test x"${install_sh}" != xset; then
 
2572
  case $am_aux_dir in
 
2573
  *\ * | *\     *)
 
2574
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
 
2575
  *)
 
2576
    install_sh="\${SHELL} $am_aux_dir/install-sh"
 
2577
  esac
 
2578
fi
 
2579
 
 
2580
# Installed binaries are usually stripped using `strip' when the user
 
2581
# run `make install-strip'.  However `strip' might not be the right
 
2582
# tool to use in cross-compilation environments, therefore Automake
 
2583
# will honor the `STRIP' environment variable to overrule this program.
 
2584
if test "$cross_compiling" != no; then
 
2585
  if test -n "$ac_tool_prefix"; then
 
2586
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
2587
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
2588
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2589
$as_echo_n "checking for $ac_word... " >&6; }
 
2590
if test "${ac_cv_prog_STRIP+set}" = set; then :
 
2591
  $as_echo_n "(cached) " >&6
 
2592
else
 
2593
  if test -n "$STRIP"; then
 
2594
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
2595
else
 
2596
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2597
for as_dir in $PATH
 
2598
do
 
2599
  IFS=$as_save_IFS
 
2600
  test -z "$as_dir" && as_dir=.
 
2601
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2602
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2603
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
2604
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2605
    break 2
 
2606
  fi
 
2607
done
 
2608
  done
 
2609
IFS=$as_save_IFS
 
2610
 
 
2611
fi
 
2612
fi
 
2613
STRIP=$ac_cv_prog_STRIP
 
2614
if test -n "$STRIP"; then
 
2615
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
 
2616
$as_echo "$STRIP" >&6; }
 
2617
else
 
2618
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2619
$as_echo "no" >&6; }
 
2620
fi
 
2621
 
 
2622
 
 
2623
fi
 
2624
if test -z "$ac_cv_prog_STRIP"; then
 
2625
  ac_ct_STRIP=$STRIP
 
2626
  # Extract the first word of "strip", so it can be a program name with args.
 
2627
set dummy strip; ac_word=$2
 
2628
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2629
$as_echo_n "checking for $ac_word... " >&6; }
 
2630
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
 
2631
  $as_echo_n "(cached) " >&6
 
2632
else
 
2633
  if test -n "$ac_ct_STRIP"; then
 
2634
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
2635
else
 
2636
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2637
for as_dir in $PATH
 
2638
do
 
2639
  IFS=$as_save_IFS
 
2640
  test -z "$as_dir" && as_dir=.
 
2641
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2642
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2643
    ac_cv_prog_ac_ct_STRIP="strip"
 
2644
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2645
    break 2
 
2646
  fi
 
2647
done
 
2648
  done
 
2649
IFS=$as_save_IFS
 
2650
 
 
2651
fi
 
2652
fi
 
2653
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
2654
if test -n "$ac_ct_STRIP"; then
 
2655
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
 
2656
$as_echo "$ac_ct_STRIP" >&6; }
 
2657
else
 
2658
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2659
$as_echo "no" >&6; }
 
2660
fi
 
2661
 
 
2662
  if test "x$ac_ct_STRIP" = x; then
 
2663
    STRIP=":"
 
2664
  else
 
2665
    case $cross_compiling:$ac_tool_warned in
 
2666
yes:)
 
2667
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
2668
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
2669
ac_tool_warned=yes ;;
 
2670
esac
 
2671
    STRIP=$ac_ct_STRIP
 
2672
  fi
 
2673
else
 
2674
  STRIP="$ac_cv_prog_STRIP"
 
2675
fi
 
2676
 
 
2677
fi
 
2678
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
 
2679
 
 
2680
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
 
2681
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
 
2682
if test -z "$MKDIR_P"; then
 
2683
  if test "${ac_cv_path_mkdir+set}" = set; then :
 
2684
  $as_echo_n "(cached) " >&6
 
2685
else
 
2686
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2687
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
 
2688
do
 
2689
  IFS=$as_save_IFS
 
2690
  test -z "$as_dir" && as_dir=.
 
2691
    for ac_prog in mkdir gmkdir; do
 
2692
         for ac_exec_ext in '' $ac_executable_extensions; do
 
2693
           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
 
2694
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
 
2695
             'mkdir (GNU coreutils) '* | \
 
2696
             'mkdir (coreutils) '* | \
 
2697
             'mkdir (fileutils) '4.1*)
 
2698
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
 
2699
               break 3;;
 
2700
           esac
 
2701
         done
 
2702
       done
 
2703
  done
 
2704
IFS=$as_save_IFS
 
2705
 
 
2706
fi
 
2707
 
 
2708
  test -d ./--version && rmdir ./--version
 
2709
  if test "${ac_cv_path_mkdir+set}" = set; then
 
2710
    MKDIR_P="$ac_cv_path_mkdir -p"
 
2711
  else
 
2712
    # As a last resort, use the slow shell script.  Don't cache a
 
2713
    # value for MKDIR_P within a source directory, because that will
 
2714
    # break other packages using the cache if that directory is
 
2715
    # removed, or if the value is a relative name.
 
2716
    MKDIR_P="$ac_install_sh -d"
 
2717
  fi
 
2718
fi
 
2719
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
 
2720
$as_echo "$MKDIR_P" >&6; }
 
2721
 
 
2722
mkdir_p="$MKDIR_P"
 
2723
case $mkdir_p in
 
2724
  [\\/$]* | ?:[\\/]*) ;;
 
2725
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
 
2726
esac
1581
2727
 
1582
2728
for ac_prog in gawk mawk nawk awk
1583
2729
do
1584
2730
  # Extract the first word of "$ac_prog", so it can be a program name with args.
1585
2731
set dummy $ac_prog; ac_word=$2
1586
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1587
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1588
 
if test "${ac_cv_prog_AWK+set}" = set; then
1589
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2732
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2733
$as_echo_n "checking for $ac_word... " >&6; }
 
2734
if test "${ac_cv_prog_AWK+set}" = set; then :
 
2735
  $as_echo_n "(cached) " >&6
1590
2736
else
1591
2737
  if test -n "$AWK"; then
1592
2738
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1596
2742
do
1597
2743
  IFS=$as_save_IFS
1598
2744
  test -z "$as_dir" && as_dir=.
1599
 
  for ac_exec_ext in '' $ac_executable_extensions; do
1600
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2745
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2746
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1601
2747
    ac_cv_prog_AWK="$ac_prog"
1602
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2748
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1603
2749
    break 2
1604
2750
  fi
1605
2751
done
1606
 
done
 
2752
  done
 
2753
IFS=$as_save_IFS
1607
2754
 
1608
2755
fi
1609
2756
fi
1610
2757
AWK=$ac_cv_prog_AWK
1611
2758
if test -n "$AWK"; then
1612
 
  echo "$as_me:$LINENO: result: $AWK" >&5
1613
 
echo "${ECHO_T}$AWK" >&6
 
2759
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
 
2760
$as_echo "$AWK" >&6; }
1614
2761
else
1615
 
  echo "$as_me:$LINENO: result: no" >&5
1616
 
echo "${ECHO_T}no" >&6
 
2762
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2763
$as_echo "no" >&6; }
1617
2764
fi
1618
2765
 
 
2766
 
1619
2767
  test -n "$AWK" && break
1620
2768
done
1621
2769
 
1622
 
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1623
 
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1624
 
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1625
 
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1626
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2770
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
2771
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
 
2772
set x ${MAKE-make}
 
2773
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
 
2774
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
 
2775
  $as_echo_n "(cached) " >&6
1627
2776
else
1628
2777
  cat >conftest.make <<\_ACEOF
 
2778
SHELL = /bin/sh
1629
2779
all:
1630
 
        @echo 'ac_maketemp="$(MAKE)"'
 
2780
        @echo '@@@%%%=$(MAKE)=@@@%%%'
1631
2781
_ACEOF
1632
2782
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1633
 
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1634
 
if test -n "$ac_maketemp"; then
1635
 
  eval ac_cv_prog_make_${ac_make}_set=yes
1636
 
else
1637
 
  eval ac_cv_prog_make_${ac_make}_set=no
1638
 
fi
 
2783
case `${MAKE-make} -f conftest.make 2>/dev/null` in
 
2784
  *@@@%%%=?*=@@@%%%*)
 
2785
    eval ac_cv_prog_make_${ac_make}_set=yes;;
 
2786
  *)
 
2787
    eval ac_cv_prog_make_${ac_make}_set=no;;
 
2788
esac
1639
2789
rm -f conftest.make
1640
2790
fi
1641
 
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1642
 
  echo "$as_me:$LINENO: result: yes" >&5
1643
 
echo "${ECHO_T}yes" >&6
 
2791
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
 
2792
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
2793
$as_echo "yes" >&6; }
1644
2794
  SET_MAKE=
1645
2795
else
1646
 
  echo "$as_me:$LINENO: result: no" >&5
1647
 
echo "${ECHO_T}no" >&6
 
2796
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2797
$as_echo "no" >&6; }
1648
2798
  SET_MAKE="MAKE=${MAKE-make}"
1649
2799
fi
1650
2800
 
1657
2807
fi
1658
2808
rmdir .tst 2>/dev/null
1659
2809
 
1660
 
# test to see if srcdir already configured
1661
 
if test "`cd $srcdir && pwd`" != "`pwd`" &&
1662
 
   test -f $srcdir/config.status; then
1663
 
  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1664
 
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1665
 
   { (exit 1); exit 1; }; }
 
2810
if test "`cd $srcdir && pwd`" != "`pwd`"; then
 
2811
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
 
2812
  # is not polluted with repeated "-I."
 
2813
  am__isrc=' -I$(srcdir)'
 
2814
  # test to see if srcdir already configured
 
2815
  if test -f $srcdir/config.status; then
 
2816
    as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
 
2817
  fi
1666
2818
fi
1667
2819
 
1668
2820
# test whether we have cygpath
1705
2857
 
1706
2858
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1707
2859
 
1708
 
install_sh=${install_sh-"$am_aux_dir/install-sh"}
1709
 
 
1710
 
# Installed binaries are usually stripped using `strip' when the user
1711
 
# run `make install-strip'.  However `strip' might not be the right
1712
 
# tool to use in cross-compilation environments, therefore Automake
1713
 
# will honor the `STRIP' environment variable to overrule this program.
1714
 
if test "$cross_compiling" != no; then
1715
 
  if test -n "$ac_tool_prefix"; then
1716
 
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1717
 
set dummy ${ac_tool_prefix}strip; ac_word=$2
1718
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1719
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1720
 
if test "${ac_cv_prog_STRIP+set}" = set; then
1721
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1722
 
else
1723
 
  if test -n "$STRIP"; then
1724
 
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1725
 
else
1726
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1727
 
for as_dir in $PATH
1728
 
do
1729
 
  IFS=$as_save_IFS
1730
 
  test -z "$as_dir" && as_dir=.
1731
 
  for ac_exec_ext in '' $ac_executable_extensions; do
1732
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1733
 
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1734
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1735
 
    break 2
1736
 
  fi
1737
 
done
1738
 
done
1739
 
 
1740
 
fi
1741
 
fi
1742
 
STRIP=$ac_cv_prog_STRIP
1743
 
if test -n "$STRIP"; then
1744
 
  echo "$as_me:$LINENO: result: $STRIP" >&5
1745
 
echo "${ECHO_T}$STRIP" >&6
1746
 
else
1747
 
  echo "$as_me:$LINENO: result: no" >&5
1748
 
echo "${ECHO_T}no" >&6
1749
 
fi
1750
 
 
1751
 
fi
1752
 
if test -z "$ac_cv_prog_STRIP"; then
1753
 
  ac_ct_STRIP=$STRIP
1754
 
  # Extract the first word of "strip", so it can be a program name with args.
1755
 
set dummy strip; ac_word=$2
1756
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1757
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1758
 
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1759
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1760
 
else
1761
 
  if test -n "$ac_ct_STRIP"; then
1762
 
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1763
 
else
1764
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1765
 
for as_dir in $PATH
1766
 
do
1767
 
  IFS=$as_save_IFS
1768
 
  test -z "$as_dir" && as_dir=.
1769
 
  for ac_exec_ext in '' $ac_executable_extensions; do
1770
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1771
 
    ac_cv_prog_ac_ct_STRIP="strip"
1772
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1773
 
    break 2
1774
 
  fi
1775
 
done
1776
 
done
1777
 
 
1778
 
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1779
 
fi
1780
 
fi
1781
 
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1782
 
if test -n "$ac_ct_STRIP"; then
1783
 
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1784
 
echo "${ECHO_T}$ac_ct_STRIP" >&6
1785
 
else
1786
 
  echo "$as_me:$LINENO: result: no" >&5
1787
 
echo "${ECHO_T}no" >&6
1788
 
fi
1789
 
 
1790
 
  STRIP=$ac_ct_STRIP
1791
 
else
1792
 
  STRIP="$ac_cv_prog_STRIP"
1793
 
fi
1794
 
 
1795
 
fi
1796
 
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1797
 
 
1798
2860
# We need awk for the "check" target.  The system "awk" is bad on
1799
2861
# some platforms.
1800
2862
# Always define AMTAR for backward compatibility.
1817
2879
if test -n "$ac_tool_prefix"; then
1818
2880
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1819
2881
set dummy ${ac_tool_prefix}gcc; ac_word=$2
1820
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1821
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1822
 
if test "${ac_cv_prog_CC+set}" = set; then
1823
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2882
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2883
$as_echo_n "checking for $ac_word... " >&6; }
 
2884
if test "${ac_cv_prog_CC+set}" = set; then :
 
2885
  $as_echo_n "(cached) " >&6
1824
2886
else
1825
2887
  if test -n "$CC"; then
1826
2888
  ac_cv_prog_CC="$CC" # Let the user override the test.
1830
2892
do
1831
2893
  IFS=$as_save_IFS
1832
2894
  test -z "$as_dir" && as_dir=.
1833
 
  for ac_exec_ext in '' $ac_executable_extensions; do
1834
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2895
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2896
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1835
2897
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1836
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2898
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1837
2899
    break 2
1838
2900
  fi
1839
2901
done
1840
 
done
 
2902
  done
 
2903
IFS=$as_save_IFS
1841
2904
 
1842
2905
fi
1843
2906
fi
1844
2907
CC=$ac_cv_prog_CC
1845
2908
if test -n "$CC"; then
1846
 
  echo "$as_me:$LINENO: result: $CC" >&5
1847
 
echo "${ECHO_T}$CC" >&6
 
2909
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
2910
$as_echo "$CC" >&6; }
1848
2911
else
1849
 
  echo "$as_me:$LINENO: result: no" >&5
1850
 
echo "${ECHO_T}no" >&6
 
2912
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2913
$as_echo "no" >&6; }
1851
2914
fi
 
2915
 
1852
2916
 
1853
2917
fi
1854
2918
if test -z "$ac_cv_prog_CC"; then
1855
2919
  ac_ct_CC=$CC
1856
2920
  # Extract the first word of "gcc", so it can be a program name with args.
1857
2921
set dummy gcc; ac_word=$2
1858
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1859
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1860
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1861
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2922
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2923
$as_echo_n "checking for $ac_word... " >&6; }
 
2924
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
 
2925
  $as_echo_n "(cached) " >&6
1862
2926
else
1863
2927
  if test -n "$ac_ct_CC"; then
1864
2928
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1868
2932
do
1869
2933
  IFS=$as_save_IFS
1870
2934
  test -z "$as_dir" && as_dir=.
1871
 
  for ac_exec_ext in '' $ac_executable_extensions; do
1872
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2935
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2936
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1873
2937
    ac_cv_prog_ac_ct_CC="gcc"
1874
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2938
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1875
2939
    break 2
1876
2940
  fi
1877
2941
done
1878
 
done
 
2942
  done
 
2943
IFS=$as_save_IFS
1879
2944
 
1880
2945
fi
1881
2946
fi
1882
2947
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1883
2948
if test -n "$ac_ct_CC"; then
1884
 
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1885
 
echo "${ECHO_T}$ac_ct_CC" >&6
 
2949
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
2950
$as_echo "$ac_ct_CC" >&6; }
1886
2951
else
1887
 
  echo "$as_me:$LINENO: result: no" >&5
1888
 
echo "${ECHO_T}no" >&6
 
2952
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2953
$as_echo "no" >&6; }
1889
2954
fi
1890
2955
 
1891
 
  CC=$ac_ct_CC
 
2956
  if test "x$ac_ct_CC" = x; then
 
2957
    CC=""
 
2958
  else
 
2959
    case $cross_compiling:$ac_tool_warned in
 
2960
yes:)
 
2961
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
2962
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
2963
ac_tool_warned=yes ;;
 
2964
esac
 
2965
    CC=$ac_ct_CC
 
2966
  fi
1892
2967
else
1893
2968
  CC="$ac_cv_prog_CC"
1894
2969
fi
1895
2970
 
1896
2971
if test -z "$CC"; then
1897
 
  if test -n "$ac_tool_prefix"; then
1898
 
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
2972
          if test -n "$ac_tool_prefix"; then
 
2973
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1899
2974
set dummy ${ac_tool_prefix}cc; ac_word=$2
1900
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1901
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1902
 
if test "${ac_cv_prog_CC+set}" = set; then
1903
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2975
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2976
$as_echo_n "checking for $ac_word... " >&6; }
 
2977
if test "${ac_cv_prog_CC+set}" = set; then :
 
2978
  $as_echo_n "(cached) " >&6
1904
2979
else
1905
2980
  if test -n "$CC"; then
1906
2981
  ac_cv_prog_CC="$CC" # Let the user override the test.
1910
2985
do
1911
2986
  IFS=$as_save_IFS
1912
2987
  test -z "$as_dir" && as_dir=.
1913
 
  for ac_exec_ext in '' $ac_executable_extensions; do
1914
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2988
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2989
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1915
2990
    ac_cv_prog_CC="${ac_tool_prefix}cc"
1916
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2991
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1917
2992
    break 2
1918
2993
  fi
1919
2994
done
1920
 
done
 
2995
  done
 
2996
IFS=$as_save_IFS
1921
2997
 
1922
2998
fi
1923
2999
fi
1924
3000
CC=$ac_cv_prog_CC
1925
3001
if test -n "$CC"; then
1926
 
  echo "$as_me:$LINENO: result: $CC" >&5
1927
 
echo "${ECHO_T}$CC" >&6
1928
 
else
1929
 
  echo "$as_me:$LINENO: result: no" >&5
1930
 
echo "${ECHO_T}no" >&6
1931
 
fi
1932
 
 
1933
 
fi
1934
 
if test -z "$ac_cv_prog_CC"; then
1935
 
  ac_ct_CC=$CC
1936
 
  # Extract the first word of "cc", so it can be a program name with args.
1937
 
set dummy cc; ac_word=$2
1938
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1939
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1940
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1941
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1942
 
else
1943
 
  if test -n "$ac_ct_CC"; then
1944
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1945
 
else
1946
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1947
 
for as_dir in $PATH
1948
 
do
1949
 
  IFS=$as_save_IFS
1950
 
  test -z "$as_dir" && as_dir=.
1951
 
  for ac_exec_ext in '' $ac_executable_extensions; do
1952
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1953
 
    ac_cv_prog_ac_ct_CC="cc"
1954
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1955
 
    break 2
 
3002
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
3003
$as_echo "$CC" >&6; }
 
3004
else
 
3005
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3006
$as_echo "no" >&6; }
 
3007
fi
 
3008
 
 
3009
 
1956
3010
  fi
1957
 
done
1958
 
done
1959
 
 
1960
 
fi
1961
 
fi
1962
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1963
 
if test -n "$ac_ct_CC"; then
1964
 
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1965
 
echo "${ECHO_T}$ac_ct_CC" >&6
1966
 
else
1967
 
  echo "$as_me:$LINENO: result: no" >&5
1968
 
echo "${ECHO_T}no" >&6
1969
 
fi
1970
 
 
1971
 
  CC=$ac_ct_CC
1972
 
else
1973
 
  CC="$ac_cv_prog_CC"
1974
 
fi
1975
 
 
1976
3011
fi
1977
3012
if test -z "$CC"; then
1978
3013
  # Extract the first word of "cc", so it can be a program name with args.
1979
3014
set dummy cc; ac_word=$2
1980
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1981
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1982
 
if test "${ac_cv_prog_CC+set}" = set; then
1983
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3015
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3016
$as_echo_n "checking for $ac_word... " >&6; }
 
3017
if test "${ac_cv_prog_CC+set}" = set; then :
 
3018
  $as_echo_n "(cached) " >&6
1984
3019
else
1985
3020
  if test -n "$CC"; then
1986
3021
  ac_cv_prog_CC="$CC" # Let the user override the test.
1991
3026
do
1992
3027
  IFS=$as_save_IFS
1993
3028
  test -z "$as_dir" && as_dir=.
1994
 
  for ac_exec_ext in '' $ac_executable_extensions; do
1995
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3029
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3030
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1996
3031
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1997
3032
       ac_prog_rejected=yes
1998
3033
       continue
1999
3034
     fi
2000
3035
    ac_cv_prog_CC="cc"
2001
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3036
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2002
3037
    break 2
2003
3038
  fi
2004
3039
done
2005
 
done
 
3040
  done
 
3041
IFS=$as_save_IFS
2006
3042
 
2007
3043
if test $ac_prog_rejected = yes; then
2008
3044
  # We found a bogon in the path, so make sure we never use it.
2020
3056
fi
2021
3057
CC=$ac_cv_prog_CC
2022
3058
if test -n "$CC"; then
2023
 
  echo "$as_me:$LINENO: result: $CC" >&5
2024
 
echo "${ECHO_T}$CC" >&6
 
3059
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
3060
$as_echo "$CC" >&6; }
2025
3061
else
2026
 
  echo "$as_me:$LINENO: result: no" >&5
2027
 
echo "${ECHO_T}no" >&6
 
3062
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3063
$as_echo "no" >&6; }
2028
3064
fi
 
3065
 
2029
3066
 
2030
3067
fi
2031
3068
if test -z "$CC"; then
2032
3069
  if test -n "$ac_tool_prefix"; then
2033
 
  for ac_prog in cl
 
3070
  for ac_prog in cl.exe
2034
3071
  do
2035
3072
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2036
3073
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2037
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2038
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2039
 
if test "${ac_cv_prog_CC+set}" = set; then
2040
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3074
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3075
$as_echo_n "checking for $ac_word... " >&6; }
 
3076
if test "${ac_cv_prog_CC+set}" = set; then :
 
3077
  $as_echo_n "(cached) " >&6
2041
3078
else
2042
3079
  if test -n "$CC"; then
2043
3080
  ac_cv_prog_CC="$CC" # Let the user override the test.
2047
3084
do
2048
3085
  IFS=$as_save_IFS
2049
3086
  test -z "$as_dir" && as_dir=.
2050
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2051
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3087
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3088
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2052
3089
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2053
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3090
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2054
3091
    break 2
2055
3092
  fi
2056
3093
done
2057
 
done
 
3094
  done
 
3095
IFS=$as_save_IFS
2058
3096
 
2059
3097
fi
2060
3098
fi
2061
3099
CC=$ac_cv_prog_CC
2062
3100
if test -n "$CC"; then
2063
 
  echo "$as_me:$LINENO: result: $CC" >&5
2064
 
echo "${ECHO_T}$CC" >&6
 
3101
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
3102
$as_echo "$CC" >&6; }
2065
3103
else
2066
 
  echo "$as_me:$LINENO: result: no" >&5
2067
 
echo "${ECHO_T}no" >&6
 
3104
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3105
$as_echo "no" >&6; }
2068
3106
fi
2069
3107
 
 
3108
 
2070
3109
    test -n "$CC" && break
2071
3110
  done
2072
3111
fi
2073
3112
if test -z "$CC"; then
2074
3113
  ac_ct_CC=$CC
2075
 
  for ac_prog in cl
 
3114
  for ac_prog in cl.exe
2076
3115
do
2077
3116
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2078
3117
set dummy $ac_prog; ac_word=$2
2079
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2080
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2081
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2082
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3118
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3119
$as_echo_n "checking for $ac_word... " >&6; }
 
3120
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
 
3121
  $as_echo_n "(cached) " >&6
2083
3122
else
2084
3123
  if test -n "$ac_ct_CC"; then
2085
3124
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2089
3128
do
2090
3129
  IFS=$as_save_IFS
2091
3130
  test -z "$as_dir" && as_dir=.
2092
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2093
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3131
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3132
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2094
3133
    ac_cv_prog_ac_ct_CC="$ac_prog"
2095
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3134
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2096
3135
    break 2
2097
3136
  fi
2098
3137
done
2099
 
done
 
3138
  done
 
3139
IFS=$as_save_IFS
2100
3140
 
2101
3141
fi
2102
3142
fi
2103
3143
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2104
3144
if test -n "$ac_ct_CC"; then
2105
 
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2106
 
echo "${ECHO_T}$ac_ct_CC" >&6
 
3145
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
3146
$as_echo "$ac_ct_CC" >&6; }
2107
3147
else
2108
 
  echo "$as_me:$LINENO: result: no" >&5
2109
 
echo "${ECHO_T}no" >&6
 
3148
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3149
$as_echo "no" >&6; }
2110
3150
fi
2111
3151
 
 
3152
 
2112
3153
  test -n "$ac_ct_CC" && break
2113
3154
done
2114
3155
 
2115
 
  CC=$ac_ct_CC
2116
 
fi
2117
 
 
2118
 
fi
2119
 
 
2120
 
 
2121
 
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2122
 
See \`config.log' for more details." >&5
2123
 
echo "$as_me: error: no acceptable C compiler found in \$PATH
2124
 
See \`config.log' for more details." >&2;}
2125
 
   { (exit 1); exit 1; }; }
 
3156
  if test "x$ac_ct_CC" = x; then
 
3157
    CC=""
 
3158
  else
 
3159
    case $cross_compiling:$ac_tool_warned in
 
3160
yes:)
 
3161
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
3162
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
3163
ac_tool_warned=yes ;;
 
3164
esac
 
3165
    CC=$ac_ct_CC
 
3166
  fi
 
3167
fi
 
3168
 
 
3169
fi
 
3170
 
 
3171
 
 
3172
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3173
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3174
as_fn_error "no acceptable C compiler found in \$PATH
 
3175
See \`config.log' for more details." "$LINENO" 5; }
2126
3176
 
2127
3177
# Provide some information about the compiler.
2128
 
echo "$as_me:$LINENO:" \
2129
 
     "checking for C compiler version" >&5
2130
 
ac_compiler=`set X $ac_compile; echo $2`
2131
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2132
 
  (eval $ac_compiler --version </dev/null >&5) 2>&5
2133
 
  ac_status=$?
2134
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2135
 
  (exit $ac_status); }
2136
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2137
 
  (eval $ac_compiler -v </dev/null >&5) 2>&5
2138
 
  ac_status=$?
2139
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2140
 
  (exit $ac_status); }
2141
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2142
 
  (eval $ac_compiler -V </dev/null >&5) 2>&5
2143
 
  ac_status=$?
2144
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2145
 
  (exit $ac_status); }
 
3178
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
 
3179
set X $ac_compile
 
3180
ac_compiler=$2
 
3181
for ac_option in --version -v -V -qversion; do
 
3182
  { { ac_try="$ac_compiler $ac_option >&5"
 
3183
case "(($ac_try" in
 
3184
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3185
  *) ac_try_echo=$ac_try;;
 
3186
esac
 
3187
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3188
$as_echo "$ac_try_echo"; } >&5
 
3189
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
 
3190
  ac_status=$?
 
3191
  if test -s conftest.err; then
 
3192
    sed '10a\
 
3193
... rest of stderr output deleted ...
 
3194
         10q' conftest.err >conftest.er1
 
3195
    cat conftest.er1 >&5
 
3196
  fi
 
3197
  rm -f conftest.er1 conftest.err
 
3198
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3199
  test $ac_status = 0; }
 
3200
done
2146
3201
 
2147
 
cat >conftest.$ac_ext <<_ACEOF
2148
 
/* confdefs.h.  */
2149
 
_ACEOF
2150
 
cat confdefs.h >>conftest.$ac_ext
2151
 
cat >>conftest.$ac_ext <<_ACEOF
 
3202
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2152
3203
/* end confdefs.h.  */
2153
3204
 
2154
3205
int
2160
3211
}
2161
3212
_ACEOF
2162
3213
ac_clean_files_save=$ac_clean_files
2163
 
ac_clean_files="$ac_clean_files a.out a.exe b.out"
 
3214
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2164
3215
# Try to create an executable without -o first, disregard a.out.
2165
3216
# It will help us diagnose broken compilers, and finding out an intuition
2166
3217
# of exeext.
2167
 
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2168
 
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2169
 
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2170
 
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2171
 
  (eval $ac_link_default) 2>&5
 
3218
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
 
3219
$as_echo_n "checking whether the C compiler works... " >&6; }
 
3220
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
3221
 
 
3222
# The possible output files:
 
3223
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
 
3224
 
 
3225
ac_rmfiles=
 
3226
for ac_file in $ac_files
 
3227
do
 
3228
  case $ac_file in
 
3229
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 
3230
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
 
3231
  esac
 
3232
done
 
3233
rm -f $ac_rmfiles
 
3234
 
 
3235
if { { ac_try="$ac_link_default"
 
3236
case "(($ac_try" in
 
3237
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3238
  *) ac_try_echo=$ac_try;;
 
3239
esac
 
3240
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3241
$as_echo "$ac_try_echo"; } >&5
 
3242
  (eval "$ac_link_default") 2>&5
2172
3243
  ac_status=$?
2173
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2174
 
  (exit $ac_status); }; then
2175
 
  # Find the output, starting from the most likely.  This scheme is
2176
 
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2177
 
# resort.
2178
 
 
2179
 
# Be careful to initialize this variable, since it used to be cached.
2180
 
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2181
 
ac_cv_exeext=
2182
 
# b.out is created by i960 compilers.
2183
 
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
 
3244
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3245
  test $ac_status = 0; }; then :
 
3246
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
 
3247
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
 
3248
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
 
3249
# so that the user can short-circuit this test for compilers unknown to
 
3250
# Autoconf.
 
3251
for ac_file in $ac_files ''
2184
3252
do
2185
3253
  test -f "$ac_file" || continue
2186
3254
  case $ac_file in
2187
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2188
 
        ;;
2189
 
    conftest.$ac_ext )
2190
 
        # This is the source file.
 
3255
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2191
3256
        ;;
2192
3257
    [ab].out )
2193
3258
        # We found the default executable, but exeext='' is most
2194
3259
        # certainly right.
2195
3260
        break;;
2196
3261
    *.* )
2197
 
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2198
 
        # FIXME: I believe we export ac_cv_exeext for Libtool,
2199
 
        # but it would be cool to find out if it's true.  Does anybody
2200
 
        # maintain Libtool? --akim.
2201
 
        export ac_cv_exeext
 
3262
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
 
3263
        then :; else
 
3264
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
3265
        fi
 
3266
        # We set ac_cv_exeext here because the later test for it is not
 
3267
        # safe: cross compilers may not add the suffix if given an `-o'
 
3268
        # argument, so we may need to know it at that point already.
 
3269
        # Even if this section looks crufty: it has the advantage of
 
3270
        # actually working.
2202
3271
        break;;
2203
3272
    * )
2204
3273
        break;;
2205
3274
  esac
2206
3275
done
 
3276
test "$ac_cv_exeext" = no && ac_cv_exeext=
 
3277
 
2207
3278
else
2208
 
  echo "$as_me: failed program was:" >&5
 
3279
  ac_file=''
 
3280
fi
 
3281
if test -z "$ac_file"; then :
 
3282
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3283
$as_echo "no" >&6; }
 
3284
$as_echo "$as_me: failed program was:" >&5
2209
3285
sed 's/^/| /' conftest.$ac_ext >&5
2210
3286
 
2211
 
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2212
 
See \`config.log' for more details." >&5
2213
 
echo "$as_me: error: C compiler cannot create executables
2214
 
See \`config.log' for more details." >&2;}
2215
 
   { (exit 77); exit 77; }; }
 
3287
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3288
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3289
{ as_fn_set_status 77
 
3290
as_fn_error "C compiler cannot create executables
 
3291
See \`config.log' for more details." "$LINENO" 5; }; }
 
3292
else
 
3293
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
3294
$as_echo "yes" >&6; }
2216
3295
fi
2217
 
 
 
3296
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
 
3297
$as_echo_n "checking for C compiler default output file name... " >&6; }
 
3298
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
 
3299
$as_echo "$ac_file" >&6; }
2218
3300
ac_exeext=$ac_cv_exeext
2219
 
echo "$as_me:$LINENO: result: $ac_file" >&5
2220
 
echo "${ECHO_T}$ac_file" >&6
2221
 
 
2222
 
# Check the compiler produces executables we can run.  If not, either
2223
 
# the compiler is broken, or we cross compile.
2224
 
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2225
 
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2226
 
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2227
 
# If not cross compiling, check that we can run a simple program.
2228
 
if test "$cross_compiling" != yes; then
2229
 
  if { ac_try='./$ac_file'
2230
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2231
 
  (eval $ac_try) 2>&5
2232
 
  ac_status=$?
2233
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234
 
  (exit $ac_status); }; }; then
2235
 
    cross_compiling=no
2236
 
  else
2237
 
    if test "$cross_compiling" = maybe; then
2238
 
        cross_compiling=yes
2239
 
    else
2240
 
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2241
 
If you meant to cross compile, use \`--host'.
2242
 
See \`config.log' for more details." >&5
2243
 
echo "$as_me: error: cannot run C compiled programs.
2244
 
If you meant to cross compile, use \`--host'.
2245
 
See \`config.log' for more details." >&2;}
2246
 
   { (exit 1); exit 1; }; }
2247
 
    fi
2248
 
  fi
2249
 
fi
2250
 
echo "$as_me:$LINENO: result: yes" >&5
2251
 
echo "${ECHO_T}yes" >&6
2252
 
 
2253
 
rm -f a.out a.exe conftest$ac_cv_exeext b.out
 
3301
 
 
3302
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2254
3303
ac_clean_files=$ac_clean_files_save
2255
 
# Check the compiler produces executables we can run.  If not, either
2256
 
# the compiler is broken, or we cross compile.
2257
 
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2258
 
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2259
 
echo "$as_me:$LINENO: result: $cross_compiling" >&5
2260
 
echo "${ECHO_T}$cross_compiling" >&6
2261
 
 
2262
 
echo "$as_me:$LINENO: checking for suffix of executables" >&5
2263
 
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2264
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2265
 
  (eval $ac_link) 2>&5
 
3304
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
 
3305
$as_echo_n "checking for suffix of executables... " >&6; }
 
3306
if { { ac_try="$ac_link"
 
3307
case "(($ac_try" in
 
3308
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3309
  *) ac_try_echo=$ac_try;;
 
3310
esac
 
3311
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3312
$as_echo "$ac_try_echo"; } >&5
 
3313
  (eval "$ac_link") 2>&5
2266
3314
  ac_status=$?
2267
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2268
 
  (exit $ac_status); }; then
 
3315
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3316
  test $ac_status = 0; }; then :
2269
3317
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2270
3318
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2271
3319
# work properly (i.e., refer to `conftest.exe'), while it won't with
2273
3321
for ac_file in conftest.exe conftest conftest.*; do
2274
3322
  test -f "$ac_file" || continue
2275
3323
  case $ac_file in
2276
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
 
3324
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2277
3325
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2278
 
          export ac_cv_exeext
2279
3326
          break;;
2280
3327
    * ) break;;
2281
3328
  esac
2282
3329
done
2283
3330
else
2284
 
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2285
 
See \`config.log' for more details." >&5
2286
 
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2287
 
See \`config.log' for more details." >&2;}
2288
 
   { (exit 1); exit 1; }; }
 
3331
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3332
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3333
as_fn_error "cannot compute suffix of executables: cannot compile and link
 
3334
See \`config.log' for more details." "$LINENO" 5; }
2289
3335
fi
2290
 
 
2291
 
rm -f conftest$ac_cv_exeext
2292
 
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2293
 
echo "${ECHO_T}$ac_cv_exeext" >&6
 
3336
rm -f conftest conftest$ac_cv_exeext
 
3337
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
 
3338
$as_echo "$ac_cv_exeext" >&6; }
2294
3339
 
2295
3340
rm -f conftest.$ac_ext
2296
3341
EXEEXT=$ac_cv_exeext
2297
3342
ac_exeext=$EXEEXT
2298
 
echo "$as_me:$LINENO: checking for suffix of object files" >&5
2299
 
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2300
 
if test "${ac_cv_objext+set}" = set; then
2301
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3343
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3344
/* end confdefs.h.  */
 
3345
#include <stdio.h>
 
3346
int
 
3347
main ()
 
3348
{
 
3349
FILE *f = fopen ("conftest.out", "w");
 
3350
 return ferror (f) || fclose (f) != 0;
 
3351
 
 
3352
  ;
 
3353
  return 0;
 
3354
}
 
3355
_ACEOF
 
3356
ac_clean_files="$ac_clean_files conftest.out"
 
3357
# Check that the compiler produces executables we can run.  If not, either
 
3358
# the compiler is broken, or we cross compile.
 
3359
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
 
3360
$as_echo_n "checking whether we are cross compiling... " >&6; }
 
3361
if test "$cross_compiling" != yes; then
 
3362
  { { ac_try="$ac_link"
 
3363
case "(($ac_try" in
 
3364
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3365
  *) ac_try_echo=$ac_try;;
 
3366
esac
 
3367
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3368
$as_echo "$ac_try_echo"; } >&5
 
3369
  (eval "$ac_link") 2>&5
 
3370
  ac_status=$?
 
3371
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3372
  test $ac_status = 0; }
 
3373
  if { ac_try='./conftest$ac_cv_exeext'
 
3374
  { { case "(($ac_try" in
 
3375
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3376
  *) ac_try_echo=$ac_try;;
 
3377
esac
 
3378
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3379
$as_echo "$ac_try_echo"; } >&5
 
3380
  (eval "$ac_try") 2>&5
 
3381
  ac_status=$?
 
3382
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3383
  test $ac_status = 0; }; }; then
 
3384
    cross_compiling=no
 
3385
  else
 
3386
    if test "$cross_compiling" = maybe; then
 
3387
        cross_compiling=yes
 
3388
    else
 
3389
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3390
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3391
as_fn_error "cannot run C compiled programs.
 
3392
If you meant to cross compile, use \`--host'.
 
3393
See \`config.log' for more details." "$LINENO" 5; }
 
3394
    fi
 
3395
  fi
 
3396
fi
 
3397
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
 
3398
$as_echo "$cross_compiling" >&6; }
 
3399
 
 
3400
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
 
3401
ac_clean_files=$ac_clean_files_save
 
3402
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
 
3403
$as_echo_n "checking for suffix of object files... " >&6; }
 
3404
if test "${ac_cv_objext+set}" = set; then :
 
3405
  $as_echo_n "(cached) " >&6
2302
3406
else
2303
 
  cat >conftest.$ac_ext <<_ACEOF
2304
 
/* confdefs.h.  */
2305
 
_ACEOF
2306
 
cat confdefs.h >>conftest.$ac_ext
2307
 
cat >>conftest.$ac_ext <<_ACEOF
 
3407
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2308
3408
/* end confdefs.h.  */
2309
3409
 
2310
3410
int
2316
3416
}
2317
3417
_ACEOF
2318
3418
rm -f conftest.o conftest.obj
2319
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2320
 
  (eval $ac_compile) 2>&5
 
3419
if { { ac_try="$ac_compile"
 
3420
case "(($ac_try" in
 
3421
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3422
  *) ac_try_echo=$ac_try;;
 
3423
esac
 
3424
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3425
$as_echo "$ac_try_echo"; } >&5
 
3426
  (eval "$ac_compile") 2>&5
2321
3427
  ac_status=$?
2322
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2323
 
  (exit $ac_status); }; then
2324
 
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
 
3428
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3429
  test $ac_status = 0; }; then :
 
3430
  for ac_file in conftest.o conftest.obj conftest.*; do
 
3431
  test -f "$ac_file" || continue;
2325
3432
  case $ac_file in
2326
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
 
3433
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2327
3434
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2328
3435
       break;;
2329
3436
  esac
2330
3437
done
2331
3438
else
2332
 
  echo "$as_me: failed program was:" >&5
 
3439
  $as_echo "$as_me: failed program was:" >&5
2333
3440
sed 's/^/| /' conftest.$ac_ext >&5
2334
3441
 
2335
 
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2336
 
See \`config.log' for more details." >&5
2337
 
echo "$as_me: error: cannot compute suffix of object files: cannot compile
2338
 
See \`config.log' for more details." >&2;}
2339
 
   { (exit 1); exit 1; }; }
 
3442
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3443
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3444
as_fn_error "cannot compute suffix of object files: cannot compile
 
3445
See \`config.log' for more details." "$LINENO" 5; }
2340
3446
fi
2341
 
 
2342
3447
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2343
3448
fi
2344
 
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2345
 
echo "${ECHO_T}$ac_cv_objext" >&6
 
3449
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
 
3450
$as_echo "$ac_cv_objext" >&6; }
2346
3451
OBJEXT=$ac_cv_objext
2347
3452
ac_objext=$OBJEXT
2348
 
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2349
 
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2350
 
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2351
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3453
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
 
3454
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
 
3455
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
 
3456
  $as_echo_n "(cached) " >&6
2352
3457
else
2353
 
  cat >conftest.$ac_ext <<_ACEOF
2354
 
/* confdefs.h.  */
2355
 
_ACEOF
2356
 
cat confdefs.h >>conftest.$ac_ext
2357
 
cat >>conftest.$ac_ext <<_ACEOF
 
3458
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2358
3459
/* end confdefs.h.  */
2359
3460
 
2360
3461
int
2368
3469
  return 0;
2369
3470
}
2370
3471
_ACEOF
2371
 
rm -f conftest.$ac_objext
2372
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2373
 
  (eval $ac_compile) 2>conftest.er1
2374
 
  ac_status=$?
2375
 
  grep -v '^ *+' conftest.er1 >conftest.err
2376
 
  rm -f conftest.er1
2377
 
  cat conftest.err >&5
2378
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2379
 
  (exit $ac_status); } &&
2380
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2381
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2382
 
  (eval $ac_try) 2>&5
2383
 
  ac_status=$?
2384
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385
 
  (exit $ac_status); }; } &&
2386
 
         { ac_try='test -s conftest.$ac_objext'
2387
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2388
 
  (eval $ac_try) 2>&5
2389
 
  ac_status=$?
2390
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391
 
  (exit $ac_status); }; }; then
 
3472
if ac_fn_c_try_compile "$LINENO"; then :
2392
3473
  ac_compiler_gnu=yes
2393
3474
else
2394
 
  echo "$as_me: failed program was:" >&5
2395
 
sed 's/^/| /' conftest.$ac_ext >&5
2396
 
 
2397
 
ac_compiler_gnu=no
 
3475
  ac_compiler_gnu=no
2398
3476
fi
2399
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3477
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2400
3478
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2401
3479
 
2402
3480
fi
2403
 
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2404
 
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2405
 
GCC=`test $ac_compiler_gnu = yes && echo yes`
 
3481
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
 
3482
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
 
3483
if test $ac_compiler_gnu = yes; then
 
3484
  GCC=yes
 
3485
else
 
3486
  GCC=
 
3487
fi
2406
3488
ac_test_CFLAGS=${CFLAGS+set}
2407
3489
ac_save_CFLAGS=$CFLAGS
2408
 
CFLAGS="-g"
2409
 
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2410
 
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2411
 
if test "${ac_cv_prog_cc_g+set}" = set; then
2412
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2413
 
else
2414
 
  cat >conftest.$ac_ext <<_ACEOF
2415
 
/* confdefs.h.  */
2416
 
_ACEOF
2417
 
cat confdefs.h >>conftest.$ac_ext
2418
 
cat >>conftest.$ac_ext <<_ACEOF
2419
 
/* end confdefs.h.  */
2420
 
 
2421
 
int
2422
 
main ()
2423
 
{
2424
 
 
2425
 
  ;
2426
 
  return 0;
2427
 
}
2428
 
_ACEOF
2429
 
rm -f conftest.$ac_objext
2430
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2431
 
  (eval $ac_compile) 2>conftest.er1
2432
 
  ac_status=$?
2433
 
  grep -v '^ *+' conftest.er1 >conftest.err
2434
 
  rm -f conftest.er1
2435
 
  cat conftest.err >&5
2436
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2437
 
  (exit $ac_status); } &&
2438
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2439
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2440
 
  (eval $ac_try) 2>&5
2441
 
  ac_status=$?
2442
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2443
 
  (exit $ac_status); }; } &&
2444
 
         { ac_try='test -s conftest.$ac_objext'
2445
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2446
 
  (eval $ac_try) 2>&5
2447
 
  ac_status=$?
2448
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2449
 
  (exit $ac_status); }; }; then
2450
 
  ac_cv_prog_cc_g=yes
2451
 
else
2452
 
  echo "$as_me: failed program was:" >&5
2453
 
sed 's/^/| /' conftest.$ac_ext >&5
2454
 
 
2455
 
ac_cv_prog_cc_g=no
2456
 
fi
2457
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2458
 
fi
2459
 
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2460
 
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
 
3490
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
 
3491
$as_echo_n "checking whether $CC accepts -g... " >&6; }
 
3492
if test "${ac_cv_prog_cc_g+set}" = set; then :
 
3493
  $as_echo_n "(cached) " >&6
 
3494
else
 
3495
  ac_save_c_werror_flag=$ac_c_werror_flag
 
3496
   ac_c_werror_flag=yes
 
3497
   ac_cv_prog_cc_g=no
 
3498
   CFLAGS="-g"
 
3499
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3500
/* end confdefs.h.  */
 
3501
 
 
3502
int
 
3503
main ()
 
3504
{
 
3505
 
 
3506
  ;
 
3507
  return 0;
 
3508
}
 
3509
_ACEOF
 
3510
if ac_fn_c_try_compile "$LINENO"; then :
 
3511
  ac_cv_prog_cc_g=yes
 
3512
else
 
3513
  CFLAGS=""
 
3514
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3515
/* end confdefs.h.  */
 
3516
 
 
3517
int
 
3518
main ()
 
3519
{
 
3520
 
 
3521
  ;
 
3522
  return 0;
 
3523
}
 
3524
_ACEOF
 
3525
if ac_fn_c_try_compile "$LINENO"; then :
 
3526
 
 
3527
else
 
3528
  ac_c_werror_flag=$ac_save_c_werror_flag
 
3529
         CFLAGS="-g"
 
3530
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3531
/* end confdefs.h.  */
 
3532
 
 
3533
int
 
3534
main ()
 
3535
{
 
3536
 
 
3537
  ;
 
3538
  return 0;
 
3539
}
 
3540
_ACEOF
 
3541
if ac_fn_c_try_compile "$LINENO"; then :
 
3542
  ac_cv_prog_cc_g=yes
 
3543
fi
 
3544
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3545
fi
 
3546
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3547
fi
 
3548
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3549
   ac_c_werror_flag=$ac_save_c_werror_flag
 
3550
fi
 
3551
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
 
3552
$as_echo "$ac_cv_prog_cc_g" >&6; }
2461
3553
if test "$ac_test_CFLAGS" = set; then
2462
3554
  CFLAGS=$ac_save_CFLAGS
2463
3555
elif test $ac_cv_prog_cc_g = yes; then
2473
3565
    CFLAGS=
2474
3566
  fi
2475
3567
fi
2476
 
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2477
 
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2478
 
if test "${ac_cv_prog_cc_stdc+set}" = set; then
2479
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3568
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
 
3569
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
 
3570
if test "${ac_cv_prog_cc_c89+set}" = set; then :
 
3571
  $as_echo_n "(cached) " >&6
2480
3572
else
2481
 
  ac_cv_prog_cc_stdc=no
 
3573
  ac_cv_prog_cc_c89=no
2482
3574
ac_save_CC=$CC
2483
 
cat >conftest.$ac_ext <<_ACEOF
2484
 
/* confdefs.h.  */
2485
 
_ACEOF
2486
 
cat confdefs.h >>conftest.$ac_ext
2487
 
cat >>conftest.$ac_ext <<_ACEOF
 
3575
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2488
3576
/* end confdefs.h.  */
2489
3577
#include <stdarg.h>
2490
3578
#include <stdio.h>
2512
3600
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2513
3601
   function prototypes and stuff, but not '\xHH' hex character constants.
2514
3602
   These don't provoke an error unfortunately, instead are silently treated
2515
 
   as 'x'.  The following induces an error, until -std1 is added to get
 
3603
   as 'x'.  The following induces an error, until -std is added to get
2516
3604
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2517
3605
   array size at least.  It's necessary to write '\x00'==0 to get something
2518
 
   that's true only with -std1.  */
 
3606
   that's true only with -std.  */
2519
3607
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2520
3608
 
 
3609
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 
3610
   inside strings and character constants.  */
 
3611
#define FOO(x) 'x'
 
3612
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 
3613
 
2521
3614
int test (int i, double x);
2522
3615
struct s1 {int (*f) (int a);};
2523
3616
struct s2 {int (*f) (double a);};
2532
3625
  return 0;
2533
3626
}
2534
3627
_ACEOF
2535
 
# Don't try gcc -ansi; that turns off useful extensions and
2536
 
# breaks some systems' header files.
2537
 
# AIX                   -qlanglvl=ansi
2538
 
# Ultrix and OSF/1      -std1
2539
 
# HP-UX 10.20 and later -Ae
2540
 
# HP-UX older versions  -Aa -D_HPUX_SOURCE
2541
 
# SVR4                  -Xc -D__EXTENSIONS__
2542
 
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
3628
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 
3629
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2543
3630
do
2544
3631
  CC="$ac_save_CC $ac_arg"
2545
 
  rm -f conftest.$ac_objext
2546
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2547
 
  (eval $ac_compile) 2>conftest.er1
2548
 
  ac_status=$?
2549
 
  grep -v '^ *+' conftest.er1 >conftest.err
2550
 
  rm -f conftest.er1
2551
 
  cat conftest.err >&5
2552
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2553
 
  (exit $ac_status); } &&
2554
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2555
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2556
 
  (eval $ac_try) 2>&5
2557
 
  ac_status=$?
2558
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559
 
  (exit $ac_status); }; } &&
2560
 
         { ac_try='test -s conftest.$ac_objext'
2561
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2562
 
  (eval $ac_try) 2>&5
2563
 
  ac_status=$?
2564
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565
 
  (exit $ac_status); }; }; then
2566
 
  ac_cv_prog_cc_stdc=$ac_arg
2567
 
break
2568
 
else
2569
 
  echo "$as_me: failed program was:" >&5
2570
 
sed 's/^/| /' conftest.$ac_ext >&5
2571
 
 
 
3632
  if ac_fn_c_try_compile "$LINENO"; then :
 
3633
  ac_cv_prog_cc_c89=$ac_arg
2572
3634
fi
2573
 
rm -f conftest.err conftest.$ac_objext
 
3635
rm -f core conftest.err conftest.$ac_objext
 
3636
  test "x$ac_cv_prog_cc_c89" != "xno" && break
2574
3637
done
2575
 
rm -f conftest.$ac_ext conftest.$ac_objext
 
3638
rm -f conftest.$ac_ext
2576
3639
CC=$ac_save_CC
2577
3640
 
2578
3641
fi
2579
 
 
2580
 
case "x$ac_cv_prog_cc_stdc" in
2581
 
  x|xno)
2582
 
    echo "$as_me:$LINENO: result: none needed" >&5
2583
 
echo "${ECHO_T}none needed" >&6 ;;
 
3642
# AC_CACHE_VAL
 
3643
case "x$ac_cv_prog_cc_c89" in
 
3644
  x)
 
3645
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
 
3646
$as_echo "none needed" >&6; } ;;
 
3647
  xno)
 
3648
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
 
3649
$as_echo "unsupported" >&6; } ;;
2584
3650
  *)
2585
 
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2586
 
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2587
 
    CC="$CC $ac_cv_prog_cc_stdc" ;;
 
3651
    CC="$CC $ac_cv_prog_cc_c89"
 
3652
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
 
3653
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2588
3654
esac
2589
 
 
2590
 
# Some people use a C++ compiler to compile C.  Since we use `exit',
2591
 
# in C++ we need to declare it.  In case someone uses the same compiler
2592
 
# for both compiling C and C++ we need to have the C++ compiler decide
2593
 
# the declaration of exit, since it's the most demanding environment.
2594
 
cat >conftest.$ac_ext <<_ACEOF
2595
 
#ifndef __cplusplus
2596
 
  choke me
2597
 
#endif
2598
 
_ACEOF
2599
 
rm -f conftest.$ac_objext
2600
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2601
 
  (eval $ac_compile) 2>conftest.er1
2602
 
  ac_status=$?
2603
 
  grep -v '^ *+' conftest.er1 >conftest.err
2604
 
  rm -f conftest.er1
2605
 
  cat conftest.err >&5
2606
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2607
 
  (exit $ac_status); } &&
2608
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2609
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2610
 
  (eval $ac_try) 2>&5
2611
 
  ac_status=$?
2612
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2613
 
  (exit $ac_status); }; } &&
2614
 
         { ac_try='test -s conftest.$ac_objext'
2615
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2616
 
  (eval $ac_try) 2>&5
2617
 
  ac_status=$?
2618
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619
 
  (exit $ac_status); }; }; then
2620
 
  for ac_declaration in \
2621
 
   '' \
2622
 
   'extern "C" void std::exit (int) throw (); using std::exit;' \
2623
 
   'extern "C" void std::exit (int); using std::exit;' \
2624
 
   'extern "C" void exit (int) throw ();' \
2625
 
   'extern "C" void exit (int);' \
2626
 
   'void exit (int);'
2627
 
do
2628
 
  cat >conftest.$ac_ext <<_ACEOF
2629
 
/* confdefs.h.  */
2630
 
_ACEOF
2631
 
cat confdefs.h >>conftest.$ac_ext
2632
 
cat >>conftest.$ac_ext <<_ACEOF
2633
 
/* end confdefs.h.  */
2634
 
$ac_declaration
2635
 
#include <stdlib.h>
2636
 
int
2637
 
main ()
2638
 
{
2639
 
exit (42);
2640
 
  ;
2641
 
  return 0;
2642
 
}
2643
 
_ACEOF
2644
 
rm -f conftest.$ac_objext
2645
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2646
 
  (eval $ac_compile) 2>conftest.er1
2647
 
  ac_status=$?
2648
 
  grep -v '^ *+' conftest.er1 >conftest.err
2649
 
  rm -f conftest.er1
2650
 
  cat conftest.err >&5
2651
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2652
 
  (exit $ac_status); } &&
2653
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2654
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2655
 
  (eval $ac_try) 2>&5
2656
 
  ac_status=$?
2657
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2658
 
  (exit $ac_status); }; } &&
2659
 
         { ac_try='test -s conftest.$ac_objext'
2660
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2661
 
  (eval $ac_try) 2>&5
2662
 
  ac_status=$?
2663
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2664
 
  (exit $ac_status); }; }; then
2665
 
  :
2666
 
else
2667
 
  echo "$as_me: failed program was:" >&5
2668
 
sed 's/^/| /' conftest.$ac_ext >&5
2669
 
 
2670
 
continue
2671
 
fi
2672
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2673
 
  cat >conftest.$ac_ext <<_ACEOF
2674
 
/* confdefs.h.  */
2675
 
_ACEOF
2676
 
cat confdefs.h >>conftest.$ac_ext
2677
 
cat >>conftest.$ac_ext <<_ACEOF
2678
 
/* end confdefs.h.  */
2679
 
$ac_declaration
2680
 
int
2681
 
main ()
2682
 
{
2683
 
exit (42);
2684
 
  ;
2685
 
  return 0;
2686
 
}
2687
 
_ACEOF
2688
 
rm -f conftest.$ac_objext
2689
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2690
 
  (eval $ac_compile) 2>conftest.er1
2691
 
  ac_status=$?
2692
 
  grep -v '^ *+' conftest.er1 >conftest.err
2693
 
  rm -f conftest.er1
2694
 
  cat conftest.err >&5
2695
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2696
 
  (exit $ac_status); } &&
2697
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2698
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2699
 
  (eval $ac_try) 2>&5
2700
 
  ac_status=$?
2701
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2702
 
  (exit $ac_status); }; } &&
2703
 
         { ac_try='test -s conftest.$ac_objext'
2704
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2705
 
  (eval $ac_try) 2>&5
2706
 
  ac_status=$?
2707
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708
 
  (exit $ac_status); }; }; then
2709
 
  break
2710
 
else
2711
 
  echo "$as_me: failed program was:" >&5
2712
 
sed 's/^/| /' conftest.$ac_ext >&5
2713
 
 
2714
 
fi
2715
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2716
 
done
2717
 
rm -f conftest*
2718
 
if test -n "$ac_declaration"; then
2719
 
  echo '#ifdef __cplusplus' >>confdefs.h
2720
 
  echo $ac_declaration      >>confdefs.h
2721
 
  echo '#endif'             >>confdefs.h
2722
 
fi
2723
 
 
2724
 
else
2725
 
  echo "$as_me: failed program was:" >&5
2726
 
sed 's/^/| /' conftest.$ac_ext >&5
2727
 
 
2728
 
fi
2729
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3655
if test "x$ac_cv_prog_cc_c89" != xno; then :
 
3656
 
 
3657
fi
 
3658
 
2730
3659
ac_ext=c
2731
3660
ac_cpp='$CPP $CPPFLAGS'
2732
3661
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2734
3663
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2735
3664
DEPDIR="${am__leading_dot}deps"
2736
3665
 
2737
 
          ac_config_commands="$ac_config_commands depfiles"
 
3666
ac_config_commands="$ac_config_commands depfiles"
2738
3667
 
2739
3668
 
2740
3669
am_make=${MAKE-make}
2741
3670
cat > confinc << 'END'
2742
3671
am__doit:
2743
 
        @echo done
 
3672
        @echo this is the am__doit target
2744
3673
.PHONY: am__doit
2745
3674
END
2746
3675
# If we don't find an include directive, just comment out the code.
2747
 
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2748
 
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
 
3676
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
 
3677
$as_echo_n "checking for style of include used by $am_make... " >&6; }
2749
3678
am__include="#"
2750
3679
am__quote=
2751
3680
_am_result=none
2752
3681
# First try GNU make style include.
2753
3682
echo "include confinc" > confmf
2754
 
# We grep out `Entering directory' and `Leaving directory'
2755
 
# messages which can occur if `w' ends up in MAKEFLAGS.
2756
 
# In particular we don't look at `^make:' because GNU make might
2757
 
# be invoked under some other name (usually "gmake"), in which
2758
 
# case it prints its new name instead of `make'.
2759
 
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2760
 
   am__include=include
2761
 
   am__quote=
2762
 
   _am_result=GNU
2763
 
fi
 
3683
# Ignore all kinds of additional output from `make'.
 
3684
case `$am_make -s -f confmf 2> /dev/null` in #(
 
3685
*the\ am__doit\ target*)
 
3686
  am__include=include
 
3687
  am__quote=
 
3688
  _am_result=GNU
 
3689
  ;;
 
3690
esac
2764
3691
# Now try BSD make style include.
2765
3692
if test "$am__include" = "#"; then
2766
3693
   echo '.include "confinc"' > confmf
2767
 
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2768
 
      am__include=.include
2769
 
      am__quote="\""
2770
 
      _am_result=BSD
2771
 
   fi
 
3694
   case `$am_make -s -f confmf 2> /dev/null` in #(
 
3695
   *the\ am__doit\ target*)
 
3696
     am__include=.include
 
3697
     am__quote="\""
 
3698
     _am_result=BSD
 
3699
     ;;
 
3700
   esac
2772
3701
fi
2773
3702
 
2774
3703
 
2775
 
echo "$as_me:$LINENO: result: $_am_result" >&5
2776
 
echo "${ECHO_T}$_am_result" >&6
 
3704
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
 
3705
$as_echo "$_am_result" >&6; }
2777
3706
rm -f confinc confmf
2778
3707
 
2779
 
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2780
 
if test "${enable_dependency_tracking+set}" = set; then
2781
 
  enableval="$enable_dependency_tracking"
 
3708
# Check whether --enable-dependency-tracking was given.
 
3709
if test "${enable_dependency_tracking+set}" = set; then :
 
3710
  enableval=$enable_dependency_tracking;
 
3711
fi
2782
3712
 
2783
 
fi;
2784
3713
if test "x$enable_dependency_tracking" != xno; then
2785
3714
  am_depcomp="$ac_aux_dir/depcomp"
2786
3715
  AMDEPBACKSLASH='\'
2787
3716
fi
2788
 
 
2789
 
 
2790
 
if test "x$enable_dependency_tracking" != xno; then
 
3717
 if test "x$enable_dependency_tracking" != xno; then
2791
3718
  AMDEP_TRUE=
2792
3719
  AMDEP_FALSE='#'
2793
3720
else
2797
3724
 
2798
3725
 
2799
3726
 
2800
 
 
2801
3727
depcc="$CC"   am_compiler_list=
2802
3728
 
2803
 
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2804
 
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2805
 
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2806
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3729
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
 
3730
$as_echo_n "checking dependency style of $depcc... " >&6; }
 
3731
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
 
3732
  $as_echo_n "(cached) " >&6
2807
3733
else
2808
3734
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2809
3735
  # We make a subdir and do the tests there.  Otherwise we can end up
2828
3754
  if test "$am_compiler_list" = ""; then
2829
3755
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2830
3756
  fi
 
3757
  am__universal=false
 
3758
  case " $depcc " in #(
 
3759
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
3760
     esac
 
3761
 
2831
3762
  for depmode in $am_compiler_list; do
2832
3763
    # Setup a source with many dependencies, because some compilers
2833
3764
    # like to wrap large dependency lists on column 80 (with \), and
2845
3776
    done
2846
3777
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2847
3778
 
 
3779
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
3780
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
3781
    # handle `-M -o', and we need to detect this.  Also, some Intel
 
3782
    # versions had trouble with output in subdirs
 
3783
    am__obj=sub/conftest.${OBJEXT-o}
 
3784
    am__minus_obj="-o $am__obj"
2848
3785
    case $depmode in
 
3786
    gcc)
 
3787
      # This depmode causes a compiler race in universal mode.
 
3788
      test "$am__universal" = false || continue
 
3789
      ;;
2849
3790
    nosideeffect)
2850
3791
      # after this tag, mechanisms are not by side-effect, so they'll
2851
3792
      # only be used when explicitly requested
2855
3796
        break
2856
3797
      fi
2857
3798
      ;;
 
3799
    msvisualcpp | msvcmsys)
 
3800
      # This compiler won't grok `-c -o', but also, the minuso test has
 
3801
      # not run yet.  These depmodes are late enough in the game, and
 
3802
      # so weak that their functioning should not be impacted.
 
3803
      am__obj=conftest.${OBJEXT-o}
 
3804
      am__minus_obj=
 
3805
      ;;
2858
3806
    none) break ;;
2859
3807
    esac
2860
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
2861
 
    # mode.  It turns out that the SunPro C++ compiler does not properly
2862
 
    # handle `-M -o', and we need to detect this.
2863
3808
    if depmode=$depmode \
2864
 
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
3809
       source=sub/conftest.c object=$am__obj \
2865
3810
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2866
 
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
3811
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
2867
3812
         >/dev/null 2>conftest.err &&
 
3813
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
2868
3814
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2869
 
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
3815
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
2870
3816
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2871
3817
      # icc doesn't choke on unknown options, it will just issue warnings
2872
3818
      # or remarks (even with -Werror).  So we grep stderr for any message
2890
3836
fi
2891
3837
 
2892
3838
fi
2893
 
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2894
 
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
 
3839
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
 
3840
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
2895
3841
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2896
3842
 
2897
 
 
2898
 
 
2899
 
if
 
3843
 if
2900
3844
  test "x$enable_dependency_tracking" != xno \
2901
3845
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2902
3846
  am__fastdepCC_TRUE=
2907
3851
fi
2908
3852
 
2909
3853
 
2910
 
# Find a good install program.  We prefer a C program (faster),
2911
 
# so one script is as good as another.  But avoid the broken or
2912
 
# incompatible versions:
2913
 
# SysV /etc/install, /usr/sbin/install
2914
 
# SunOS /usr/etc/install
2915
 
# IRIX /sbin/install
2916
 
# AIX /bin/install
2917
 
# AmigaOS /C/install, which installs bootblocks on floppy discs
2918
 
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2919
 
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2920
 
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2921
 
# OS/2's system install, which has a completely different semantic
2922
 
# ./install, which can be erroneously created by make from ./install.sh.
2923
 
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2924
 
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2925
 
if test -z "$INSTALL"; then
2926
 
if test "${ac_cv_path_install+set}" = set; then
2927
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2928
 
else
2929
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2930
 
for as_dir in $PATH
2931
 
do
2932
 
  IFS=$as_save_IFS
2933
 
  test -z "$as_dir" && as_dir=.
2934
 
  # Account for people who put trailing slashes in PATH elements.
2935
 
case $as_dir/ in
2936
 
  ./ | .// | /cC/* | \
2937
 
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2938
 
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2939
 
  /usr/ucb/* ) ;;
2940
 
  *)
2941
 
    # OSF1 and SCO ODT 3.0 have their own names for install.
2942
 
    # Don't use installbsd from OSF since it installs stuff as root
2943
 
    # by default.
2944
 
    for ac_prog in ginstall scoinst install; do
2945
 
      for ac_exec_ext in '' $ac_executable_extensions; do
2946
 
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2947
 
          if test $ac_prog = install &&
2948
 
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2949
 
            # AIX install.  It has an incompatible calling convention.
2950
 
            :
2951
 
          elif test $ac_prog = install &&
2952
 
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2953
 
            # program-specific install script used by HP pwplus--don't use.
2954
 
            :
2955
 
          else
2956
 
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2957
 
            break 3
2958
 
          fi
2959
 
        fi
2960
 
      done
2961
 
    done
2962
 
    ;;
2963
 
esac
2964
 
done
2965
 
 
2966
 
 
2967
 
fi
2968
 
  if test "${ac_cv_path_install+set}" = set; then
2969
 
    INSTALL=$ac_cv_path_install
2970
 
  else
2971
 
    # As a last resort, use the slow shell script.  We don't cache a
2972
 
    # path for INSTALL within a source directory, because that will
2973
 
    # break other packages using the cache if that directory is
2974
 
    # removed, or if the path is relative.
2975
 
    INSTALL=$ac_install_sh
2976
 
  fi
2977
 
fi
2978
 
echo "$as_me:$LINENO: result: $INSTALL" >&5
2979
 
echo "${ECHO_T}$INSTALL" >&6
2980
 
 
2981
 
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2982
 
# It thinks the first close brace ends the variable substitution.
2983
 
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2984
 
 
2985
 
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2986
 
 
2987
 
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2988
3854
 
2989
3855
if test -n "$ac_tool_prefix"; then
2990
3856
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2991
3857
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2992
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2993
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2994
 
if test "${ac_cv_prog_RANLIB+set}" = set; then
2995
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3858
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3859
$as_echo_n "checking for $ac_word... " >&6; }
 
3860
if test "${ac_cv_prog_RANLIB+set}" = set; then :
 
3861
  $as_echo_n "(cached) " >&6
2996
3862
else
2997
3863
  if test -n "$RANLIB"; then
2998
3864
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3002
3868
do
3003
3869
  IFS=$as_save_IFS
3004
3870
  test -z "$as_dir" && as_dir=.
3005
 
  for ac_exec_ext in '' $ac_executable_extensions; do
3006
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3871
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3872
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3007
3873
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3008
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3874
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3009
3875
    break 2
3010
3876
  fi
3011
3877
done
3012
 
done
 
3878
  done
 
3879
IFS=$as_save_IFS
3013
3880
 
3014
3881
fi
3015
3882
fi
3016
3883
RANLIB=$ac_cv_prog_RANLIB
3017
3884
if test -n "$RANLIB"; then
3018
 
  echo "$as_me:$LINENO: result: $RANLIB" >&5
3019
 
echo "${ECHO_T}$RANLIB" >&6
 
3885
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
 
3886
$as_echo "$RANLIB" >&6; }
3020
3887
else
3021
 
  echo "$as_me:$LINENO: result: no" >&5
3022
 
echo "${ECHO_T}no" >&6
 
3888
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3889
$as_echo "no" >&6; }
3023
3890
fi
 
3891
 
3024
3892
 
3025
3893
fi
3026
3894
if test -z "$ac_cv_prog_RANLIB"; then
3027
3895
  ac_ct_RANLIB=$RANLIB
3028
3896
  # Extract the first word of "ranlib", so it can be a program name with args.
3029
3897
set dummy ranlib; ac_word=$2
3030
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
3031
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3032
 
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3033
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3898
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3899
$as_echo_n "checking for $ac_word... " >&6; }
 
3900
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
 
3901
  $as_echo_n "(cached) " >&6
3034
3902
else
3035
3903
  if test -n "$ac_ct_RANLIB"; then
3036
3904
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3040
3908
do
3041
3909
  IFS=$as_save_IFS
3042
3910
  test -z "$as_dir" && as_dir=.
3043
 
  for ac_exec_ext in '' $ac_executable_extensions; do
3044
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3911
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3912
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3045
3913
    ac_cv_prog_ac_ct_RANLIB="ranlib"
3046
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3914
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3047
3915
    break 2
3048
3916
  fi
3049
3917
done
3050
 
done
 
3918
  done
 
3919
IFS=$as_save_IFS
3051
3920
 
3052
 
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3053
3921
fi
3054
3922
fi
3055
3923
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3056
3924
if test -n "$ac_ct_RANLIB"; then
3057
 
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3058
 
echo "${ECHO_T}$ac_ct_RANLIB" >&6
 
3925
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
 
3926
$as_echo "$ac_ct_RANLIB" >&6; }
3059
3927
else
3060
 
  echo "$as_me:$LINENO: result: no" >&5
3061
 
echo "${ECHO_T}no" >&6
 
3928
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3929
$as_echo "no" >&6; }
3062
3930
fi
3063
3931
 
3064
 
  RANLIB=$ac_ct_RANLIB
 
3932
  if test "x$ac_ct_RANLIB" = x; then
 
3933
    RANLIB=":"
 
3934
  else
 
3935
    case $cross_compiling:$ac_tool_warned in
 
3936
yes:)
 
3937
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
3938
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
3939
ac_tool_warned=yes ;;
 
3940
esac
 
3941
    RANLIB=$ac_ct_RANLIB
 
3942
  fi
3065
3943
else
3066
3944
  RANLIB="$ac_cv_prog_RANLIB"
3067
3945
fi
3071
3949
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3072
3950
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3073
3951
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3074
 
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3075
 
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
 
3952
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
 
3953
$as_echo_n "checking how to run the C preprocessor... " >&6; }
3076
3954
# On Suns, sometimes $CPP names a directory.
3077
3955
if test -n "$CPP" && test -d "$CPP"; then
3078
3956
  CPP=
3079
3957
fi
3080
3958
if test -z "$CPP"; then
3081
 
  if test "${ac_cv_prog_CPP+set}" = set; then
3082
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3959
  if test "${ac_cv_prog_CPP+set}" = set; then :
 
3960
  $as_echo_n "(cached) " >&6
3083
3961
else
3084
3962
      # Double quotes because CPP needs to be expanded
3085
3963
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3093
3971
  # <limits.h> exists even on freestanding compilers.
3094
3972
  # On the NeXT, cc -E runs the code through the compiler's parser,
3095
3973
  # not just through cpp. "Syntax error" is here to catch this case.
3096
 
  cat >conftest.$ac_ext <<_ACEOF
3097
 
/* confdefs.h.  */
3098
 
_ACEOF
3099
 
cat confdefs.h >>conftest.$ac_ext
3100
 
cat >>conftest.$ac_ext <<_ACEOF
 
3974
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3101
3975
/* end confdefs.h.  */
3102
3976
#ifdef __STDC__
3103
3977
# include <limits.h>
3106
3980
#endif
3107
3981
                     Syntax error
3108
3982
_ACEOF
3109
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3110
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3111
 
  ac_status=$?
3112
 
  grep -v '^ *+' conftest.er1 >conftest.err
3113
 
  rm -f conftest.er1
3114
 
  cat conftest.err >&5
3115
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3116
 
  (exit $ac_status); } >/dev/null; then
3117
 
  if test -s conftest.err; then
3118
 
    ac_cpp_err=$ac_c_preproc_warn_flag
3119
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3120
 
  else
3121
 
    ac_cpp_err=
3122
 
  fi
3123
 
else
3124
 
  ac_cpp_err=yes
3125
 
fi
3126
 
if test -z "$ac_cpp_err"; then
3127
 
  :
3128
 
else
3129
 
  echo "$as_me: failed program was:" >&5
3130
 
sed 's/^/| /' conftest.$ac_ext >&5
 
3983
if ac_fn_c_try_cpp "$LINENO"; then :
3131
3984
 
 
3985
else
3132
3986
  # Broken: fails on valid input.
3133
3987
continue
3134
3988
fi
3135
3989
rm -f conftest.err conftest.$ac_ext
3136
3990
 
3137
 
  # OK, works on sane cases.  Now check whether non-existent headers
 
3991
  # OK, works on sane cases.  Now check whether nonexistent headers
3138
3992
  # can be detected and how.
3139
 
  cat >conftest.$ac_ext <<_ACEOF
3140
 
/* confdefs.h.  */
3141
 
_ACEOF
3142
 
cat confdefs.h >>conftest.$ac_ext
3143
 
cat >>conftest.$ac_ext <<_ACEOF
 
3993
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3144
3994
/* end confdefs.h.  */
3145
3995
#include <ac_nonexistent.h>
3146
3996
_ACEOF
3147
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3148
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3149
 
  ac_status=$?
3150
 
  grep -v '^ *+' conftest.er1 >conftest.err
3151
 
  rm -f conftest.er1
3152
 
  cat conftest.err >&5
3153
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154
 
  (exit $ac_status); } >/dev/null; then
3155
 
  if test -s conftest.err; then
3156
 
    ac_cpp_err=$ac_c_preproc_warn_flag
3157
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3158
 
  else
3159
 
    ac_cpp_err=
3160
 
  fi
3161
 
else
3162
 
  ac_cpp_err=yes
3163
 
fi
3164
 
if test -z "$ac_cpp_err"; then
 
3997
if ac_fn_c_try_cpp "$LINENO"; then :
3165
3998
  # Broken: success on invalid input.
3166
3999
continue
3167
4000
else
3168
 
  echo "$as_me: failed program was:" >&5
3169
 
sed 's/^/| /' conftest.$ac_ext >&5
3170
 
 
3171
4001
  # Passes both tests.
3172
4002
ac_preproc_ok=:
3173
4003
break
3177
4007
done
3178
4008
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3179
4009
rm -f conftest.err conftest.$ac_ext
3180
 
if $ac_preproc_ok; then
 
4010
if $ac_preproc_ok; then :
3181
4011
  break
3182
4012
fi
3183
4013
 
3189
4019
else
3190
4020
  ac_cv_prog_CPP=$CPP
3191
4021
fi
3192
 
echo "$as_me:$LINENO: result: $CPP" >&5
3193
 
echo "${ECHO_T}$CPP" >&6
 
4022
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
 
4023
$as_echo "$CPP" >&6; }
3194
4024
ac_preproc_ok=false
3195
4025
for ac_c_preproc_warn_flag in '' yes
3196
4026
do
3200
4030
  # <limits.h> exists even on freestanding compilers.
3201
4031
  # On the NeXT, cc -E runs the code through the compiler's parser,
3202
4032
  # not just through cpp. "Syntax error" is here to catch this case.
3203
 
  cat >conftest.$ac_ext <<_ACEOF
3204
 
/* confdefs.h.  */
3205
 
_ACEOF
3206
 
cat confdefs.h >>conftest.$ac_ext
3207
 
cat >>conftest.$ac_ext <<_ACEOF
 
4033
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3208
4034
/* end confdefs.h.  */
3209
4035
#ifdef __STDC__
3210
4036
# include <limits.h>
3213
4039
#endif
3214
4040
                     Syntax error
3215
4041
_ACEOF
3216
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3217
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3218
 
  ac_status=$?
3219
 
  grep -v '^ *+' conftest.er1 >conftest.err
3220
 
  rm -f conftest.er1
3221
 
  cat conftest.err >&5
3222
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3223
 
  (exit $ac_status); } >/dev/null; then
3224
 
  if test -s conftest.err; then
3225
 
    ac_cpp_err=$ac_c_preproc_warn_flag
3226
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3227
 
  else
3228
 
    ac_cpp_err=
3229
 
  fi
3230
 
else
3231
 
  ac_cpp_err=yes
3232
 
fi
3233
 
if test -z "$ac_cpp_err"; then
3234
 
  :
3235
 
else
3236
 
  echo "$as_me: failed program was:" >&5
3237
 
sed 's/^/| /' conftest.$ac_ext >&5
 
4042
if ac_fn_c_try_cpp "$LINENO"; then :
3238
4043
 
 
4044
else
3239
4045
  # Broken: fails on valid input.
3240
4046
continue
3241
4047
fi
3242
4048
rm -f conftest.err conftest.$ac_ext
3243
4049
 
3244
 
  # OK, works on sane cases.  Now check whether non-existent headers
 
4050
  # OK, works on sane cases.  Now check whether nonexistent headers
3245
4051
  # can be detected and how.
3246
 
  cat >conftest.$ac_ext <<_ACEOF
3247
 
/* confdefs.h.  */
3248
 
_ACEOF
3249
 
cat confdefs.h >>conftest.$ac_ext
3250
 
cat >>conftest.$ac_ext <<_ACEOF
 
4052
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3251
4053
/* end confdefs.h.  */
3252
4054
#include <ac_nonexistent.h>
3253
4055
_ACEOF
3254
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3255
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3256
 
  ac_status=$?
3257
 
  grep -v '^ *+' conftest.er1 >conftest.err
3258
 
  rm -f conftest.er1
3259
 
  cat conftest.err >&5
3260
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3261
 
  (exit $ac_status); } >/dev/null; then
3262
 
  if test -s conftest.err; then
3263
 
    ac_cpp_err=$ac_c_preproc_warn_flag
3264
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3265
 
  else
3266
 
    ac_cpp_err=
3267
 
  fi
3268
 
else
3269
 
  ac_cpp_err=yes
3270
 
fi
3271
 
if test -z "$ac_cpp_err"; then
 
4056
if ac_fn_c_try_cpp "$LINENO"; then :
3272
4057
  # Broken: success on invalid input.
3273
4058
continue
3274
4059
else
3275
 
  echo "$as_me: failed program was:" >&5
3276
 
sed 's/^/| /' conftest.$ac_ext >&5
3277
 
 
3278
4060
  # Passes both tests.
3279
4061
ac_preproc_ok=:
3280
4062
break
3284
4066
done
3285
4067
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3286
4068
rm -f conftest.err conftest.$ac_ext
3287
 
if $ac_preproc_ok; then
3288
 
  :
 
4069
if $ac_preproc_ok; then :
 
4070
 
3289
4071
else
3290
 
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3291
 
See \`config.log' for more details." >&5
3292
 
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3293
 
See \`config.log' for more details." >&2;}
3294
 
   { (exit 1); exit 1; }; }
 
4072
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
4073
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
4074
as_fn_error "C preprocessor \"$CPP\" fails sanity check
 
4075
See \`config.log' for more details." "$LINENO" 5; }
3295
4076
fi
3296
4077
 
3297
4078
ac_ext=c
3302
4083
 
3303
4084
# Extract the first word of "ar", so it can be a program name with args.
3304
4085
set dummy ar; ac_word=$2
3305
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
3306
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3307
 
if test "${ac_cv_prog_AR+set}" = set; then
3308
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4086
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4087
$as_echo_n "checking for $ac_word... " >&6; }
 
4088
if test "${ac_cv_prog_AR+set}" = set; then :
 
4089
  $as_echo_n "(cached) " >&6
3309
4090
else
3310
4091
  if test -n "$AR"; then
3311
4092
  ac_cv_prog_AR="$AR" # Let the user override the test.
3315
4096
do
3316
4097
  IFS=$as_save_IFS
3317
4098
  test -z "$as_dir" && as_dir=.
3318
 
  for ac_exec_ext in '' $ac_executable_extensions; do
3319
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4099
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4100
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3320
4101
    ac_cv_prog_AR="ar"
3321
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4102
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3322
4103
    break 2
3323
4104
  fi
3324
4105
done
3325
 
done
 
4106
  done
 
4107
IFS=$as_save_IFS
3326
4108
 
3327
4109
  test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
3328
4110
fi
3329
4111
fi
3330
4112
AR=$ac_cv_prog_AR
3331
4113
if test -n "$AR"; then
3332
 
  echo "$as_me:$LINENO: result: $AR" >&5
3333
 
echo "${ECHO_T}$AR" >&6
 
4114
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
 
4115
$as_echo "$AR" >&6; }
3334
4116
else
3335
 
  echo "$as_me:$LINENO: result: no" >&5
3336
 
echo "${ECHO_T}no" >&6
 
4117
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4118
$as_echo "no" >&6; }
3337
4119
fi
3338
4120
 
 
4121
 
3339
4122
# Perl is needed for the test suite (only)
3340
4123
# Extract the first word of "perl", so it can be a program name with args.
3341
4124
set dummy perl; ac_word=$2
3342
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
3343
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3344
 
if test "${ac_cv_prog_PERL+set}" = set; then
3345
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4125
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4126
$as_echo_n "checking for $ac_word... " >&6; }
 
4127
if test "${ac_cv_prog_PERL+set}" = set; then :
 
4128
  $as_echo_n "(cached) " >&6
3346
4129
else
3347
4130
  if test -n "$PERL"; then
3348
4131
  ac_cv_prog_PERL="$PERL" # Let the user override the test.
3352
4135
do
3353
4136
  IFS=$as_save_IFS
3354
4137
  test -z "$as_dir" && as_dir=.
3355
 
  for ac_exec_ext in '' $ac_executable_extensions; do
3356
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4138
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4139
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3357
4140
    ac_cv_prog_PERL="perl"
3358
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4141
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3359
4142
    break 2
3360
4143
  fi
3361
4144
done
3362
 
done
 
4145
  done
 
4146
IFS=$as_save_IFS
3363
4147
 
3364
4148
  test -z "$ac_cv_prog_PERL" && ac_cv_prog_PERL="perl"
3365
4149
fi
3366
4150
fi
3367
4151
PERL=$ac_cv_prog_PERL
3368
4152
if test -n "$PERL"; then
3369
 
  echo "$as_me:$LINENO: result: $PERL" >&5
3370
 
echo "${ECHO_T}$PERL" >&6
 
4153
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
 
4154
$as_echo "$PERL" >&6; }
3371
4155
else
3372
 
  echo "$as_me:$LINENO: result: no" >&5
3373
 
echo "${ECHO_T}no" >&6
 
4156
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4157
$as_echo "no" >&6; }
3374
4158
fi
3375
4159
 
3376
4160
 
 
4161
 
3377
4162
# Specialized system macros
3378
4163
# Make sure we can run config.sub.
3379
 
$ac_config_sub sun4 >/dev/null 2>&1 ||
3380
 
  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3381
 
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3382
 
   { (exit 1); exit 1; }; }
 
4164
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
 
4165
  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3383
4166
 
3384
 
echo "$as_me:$LINENO: checking build system type" >&5
3385
 
echo $ECHO_N "checking build system type... $ECHO_C" >&6
3386
 
if test "${ac_cv_build+set}" = set; then
3387
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4167
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
 
4168
$as_echo_n "checking build system type... " >&6; }
 
4169
if test "${ac_cv_build+set}" = set; then :
 
4170
  $as_echo_n "(cached) " >&6
3388
4171
else
3389
 
  ac_cv_build_alias=$build_alias
3390
 
test -z "$ac_cv_build_alias" &&
3391
 
  ac_cv_build_alias=`$ac_config_guess`
3392
 
test -z "$ac_cv_build_alias" &&
3393
 
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3394
 
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3395
 
   { (exit 1); exit 1; }; }
3396
 
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3397
 
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3398
 
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3399
 
   { (exit 1); exit 1; }; }
 
4172
  ac_build_alias=$build_alias
 
4173
test "x$ac_build_alias" = x &&
 
4174
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
 
4175
test "x$ac_build_alias" = x &&
 
4176
  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
 
4177
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
 
4178
  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3400
4179
 
3401
4180
fi
3402
 
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3403
 
echo "${ECHO_T}$ac_cv_build" >&6
 
4181
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
 
4182
$as_echo "$ac_cv_build" >&6; }
 
4183
case $ac_cv_build in
 
4184
*-*-*) ;;
 
4185
*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
 
4186
esac
3404
4187
build=$ac_cv_build
3405
 
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3406
 
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3407
 
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3408
 
 
3409
 
 
3410
 
echo "$as_me:$LINENO: checking host system type" >&5
3411
 
echo $ECHO_N "checking host system type... $ECHO_C" >&6
3412
 
if test "${ac_cv_host+set}" = set; then
3413
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3414
 
else
3415
 
  ac_cv_host_alias=$host_alias
3416
 
test -z "$ac_cv_host_alias" &&
3417
 
  ac_cv_host_alias=$ac_cv_build_alias
3418
 
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3419
 
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3420
 
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3421
 
   { (exit 1); exit 1; }; }
3422
 
 
3423
 
fi
3424
 
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3425
 
echo "${ECHO_T}$ac_cv_host" >&6
 
4188
ac_save_IFS=$IFS; IFS='-'
 
4189
set x $ac_cv_build
 
4190
shift
 
4191
build_cpu=$1
 
4192
build_vendor=$2
 
4193
shift; shift
 
4194
# Remember, the first character of IFS is used to create $*,
 
4195
# except with old shells:
 
4196
build_os=$*
 
4197
IFS=$ac_save_IFS
 
4198
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
 
4199
 
 
4200
 
 
4201
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
 
4202
$as_echo_n "checking host system type... " >&6; }
 
4203
if test "${ac_cv_host+set}" = set; then :
 
4204
  $as_echo_n "(cached) " >&6
 
4205
else
 
4206
  if test "x$host_alias" = x; then
 
4207
  ac_cv_host=$ac_cv_build
 
4208
else
 
4209
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
 
4210
    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
 
4211
fi
 
4212
 
 
4213
fi
 
4214
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
 
4215
$as_echo "$ac_cv_host" >&6; }
 
4216
case $ac_cv_host in
 
4217
*-*-*) ;;
 
4218
*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
 
4219
esac
3426
4220
host=$ac_cv_host
3427
 
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3428
 
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3429
 
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3430
 
 
3431
 
 
3432
 
 
3433
 
 
3434
 
echo "$as_me:$LINENO: checking for egrep" >&5
3435
 
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3436
 
if test "${ac_cv_prog_egrep+set}" = set; then
3437
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3438
 
else
3439
 
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3440
 
    then ac_cv_prog_egrep='grep -E'
3441
 
    else ac_cv_prog_egrep='egrep'
3442
 
    fi
3443
 
fi
3444
 
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3445
 
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3446
 
 EGREP=$ac_cv_prog_egrep
3447
 
 
3448
 
 
3449
 
 
3450
 
echo "$as_me:$LINENO: checking for AIX" >&5
3451
 
echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3452
 
cat >conftest.$ac_ext <<_ACEOF
3453
 
/* confdefs.h.  */
3454
 
_ACEOF
3455
 
cat confdefs.h >>conftest.$ac_ext
3456
 
cat >>conftest.$ac_ext <<_ACEOF
3457
 
/* end confdefs.h.  */
3458
 
#ifdef _AIX
3459
 
  yes
3460
 
#endif
3461
 
 
3462
 
_ACEOF
3463
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3464
 
  $EGREP "yes" >/dev/null 2>&1; then
3465
 
  echo "$as_me:$LINENO: result: yes" >&5
3466
 
echo "${ECHO_T}yes" >&6
3467
 
cat >>confdefs.h <<\_ACEOF
3468
 
#define _ALL_SOURCE 1
3469
 
_ACEOF
3470
 
 
3471
 
else
3472
 
  echo "$as_me:$LINENO: result: no" >&5
3473
 
echo "${ECHO_T}no" >&6
3474
 
fi
3475
 
rm -f conftest*
3476
 
 
3477
 
 
3478
 
echo "$as_me:$LINENO: checking for library containing strerror" >&5
3479
 
echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
3480
 
if test "${ac_cv_search_strerror+set}" = set; then
3481
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3482
 
else
3483
 
  ac_func_search_save_LIBS=$LIBS
3484
 
ac_cv_search_strerror=no
3485
 
cat >conftest.$ac_ext <<_ACEOF
3486
 
/* confdefs.h.  */
3487
 
_ACEOF
3488
 
cat confdefs.h >>conftest.$ac_ext
3489
 
cat >>conftest.$ac_ext <<_ACEOF
3490
 
/* end confdefs.h.  */
3491
 
 
3492
 
/* Override any gcc2 internal prototype to avoid an error.  */
3493
 
#ifdef __cplusplus
3494
 
extern "C"
3495
 
#endif
3496
 
/* We use char because int might match the return type of a gcc2
3497
 
   builtin and then its argument prototype would still apply.  */
3498
 
char strerror ();
3499
 
int
3500
 
main ()
3501
 
{
3502
 
strerror ();
3503
 
  ;
3504
 
  return 0;
3505
 
}
3506
 
_ACEOF
3507
 
rm -f conftest.$ac_objext conftest$ac_exeext
3508
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3509
 
  (eval $ac_link) 2>conftest.er1
3510
 
  ac_status=$?
3511
 
  grep -v '^ *+' conftest.er1 >conftest.err
3512
 
  rm -f conftest.er1
3513
 
  cat conftest.err >&5
3514
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3515
 
  (exit $ac_status); } &&
3516
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3517
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3518
 
  (eval $ac_try) 2>&5
3519
 
  ac_status=$?
3520
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3521
 
  (exit $ac_status); }; } &&
3522
 
         { ac_try='test -s conftest$ac_exeext'
3523
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3524
 
  (eval $ac_try) 2>&5
3525
 
  ac_status=$?
3526
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3527
 
  (exit $ac_status); }; }; then
3528
 
  ac_cv_search_strerror="none required"
3529
 
else
3530
 
  echo "$as_me: failed program was:" >&5
3531
 
sed 's/^/| /' conftest.$ac_ext >&5
3532
 
 
3533
 
fi
3534
 
rm -f conftest.err conftest.$ac_objext \
3535
 
      conftest$ac_exeext conftest.$ac_ext
3536
 
if test "$ac_cv_search_strerror" = no; then
3537
 
  for ac_lib in cposix; do
3538
 
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3539
 
    cat >conftest.$ac_ext <<_ACEOF
3540
 
/* confdefs.h.  */
3541
 
_ACEOF
3542
 
cat confdefs.h >>conftest.$ac_ext
3543
 
cat >>conftest.$ac_ext <<_ACEOF
3544
 
/* end confdefs.h.  */
3545
 
 
3546
 
/* Override any gcc2 internal prototype to avoid an error.  */
3547
 
#ifdef __cplusplus
3548
 
extern "C"
3549
 
#endif
3550
 
/* We use char because int might match the return type of a gcc2
3551
 
   builtin and then its argument prototype would still apply.  */
3552
 
char strerror ();
3553
 
int
3554
 
main ()
3555
 
{
3556
 
strerror ();
3557
 
  ;
3558
 
  return 0;
3559
 
}
3560
 
_ACEOF
3561
 
rm -f conftest.$ac_objext conftest$ac_exeext
3562
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3563
 
  (eval $ac_link) 2>conftest.er1
3564
 
  ac_status=$?
3565
 
  grep -v '^ *+' conftest.er1 >conftest.err
3566
 
  rm -f conftest.er1
3567
 
  cat conftest.err >&5
3568
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3569
 
  (exit $ac_status); } &&
3570
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3571
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3572
 
  (eval $ac_try) 2>&5
3573
 
  ac_status=$?
3574
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575
 
  (exit $ac_status); }; } &&
3576
 
         { ac_try='test -s conftest$ac_exeext'
3577
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3578
 
  (eval $ac_try) 2>&5
3579
 
  ac_status=$?
3580
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3581
 
  (exit $ac_status); }; }; then
3582
 
  ac_cv_search_strerror="-l$ac_lib"
3583
 
break
3584
 
else
3585
 
  echo "$as_me: failed program was:" >&5
3586
 
sed 's/^/| /' conftest.$ac_ext >&5
3587
 
 
3588
 
fi
3589
 
rm -f conftest.err conftest.$ac_objext \
3590
 
      conftest$ac_exeext conftest.$ac_ext
3591
 
  done
3592
 
fi
3593
 
LIBS=$ac_func_search_save_LIBS
3594
 
fi
3595
 
echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3596
 
echo "${ECHO_T}$ac_cv_search_strerror" >&6
3597
 
if test "$ac_cv_search_strerror" != no; then
3598
 
  test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
3599
 
 
3600
 
fi
3601
 
 
3602
 
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3603
 
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3604
 
if test "${ac_cv_header_stdc+set}" = set; then
3605
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3606
 
else
3607
 
  cat >conftest.$ac_ext <<_ACEOF
3608
 
/* confdefs.h.  */
3609
 
_ACEOF
3610
 
cat confdefs.h >>conftest.$ac_ext
3611
 
cat >>conftest.$ac_ext <<_ACEOF
 
4221
ac_save_IFS=$IFS; IFS='-'
 
4222
set x $ac_cv_host
 
4223
shift
 
4224
host_cpu=$1
 
4225
host_vendor=$2
 
4226
shift; shift
 
4227
# Remember, the first character of IFS is used to create $*,
 
4228
# except with old shells:
 
4229
host_os=$*
 
4230
IFS=$ac_save_IFS
 
4231
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
 
4232
 
 
4233
 
 
4234
 
 
4235
 
 
4236
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
 
4237
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
 
4238
if test "${ac_cv_path_GREP+set}" = set; then :
 
4239
  $as_echo_n "(cached) " >&6
 
4240
else
 
4241
  if test -z "$GREP"; then
 
4242
  ac_path_GREP_found=false
 
4243
  # Loop through the user's path and test for each of PROGNAME-LIST
 
4244
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4245
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
4246
do
 
4247
  IFS=$as_save_IFS
 
4248
  test -z "$as_dir" && as_dir=.
 
4249
    for ac_prog in grep ggrep; do
 
4250
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4251
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
 
4252
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
 
4253
# Check for GNU ac_path_GREP and select it if it is found.
 
4254
  # Check for GNU $ac_path_GREP
 
4255
case `"$ac_path_GREP" --version 2>&1` in
 
4256
*GNU*)
 
4257
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
 
4258
*)
 
4259
  ac_count=0
 
4260
  $as_echo_n 0123456789 >"conftest.in"
 
4261
  while :
 
4262
  do
 
4263
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4264
    mv "conftest.tmp" "conftest.in"
 
4265
    cp "conftest.in" "conftest.nl"
 
4266
    $as_echo 'GREP' >> "conftest.nl"
 
4267
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4268
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4269
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
4270
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
 
4271
      # Best one so far, save it but keep looking for a better one
 
4272
      ac_cv_path_GREP="$ac_path_GREP"
 
4273
      ac_path_GREP_max=$ac_count
 
4274
    fi
 
4275
    # 10*(2^10) chars as input seems more than enough
 
4276
    test $ac_count -gt 10 && break
 
4277
  done
 
4278
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4279
esac
 
4280
 
 
4281
      $ac_path_GREP_found && break 3
 
4282
    done
 
4283
  done
 
4284
  done
 
4285
IFS=$as_save_IFS
 
4286
  if test -z "$ac_cv_path_GREP"; then
 
4287
    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
4288
  fi
 
4289
else
 
4290
  ac_cv_path_GREP=$GREP
 
4291
fi
 
4292
 
 
4293
fi
 
4294
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
 
4295
$as_echo "$ac_cv_path_GREP" >&6; }
 
4296
 GREP="$ac_cv_path_GREP"
 
4297
 
 
4298
 
 
4299
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
 
4300
$as_echo_n "checking for egrep... " >&6; }
 
4301
if test "${ac_cv_path_EGREP+set}" = set; then :
 
4302
  $as_echo_n "(cached) " >&6
 
4303
else
 
4304
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
 
4305
   then ac_cv_path_EGREP="$GREP -E"
 
4306
   else
 
4307
     if test -z "$EGREP"; then
 
4308
  ac_path_EGREP_found=false
 
4309
  # Loop through the user's path and test for each of PROGNAME-LIST
 
4310
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4311
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
4312
do
 
4313
  IFS=$as_save_IFS
 
4314
  test -z "$as_dir" && as_dir=.
 
4315
    for ac_prog in egrep; do
 
4316
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4317
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
 
4318
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
 
4319
# Check for GNU ac_path_EGREP and select it if it is found.
 
4320
  # Check for GNU $ac_path_EGREP
 
4321
case `"$ac_path_EGREP" --version 2>&1` in
 
4322
*GNU*)
 
4323
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
 
4324
*)
 
4325
  ac_count=0
 
4326
  $as_echo_n 0123456789 >"conftest.in"
 
4327
  while :
 
4328
  do
 
4329
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4330
    mv "conftest.tmp" "conftest.in"
 
4331
    cp "conftest.in" "conftest.nl"
 
4332
    $as_echo 'EGREP' >> "conftest.nl"
 
4333
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4334
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4335
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
4336
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
 
4337
      # Best one so far, save it but keep looking for a better one
 
4338
      ac_cv_path_EGREP="$ac_path_EGREP"
 
4339
      ac_path_EGREP_max=$ac_count
 
4340
    fi
 
4341
    # 10*(2^10) chars as input seems more than enough
 
4342
    test $ac_count -gt 10 && break
 
4343
  done
 
4344
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4345
esac
 
4346
 
 
4347
      $ac_path_EGREP_found && break 3
 
4348
    done
 
4349
  done
 
4350
  done
 
4351
IFS=$as_save_IFS
 
4352
  if test -z "$ac_cv_path_EGREP"; then
 
4353
    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
4354
  fi
 
4355
else
 
4356
  ac_cv_path_EGREP=$EGREP
 
4357
fi
 
4358
 
 
4359
   fi
 
4360
fi
 
4361
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
 
4362
$as_echo "$ac_cv_path_EGREP" >&6; }
 
4363
 EGREP="$ac_cv_path_EGREP"
 
4364
 
 
4365
 
 
4366
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
 
4367
$as_echo_n "checking for ANSI C header files... " >&6; }
 
4368
if test "${ac_cv_header_stdc+set}" = set; then :
 
4369
  $as_echo_n "(cached) " >&6
 
4370
else
 
4371
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3612
4372
/* end confdefs.h.  */
3613
4373
#include <stdlib.h>
3614
4374
#include <stdarg.h>
3623
4383
  return 0;
3624
4384
}
3625
4385
_ACEOF
3626
 
rm -f conftest.$ac_objext
3627
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3628
 
  (eval $ac_compile) 2>conftest.er1
3629
 
  ac_status=$?
3630
 
  grep -v '^ *+' conftest.er1 >conftest.err
3631
 
  rm -f conftest.er1
3632
 
  cat conftest.err >&5
3633
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3634
 
  (exit $ac_status); } &&
3635
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3636
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3637
 
  (eval $ac_try) 2>&5
3638
 
  ac_status=$?
3639
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3640
 
  (exit $ac_status); }; } &&
3641
 
         { ac_try='test -s conftest.$ac_objext'
3642
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3643
 
  (eval $ac_try) 2>&5
3644
 
  ac_status=$?
3645
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3646
 
  (exit $ac_status); }; }; then
 
4386
if ac_fn_c_try_compile "$LINENO"; then :
3647
4387
  ac_cv_header_stdc=yes
3648
4388
else
3649
 
  echo "$as_me: failed program was:" >&5
3650
 
sed 's/^/| /' conftest.$ac_ext >&5
3651
 
 
3652
 
ac_cv_header_stdc=no
 
4389
  ac_cv_header_stdc=no
3653
4390
fi
3654
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4391
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3655
4392
 
3656
4393
if test $ac_cv_header_stdc = yes; then
3657
4394
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3658
 
  cat >conftest.$ac_ext <<_ACEOF
3659
 
/* confdefs.h.  */
3660
 
_ACEOF
3661
 
cat confdefs.h >>conftest.$ac_ext
3662
 
cat >>conftest.$ac_ext <<_ACEOF
 
4395
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3663
4396
/* end confdefs.h.  */
3664
4397
#include <string.h>
3665
4398
 
3666
4399
_ACEOF
3667
4400
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3668
 
  $EGREP "memchr" >/dev/null 2>&1; then
3669
 
  :
 
4401
  $EGREP "memchr" >/dev/null 2>&1; then :
 
4402
 
3670
4403
else
3671
4404
  ac_cv_header_stdc=no
3672
4405
fi
3676
4409
 
3677
4410
if test $ac_cv_header_stdc = yes; then
3678
4411
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3679
 
  cat >conftest.$ac_ext <<_ACEOF
3680
 
/* confdefs.h.  */
3681
 
_ACEOF
3682
 
cat confdefs.h >>conftest.$ac_ext
3683
 
cat >>conftest.$ac_ext <<_ACEOF
 
4412
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3684
4413
/* end confdefs.h.  */
3685
4414
#include <stdlib.h>
3686
4415
 
3687
4416
_ACEOF
3688
4417
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3689
 
  $EGREP "free" >/dev/null 2>&1; then
3690
 
  :
 
4418
  $EGREP "free" >/dev/null 2>&1; then :
 
4419
 
3691
4420
else
3692
4421
  ac_cv_header_stdc=no
3693
4422
fi
3697
4426
 
3698
4427
if test $ac_cv_header_stdc = yes; then
3699
4428
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3700
 
  if test "$cross_compiling" = yes; then
 
4429
  if test "$cross_compiling" = yes; then :
3701
4430
  :
3702
4431
else
3703
 
  cat >conftest.$ac_ext <<_ACEOF
3704
 
/* confdefs.h.  */
3705
 
_ACEOF
3706
 
cat confdefs.h >>conftest.$ac_ext
3707
 
cat >>conftest.$ac_ext <<_ACEOF
 
4432
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3708
4433
/* end confdefs.h.  */
3709
4434
#include <ctype.h>
 
4435
#include <stdlib.h>
3710
4436
#if ((' ' & 0x0FF) == 0x020)
3711
4437
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3712
4438
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3726
4452
  for (i = 0; i < 256; i++)
3727
4453
    if (XOR (islower (i), ISLOWER (i))
3728
4454
        || toupper (i) != TOUPPER (i))
3729
 
      exit(2);
3730
 
  exit (0);
 
4455
      return 2;
 
4456
  return 0;
3731
4457
}
3732
4458
_ACEOF
3733
 
rm -f conftest$ac_exeext
3734
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3735
 
  (eval $ac_link) 2>&5
3736
 
  ac_status=$?
3737
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3738
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3739
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3740
 
  (eval $ac_try) 2>&5
3741
 
  ac_status=$?
3742
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3743
 
  (exit $ac_status); }; }; then
3744
 
  :
 
4459
if ac_fn_c_try_run "$LINENO"; then :
 
4460
 
3745
4461
else
3746
 
  echo "$as_me: program exited with status $ac_status" >&5
3747
 
echo "$as_me: failed program was:" >&5
3748
 
sed 's/^/| /' conftest.$ac_ext >&5
 
4462
  ac_cv_header_stdc=no
 
4463
fi
 
4464
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
4465
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
4466
fi
3749
4467
 
3750
 
( exit $ac_status )
3751
 
ac_cv_header_stdc=no
3752
 
fi
3753
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3754
 
fi
3755
 
fi
3756
 
fi
3757
 
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3758
 
echo "${ECHO_T}$ac_cv_header_stdc" >&6
 
4468
fi
 
4469
fi
 
4470
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
 
4471
$as_echo "$ac_cv_header_stdc" >&6; }
3759
4472
if test $ac_cv_header_stdc = yes; then
3760
4473
 
3761
 
cat >>confdefs.h <<\_ACEOF
3762
 
#define STDC_HEADERS 1
3763
 
_ACEOF
 
4474
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3764
4475
 
3765
4476
fi
3766
4477
 
3767
4478
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3768
 
 
3769
 
 
3770
 
 
3771
 
 
3772
 
 
3773
 
 
3774
 
 
3775
 
 
3776
 
 
3777
4479
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3778
4480
                  inttypes.h stdint.h unistd.h
3779
 
do
3780
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3781
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
3782
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3783
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3784
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3785
 
else
3786
 
  cat >conftest.$ac_ext <<_ACEOF
3787
 
/* confdefs.h.  */
3788
 
_ACEOF
3789
 
cat confdefs.h >>conftest.$ac_ext
3790
 
cat >>conftest.$ac_ext <<_ACEOF
3791
 
/* end confdefs.h.  */
3792
 
$ac_includes_default
3793
 
 
3794
 
#include <$ac_header>
3795
 
_ACEOF
3796
 
rm -f conftest.$ac_objext
3797
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3798
 
  (eval $ac_compile) 2>conftest.er1
3799
 
  ac_status=$?
3800
 
  grep -v '^ *+' conftest.er1 >conftest.err
3801
 
  rm -f conftest.er1
3802
 
  cat conftest.err >&5
3803
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3804
 
  (exit $ac_status); } &&
3805
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3806
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3807
 
  (eval $ac_try) 2>&5
3808
 
  ac_status=$?
3809
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3810
 
  (exit $ac_status); }; } &&
3811
 
         { ac_try='test -s conftest.$ac_objext'
3812
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3813
 
  (eval $ac_try) 2>&5
3814
 
  ac_status=$?
3815
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3816
 
  (exit $ac_status); }; }; then
3817
 
  eval "$as_ac_Header=yes"
3818
 
else
3819
 
  echo "$as_me: failed program was:" >&5
3820
 
sed 's/^/| /' conftest.$ac_ext >&5
3821
 
 
3822
 
eval "$as_ac_Header=no"
3823
 
fi
3824
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3825
 
fi
3826
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3827
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3828
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
4481
do :
 
4482
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
4483
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
 
4484
"
 
4485
eval as_val=\$$as_ac_Header
 
4486
   if test "x$as_val" = x""yes; then :
3829
4487
  cat >>confdefs.h <<_ACEOF
3830
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
4488
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3831
4489
_ACEOF
3832
4490
 
3833
4491
fi
3835
4493
done
3836
4494
 
3837
4495
 
3838
 
if test "${ac_cv_header_minix_config_h+set}" = set; then
3839
 
  echo "$as_me:$LINENO: checking for minix/config.h" >&5
3840
 
echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3841
 
if test "${ac_cv_header_minix_config_h+set}" = set; then
3842
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3843
 
fi
3844
 
echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3845
 
echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3846
 
else
3847
 
  # Is the header compilable?
3848
 
echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3849
 
echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3850
 
cat >conftest.$ac_ext <<_ACEOF
3851
 
/* confdefs.h.  */
3852
 
_ACEOF
3853
 
cat confdefs.h >>conftest.$ac_ext
3854
 
cat >>conftest.$ac_ext <<_ACEOF
3855
 
/* end confdefs.h.  */
3856
 
$ac_includes_default
3857
 
#include <minix/config.h>
3858
 
_ACEOF
3859
 
rm -f conftest.$ac_objext
3860
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3861
 
  (eval $ac_compile) 2>conftest.er1
3862
 
  ac_status=$?
3863
 
  grep -v '^ *+' conftest.er1 >conftest.err
3864
 
  rm -f conftest.er1
3865
 
  cat conftest.err >&5
3866
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3867
 
  (exit $ac_status); } &&
3868
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3869
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3870
 
  (eval $ac_try) 2>&5
3871
 
  ac_status=$?
3872
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3873
 
  (exit $ac_status); }; } &&
3874
 
         { ac_try='test -s conftest.$ac_objext'
3875
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3876
 
  (eval $ac_try) 2>&5
3877
 
  ac_status=$?
3878
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3879
 
  (exit $ac_status); }; }; then
3880
 
  ac_header_compiler=yes
3881
 
else
3882
 
  echo "$as_me: failed program was:" >&5
3883
 
sed 's/^/| /' conftest.$ac_ext >&5
3884
 
 
3885
 
ac_header_compiler=no
3886
 
fi
3887
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3888
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3889
 
echo "${ECHO_T}$ac_header_compiler" >&6
3890
 
 
3891
 
# Is the header present?
3892
 
echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3893
 
echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3894
 
cat >conftest.$ac_ext <<_ACEOF
3895
 
/* confdefs.h.  */
3896
 
_ACEOF
3897
 
cat confdefs.h >>conftest.$ac_ext
3898
 
cat >>conftest.$ac_ext <<_ACEOF
3899
 
/* end confdefs.h.  */
3900
 
#include <minix/config.h>
3901
 
_ACEOF
3902
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3903
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3904
 
  ac_status=$?
3905
 
  grep -v '^ *+' conftest.er1 >conftest.err
3906
 
  rm -f conftest.er1
3907
 
  cat conftest.err >&5
3908
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3909
 
  (exit $ac_status); } >/dev/null; then
3910
 
  if test -s conftest.err; then
3911
 
    ac_cpp_err=$ac_c_preproc_warn_flag
3912
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3913
 
  else
3914
 
    ac_cpp_err=
3915
 
  fi
3916
 
else
3917
 
  ac_cpp_err=yes
3918
 
fi
3919
 
if test -z "$ac_cpp_err"; then
3920
 
  ac_header_preproc=yes
3921
 
else
3922
 
  echo "$as_me: failed program was:" >&5
3923
 
sed 's/^/| /' conftest.$ac_ext >&5
3924
 
 
3925
 
  ac_header_preproc=no
3926
 
fi
3927
 
rm -f conftest.err conftest.$ac_ext
3928
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3929
 
echo "${ECHO_T}$ac_header_preproc" >&6
3930
 
 
3931
 
# So?  What about this header?
3932
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3933
 
  yes:no: )
3934
 
    { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3935
 
echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3936
 
    { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3937
 
echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3938
 
    ac_header_preproc=yes
3939
 
    ;;
3940
 
  no:yes:* )
3941
 
    { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3942
 
echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3943
 
    { echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
3944
 
echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
3945
 
    { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3946
 
echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3947
 
    { echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
3948
 
echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
3949
 
    { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3950
 
echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3951
 
    { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3952
 
echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3953
 
    (
3954
 
      cat <<\_ASBOX
3955
 
## ------------------------------- ##
3956
 
## Report this to bug-make@gnu.org ##
3957
 
## ------------------------------- ##
3958
 
_ASBOX
3959
 
    ) |
3960
 
      sed "s/^/$as_me: WARNING:     /" >&2
3961
 
    ;;
3962
 
esac
3963
 
echo "$as_me:$LINENO: checking for minix/config.h" >&5
3964
 
echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3965
 
if test "${ac_cv_header_minix_config_h+set}" = set; then
3966
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3967
 
else
3968
 
  ac_cv_header_minix_config_h=$ac_header_preproc
3969
 
fi
3970
 
echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3971
 
echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3972
 
 
3973
 
fi
3974
 
if test $ac_cv_header_minix_config_h = yes; then
 
4496
 
 
4497
  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
 
4498
if test "x$ac_cv_header_minix_config_h" = x""yes; then :
3975
4499
  MINIX=yes
3976
4500
else
3977
4501
  MINIX=
3978
4502
fi
3979
4503
 
3980
4504
 
3981
 
if test "$MINIX" = yes; then
3982
 
 
3983
 
cat >>confdefs.h <<\_ACEOF
3984
 
#define _POSIX_SOURCE 1
3985
 
_ACEOF
3986
 
 
3987
 
 
3988
 
cat >>confdefs.h <<\_ACEOF
3989
 
#define _POSIX_1_SOURCE 2
3990
 
_ACEOF
3991
 
 
3992
 
 
3993
 
cat >>confdefs.h <<\_ACEOF
3994
 
#define _MINIX 1
3995
 
_ACEOF
3996
 
 
3997
 
fi
 
4505
  if test "$MINIX" = yes; then
 
4506
 
 
4507
$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
 
4508
 
 
4509
 
 
4510
$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
 
4511
 
 
4512
 
 
4513
$as_echo "#define _MINIX 1" >>confdefs.h
 
4514
 
 
4515
  fi
 
4516
 
 
4517
 
 
4518
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
 
4519
$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
 
4520
if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
 
4521
  $as_echo_n "(cached) " >&6
 
4522
else
 
4523
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4524
/* end confdefs.h.  */
 
4525
 
 
4526
#         define __EXTENSIONS__ 1
 
4527
          $ac_includes_default
 
4528
int
 
4529
main ()
 
4530
{
 
4531
 
 
4532
  ;
 
4533
  return 0;
 
4534
}
 
4535
_ACEOF
 
4536
if ac_fn_c_try_compile "$LINENO"; then :
 
4537
  ac_cv_safe_to_define___extensions__=yes
 
4538
else
 
4539
  ac_cv_safe_to_define___extensions__=no
 
4540
fi
 
4541
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4542
fi
 
4543
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
 
4544
$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
 
4545
  test $ac_cv_safe_to_define___extensions__ = yes &&
 
4546
    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
 
4547
 
 
4548
  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
 
4549
 
 
4550
  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
 
4551
 
 
4552
  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
 
4553
 
 
4554
  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
 
4555
 
 
4556
 
 
4557
 
 
4558
 
 
4559
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
 
4560
$as_echo_n "checking for strerror in -lcposix... " >&6; }
 
4561
if test "${ac_cv_lib_cposix_strerror+set}" = set; then :
 
4562
  $as_echo_n "(cached) " >&6
 
4563
else
 
4564
  ac_check_lib_save_LIBS=$LIBS
 
4565
LIBS="-lcposix  $LIBS"
 
4566
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4567
/* end confdefs.h.  */
 
4568
 
 
4569
/* Override any GCC internal prototype to avoid an error.
 
4570
   Use char because int might match the return type of a GCC
 
4571
   builtin and then its argument prototype would still apply.  */
 
4572
#ifdef __cplusplus
 
4573
extern "C"
 
4574
#endif
 
4575
char strerror ();
 
4576
int
 
4577
main ()
 
4578
{
 
4579
return strerror ();
 
4580
  ;
 
4581
  return 0;
 
4582
}
 
4583
_ACEOF
 
4584
if ac_fn_c_try_link "$LINENO"; then :
 
4585
  ac_cv_lib_cposix_strerror=yes
 
4586
else
 
4587
  ac_cv_lib_cposix_strerror=no
 
4588
fi
 
4589
rm -f core conftest.err conftest.$ac_objext \
 
4590
    conftest$ac_exeext conftest.$ac_ext
 
4591
LIBS=$ac_check_lib_save_LIBS
 
4592
fi
 
4593
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
 
4594
$as_echo "$ac_cv_lib_cposix_strerror" >&6; }
 
4595
if test "x$ac_cv_lib_cposix_strerror" = x""yes; then :
 
4596
  LIBS="$LIBS -lcposix"
 
4597
fi
 
4598
 
 
4599
 
 
4600
 
3998
4601
 
3999
4602
 
4000
4603
# Needed for ansi2knr
4001
 
echo "$as_me:$LINENO: checking for function prototypes" >&5
4002
 
echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
4003
 
if test "$ac_cv_prog_cc_stdc" != no; then
4004
 
  echo "$as_me:$LINENO: result: yes" >&5
4005
 
echo "${ECHO_T}yes" >&6
4006
 
 
4007
 
cat >>confdefs.h <<\_ACEOF
4008
 
#define PROTOTYPES 1
4009
 
_ACEOF
4010
 
 
4011
 
 
4012
 
cat >>confdefs.h <<\_ACEOF
4013
 
#define __PROTOTYPES 1
4014
 
_ACEOF
 
4604
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
 
4605
$as_echo_n "checking for function prototypes... " >&6; }
 
4606
if test "$ac_cv_prog_cc_c89" != no; then
 
4607
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
4608
$as_echo "yes" >&6; }
 
4609
 
 
4610
$as_echo "#define PROTOTYPES 1" >>confdefs.h
 
4611
 
 
4612
 
 
4613
$as_echo "#define __PROTOTYPES 1" >>confdefs.h
4015
4614
 
4016
4615
else
4017
 
  echo "$as_me:$LINENO: result: no" >&5
4018
 
echo "${ECHO_T}no" >&6
 
4616
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4617
$as_echo "no" >&6; }
4019
4618
fi
4020
4619
 
4021
4620
 
4026
4625
fi
4027
4626
# Ensure some checks needed by ansi2knr itself.
4028
4627
 
4029
 
 
4030
4628
for ac_header in string.h
4031
 
do
4032
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4033
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4034
 
  echo "$as_me:$LINENO: checking for $ac_header" >&5
4035
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4036
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4037
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4038
 
fi
4039
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4040
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4041
 
else
4042
 
  # Is the header compilable?
4043
 
echo "$as_me:$LINENO: checking $ac_header usability" >&5
4044
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4045
 
cat >conftest.$ac_ext <<_ACEOF
4046
 
/* confdefs.h.  */
4047
 
_ACEOF
4048
 
cat confdefs.h >>conftest.$ac_ext
4049
 
cat >>conftest.$ac_ext <<_ACEOF
4050
 
/* end confdefs.h.  */
4051
 
$ac_includes_default
4052
 
#include <$ac_header>
4053
 
_ACEOF
4054
 
rm -f conftest.$ac_objext
4055
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4056
 
  (eval $ac_compile) 2>conftest.er1
4057
 
  ac_status=$?
4058
 
  grep -v '^ *+' conftest.er1 >conftest.err
4059
 
  rm -f conftest.er1
4060
 
  cat conftest.err >&5
4061
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4062
 
  (exit $ac_status); } &&
4063
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4064
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4065
 
  (eval $ac_try) 2>&5
4066
 
  ac_status=$?
4067
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4068
 
  (exit $ac_status); }; } &&
4069
 
         { ac_try='test -s conftest.$ac_objext'
4070
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4071
 
  (eval $ac_try) 2>&5
4072
 
  ac_status=$?
4073
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4074
 
  (exit $ac_status); }; }; then
4075
 
  ac_header_compiler=yes
4076
 
else
4077
 
  echo "$as_me: failed program was:" >&5
4078
 
sed 's/^/| /' conftest.$ac_ext >&5
4079
 
 
4080
 
ac_header_compiler=no
4081
 
fi
4082
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4083
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4084
 
echo "${ECHO_T}$ac_header_compiler" >&6
4085
 
 
4086
 
# Is the header present?
4087
 
echo "$as_me:$LINENO: checking $ac_header presence" >&5
4088
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4089
 
cat >conftest.$ac_ext <<_ACEOF
4090
 
/* confdefs.h.  */
4091
 
_ACEOF
4092
 
cat confdefs.h >>conftest.$ac_ext
4093
 
cat >>conftest.$ac_ext <<_ACEOF
4094
 
/* end confdefs.h.  */
4095
 
#include <$ac_header>
4096
 
_ACEOF
4097
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4098
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4099
 
  ac_status=$?
4100
 
  grep -v '^ *+' conftest.er1 >conftest.err
4101
 
  rm -f conftest.er1
4102
 
  cat conftest.err >&5
4103
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4104
 
  (exit $ac_status); } >/dev/null; then
4105
 
  if test -s conftest.err; then
4106
 
    ac_cpp_err=$ac_c_preproc_warn_flag
4107
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4108
 
  else
4109
 
    ac_cpp_err=
4110
 
  fi
4111
 
else
4112
 
  ac_cpp_err=yes
4113
 
fi
4114
 
if test -z "$ac_cpp_err"; then
4115
 
  ac_header_preproc=yes
4116
 
else
4117
 
  echo "$as_me: failed program was:" >&5
4118
 
sed 's/^/| /' conftest.$ac_ext >&5
4119
 
 
4120
 
  ac_header_preproc=no
4121
 
fi
4122
 
rm -f conftest.err conftest.$ac_ext
4123
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4124
 
echo "${ECHO_T}$ac_header_preproc" >&6
4125
 
 
4126
 
# So?  What about this header?
4127
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4128
 
  yes:no: )
4129
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4130
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4131
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4132
 
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4133
 
    ac_header_preproc=yes
4134
 
    ;;
4135
 
  no:yes:* )
4136
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4137
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4138
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4139
 
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4140
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4141
 
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4142
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4143
 
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4144
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4145
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4146
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4147
 
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4148
 
    (
4149
 
      cat <<\_ASBOX
4150
 
## ------------------------------- ##
4151
 
## Report this to bug-make@gnu.org ##
4152
 
## ------------------------------- ##
4153
 
_ASBOX
4154
 
    ) |
4155
 
      sed "s/^/$as_me: WARNING:     /" >&2
4156
 
    ;;
4157
 
esac
4158
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
4159
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4160
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4161
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4162
 
else
4163
 
  eval "$as_ac_Header=\$ac_header_preproc"
4164
 
fi
4165
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4166
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4167
 
 
4168
 
fi
4169
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
4629
do :
 
4630
  ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
 
4631
if test "x$ac_cv_header_string_h" = x""yes; then :
4170
4632
  cat >>confdefs.h <<_ACEOF
4171
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
4633
#define HAVE_STRING_H 1
4172
4634
_ACEOF
4173
4635
 
4174
4636
fi
4194
4656
 
4195
4657
 
4196
4658
 
4197
 
  echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4198
 
echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
4199
 
    # Check whether --enable-nls or --disable-nls was given.
4200
 
if test "${enable_nls+set}" = set; then
4201
 
  enableval="$enable_nls"
4202
 
  USE_NLS=$enableval
 
4659
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
 
4660
$as_echo_n "checking whether NLS is requested... " >&6; }
 
4661
    # Check whether --enable-nls was given.
 
4662
if test "${enable_nls+set}" = set; then :
 
4663
  enableval=$enable_nls; USE_NLS=$enableval
4203
4664
else
4204
4665
  USE_NLS=yes
4205
 
fi;
4206
 
  echo "$as_me:$LINENO: result: $USE_NLS" >&5
4207
 
echo "${ECHO_T}$USE_NLS" >&6
 
4666
fi
 
4667
 
 
4668
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
 
4669
$as_echo "$USE_NLS" >&6; }
4208
4670
 
4209
4671
 
4210
4672
 
4241
4703
 
4242
4704
# Extract the first word of "msgfmt", so it can be a program name with args.
4243
4705
set dummy msgfmt; ac_word=$2
4244
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
4245
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4246
 
if test "${ac_cv_path_MSGFMT+set}" = set; then
4247
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4706
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4707
$as_echo_n "checking for $ac_word... " >&6; }
 
4708
if test "${ac_cv_path_MSGFMT+set}" = set; then :
 
4709
  $as_echo_n "(cached) " >&6
4248
4710
else
4249
4711
  case "$MSGFMT" in
4250
4712
  [\\/]* | ?:[\\/]*)
4272
4734
fi
4273
4735
MSGFMT="$ac_cv_path_MSGFMT"
4274
4736
if test "$MSGFMT" != ":"; then
4275
 
  echo "$as_me:$LINENO: result: $MSGFMT" >&5
4276
 
echo "${ECHO_T}$MSGFMT" >&6
 
4737
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
 
4738
$as_echo "$MSGFMT" >&6; }
4277
4739
else
4278
 
  echo "$as_me:$LINENO: result: no" >&5
4279
 
echo "${ECHO_T}no" >&6
 
4740
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4741
$as_echo "no" >&6; }
4280
4742
fi
4281
4743
 
4282
4744
  # Extract the first word of "gmsgfmt", so it can be a program name with args.
4283
4745
set dummy gmsgfmt; ac_word=$2
4284
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
4285
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4286
 
if test "${ac_cv_path_GMSGFMT+set}" = set; then
4287
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4746
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4747
$as_echo_n "checking for $ac_word... " >&6; }
 
4748
if test "${ac_cv_path_GMSGFMT+set}" = set; then :
 
4749
  $as_echo_n "(cached) " >&6
4288
4750
else
4289
4751
  case $GMSGFMT in
4290
4752
  [\\/]* | ?:[\\/]*)
4296
4758
do
4297
4759
  IFS=$as_save_IFS
4298
4760
  test -z "$as_dir" && as_dir=.
4299
 
  for ac_exec_ext in '' $ac_executable_extensions; do
4300
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4761
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4762
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4301
4763
    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4302
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4764
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4303
4765
    break 2
4304
4766
  fi
4305
4767
done
4306
 
done
 
4768
  done
 
4769
IFS=$as_save_IFS
4307
4770
 
4308
4771
  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4309
4772
  ;;
4310
4773
esac
4311
4774
fi
4312
4775
GMSGFMT=$ac_cv_path_GMSGFMT
4313
 
 
4314
4776
if test -n "$GMSGFMT"; then
4315
 
  echo "$as_me:$LINENO: result: $GMSGFMT" >&5
4316
 
echo "${ECHO_T}$GMSGFMT" >&6
 
4777
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
 
4778
$as_echo "$GMSGFMT" >&6; }
4317
4779
else
4318
 
  echo "$as_me:$LINENO: result: no" >&5
4319
 
echo "${ECHO_T}no" >&6
 
4780
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4781
$as_echo "no" >&6; }
4320
4782
fi
4321
4783
 
4322
4784
 
4323
4785
 
 
4786
 
4324
4787
# Prepare PATH_SEPARATOR.
4325
4788
# The user is always right.
4326
4789
if test "${PATH_SEPARATOR+set}" != set; then
4351
4814
 
4352
4815
# Extract the first word of "xgettext", so it can be a program name with args.
4353
4816
set dummy xgettext; ac_word=$2
4354
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
4355
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4356
 
if test "${ac_cv_path_XGETTEXT+set}" = set; then
4357
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4817
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4818
$as_echo_n "checking for $ac_word... " >&6; }
 
4819
if test "${ac_cv_path_XGETTEXT+set}" = set; then :
 
4820
  $as_echo_n "(cached) " >&6
4358
4821
else
4359
4822
  case "$XGETTEXT" in
4360
4823
  [\\/]* | ?:[\\/]*)
4382
4845
fi
4383
4846
XGETTEXT="$ac_cv_path_XGETTEXT"
4384
4847
if test "$XGETTEXT" != ":"; then
4385
 
  echo "$as_me:$LINENO: result: $XGETTEXT" >&5
4386
 
echo "${ECHO_T}$XGETTEXT" >&6
 
4848
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
 
4849
$as_echo "$XGETTEXT" >&6; }
4387
4850
else
4388
 
  echo "$as_me:$LINENO: result: no" >&5
4389
 
echo "${ECHO_T}no" >&6
 
4851
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4852
$as_echo "no" >&6; }
4390
4853
fi
4391
4854
 
4392
4855
    rm -f messages.po
4422
4885
 
4423
4886
# Extract the first word of "msgmerge", so it can be a program name with args.
4424
4887
set dummy msgmerge; ac_word=$2
4425
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
4426
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4427
 
if test "${ac_cv_path_MSGMERGE+set}" = set; then
4428
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4888
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4889
$as_echo_n "checking for $ac_word... " >&6; }
 
4890
if test "${ac_cv_path_MSGMERGE+set}" = set; then :
 
4891
  $as_echo_n "(cached) " >&6
4429
4892
else
4430
4893
  case "$MSGMERGE" in
4431
4894
  [\\/]* | ?:[\\/]*)
4452
4915
fi
4453
4916
MSGMERGE="$ac_cv_path_MSGMERGE"
4454
4917
if test "$MSGMERGE" != ":"; then
4455
 
  echo "$as_me:$LINENO: result: $MSGMERGE" >&5
4456
 
echo "${ECHO_T}$MSGMERGE" >&6
 
4918
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
 
4919
$as_echo "$MSGMERGE" >&6; }
4457
4920
else
4458
 
  echo "$as_me:$LINENO: result: no" >&5
4459
 
echo "${ECHO_T}no" >&6
 
4921
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4922
$as_echo "no" >&6; }
4460
4923
fi
4461
4924
 
4462
4925
 
4466
4929
      : ;
4467
4930
    else
4468
4931
      GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
4469
 
      echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
4470
 
echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
 
4932
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
 
4933
$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
4471
4934
      GMSGFMT=":"
4472
4935
    fi
4473
4936
  fi
4477
4940
       (if $XGETTEXT --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
4478
4941
      : ;
4479
4942
    else
4480
 
      echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
4481
 
echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
 
4943
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
 
4944
$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
4482
4945
      XGETTEXT=":"
4483
4946
    fi
4484
4947
        rm -f messages.po
4485
4948
  fi
4486
4949
 
4487
 
            ac_config_commands="$ac_config_commands default-1"
 
4950
  ac_config_commands="$ac_config_commands default-1"
4488
4951
 
4489
4952
 
4490
4953
 
4504
4967
  prefix="$acl_save_prefix"
4505
4968
 
4506
4969
 
4507
 
# Check whether --with-gnu-ld or --without-gnu-ld was given.
4508
 
if test "${with_gnu_ld+set}" = set; then
4509
 
  withval="$with_gnu_ld"
4510
 
  test "$withval" = no || with_gnu_ld=yes
 
4970
# Check whether --with-gnu-ld was given.
 
4971
if test "${with_gnu_ld+set}" = set; then :
 
4972
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4511
4973
else
4512
4974
  with_gnu_ld=no
4513
 
fi;
 
4975
fi
 
4976
 
4514
4977
# Prepare PATH_SEPARATOR.
4515
4978
# The user is always right.
4516
4979
if test "${PATH_SEPARATOR+set}" != set; then
4527
4990
ac_prog=ld
4528
4991
if test "$GCC" = yes; then
4529
4992
  # Check if gcc -print-prog-name=ld gives a path.
4530
 
  echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4531
 
echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
 
4993
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
 
4994
$as_echo_n "checking for ld used by GCC... " >&6; }
4532
4995
  case $host in
4533
4996
  *-*-mingw*)
4534
4997
    # gcc leaves a trailing carriage return which upsets mingw
4557
5020
    ;;
4558
5021
  esac
4559
5022
elif test "$with_gnu_ld" = yes; then
4560
 
  echo "$as_me:$LINENO: checking for GNU ld" >&5
4561
 
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
 
5023
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
 
5024
$as_echo_n "checking for GNU ld... " >&6; }
4562
5025
else
4563
 
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4564
 
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
 
5026
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
 
5027
$as_echo_n "checking for non-GNU ld... " >&6; }
4565
5028
fi
4566
 
if test "${acl_cv_path_LD+set}" = set; then
4567
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5029
if test "${acl_cv_path_LD+set}" = set; then :
 
5030
  $as_echo_n "(cached) " >&6
4568
5031
else
4569
5032
  if test -z "$LD"; then
4570
5033
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4591
5054
 
4592
5055
LD="$acl_cv_path_LD"
4593
5056
if test -n "$LD"; then
4594
 
  echo "$as_me:$LINENO: result: $LD" >&5
4595
 
echo "${ECHO_T}$LD" >&6
 
5057
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
 
5058
$as_echo "$LD" >&6; }
4596
5059
else
4597
 
  echo "$as_me:$LINENO: result: no" >&5
4598
 
echo "${ECHO_T}no" >&6
 
5060
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5061
$as_echo "no" >&6; }
4599
5062
fi
4600
 
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4601
 
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4602
 
   { (exit 1); exit 1; }; }
4603
 
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4604
 
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4605
 
if test "${acl_cv_prog_gnu_ld+set}" = set; then
4606
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5063
test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
 
5064
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
 
5065
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
 
5066
if test "${acl_cv_prog_gnu_ld+set}" = set; then :
 
5067
  $as_echo_n "(cached) " >&6
4607
5068
else
4608
5069
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4609
5070
case `$LD -v 2>&1 </dev/null` in
4613
5074
  acl_cv_prog_gnu_ld=no ;;
4614
5075
esac
4615
5076
fi
4616
 
echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
4617
 
echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
 
5077
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
 
5078
$as_echo "$acl_cv_prog_gnu_ld" >&6; }
4618
5079
with_gnu_ld=$acl_cv_prog_gnu_ld
4619
5080
 
4620
5081
 
4621
5082
 
4622
 
                                                echo "$as_me:$LINENO: checking for shared library run path origin" >&5
4623
 
echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
4624
 
if test "${acl_cv_rpath+set}" = set; then
4625
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5083
                                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
 
5084
$as_echo_n "checking for shared library run path origin... " >&6; }
 
5085
if test "${acl_cv_rpath+set}" = set; then :
 
5086
  $as_echo_n "(cached) " >&6
4626
5087
else
4627
5088
 
4628
5089
    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
4632
5093
    acl_cv_rpath=done
4633
5094
 
4634
5095
fi
4635
 
echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
4636
 
echo "${ECHO_T}$acl_cv_rpath" >&6
 
5096
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
 
5097
$as_echo "$acl_cv_rpath" >&6; }
4637
5098
  wl="$acl_cv_wl"
4638
5099
  libext="$acl_cv_libext"
4639
5100
  shlibext="$acl_cv_shlibext"
4641
5102
  hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
4642
5103
  hardcode_direct="$acl_cv_hardcode_direct"
4643
5104
  hardcode_minus_L="$acl_cv_hardcode_minus_L"
4644
 
    # Check whether --enable-rpath or --disable-rpath was given.
4645
 
if test "${enable_rpath+set}" = set; then
4646
 
  enableval="$enable_rpath"
4647
 
  :
 
5105
    # Check whether --enable-rpath was given.
 
5106
if test "${enable_rpath+set}" = set; then :
 
5107
  enableval=$enable_rpath; :
4648
5108
else
4649
5109
  enable_rpath=yes
4650
 
fi;
 
5110
fi
 
5111
 
4651
5112
 
4652
5113
 
4653
5114
 
4669
5130
  prefix="$acl_save_prefix"
4670
5131
 
4671
5132
 
4672
 
# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
4673
 
if test "${with_libiconv_prefix+set}" = set; then
4674
 
  withval="$with_libiconv_prefix"
4675
 
 
 
5133
# Check whether --with-libiconv-prefix was given.
 
5134
if test "${with_libiconv_prefix+set}" = set; then :
 
5135
  withval=$with_libiconv_prefix;
4676
5136
    if test "X$withval" = "Xno"; then
4677
5137
      use_additional=no
4678
5138
    else
4695
5155
      fi
4696
5156
    fi
4697
5157
 
4698
 
fi;
 
5158
fi
 
5159
 
4699
5160
      LIBICONV=
4700
5161
  LTLIBICONV=
4701
5162
  INCICONV=
5048
5509
 
5049
5510
 
5050
5511
 
5051
 
  echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5052
 
echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
5053
 
    # Check whether --enable-nls or --disable-nls was given.
5054
 
if test "${enable_nls+set}" = set; then
5055
 
  enableval="$enable_nls"
5056
 
  USE_NLS=$enableval
 
5512
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
 
5513
$as_echo_n "checking whether NLS is requested... " >&6; }
 
5514
    # Check whether --enable-nls was given.
 
5515
if test "${enable_nls+set}" = set; then :
 
5516
  enableval=$enable_nls; USE_NLS=$enableval
5057
5517
else
5058
5518
  USE_NLS=yes
5059
 
fi;
5060
 
  echo "$as_me:$LINENO: result: $USE_NLS" >&5
5061
 
echo "${ECHO_T}$USE_NLS" >&6
 
5519
fi
 
5520
 
 
5521
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
 
5522
$as_echo "$USE_NLS" >&6; }
5062
5523
 
5063
5524
 
5064
5525
 
5075
5536
 
5076
5537
 
5077
5538
 
5078
 
        echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
5079
 
echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
5080
 
if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
5081
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5539
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
 
5540
$as_echo_n "checking for GNU gettext in libc... " >&6; }
 
5541
if test "${gt_cv_func_gnugettext1_libc+set}" = set; then :
 
5542
  $as_echo_n "(cached) " >&6
5082
5543
else
5083
 
  cat >conftest.$ac_ext <<_ACEOF
5084
 
/* confdefs.h.  */
5085
 
_ACEOF
5086
 
cat confdefs.h >>conftest.$ac_ext
5087
 
cat >>conftest.$ac_ext <<_ACEOF
 
5544
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5088
5545
/* end confdefs.h.  */
5089
5546
#include <libintl.h>
5090
5547
extern int _nl_msg_cat_cntr;
5098
5555
  return 0;
5099
5556
}
5100
5557
_ACEOF
5101
 
rm -f conftest.$ac_objext conftest$ac_exeext
5102
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5103
 
  (eval $ac_link) 2>conftest.er1
5104
 
  ac_status=$?
5105
 
  grep -v '^ *+' conftest.er1 >conftest.err
5106
 
  rm -f conftest.er1
5107
 
  cat conftest.err >&5
5108
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5109
 
  (exit $ac_status); } &&
5110
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5111
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5112
 
  (eval $ac_try) 2>&5
5113
 
  ac_status=$?
5114
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5115
 
  (exit $ac_status); }; } &&
5116
 
         { ac_try='test -s conftest$ac_exeext'
5117
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5118
 
  (eval $ac_try) 2>&5
5119
 
  ac_status=$?
5120
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5121
 
  (exit $ac_status); }; }; then
 
5558
if ac_fn_c_try_link "$LINENO"; then :
5122
5559
  gt_cv_func_gnugettext1_libc=yes
5123
5560
else
5124
 
  echo "$as_me: failed program was:" >&5
5125
 
sed 's/^/| /' conftest.$ac_ext >&5
5126
 
 
5127
 
gt_cv_func_gnugettext1_libc=no
5128
 
fi
5129
 
rm -f conftest.err conftest.$ac_objext \
5130
 
      conftest$ac_exeext conftest.$ac_ext
5131
 
fi
5132
 
echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
5133
 
echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
 
5561
  gt_cv_func_gnugettext1_libc=no
 
5562
fi
 
5563
rm -f core conftest.err conftest.$ac_objext \
 
5564
    conftest$ac_exeext conftest.$ac_ext
 
5565
fi
 
5566
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
 
5567
$as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
5134
5568
 
5135
5569
        if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
5136
5570
 
5163
5597
  done
5164
5598
 
5165
5599
 
5166
 
  echo "$as_me:$LINENO: checking for iconv" >&5
5167
 
echo $ECHO_N "checking for iconv... $ECHO_C" >&6
5168
 
if test "${am_cv_func_iconv+set}" = set; then
5169
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5600
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
 
5601
$as_echo_n "checking for iconv... " >&6; }
 
5602
if test "${am_cv_func_iconv+set}" = set; then :
 
5603
  $as_echo_n "(cached) " >&6
5170
5604
else
5171
5605
 
5172
5606
    am_cv_func_iconv="no, consider installing GNU libiconv"
5173
5607
    am_cv_lib_iconv=no
5174
 
    cat >conftest.$ac_ext <<_ACEOF
5175
 
/* confdefs.h.  */
5176
 
_ACEOF
5177
 
cat confdefs.h >>conftest.$ac_ext
5178
 
cat >>conftest.$ac_ext <<_ACEOF
 
5608
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5179
5609
/* end confdefs.h.  */
5180
5610
#include <stdlib.h>
5181
5611
#include <iconv.h>
5189
5619
  return 0;
5190
5620
}
5191
5621
_ACEOF
5192
 
rm -f conftest.$ac_objext conftest$ac_exeext
5193
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5194
 
  (eval $ac_link) 2>conftest.er1
5195
 
  ac_status=$?
5196
 
  grep -v '^ *+' conftest.er1 >conftest.err
5197
 
  rm -f conftest.er1
5198
 
  cat conftest.err >&5
5199
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5200
 
  (exit $ac_status); } &&
5201
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5202
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5203
 
  (eval $ac_try) 2>&5
5204
 
  ac_status=$?
5205
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5206
 
  (exit $ac_status); }; } &&
5207
 
         { ac_try='test -s conftest$ac_exeext'
5208
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5209
 
  (eval $ac_try) 2>&5
5210
 
  ac_status=$?
5211
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5212
 
  (exit $ac_status); }; }; then
 
5622
if ac_fn_c_try_link "$LINENO"; then :
5213
5623
  am_cv_func_iconv=yes
5214
 
else
5215
 
  echo "$as_me: failed program was:" >&5
5216
 
sed 's/^/| /' conftest.$ac_ext >&5
5217
 
 
5218
5624
fi
5219
 
rm -f conftest.err conftest.$ac_objext \
5220
 
      conftest$ac_exeext conftest.$ac_ext
 
5625
rm -f core conftest.err conftest.$ac_objext \
 
5626
    conftest$ac_exeext conftest.$ac_ext
5221
5627
    if test "$am_cv_func_iconv" != yes; then
5222
5628
      am_save_LIBS="$LIBS"
5223
5629
      LIBS="$LIBS $LIBICONV"
5224
 
      cat >conftest.$ac_ext <<_ACEOF
5225
 
/* confdefs.h.  */
5226
 
_ACEOF
5227
 
cat confdefs.h >>conftest.$ac_ext
5228
 
cat >>conftest.$ac_ext <<_ACEOF
 
5630
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5229
5631
/* end confdefs.h.  */
5230
5632
#include <stdlib.h>
5231
5633
#include <iconv.h>
5239
5641
  return 0;
5240
5642
}
5241
5643
_ACEOF
5242
 
rm -f conftest.$ac_objext conftest$ac_exeext
5243
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5244
 
  (eval $ac_link) 2>conftest.er1
5245
 
  ac_status=$?
5246
 
  grep -v '^ *+' conftest.er1 >conftest.err
5247
 
  rm -f conftest.er1
5248
 
  cat conftest.err >&5
5249
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5250
 
  (exit $ac_status); } &&
5251
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5252
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5253
 
  (eval $ac_try) 2>&5
5254
 
  ac_status=$?
5255
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5256
 
  (exit $ac_status); }; } &&
5257
 
         { ac_try='test -s conftest$ac_exeext'
5258
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5259
 
  (eval $ac_try) 2>&5
5260
 
  ac_status=$?
5261
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5262
 
  (exit $ac_status); }; }; then
 
5644
if ac_fn_c_try_link "$LINENO"; then :
5263
5645
  am_cv_lib_iconv=yes
5264
5646
        am_cv_func_iconv=yes
5265
 
else
5266
 
  echo "$as_me: failed program was:" >&5
5267
 
sed 's/^/| /' conftest.$ac_ext >&5
5268
 
 
5269
5647
fi
5270
 
rm -f conftest.err conftest.$ac_objext \
5271
 
      conftest$ac_exeext conftest.$ac_ext
 
5648
rm -f core conftest.err conftest.$ac_objext \
 
5649
    conftest$ac_exeext conftest.$ac_ext
5272
5650
      LIBS="$am_save_LIBS"
5273
5651
    fi
5274
5652
 
5275
5653
fi
5276
 
echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
5277
 
echo "${ECHO_T}$am_cv_func_iconv" >&6
 
5654
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
 
5655
$as_echo "$am_cv_func_iconv" >&6; }
5278
5656
  if test "$am_cv_func_iconv" = yes; then
5279
5657
 
5280
 
cat >>confdefs.h <<\_ACEOF
5281
 
#define HAVE_ICONV 1
5282
 
_ACEOF
 
5658
$as_echo "#define HAVE_ICONV 1" >>confdefs.h
5283
5659
 
5284
5660
  fi
5285
5661
  if test "$am_cv_lib_iconv" = yes; then
5286
 
    echo "$as_me:$LINENO: checking how to link with libiconv" >&5
5287
 
echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
5288
 
    echo "$as_me:$LINENO: result: $LIBICONV" >&5
5289
 
echo "${ECHO_T}$LIBICONV" >&6
 
5662
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
 
5663
$as_echo_n "checking how to link with libiconv... " >&6; }
 
5664
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
 
5665
$as_echo "$LIBICONV" >&6; }
5290
5666
  else
5291
5667
            CPPFLAGS="$am_save_CPPFLAGS"
5292
5668
    LIBICONV=
5312
5688
  prefix="$acl_save_prefix"
5313
5689
 
5314
5690
 
5315
 
# Check whether --with-libintl-prefix or --without-libintl-prefix was given.
5316
 
if test "${with_libintl_prefix+set}" = set; then
5317
 
  withval="$with_libintl_prefix"
5318
 
 
 
5691
# Check whether --with-libintl-prefix was given.
 
5692
if test "${with_libintl_prefix+set}" = set; then :
 
5693
  withval=$with_libintl_prefix;
5319
5694
    if test "X$withval" = "Xno"; then
5320
5695
      use_additional=no
5321
5696
    else
5338
5713
      fi
5339
5714
    fi
5340
5715
 
5341
 
fi;
 
5716
fi
 
5717
 
5342
5718
      LIBINTL=
5343
5719
  LTLIBINTL=
5344
5720
  INCINTL=
5674
6050
    done
5675
6051
  fi
5676
6052
 
5677
 
          echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
5678
 
echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
5679
 
if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
5680
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6053
          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
 
6054
$as_echo_n "checking for GNU gettext in libintl... " >&6; }
 
6055
if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then :
 
6056
  $as_echo_n "(cached) " >&6
5681
6057
else
5682
6058
  gt_save_CPPFLAGS="$CPPFLAGS"
5683
6059
            CPPFLAGS="$CPPFLAGS $INCINTL"
5684
6060
            gt_save_LIBS="$LIBS"
5685
6061
            LIBS="$LIBS $LIBINTL"
5686
 
                        cat >conftest.$ac_ext <<_ACEOF
5687
 
/* confdefs.h.  */
5688
 
_ACEOF
5689
 
cat confdefs.h >>conftest.$ac_ext
5690
 
cat >>conftest.$ac_ext <<_ACEOF
 
6062
                        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5691
6063
/* end confdefs.h.  */
5692
6064
#include <libintl.h>
5693
6065
extern int _nl_msg_cat_cntr;
5705
6077
  return 0;
5706
6078
}
5707
6079
_ACEOF
5708
 
rm -f conftest.$ac_objext conftest$ac_exeext
5709
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5710
 
  (eval $ac_link) 2>conftest.er1
5711
 
  ac_status=$?
5712
 
  grep -v '^ *+' conftest.er1 >conftest.err
5713
 
  rm -f conftest.er1
5714
 
  cat conftest.err >&5
5715
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716
 
  (exit $ac_status); } &&
5717
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5718
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5719
 
  (eval $ac_try) 2>&5
5720
 
  ac_status=$?
5721
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5722
 
  (exit $ac_status); }; } &&
5723
 
         { ac_try='test -s conftest$ac_exeext'
5724
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5725
 
  (eval $ac_try) 2>&5
5726
 
  ac_status=$?
5727
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5728
 
  (exit $ac_status); }; }; then
 
6080
if ac_fn_c_try_link "$LINENO"; then :
5729
6081
  gt_cv_func_gnugettext1_libintl=yes
5730
6082
else
5731
 
  echo "$as_me: failed program was:" >&5
5732
 
sed 's/^/| /' conftest.$ac_ext >&5
5733
 
 
5734
 
gt_cv_func_gnugettext1_libintl=no
 
6083
  gt_cv_func_gnugettext1_libintl=no
5735
6084
fi
5736
 
rm -f conftest.err conftest.$ac_objext \
5737
 
      conftest$ac_exeext conftest.$ac_ext
 
6085
rm -f core conftest.err conftest.$ac_objext \
 
6086
    conftest$ac_exeext conftest.$ac_ext
5738
6087
                        if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
5739
6088
              LIBS="$LIBS $LIBICONV"
5740
 
              cat >conftest.$ac_ext <<_ACEOF
5741
 
/* confdefs.h.  */
5742
 
_ACEOF
5743
 
cat confdefs.h >>conftest.$ac_ext
5744
 
cat >>conftest.$ac_ext <<_ACEOF
 
6089
              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5745
6090
/* end confdefs.h.  */
5746
6091
#include <libintl.h>
5747
6092
extern int _nl_msg_cat_cntr;
5759
6104
  return 0;
5760
6105
}
5761
6106
_ACEOF
5762
 
rm -f conftest.$ac_objext conftest$ac_exeext
5763
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5764
 
  (eval $ac_link) 2>conftest.er1
5765
 
  ac_status=$?
5766
 
  grep -v '^ *+' conftest.er1 >conftest.err
5767
 
  rm -f conftest.er1
5768
 
  cat conftest.err >&5
5769
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5770
 
  (exit $ac_status); } &&
5771
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5772
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5773
 
  (eval $ac_try) 2>&5
5774
 
  ac_status=$?
5775
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5776
 
  (exit $ac_status); }; } &&
5777
 
         { ac_try='test -s conftest$ac_exeext'
5778
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5779
 
  (eval $ac_try) 2>&5
5780
 
  ac_status=$?
5781
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5782
 
  (exit $ac_status); }; }; then
 
6107
if ac_fn_c_try_link "$LINENO"; then :
5783
6108
  LIBINTL="$LIBINTL $LIBICONV"
5784
6109
                LTLIBINTL="$LTLIBINTL $LTLIBICONV"
5785
6110
                gt_cv_func_gnugettext1_libintl=yes
5786
6111
 
5787
 
else
5788
 
  echo "$as_me: failed program was:" >&5
5789
 
sed 's/^/| /' conftest.$ac_ext >&5
5790
 
 
5791
6112
fi
5792
 
rm -f conftest.err conftest.$ac_objext \
5793
 
      conftest$ac_exeext conftest.$ac_ext
 
6113
rm -f core conftest.err conftest.$ac_objext \
 
6114
    conftest$ac_exeext conftest.$ac_ext
5794
6115
            fi
5795
6116
            CPPFLAGS="$gt_save_CPPFLAGS"
5796
6117
            LIBS="$gt_save_LIBS"
5797
6118
fi
5798
 
echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
5799
 
echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
 
6119
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
 
6120
$as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
5800
6121
        fi
5801
6122
 
5802
6123
                                        if test "$gt_cv_func_gnugettext1_libc" = "yes" \
5815
6136
    if test "$gt_use_preinstalled_gnugettext" = "yes" \
5816
6137
       || test "$nls_cv_use_gnu_gettext" = "yes"; then
5817
6138
 
5818
 
cat >>confdefs.h <<\_ACEOF
5819
 
#define ENABLE_NLS 1
5820
 
_ACEOF
 
6139
$as_echo "#define ENABLE_NLS 1" >>confdefs.h
5821
6140
 
5822
6141
    else
5823
6142
      USE_NLS=no
5824
6143
    fi
5825
6144
  fi
5826
6145
 
5827
 
  echo "$as_me:$LINENO: checking whether to use NLS" >&5
5828
 
echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
5829
 
  echo "$as_me:$LINENO: result: $USE_NLS" >&5
5830
 
echo "${ECHO_T}$USE_NLS" >&6
 
6146
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
 
6147
$as_echo_n "checking whether to use NLS... " >&6; }
 
6148
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
 
6149
$as_echo "$USE_NLS" >&6; }
5831
6150
  if test "$USE_NLS" = "yes"; then
5832
 
    echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
5833
 
echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
 
6151
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
 
6152
$as_echo_n "checking where the gettext function comes from... " >&6; }
5834
6153
    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
5835
6154
      if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
5836
6155
        gt_source="external libintl"
5840
6159
    else
5841
6160
      gt_source="included intl directory"
5842
6161
    fi
5843
 
    echo "$as_me:$LINENO: result: $gt_source" >&5
5844
 
echo "${ECHO_T}$gt_source" >&6
 
6162
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
 
6163
$as_echo "$gt_source" >&6; }
5845
6164
  fi
5846
6165
 
5847
6166
  if test "$USE_NLS" = "yes"; then
5848
6167
 
5849
6168
    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
5850
6169
      if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
5851
 
        echo "$as_me:$LINENO: checking how to link with libintl" >&5
5852
 
echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
5853
 
        echo "$as_me:$LINENO: result: $LIBINTL" >&5
5854
 
echo "${ECHO_T}$LIBINTL" >&6
 
6170
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
 
6171
$as_echo_n "checking how to link with libintl... " >&6; }
 
6172
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
 
6173
$as_echo "$LIBINTL" >&6; }
5855
6174
 
5856
6175
  for element in $INCINTL; do
5857
6176
    haveit=
5878
6197
      fi
5879
6198
 
5880
6199
 
5881
 
cat >>confdefs.h <<\_ACEOF
5882
 
#define HAVE_GETTEXT 1
5883
 
_ACEOF
5884
 
 
5885
 
 
5886
 
cat >>confdefs.h <<\_ACEOF
5887
 
#define HAVE_DCGETTEXT 1
5888
 
_ACEOF
 
6200
$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
 
6201
 
 
6202
 
 
6203
$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
5889
6204
 
5890
6205
    fi
5891
6206
 
5905
6220
# This test must come as early as possible after the compiler configuration
5906
6221
# tests, because the choice of the file model can (in principle) affect
5907
6222
# whether functions and headers are available, whether they work, etc.
5908
 
# Check whether --enable-largefile or --disable-largefile was given.
5909
 
if test "${enable_largefile+set}" = set; then
5910
 
  enableval="$enable_largefile"
 
6223
# Check whether --enable-largefile was given.
 
6224
if test "${enable_largefile+set}" = set; then :
 
6225
  enableval=$enable_largefile;
 
6226
fi
5911
6227
 
5912
 
fi;
5913
6228
if test "$enable_largefile" != no; then
5914
6229
 
5915
 
  echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5916
 
echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
5917
 
if test "${ac_cv_sys_largefile_CC+set}" = set; then
5918
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6230
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
 
6231
$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
 
6232
if test "${ac_cv_sys_largefile_CC+set}" = set; then :
 
6233
  $as_echo_n "(cached) " >&6
5919
6234
else
5920
6235
  ac_cv_sys_largefile_CC=no
5921
6236
     if test "$GCC" != yes; then
5922
6237
       ac_save_CC=$CC
5923
6238
       while :; do
5924
 
         # IRIX 6.2 and later do not support large files by default,
5925
 
         # so use the C compiler's -n32 option if that helps.
5926
 
         cat >conftest.$ac_ext <<_ACEOF
5927
 
/* confdefs.h.  */
5928
 
_ACEOF
5929
 
cat confdefs.h >>conftest.$ac_ext
5930
 
cat >>conftest.$ac_ext <<_ACEOF
 
6239
         # IRIX 6.2 and later do not support large files by default,
 
6240
         # so use the C compiler's -n32 option if that helps.
 
6241
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5931
6242
/* end confdefs.h.  */
5932
6243
#include <sys/types.h>
5933
6244
 /* Check that off_t can represent 2**63 - 1 correctly.
5946
6257
  return 0;
5947
6258
}
5948
6259
_ACEOF
5949
 
         rm -f conftest.$ac_objext
5950
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5951
 
  (eval $ac_compile) 2>conftest.er1
5952
 
  ac_status=$?
5953
 
  grep -v '^ *+' conftest.er1 >conftest.err
5954
 
  rm -f conftest.er1
5955
 
  cat conftest.err >&5
5956
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5957
 
  (exit $ac_status); } &&
5958
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5959
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5960
 
  (eval $ac_try) 2>&5
5961
 
  ac_status=$?
5962
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5963
 
  (exit $ac_status); }; } &&
5964
 
         { ac_try='test -s conftest.$ac_objext'
5965
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5966
 
  (eval $ac_try) 2>&5
5967
 
  ac_status=$?
5968
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5969
 
  (exit $ac_status); }; }; then
 
6260
         if ac_fn_c_try_compile "$LINENO"; then :
5970
6261
  break
5971
 
else
5972
 
  echo "$as_me: failed program was:" >&5
5973
 
sed 's/^/| /' conftest.$ac_ext >&5
5974
 
 
5975
6262
fi
5976
 
rm -f conftest.err conftest.$ac_objext
5977
 
         CC="$CC -n32"
5978
 
         rm -f conftest.$ac_objext
5979
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5980
 
  (eval $ac_compile) 2>conftest.er1
5981
 
  ac_status=$?
5982
 
  grep -v '^ *+' conftest.er1 >conftest.err
5983
 
  rm -f conftest.er1
5984
 
  cat conftest.err >&5
5985
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5986
 
  (exit $ac_status); } &&
5987
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5988
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5989
 
  (eval $ac_try) 2>&5
5990
 
  ac_status=$?
5991
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5992
 
  (exit $ac_status); }; } &&
5993
 
         { ac_try='test -s conftest.$ac_objext'
5994
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5995
 
  (eval $ac_try) 2>&5
5996
 
  ac_status=$?
5997
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998
 
  (exit $ac_status); }; }; then
 
6263
rm -f core conftest.err conftest.$ac_objext
 
6264
         CC="$CC -n32"
 
6265
         if ac_fn_c_try_compile "$LINENO"; then :
5999
6266
  ac_cv_sys_largefile_CC=' -n32'; break
6000
 
else
6001
 
  echo "$as_me: failed program was:" >&5
6002
 
sed 's/^/| /' conftest.$ac_ext >&5
6003
 
 
6004
6267
fi
6005
 
rm -f conftest.err conftest.$ac_objext
 
6268
rm -f core conftest.err conftest.$ac_objext
6006
6269
         break
6007
6270
       done
6008
6271
       CC=$ac_save_CC
6009
6272
       rm -f conftest.$ac_ext
6010
6273
    fi
6011
6274
fi
6012
 
echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
6013
 
echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
 
6275
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
 
6276
$as_echo "$ac_cv_sys_largefile_CC" >&6; }
6014
6277
  if test "$ac_cv_sys_largefile_CC" != no; then
6015
6278
    CC=$CC$ac_cv_sys_largefile_CC
6016
6279
  fi
6017
6280
 
6018
 
  echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6019
 
echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
6020
 
if test "${ac_cv_sys_file_offset_bits+set}" = set; then
6021
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6281
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
 
6282
$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
 
6283
if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
 
6284
  $as_echo_n "(cached) " >&6
6022
6285
else
6023
6286
  while :; do
6024
 
  ac_cv_sys_file_offset_bits=no
6025
 
  cat >conftest.$ac_ext <<_ACEOF
6026
 
/* confdefs.h.  */
6027
 
_ACEOF
6028
 
cat confdefs.h >>conftest.$ac_ext
6029
 
cat >>conftest.$ac_ext <<_ACEOF
 
6287
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6030
6288
/* end confdefs.h.  */
6031
6289
#include <sys/types.h>
6032
6290
 /* Check that off_t can represent 2**63 - 1 correctly.
6045
6303
  return 0;
6046
6304
}
6047
6305
_ACEOF
6048
 
rm -f conftest.$ac_objext
6049
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6050
 
  (eval $ac_compile) 2>conftest.er1
6051
 
  ac_status=$?
6052
 
  grep -v '^ *+' conftest.er1 >conftest.err
6053
 
  rm -f conftest.er1
6054
 
  cat conftest.err >&5
6055
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6056
 
  (exit $ac_status); } &&
6057
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6058
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6059
 
  (eval $ac_try) 2>&5
6060
 
  ac_status=$?
6061
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6062
 
  (exit $ac_status); }; } &&
6063
 
         { ac_try='test -s conftest.$ac_objext'
6064
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6065
 
  (eval $ac_try) 2>&5
6066
 
  ac_status=$?
6067
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6068
 
  (exit $ac_status); }; }; then
6069
 
  break
6070
 
else
6071
 
  echo "$as_me: failed program was:" >&5
6072
 
sed 's/^/| /' conftest.$ac_ext >&5
6073
 
 
 
6306
if ac_fn_c_try_compile "$LINENO"; then :
 
6307
  ac_cv_sys_file_offset_bits=no; break
6074
6308
fi
6075
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6076
 
  cat >conftest.$ac_ext <<_ACEOF
6077
 
/* confdefs.h.  */
6078
 
_ACEOF
6079
 
cat confdefs.h >>conftest.$ac_ext
6080
 
cat >>conftest.$ac_ext <<_ACEOF
 
6309
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6310
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6081
6311
/* end confdefs.h.  */
6082
6312
#define _FILE_OFFSET_BITS 64
6083
6313
#include <sys/types.h>
6097
6327
  return 0;
6098
6328
}
6099
6329
_ACEOF
6100
 
rm -f conftest.$ac_objext
6101
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6102
 
  (eval $ac_compile) 2>conftest.er1
6103
 
  ac_status=$?
6104
 
  grep -v '^ *+' conftest.er1 >conftest.err
6105
 
  rm -f conftest.er1
6106
 
  cat conftest.err >&5
6107
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6108
 
  (exit $ac_status); } &&
6109
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6110
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6111
 
  (eval $ac_try) 2>&5
6112
 
  ac_status=$?
6113
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6114
 
  (exit $ac_status); }; } &&
6115
 
         { ac_try='test -s conftest.$ac_objext'
6116
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6117
 
  (eval $ac_try) 2>&5
6118
 
  ac_status=$?
6119
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6120
 
  (exit $ac_status); }; }; then
 
6330
if ac_fn_c_try_compile "$LINENO"; then :
6121
6331
  ac_cv_sys_file_offset_bits=64; break
6122
 
else
6123
 
  echo "$as_me: failed program was:" >&5
6124
 
sed 's/^/| /' conftest.$ac_ext >&5
6125
 
 
6126
6332
fi
6127
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
6333
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6334
  ac_cv_sys_file_offset_bits=unknown
6128
6335
  break
6129
6336
done
6130
6337
fi
6131
 
echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
6132
 
echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
6133
 
if test "$ac_cv_sys_file_offset_bits" != no; then
6134
 
 
 
6338
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
 
6339
$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
 
6340
case $ac_cv_sys_file_offset_bits in #(
 
6341
  no | unknown) ;;
 
6342
  *)
6135
6343
cat >>confdefs.h <<_ACEOF
6136
6344
#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6137
6345
_ACEOF
6138
 
 
6139
 
fi
6140
 
rm -f conftest*
6141
 
  echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
6142
 
echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
6143
 
if test "${ac_cv_sys_large_files+set}" = set; then
6144
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6346
;;
 
6347
esac
 
6348
rm -rf conftest*
 
6349
  if test $ac_cv_sys_file_offset_bits = unknown; then
 
6350
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
 
6351
$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
 
6352
if test "${ac_cv_sys_large_files+set}" = set; then :
 
6353
  $as_echo_n "(cached) " >&6
6145
6354
else
6146
6355
  while :; do
6147
 
  ac_cv_sys_large_files=no
6148
 
  cat >conftest.$ac_ext <<_ACEOF
6149
 
/* confdefs.h.  */
6150
 
_ACEOF
6151
 
cat confdefs.h >>conftest.$ac_ext
6152
 
cat >>conftest.$ac_ext <<_ACEOF
 
6356
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6153
6357
/* end confdefs.h.  */
6154
6358
#include <sys/types.h>
6155
6359
 /* Check that off_t can represent 2**63 - 1 correctly.
6168
6372
  return 0;
6169
6373
}
6170
6374
_ACEOF
6171
 
rm -f conftest.$ac_objext
6172
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6173
 
  (eval $ac_compile) 2>conftest.er1
6174
 
  ac_status=$?
6175
 
  grep -v '^ *+' conftest.er1 >conftest.err
6176
 
  rm -f conftest.er1
6177
 
  cat conftest.err >&5
6178
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6179
 
  (exit $ac_status); } &&
6180
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6181
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6182
 
  (eval $ac_try) 2>&5
6183
 
  ac_status=$?
6184
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6185
 
  (exit $ac_status); }; } &&
6186
 
         { ac_try='test -s conftest.$ac_objext'
6187
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6188
 
  (eval $ac_try) 2>&5
6189
 
  ac_status=$?
6190
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6191
 
  (exit $ac_status); }; }; then
6192
 
  break
6193
 
else
6194
 
  echo "$as_me: failed program was:" >&5
6195
 
sed 's/^/| /' conftest.$ac_ext >&5
6196
 
 
 
6375
if ac_fn_c_try_compile "$LINENO"; then :
 
6376
  ac_cv_sys_large_files=no; break
6197
6377
fi
6198
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6199
 
  cat >conftest.$ac_ext <<_ACEOF
6200
 
/* confdefs.h.  */
6201
 
_ACEOF
6202
 
cat confdefs.h >>conftest.$ac_ext
6203
 
cat >>conftest.$ac_ext <<_ACEOF
 
6378
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6379
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6204
6380
/* end confdefs.h.  */
6205
6381
#define _LARGE_FILES 1
6206
6382
#include <sys/types.h>
6220
6396
  return 0;
6221
6397
}
6222
6398
_ACEOF
6223
 
rm -f conftest.$ac_objext
6224
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6225
 
  (eval $ac_compile) 2>conftest.er1
6226
 
  ac_status=$?
6227
 
  grep -v '^ *+' conftest.er1 >conftest.err
6228
 
  rm -f conftest.er1
6229
 
  cat conftest.err >&5
6230
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6231
 
  (exit $ac_status); } &&
6232
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6233
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6234
 
  (eval $ac_try) 2>&5
6235
 
  ac_status=$?
6236
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6237
 
  (exit $ac_status); }; } &&
6238
 
         { ac_try='test -s conftest.$ac_objext'
6239
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6240
 
  (eval $ac_try) 2>&5
6241
 
  ac_status=$?
6242
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6243
 
  (exit $ac_status); }; }; then
 
6399
if ac_fn_c_try_compile "$LINENO"; then :
6244
6400
  ac_cv_sys_large_files=1; break
6245
 
else
6246
 
  echo "$as_me: failed program was:" >&5
6247
 
sed 's/^/| /' conftest.$ac_ext >&5
6248
 
 
6249
6401
fi
6250
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
6402
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6403
  ac_cv_sys_large_files=unknown
6251
6404
  break
6252
6405
done
6253
6406
fi
6254
 
echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
6255
 
echo "${ECHO_T}$ac_cv_sys_large_files" >&6
6256
 
if test "$ac_cv_sys_large_files" != no; then
6257
 
 
 
6407
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
 
6408
$as_echo "$ac_cv_sys_large_files" >&6; }
 
6409
case $ac_cv_sys_large_files in #(
 
6410
  no | unknown) ;;
 
6411
  *)
6258
6412
cat >>confdefs.h <<_ACEOF
6259
6413
#define _LARGE_FILES $ac_cv_sys_large_files
6260
6414
_ACEOF
6261
 
 
6262
 
fi
6263
 
rm -f conftest*
 
6415
;;
 
6416
esac
 
6417
rm -rf conftest*
 
6418
  fi
6264
6419
fi
6265
6420
 
6266
6421
 
6267
6422
# Checks for libraries.
6268
 
echo "$as_me:$LINENO: checking for library containing getpwnam" >&5
6269
 
echo $ECHO_N "checking for library containing getpwnam... $ECHO_C" >&6
6270
 
if test "${ac_cv_search_getpwnam+set}" = set; then
6271
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6423
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getpwnam" >&5
 
6424
$as_echo_n "checking for library containing getpwnam... " >&6; }
 
6425
if test "${ac_cv_search_getpwnam+set}" = set; then :
 
6426
  $as_echo_n "(cached) " >&6
6272
6427
else
6273
6428
  ac_func_search_save_LIBS=$LIBS
6274
 
ac_cv_search_getpwnam=no
6275
 
cat >conftest.$ac_ext <<_ACEOF
6276
 
/* confdefs.h.  */
6277
 
_ACEOF
6278
 
cat confdefs.h >>conftest.$ac_ext
6279
 
cat >>conftest.$ac_ext <<_ACEOF
 
6429
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6280
6430
/* end confdefs.h.  */
6281
6431
 
6282
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
6432
/* Override any GCC internal prototype to avoid an error.
 
6433
   Use char because int might match the return type of a GCC
 
6434
   builtin and then its argument prototype would still apply.  */
6283
6435
#ifdef __cplusplus
6284
6436
extern "C"
6285
6437
#endif
6286
 
/* We use char because int might match the return type of a gcc2
6287
 
   builtin and then its argument prototype would still apply.  */
6288
6438
char getpwnam ();
6289
6439
int
6290
6440
main ()
6291
6441
{
6292
 
getpwnam ();
 
6442
return getpwnam ();
6293
6443
  ;
6294
6444
  return 0;
6295
6445
}
6296
6446
_ACEOF
6297
 
rm -f conftest.$ac_objext conftest$ac_exeext
6298
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6299
 
  (eval $ac_link) 2>conftest.er1
6300
 
  ac_status=$?
6301
 
  grep -v '^ *+' conftest.er1 >conftest.err
6302
 
  rm -f conftest.er1
6303
 
  cat conftest.err >&5
6304
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6305
 
  (exit $ac_status); } &&
6306
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6307
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6308
 
  (eval $ac_try) 2>&5
6309
 
  ac_status=$?
6310
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6311
 
  (exit $ac_status); }; } &&
6312
 
         { ac_try='test -s conftest$ac_exeext'
6313
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6314
 
  (eval $ac_try) 2>&5
6315
 
  ac_status=$?
6316
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6317
 
  (exit $ac_status); }; }; then
6318
 
  ac_cv_search_getpwnam="none required"
6319
 
else
6320
 
  echo "$as_me: failed program was:" >&5
6321
 
sed 's/^/| /' conftest.$ac_ext >&5
6322
 
 
6323
 
fi
6324
 
rm -f conftest.err conftest.$ac_objext \
6325
 
      conftest$ac_exeext conftest.$ac_ext
6326
 
if test "$ac_cv_search_getpwnam" = no; then
6327
 
  for ac_lib in sun; do
 
6447
for ac_lib in '' sun; do
 
6448
  if test -z "$ac_lib"; then
 
6449
    ac_res="none required"
 
6450
  else
 
6451
    ac_res=-l$ac_lib
6328
6452
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6329
 
    cat >conftest.$ac_ext <<_ACEOF
6330
 
/* confdefs.h.  */
6331
 
_ACEOF
6332
 
cat confdefs.h >>conftest.$ac_ext
6333
 
cat >>conftest.$ac_ext <<_ACEOF
6334
 
/* end confdefs.h.  */
 
6453
  fi
 
6454
  if ac_fn_c_try_link "$LINENO"; then :
 
6455
  ac_cv_search_getpwnam=$ac_res
 
6456
fi
 
6457
rm -f core conftest.err conftest.$ac_objext \
 
6458
    conftest$ac_exeext
 
6459
  if test "${ac_cv_search_getpwnam+set}" = set; then :
 
6460
  break
 
6461
fi
 
6462
done
 
6463
if test "${ac_cv_search_getpwnam+set}" = set; then :
6335
6464
 
6336
 
/* Override any gcc2 internal prototype to avoid an error.  */
6337
 
#ifdef __cplusplus
6338
 
extern "C"
6339
 
#endif
6340
 
/* We use char because int might match the return type of a gcc2
6341
 
   builtin and then its argument prototype would still apply.  */
6342
 
char getpwnam ();
6343
 
int
6344
 
main ()
6345
 
{
6346
 
getpwnam ();
6347
 
  ;
6348
 
  return 0;
6349
 
}
6350
 
_ACEOF
6351
 
rm -f conftest.$ac_objext conftest$ac_exeext
6352
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6353
 
  (eval $ac_link) 2>conftest.er1
6354
 
  ac_status=$?
6355
 
  grep -v '^ *+' conftest.er1 >conftest.err
6356
 
  rm -f conftest.er1
6357
 
  cat conftest.err >&5
6358
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6359
 
  (exit $ac_status); } &&
6360
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6361
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6362
 
  (eval $ac_try) 2>&5
6363
 
  ac_status=$?
6364
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6365
 
  (exit $ac_status); }; } &&
6366
 
         { ac_try='test -s conftest$ac_exeext'
6367
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6368
 
  (eval $ac_try) 2>&5
6369
 
  ac_status=$?
6370
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6371
 
  (exit $ac_status); }; }; then
6372
 
  ac_cv_search_getpwnam="-l$ac_lib"
6373
 
break
6374
6465
else
6375
 
  echo "$as_me: failed program was:" >&5
6376
 
sed 's/^/| /' conftest.$ac_ext >&5
6377
 
 
6378
 
fi
6379
 
rm -f conftest.err conftest.$ac_objext \
6380
 
      conftest$ac_exeext conftest.$ac_ext
6381
 
  done
6382
 
fi
 
6466
  ac_cv_search_getpwnam=no
 
6467
fi
 
6468
rm conftest.$ac_ext
6383
6469
LIBS=$ac_func_search_save_LIBS
6384
6470
fi
6385
 
echo "$as_me:$LINENO: result: $ac_cv_search_getpwnam" >&5
6386
 
echo "${ECHO_T}$ac_cv_search_getpwnam" >&6
6387
 
if test "$ac_cv_search_getpwnam" != no; then
6388
 
  test "$ac_cv_search_getpwnam" = "none required" || LIBS="$ac_cv_search_getpwnam $LIBS"
 
6471
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getpwnam" >&5
 
6472
$as_echo "$ac_cv_search_getpwnam" >&6; }
 
6473
ac_res=$ac_cv_search_getpwnam
 
6474
if test "$ac_res" != no; then :
 
6475
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6389
6476
 
6390
6477
fi
6391
6478
 
6392
6479
 
6393
6480
# Checks for header files.
6394
 
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6395
 
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6396
 
if test "${ac_cv_header_stdc+set}" = set; then
6397
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6481
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
 
6482
$as_echo_n "checking for ANSI C header files... " >&6; }
 
6483
if test "${ac_cv_header_stdc+set}" = set; then :
 
6484
  $as_echo_n "(cached) " >&6
6398
6485
else
6399
 
  cat >conftest.$ac_ext <<_ACEOF
6400
 
/* confdefs.h.  */
6401
 
_ACEOF
6402
 
cat confdefs.h >>conftest.$ac_ext
6403
 
cat >>conftest.$ac_ext <<_ACEOF
 
6486
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6404
6487
/* end confdefs.h.  */
6405
6488
#include <stdlib.h>
6406
6489
#include <stdarg.h>
6415
6498
  return 0;
6416
6499
}
6417
6500
_ACEOF
6418
 
rm -f conftest.$ac_objext
6419
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6420
 
  (eval $ac_compile) 2>conftest.er1
6421
 
  ac_status=$?
6422
 
  grep -v '^ *+' conftest.er1 >conftest.err
6423
 
  rm -f conftest.er1
6424
 
  cat conftest.err >&5
6425
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6426
 
  (exit $ac_status); } &&
6427
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6428
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6429
 
  (eval $ac_try) 2>&5
6430
 
  ac_status=$?
6431
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432
 
  (exit $ac_status); }; } &&
6433
 
         { ac_try='test -s conftest.$ac_objext'
6434
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6435
 
  (eval $ac_try) 2>&5
6436
 
  ac_status=$?
6437
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6438
 
  (exit $ac_status); }; }; then
 
6501
if ac_fn_c_try_compile "$LINENO"; then :
6439
6502
  ac_cv_header_stdc=yes
6440
6503
else
6441
 
  echo "$as_me: failed program was:" >&5
6442
 
sed 's/^/| /' conftest.$ac_ext >&5
6443
 
 
6444
 
ac_cv_header_stdc=no
 
6504
  ac_cv_header_stdc=no
6445
6505
fi
6446
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
6506
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6447
6507
 
6448
6508
if test $ac_cv_header_stdc = yes; then
6449
6509
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6450
 
  cat >conftest.$ac_ext <<_ACEOF
6451
 
/* confdefs.h.  */
6452
 
_ACEOF
6453
 
cat confdefs.h >>conftest.$ac_ext
6454
 
cat >>conftest.$ac_ext <<_ACEOF
 
6510
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6455
6511
/* end confdefs.h.  */
6456
6512
#include <string.h>
6457
6513
 
6458
6514
_ACEOF
6459
6515
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6460
 
  $EGREP "memchr" >/dev/null 2>&1; then
6461
 
  :
 
6516
  $EGREP "memchr" >/dev/null 2>&1; then :
 
6517
 
6462
6518
else
6463
6519
  ac_cv_header_stdc=no
6464
6520
fi
6468
6524
 
6469
6525
if test $ac_cv_header_stdc = yes; then
6470
6526
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6471
 
  cat >conftest.$ac_ext <<_ACEOF
6472
 
/* confdefs.h.  */
6473
 
_ACEOF
6474
 
cat confdefs.h >>conftest.$ac_ext
6475
 
cat >>conftest.$ac_ext <<_ACEOF
 
6527
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6476
6528
/* end confdefs.h.  */
6477
6529
#include <stdlib.h>
6478
6530
 
6479
6531
_ACEOF
6480
6532
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6481
 
  $EGREP "free" >/dev/null 2>&1; then
6482
 
  :
 
6533
  $EGREP "free" >/dev/null 2>&1; then :
 
6534
 
6483
6535
else
6484
6536
  ac_cv_header_stdc=no
6485
6537
fi
6489
6541
 
6490
6542
if test $ac_cv_header_stdc = yes; then
6491
6543
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6492
 
  if test "$cross_compiling" = yes; then
 
6544
  if test "$cross_compiling" = yes; then :
6493
6545
  :
6494
6546
else
6495
 
  cat >conftest.$ac_ext <<_ACEOF
6496
 
/* confdefs.h.  */
6497
 
_ACEOF
6498
 
cat confdefs.h >>conftest.$ac_ext
6499
 
cat >>conftest.$ac_ext <<_ACEOF
 
6547
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6500
6548
/* end confdefs.h.  */
6501
6549
#include <ctype.h>
 
6550
#include <stdlib.h>
6502
6551
#if ((' ' & 0x0FF) == 0x020)
6503
6552
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6504
6553
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6518
6567
  for (i = 0; i < 256; i++)
6519
6568
    if (XOR (islower (i), ISLOWER (i))
6520
6569
        || toupper (i) != TOUPPER (i))
6521
 
      exit(2);
6522
 
  exit (0);
 
6570
      return 2;
 
6571
  return 0;
6523
6572
}
6524
6573
_ACEOF
6525
 
rm -f conftest$ac_exeext
6526
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6527
 
  (eval $ac_link) 2>&5
6528
 
  ac_status=$?
6529
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6530
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6531
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6532
 
  (eval $ac_try) 2>&5
6533
 
  ac_status=$?
6534
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6535
 
  (exit $ac_status); }; }; then
6536
 
  :
 
6574
if ac_fn_c_try_run "$LINENO"; then :
 
6575
 
6537
6576
else
6538
 
  echo "$as_me: program exited with status $ac_status" >&5
6539
 
echo "$as_me: failed program was:" >&5
6540
 
sed 's/^/| /' conftest.$ac_ext >&5
 
6577
  ac_cv_header_stdc=no
 
6578
fi
 
6579
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
6580
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
6581
fi
6541
6582
 
6542
 
( exit $ac_status )
6543
 
ac_cv_header_stdc=no
6544
 
fi
6545
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6546
 
fi
6547
 
fi
6548
 
fi
6549
 
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6550
 
echo "${ECHO_T}$ac_cv_header_stdc" >&6
 
6583
fi
 
6584
fi
 
6585
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
 
6586
$as_echo "$ac_cv_header_stdc" >&6; }
6551
6587
if test $ac_cv_header_stdc = yes; then
6552
6588
 
6553
 
cat >>confdefs.h <<\_ACEOF
6554
 
#define STDC_HEADERS 1
6555
 
_ACEOF
 
6589
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6556
6590
 
6557
6591
fi
6558
6592
 
6559
 
 
6560
 
 
6561
 
 
6562
 
 
6563
 
 
6564
6593
ac_header_dirent=no
6565
6594
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6566
 
  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6567
 
echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6568
 
echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6569
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
6570
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6595
  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
 
6596
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
 
6597
$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
 
6598
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
 
6599
  $as_echo_n "(cached) " >&6
6571
6600
else
6572
 
  cat >conftest.$ac_ext <<_ACEOF
6573
 
/* confdefs.h.  */
6574
 
_ACEOF
6575
 
cat confdefs.h >>conftest.$ac_ext
6576
 
cat >>conftest.$ac_ext <<_ACEOF
 
6601
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6577
6602
/* end confdefs.h.  */
6578
6603
#include <sys/types.h>
6579
6604
#include <$ac_hdr>
6587
6612
  return 0;
6588
6613
}
6589
6614
_ACEOF
6590
 
rm -f conftest.$ac_objext
6591
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6592
 
  (eval $ac_compile) 2>conftest.er1
6593
 
  ac_status=$?
6594
 
  grep -v '^ *+' conftest.er1 >conftest.err
6595
 
  rm -f conftest.er1
6596
 
  cat conftest.err >&5
6597
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6598
 
  (exit $ac_status); } &&
6599
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6600
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6601
 
  (eval $ac_try) 2>&5
6602
 
  ac_status=$?
6603
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6604
 
  (exit $ac_status); }; } &&
6605
 
         { ac_try='test -s conftest.$ac_objext'
6606
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6607
 
  (eval $ac_try) 2>&5
6608
 
  ac_status=$?
6609
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6610
 
  (exit $ac_status); }; }; then
 
6615
if ac_fn_c_try_compile "$LINENO"; then :
6611
6616
  eval "$as_ac_Header=yes"
6612
6617
else
6613
 
  echo "$as_me: failed program was:" >&5
6614
 
sed 's/^/| /' conftest.$ac_ext >&5
6615
 
 
6616
 
eval "$as_ac_Header=no"
6617
 
fi
6618
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6619
 
fi
6620
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6621
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6622
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
6618
  eval "$as_ac_Header=no"
 
6619
fi
 
6620
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6621
fi
 
6622
eval ac_res=\$$as_ac_Header
 
6623
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
6624
$as_echo "$ac_res" >&6; }
 
6625
eval as_val=\$$as_ac_Header
 
6626
   if test "x$as_val" = x""yes; then :
6623
6627
  cat >>confdefs.h <<_ACEOF
6624
 
#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
 
6628
#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6625
6629
_ACEOF
6626
6630
 
6627
6631
ac_header_dirent=$ac_hdr; break
6630
6634
done
6631
6635
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6632
6636
if test $ac_header_dirent = dirent.h; then
6633
 
  echo "$as_me:$LINENO: checking for library containing opendir" >&5
6634
 
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6635
 
if test "${ac_cv_search_opendir+set}" = set; then
6636
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6637
 
else
6638
 
  ac_func_search_save_LIBS=$LIBS
6639
 
ac_cv_search_opendir=no
6640
 
cat >conftest.$ac_ext <<_ACEOF
6641
 
/* confdefs.h.  */
6642
 
_ACEOF
6643
 
cat confdefs.h >>conftest.$ac_ext
6644
 
cat >>conftest.$ac_ext <<_ACEOF
6645
 
/* end confdefs.h.  */
6646
 
 
6647
 
/* Override any gcc2 internal prototype to avoid an error.  */
6648
 
#ifdef __cplusplus
6649
 
extern "C"
6650
 
#endif
6651
 
/* We use char because int might match the return type of a gcc2
6652
 
   builtin and then its argument prototype would still apply.  */
6653
 
char opendir ();
6654
 
int
6655
 
main ()
6656
 
{
6657
 
opendir ();
6658
 
  ;
6659
 
  return 0;
6660
 
}
6661
 
_ACEOF
6662
 
rm -f conftest.$ac_objext conftest$ac_exeext
6663
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6664
 
  (eval $ac_link) 2>conftest.er1
6665
 
  ac_status=$?
6666
 
  grep -v '^ *+' conftest.er1 >conftest.err
6667
 
  rm -f conftest.er1
6668
 
  cat conftest.err >&5
6669
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6670
 
  (exit $ac_status); } &&
6671
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6672
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6673
 
  (eval $ac_try) 2>&5
6674
 
  ac_status=$?
6675
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6676
 
  (exit $ac_status); }; } &&
6677
 
         { ac_try='test -s conftest$ac_exeext'
6678
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6679
 
  (eval $ac_try) 2>&5
6680
 
  ac_status=$?
6681
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6682
 
  (exit $ac_status); }; }; then
6683
 
  ac_cv_search_opendir="none required"
6684
 
else
6685
 
  echo "$as_me: failed program was:" >&5
6686
 
sed 's/^/| /' conftest.$ac_ext >&5
6687
 
 
6688
 
fi
6689
 
rm -f conftest.err conftest.$ac_objext \
6690
 
      conftest$ac_exeext conftest.$ac_ext
6691
 
if test "$ac_cv_search_opendir" = no; then
6692
 
  for ac_lib in dir; do
6693
 
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6694
 
    cat >conftest.$ac_ext <<_ACEOF
6695
 
/* confdefs.h.  */
6696
 
_ACEOF
6697
 
cat confdefs.h >>conftest.$ac_ext
6698
 
cat >>conftest.$ac_ext <<_ACEOF
6699
 
/* end confdefs.h.  */
6700
 
 
6701
 
/* Override any gcc2 internal prototype to avoid an error.  */
6702
 
#ifdef __cplusplus
6703
 
extern "C"
6704
 
#endif
6705
 
/* We use char because int might match the return type of a gcc2
6706
 
   builtin and then its argument prototype would still apply.  */
6707
 
char opendir ();
6708
 
int
6709
 
main ()
6710
 
{
6711
 
opendir ();
6712
 
  ;
6713
 
  return 0;
6714
 
}
6715
 
_ACEOF
6716
 
rm -f conftest.$ac_objext conftest$ac_exeext
6717
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6718
 
  (eval $ac_link) 2>conftest.er1
6719
 
  ac_status=$?
6720
 
  grep -v '^ *+' conftest.er1 >conftest.err
6721
 
  rm -f conftest.er1
6722
 
  cat conftest.err >&5
6723
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6724
 
  (exit $ac_status); } &&
6725
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6726
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6727
 
  (eval $ac_try) 2>&5
6728
 
  ac_status=$?
6729
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6730
 
  (exit $ac_status); }; } &&
6731
 
         { ac_try='test -s conftest$ac_exeext'
6732
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6733
 
  (eval $ac_try) 2>&5
6734
 
  ac_status=$?
6735
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6736
 
  (exit $ac_status); }; }; then
6737
 
  ac_cv_search_opendir="-l$ac_lib"
6738
 
break
6739
 
else
6740
 
  echo "$as_me: failed program was:" >&5
6741
 
sed 's/^/| /' conftest.$ac_ext >&5
6742
 
 
6743
 
fi
6744
 
rm -f conftest.err conftest.$ac_objext \
6745
 
      conftest$ac_exeext conftest.$ac_ext
6746
 
  done
6747
 
fi
6748
 
LIBS=$ac_func_search_save_LIBS
6749
 
fi
6750
 
echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6751
 
echo "${ECHO_T}$ac_cv_search_opendir" >&6
6752
 
if test "$ac_cv_search_opendir" != no; then
6753
 
  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6754
 
 
6755
 
fi
6756
 
 
6757
 
else
6758
 
  echo "$as_me:$LINENO: checking for library containing opendir" >&5
6759
 
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6760
 
if test "${ac_cv_search_opendir+set}" = set; then
6761
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6762
 
else
6763
 
  ac_func_search_save_LIBS=$LIBS
6764
 
ac_cv_search_opendir=no
6765
 
cat >conftest.$ac_ext <<_ACEOF
6766
 
/* confdefs.h.  */
6767
 
_ACEOF
6768
 
cat confdefs.h >>conftest.$ac_ext
6769
 
cat >>conftest.$ac_ext <<_ACEOF
6770
 
/* end confdefs.h.  */
6771
 
 
6772
 
/* Override any gcc2 internal prototype to avoid an error.  */
6773
 
#ifdef __cplusplus
6774
 
extern "C"
6775
 
#endif
6776
 
/* We use char because int might match the return type of a gcc2
6777
 
   builtin and then its argument prototype would still apply.  */
6778
 
char opendir ();
6779
 
int
6780
 
main ()
6781
 
{
6782
 
opendir ();
6783
 
  ;
6784
 
  return 0;
6785
 
}
6786
 
_ACEOF
6787
 
rm -f conftest.$ac_objext conftest$ac_exeext
6788
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6789
 
  (eval $ac_link) 2>conftest.er1
6790
 
  ac_status=$?
6791
 
  grep -v '^ *+' conftest.er1 >conftest.err
6792
 
  rm -f conftest.er1
6793
 
  cat conftest.err >&5
6794
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6795
 
  (exit $ac_status); } &&
6796
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6797
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6798
 
  (eval $ac_try) 2>&5
6799
 
  ac_status=$?
6800
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6801
 
  (exit $ac_status); }; } &&
6802
 
         { ac_try='test -s conftest$ac_exeext'
6803
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6804
 
  (eval $ac_try) 2>&5
6805
 
  ac_status=$?
6806
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6807
 
  (exit $ac_status); }; }; then
6808
 
  ac_cv_search_opendir="none required"
6809
 
else
6810
 
  echo "$as_me: failed program was:" >&5
6811
 
sed 's/^/| /' conftest.$ac_ext >&5
6812
 
 
6813
 
fi
6814
 
rm -f conftest.err conftest.$ac_objext \
6815
 
      conftest$ac_exeext conftest.$ac_ext
6816
 
if test "$ac_cv_search_opendir" = no; then
6817
 
  for ac_lib in x; do
6818
 
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6819
 
    cat >conftest.$ac_ext <<_ACEOF
6820
 
/* confdefs.h.  */
6821
 
_ACEOF
6822
 
cat confdefs.h >>conftest.$ac_ext
6823
 
cat >>conftest.$ac_ext <<_ACEOF
6824
 
/* end confdefs.h.  */
6825
 
 
6826
 
/* Override any gcc2 internal prototype to avoid an error.  */
6827
 
#ifdef __cplusplus
6828
 
extern "C"
6829
 
#endif
6830
 
/* We use char because int might match the return type of a gcc2
6831
 
   builtin and then its argument prototype would still apply.  */
6832
 
char opendir ();
6833
 
int
6834
 
main ()
6835
 
{
6836
 
opendir ();
6837
 
  ;
6838
 
  return 0;
6839
 
}
6840
 
_ACEOF
6841
 
rm -f conftest.$ac_objext conftest$ac_exeext
6842
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6843
 
  (eval $ac_link) 2>conftest.er1
6844
 
  ac_status=$?
6845
 
  grep -v '^ *+' conftest.er1 >conftest.err
6846
 
  rm -f conftest.er1
6847
 
  cat conftest.err >&5
6848
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6849
 
  (exit $ac_status); } &&
6850
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6851
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6852
 
  (eval $ac_try) 2>&5
6853
 
  ac_status=$?
6854
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6855
 
  (exit $ac_status); }; } &&
6856
 
         { ac_try='test -s conftest$ac_exeext'
6857
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6858
 
  (eval $ac_try) 2>&5
6859
 
  ac_status=$?
6860
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6861
 
  (exit $ac_status); }; }; then
6862
 
  ac_cv_search_opendir="-l$ac_lib"
6863
 
break
6864
 
else
6865
 
  echo "$as_me: failed program was:" >&5
6866
 
sed 's/^/| /' conftest.$ac_ext >&5
6867
 
 
6868
 
fi
6869
 
rm -f conftest.err conftest.$ac_objext \
6870
 
      conftest$ac_exeext conftest.$ac_ext
6871
 
  done
6872
 
fi
6873
 
LIBS=$ac_func_search_save_LIBS
6874
 
fi
6875
 
echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6876
 
echo "${ECHO_T}$ac_cv_search_opendir" >&6
6877
 
if test "$ac_cv_search_opendir" != no; then
6878
 
  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6879
 
 
6880
 
fi
6881
 
 
6882
 
fi
6883
 
 
6884
 
echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
6885
 
echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
6886
 
if test "${ac_cv_header_stat_broken+set}" = set; then
6887
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6888
 
else
6889
 
  cat >conftest.$ac_ext <<_ACEOF
6890
 
/* confdefs.h.  */
6891
 
_ACEOF
6892
 
cat confdefs.h >>conftest.$ac_ext
6893
 
cat >>conftest.$ac_ext <<_ACEOF
 
6637
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
 
6638
$as_echo_n "checking for library containing opendir... " >&6; }
 
6639
if test "${ac_cv_search_opendir+set}" = set; then :
 
6640
  $as_echo_n "(cached) " >&6
 
6641
else
 
6642
  ac_func_search_save_LIBS=$LIBS
 
6643
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6644
/* end confdefs.h.  */
 
6645
 
 
6646
/* Override any GCC internal prototype to avoid an error.
 
6647
   Use char because int might match the return type of a GCC
 
6648
   builtin and then its argument prototype would still apply.  */
 
6649
#ifdef __cplusplus
 
6650
extern "C"
 
6651
#endif
 
6652
char opendir ();
 
6653
int
 
6654
main ()
 
6655
{
 
6656
return opendir ();
 
6657
  ;
 
6658
  return 0;
 
6659
}
 
6660
_ACEOF
 
6661
for ac_lib in '' dir; do
 
6662
  if test -z "$ac_lib"; then
 
6663
    ac_res="none required"
 
6664
  else
 
6665
    ac_res=-l$ac_lib
 
6666
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
6667
  fi
 
6668
  if ac_fn_c_try_link "$LINENO"; then :
 
6669
  ac_cv_search_opendir=$ac_res
 
6670
fi
 
6671
rm -f core conftest.err conftest.$ac_objext \
 
6672
    conftest$ac_exeext
 
6673
  if test "${ac_cv_search_opendir+set}" = set; then :
 
6674
  break
 
6675
fi
 
6676
done
 
6677
if test "${ac_cv_search_opendir+set}" = set; then :
 
6678
 
 
6679
else
 
6680
  ac_cv_search_opendir=no
 
6681
fi
 
6682
rm conftest.$ac_ext
 
6683
LIBS=$ac_func_search_save_LIBS
 
6684
fi
 
6685
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
 
6686
$as_echo "$ac_cv_search_opendir" >&6; }
 
6687
ac_res=$ac_cv_search_opendir
 
6688
if test "$ac_res" != no; then :
 
6689
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
6690
 
 
6691
fi
 
6692
 
 
6693
else
 
6694
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
 
6695
$as_echo_n "checking for library containing opendir... " >&6; }
 
6696
if test "${ac_cv_search_opendir+set}" = set; then :
 
6697
  $as_echo_n "(cached) " >&6
 
6698
else
 
6699
  ac_func_search_save_LIBS=$LIBS
 
6700
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6701
/* end confdefs.h.  */
 
6702
 
 
6703
/* Override any GCC internal prototype to avoid an error.
 
6704
   Use char because int might match the return type of a GCC
 
6705
   builtin and then its argument prototype would still apply.  */
 
6706
#ifdef __cplusplus
 
6707
extern "C"
 
6708
#endif
 
6709
char opendir ();
 
6710
int
 
6711
main ()
 
6712
{
 
6713
return opendir ();
 
6714
  ;
 
6715
  return 0;
 
6716
}
 
6717
_ACEOF
 
6718
for ac_lib in '' x; do
 
6719
  if test -z "$ac_lib"; then
 
6720
    ac_res="none required"
 
6721
  else
 
6722
    ac_res=-l$ac_lib
 
6723
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
6724
  fi
 
6725
  if ac_fn_c_try_link "$LINENO"; then :
 
6726
  ac_cv_search_opendir=$ac_res
 
6727
fi
 
6728
rm -f core conftest.err conftest.$ac_objext \
 
6729
    conftest$ac_exeext
 
6730
  if test "${ac_cv_search_opendir+set}" = set; then :
 
6731
  break
 
6732
fi
 
6733
done
 
6734
if test "${ac_cv_search_opendir+set}" = set; then :
 
6735
 
 
6736
else
 
6737
  ac_cv_search_opendir=no
 
6738
fi
 
6739
rm conftest.$ac_ext
 
6740
LIBS=$ac_func_search_save_LIBS
 
6741
fi
 
6742
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
 
6743
$as_echo "$ac_cv_search_opendir" >&6; }
 
6744
ac_res=$ac_cv_search_opendir
 
6745
if test "$ac_res" != no; then :
 
6746
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
6747
 
 
6748
fi
 
6749
 
 
6750
fi
 
6751
 
 
6752
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
 
6753
$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
 
6754
if test "${ac_cv_header_stat_broken+set}" = set; then :
 
6755
  $as_echo_n "(cached) " >&6
 
6756
else
 
6757
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6894
6758
/* end confdefs.h.  */
6895
6759
#include <sys/types.h>
6896
6760
#include <sys/stat.h>
6897
6761
 
6898
 
#if defined(S_ISBLK) && defined(S_IFDIR)
6899
 
# if S_ISBLK (S_IFDIR)
6900
 
You lose.
6901
 
# endif
6902
 
#endif
6903
 
 
6904
 
#if defined(S_ISBLK) && defined(S_IFCHR)
6905
 
# if S_ISBLK (S_IFCHR)
6906
 
You lose.
6907
 
# endif
6908
 
#endif
6909
 
 
6910
 
#if defined(S_ISLNK) && defined(S_IFREG)
6911
 
# if S_ISLNK (S_IFREG)
6912
 
You lose.
6913
 
# endif
6914
 
#endif
6915
 
 
6916
 
#if defined(S_ISSOCK) && defined(S_IFREG)
6917
 
# if S_ISSOCK (S_IFREG)
6918
 
You lose.
6919
 
# endif
 
6762
#if defined S_ISBLK && defined S_IFDIR
 
6763
extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
 
6764
#endif
 
6765
 
 
6766
#if defined S_ISBLK && defined S_IFCHR
 
6767
extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
 
6768
#endif
 
6769
 
 
6770
#if defined S_ISLNK && defined S_IFREG
 
6771
extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
 
6772
#endif
 
6773
 
 
6774
#if defined S_ISSOCK && defined S_IFREG
 
6775
extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6920
6776
#endif
6921
6777
 
6922
6778
_ACEOF
6923
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6924
 
  $EGREP "You lose" >/dev/null 2>&1; then
 
6779
if ac_fn_c_try_compile "$LINENO"; then :
 
6780
  ac_cv_header_stat_broken=no
 
6781
else
6925
6782
  ac_cv_header_stat_broken=yes
6926
 
else
6927
 
  ac_cv_header_stat_broken=no
6928
 
fi
6929
 
rm -f conftest*
6930
 
 
6931
 
fi
6932
 
echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
6933
 
echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
 
6783
fi
 
6784
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6785
fi
 
6786
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
 
6787
$as_echo "$ac_cv_header_stat_broken" >&6; }
6934
6788
if test $ac_cv_header_stat_broken = yes; then
6935
6789
 
6936
 
cat >>confdefs.h <<\_ACEOF
6937
 
#define STAT_MACROS_BROKEN 1
6938
 
_ACEOF
 
6790
$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6939
6791
 
6940
6792
fi
6941
6793
 
6942
 
echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6943
 
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
6944
 
if test "${ac_cv_header_time+set}" = set; then
6945
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6794
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
 
6795
$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
 
6796
if test "${ac_cv_header_time+set}" = set; then :
 
6797
  $as_echo_n "(cached) " >&6
6946
6798
else
6947
 
  cat >conftest.$ac_ext <<_ACEOF
6948
 
/* confdefs.h.  */
6949
 
_ACEOF
6950
 
cat confdefs.h >>conftest.$ac_ext
6951
 
cat >>conftest.$ac_ext <<_ACEOF
 
6799
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6952
6800
/* end confdefs.h.  */
6953
6801
#include <sys/types.h>
6954
6802
#include <sys/time.h>
6963
6811
  return 0;
6964
6812
}
6965
6813
_ACEOF
6966
 
rm -f conftest.$ac_objext
6967
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6968
 
  (eval $ac_compile) 2>conftest.er1
6969
 
  ac_status=$?
6970
 
  grep -v '^ *+' conftest.er1 >conftest.err
6971
 
  rm -f conftest.er1
6972
 
  cat conftest.err >&5
6973
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6974
 
  (exit $ac_status); } &&
6975
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6976
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6977
 
  (eval $ac_try) 2>&5
6978
 
  ac_status=$?
6979
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6980
 
  (exit $ac_status); }; } &&
6981
 
         { ac_try='test -s conftest.$ac_objext'
6982
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6983
 
  (eval $ac_try) 2>&5
6984
 
  ac_status=$?
6985
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6986
 
  (exit $ac_status); }; }; then
 
6814
if ac_fn_c_try_compile "$LINENO"; then :
6987
6815
  ac_cv_header_time=yes
6988
6816
else
6989
 
  echo "$as_me: failed program was:" >&5
6990
 
sed 's/^/| /' conftest.$ac_ext >&5
6991
 
 
6992
 
ac_cv_header_time=no
6993
 
fi
6994
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6995
 
fi
6996
 
echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6997
 
echo "${ECHO_T}$ac_cv_header_time" >&6
 
6817
  ac_cv_header_time=no
 
6818
fi
 
6819
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6820
fi
 
6821
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
 
6822
$as_echo "$ac_cv_header_time" >&6; }
6998
6823
if test $ac_cv_header_time = yes; then
6999
6824
 
7000
 
cat >>confdefs.h <<\_ACEOF
7001
 
#define TIME_WITH_SYS_TIME 1
7002
 
_ACEOF
 
6825
$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
7003
6826
 
7004
6827
fi
7005
6828
 
7006
 
 
7007
 
 
7008
 
 
7009
 
 
7010
 
 
7011
 
 
7012
 
 
7013
 
 
7014
 
 
7015
 
 
7016
 
 
7017
6829
for ac_header in stdlib.h locale.h unistd.h limits.h fcntl.h string.h \
7018
6830
                 memory.h sys/param.h sys/resource.h sys/time.h sys/timeb.h
7019
 
do
7020
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7021
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
7022
 
  echo "$as_me:$LINENO: checking for $ac_header" >&5
7023
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7024
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
7025
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7026
 
fi
7027
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7028
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7029
 
else
7030
 
  # Is the header compilable?
7031
 
echo "$as_me:$LINENO: checking $ac_header usability" >&5
7032
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7033
 
cat >conftest.$ac_ext <<_ACEOF
7034
 
/* confdefs.h.  */
7035
 
_ACEOF
7036
 
cat confdefs.h >>conftest.$ac_ext
7037
 
cat >>conftest.$ac_ext <<_ACEOF
7038
 
/* end confdefs.h.  */
7039
 
$ac_includes_default
7040
 
#include <$ac_header>
7041
 
_ACEOF
7042
 
rm -f conftest.$ac_objext
7043
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7044
 
  (eval $ac_compile) 2>conftest.er1
7045
 
  ac_status=$?
7046
 
  grep -v '^ *+' conftest.er1 >conftest.err
7047
 
  rm -f conftest.er1
7048
 
  cat conftest.err >&5
7049
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7050
 
  (exit $ac_status); } &&
7051
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7052
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7053
 
  (eval $ac_try) 2>&5
7054
 
  ac_status=$?
7055
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7056
 
  (exit $ac_status); }; } &&
7057
 
         { ac_try='test -s conftest.$ac_objext'
7058
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7059
 
  (eval $ac_try) 2>&5
7060
 
  ac_status=$?
7061
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7062
 
  (exit $ac_status); }; }; then
7063
 
  ac_header_compiler=yes
7064
 
else
7065
 
  echo "$as_me: failed program was:" >&5
7066
 
sed 's/^/| /' conftest.$ac_ext >&5
7067
 
 
7068
 
ac_header_compiler=no
7069
 
fi
7070
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7071
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7072
 
echo "${ECHO_T}$ac_header_compiler" >&6
7073
 
 
7074
 
# Is the header present?
7075
 
echo "$as_me:$LINENO: checking $ac_header presence" >&5
7076
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7077
 
cat >conftest.$ac_ext <<_ACEOF
7078
 
/* confdefs.h.  */
7079
 
_ACEOF
7080
 
cat confdefs.h >>conftest.$ac_ext
7081
 
cat >>conftest.$ac_ext <<_ACEOF
7082
 
/* end confdefs.h.  */
7083
 
#include <$ac_header>
7084
 
_ACEOF
7085
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7086
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7087
 
  ac_status=$?
7088
 
  grep -v '^ *+' conftest.er1 >conftest.err
7089
 
  rm -f conftest.er1
7090
 
  cat conftest.err >&5
7091
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7092
 
  (exit $ac_status); } >/dev/null; then
7093
 
  if test -s conftest.err; then
7094
 
    ac_cpp_err=$ac_c_preproc_warn_flag
7095
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7096
 
  else
7097
 
    ac_cpp_err=
7098
 
  fi
7099
 
else
7100
 
  ac_cpp_err=yes
7101
 
fi
7102
 
if test -z "$ac_cpp_err"; then
7103
 
  ac_header_preproc=yes
7104
 
else
7105
 
  echo "$as_me: failed program was:" >&5
7106
 
sed 's/^/| /' conftest.$ac_ext >&5
7107
 
 
7108
 
  ac_header_preproc=no
7109
 
fi
7110
 
rm -f conftest.err conftest.$ac_ext
7111
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7112
 
echo "${ECHO_T}$ac_header_preproc" >&6
7113
 
 
7114
 
# So?  What about this header?
7115
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7116
 
  yes:no: )
7117
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7118
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7119
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7120
 
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7121
 
    ac_header_preproc=yes
7122
 
    ;;
7123
 
  no:yes:* )
7124
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7125
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7126
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7127
 
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7128
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7129
 
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7130
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7131
 
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7132
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7133
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7134
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7135
 
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7136
 
    (
7137
 
      cat <<\_ASBOX
7138
 
## ------------------------------- ##
7139
 
## Report this to bug-make@gnu.org ##
7140
 
## ------------------------------- ##
7141
 
_ASBOX
7142
 
    ) |
7143
 
      sed "s/^/$as_me: WARNING:     /" >&2
7144
 
    ;;
7145
 
esac
7146
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
7147
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7148
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
7149
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7150
 
else
7151
 
  eval "$as_ac_Header=\$ac_header_preproc"
7152
 
fi
7153
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7154
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7155
 
 
7156
 
fi
7157
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
6831
do :
 
6832
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
6833
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
 
6834
eval as_val=\$$as_ac_Header
 
6835
   if test "x$as_val" = x""yes; then :
7158
6836
  cat >>confdefs.h <<_ACEOF
7159
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
6837
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7160
6838
_ACEOF
7161
6839
 
7162
6840
fi
7167
6845
# Set a flag if we have an ANSI C compiler
7168
6846
if test "$ac_cv_prog_cc_stdc" != no; then
7169
6847
 
7170
 
cat >>confdefs.h <<\_ACEOF
7171
 
#define HAVE_ANSI_COMPILER 1
7172
 
_ACEOF
 
6848
$as_echo "#define HAVE_ANSI_COMPILER 1" >>confdefs.h
7173
6849
 
7174
6850
fi
7175
6851
 
7176
6852
 
7177
6853
# Determine what kind of variadic function calls we support
7178
 
 
7179
 
 
7180
6854
for ac_header in stdarg.h varargs.h
7181
 
do
7182
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7183
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
7184
 
  echo "$as_me:$LINENO: checking for $ac_header" >&5
7185
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7186
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
7187
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7188
 
fi
7189
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7190
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7191
 
else
7192
 
  # Is the header compilable?
7193
 
echo "$as_me:$LINENO: checking $ac_header usability" >&5
7194
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7195
 
cat >conftest.$ac_ext <<_ACEOF
7196
 
/* confdefs.h.  */
7197
 
_ACEOF
7198
 
cat confdefs.h >>conftest.$ac_ext
7199
 
cat >>conftest.$ac_ext <<_ACEOF
7200
 
/* end confdefs.h.  */
7201
 
$ac_includes_default
7202
 
#include <$ac_header>
7203
 
_ACEOF
7204
 
rm -f conftest.$ac_objext
7205
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7206
 
  (eval $ac_compile) 2>conftest.er1
7207
 
  ac_status=$?
7208
 
  grep -v '^ *+' conftest.er1 >conftest.err
7209
 
  rm -f conftest.er1
7210
 
  cat conftest.err >&5
7211
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7212
 
  (exit $ac_status); } &&
7213
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7214
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7215
 
  (eval $ac_try) 2>&5
7216
 
  ac_status=$?
7217
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7218
 
  (exit $ac_status); }; } &&
7219
 
         { ac_try='test -s conftest.$ac_objext'
7220
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7221
 
  (eval $ac_try) 2>&5
7222
 
  ac_status=$?
7223
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7224
 
  (exit $ac_status); }; }; then
7225
 
  ac_header_compiler=yes
7226
 
else
7227
 
  echo "$as_me: failed program was:" >&5
7228
 
sed 's/^/| /' conftest.$ac_ext >&5
7229
 
 
7230
 
ac_header_compiler=no
7231
 
fi
7232
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7233
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7234
 
echo "${ECHO_T}$ac_header_compiler" >&6
7235
 
 
7236
 
# Is the header present?
7237
 
echo "$as_me:$LINENO: checking $ac_header presence" >&5
7238
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7239
 
cat >conftest.$ac_ext <<_ACEOF
7240
 
/* confdefs.h.  */
7241
 
_ACEOF
7242
 
cat confdefs.h >>conftest.$ac_ext
7243
 
cat >>conftest.$ac_ext <<_ACEOF
7244
 
/* end confdefs.h.  */
7245
 
#include <$ac_header>
7246
 
_ACEOF
7247
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7248
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7249
 
  ac_status=$?
7250
 
  grep -v '^ *+' conftest.er1 >conftest.err
7251
 
  rm -f conftest.er1
7252
 
  cat conftest.err >&5
7253
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7254
 
  (exit $ac_status); } >/dev/null; then
7255
 
  if test -s conftest.err; then
7256
 
    ac_cpp_err=$ac_c_preproc_warn_flag
7257
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7258
 
  else
7259
 
    ac_cpp_err=
7260
 
  fi
7261
 
else
7262
 
  ac_cpp_err=yes
7263
 
fi
7264
 
if test -z "$ac_cpp_err"; then
7265
 
  ac_header_preproc=yes
7266
 
else
7267
 
  echo "$as_me: failed program was:" >&5
7268
 
sed 's/^/| /' conftest.$ac_ext >&5
7269
 
 
7270
 
  ac_header_preproc=no
7271
 
fi
7272
 
rm -f conftest.err conftest.$ac_ext
7273
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7274
 
echo "${ECHO_T}$ac_header_preproc" >&6
7275
 
 
7276
 
# So?  What about this header?
7277
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7278
 
  yes:no: )
7279
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7280
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7281
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7282
 
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7283
 
    ac_header_preproc=yes
7284
 
    ;;
7285
 
  no:yes:* )
7286
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7287
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7288
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7289
 
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7290
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7291
 
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7292
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7293
 
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7294
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7295
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7296
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7297
 
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7298
 
    (
7299
 
      cat <<\_ASBOX
7300
 
## ------------------------------- ##
7301
 
## Report this to bug-make@gnu.org ##
7302
 
## ------------------------------- ##
7303
 
_ASBOX
7304
 
    ) |
7305
 
      sed "s/^/$as_me: WARNING:     /" >&2
7306
 
    ;;
7307
 
esac
7308
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
7309
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7310
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
7311
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7312
 
else
7313
 
  eval "$as_ac_Header=\$ac_header_preproc"
7314
 
fi
7315
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7316
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7317
 
 
7318
 
fi
7319
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
6855
do :
 
6856
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
6857
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
 
6858
eval as_val=\$$as_ac_Header
 
6859
   if test "x$as_val" = x""yes; then :
7320
6860
  cat >>confdefs.h <<_ACEOF
7321
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
6861
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7322
6862
_ACEOF
7323
6863
 break
7324
6864
fi
7327
6867
 
7328
6868
 
7329
6869
if test "x$CC" != xcc; then
7330
 
  echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
7331
 
echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
 
6870
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
 
6871
$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7332
6872
else
7333
 
  echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
7334
 
echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
 
6873
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
 
6874
$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7335
6875
fi
7336
 
set dummy $CC; ac_cc=`echo $2 |
 
6876
set dummy $CC; ac_cc=`$as_echo "$2" |
7337
6877
                      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7338
 
if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
7339
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6878
if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
 
6879
  $as_echo_n "(cached) " >&6
7340
6880
else
7341
 
  cat >conftest.$ac_ext <<_ACEOF
7342
 
/* confdefs.h.  */
7343
 
_ACEOF
7344
 
cat confdefs.h >>conftest.$ac_ext
7345
 
cat >>conftest.$ac_ext <<_ACEOF
 
6881
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7346
6882
/* end confdefs.h.  */
7347
6883
 
7348
6884
int
7356
6892
# Make sure it works both with $CC and with simple cc.
7357
6893
# We do the test twice because some compilers refuse to overwrite an
7358
6894
# existing .o file with -o, though they will create one.
7359
 
ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
7360
 
if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7361
 
  (eval $ac_try) 2>&5
7362
 
  ac_status=$?
7363
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7364
 
  (exit $ac_status); } &&
7365
 
   test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7366
 
  (eval $ac_try) 2>&5
7367
 
  ac_status=$?
7368
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7369
 
  (exit $ac_status); };
 
6895
ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
 
6896
rm -f conftest2.*
 
6897
if { { case "(($ac_try" in
 
6898
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6899
  *) ac_try_echo=$ac_try;;
 
6900
esac
 
6901
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
6902
$as_echo "$ac_try_echo"; } >&5
 
6903
  (eval "$ac_try") 2>&5
 
6904
  ac_status=$?
 
6905
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6906
  test $ac_status = 0; } &&
 
6907
   test -f conftest2.$ac_objext && { { case "(($ac_try" in
 
6908
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6909
  *) ac_try_echo=$ac_try;;
 
6910
esac
 
6911
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
6912
$as_echo "$ac_try_echo"; } >&5
 
6913
  (eval "$ac_try") 2>&5
 
6914
  ac_status=$?
 
6915
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6916
  test $ac_status = 0; };
7370
6917
then
7371
6918
  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7372
6919
  if test "x$CC" != xcc; then
7373
6920
    # Test first that cc exists at all.
7374
6921
    if { ac_try='cc -c conftest.$ac_ext >&5'
7375
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7376
 
  (eval $ac_try) 2>&5
7377
 
  ac_status=$?
7378
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7379
 
  (exit $ac_status); }; }; then
7380
 
      ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
7381
 
      if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7382
 
  (eval $ac_try) 2>&5
7383
 
  ac_status=$?
7384
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7385
 
  (exit $ac_status); } &&
7386
 
         test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7387
 
  (eval $ac_try) 2>&5
7388
 
  ac_status=$?
7389
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7390
 
  (exit $ac_status); };
 
6922
  { { case "(($ac_try" in
 
6923
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6924
  *) ac_try_echo=$ac_try;;
 
6925
esac
 
6926
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
6927
$as_echo "$ac_try_echo"; } >&5
 
6928
  (eval "$ac_try") 2>&5
 
6929
  ac_status=$?
 
6930
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6931
  test $ac_status = 0; }; }; then
 
6932
      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
 
6933
      rm -f conftest2.*
 
6934
      if { { case "(($ac_try" in
 
6935
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6936
  *) ac_try_echo=$ac_try;;
 
6937
esac
 
6938
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
6939
$as_echo "$ac_try_echo"; } >&5
 
6940
  (eval "$ac_try") 2>&5
 
6941
  ac_status=$?
 
6942
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6943
  test $ac_status = 0; } &&
 
6944
         test -f conftest2.$ac_objext && { { case "(($ac_try" in
 
6945
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6946
  *) ac_try_echo=$ac_try;;
 
6947
esac
 
6948
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
6949
$as_echo "$ac_try_echo"; } >&5
 
6950
  (eval "$ac_try") 2>&5
 
6951
  ac_status=$?
 
6952
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6953
  test $ac_status = 0; };
7391
6954
      then
7392
6955
        # cc works too.
7393
6956
        :
7400
6963
else
7401
6964
  eval ac_cv_prog_cc_${ac_cc}_c_o=no
7402
6965
fi
7403
 
rm -f conftest*
 
6966
rm -f core conftest*
7404
6967
 
7405
6968
fi
7406
 
if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
7407
 
  echo "$as_me:$LINENO: result: yes" >&5
7408
 
echo "${ECHO_T}yes" >&6
 
6969
if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
 
6970
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
6971
$as_echo "yes" >&6; }
7409
6972
else
7410
 
  echo "$as_me:$LINENO: result: no" >&5
7411
 
echo "${ECHO_T}no" >&6
 
6973
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6974
$as_echo "no" >&6; }
7412
6975
 
7413
 
cat >>confdefs.h <<\_ACEOF
7414
 
#define NO_MINUS_C_MINUS_O 1
7415
 
_ACEOF
 
6976
$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
7416
6977
 
7417
6978
fi
7418
6979
 
7419
6980
# FIXME: we rely on the cache variable name because
7420
6981
# there is no other way.
7421
6982
set dummy $CC
7422
 
ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7423
 
if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
 
6983
am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
 
6984
eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
 
6985
if test "$am_t" != yes; then
7424
6986
   # Losing compiler, so override with the script.
7425
6987
   # FIXME: It is wrong to rewrite CC.
7426
6988
   # But if we don't then we get into trouble of one sort or another.
7429
6991
   CC="$am_aux_dir/compile $CC"
7430
6992
fi
7431
6993
 
7432
 
echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7433
 
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7434
 
if test "${ac_cv_c_const+set}" = set; then
7435
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6994
 
 
6995
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
 
6996
$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
 
6997
if test "${ac_cv_c_const+set}" = set; then :
 
6998
  $as_echo_n "(cached) " >&6
7436
6999
else
7437
 
  cat >conftest.$ac_ext <<_ACEOF
7438
 
/* confdefs.h.  */
7439
 
_ACEOF
7440
 
cat confdefs.h >>conftest.$ac_ext
7441
 
cat >>conftest.$ac_ext <<_ACEOF
 
7000
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7442
7001
/* end confdefs.h.  */
7443
7002
 
7444
7003
int
7448
7007
#ifndef __cplusplus
7449
7008
  /* Ultrix mips cc rejects this.  */
7450
7009
  typedef int charset[2];
7451
 
  const charset x;
 
7010
  const charset cs;
7452
7011
  /* SunOS 4.1.1 cc rejects this.  */
7453
 
  char const *const *ccp;
7454
 
  char **p;
 
7012
  char const *const *pcpcc;
 
7013
  char **ppc;
7455
7014
  /* NEC SVR4.0.2 mips cc rejects this.  */
7456
7015
  struct point {int x, y;};
7457
7016
  static struct point const zero = {0,0};
7460
7019
     an arm of an if-expression whose if-part is not a constant
7461
7020
     expression */
7462
7021
  const char *g = "string";
7463
 
  ccp = &g + (g ? g-g : 0);
 
7022
  pcpcc = &g + (g ? g-g : 0);
7464
7023
  /* HPUX 7.0 cc rejects these. */
7465
 
  ++ccp;
7466
 
  p = (char**) ccp;
7467
 
  ccp = (char const *const *) p;
 
7024
  ++pcpcc;
 
7025
  ppc = (char**) pcpcc;
 
7026
  pcpcc = (char const *const *) ppc;
7468
7027
  { /* SCO 3.2v4 cc rejects this.  */
7469
7028
    char *t;
7470
7029
    char const *s = 0 ? (char *) 0 : (char const *) 0;
7471
7030
 
7472
7031
    *t++ = 0;
 
7032
    if (s) return 0;
7473
7033
  }
7474
7034
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
7475
7035
    int x[] = {25, 17};
7488
7048
  }
7489
7049
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7490
7050
    const int foo = 10;
 
7051
    if (!foo) return 0;
7491
7052
  }
 
7053
  return !cs[0] && !zero.x;
7492
7054
#endif
7493
7055
 
7494
7056
  ;
7495
7057
  return 0;
7496
7058
}
7497
7059
_ACEOF
7498
 
rm -f conftest.$ac_objext
7499
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7500
 
  (eval $ac_compile) 2>conftest.er1
7501
 
  ac_status=$?
7502
 
  grep -v '^ *+' conftest.er1 >conftest.err
7503
 
  rm -f conftest.er1
7504
 
  cat conftest.err >&5
7505
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7506
 
  (exit $ac_status); } &&
7507
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7508
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7509
 
  (eval $ac_try) 2>&5
7510
 
  ac_status=$?
7511
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7512
 
  (exit $ac_status); }; } &&
7513
 
         { ac_try='test -s conftest.$ac_objext'
7514
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7515
 
  (eval $ac_try) 2>&5
7516
 
  ac_status=$?
7517
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7518
 
  (exit $ac_status); }; }; then
 
7060
if ac_fn_c_try_compile "$LINENO"; then :
7519
7061
  ac_cv_c_const=yes
7520
7062
else
7521
 
  echo "$as_me: failed program was:" >&5
7522
 
sed 's/^/| /' conftest.$ac_ext >&5
7523
 
 
7524
 
ac_cv_c_const=no
7525
 
fi
7526
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7527
 
fi
7528
 
echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7529
 
echo "${ECHO_T}$ac_cv_c_const" >&6
 
7063
  ac_cv_c_const=no
 
7064
fi
 
7065
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7066
fi
 
7067
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
 
7068
$as_echo "$ac_cv_c_const" >&6; }
7530
7069
if test $ac_cv_c_const = no; then
7531
7070
 
7532
 
cat >>confdefs.h <<\_ACEOF
7533
 
#define const
7534
 
_ACEOF
 
7071
$as_echo "#define const /**/" >>confdefs.h
7535
7072
 
7536
7073
fi
7537
7074
 
7538
 
echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7539
 
echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
7540
 
if test "${ac_cv_type_signal+set}" = set; then
7541
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7075
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
 
7076
$as_echo_n "checking return type of signal handlers... " >&6; }
 
7077
if test "${ac_cv_type_signal+set}" = set; then :
 
7078
  $as_echo_n "(cached) " >&6
7542
7079
else
7543
 
  cat >conftest.$ac_ext <<_ACEOF
7544
 
/* confdefs.h.  */
7545
 
_ACEOF
7546
 
cat confdefs.h >>conftest.$ac_ext
7547
 
cat >>conftest.$ac_ext <<_ACEOF
 
7080
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7548
7081
/* end confdefs.h.  */
7549
7082
#include <sys/types.h>
7550
7083
#include <signal.h>
7551
 
#ifdef signal
7552
 
# undef signal
7553
 
#endif
7554
 
#ifdef __cplusplus
7555
 
extern "C" void (*signal (int, void (*)(int)))(int);
7556
 
#else
7557
 
void (*signal ()) ();
7558
 
#endif
7559
7084
 
7560
7085
int
7561
7086
main ()
7562
7087
{
7563
 
int i;
 
7088
return *(signal (0, 0)) (0) == 1;
7564
7089
  ;
7565
7090
  return 0;
7566
7091
}
7567
7092
_ACEOF
7568
 
rm -f conftest.$ac_objext
7569
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7570
 
  (eval $ac_compile) 2>conftest.er1
7571
 
  ac_status=$?
7572
 
  grep -v '^ *+' conftest.er1 >conftest.err
7573
 
  rm -f conftest.er1
7574
 
  cat conftest.err >&5
7575
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7576
 
  (exit $ac_status); } &&
7577
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7578
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7579
 
  (eval $ac_try) 2>&5
7580
 
  ac_status=$?
7581
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7582
 
  (exit $ac_status); }; } &&
7583
 
         { ac_try='test -s conftest.$ac_objext'
7584
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7585
 
  (eval $ac_try) 2>&5
7586
 
  ac_status=$?
7587
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7588
 
  (exit $ac_status); }; }; then
 
7093
if ac_fn_c_try_compile "$LINENO"; then :
 
7094
  ac_cv_type_signal=int
 
7095
else
7589
7096
  ac_cv_type_signal=void
7590
 
else
7591
 
  echo "$as_me: failed program was:" >&5
7592
 
sed 's/^/| /' conftest.$ac_ext >&5
7593
 
 
7594
 
ac_cv_type_signal=int
7595
 
fi
7596
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7597
 
fi
7598
 
echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7599
 
echo "${ECHO_T}$ac_cv_type_signal" >&6
 
7097
fi
 
7098
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7099
fi
 
7100
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
 
7101
$as_echo "$ac_cv_type_signal" >&6; }
7600
7102
 
7601
7103
cat >>confdefs.h <<_ACEOF
7602
7104
#define RETSIGTYPE $ac_cv_type_signal
7603
7105
_ACEOF
7604
7106
 
7605
7107
 
7606
 
echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7607
 
echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
7608
 
if test "${ac_cv_type_uid_t+set}" = set; then
7609
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7108
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
 
7109
$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
 
7110
if test "${ac_cv_type_uid_t+set}" = set; then :
 
7111
  $as_echo_n "(cached) " >&6
7610
7112
else
7611
 
  cat >conftest.$ac_ext <<_ACEOF
7612
 
/* confdefs.h.  */
7613
 
_ACEOF
7614
 
cat confdefs.h >>conftest.$ac_ext
7615
 
cat >>conftest.$ac_ext <<_ACEOF
 
7113
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7616
7114
/* end confdefs.h.  */
7617
7115
#include <sys/types.h>
7618
7116
 
7619
7117
_ACEOF
7620
7118
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7621
 
  $EGREP "uid_t" >/dev/null 2>&1; then
 
7119
  $EGREP "uid_t" >/dev/null 2>&1; then :
7622
7120
  ac_cv_type_uid_t=yes
7623
7121
else
7624
7122
  ac_cv_type_uid_t=no
7626
7124
rm -f conftest*
7627
7125
 
7628
7126
fi
7629
 
echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7630
 
echo "${ECHO_T}$ac_cv_type_uid_t" >&6
 
7127
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
 
7128
$as_echo "$ac_cv_type_uid_t" >&6; }
7631
7129
if test $ac_cv_type_uid_t = no; then
7632
7130
 
7633
 
cat >>confdefs.h <<\_ACEOF
7634
 
#define uid_t int
7635
 
_ACEOF
7636
 
 
7637
 
 
7638
 
cat >>confdefs.h <<\_ACEOF
7639
 
#define gid_t int
7640
 
_ACEOF
7641
 
 
7642
 
fi
7643
 
 
7644
 
echo "$as_me:$LINENO: checking for pid_t" >&5
7645
 
echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
7646
 
if test "${ac_cv_type_pid_t+set}" = set; then
7647
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7648
 
else
7649
 
  cat >conftest.$ac_ext <<_ACEOF
7650
 
/* confdefs.h.  */
7651
 
_ACEOF
7652
 
cat confdefs.h >>conftest.$ac_ext
7653
 
cat >>conftest.$ac_ext <<_ACEOF
7654
 
/* end confdefs.h.  */
7655
 
$ac_includes_default
7656
 
int
7657
 
main ()
7658
 
{
7659
 
if ((pid_t *) 0)
7660
 
  return 0;
7661
 
if (sizeof (pid_t))
7662
 
  return 0;
7663
 
  ;
7664
 
  return 0;
7665
 
}
7666
 
_ACEOF
7667
 
rm -f conftest.$ac_objext
7668
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7669
 
  (eval $ac_compile) 2>conftest.er1
7670
 
  ac_status=$?
7671
 
  grep -v '^ *+' conftest.er1 >conftest.err
7672
 
  rm -f conftest.er1
7673
 
  cat conftest.err >&5
7674
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7675
 
  (exit $ac_status); } &&
7676
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7677
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7678
 
  (eval $ac_try) 2>&5
7679
 
  ac_status=$?
7680
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7681
 
  (exit $ac_status); }; } &&
7682
 
         { ac_try='test -s conftest.$ac_objext'
7683
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7684
 
  (eval $ac_try) 2>&5
7685
 
  ac_status=$?
7686
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7687
 
  (exit $ac_status); }; }; then
7688
 
  ac_cv_type_pid_t=yes
7689
 
else
7690
 
  echo "$as_me: failed program was:" >&5
7691
 
sed 's/^/| /' conftest.$ac_ext >&5
7692
 
 
7693
 
ac_cv_type_pid_t=no
7694
 
fi
7695
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7696
 
fi
7697
 
echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7698
 
echo "${ECHO_T}$ac_cv_type_pid_t" >&6
7699
 
if test $ac_cv_type_pid_t = yes; then
7700
 
  :
 
7131
$as_echo "#define uid_t int" >>confdefs.h
 
7132
 
 
7133
 
 
7134
$as_echo "#define gid_t int" >>confdefs.h
 
7135
 
 
7136
fi
 
7137
 
 
7138
ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
 
7139
if test "x$ac_cv_type_pid_t" = x""yes; then :
 
7140
 
7701
7141
else
7702
7142
 
7703
7143
cat >>confdefs.h <<_ACEOF
7709
7149
 
7710
7150
# Find some definition for uintmax_t
7711
7151
 
7712
 
echo "$as_me:$LINENO: checking for uintmax_t" >&5
7713
 
echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
7714
 
if test "${ac_cv_type_uintmax_t+set}" = set; then
7715
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7716
 
else
7717
 
  cat >conftest.$ac_ext <<_ACEOF
7718
 
/* confdefs.h.  */
7719
 
_ACEOF
7720
 
cat confdefs.h >>conftest.$ac_ext
7721
 
cat >>conftest.$ac_ext <<_ACEOF
7722
 
/* end confdefs.h.  */
7723
 
$ac_includes_default
7724
 
int
7725
 
main ()
7726
 
{
7727
 
if ((uintmax_t *) 0)
7728
 
  return 0;
7729
 
if (sizeof (uintmax_t))
7730
 
  return 0;
7731
 
  ;
7732
 
  return 0;
7733
 
}
7734
 
_ACEOF
7735
 
rm -f conftest.$ac_objext
7736
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7737
 
  (eval $ac_compile) 2>conftest.er1
7738
 
  ac_status=$?
7739
 
  grep -v '^ *+' conftest.er1 >conftest.err
7740
 
  rm -f conftest.er1
7741
 
  cat conftest.err >&5
7742
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7743
 
  (exit $ac_status); } &&
7744
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7745
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7746
 
  (eval $ac_try) 2>&5
7747
 
  ac_status=$?
7748
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7749
 
  (exit $ac_status); }; } &&
7750
 
         { ac_try='test -s conftest.$ac_objext'
7751
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7752
 
  (eval $ac_try) 2>&5
7753
 
  ac_status=$?
7754
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7755
 
  (exit $ac_status); }; }; then
7756
 
  ac_cv_type_uintmax_t=yes
7757
 
else
7758
 
  echo "$as_me: failed program was:" >&5
7759
 
sed 's/^/| /' conftest.$ac_ext >&5
 
7152
ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
 
7153
if test "x$ac_cv_type_uintmax_t" = x""yes; then :
7760
7154
 
7761
 
ac_cv_type_uintmax_t=no
7762
 
fi
7763
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7764
 
fi
7765
 
echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
7766
 
echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
7767
 
if test $ac_cv_type_uintmax_t = yes; then
7768
 
  :
7769
7155
else
7770
7156
 
7771
7157
  uintmax_t="unsigned long"
7772
 
  echo "$as_me:$LINENO: checking for unsigned long long" >&5
7773
 
echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
7774
 
if test "${ac_cv_type_unsigned_long_long+set}" = set; then
7775
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7776
 
else
7777
 
  cat >conftest.$ac_ext <<_ACEOF
7778
 
/* confdefs.h.  */
7779
 
_ACEOF
7780
 
cat confdefs.h >>conftest.$ac_ext
7781
 
cat >>conftest.$ac_ext <<_ACEOF
7782
 
/* end confdefs.h.  */
7783
 
$ac_includes_default
7784
 
int
7785
 
main ()
7786
 
{
7787
 
if ((unsigned long long *) 0)
7788
 
  return 0;
7789
 
if (sizeof (unsigned long long))
7790
 
  return 0;
7791
 
  ;
7792
 
  return 0;
7793
 
}
7794
 
_ACEOF
7795
 
rm -f conftest.$ac_objext
7796
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7797
 
  (eval $ac_compile) 2>conftest.er1
7798
 
  ac_status=$?
7799
 
  grep -v '^ *+' conftest.er1 >conftest.err
7800
 
  rm -f conftest.er1
7801
 
  cat conftest.err >&5
7802
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7803
 
  (exit $ac_status); } &&
7804
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7805
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7806
 
  (eval $ac_try) 2>&5
7807
 
  ac_status=$?
7808
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7809
 
  (exit $ac_status); }; } &&
7810
 
         { ac_try='test -s conftest.$ac_objext'
7811
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7812
 
  (eval $ac_try) 2>&5
7813
 
  ac_status=$?
7814
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7815
 
  (exit $ac_status); }; }; then
7816
 
  ac_cv_type_unsigned_long_long=yes
7817
 
else
7818
 
  echo "$as_me: failed program was:" >&5
7819
 
sed 's/^/| /' conftest.$ac_ext >&5
7820
 
 
7821
 
ac_cv_type_unsigned_long_long=no
7822
 
fi
7823
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7824
 
fi
7825
 
echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
7826
 
echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
7827
 
if test $ac_cv_type_unsigned_long_long = yes; then
 
7158
  ac_fn_c_check_type "$LINENO" "unsigned long long" "ac_cv_type_unsigned_long_long" "$ac_includes_default"
 
7159
if test "x$ac_cv_type_unsigned_long_long" = x""yes; then :
7828
7160
  uintmax_t="unsigned long long"
7829
7161
fi
7830
7162
 
7838
7170
 
7839
7171
# Find out whether our struct stat returns nanosecond resolution timestamps.
7840
7172
 
7841
 
echo "$as_me:$LINENO: checking for nanoseconds field of struct stat.st_mtim" >&5
7842
 
echo $ECHO_N "checking for nanoseconds field of struct stat.st_mtim... $ECHO_C" >&6
7843
 
if test "${ac_cv_struct_st_mtim_nsec+set}" = set; then
7844
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7173
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanoseconds field of struct stat.st_mtim" >&5
 
7174
$as_echo_n "checking for nanoseconds field of struct stat.st_mtim... " >&6; }
 
7175
if test "${ac_cv_struct_st_mtim_nsec+set}" = set; then :
 
7176
  $as_echo_n "(cached) " >&6
7845
7177
else
7846
7178
  ac_save_CPPFLAGS="$CPPFLAGS"
7847
7179
    ac_cv_struct_st_mtim_nsec=no
7852
7184
    # st__tim.tv_nsec -- UnixWare 2.1.2
7853
7185
    for ac_val in tv_nsec _tv_nsec st__tim.tv_nsec; do
7854
7186
      CPPFLAGS="$ac_save_CPPFLAGS -DST_MTIM_NSEC=$ac_val"
7855
 
      cat >conftest.$ac_ext <<_ACEOF
7856
 
/* confdefs.h.  */
7857
 
_ACEOF
7858
 
cat confdefs.h >>conftest.$ac_ext
7859
 
cat >>conftest.$ac_ext <<_ACEOF
 
7187
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7860
7188
/* end confdefs.h.  */
7861
7189
#include <sys/types.h>
7862
7190
#include <sys/stat.h>
7869
7197
  return 0;
7870
7198
}
7871
7199
_ACEOF
7872
 
rm -f conftest.$ac_objext
7873
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7874
 
  (eval $ac_compile) 2>conftest.er1
7875
 
  ac_status=$?
7876
 
  grep -v '^ *+' conftest.er1 >conftest.err
7877
 
  rm -f conftest.er1
7878
 
  cat conftest.err >&5
7879
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7880
 
  (exit $ac_status); } &&
7881
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7882
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7883
 
  (eval $ac_try) 2>&5
7884
 
  ac_status=$?
7885
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7886
 
  (exit $ac_status); }; } &&
7887
 
         { ac_try='test -s conftest.$ac_objext'
7888
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7889
 
  (eval $ac_try) 2>&5
7890
 
  ac_status=$?
7891
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7892
 
  (exit $ac_status); }; }; then
 
7200
if ac_fn_c_try_compile "$LINENO"; then :
7893
7201
  ac_cv_struct_st_mtim_nsec=$ac_val; break
7894
 
else
7895
 
  echo "$as_me: failed program was:" >&5
7896
 
sed 's/^/| /' conftest.$ac_ext >&5
7897
 
 
7898
7202
fi
7899
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
7203
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7900
7204
    done
7901
7205
    CPPFLAGS="$ac_save_CPPFLAGS"
7902
7206
 
7903
7207
fi
7904
 
echo "$as_me:$LINENO: result: $ac_cv_struct_st_mtim_nsec" >&5
7905
 
echo "${ECHO_T}$ac_cv_struct_st_mtim_nsec" >&6
 
7208
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_mtim_nsec" >&5
 
7209
$as_echo "$ac_cv_struct_st_mtim_nsec" >&6; }
7906
7210
 
7907
7211
  if test $ac_cv_struct_st_mtim_nsec != no; then
7908
7212
 
7913
7217
  fi
7914
7218
 
7915
7219
 
7916
 
echo "$as_me:$LINENO: checking whether to use high resolution file timestamps" >&5
7917
 
echo $ECHO_N "checking whether to use high resolution file timestamps... $ECHO_C" >&6
7918
 
if test "${make_cv_file_timestamp_hi_res+set}" = set; then
7919
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7220
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use high resolution file timestamps" >&5
 
7221
$as_echo_n "checking whether to use high resolution file timestamps... " >&6; }
 
7222
if test "${make_cv_file_timestamp_hi_res+set}" = set; then :
 
7223
  $as_echo_n "(cached) " >&6
7920
7224
else
7921
7225
 
7922
7226
  make_cv_file_timestamp_hi_res=no
7923
7227
  if test "$ac_cv_struct_st_mtim_nsec" != no; then
7924
 
    cat >conftest.$ac_ext <<_ACEOF
7925
 
/* confdefs.h.  */
7926
 
_ACEOF
7927
 
cat confdefs.h >>conftest.$ac_ext
7928
 
cat >>conftest.$ac_ext <<_ACEOF
 
7228
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7929
7229
/* end confdefs.h.  */
7930
7230
 
7931
7231
#       if HAVE_INTTYPES_H
7939
7239
  return 0;
7940
7240
}
7941
7241
_ACEOF
7942
 
rm -f conftest.$ac_objext
7943
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7944
 
  (eval $ac_compile) 2>conftest.er1
7945
 
  ac_status=$?
7946
 
  grep -v '^ *+' conftest.er1 >conftest.err
7947
 
  rm -f conftest.er1
7948
 
  cat conftest.err >&5
7949
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7950
 
  (exit $ac_status); } &&
7951
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7952
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7953
 
  (eval $ac_try) 2>&5
7954
 
  ac_status=$?
7955
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7956
 
  (exit $ac_status); }; } &&
7957
 
         { ac_try='test -s conftest.$ac_objext'
7958
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7959
 
  (eval $ac_try) 2>&5
7960
 
  ac_status=$?
7961
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7962
 
  (exit $ac_status); }; }; then
 
7242
if ac_fn_c_try_compile "$LINENO"; then :
7963
7243
  make_cv_file_timestamp_hi_res=yes
7964
 
else
7965
 
  echo "$as_me: failed program was:" >&5
7966
 
sed 's/^/| /' conftest.$ac_ext >&5
7967
 
 
7968
7244
fi
7969
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
7245
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7970
7246
  fi
7971
7247
fi
7972
7248
 
7973
 
echo "$as_me:$LINENO: result: $make_cv_file_timestamp_hi_res" >&5
7974
 
echo "${ECHO_T}$make_cv_file_timestamp_hi_res" >&6
 
7249
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $make_cv_file_timestamp_hi_res" >&5
 
7250
$as_echo "$make_cv_file_timestamp_hi_res" >&6; }
7975
7251
if test "$make_cv_file_timestamp_hi_res" = yes; then
7976
7252
  val=1
7977
7253
else
7986
7262
if test "$make_cv_file_timestamp_hi_res" = yes; then
7987
7263
  # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
7988
7264
  # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
7989
 
  echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
7990
 
echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6
7991
 
if test "${ac_cv_search_clock_gettime+set}" = set; then
7992
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7265
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
 
7266
$as_echo_n "checking for library containing clock_gettime... " >&6; }
 
7267
if test "${ac_cv_search_clock_gettime+set}" = set; then :
 
7268
  $as_echo_n "(cached) " >&6
7993
7269
else
7994
7270
  ac_func_search_save_LIBS=$LIBS
7995
 
ac_cv_search_clock_gettime=no
7996
 
cat >conftest.$ac_ext <<_ACEOF
7997
 
/* confdefs.h.  */
7998
 
_ACEOF
7999
 
cat confdefs.h >>conftest.$ac_ext
8000
 
cat >>conftest.$ac_ext <<_ACEOF
 
7271
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8001
7272
/* end confdefs.h.  */
8002
7273
 
8003
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
7274
/* Override any GCC internal prototype to avoid an error.
 
7275
   Use char because int might match the return type of a GCC
 
7276
   builtin and then its argument prototype would still apply.  */
8004
7277
#ifdef __cplusplus
8005
7278
extern "C"
8006
7279
#endif
8007
 
/* We use char because int might match the return type of a gcc2
8008
 
   builtin and then its argument prototype would still apply.  */
8009
7280
char clock_gettime ();
8010
7281
int
8011
7282
main ()
8012
7283
{
8013
 
clock_gettime ();
 
7284
return clock_gettime ();
8014
7285
  ;
8015
7286
  return 0;
8016
7287
}
8017
7288
_ACEOF
8018
 
rm -f conftest.$ac_objext conftest$ac_exeext
8019
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8020
 
  (eval $ac_link) 2>conftest.er1
8021
 
  ac_status=$?
8022
 
  grep -v '^ *+' conftest.er1 >conftest.err
8023
 
  rm -f conftest.er1
8024
 
  cat conftest.err >&5
8025
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8026
 
  (exit $ac_status); } &&
8027
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8028
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8029
 
  (eval $ac_try) 2>&5
8030
 
  ac_status=$?
8031
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8032
 
  (exit $ac_status); }; } &&
8033
 
         { ac_try='test -s conftest$ac_exeext'
8034
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8035
 
  (eval $ac_try) 2>&5
8036
 
  ac_status=$?
8037
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8038
 
  (exit $ac_status); }; }; then
8039
 
  ac_cv_search_clock_gettime="none required"
8040
 
else
8041
 
  echo "$as_me: failed program was:" >&5
8042
 
sed 's/^/| /' conftest.$ac_ext >&5
8043
 
 
8044
 
fi
8045
 
rm -f conftest.err conftest.$ac_objext \
8046
 
      conftest$ac_exeext conftest.$ac_ext
8047
 
if test "$ac_cv_search_clock_gettime" = no; then
8048
 
  for ac_lib in rt posix4; do
 
7289
for ac_lib in '' rt posix4; do
 
7290
  if test -z "$ac_lib"; then
 
7291
    ac_res="none required"
 
7292
  else
 
7293
    ac_res=-l$ac_lib
8049
7294
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8050
 
    cat >conftest.$ac_ext <<_ACEOF
8051
 
/* confdefs.h.  */
8052
 
_ACEOF
8053
 
cat confdefs.h >>conftest.$ac_ext
8054
 
cat >>conftest.$ac_ext <<_ACEOF
8055
 
/* end confdefs.h.  */
 
7295
  fi
 
7296
  if ac_fn_c_try_link "$LINENO"; then :
 
7297
  ac_cv_search_clock_gettime=$ac_res
 
7298
fi
 
7299
rm -f core conftest.err conftest.$ac_objext \
 
7300
    conftest$ac_exeext
 
7301
  if test "${ac_cv_search_clock_gettime+set}" = set; then :
 
7302
  break
 
7303
fi
 
7304
done
 
7305
if test "${ac_cv_search_clock_gettime+set}" = set; then :
8056
7306
 
8057
 
/* Override any gcc2 internal prototype to avoid an error.  */
8058
 
#ifdef __cplusplus
8059
 
extern "C"
8060
 
#endif
8061
 
/* We use char because int might match the return type of a gcc2
8062
 
   builtin and then its argument prototype would still apply.  */
8063
 
char clock_gettime ();
8064
 
int
8065
 
main ()
8066
 
{
8067
 
clock_gettime ();
8068
 
  ;
8069
 
  return 0;
8070
 
}
8071
 
_ACEOF
8072
 
rm -f conftest.$ac_objext conftest$ac_exeext
8073
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8074
 
  (eval $ac_link) 2>conftest.er1
8075
 
  ac_status=$?
8076
 
  grep -v '^ *+' conftest.er1 >conftest.err
8077
 
  rm -f conftest.er1
8078
 
  cat conftest.err >&5
8079
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8080
 
  (exit $ac_status); } &&
8081
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8082
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8083
 
  (eval $ac_try) 2>&5
8084
 
  ac_status=$?
8085
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8086
 
  (exit $ac_status); }; } &&
8087
 
         { ac_try='test -s conftest$ac_exeext'
8088
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8089
 
  (eval $ac_try) 2>&5
8090
 
  ac_status=$?
8091
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8092
 
  (exit $ac_status); }; }; then
8093
 
  ac_cv_search_clock_gettime="-l$ac_lib"
8094
 
break
8095
7307
else
8096
 
  echo "$as_me: failed program was:" >&5
8097
 
sed 's/^/| /' conftest.$ac_ext >&5
8098
 
 
8099
 
fi
8100
 
rm -f conftest.err conftest.$ac_objext \
8101
 
      conftest$ac_exeext conftest.$ac_ext
8102
 
  done
8103
 
fi
 
7308
  ac_cv_search_clock_gettime=no
 
7309
fi
 
7310
rm conftest.$ac_ext
8104
7311
LIBS=$ac_func_search_save_LIBS
8105
7312
fi
8106
 
echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
8107
 
echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6
8108
 
if test "$ac_cv_search_clock_gettime" != no; then
8109
 
  test "$ac_cv_search_clock_gettime" = "none required" || LIBS="$ac_cv_search_clock_gettime $LIBS"
 
7313
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
 
7314
$as_echo "$ac_cv_search_clock_gettime" >&6; }
 
7315
ac_res=$ac_cv_search_clock_gettime
 
7316
if test "$ac_res" != no; then :
 
7317
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8110
7318
 
8111
7319
fi
8112
7320
 
8113
7321
  if test "$ac_cv_search_clock_gettime" != no; then
8114
7322
 
8115
 
cat >>confdefs.h <<\_ACEOF
8116
 
#define HAVE_CLOCK_GETTIME 1
8117
 
_ACEOF
 
7323
$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
8118
7324
 
8119
7325
  fi
8120
7326
fi
8121
7327
 
8122
7328
# Check for DOS-style pathnames.
8123
7329
 
8124
 
    echo "$as_me:$LINENO: checking whether system uses MSDOS-style paths" >&5
8125
 
echo $ECHO_N "checking whether system uses MSDOS-style paths... $ECHO_C" >&6
8126
 
if test "${ac_cv_dos_paths+set}" = set; then
8127
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7330
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system uses MSDOS-style paths" >&5
 
7331
$as_echo_n "checking whether system uses MSDOS-style paths... " >&6; }
 
7332
if test "${ac_cv_dos_paths+set}" = set; then :
 
7333
  $as_echo_n "(cached) " >&6
8128
7334
else
8129
7335
 
8130
 
        cat >conftest.$ac_ext <<_ACEOF
 
7336
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7337
/* end confdefs.h.  */
8131
7338
 
8132
7339
#if !defined _WIN32 && !defined __WIN32__ && !defined __MSDOS__ && !defined __EMX__ && !defined __MSYS__
8133
7340
neither MSDOS nor Windows nor OS2
8134
7341
#endif
8135
7342
 
8136
7343
_ACEOF
8137
 
rm -f conftest.$ac_objext
8138
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8139
 
  (eval $ac_compile) 2>conftest.er1
8140
 
  ac_status=$?
8141
 
  grep -v '^ *+' conftest.er1 >conftest.err
8142
 
  rm -f conftest.er1
8143
 
  cat conftest.err >&5
8144
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8145
 
  (exit $ac_status); } &&
8146
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8147
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8148
 
  (eval $ac_try) 2>&5
8149
 
  ac_status=$?
8150
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8151
 
  (exit $ac_status); }; } &&
8152
 
         { ac_try='test -s conftest.$ac_objext'
8153
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8154
 
  (eval $ac_try) 2>&5
8155
 
  ac_status=$?
8156
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8157
 
  (exit $ac_status); }; }; then
 
7344
if ac_fn_c_try_compile "$LINENO"; then :
8158
7345
  ac_cv_dos_paths=yes
8159
7346
else
8160
 
  echo "$as_me: failed program was:" >&5
8161
 
sed 's/^/| /' conftest.$ac_ext >&5
8162
 
 
8163
 
ac_cv_dos_paths=no
8164
 
fi
8165
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8166
 
 
8167
 
fi
8168
 
echo "$as_me:$LINENO: result: $ac_cv_dos_paths" >&5
8169
 
echo "${ECHO_T}$ac_cv_dos_paths" >&6
 
7347
  ac_cv_dos_paths=no
 
7348
fi
 
7349
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7350
 
 
7351
fi
 
7352
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_dos_paths" >&5
 
7353
$as_echo "$ac_cv_dos_paths" >&6; }
8170
7354
 
8171
7355
    if test x"$ac_cv_dos_paths" = xyes; then
8172
7356
 
8180
7364
# See if we have a standard version of gettimeofday().  Since actual
8181
7365
# implementations can differ, just make sure we have the most common
8182
7366
# one.
8183
 
echo "$as_me:$LINENO: checking for standard gettimeofday" >&5
8184
 
echo $ECHO_N "checking for standard gettimeofday... $ECHO_C" >&6
8185
 
if test "${ac_cv_func_gettimeofday+set}" = set; then
8186
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7367
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for standard gettimeofday" >&5
 
7368
$as_echo_n "checking for standard gettimeofday... " >&6; }
 
7369
if test "${ac_cv_func_gettimeofday+set}" = set; then :
 
7370
  $as_echo_n "(cached) " >&6
8187
7371
else
8188
7372
  ac_cv_func_gettimeofday=no
8189
 
   if test "$cross_compiling" = yes; then
 
7373
   if test "$cross_compiling" = yes; then :
8190
7374
  ac_cv_func_gettimeofday="no (cross-compiling)"
8191
7375
else
8192
 
  cat >conftest.$ac_ext <<_ACEOF
8193
 
/* confdefs.h.  */
8194
 
_ACEOF
8195
 
cat confdefs.h >>conftest.$ac_ext
8196
 
cat >>conftest.$ac_ext <<_ACEOF
 
7376
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8197
7377
/* end confdefs.h.  */
8198
7378
#include <sys/time.h>
8199
7379
                  int main ()
8203
7383
                          || t.tv_sec < 0 || t.tv_usec < 0);
8204
7384
                  }
8205
7385
_ACEOF
8206
 
rm -f conftest$ac_exeext
8207
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8208
 
  (eval $ac_link) 2>&5
8209
 
  ac_status=$?
8210
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8211
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8212
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8213
 
  (eval $ac_try) 2>&5
8214
 
  ac_status=$?
8215
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8216
 
  (exit $ac_status); }; }; then
 
7386
if ac_fn_c_try_run "$LINENO"; then :
8217
7387
  ac_cv_func_gettimeofday=yes
8218
7388
else
8219
 
  echo "$as_me: program exited with status $ac_status" >&5
8220
 
echo "$as_me: failed program was:" >&5
8221
 
sed 's/^/| /' conftest.$ac_ext >&5
 
7389
  ac_cv_func_gettimeofday=no
 
7390
fi
 
7391
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
7392
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
7393
fi
8222
7394
 
8223
 
( exit $ac_status )
8224
 
ac_cv_func_gettimeofday=no
8225
 
fi
8226
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8227
 
fi
8228
 
fi
8229
 
echo "$as_me:$LINENO: result: $ac_cv_func_gettimeofday" >&5
8230
 
echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
 
7395
fi
 
7396
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_gettimeofday" >&5
 
7397
$as_echo "$ac_cv_func_gettimeofday" >&6; }
8231
7398
if test "$ac_cv_func_gettimeofday" = yes; then
8232
7399
 
8233
 
cat >>confdefs.h <<\_ACEOF
8234
 
#define HAVE_GETTIMEOFDAY 1
8235
 
_ACEOF
 
7400
$as_echo "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h
8236
7401
 
8237
7402
fi
8238
7403
 
8239
 
 
8240
 
 
8241
 
 
8242
 
 
8243
 
 
8244
 
 
8245
 
 
8246
 
 
8247
 
 
8248
 
 
8249
 
 
8250
 
 
8251
 
 
8252
 
 
8253
 
 
8254
 
 
8255
 
 
8256
 
 
8257
 
 
8258
 
 
8259
 
 
8260
 
 
8261
 
 
8262
 
 
8263
 
 
8264
 
 
8265
 
 
8266
 
 
8267
7404
for ac_func in memcpy memmove strchr strdup mkstemp mktemp fdopen \
8268
7405
                bsd_signal dup2 getcwd realpath sigsetmask sigaction \
8269
7406
                getgroups seteuid setegid setlinebuf setreuid setregid \
8270
7407
                getrlimit setrlimit setvbuf pipe strerror strsignal \
8271
7408
                lstat readlink atexit
8272
 
do
8273
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8274
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
8275
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8276
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
8277
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8278
 
else
8279
 
  cat >conftest.$ac_ext <<_ACEOF
8280
 
/* confdefs.h.  */
8281
 
_ACEOF
8282
 
cat confdefs.h >>conftest.$ac_ext
8283
 
cat >>conftest.$ac_ext <<_ACEOF
8284
 
/* end confdefs.h.  */
8285
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8286
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8287
 
#define $ac_func innocuous_$ac_func
8288
 
 
8289
 
/* System header to define __stub macros and hopefully few prototypes,
8290
 
    which can conflict with char $ac_func (); below.
8291
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8292
 
    <limits.h> exists even on freestanding compilers.  */
8293
 
 
8294
 
#ifdef __STDC__
8295
 
# include <limits.h>
8296
 
#else
8297
 
# include <assert.h>
8298
 
#endif
8299
 
 
8300
 
#undef $ac_func
8301
 
 
8302
 
/* Override any gcc2 internal prototype to avoid an error.  */
8303
 
#ifdef __cplusplus
8304
 
extern "C"
8305
 
{
8306
 
#endif
8307
 
/* We use char because int might match the return type of a gcc2
8308
 
   builtin and then its argument prototype would still apply.  */
8309
 
char $ac_func ();
8310
 
/* The GNU C library defines this for functions which it implements
8311
 
    to always fail with ENOSYS.  Some functions are actually named
8312
 
    something starting with __ and the normal name is an alias.  */
8313
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8314
 
choke me
8315
 
#else
8316
 
char (*f) () = $ac_func;
8317
 
#endif
8318
 
#ifdef __cplusplus
8319
 
}
8320
 
#endif
8321
 
 
8322
 
int
8323
 
main ()
8324
 
{
8325
 
return f != $ac_func;
8326
 
  ;
8327
 
  return 0;
8328
 
}
8329
 
_ACEOF
8330
 
rm -f conftest.$ac_objext conftest$ac_exeext
8331
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8332
 
  (eval $ac_link) 2>conftest.er1
8333
 
  ac_status=$?
8334
 
  grep -v '^ *+' conftest.er1 >conftest.err
8335
 
  rm -f conftest.er1
8336
 
  cat conftest.err >&5
8337
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8338
 
  (exit $ac_status); } &&
8339
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8340
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8341
 
  (eval $ac_try) 2>&5
8342
 
  ac_status=$?
8343
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8344
 
  (exit $ac_status); }; } &&
8345
 
         { ac_try='test -s conftest$ac_exeext'
8346
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8347
 
  (eval $ac_try) 2>&5
8348
 
  ac_status=$?
8349
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8350
 
  (exit $ac_status); }; }; then
8351
 
  eval "$as_ac_var=yes"
8352
 
else
8353
 
  echo "$as_me: failed program was:" >&5
8354
 
sed 's/^/| /' conftest.$ac_ext >&5
8355
 
 
8356
 
eval "$as_ac_var=no"
8357
 
fi
8358
 
rm -f conftest.err conftest.$ac_objext \
8359
 
      conftest$ac_exeext conftest.$ac_ext
8360
 
fi
8361
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8362
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8363
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
7409
do :
 
7410
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
7411
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
 
7412
eval as_val=\$$as_ac_var
 
7413
   if test "x$as_val" = x""yes; then :
8364
7414
  cat >>confdefs.h <<_ACEOF
8365
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
7415
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8366
7416
_ACEOF
8367
7417
 
8368
7418
fi
8369
7419
done
8370
7420
 
8371
7421
 
8372
 
echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
8373
 
echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
8374
 
if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
8375
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7422
if test "${ac_cv_func_setvbuf_reversed+set}" = set; then :
 
7423
  $as_echo_n "(cached) " >&6
8376
7424
else
8377
7425
  ac_cv_func_setvbuf_reversed=no
8378
 
   cat >conftest.$ac_ext <<_ACEOF
8379
 
/* confdefs.h.  */
8380
 
_ACEOF
8381
 
cat confdefs.h >>conftest.$ac_ext
8382
 
cat >>conftest.$ac_ext <<_ACEOF
8383
 
/* end confdefs.h.  */
8384
 
#include <stdio.h>
8385
 
#         if PROTOTYPES
8386
 
           int (setvbuf) (FILE *, int, char *, size_t);
8387
 
#         endif
8388
 
int
8389
 
main ()
8390
 
{
8391
 
char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
8392
 
  ;
8393
 
  return 0;
8394
 
}
8395
 
_ACEOF
8396
 
rm -f conftest.$ac_objext conftest$ac_exeext
8397
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8398
 
  (eval $ac_link) 2>conftest.er1
8399
 
  ac_status=$?
8400
 
  grep -v '^ *+' conftest.er1 >conftest.err
8401
 
  rm -f conftest.er1
8402
 
  cat conftest.err >&5
8403
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8404
 
  (exit $ac_status); } &&
8405
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8406
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8407
 
  (eval $ac_try) 2>&5
8408
 
  ac_status=$?
8409
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8410
 
  (exit $ac_status); }; } &&
8411
 
         { ac_try='test -s conftest$ac_exeext'
8412
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8413
 
  (eval $ac_try) 2>&5
8414
 
  ac_status=$?
8415
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8416
 
  (exit $ac_status); }; }; then
8417
 
  cat >conftest.$ac_ext <<_ACEOF
8418
 
/* confdefs.h.  */
8419
 
_ACEOF
8420
 
cat confdefs.h >>conftest.$ac_ext
8421
 
cat >>conftest.$ac_ext <<_ACEOF
8422
 
/* end confdefs.h.  */
8423
 
#include <stdio.h>
8424
 
#            if PROTOTYPES
8425
 
              int (setvbuf) (FILE *, int, char *, size_t);
8426
 
#            endif
8427
 
int
8428
 
main ()
8429
 
{
8430
 
char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
8431
 
  ;
8432
 
  return 0;
8433
 
}
8434
 
_ACEOF
8435
 
rm -f conftest.$ac_objext conftest$ac_exeext
8436
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8437
 
  (eval $ac_link) 2>conftest.er1
8438
 
  ac_status=$?
8439
 
  grep -v '^ *+' conftest.er1 >conftest.err
8440
 
  rm -f conftest.er1
8441
 
  cat conftest.err >&5
8442
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8443
 
  (exit $ac_status); } &&
8444
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8445
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8446
 
  (eval $ac_try) 2>&5
8447
 
  ac_status=$?
8448
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8449
 
  (exit $ac_status); }; } &&
8450
 
         { ac_try='test -s conftest$ac_exeext'
8451
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8452
 
  (eval $ac_try) 2>&5
8453
 
  ac_status=$?
8454
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8455
 
  (exit $ac_status); }; }; then
8456
 
  # It compiles and links either way, so it must not be declared
8457
 
         # with a prototype and most likely this is a K&R C compiler.
8458
 
         # Try running it.
8459
 
         if test "$cross_compiling" = yes; then
8460
 
  : # Assume setvbuf is not reversed when cross-compiling.
8461
 
else
8462
 
  cat >conftest.$ac_ext <<_ACEOF
8463
 
/* confdefs.h.  */
8464
 
_ACEOF
8465
 
cat confdefs.h >>conftest.$ac_ext
8466
 
cat >>conftest.$ac_ext <<_ACEOF
8467
 
/* end confdefs.h.  */
8468
 
#include <stdio.h>
8469
 
int
8470
 
main ()
8471
 
{
8472
 
/* This call has the arguments reversed.
8473
 
                   A reversed system may check and see that the address of buf
8474
 
                   is not _IOLBF, _IONBF, or _IOFBF, and return nonzero.  */
8475
 
                char buf;
8476
 
                if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
8477
 
                  exit (1);
8478
 
                putchar ('\r');
8479
 
                exit (0); /* Non-reversed systems SEGV here.  */
8480
 
  ;
8481
 
  return 0;
8482
 
}
8483
 
_ACEOF
8484
 
rm -f conftest$ac_exeext
8485
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8486
 
  (eval $ac_link) 2>&5
8487
 
  ac_status=$?
8488
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8489
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8490
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8491
 
  (eval $ac_try) 2>&5
8492
 
  ac_status=$?
8493
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8494
 
  (exit $ac_status); }; }; then
8495
 
  ac_cv_func_setvbuf_reversed=yes
8496
 
else
8497
 
  echo "$as_me: program exited with status $ac_status" >&5
8498
 
echo "$as_me: failed program was:" >&5
8499
 
sed 's/^/| /' conftest.$ac_ext >&5
8500
 
 
8501
 
( exit $ac_status )
8502
 
rm -f core *.core
8503
 
fi
8504
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8505
 
fi
8506
 
        ac_cv_func_setvbuf_reversed=yes
8507
 
else
8508
 
  echo "$as_me: failed program was:" >&5
8509
 
sed 's/^/| /' conftest.$ac_ext >&5
8510
 
 
8511
 
fi
8512
 
rm -f conftest.err conftest.$ac_objext \
8513
 
      conftest$ac_exeext conftest.$ac_ext
8514
 
else
8515
 
  echo "$as_me: failed program was:" >&5
8516
 
sed 's/^/| /' conftest.$ac_ext >&5
8517
 
 
8518
 
fi
8519
 
rm -f conftest.err conftest.$ac_objext \
8520
 
      conftest$ac_exeext conftest.$ac_ext
8521
 
fi
8522
 
echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
8523
 
echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
8524
 
if test $ac_cv_func_setvbuf_reversed = yes; then
8525
 
 
8526
 
cat >>confdefs.h <<\_ACEOF
8527
 
#define SETVBUF_REVERSED 1
8528
 
_ACEOF
8529
 
 
8530
 
fi
 
7426
fi
 
7427
 
8531
7428
 
8532
7429
 
8533
7430
# strcoll() is used by the GNU glob library
8534
 
echo "$as_me:$LINENO: checking for working strcoll" >&5
8535
 
echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6
8536
 
if test "${ac_cv_func_strcoll_works+set}" = set; then
8537
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7431
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
 
7432
$as_echo_n "checking for working strcoll... " >&6; }
 
7433
if test "${ac_cv_func_strcoll_works+set}" = set; then :
 
7434
  $as_echo_n "(cached) " >&6
8538
7435
else
8539
 
  if test "$cross_compiling" = yes; then
 
7436
  if test "$cross_compiling" = yes; then :
8540
7437
  ac_cv_func_strcoll_works=no
8541
7438
else
8542
 
  cat >conftest.$ac_ext <<_ACEOF
8543
 
/* confdefs.h.  */
8544
 
_ACEOF
8545
 
cat confdefs.h >>conftest.$ac_ext
8546
 
cat >>conftest.$ac_ext <<_ACEOF
 
7439
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8547
7440
/* end confdefs.h.  */
8548
7441
$ac_includes_default
8549
7442
int
8550
7443
main ()
8551
7444
{
8552
 
exit (strcoll ("abc", "def") >= 0 ||
 
7445
return (strcoll ("abc", "def") >= 0 ||
8553
7446
         strcoll ("ABC", "DEF") >= 0 ||
8554
7447
         strcoll ("123", "456") >= 0)
8555
7448
  ;
8556
7449
  return 0;
8557
7450
}
8558
7451
_ACEOF
8559
 
rm -f conftest$ac_exeext
8560
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8561
 
  (eval $ac_link) 2>&5
8562
 
  ac_status=$?
8563
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8564
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8565
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8566
 
  (eval $ac_try) 2>&5
8567
 
  ac_status=$?
8568
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8569
 
  (exit $ac_status); }; }; then
 
7452
if ac_fn_c_try_run "$LINENO"; then :
8570
7453
  ac_cv_func_strcoll_works=yes
8571
7454
else
8572
 
  echo "$as_me: program exited with status $ac_status" >&5
8573
 
echo "$as_me: failed program was:" >&5
8574
 
sed 's/^/| /' conftest.$ac_ext >&5
 
7455
  ac_cv_func_strcoll_works=no
 
7456
fi
 
7457
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
7458
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
7459
fi
8575
7460
 
8576
 
( exit $ac_status )
8577
 
ac_cv_func_strcoll_works=no
8578
 
fi
8579
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8580
 
fi
8581
 
fi
8582
 
echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
8583
 
echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6
 
7461
fi
 
7462
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5
 
7463
$as_echo "$ac_cv_func_strcoll_works" >&6; }
8584
7464
if test $ac_cv_func_strcoll_works = yes; then
8585
7465
 
8586
 
cat >>confdefs.h <<\_ACEOF
8587
 
#define HAVE_STRCOLL 1
8588
 
_ACEOF
 
7466
$as_echo "#define HAVE_STRCOLL 1" >>confdefs.h
8589
7467
 
8590
7468
fi
8591
7469
 
8592
7470
 
8593
7471
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8594
7472
# for constant arguments.  Useless!
8595
 
echo "$as_me:$LINENO: checking for working alloca.h" >&5
8596
 
echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
8597
 
if test "${ac_cv_working_alloca_h+set}" = set; then
8598
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7473
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
 
7474
$as_echo_n "checking for working alloca.h... " >&6; }
 
7475
if test "${ac_cv_working_alloca_h+set}" = set; then :
 
7476
  $as_echo_n "(cached) " >&6
8599
7477
else
8600
 
  cat >conftest.$ac_ext <<_ACEOF
8601
 
/* confdefs.h.  */
8602
 
_ACEOF
8603
 
cat confdefs.h >>conftest.$ac_ext
8604
 
cat >>conftest.$ac_ext <<_ACEOF
 
7478
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8605
7479
/* end confdefs.h.  */
8606
7480
#include <alloca.h>
8607
7481
int
8608
7482
main ()
8609
7483
{
8610
7484
char *p = (char *) alloca (2 * sizeof (int));
 
7485
                          if (p) return 0;
8611
7486
  ;
8612
7487
  return 0;
8613
7488
}
8614
7489
_ACEOF
8615
 
rm -f conftest.$ac_objext conftest$ac_exeext
8616
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8617
 
  (eval $ac_link) 2>conftest.er1
8618
 
  ac_status=$?
8619
 
  grep -v '^ *+' conftest.er1 >conftest.err
8620
 
  rm -f conftest.er1
8621
 
  cat conftest.err >&5
8622
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8623
 
  (exit $ac_status); } &&
8624
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8625
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8626
 
  (eval $ac_try) 2>&5
8627
 
  ac_status=$?
8628
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8629
 
  (exit $ac_status); }; } &&
8630
 
         { ac_try='test -s conftest$ac_exeext'
8631
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8632
 
  (eval $ac_try) 2>&5
8633
 
  ac_status=$?
8634
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8635
 
  (exit $ac_status); }; }; then
 
7490
if ac_fn_c_try_link "$LINENO"; then :
8636
7491
  ac_cv_working_alloca_h=yes
8637
7492
else
8638
 
  echo "$as_me: failed program was:" >&5
8639
 
sed 's/^/| /' conftest.$ac_ext >&5
8640
 
 
8641
 
ac_cv_working_alloca_h=no
8642
 
fi
8643
 
rm -f conftest.err conftest.$ac_objext \
8644
 
      conftest$ac_exeext conftest.$ac_ext
8645
 
fi
8646
 
echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8647
 
echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
 
7493
  ac_cv_working_alloca_h=no
 
7494
fi
 
7495
rm -f core conftest.err conftest.$ac_objext \
 
7496
    conftest$ac_exeext conftest.$ac_ext
 
7497
fi
 
7498
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
 
7499
$as_echo "$ac_cv_working_alloca_h" >&6; }
8648
7500
if test $ac_cv_working_alloca_h = yes; then
8649
7501
 
8650
 
cat >>confdefs.h <<\_ACEOF
8651
 
#define HAVE_ALLOCA_H 1
8652
 
_ACEOF
 
7502
$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
8653
7503
 
8654
7504
fi
8655
7505
 
8656
 
echo "$as_me:$LINENO: checking for alloca" >&5
8657
 
echo $ECHO_N "checking for alloca... $ECHO_C" >&6
8658
 
if test "${ac_cv_func_alloca_works+set}" = set; then
8659
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7506
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
 
7507
$as_echo_n "checking for alloca... " >&6; }
 
7508
if test "${ac_cv_func_alloca_works+set}" = set; then :
 
7509
  $as_echo_n "(cached) " >&6
8660
7510
else
8661
 
  cat >conftest.$ac_ext <<_ACEOF
8662
 
/* confdefs.h.  */
8663
 
_ACEOF
8664
 
cat confdefs.h >>conftest.$ac_ext
8665
 
cat >>conftest.$ac_ext <<_ACEOF
 
7511
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8666
7512
/* end confdefs.h.  */
8667
7513
#ifdef __GNUC__
8668
7514
# define alloca __builtin_alloca
8671
7517
#  include <malloc.h>
8672
7518
#  define alloca _alloca
8673
7519
# else
8674
 
#  if HAVE_ALLOCA_H
 
7520
#  ifdef HAVE_ALLOCA_H
8675
7521
#   include <alloca.h>
8676
7522
#  else
8677
7523
#   ifdef _AIX
8689
7535
main ()
8690
7536
{
8691
7537
char *p = (char *) alloca (1);
 
7538
                                    if (p) return 0;
8692
7539
  ;
8693
7540
  return 0;
8694
7541
}
8695
7542
_ACEOF
8696
 
rm -f conftest.$ac_objext conftest$ac_exeext
8697
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8698
 
  (eval $ac_link) 2>conftest.er1
8699
 
  ac_status=$?
8700
 
  grep -v '^ *+' conftest.er1 >conftest.err
8701
 
  rm -f conftest.er1
8702
 
  cat conftest.err >&5
8703
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8704
 
  (exit $ac_status); } &&
8705
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8706
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8707
 
  (eval $ac_try) 2>&5
8708
 
  ac_status=$?
8709
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710
 
  (exit $ac_status); }; } &&
8711
 
         { ac_try='test -s conftest$ac_exeext'
8712
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8713
 
  (eval $ac_try) 2>&5
8714
 
  ac_status=$?
8715
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8716
 
  (exit $ac_status); }; }; then
 
7543
if ac_fn_c_try_link "$LINENO"; then :
8717
7544
  ac_cv_func_alloca_works=yes
8718
7545
else
8719
 
  echo "$as_me: failed program was:" >&5
8720
 
sed 's/^/| /' conftest.$ac_ext >&5
8721
 
 
8722
 
ac_cv_func_alloca_works=no
8723
 
fi
8724
 
rm -f conftest.err conftest.$ac_objext \
8725
 
      conftest$ac_exeext conftest.$ac_ext
8726
 
fi
8727
 
echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
8728
 
echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
 
7546
  ac_cv_func_alloca_works=no
 
7547
fi
 
7548
rm -f core conftest.err conftest.$ac_objext \
 
7549
    conftest$ac_exeext conftest.$ac_ext
 
7550
fi
 
7551
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
 
7552
$as_echo "$ac_cv_func_alloca_works" >&6; }
8729
7553
 
8730
7554
if test $ac_cv_func_alloca_works = yes; then
8731
7555
 
8732
 
cat >>confdefs.h <<\_ACEOF
8733
 
#define HAVE_ALLOCA 1
8734
 
_ACEOF
 
7556
$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
8735
7557
 
8736
7558
else
8737
7559
  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8739
7561
# contain a buggy version.  If you still want to use their alloca,
8740
7562
# use ar to extract alloca.o from them instead of compiling alloca.c.
8741
7563
 
8742
 
ALLOCA=alloca.$ac_objext
8743
 
 
8744
 
cat >>confdefs.h <<\_ACEOF
8745
 
#define C_ALLOCA 1
8746
 
_ACEOF
8747
 
 
8748
 
 
8749
 
echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
8750
 
echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
8751
 
if test "${ac_cv_os_cray+set}" = set; then
8752
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7564
ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
 
7565
 
 
7566
$as_echo "#define C_ALLOCA 1" >>confdefs.h
 
7567
 
 
7568
 
 
7569
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
 
7570
$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
 
7571
if test "${ac_cv_os_cray+set}" = set; then :
 
7572
  $as_echo_n "(cached) " >&6
8753
7573
else
8754
 
  cat >conftest.$ac_ext <<_ACEOF
8755
 
/* confdefs.h.  */
8756
 
_ACEOF
8757
 
cat confdefs.h >>conftest.$ac_ext
8758
 
cat >>conftest.$ac_ext <<_ACEOF
 
7574
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8759
7575
/* end confdefs.h.  */
8760
 
#if defined(CRAY) && ! defined(CRAY2)
 
7576
#if defined CRAY && ! defined CRAY2
8761
7577
webecray
8762
7578
#else
8763
7579
wenotbecray
8765
7581
 
8766
7582
_ACEOF
8767
7583
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8768
 
  $EGREP "webecray" >/dev/null 2>&1; then
 
7584
  $EGREP "webecray" >/dev/null 2>&1; then :
8769
7585
  ac_cv_os_cray=yes
8770
7586
else
8771
7587
  ac_cv_os_cray=no
8773
7589
rm -f conftest*
8774
7590
 
8775
7591
fi
8776
 
echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
8777
 
echo "${ECHO_T}$ac_cv_os_cray" >&6
 
7592
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
 
7593
$as_echo "$ac_cv_os_cray" >&6; }
8778
7594
if test $ac_cv_os_cray = yes; then
8779
7595
  for ac_func in _getb67 GETB67 getb67; do
8780
 
    as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8781
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
8782
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8783
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
8784
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8785
 
else
8786
 
  cat >conftest.$ac_ext <<_ACEOF
8787
 
/* confdefs.h.  */
8788
 
_ACEOF
8789
 
cat confdefs.h >>conftest.$ac_ext
8790
 
cat >>conftest.$ac_ext <<_ACEOF
8791
 
/* end confdefs.h.  */
8792
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8793
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8794
 
#define $ac_func innocuous_$ac_func
8795
 
 
8796
 
/* System header to define __stub macros and hopefully few prototypes,
8797
 
    which can conflict with char $ac_func (); below.
8798
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8799
 
    <limits.h> exists even on freestanding compilers.  */
8800
 
 
8801
 
#ifdef __STDC__
8802
 
# include <limits.h>
8803
 
#else
8804
 
# include <assert.h>
8805
 
#endif
8806
 
 
8807
 
#undef $ac_func
8808
 
 
8809
 
/* Override any gcc2 internal prototype to avoid an error.  */
8810
 
#ifdef __cplusplus
8811
 
extern "C"
8812
 
{
8813
 
#endif
8814
 
/* We use char because int might match the return type of a gcc2
8815
 
   builtin and then its argument prototype would still apply.  */
8816
 
char $ac_func ();
8817
 
/* The GNU C library defines this for functions which it implements
8818
 
    to always fail with ENOSYS.  Some functions are actually named
8819
 
    something starting with __ and the normal name is an alias.  */
8820
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8821
 
choke me
8822
 
#else
8823
 
char (*f) () = $ac_func;
8824
 
#endif
8825
 
#ifdef __cplusplus
8826
 
}
8827
 
#endif
8828
 
 
8829
 
int
8830
 
main ()
8831
 
{
8832
 
return f != $ac_func;
8833
 
  ;
8834
 
  return 0;
8835
 
}
8836
 
_ACEOF
8837
 
rm -f conftest.$ac_objext conftest$ac_exeext
8838
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8839
 
  (eval $ac_link) 2>conftest.er1
8840
 
  ac_status=$?
8841
 
  grep -v '^ *+' conftest.er1 >conftest.err
8842
 
  rm -f conftest.er1
8843
 
  cat conftest.err >&5
8844
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8845
 
  (exit $ac_status); } &&
8846
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8847
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8848
 
  (eval $ac_try) 2>&5
8849
 
  ac_status=$?
8850
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8851
 
  (exit $ac_status); }; } &&
8852
 
         { ac_try='test -s conftest$ac_exeext'
8853
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8854
 
  (eval $ac_try) 2>&5
8855
 
  ac_status=$?
8856
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8857
 
  (exit $ac_status); }; }; then
8858
 
  eval "$as_ac_var=yes"
8859
 
else
8860
 
  echo "$as_me: failed program was:" >&5
8861
 
sed 's/^/| /' conftest.$ac_ext >&5
8862
 
 
8863
 
eval "$as_ac_var=no"
8864
 
fi
8865
 
rm -f conftest.err conftest.$ac_objext \
8866
 
      conftest$ac_exeext conftest.$ac_ext
8867
 
fi
8868
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8869
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8870
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
7596
    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
7597
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
 
7598
eval as_val=\$$as_ac_var
 
7599
   if test "x$as_val" = x""yes; then :
8871
7600
 
8872
7601
cat >>confdefs.h <<_ACEOF
8873
7602
#define CRAY_STACKSEG_END $ac_func
8879
7608
  done
8880
7609
fi
8881
7610
 
8882
 
echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
8883
 
echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
8884
 
if test "${ac_cv_c_stack_direction+set}" = set; then
8885
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7611
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
 
7612
$as_echo_n "checking stack direction for C alloca... " >&6; }
 
7613
if test "${ac_cv_c_stack_direction+set}" = set; then :
 
7614
  $as_echo_n "(cached) " >&6
8886
7615
else
8887
 
  if test "$cross_compiling" = yes; then
 
7616
  if test "$cross_compiling" = yes; then :
8888
7617
  ac_cv_c_stack_direction=0
8889
7618
else
8890
 
  cat >conftest.$ac_ext <<_ACEOF
8891
 
/* confdefs.h.  */
8892
 
_ACEOF
8893
 
cat confdefs.h >>conftest.$ac_ext
8894
 
cat >>conftest.$ac_ext <<_ACEOF
 
7619
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8895
7620
/* end confdefs.h.  */
 
7621
$ac_includes_default
8896
7622
int
8897
7623
find_stack_direction ()
8898
7624
{
8910
7636
int
8911
7637
main ()
8912
7638
{
8913
 
  exit (find_stack_direction () < 0);
 
7639
  return find_stack_direction () < 0;
8914
7640
}
8915
7641
_ACEOF
8916
 
rm -f conftest$ac_exeext
8917
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8918
 
  (eval $ac_link) 2>&5
8919
 
  ac_status=$?
8920
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8921
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8922
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8923
 
  (eval $ac_try) 2>&5
8924
 
  ac_status=$?
8925
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8926
 
  (exit $ac_status); }; }; then
 
7642
if ac_fn_c_try_run "$LINENO"; then :
8927
7643
  ac_cv_c_stack_direction=1
8928
7644
else
8929
 
  echo "$as_me: program exited with status $ac_status" >&5
8930
 
echo "$as_me: failed program was:" >&5
8931
 
sed 's/^/| /' conftest.$ac_ext >&5
8932
 
 
8933
 
( exit $ac_status )
8934
 
ac_cv_c_stack_direction=-1
8935
 
fi
8936
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8937
 
fi
8938
 
fi
8939
 
echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
8940
 
echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
8941
 
 
 
7645
  ac_cv_c_stack_direction=-1
 
7646
fi
 
7647
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
7648
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
7649
fi
 
7650
 
 
7651
fi
 
7652
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
 
7653
$as_echo "$ac_cv_c_stack_direction" >&6; }
8942
7654
cat >>confdefs.h <<_ACEOF
8943
7655
#define STACK_DIRECTION $ac_cv_c_stack_direction
8944
7656
_ACEOF
8946
7658
 
8947
7659
fi
8948
7660
 
8949
 
 
8950
 
 
8951
 
for ac_header in unistd.h vfork.h
8952
 
do
8953
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8954
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
8955
 
  echo "$as_me:$LINENO: checking for $ac_header" >&5
8956
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8957
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
8958
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8959
 
fi
8960
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8961
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8962
 
else
8963
 
  # Is the header compilable?
8964
 
echo "$as_me:$LINENO: checking $ac_header usability" >&5
8965
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8966
 
cat >conftest.$ac_ext <<_ACEOF
8967
 
/* confdefs.h.  */
8968
 
_ACEOF
8969
 
cat confdefs.h >>conftest.$ac_ext
8970
 
cat >>conftest.$ac_ext <<_ACEOF
8971
 
/* end confdefs.h.  */
8972
 
$ac_includes_default
8973
 
#include <$ac_header>
8974
 
_ACEOF
8975
 
rm -f conftest.$ac_objext
8976
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8977
 
  (eval $ac_compile) 2>conftest.er1
8978
 
  ac_status=$?
8979
 
  grep -v '^ *+' conftest.er1 >conftest.err
8980
 
  rm -f conftest.er1
8981
 
  cat conftest.err >&5
8982
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8983
 
  (exit $ac_status); } &&
8984
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8985
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8986
 
  (eval $ac_try) 2>&5
8987
 
  ac_status=$?
8988
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8989
 
  (exit $ac_status); }; } &&
8990
 
         { ac_try='test -s conftest.$ac_objext'
8991
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8992
 
  (eval $ac_try) 2>&5
8993
 
  ac_status=$?
8994
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8995
 
  (exit $ac_status); }; }; then
8996
 
  ac_header_compiler=yes
8997
 
else
8998
 
  echo "$as_me: failed program was:" >&5
8999
 
sed 's/^/| /' conftest.$ac_ext >&5
9000
 
 
9001
 
ac_header_compiler=no
9002
 
fi
9003
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9004
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9005
 
echo "${ECHO_T}$ac_header_compiler" >&6
9006
 
 
9007
 
# Is the header present?
9008
 
echo "$as_me:$LINENO: checking $ac_header presence" >&5
9009
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9010
 
cat >conftest.$ac_ext <<_ACEOF
9011
 
/* confdefs.h.  */
9012
 
_ACEOF
9013
 
cat confdefs.h >>conftest.$ac_ext
9014
 
cat >>conftest.$ac_ext <<_ACEOF
9015
 
/* end confdefs.h.  */
9016
 
#include <$ac_header>
9017
 
_ACEOF
9018
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9019
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9020
 
  ac_status=$?
9021
 
  grep -v '^ *+' conftest.er1 >conftest.err
9022
 
  rm -f conftest.er1
9023
 
  cat conftest.err >&5
9024
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9025
 
  (exit $ac_status); } >/dev/null; then
9026
 
  if test -s conftest.err; then
9027
 
    ac_cpp_err=$ac_c_preproc_warn_flag
9028
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9029
 
  else
9030
 
    ac_cpp_err=
9031
 
  fi
9032
 
else
9033
 
  ac_cpp_err=yes
9034
 
fi
9035
 
if test -z "$ac_cpp_err"; then
9036
 
  ac_header_preproc=yes
9037
 
else
9038
 
  echo "$as_me: failed program was:" >&5
9039
 
sed 's/^/| /' conftest.$ac_ext >&5
9040
 
 
9041
 
  ac_header_preproc=no
9042
 
fi
9043
 
rm -f conftest.err conftest.$ac_ext
9044
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9045
 
echo "${ECHO_T}$ac_header_preproc" >&6
9046
 
 
9047
 
# So?  What about this header?
9048
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9049
 
  yes:no: )
9050
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9051
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9052
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9053
 
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9054
 
    ac_header_preproc=yes
9055
 
    ;;
9056
 
  no:yes:* )
9057
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9058
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9059
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9060
 
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9061
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9062
 
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9063
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9064
 
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9065
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9066
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9067
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9068
 
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9069
 
    (
9070
 
      cat <<\_ASBOX
9071
 
## ------------------------------- ##
9072
 
## Report this to bug-make@gnu.org ##
9073
 
## ------------------------------- ##
9074
 
_ASBOX
9075
 
    ) |
9076
 
      sed "s/^/$as_me: WARNING:     /" >&2
9077
 
    ;;
9078
 
esac
9079
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
9080
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9081
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
9082
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9083
 
else
9084
 
  eval "$as_ac_Header=\$ac_header_preproc"
9085
 
fi
9086
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9087
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9088
 
 
9089
 
fi
9090
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
7661
for ac_header in vfork.h
 
7662
do :
 
7663
  ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
 
7664
if test "x$ac_cv_header_vfork_h" = x""yes; then :
9091
7665
  cat >>confdefs.h <<_ACEOF
9092
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
7666
#define HAVE_VFORK_H 1
9093
7667
_ACEOF
9094
7668
 
9095
7669
fi
9096
7670
 
9097
7671
done
9098
7672
 
9099
 
 
9100
 
 
9101
7673
for ac_func in fork vfork
9102
 
do
9103
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9104
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
9105
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9106
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
9107
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9108
 
else
9109
 
  cat >conftest.$ac_ext <<_ACEOF
9110
 
/* confdefs.h.  */
9111
 
_ACEOF
9112
 
cat confdefs.h >>conftest.$ac_ext
9113
 
cat >>conftest.$ac_ext <<_ACEOF
9114
 
/* end confdefs.h.  */
9115
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9116
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9117
 
#define $ac_func innocuous_$ac_func
9118
 
 
9119
 
/* System header to define __stub macros and hopefully few prototypes,
9120
 
    which can conflict with char $ac_func (); below.
9121
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9122
 
    <limits.h> exists even on freestanding compilers.  */
9123
 
 
9124
 
#ifdef __STDC__
9125
 
# include <limits.h>
9126
 
#else
9127
 
# include <assert.h>
9128
 
#endif
9129
 
 
9130
 
#undef $ac_func
9131
 
 
9132
 
/* Override any gcc2 internal prototype to avoid an error.  */
9133
 
#ifdef __cplusplus
9134
 
extern "C"
9135
 
{
9136
 
#endif
9137
 
/* We use char because int might match the return type of a gcc2
9138
 
   builtin and then its argument prototype would still apply.  */
9139
 
char $ac_func ();
9140
 
/* The GNU C library defines this for functions which it implements
9141
 
    to always fail with ENOSYS.  Some functions are actually named
9142
 
    something starting with __ and the normal name is an alias.  */
9143
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9144
 
choke me
9145
 
#else
9146
 
char (*f) () = $ac_func;
9147
 
#endif
9148
 
#ifdef __cplusplus
9149
 
}
9150
 
#endif
9151
 
 
9152
 
int
9153
 
main ()
9154
 
{
9155
 
return f != $ac_func;
9156
 
  ;
9157
 
  return 0;
9158
 
}
9159
 
_ACEOF
9160
 
rm -f conftest.$ac_objext conftest$ac_exeext
9161
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9162
 
  (eval $ac_link) 2>conftest.er1
9163
 
  ac_status=$?
9164
 
  grep -v '^ *+' conftest.er1 >conftest.err
9165
 
  rm -f conftest.er1
9166
 
  cat conftest.err >&5
9167
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9168
 
  (exit $ac_status); } &&
9169
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9170
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9171
 
  (eval $ac_try) 2>&5
9172
 
  ac_status=$?
9173
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9174
 
  (exit $ac_status); }; } &&
9175
 
         { ac_try='test -s conftest$ac_exeext'
9176
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9177
 
  (eval $ac_try) 2>&5
9178
 
  ac_status=$?
9179
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9180
 
  (exit $ac_status); }; }; then
9181
 
  eval "$as_ac_var=yes"
9182
 
else
9183
 
  echo "$as_me: failed program was:" >&5
9184
 
sed 's/^/| /' conftest.$ac_ext >&5
9185
 
 
9186
 
eval "$as_ac_var=no"
9187
 
fi
9188
 
rm -f conftest.err conftest.$ac_objext \
9189
 
      conftest$ac_exeext conftest.$ac_ext
9190
 
fi
9191
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9192
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9193
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
7674
do :
 
7675
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
7676
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
 
7677
eval as_val=\$$as_ac_var
 
7678
   if test "x$as_val" = x""yes; then :
9194
7679
  cat >>confdefs.h <<_ACEOF
9195
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
7680
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9196
7681
_ACEOF
9197
7682
 
9198
7683
fi
9199
7684
done
9200
7685
 
9201
7686
if test "x$ac_cv_func_fork" = xyes; then
9202
 
  echo "$as_me:$LINENO: checking for working fork" >&5
9203
 
echo $ECHO_N "checking for working fork... $ECHO_C" >&6
9204
 
if test "${ac_cv_func_fork_works+set}" = set; then
9205
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7687
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
 
7688
$as_echo_n "checking for working fork... " >&6; }
 
7689
if test "${ac_cv_func_fork_works+set}" = set; then :
 
7690
  $as_echo_n "(cached) " >&6
9206
7691
else
9207
 
  if test "$cross_compiling" = yes; then
 
7692
  if test "$cross_compiling" = yes; then :
9208
7693
  ac_cv_func_fork_works=cross
9209
7694
else
9210
 
  cat >conftest.$ac_ext <<_ACEOF
9211
 
/* confdefs.h.  */
9212
 
_ACEOF
9213
 
cat confdefs.h >>conftest.$ac_ext
9214
 
cat >>conftest.$ac_ext <<_ACEOF
 
7695
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9215
7696
/* end confdefs.h.  */
9216
7697
$ac_includes_default
9217
7698
int
9219
7700
{
9220
7701
 
9221
7702
          /* By Ruediger Kuhlmann. */
9222
 
          if (fork() < 0)
9223
 
            exit (1);
9224
 
          exit (0);
 
7703
          return fork () < 0;
9225
7704
 
9226
7705
  ;
9227
7706
  return 0;
9228
7707
}
9229
7708
_ACEOF
9230
 
rm -f conftest$ac_exeext
9231
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9232
 
  (eval $ac_link) 2>&5
9233
 
  ac_status=$?
9234
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9235
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9236
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9237
 
  (eval $ac_try) 2>&5
9238
 
  ac_status=$?
9239
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9240
 
  (exit $ac_status); }; }; then
 
7709
if ac_fn_c_try_run "$LINENO"; then :
9241
7710
  ac_cv_func_fork_works=yes
9242
7711
else
9243
 
  echo "$as_me: program exited with status $ac_status" >&5
9244
 
echo "$as_me: failed program was:" >&5
9245
 
sed 's/^/| /' conftest.$ac_ext >&5
 
7712
  ac_cv_func_fork_works=no
 
7713
fi
 
7714
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
7715
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
7716
fi
9246
7717
 
9247
 
( exit $ac_status )
9248
 
ac_cv_func_fork_works=no
9249
 
fi
9250
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9251
 
fi
9252
 
fi
9253
 
echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
9254
 
echo "${ECHO_T}$ac_cv_func_fork_works" >&6
 
7718
fi
 
7719
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
 
7720
$as_echo "$ac_cv_func_fork_works" >&6; }
9255
7721
 
9256
7722
else
9257
7723
  ac_cv_func_fork_works=$ac_cv_func_fork
9266
7732
      ac_cv_func_fork_works=yes
9267
7733
      ;;
9268
7734
  esac
9269
 
  { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9270
 
echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
 
7735
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
 
7736
$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9271
7737
fi
9272
7738
ac_cv_func_vfork_works=$ac_cv_func_vfork
9273
7739
if test "x$ac_cv_func_vfork" = xyes; then
9274
 
  echo "$as_me:$LINENO: checking for working vfork" >&5
9275
 
echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
9276
 
if test "${ac_cv_func_vfork_works+set}" = set; then
9277
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7740
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
 
7741
$as_echo_n "checking for working vfork... " >&6; }
 
7742
if test "${ac_cv_func_vfork_works+set}" = set; then :
 
7743
  $as_echo_n "(cached) " >&6
9278
7744
else
9279
 
  if test "$cross_compiling" = yes; then
 
7745
  if test "$cross_compiling" = yes; then :
9280
7746
  ac_cv_func_vfork_works=cross
9281
7747
else
9282
 
  cat >conftest.$ac_ext <<_ACEOF
9283
 
/* confdefs.h.  */
9284
 
_ACEOF
9285
 
cat confdefs.h >>conftest.$ac_ext
9286
 
cat >>conftest.$ac_ext <<_ACEOF
 
7748
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9287
7749
/* end confdefs.h.  */
9288
7750
/* Thanks to Paul Eggert for this test.  */
9289
 
#include <stdio.h>
9290
 
#include <stdlib.h>
9291
 
#include <sys/types.h>
9292
 
#include <sys/stat.h>
 
7751
$ac_includes_default
9293
7752
#include <sys/wait.h>
9294
 
#if HAVE_UNISTD_H
9295
 
# include <unistd.h>
9296
 
#endif
9297
 
#if HAVE_VFORK_H
 
7753
#ifdef HAVE_VFORK_H
9298
7754
# include <vfork.h>
9299
7755
#endif
9300
7756
/* On some sparc systems, changes by the child to local and incoming
9365
7821
 
9366
7822
    while (wait(&status) != child)
9367
7823
      ;
9368
 
    exit(
 
7824
    return (
9369
7825
         /* Was there some problem with vforking?  */
9370
7826
         child < 0
9371
7827
 
9381
7837
  }
9382
7838
}
9383
7839
_ACEOF
9384
 
rm -f conftest$ac_exeext
9385
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9386
 
  (eval $ac_link) 2>&5
9387
 
  ac_status=$?
9388
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9389
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9390
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9391
 
  (eval $ac_try) 2>&5
9392
 
  ac_status=$?
9393
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9394
 
  (exit $ac_status); }; }; then
 
7840
if ac_fn_c_try_run "$LINENO"; then :
9395
7841
  ac_cv_func_vfork_works=yes
9396
7842
else
9397
 
  echo "$as_me: program exited with status $ac_status" >&5
9398
 
echo "$as_me: failed program was:" >&5
9399
 
sed 's/^/| /' conftest.$ac_ext >&5
 
7843
  ac_cv_func_vfork_works=no
 
7844
fi
 
7845
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
7846
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
7847
fi
9400
7848
 
9401
 
( exit $ac_status )
9402
 
ac_cv_func_vfork_works=no
9403
 
fi
9404
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9405
 
fi
9406
 
fi
9407
 
echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
9408
 
echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
 
7849
fi
 
7850
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
 
7851
$as_echo "$ac_cv_func_vfork_works" >&6; }
9409
7852
 
9410
7853
fi;
9411
7854
if test "x$ac_cv_func_fork_works" = xcross; then
9412
7855
  ac_cv_func_vfork_works=$ac_cv_func_vfork
9413
 
  { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9414
 
echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
 
7856
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
 
7857
$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9415
7858
fi
9416
7859
 
9417
7860
if test "x$ac_cv_func_vfork_works" = xyes; then
9418
7861
 
9419
 
cat >>confdefs.h <<\_ACEOF
9420
 
#define HAVE_WORKING_VFORK 1
9421
 
_ACEOF
 
7862
$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9422
7863
 
9423
7864
else
9424
7865
 
9425
 
cat >>confdefs.h <<\_ACEOF
9426
 
#define vfork fork
9427
 
_ACEOF
 
7866
$as_echo "#define vfork fork" >>confdefs.h
9428
7867
 
9429
7868
fi
9430
7869
if test "x$ac_cv_func_fork_works" = xyes; then
9431
7870
 
9432
 
cat >>confdefs.h <<\_ACEOF
9433
 
#define HAVE_WORKING_FORK 1
9434
 
_ACEOF
 
7871
$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9435
7872
 
9436
7873
fi
9437
7874
 
9438
 
 
9439
7875
for ac_func in vprintf
9440
 
do
9441
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9442
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
9443
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9444
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
9445
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9446
 
else
9447
 
  cat >conftest.$ac_ext <<_ACEOF
9448
 
/* confdefs.h.  */
9449
 
_ACEOF
9450
 
cat confdefs.h >>conftest.$ac_ext
9451
 
cat >>conftest.$ac_ext <<_ACEOF
9452
 
/* end confdefs.h.  */
9453
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9454
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9455
 
#define $ac_func innocuous_$ac_func
9456
 
 
9457
 
/* System header to define __stub macros and hopefully few prototypes,
9458
 
    which can conflict with char $ac_func (); below.
9459
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9460
 
    <limits.h> exists even on freestanding compilers.  */
9461
 
 
9462
 
#ifdef __STDC__
9463
 
# include <limits.h>
9464
 
#else
9465
 
# include <assert.h>
9466
 
#endif
9467
 
 
9468
 
#undef $ac_func
9469
 
 
9470
 
/* Override any gcc2 internal prototype to avoid an error.  */
9471
 
#ifdef __cplusplus
9472
 
extern "C"
9473
 
{
9474
 
#endif
9475
 
/* We use char because int might match the return type of a gcc2
9476
 
   builtin and then its argument prototype would still apply.  */
9477
 
char $ac_func ();
9478
 
/* The GNU C library defines this for functions which it implements
9479
 
    to always fail with ENOSYS.  Some functions are actually named
9480
 
    something starting with __ and the normal name is an alias.  */
9481
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9482
 
choke me
9483
 
#else
9484
 
char (*f) () = $ac_func;
9485
 
#endif
9486
 
#ifdef __cplusplus
9487
 
}
9488
 
#endif
9489
 
 
9490
 
int
9491
 
main ()
9492
 
{
9493
 
return f != $ac_func;
9494
 
  ;
9495
 
  return 0;
9496
 
}
9497
 
_ACEOF
9498
 
rm -f conftest.$ac_objext conftest$ac_exeext
9499
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9500
 
  (eval $ac_link) 2>conftest.er1
9501
 
  ac_status=$?
9502
 
  grep -v '^ *+' conftest.er1 >conftest.err
9503
 
  rm -f conftest.er1
9504
 
  cat conftest.err >&5
9505
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9506
 
  (exit $ac_status); } &&
9507
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9508
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9509
 
  (eval $ac_try) 2>&5
9510
 
  ac_status=$?
9511
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9512
 
  (exit $ac_status); }; } &&
9513
 
         { ac_try='test -s conftest$ac_exeext'
9514
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9515
 
  (eval $ac_try) 2>&5
9516
 
  ac_status=$?
9517
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9518
 
  (exit $ac_status); }; }; then
9519
 
  eval "$as_ac_var=yes"
9520
 
else
9521
 
  echo "$as_me: failed program was:" >&5
9522
 
sed 's/^/| /' conftest.$ac_ext >&5
9523
 
 
9524
 
eval "$as_ac_var=no"
9525
 
fi
9526
 
rm -f conftest.err conftest.$ac_objext \
9527
 
      conftest$ac_exeext conftest.$ac_ext
9528
 
fi
9529
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9530
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9531
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
7876
do :
 
7877
  ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
 
7878
if test "x$ac_cv_func_vprintf" = x""yes; then :
9532
7879
  cat >>confdefs.h <<_ACEOF
9533
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9534
 
_ACEOF
9535
 
 
9536
 
echo "$as_me:$LINENO: checking for _doprnt" >&5
9537
 
echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
9538
 
if test "${ac_cv_func__doprnt+set}" = set; then
9539
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9540
 
else
9541
 
  cat >conftest.$ac_ext <<_ACEOF
9542
 
/* confdefs.h.  */
9543
 
_ACEOF
9544
 
cat confdefs.h >>conftest.$ac_ext
9545
 
cat >>conftest.$ac_ext <<_ACEOF
9546
 
/* end confdefs.h.  */
9547
 
/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
9548
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9549
 
#define _doprnt innocuous__doprnt
9550
 
 
9551
 
/* System header to define __stub macros and hopefully few prototypes,
9552
 
    which can conflict with char _doprnt (); below.
9553
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9554
 
    <limits.h> exists even on freestanding compilers.  */
9555
 
 
9556
 
#ifdef __STDC__
9557
 
# include <limits.h>
9558
 
#else
9559
 
# include <assert.h>
9560
 
#endif
9561
 
 
9562
 
#undef _doprnt
9563
 
 
9564
 
/* Override any gcc2 internal prototype to avoid an error.  */
9565
 
#ifdef __cplusplus
9566
 
extern "C"
9567
 
{
9568
 
#endif
9569
 
/* We use char because int might match the return type of a gcc2
9570
 
   builtin and then its argument prototype would still apply.  */
9571
 
char _doprnt ();
9572
 
/* The GNU C library defines this for functions which it implements
9573
 
    to always fail with ENOSYS.  Some functions are actually named
9574
 
    something starting with __ and the normal name is an alias.  */
9575
 
#if defined (__stub__doprnt) || defined (__stub____doprnt)
9576
 
choke me
9577
 
#else
9578
 
char (*f) () = _doprnt;
9579
 
#endif
9580
 
#ifdef __cplusplus
9581
 
}
9582
 
#endif
9583
 
 
9584
 
int
9585
 
main ()
9586
 
{
9587
 
return f != _doprnt;
9588
 
  ;
9589
 
  return 0;
9590
 
}
9591
 
_ACEOF
9592
 
rm -f conftest.$ac_objext conftest$ac_exeext
9593
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9594
 
  (eval $ac_link) 2>conftest.er1
9595
 
  ac_status=$?
9596
 
  grep -v '^ *+' conftest.er1 >conftest.err
9597
 
  rm -f conftest.er1
9598
 
  cat conftest.err >&5
9599
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9600
 
  (exit $ac_status); } &&
9601
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9602
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9603
 
  (eval $ac_try) 2>&5
9604
 
  ac_status=$?
9605
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9606
 
  (exit $ac_status); }; } &&
9607
 
         { ac_try='test -s conftest$ac_exeext'
9608
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9609
 
  (eval $ac_try) 2>&5
9610
 
  ac_status=$?
9611
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9612
 
  (exit $ac_status); }; }; then
9613
 
  ac_cv_func__doprnt=yes
9614
 
else
9615
 
  echo "$as_me: failed program was:" >&5
9616
 
sed 's/^/| /' conftest.$ac_ext >&5
9617
 
 
9618
 
ac_cv_func__doprnt=no
9619
 
fi
9620
 
rm -f conftest.err conftest.$ac_objext \
9621
 
      conftest$ac_exeext conftest.$ac_ext
9622
 
fi
9623
 
echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
9624
 
echo "${ECHO_T}$ac_cv_func__doprnt" >&6
9625
 
if test $ac_cv_func__doprnt = yes; then
9626
 
 
9627
 
cat >>confdefs.h <<\_ACEOF
9628
 
#define HAVE_DOPRNT 1
9629
 
_ACEOF
 
7880
#define HAVE_VPRINTF 1
 
7881
_ACEOF
 
7882
 
 
7883
ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
 
7884
if test "x$ac_cv_func__doprnt" = x""yes; then :
 
7885
 
 
7886
$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
9630
7887
 
9631
7888
fi
9632
7889
 
9634
7891
done
9635
7892
 
9636
7893
 
9637
 
echo "$as_me:$LINENO: checking whether closedir returns void" >&5
9638
 
echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
9639
 
if test "${ac_cv_func_closedir_void+set}" = set; then
9640
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7894
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
 
7895
$as_echo_n "checking whether closedir returns void... " >&6; }
 
7896
if test "${ac_cv_func_closedir_void+set}" = set; then :
 
7897
  $as_echo_n "(cached) " >&6
9641
7898
else
9642
 
  if test "$cross_compiling" = yes; then
 
7899
  if test "$cross_compiling" = yes; then :
9643
7900
  ac_cv_func_closedir_void=yes
9644
7901
else
9645
 
  cat >conftest.$ac_ext <<_ACEOF
9646
 
/* confdefs.h.  */
9647
 
_ACEOF
9648
 
cat confdefs.h >>conftest.$ac_ext
9649
 
cat >>conftest.$ac_ext <<_ACEOF
 
7902
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9650
7903
/* end confdefs.h.  */
9651
7904
$ac_includes_default
9652
7905
#include <$ac_header_dirent>
9657
7910
int
9658
7911
main ()
9659
7912
{
9660
 
exit (closedir (opendir (".")) != 0);
 
7913
return closedir (opendir (".")) != 0;
9661
7914
  ;
9662
7915
  return 0;
9663
7916
}
9664
7917
_ACEOF
9665
 
rm -f conftest$ac_exeext
9666
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9667
 
  (eval $ac_link) 2>&5
9668
 
  ac_status=$?
9669
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9670
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9671
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9672
 
  (eval $ac_try) 2>&5
9673
 
  ac_status=$?
9674
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9675
 
  (exit $ac_status); }; }; then
 
7918
if ac_fn_c_try_run "$LINENO"; then :
9676
7919
  ac_cv_func_closedir_void=no
9677
7920
else
9678
 
  echo "$as_me: program exited with status $ac_status" >&5
9679
 
echo "$as_me: failed program was:" >&5
9680
 
sed 's/^/| /' conftest.$ac_ext >&5
 
7921
  ac_cv_func_closedir_void=yes
 
7922
fi
 
7923
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
7924
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
7925
fi
9681
7926
 
9682
 
( exit $ac_status )
9683
 
ac_cv_func_closedir_void=yes
9684
 
fi
9685
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9686
 
fi
9687
 
fi
9688
 
echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
9689
 
echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
 
7927
fi
 
7928
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
 
7929
$as_echo "$ac_cv_func_closedir_void" >&6; }
9690
7930
if test $ac_cv_func_closedir_void = yes; then
9691
7931
 
9692
 
cat >>confdefs.h <<\_ACEOF
9693
 
#define CLOSEDIR_VOID 1
9694
 
_ACEOF
 
7932
$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
9695
7933
 
9696
7934
fi
9697
7935
 
9700
7938
 
9701
7939
# Make sure getloadavg.c is where it belongs, at configure-time.
9702
7940
test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
9703
 
  { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
9704
 
echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
9705
 
   { (exit 1); exit 1; }; }
 
7941
  as_fn_error "$srcdir/$ac_config_libobj_dir/getloadavg.c is missing" "$LINENO" 5
9706
7942
 
9707
7943
ac_save_LIBS=$LIBS
9708
7944
 
9709
7945
# Check for getloadavg, but be sure not to touch the cache variable.
9710
 
(echo "$as_me:$LINENO: checking for getloadavg" >&5
9711
 
echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
9712
 
if test "${ac_cv_func_getloadavg+set}" = set; then
9713
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9714
 
else
9715
 
  cat >conftest.$ac_ext <<_ACEOF
9716
 
/* confdefs.h.  */
9717
 
_ACEOF
9718
 
cat confdefs.h >>conftest.$ac_ext
9719
 
cat >>conftest.$ac_ext <<_ACEOF
9720
 
/* end confdefs.h.  */
9721
 
/* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
9722
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9723
 
#define getloadavg innocuous_getloadavg
9724
 
 
9725
 
/* System header to define __stub macros and hopefully few prototypes,
9726
 
    which can conflict with char getloadavg (); below.
9727
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9728
 
    <limits.h> exists even on freestanding compilers.  */
9729
 
 
9730
 
#ifdef __STDC__
9731
 
# include <limits.h>
9732
 
#else
9733
 
# include <assert.h>
9734
 
#endif
9735
 
 
9736
 
#undef getloadavg
9737
 
 
9738
 
/* Override any gcc2 internal prototype to avoid an error.  */
9739
 
#ifdef __cplusplus
9740
 
extern "C"
9741
 
{
9742
 
#endif
9743
 
/* We use char because int might match the return type of a gcc2
9744
 
   builtin and then its argument prototype would still apply.  */
9745
 
char getloadavg ();
9746
 
/* The GNU C library defines this for functions which it implements
9747
 
    to always fail with ENOSYS.  Some functions are actually named
9748
 
    something starting with __ and the normal name is an alias.  */
9749
 
#if defined (__stub_getloadavg) || defined (__stub___getloadavg)
9750
 
choke me
9751
 
#else
9752
 
char (*f) () = getloadavg;
9753
 
#endif
9754
 
#ifdef __cplusplus
9755
 
}
9756
 
#endif
9757
 
 
9758
 
int
9759
 
main ()
9760
 
{
9761
 
return f != getloadavg;
9762
 
  ;
9763
 
  return 0;
9764
 
}
9765
 
_ACEOF
9766
 
rm -f conftest.$ac_objext conftest$ac_exeext
9767
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9768
 
  (eval $ac_link) 2>conftest.er1
9769
 
  ac_status=$?
9770
 
  grep -v '^ *+' conftest.er1 >conftest.err
9771
 
  rm -f conftest.er1
9772
 
  cat conftest.err >&5
9773
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9774
 
  (exit $ac_status); } &&
9775
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9776
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9777
 
  (eval $ac_try) 2>&5
9778
 
  ac_status=$?
9779
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9780
 
  (exit $ac_status); }; } &&
9781
 
         { ac_try='test -s conftest$ac_exeext'
9782
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9783
 
  (eval $ac_try) 2>&5
9784
 
  ac_status=$?
9785
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9786
 
  (exit $ac_status); }; }; then
9787
 
  ac_cv_func_getloadavg=yes
9788
 
else
9789
 
  echo "$as_me: failed program was:" >&5
9790
 
sed 's/^/| /' conftest.$ac_ext >&5
9791
 
 
9792
 
ac_cv_func_getloadavg=no
9793
 
fi
9794
 
rm -f conftest.err conftest.$ac_objext \
9795
 
      conftest$ac_exeext conftest.$ac_ext
9796
 
fi
9797
 
echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
9798
 
echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
9799
 
if test $ac_cv_func_getloadavg = yes; then
 
7946
(ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
 
7947
if test "x$ac_cv_func_getloadavg" = x""yes; then :
9800
7948
  exit 0
9801
7949
else
9802
7950
  exit 1
9804
7952
) && ac_have_func=yes
9805
7953
 
9806
7954
# On HPUX9, an unprivileged user can get load averages through this function.
9807
 
 
9808
7955
for ac_func in pstat_getdynamic
9809
 
do
9810
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9811
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
9812
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9813
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
9814
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9815
 
else
9816
 
  cat >conftest.$ac_ext <<_ACEOF
9817
 
/* confdefs.h.  */
9818
 
_ACEOF
9819
 
cat confdefs.h >>conftest.$ac_ext
9820
 
cat >>conftest.$ac_ext <<_ACEOF
9821
 
/* end confdefs.h.  */
9822
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9823
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9824
 
#define $ac_func innocuous_$ac_func
9825
 
 
9826
 
/* System header to define __stub macros and hopefully few prototypes,
9827
 
    which can conflict with char $ac_func (); below.
9828
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9829
 
    <limits.h> exists even on freestanding compilers.  */
9830
 
 
9831
 
#ifdef __STDC__
9832
 
# include <limits.h>
9833
 
#else
9834
 
# include <assert.h>
9835
 
#endif
9836
 
 
9837
 
#undef $ac_func
9838
 
 
9839
 
/* Override any gcc2 internal prototype to avoid an error.  */
9840
 
#ifdef __cplusplus
9841
 
extern "C"
9842
 
{
9843
 
#endif
9844
 
/* We use char because int might match the return type of a gcc2
9845
 
   builtin and then its argument prototype would still apply.  */
9846
 
char $ac_func ();
9847
 
/* The GNU C library defines this for functions which it implements
9848
 
    to always fail with ENOSYS.  Some functions are actually named
9849
 
    something starting with __ and the normal name is an alias.  */
9850
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9851
 
choke me
9852
 
#else
9853
 
char (*f) () = $ac_func;
9854
 
#endif
9855
 
#ifdef __cplusplus
9856
 
}
9857
 
#endif
9858
 
 
9859
 
int
9860
 
main ()
9861
 
{
9862
 
return f != $ac_func;
9863
 
  ;
9864
 
  return 0;
9865
 
}
9866
 
_ACEOF
9867
 
rm -f conftest.$ac_objext conftest$ac_exeext
9868
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9869
 
  (eval $ac_link) 2>conftest.er1
9870
 
  ac_status=$?
9871
 
  grep -v '^ *+' conftest.er1 >conftest.err
9872
 
  rm -f conftest.er1
9873
 
  cat conftest.err >&5
9874
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9875
 
  (exit $ac_status); } &&
9876
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9877
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9878
 
  (eval $ac_try) 2>&5
9879
 
  ac_status=$?
9880
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9881
 
  (exit $ac_status); }; } &&
9882
 
         { ac_try='test -s conftest$ac_exeext'
9883
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9884
 
  (eval $ac_try) 2>&5
9885
 
  ac_status=$?
9886
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9887
 
  (exit $ac_status); }; }; then
9888
 
  eval "$as_ac_var=yes"
9889
 
else
9890
 
  echo "$as_me: failed program was:" >&5
9891
 
sed 's/^/| /' conftest.$ac_ext >&5
9892
 
 
9893
 
eval "$as_ac_var=no"
9894
 
fi
9895
 
rm -f conftest.err conftest.$ac_objext \
9896
 
      conftest$ac_exeext conftest.$ac_ext
9897
 
fi
9898
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9899
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9900
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
7956
do :
 
7957
  ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
 
7958
if test "x$ac_cv_func_pstat_getdynamic" = x""yes; then :
9901
7959
  cat >>confdefs.h <<_ACEOF
9902
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
7960
#define HAVE_PSTAT_GETDYNAMIC 1
9903
7961
_ACEOF
9904
7962
 
9905
7963
fi
9907
7965
 
9908
7966
 
9909
7967
# Solaris has libkstat which does not require root.
9910
 
 
9911
 
echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
9912
 
echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
9913
 
if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
9914
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7968
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
 
7969
$as_echo_n "checking for kstat_open in -lkstat... " >&6; }
 
7970
if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
 
7971
  $as_echo_n "(cached) " >&6
9915
7972
else
9916
7973
  ac_check_lib_save_LIBS=$LIBS
9917
7974
LIBS="-lkstat  $LIBS"
9918
 
cat >conftest.$ac_ext <<_ACEOF
9919
 
/* confdefs.h.  */
9920
 
_ACEOF
9921
 
cat confdefs.h >>conftest.$ac_ext
9922
 
cat >>conftest.$ac_ext <<_ACEOF
 
7975
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9923
7976
/* end confdefs.h.  */
9924
7977
 
9925
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
7978
/* Override any GCC internal prototype to avoid an error.
 
7979
   Use char because int might match the return type of a GCC
 
7980
   builtin and then its argument prototype would still apply.  */
9926
7981
#ifdef __cplusplus
9927
7982
extern "C"
9928
7983
#endif
9929
 
/* We use char because int might match the return type of a gcc2
9930
 
   builtin and then its argument prototype would still apply.  */
9931
7984
char kstat_open ();
9932
7985
int
9933
7986
main ()
9934
7987
{
9935
 
kstat_open ();
 
7988
return kstat_open ();
9936
7989
  ;
9937
7990
  return 0;
9938
7991
}
9939
7992
_ACEOF
9940
 
rm -f conftest.$ac_objext conftest$ac_exeext
9941
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9942
 
  (eval $ac_link) 2>conftest.er1
9943
 
  ac_status=$?
9944
 
  grep -v '^ *+' conftest.er1 >conftest.err
9945
 
  rm -f conftest.er1
9946
 
  cat conftest.err >&5
9947
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9948
 
  (exit $ac_status); } &&
9949
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9950
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9951
 
  (eval $ac_try) 2>&5
9952
 
  ac_status=$?
9953
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9954
 
  (exit $ac_status); }; } &&
9955
 
         { ac_try='test -s conftest$ac_exeext'
9956
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9957
 
  (eval $ac_try) 2>&5
9958
 
  ac_status=$?
9959
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9960
 
  (exit $ac_status); }; }; then
 
7993
if ac_fn_c_try_link "$LINENO"; then :
9961
7994
  ac_cv_lib_kstat_kstat_open=yes
9962
7995
else
9963
 
  echo "$as_me: failed program was:" >&5
9964
 
sed 's/^/| /' conftest.$ac_ext >&5
9965
 
 
9966
 
ac_cv_lib_kstat_kstat_open=no
 
7996
  ac_cv_lib_kstat_kstat_open=no
9967
7997
fi
9968
 
rm -f conftest.err conftest.$ac_objext \
9969
 
      conftest$ac_exeext conftest.$ac_ext
 
7998
rm -f core conftest.err conftest.$ac_objext \
 
7999
    conftest$ac_exeext conftest.$ac_ext
9970
8000
LIBS=$ac_check_lib_save_LIBS
9971
8001
fi
9972
 
echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
9973
 
echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
9974
 
if test $ac_cv_lib_kstat_kstat_open = yes; then
 
8002
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
 
8003
$as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
 
8004
if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
9975
8005
  cat >>confdefs.h <<_ACEOF
9976
8006
#define HAVE_LIBKSTAT 1
9977
8007
_ACEOF
9987
8017
# to get the right answer into the cache.
9988
8018
# For kstat on solaris, we need libelf to force the definition of SVR4 below.
9989
8019
if test $ac_have_func = no; then
9990
 
  echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
9991
 
echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
9992
 
if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
9993
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8020
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
 
8021
$as_echo_n "checking for elf_begin in -lelf... " >&6; }
 
8022
if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
 
8023
  $as_echo_n "(cached) " >&6
9994
8024
else
9995
8025
  ac_check_lib_save_LIBS=$LIBS
9996
8026
LIBS="-lelf  $LIBS"
9997
 
cat >conftest.$ac_ext <<_ACEOF
9998
 
/* confdefs.h.  */
9999
 
_ACEOF
10000
 
cat confdefs.h >>conftest.$ac_ext
10001
 
cat >>conftest.$ac_ext <<_ACEOF
 
8027
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10002
8028
/* end confdefs.h.  */
10003
8029
 
10004
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
8030
/* Override any GCC internal prototype to avoid an error.
 
8031
   Use char because int might match the return type of a GCC
 
8032
   builtin and then its argument prototype would still apply.  */
10005
8033
#ifdef __cplusplus
10006
8034
extern "C"
10007
8035
#endif
10008
 
/* We use char because int might match the return type of a gcc2
10009
 
   builtin and then its argument prototype would still apply.  */
10010
8036
char elf_begin ();
10011
8037
int
10012
8038
main ()
10013
8039
{
10014
 
elf_begin ();
 
8040
return elf_begin ();
10015
8041
  ;
10016
8042
  return 0;
10017
8043
}
10018
8044
_ACEOF
10019
 
rm -f conftest.$ac_objext conftest$ac_exeext
10020
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10021
 
  (eval $ac_link) 2>conftest.er1
10022
 
  ac_status=$?
10023
 
  grep -v '^ *+' conftest.er1 >conftest.err
10024
 
  rm -f conftest.er1
10025
 
  cat conftest.err >&5
10026
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10027
 
  (exit $ac_status); } &&
10028
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10029
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10030
 
  (eval $ac_try) 2>&5
10031
 
  ac_status=$?
10032
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10033
 
  (exit $ac_status); }; } &&
10034
 
         { ac_try='test -s conftest$ac_exeext'
10035
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10036
 
  (eval $ac_try) 2>&5
10037
 
  ac_status=$?
10038
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10039
 
  (exit $ac_status); }; }; then
 
8045
if ac_fn_c_try_link "$LINENO"; then :
10040
8046
  ac_cv_lib_elf_elf_begin=yes
10041
8047
else
10042
 
  echo "$as_me: failed program was:" >&5
10043
 
sed 's/^/| /' conftest.$ac_ext >&5
10044
 
 
10045
 
ac_cv_lib_elf_elf_begin=no
 
8048
  ac_cv_lib_elf_elf_begin=no
10046
8049
fi
10047
 
rm -f conftest.err conftest.$ac_objext \
10048
 
      conftest$ac_exeext conftest.$ac_ext
 
8050
rm -f core conftest.err conftest.$ac_objext \
 
8051
    conftest$ac_exeext conftest.$ac_ext
10049
8052
LIBS=$ac_check_lib_save_LIBS
10050
8053
fi
10051
 
echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
10052
 
echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
10053
 
if test $ac_cv_lib_elf_elf_begin = yes; then
 
8054
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
 
8055
$as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
 
8056
if test "x$ac_cv_lib_elf_elf_begin" = x""yes; then :
10054
8057
  LIBS="-lelf $LIBS"
10055
8058
fi
10056
8059
 
10057
8060
fi
10058
8061
if test $ac_have_func = no; then
10059
 
  echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
10060
 
echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
10061
 
if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
10062
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8062
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
 
8063
$as_echo_n "checking for kvm_open in -lkvm... " >&6; }
 
8064
if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
 
8065
  $as_echo_n "(cached) " >&6
10063
8066
else
10064
8067
  ac_check_lib_save_LIBS=$LIBS
10065
8068
LIBS="-lkvm  $LIBS"
10066
 
cat >conftest.$ac_ext <<_ACEOF
10067
 
/* confdefs.h.  */
10068
 
_ACEOF
10069
 
cat confdefs.h >>conftest.$ac_ext
10070
 
cat >>conftest.$ac_ext <<_ACEOF
 
8069
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10071
8070
/* end confdefs.h.  */
10072
8071
 
10073
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
8072
/* Override any GCC internal prototype to avoid an error.
 
8073
   Use char because int might match the return type of a GCC
 
8074
   builtin and then its argument prototype would still apply.  */
10074
8075
#ifdef __cplusplus
10075
8076
extern "C"
10076
8077
#endif
10077
 
/* We use char because int might match the return type of a gcc2
10078
 
   builtin and then its argument prototype would still apply.  */
10079
8078
char kvm_open ();
10080
8079
int
10081
8080
main ()
10082
8081
{
10083
 
kvm_open ();
 
8082
return kvm_open ();
10084
8083
  ;
10085
8084
  return 0;
10086
8085
}
10087
8086
_ACEOF
10088
 
rm -f conftest.$ac_objext conftest$ac_exeext
10089
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10090
 
  (eval $ac_link) 2>conftest.er1
10091
 
  ac_status=$?
10092
 
  grep -v '^ *+' conftest.er1 >conftest.err
10093
 
  rm -f conftest.er1
10094
 
  cat conftest.err >&5
10095
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10096
 
  (exit $ac_status); } &&
10097
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10098
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10099
 
  (eval $ac_try) 2>&5
10100
 
  ac_status=$?
10101
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10102
 
  (exit $ac_status); }; } &&
10103
 
         { ac_try='test -s conftest$ac_exeext'
10104
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10105
 
  (eval $ac_try) 2>&5
10106
 
  ac_status=$?
10107
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10108
 
  (exit $ac_status); }; }; then
 
8087
if ac_fn_c_try_link "$LINENO"; then :
10109
8088
  ac_cv_lib_kvm_kvm_open=yes
10110
8089
else
10111
 
  echo "$as_me: failed program was:" >&5
10112
 
sed 's/^/| /' conftest.$ac_ext >&5
10113
 
 
10114
 
ac_cv_lib_kvm_kvm_open=no
 
8090
  ac_cv_lib_kvm_kvm_open=no
10115
8091
fi
10116
 
rm -f conftest.err conftest.$ac_objext \
10117
 
      conftest$ac_exeext conftest.$ac_ext
 
8092
rm -f core conftest.err conftest.$ac_objext \
 
8093
    conftest$ac_exeext conftest.$ac_ext
10118
8094
LIBS=$ac_check_lib_save_LIBS
10119
8095
fi
10120
 
echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
10121
 
echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
10122
 
if test $ac_cv_lib_kvm_kvm_open = yes; then
 
8096
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
 
8097
$as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
 
8098
if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then :
10123
8099
  LIBS="-lkvm $LIBS"
10124
8100
fi
10125
8101
 
10126
8102
  # Check for the 4.4BSD definition of getloadavg.
10127
 
  echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
10128
 
echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
10129
 
if test "${ac_cv_lib_util_getloadavg+set}" = set; then
10130
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8103
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
 
8104
$as_echo_n "checking for getloadavg in -lutil... " >&6; }
 
8105
if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
 
8106
  $as_echo_n "(cached) " >&6
10131
8107
else
10132
8108
  ac_check_lib_save_LIBS=$LIBS
10133
8109
LIBS="-lutil  $LIBS"
10134
 
cat >conftest.$ac_ext <<_ACEOF
10135
 
/* confdefs.h.  */
10136
 
_ACEOF
10137
 
cat confdefs.h >>conftest.$ac_ext
10138
 
cat >>conftest.$ac_ext <<_ACEOF
 
8110
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10139
8111
/* end confdefs.h.  */
10140
8112
 
10141
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
8113
/* Override any GCC internal prototype to avoid an error.
 
8114
   Use char because int might match the return type of a GCC
 
8115
   builtin and then its argument prototype would still apply.  */
10142
8116
#ifdef __cplusplus
10143
8117
extern "C"
10144
8118
#endif
10145
 
/* We use char because int might match the return type of a gcc2
10146
 
   builtin and then its argument prototype would still apply.  */
10147
8119
char getloadavg ();
10148
8120
int
10149
8121
main ()
10150
8122
{
10151
 
getloadavg ();
 
8123
return getloadavg ();
10152
8124
  ;
10153
8125
  return 0;
10154
8126
}
10155
8127
_ACEOF
10156
 
rm -f conftest.$ac_objext conftest$ac_exeext
10157
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10158
 
  (eval $ac_link) 2>conftest.er1
10159
 
  ac_status=$?
10160
 
  grep -v '^ *+' conftest.er1 >conftest.err
10161
 
  rm -f conftest.er1
10162
 
  cat conftest.err >&5
10163
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10164
 
  (exit $ac_status); } &&
10165
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10166
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10167
 
  (eval $ac_try) 2>&5
10168
 
  ac_status=$?
10169
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10170
 
  (exit $ac_status); }; } &&
10171
 
         { ac_try='test -s conftest$ac_exeext'
10172
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10173
 
  (eval $ac_try) 2>&5
10174
 
  ac_status=$?
10175
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10176
 
  (exit $ac_status); }; }; then
 
8128
if ac_fn_c_try_link "$LINENO"; then :
10177
8129
  ac_cv_lib_util_getloadavg=yes
10178
8130
else
10179
 
  echo "$as_me: failed program was:" >&5
10180
 
sed 's/^/| /' conftest.$ac_ext >&5
10181
 
 
10182
 
ac_cv_lib_util_getloadavg=no
 
8131
  ac_cv_lib_util_getloadavg=no
10183
8132
fi
10184
 
rm -f conftest.err conftest.$ac_objext \
10185
 
      conftest$ac_exeext conftest.$ac_ext
 
8133
rm -f core conftest.err conftest.$ac_objext \
 
8134
    conftest$ac_exeext conftest.$ac_ext
10186
8135
LIBS=$ac_check_lib_save_LIBS
10187
8136
fi
10188
 
echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
10189
 
echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
10190
 
if test $ac_cv_lib_util_getloadavg = yes; then
 
8137
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
 
8138
$as_echo "$ac_cv_lib_util_getloadavg" >&6; }
 
8139
if test "x$ac_cv_lib_util_getloadavg" = x""yes; then :
10191
8140
  LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
10192
8141
fi
10193
8142
 
10198
8147
  # Since it is not a standard part of AIX, it might be installed locally.
10199
8148
  ac_getloadavg_LIBS=$LIBS
10200
8149
  LIBS="-L/usr/local/lib $LIBS"
10201
 
  echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
10202
 
echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
10203
 
if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
10204
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8150
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
 
8151
$as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
 
8152
if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
 
8153
  $as_echo_n "(cached) " >&6
10205
8154
else
10206
8155
  ac_check_lib_save_LIBS=$LIBS
10207
8156
LIBS="-lgetloadavg  $LIBS"
10208
 
cat >conftest.$ac_ext <<_ACEOF
10209
 
/* confdefs.h.  */
10210
 
_ACEOF
10211
 
cat confdefs.h >>conftest.$ac_ext
10212
 
cat >>conftest.$ac_ext <<_ACEOF
 
8157
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10213
8158
/* end confdefs.h.  */
10214
8159
 
10215
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
8160
/* Override any GCC internal prototype to avoid an error.
 
8161
   Use char because int might match the return type of a GCC
 
8162
   builtin and then its argument prototype would still apply.  */
10216
8163
#ifdef __cplusplus
10217
8164
extern "C"
10218
8165
#endif
10219
 
/* We use char because int might match the return type of a gcc2
10220
 
   builtin and then its argument prototype would still apply.  */
10221
8166
char getloadavg ();
10222
8167
int
10223
8168
main ()
10224
8169
{
10225
 
getloadavg ();
 
8170
return getloadavg ();
10226
8171
  ;
10227
8172
  return 0;
10228
8173
}
10229
8174
_ACEOF
10230
 
rm -f conftest.$ac_objext conftest$ac_exeext
10231
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10232
 
  (eval $ac_link) 2>conftest.er1
10233
 
  ac_status=$?
10234
 
  grep -v '^ *+' conftest.er1 >conftest.err
10235
 
  rm -f conftest.er1
10236
 
  cat conftest.err >&5
10237
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10238
 
  (exit $ac_status); } &&
10239
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10240
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10241
 
  (eval $ac_try) 2>&5
10242
 
  ac_status=$?
10243
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10244
 
  (exit $ac_status); }; } &&
10245
 
         { ac_try='test -s conftest$ac_exeext'
10246
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10247
 
  (eval $ac_try) 2>&5
10248
 
  ac_status=$?
10249
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10250
 
  (exit $ac_status); }; }; then
 
8175
if ac_fn_c_try_link "$LINENO"; then :
10251
8176
  ac_cv_lib_getloadavg_getloadavg=yes
10252
8177
else
10253
 
  echo "$as_me: failed program was:" >&5
10254
 
sed 's/^/| /' conftest.$ac_ext >&5
10255
 
 
10256
 
ac_cv_lib_getloadavg_getloadavg=no
 
8178
  ac_cv_lib_getloadavg_getloadavg=no
10257
8179
fi
10258
 
rm -f conftest.err conftest.$ac_objext \
10259
 
      conftest$ac_exeext conftest.$ac_ext
 
8180
rm -f core conftest.err conftest.$ac_objext \
 
8181
    conftest$ac_exeext conftest.$ac_ext
10260
8182
LIBS=$ac_check_lib_save_LIBS
10261
8183
fi
10262
 
echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
10263
 
echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
10264
 
if test $ac_cv_lib_getloadavg_getloadavg = yes; then
 
8184
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
 
8185
$as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
 
8186
if test "x$ac_cv_lib_getloadavg_getloadavg" = x""yes; then :
10265
8187
  LIBS="-lgetloadavg $LIBS"
10266
8188
else
10267
8189
  LIBS=$ac_getloadavg_LIBS
10271
8193
 
10272
8194
# Make sure it is really in the library, if we think we found it,
10273
8195
# otherwise set up the replacement function.
10274
 
 
10275
8196
for ac_func in getloadavg
10276
 
do
10277
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10278
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
10279
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10280
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
10281
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
10282
 
else
10283
 
  cat >conftest.$ac_ext <<_ACEOF
10284
 
/* confdefs.h.  */
10285
 
_ACEOF
10286
 
cat confdefs.h >>conftest.$ac_ext
10287
 
cat >>conftest.$ac_ext <<_ACEOF
10288
 
/* end confdefs.h.  */
10289
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10290
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10291
 
#define $ac_func innocuous_$ac_func
10292
 
 
10293
 
/* System header to define __stub macros and hopefully few prototypes,
10294
 
    which can conflict with char $ac_func (); below.
10295
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10296
 
    <limits.h> exists even on freestanding compilers.  */
10297
 
 
10298
 
#ifdef __STDC__
10299
 
# include <limits.h>
10300
 
#else
10301
 
# include <assert.h>
10302
 
#endif
10303
 
 
10304
 
#undef $ac_func
10305
 
 
10306
 
/* Override any gcc2 internal prototype to avoid an error.  */
10307
 
#ifdef __cplusplus
10308
 
extern "C"
10309
 
{
10310
 
#endif
10311
 
/* We use char because int might match the return type of a gcc2
10312
 
   builtin and then its argument prototype would still apply.  */
10313
 
char $ac_func ();
10314
 
/* The GNU C library defines this for functions which it implements
10315
 
    to always fail with ENOSYS.  Some functions are actually named
10316
 
    something starting with __ and the normal name is an alias.  */
10317
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10318
 
choke me
10319
 
#else
10320
 
char (*f) () = $ac_func;
10321
 
#endif
10322
 
#ifdef __cplusplus
10323
 
}
10324
 
#endif
10325
 
 
10326
 
int
10327
 
main ()
10328
 
{
10329
 
return f != $ac_func;
10330
 
  ;
10331
 
  return 0;
10332
 
}
10333
 
_ACEOF
10334
 
rm -f conftest.$ac_objext conftest$ac_exeext
10335
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10336
 
  (eval $ac_link) 2>conftest.er1
10337
 
  ac_status=$?
10338
 
  grep -v '^ *+' conftest.er1 >conftest.err
10339
 
  rm -f conftest.er1
10340
 
  cat conftest.err >&5
10341
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10342
 
  (exit $ac_status); } &&
10343
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10344
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10345
 
  (eval $ac_try) 2>&5
10346
 
  ac_status=$?
10347
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10348
 
  (exit $ac_status); }; } &&
10349
 
         { ac_try='test -s conftest$ac_exeext'
10350
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10351
 
  (eval $ac_try) 2>&5
10352
 
  ac_status=$?
10353
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10354
 
  (exit $ac_status); }; }; then
10355
 
  eval "$as_ac_var=yes"
10356
 
else
10357
 
  echo "$as_me: failed program was:" >&5
10358
 
sed 's/^/| /' conftest.$ac_ext >&5
10359
 
 
10360
 
eval "$as_ac_var=no"
10361
 
fi
10362
 
rm -f conftest.err conftest.$ac_objext \
10363
 
      conftest$ac_exeext conftest.$ac_ext
10364
 
fi
10365
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10366
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10367
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
8197
do :
 
8198
  ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
 
8199
if test "x$ac_cv_func_getloadavg" = x""yes; then :
10368
8200
  cat >>confdefs.h <<_ACEOF
10369
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
8201
#define HAVE_GETLOADAVG 1
10370
8202
_ACEOF
10371
8203
 
10372
8204
else
10373
 
  case $LIBOBJS in
10374
 
    "getloadavg.$ac_objext"   | \
10375
 
  *" getloadavg.$ac_objext"   | \
10376
 
    "getloadavg.$ac_objext "* | \
 
8205
  case " $LIBOBJS " in
10377
8206
  *" getloadavg.$ac_objext "* ) ;;
10378
 
  *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext" ;;
 
8207
  *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
 
8208
 ;;
10379
8209
esac
10380
8210
 
10381
8211
 
10382
 
cat >>confdefs.h <<\_ACEOF
10383
 
#define C_GETLOADAVG 1
10384
 
_ACEOF
 
8212
$as_echo "#define C_GETLOADAVG 1" >>confdefs.h
10385
8213
 
10386
8214
# Figure out what our getloadavg.c needs.
10387
8215
ac_have_func=no
10388
 
if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
10389
 
  echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
10390
 
echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
10391
 
if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
10392
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
10393
 
fi
10394
 
echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
10395
 
echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
10396
 
else
10397
 
  # Is the header compilable?
10398
 
echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
10399
 
echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
10400
 
cat >conftest.$ac_ext <<_ACEOF
10401
 
/* confdefs.h.  */
10402
 
_ACEOF
10403
 
cat confdefs.h >>conftest.$ac_ext
10404
 
cat >>conftest.$ac_ext <<_ACEOF
10405
 
/* end confdefs.h.  */
10406
 
$ac_includes_default
10407
 
#include <sys/dg_sys_info.h>
10408
 
_ACEOF
10409
 
rm -f conftest.$ac_objext
10410
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10411
 
  (eval $ac_compile) 2>conftest.er1
10412
 
  ac_status=$?
10413
 
  grep -v '^ *+' conftest.er1 >conftest.err
10414
 
  rm -f conftest.er1
10415
 
  cat conftest.err >&5
10416
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10417
 
  (exit $ac_status); } &&
10418
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10419
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10420
 
  (eval $ac_try) 2>&5
10421
 
  ac_status=$?
10422
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10423
 
  (exit $ac_status); }; } &&
10424
 
         { ac_try='test -s conftest.$ac_objext'
10425
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10426
 
  (eval $ac_try) 2>&5
10427
 
  ac_status=$?
10428
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10429
 
  (exit $ac_status); }; }; then
10430
 
  ac_header_compiler=yes
10431
 
else
10432
 
  echo "$as_me: failed program was:" >&5
10433
 
sed 's/^/| /' conftest.$ac_ext >&5
10434
 
 
10435
 
ac_header_compiler=no
10436
 
fi
10437
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10438
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10439
 
echo "${ECHO_T}$ac_header_compiler" >&6
10440
 
 
10441
 
# Is the header present?
10442
 
echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
10443
 
echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
10444
 
cat >conftest.$ac_ext <<_ACEOF
10445
 
/* confdefs.h.  */
10446
 
_ACEOF
10447
 
cat confdefs.h >>conftest.$ac_ext
10448
 
cat >>conftest.$ac_ext <<_ACEOF
10449
 
/* end confdefs.h.  */
10450
 
#include <sys/dg_sys_info.h>
10451
 
_ACEOF
10452
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10453
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10454
 
  ac_status=$?
10455
 
  grep -v '^ *+' conftest.er1 >conftest.err
10456
 
  rm -f conftest.er1
10457
 
  cat conftest.err >&5
10458
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10459
 
  (exit $ac_status); } >/dev/null; then
10460
 
  if test -s conftest.err; then
10461
 
    ac_cpp_err=$ac_c_preproc_warn_flag
10462
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10463
 
  else
10464
 
    ac_cpp_err=
10465
 
  fi
10466
 
else
10467
 
  ac_cpp_err=yes
10468
 
fi
10469
 
if test -z "$ac_cpp_err"; then
10470
 
  ac_header_preproc=yes
10471
 
else
10472
 
  echo "$as_me: failed program was:" >&5
10473
 
sed 's/^/| /' conftest.$ac_ext >&5
10474
 
 
10475
 
  ac_header_preproc=no
10476
 
fi
10477
 
rm -f conftest.err conftest.$ac_ext
10478
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10479
 
echo "${ECHO_T}$ac_header_preproc" >&6
10480
 
 
10481
 
# So?  What about this header?
10482
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10483
 
  yes:no: )
10484
 
    { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
10485
 
echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10486
 
    { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
10487
 
echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
10488
 
    ac_header_preproc=yes
10489
 
    ;;
10490
 
  no:yes:* )
10491
 
    { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
10492
 
echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
10493
 
    { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h:     check for missing prerequisite headers?" >&5
10494
 
echo "$as_me: WARNING: sys/dg_sys_info.h:     check for missing prerequisite headers?" >&2;}
10495
 
    { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
10496
 
echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
10497
 
    { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h:     section \"Present But Cannot Be Compiled\"" >&5
10498
 
echo "$as_me: WARNING: sys/dg_sys_info.h:     section \"Present But Cannot Be Compiled\"" >&2;}
10499
 
    { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
10500
 
echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
10501
 
    { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
10502
 
echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
10503
 
    (
10504
 
      cat <<\_ASBOX
10505
 
## ------------------------------- ##
10506
 
## Report this to bug-make@gnu.org ##
10507
 
## ------------------------------- ##
10508
 
_ASBOX
10509
 
    ) |
10510
 
      sed "s/^/$as_me: WARNING:     /" >&2
10511
 
    ;;
10512
 
esac
10513
 
echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
10514
 
echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
10515
 
if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
10516
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
10517
 
else
10518
 
  ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
10519
 
fi
10520
 
echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
10521
 
echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
10522
 
 
10523
 
fi
10524
 
if test $ac_cv_header_sys_dg_sys_info_h = yes; then
 
8216
ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
 
8217
if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then :
10525
8218
  ac_have_func=yes
10526
8219
 
10527
 
cat >>confdefs.h <<\_ACEOF
10528
 
#define DGUX 1
10529
 
_ACEOF
10530
 
 
10531
 
 
10532
 
echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
10533
 
echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
10534
 
if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
10535
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8220
$as_echo "#define DGUX 1" >>confdefs.h
 
8221
 
 
8222
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
 
8223
$as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
 
8224
if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
 
8225
  $as_echo_n "(cached) " >&6
10536
8226
else
10537
8227
  ac_check_lib_save_LIBS=$LIBS
10538
8228
LIBS="-ldgc  $LIBS"
10539
 
cat >conftest.$ac_ext <<_ACEOF
10540
 
/* confdefs.h.  */
10541
 
_ACEOF
10542
 
cat confdefs.h >>conftest.$ac_ext
10543
 
cat >>conftest.$ac_ext <<_ACEOF
 
8229
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10544
8230
/* end confdefs.h.  */
10545
8231
 
10546
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
8232
/* Override any GCC internal prototype to avoid an error.
 
8233
   Use char because int might match the return type of a GCC
 
8234
   builtin and then its argument prototype would still apply.  */
10547
8235
#ifdef __cplusplus
10548
8236
extern "C"
10549
8237
#endif
10550
 
/* We use char because int might match the return type of a gcc2
10551
 
   builtin and then its argument prototype would still apply.  */
10552
8238
char dg_sys_info ();
10553
8239
int
10554
8240
main ()
10555
8241
{
10556
 
dg_sys_info ();
 
8242
return dg_sys_info ();
10557
8243
  ;
10558
8244
  return 0;
10559
8245
}
10560
8246
_ACEOF
10561
 
rm -f conftest.$ac_objext conftest$ac_exeext
10562
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10563
 
  (eval $ac_link) 2>conftest.er1
10564
 
  ac_status=$?
10565
 
  grep -v '^ *+' conftest.er1 >conftest.err
10566
 
  rm -f conftest.er1
10567
 
  cat conftest.err >&5
10568
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10569
 
  (exit $ac_status); } &&
10570
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10571
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10572
 
  (eval $ac_try) 2>&5
10573
 
  ac_status=$?
10574
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10575
 
  (exit $ac_status); }; } &&
10576
 
         { ac_try='test -s conftest$ac_exeext'
10577
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10578
 
  (eval $ac_try) 2>&5
10579
 
  ac_status=$?
10580
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10581
 
  (exit $ac_status); }; }; then
 
8247
if ac_fn_c_try_link "$LINENO"; then :
10582
8248
  ac_cv_lib_dgc_dg_sys_info=yes
10583
8249
else
10584
 
  echo "$as_me: failed program was:" >&5
10585
 
sed 's/^/| /' conftest.$ac_ext >&5
10586
 
 
10587
 
ac_cv_lib_dgc_dg_sys_info=no
 
8250
  ac_cv_lib_dgc_dg_sys_info=no
10588
8251
fi
10589
 
rm -f conftest.err conftest.$ac_objext \
10590
 
      conftest$ac_exeext conftest.$ac_ext
 
8252
rm -f core conftest.err conftest.$ac_objext \
 
8253
    conftest$ac_exeext conftest.$ac_ext
10591
8254
LIBS=$ac_check_lib_save_LIBS
10592
8255
fi
10593
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
10594
 
echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
10595
 
if test $ac_cv_lib_dgc_dg_sys_info = yes; then
 
8256
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
 
8257
$as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
 
8258
if test "x$ac_cv_lib_dgc_dg_sys_info" = x""yes; then :
10596
8259
  cat >>confdefs.h <<_ACEOF
10597
8260
#define HAVE_LIBDGC 1
10598
8261
_ACEOF
10605
8268
 
10606
8269
 
10607
8270
 
10608
 
if test "${ac_cv_header_locale_h+set}" = set; then
10609
 
  echo "$as_me:$LINENO: checking for locale.h" >&5
10610
 
echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
10611
 
if test "${ac_cv_header_locale_h+set}" = set; then
10612
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
10613
 
fi
10614
 
echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
10615
 
echo "${ECHO_T}$ac_cv_header_locale_h" >&6
10616
 
else
10617
 
  # Is the header compilable?
10618
 
echo "$as_me:$LINENO: checking locale.h usability" >&5
10619
 
echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
10620
 
cat >conftest.$ac_ext <<_ACEOF
10621
 
/* confdefs.h.  */
10622
 
_ACEOF
10623
 
cat confdefs.h >>conftest.$ac_ext
10624
 
cat >>conftest.$ac_ext <<_ACEOF
10625
 
/* end confdefs.h.  */
10626
 
$ac_includes_default
10627
 
#include <locale.h>
10628
 
_ACEOF
10629
 
rm -f conftest.$ac_objext
10630
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10631
 
  (eval $ac_compile) 2>conftest.er1
10632
 
  ac_status=$?
10633
 
  grep -v '^ *+' conftest.er1 >conftest.err
10634
 
  rm -f conftest.er1
10635
 
  cat conftest.err >&5
10636
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10637
 
  (exit $ac_status); } &&
10638
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10639
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10640
 
  (eval $ac_try) 2>&5
10641
 
  ac_status=$?
10642
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10643
 
  (exit $ac_status); }; } &&
10644
 
         { ac_try='test -s conftest.$ac_objext'
10645
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10646
 
  (eval $ac_try) 2>&5
10647
 
  ac_status=$?
10648
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10649
 
  (exit $ac_status); }; }; then
10650
 
  ac_header_compiler=yes
10651
 
else
10652
 
  echo "$as_me: failed program was:" >&5
10653
 
sed 's/^/| /' conftest.$ac_ext >&5
10654
 
 
10655
 
ac_header_compiler=no
10656
 
fi
10657
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10658
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10659
 
echo "${ECHO_T}$ac_header_compiler" >&6
10660
 
 
10661
 
# Is the header present?
10662
 
echo "$as_me:$LINENO: checking locale.h presence" >&5
10663
 
echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
10664
 
cat >conftest.$ac_ext <<_ACEOF
10665
 
/* confdefs.h.  */
10666
 
_ACEOF
10667
 
cat confdefs.h >>conftest.$ac_ext
10668
 
cat >>conftest.$ac_ext <<_ACEOF
10669
 
/* end confdefs.h.  */
10670
 
#include <locale.h>
10671
 
_ACEOF
10672
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10673
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10674
 
  ac_status=$?
10675
 
  grep -v '^ *+' conftest.er1 >conftest.err
10676
 
  rm -f conftest.er1
10677
 
  cat conftest.err >&5
10678
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10679
 
  (exit $ac_status); } >/dev/null; then
10680
 
  if test -s conftest.err; then
10681
 
    ac_cpp_err=$ac_c_preproc_warn_flag
10682
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10683
 
  else
10684
 
    ac_cpp_err=
10685
 
  fi
10686
 
else
10687
 
  ac_cpp_err=yes
10688
 
fi
10689
 
if test -z "$ac_cpp_err"; then
10690
 
  ac_header_preproc=yes
10691
 
else
10692
 
  echo "$as_me: failed program was:" >&5
10693
 
sed 's/^/| /' conftest.$ac_ext >&5
10694
 
 
10695
 
  ac_header_preproc=no
10696
 
fi
10697
 
rm -f conftest.err conftest.$ac_ext
10698
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10699
 
echo "${ECHO_T}$ac_header_preproc" >&6
10700
 
 
10701
 
# So?  What about this header?
10702
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10703
 
  yes:no: )
10704
 
    { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
10705
 
echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10706
 
    { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
10707
 
echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
10708
 
    ac_header_preproc=yes
10709
 
    ;;
10710
 
  no:yes:* )
10711
 
    { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
10712
 
echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
10713
 
    { echo "$as_me:$LINENO: WARNING: locale.h:     check for missing prerequisite headers?" >&5
10714
 
echo "$as_me: WARNING: locale.h:     check for missing prerequisite headers?" >&2;}
10715
 
    { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
10716
 
echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
10717
 
    { echo "$as_me:$LINENO: WARNING: locale.h:     section \"Present But Cannot Be Compiled\"" >&5
10718
 
echo "$as_me: WARNING: locale.h:     section \"Present But Cannot Be Compiled\"" >&2;}
10719
 
    { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
10720
 
echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
10721
 
    { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
10722
 
echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
10723
 
    (
10724
 
      cat <<\_ASBOX
10725
 
## ------------------------------- ##
10726
 
## Report this to bug-make@gnu.org ##
10727
 
## ------------------------------- ##
10728
 
_ASBOX
10729
 
    ) |
10730
 
      sed "s/^/$as_me: WARNING:     /" >&2
10731
 
    ;;
10732
 
esac
10733
 
echo "$as_me:$LINENO: checking for locale.h" >&5
10734
 
echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
10735
 
if test "${ac_cv_header_locale_h+set}" = set; then
10736
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
10737
 
else
10738
 
  ac_cv_header_locale_h=$ac_header_preproc
10739
 
fi
10740
 
echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
10741
 
echo "${ECHO_T}$ac_cv_header_locale_h" >&6
10742
 
 
10743
 
fi
10744
 
 
 
8271
ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
 
8272
if test "x$ac_cv_header_locale_h" = x""yes; then :
 
8273
 
 
8274
fi
10745
8275
 
10746
8276
 
10747
8277
for ac_func in setlocale
10748
 
do
10749
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10750
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
10751
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10752
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
10753
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
10754
 
else
10755
 
  cat >conftest.$ac_ext <<_ACEOF
10756
 
/* confdefs.h.  */
10757
 
_ACEOF
10758
 
cat confdefs.h >>conftest.$ac_ext
10759
 
cat >>conftest.$ac_ext <<_ACEOF
10760
 
/* end confdefs.h.  */
10761
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10762
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10763
 
#define $ac_func innocuous_$ac_func
10764
 
 
10765
 
/* System header to define __stub macros and hopefully few prototypes,
10766
 
    which can conflict with char $ac_func (); below.
10767
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10768
 
    <limits.h> exists even on freestanding compilers.  */
10769
 
 
10770
 
#ifdef __STDC__
10771
 
# include <limits.h>
10772
 
#else
10773
 
# include <assert.h>
10774
 
#endif
10775
 
 
10776
 
#undef $ac_func
10777
 
 
10778
 
/* Override any gcc2 internal prototype to avoid an error.  */
10779
 
#ifdef __cplusplus
10780
 
extern "C"
10781
 
{
10782
 
#endif
10783
 
/* We use char because int might match the return type of a gcc2
10784
 
   builtin and then its argument prototype would still apply.  */
10785
 
char $ac_func ();
10786
 
/* The GNU C library defines this for functions which it implements
10787
 
    to always fail with ENOSYS.  Some functions are actually named
10788
 
    something starting with __ and the normal name is an alias.  */
10789
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10790
 
choke me
10791
 
#else
10792
 
char (*f) () = $ac_func;
10793
 
#endif
10794
 
#ifdef __cplusplus
10795
 
}
10796
 
#endif
10797
 
 
10798
 
int
10799
 
main ()
10800
 
{
10801
 
return f != $ac_func;
10802
 
  ;
10803
 
  return 0;
10804
 
}
10805
 
_ACEOF
10806
 
rm -f conftest.$ac_objext conftest$ac_exeext
10807
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10808
 
  (eval $ac_link) 2>conftest.er1
10809
 
  ac_status=$?
10810
 
  grep -v '^ *+' conftest.er1 >conftest.err
10811
 
  rm -f conftest.er1
10812
 
  cat conftest.err >&5
10813
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10814
 
  (exit $ac_status); } &&
10815
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10816
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10817
 
  (eval $ac_try) 2>&5
10818
 
  ac_status=$?
10819
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10820
 
  (exit $ac_status); }; } &&
10821
 
         { ac_try='test -s conftest$ac_exeext'
10822
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10823
 
  (eval $ac_try) 2>&5
10824
 
  ac_status=$?
10825
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10826
 
  (exit $ac_status); }; }; then
10827
 
  eval "$as_ac_var=yes"
10828
 
else
10829
 
  echo "$as_me: failed program was:" >&5
10830
 
sed 's/^/| /' conftest.$ac_ext >&5
10831
 
 
10832
 
eval "$as_ac_var=no"
10833
 
fi
10834
 
rm -f conftest.err conftest.$ac_objext \
10835
 
      conftest$ac_exeext conftest.$ac_ext
10836
 
fi
10837
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10838
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10839
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
8278
do :
 
8279
  ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
 
8280
if test "x$ac_cv_func_setlocale" = x""yes; then :
10840
8281
  cat >>confdefs.h <<_ACEOF
10841
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
8282
#define HAVE_SETLOCALE 1
10842
8283
_ACEOF
10843
8284
 
10844
8285
fi
10851
8292
if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
10852
8293
  ac_have_func=yes
10853
8294
 
10854
 
cat >>confdefs.h <<\_ACEOF
10855
 
#define SVR4 1
10856
 
_ACEOF
 
8295
$as_echo "#define SVR4 1" >>confdefs.h
10857
8296
 
10858
8297
fi
10859
8298
 
10860
8299
if test $ac_have_func = no; then
10861
 
  if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
10862
 
  echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
10863
 
echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
10864
 
if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
10865
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
10866
 
fi
10867
 
echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
10868
 
echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
10869
 
else
10870
 
  # Is the header compilable?
10871
 
echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
10872
 
echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
10873
 
cat >conftest.$ac_ext <<_ACEOF
10874
 
/* confdefs.h.  */
10875
 
_ACEOF
10876
 
cat confdefs.h >>conftest.$ac_ext
10877
 
cat >>conftest.$ac_ext <<_ACEOF
10878
 
/* end confdefs.h.  */
10879
 
$ac_includes_default
10880
 
#include <inq_stats/cpustats.h>
10881
 
_ACEOF
10882
 
rm -f conftest.$ac_objext
10883
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10884
 
  (eval $ac_compile) 2>conftest.er1
10885
 
  ac_status=$?
10886
 
  grep -v '^ *+' conftest.er1 >conftest.err
10887
 
  rm -f conftest.er1
10888
 
  cat conftest.err >&5
10889
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10890
 
  (exit $ac_status); } &&
10891
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10892
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10893
 
  (eval $ac_try) 2>&5
10894
 
  ac_status=$?
10895
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10896
 
  (exit $ac_status); }; } &&
10897
 
         { ac_try='test -s conftest.$ac_objext'
10898
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10899
 
  (eval $ac_try) 2>&5
10900
 
  ac_status=$?
10901
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10902
 
  (exit $ac_status); }; }; then
10903
 
  ac_header_compiler=yes
10904
 
else
10905
 
  echo "$as_me: failed program was:" >&5
10906
 
sed 's/^/| /' conftest.$ac_ext >&5
10907
 
 
10908
 
ac_header_compiler=no
10909
 
fi
10910
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10911
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10912
 
echo "${ECHO_T}$ac_header_compiler" >&6
10913
 
 
10914
 
# Is the header present?
10915
 
echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
10916
 
echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
10917
 
cat >conftest.$ac_ext <<_ACEOF
10918
 
/* confdefs.h.  */
10919
 
_ACEOF
10920
 
cat confdefs.h >>conftest.$ac_ext
10921
 
cat >>conftest.$ac_ext <<_ACEOF
10922
 
/* end confdefs.h.  */
10923
 
#include <inq_stats/cpustats.h>
10924
 
_ACEOF
10925
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10926
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10927
 
  ac_status=$?
10928
 
  grep -v '^ *+' conftest.er1 >conftest.err
10929
 
  rm -f conftest.er1
10930
 
  cat conftest.err >&5
10931
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10932
 
  (exit $ac_status); } >/dev/null; then
10933
 
  if test -s conftest.err; then
10934
 
    ac_cpp_err=$ac_c_preproc_warn_flag
10935
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10936
 
  else
10937
 
    ac_cpp_err=
10938
 
  fi
10939
 
else
10940
 
  ac_cpp_err=yes
10941
 
fi
10942
 
if test -z "$ac_cpp_err"; then
10943
 
  ac_header_preproc=yes
10944
 
else
10945
 
  echo "$as_me: failed program was:" >&5
10946
 
sed 's/^/| /' conftest.$ac_ext >&5
10947
 
 
10948
 
  ac_header_preproc=no
10949
 
fi
10950
 
rm -f conftest.err conftest.$ac_ext
10951
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10952
 
echo "${ECHO_T}$ac_header_preproc" >&6
10953
 
 
10954
 
# So?  What about this header?
10955
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10956
 
  yes:no: )
10957
 
    { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
10958
 
echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10959
 
    { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
10960
 
echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
10961
 
    ac_header_preproc=yes
10962
 
    ;;
10963
 
  no:yes:* )
10964
 
    { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
10965
 
echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
10966
 
    { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h:     check for missing prerequisite headers?" >&5
10967
 
echo "$as_me: WARNING: inq_stats/cpustats.h:     check for missing prerequisite headers?" >&2;}
10968
 
    { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
10969
 
echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
10970
 
    { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h:     section \"Present But Cannot Be Compiled\"" >&5
10971
 
echo "$as_me: WARNING: inq_stats/cpustats.h:     section \"Present But Cannot Be Compiled\"" >&2;}
10972
 
    { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
10973
 
echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
10974
 
    { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
10975
 
echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
10976
 
    (
10977
 
      cat <<\_ASBOX
10978
 
## ------------------------------- ##
10979
 
## Report this to bug-make@gnu.org ##
10980
 
## ------------------------------- ##
10981
 
_ASBOX
10982
 
    ) |
10983
 
      sed "s/^/$as_me: WARNING:     /" >&2
10984
 
    ;;
10985
 
esac
10986
 
echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
10987
 
echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
10988
 
if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
10989
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
10990
 
else
10991
 
  ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
10992
 
fi
10993
 
echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
10994
 
echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
10995
 
 
10996
 
fi
10997
 
if test $ac_cv_header_inq_stats_cpustats_h = yes; then
 
8300
  ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
 
8301
if test "x$ac_cv_header_inq_stats_cpustats_h" = x""yes; then :
10998
8302
  ac_have_func=yes
10999
8303
 
11000
 
cat >>confdefs.h <<\_ACEOF
11001
 
#define UMAX 1
11002
 
_ACEOF
11003
 
 
11004
 
 
11005
 
cat >>confdefs.h <<\_ACEOF
11006
 
#define UMAX4_3 1
11007
 
_ACEOF
11008
 
 
11009
 
fi
11010
 
 
11011
 
 
11012
 
fi
11013
 
 
11014
 
if test $ac_have_func = no; then
11015
 
  if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
11016
 
  echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
11017
 
echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
11018
 
if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
11019
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11020
 
fi
11021
 
echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
11022
 
echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
11023
 
else
11024
 
  # Is the header compilable?
11025
 
echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
11026
 
echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
11027
 
cat >conftest.$ac_ext <<_ACEOF
11028
 
/* confdefs.h.  */
11029
 
_ACEOF
11030
 
cat confdefs.h >>conftest.$ac_ext
11031
 
cat >>conftest.$ac_ext <<_ACEOF
11032
 
/* end confdefs.h.  */
11033
 
$ac_includes_default
11034
 
#include <sys/cpustats.h>
11035
 
_ACEOF
11036
 
rm -f conftest.$ac_objext
11037
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11038
 
  (eval $ac_compile) 2>conftest.er1
11039
 
  ac_status=$?
11040
 
  grep -v '^ *+' conftest.er1 >conftest.err
11041
 
  rm -f conftest.er1
11042
 
  cat conftest.err >&5
11043
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11044
 
  (exit $ac_status); } &&
11045
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11046
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11047
 
  (eval $ac_try) 2>&5
11048
 
  ac_status=$?
11049
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11050
 
  (exit $ac_status); }; } &&
11051
 
         { ac_try='test -s conftest.$ac_objext'
11052
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11053
 
  (eval $ac_try) 2>&5
11054
 
  ac_status=$?
11055
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11056
 
  (exit $ac_status); }; }; then
11057
 
  ac_header_compiler=yes
11058
 
else
11059
 
  echo "$as_me: failed program was:" >&5
11060
 
sed 's/^/| /' conftest.$ac_ext >&5
11061
 
 
11062
 
ac_header_compiler=no
11063
 
fi
11064
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11065
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11066
 
echo "${ECHO_T}$ac_header_compiler" >&6
11067
 
 
11068
 
# Is the header present?
11069
 
echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
11070
 
echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
11071
 
cat >conftest.$ac_ext <<_ACEOF
11072
 
/* confdefs.h.  */
11073
 
_ACEOF
11074
 
cat confdefs.h >>conftest.$ac_ext
11075
 
cat >>conftest.$ac_ext <<_ACEOF
11076
 
/* end confdefs.h.  */
11077
 
#include <sys/cpustats.h>
11078
 
_ACEOF
11079
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11080
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11081
 
  ac_status=$?
11082
 
  grep -v '^ *+' conftest.er1 >conftest.err
11083
 
  rm -f conftest.er1
11084
 
  cat conftest.err >&5
11085
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11086
 
  (exit $ac_status); } >/dev/null; then
11087
 
  if test -s conftest.err; then
11088
 
    ac_cpp_err=$ac_c_preproc_warn_flag
11089
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11090
 
  else
11091
 
    ac_cpp_err=
11092
 
  fi
11093
 
else
11094
 
  ac_cpp_err=yes
11095
 
fi
11096
 
if test -z "$ac_cpp_err"; then
11097
 
  ac_header_preproc=yes
11098
 
else
11099
 
  echo "$as_me: failed program was:" >&5
11100
 
sed 's/^/| /' conftest.$ac_ext >&5
11101
 
 
11102
 
  ac_header_preproc=no
11103
 
fi
11104
 
rm -f conftest.err conftest.$ac_ext
11105
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11106
 
echo "${ECHO_T}$ac_header_preproc" >&6
11107
 
 
11108
 
# So?  What about this header?
11109
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11110
 
  yes:no: )
11111
 
    { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
11112
 
echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11113
 
    { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
11114
 
echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
11115
 
    ac_header_preproc=yes
11116
 
    ;;
11117
 
  no:yes:* )
11118
 
    { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
11119
 
echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
11120
 
    { echo "$as_me:$LINENO: WARNING: sys/cpustats.h:     check for missing prerequisite headers?" >&5
11121
 
echo "$as_me: WARNING: sys/cpustats.h:     check for missing prerequisite headers?" >&2;}
11122
 
    { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
11123
 
echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
11124
 
    { echo "$as_me:$LINENO: WARNING: sys/cpustats.h:     section \"Present But Cannot Be Compiled\"" >&5
11125
 
echo "$as_me: WARNING: sys/cpustats.h:     section \"Present But Cannot Be Compiled\"" >&2;}
11126
 
    { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
11127
 
echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
11128
 
    { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
11129
 
echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
11130
 
    (
11131
 
      cat <<\_ASBOX
11132
 
## ------------------------------- ##
11133
 
## Report this to bug-make@gnu.org ##
11134
 
## ------------------------------- ##
11135
 
_ASBOX
11136
 
    ) |
11137
 
      sed "s/^/$as_me: WARNING:     /" >&2
11138
 
    ;;
11139
 
esac
11140
 
echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
11141
 
echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
11142
 
if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
11143
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11144
 
else
11145
 
  ac_cv_header_sys_cpustats_h=$ac_header_preproc
11146
 
fi
11147
 
echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
11148
 
echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
11149
 
 
11150
 
fi
11151
 
if test $ac_cv_header_sys_cpustats_h = yes; then
11152
 
  ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
11153
 
#define UMAX 1
11154
 
_ACEOF
11155
 
 
11156
 
fi
11157
 
 
11158
 
 
11159
 
fi
11160
 
 
11161
 
if test $ac_have_func = no; then
11162
 
 
11163
 
for ac_header in mach/mach.h
11164
 
do
11165
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11166
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
11167
 
  echo "$as_me:$LINENO: checking for $ac_header" >&5
11168
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11169
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
11170
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11171
 
fi
11172
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11173
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11174
 
else
11175
 
  # Is the header compilable?
11176
 
echo "$as_me:$LINENO: checking $ac_header usability" >&5
11177
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11178
 
cat >conftest.$ac_ext <<_ACEOF
11179
 
/* confdefs.h.  */
11180
 
_ACEOF
11181
 
cat confdefs.h >>conftest.$ac_ext
11182
 
cat >>conftest.$ac_ext <<_ACEOF
11183
 
/* end confdefs.h.  */
11184
 
$ac_includes_default
11185
 
#include <$ac_header>
11186
 
_ACEOF
11187
 
rm -f conftest.$ac_objext
11188
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11189
 
  (eval $ac_compile) 2>conftest.er1
11190
 
  ac_status=$?
11191
 
  grep -v '^ *+' conftest.er1 >conftest.err
11192
 
  rm -f conftest.er1
11193
 
  cat conftest.err >&5
11194
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11195
 
  (exit $ac_status); } &&
11196
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11197
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11198
 
  (eval $ac_try) 2>&5
11199
 
  ac_status=$?
11200
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11201
 
  (exit $ac_status); }; } &&
11202
 
         { ac_try='test -s conftest.$ac_objext'
11203
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11204
 
  (eval $ac_try) 2>&5
11205
 
  ac_status=$?
11206
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11207
 
  (exit $ac_status); }; }; then
11208
 
  ac_header_compiler=yes
11209
 
else
11210
 
  echo "$as_me: failed program was:" >&5
11211
 
sed 's/^/| /' conftest.$ac_ext >&5
11212
 
 
11213
 
ac_header_compiler=no
11214
 
fi
11215
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11216
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11217
 
echo "${ECHO_T}$ac_header_compiler" >&6
11218
 
 
11219
 
# Is the header present?
11220
 
echo "$as_me:$LINENO: checking $ac_header presence" >&5
11221
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11222
 
cat >conftest.$ac_ext <<_ACEOF
11223
 
/* confdefs.h.  */
11224
 
_ACEOF
11225
 
cat confdefs.h >>conftest.$ac_ext
11226
 
cat >>conftest.$ac_ext <<_ACEOF
11227
 
/* end confdefs.h.  */
11228
 
#include <$ac_header>
11229
 
_ACEOF
11230
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11231
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11232
 
  ac_status=$?
11233
 
  grep -v '^ *+' conftest.er1 >conftest.err
11234
 
  rm -f conftest.er1
11235
 
  cat conftest.err >&5
11236
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11237
 
  (exit $ac_status); } >/dev/null; then
11238
 
  if test -s conftest.err; then
11239
 
    ac_cpp_err=$ac_c_preproc_warn_flag
11240
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11241
 
  else
11242
 
    ac_cpp_err=
11243
 
  fi
11244
 
else
11245
 
  ac_cpp_err=yes
11246
 
fi
11247
 
if test -z "$ac_cpp_err"; then
11248
 
  ac_header_preproc=yes
11249
 
else
11250
 
  echo "$as_me: failed program was:" >&5
11251
 
sed 's/^/| /' conftest.$ac_ext >&5
11252
 
 
11253
 
  ac_header_preproc=no
11254
 
fi
11255
 
rm -f conftest.err conftest.$ac_ext
11256
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11257
 
echo "${ECHO_T}$ac_header_preproc" >&6
11258
 
 
11259
 
# So?  What about this header?
11260
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11261
 
  yes:no: )
11262
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11263
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11264
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11265
 
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11266
 
    ac_header_preproc=yes
11267
 
    ;;
11268
 
  no:yes:* )
11269
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11270
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11271
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11272
 
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11273
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11274
 
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11275
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11276
 
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11277
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11278
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11279
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11280
 
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11281
 
    (
11282
 
      cat <<\_ASBOX
11283
 
## ------------------------------- ##
11284
 
## Report this to bug-make@gnu.org ##
11285
 
## ------------------------------- ##
11286
 
_ASBOX
11287
 
    ) |
11288
 
      sed "s/^/$as_me: WARNING:     /" >&2
11289
 
    ;;
11290
 
esac
11291
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
11292
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11293
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
11294
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11295
 
else
11296
 
  eval "$as_ac_Header=\$ac_header_preproc"
11297
 
fi
11298
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11299
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11300
 
 
11301
 
fi
11302
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
8304
$as_echo "#define UMAX 1" >>confdefs.h
 
8305
 
 
8306
 
 
8307
$as_echo "#define UMAX4_3 1" >>confdefs.h
 
8308
 
 
8309
fi
 
8310
 
 
8311
 
 
8312
fi
 
8313
 
 
8314
if test $ac_have_func = no; then
 
8315
  ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
 
8316
if test "x$ac_cv_header_sys_cpustats_h" = x""yes; then :
 
8317
  ac_have_func=yes; $as_echo "#define UMAX 1" >>confdefs.h
 
8318
 
 
8319
fi
 
8320
 
 
8321
 
 
8322
fi
 
8323
 
 
8324
if test $ac_have_func = no; then
 
8325
  for ac_header in mach/mach.h
 
8326
do :
 
8327
  ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
 
8328
if test "x$ac_cv_header_mach_mach_h" = x""yes; then :
11303
8329
  cat >>confdefs.h <<_ACEOF
11304
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
8330
#define HAVE_MACH_MACH_H 1
11305
8331
_ACEOF
11306
8332
 
11307
8333
fi
11310
8336
 
11311
8337
fi
11312
8338
 
11313
 
 
11314
8339
for ac_header in nlist.h
11315
 
do
11316
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11317
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
11318
 
  echo "$as_me:$LINENO: checking for $ac_header" >&5
11319
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11320
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
11321
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11322
 
fi
11323
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11324
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11325
 
else
11326
 
  # Is the header compilable?
11327
 
echo "$as_me:$LINENO: checking $ac_header usability" >&5
11328
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11329
 
cat >conftest.$ac_ext <<_ACEOF
11330
 
/* confdefs.h.  */
11331
 
_ACEOF
11332
 
cat confdefs.h >>conftest.$ac_ext
11333
 
cat >>conftest.$ac_ext <<_ACEOF
11334
 
/* end confdefs.h.  */
11335
 
$ac_includes_default
11336
 
#include <$ac_header>
11337
 
_ACEOF
11338
 
rm -f conftest.$ac_objext
11339
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11340
 
  (eval $ac_compile) 2>conftest.er1
11341
 
  ac_status=$?
11342
 
  grep -v '^ *+' conftest.er1 >conftest.err
11343
 
  rm -f conftest.er1
11344
 
  cat conftest.err >&5
11345
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11346
 
  (exit $ac_status); } &&
11347
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11348
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11349
 
  (eval $ac_try) 2>&5
11350
 
  ac_status=$?
11351
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11352
 
  (exit $ac_status); }; } &&
11353
 
         { ac_try='test -s conftest.$ac_objext'
11354
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11355
 
  (eval $ac_try) 2>&5
11356
 
  ac_status=$?
11357
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11358
 
  (exit $ac_status); }; }; then
11359
 
  ac_header_compiler=yes
11360
 
else
11361
 
  echo "$as_me: failed program was:" >&5
11362
 
sed 's/^/| /' conftest.$ac_ext >&5
11363
 
 
11364
 
ac_header_compiler=no
11365
 
fi
11366
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11367
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11368
 
echo "${ECHO_T}$ac_header_compiler" >&6
11369
 
 
11370
 
# Is the header present?
11371
 
echo "$as_me:$LINENO: checking $ac_header presence" >&5
11372
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11373
 
cat >conftest.$ac_ext <<_ACEOF
11374
 
/* confdefs.h.  */
11375
 
_ACEOF
11376
 
cat confdefs.h >>conftest.$ac_ext
11377
 
cat >>conftest.$ac_ext <<_ACEOF
11378
 
/* end confdefs.h.  */
11379
 
#include <$ac_header>
11380
 
_ACEOF
11381
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11382
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11383
 
  ac_status=$?
11384
 
  grep -v '^ *+' conftest.er1 >conftest.err
11385
 
  rm -f conftest.er1
11386
 
  cat conftest.err >&5
11387
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11388
 
  (exit $ac_status); } >/dev/null; then
11389
 
  if test -s conftest.err; then
11390
 
    ac_cpp_err=$ac_c_preproc_warn_flag
11391
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11392
 
  else
11393
 
    ac_cpp_err=
11394
 
  fi
11395
 
else
11396
 
  ac_cpp_err=yes
11397
 
fi
11398
 
if test -z "$ac_cpp_err"; then
11399
 
  ac_header_preproc=yes
11400
 
else
11401
 
  echo "$as_me: failed program was:" >&5
11402
 
sed 's/^/| /' conftest.$ac_ext >&5
11403
 
 
11404
 
  ac_header_preproc=no
11405
 
fi
11406
 
rm -f conftest.err conftest.$ac_ext
11407
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11408
 
echo "${ECHO_T}$ac_header_preproc" >&6
11409
 
 
11410
 
# So?  What about this header?
11411
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11412
 
  yes:no: )
11413
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11414
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11415
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11416
 
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11417
 
    ac_header_preproc=yes
11418
 
    ;;
11419
 
  no:yes:* )
11420
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11421
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11422
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11423
 
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11424
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11425
 
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11426
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11427
 
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11428
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11429
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11430
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11431
 
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11432
 
    (
11433
 
      cat <<\_ASBOX
11434
 
## ------------------------------- ##
11435
 
## Report this to bug-make@gnu.org ##
11436
 
## ------------------------------- ##
11437
 
_ASBOX
11438
 
    ) |
11439
 
      sed "s/^/$as_me: WARNING:     /" >&2
11440
 
    ;;
11441
 
esac
11442
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
11443
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11444
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
11445
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11446
 
else
11447
 
  eval "$as_ac_Header=\$ac_header_preproc"
11448
 
fi
11449
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11450
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11451
 
 
11452
 
fi
11453
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
8340
do :
 
8341
  ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
 
8342
if test "x$ac_cv_header_nlist_h" = x""yes; then :
11454
8343
  cat >>confdefs.h <<_ACEOF
11455
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11456
 
_ACEOF
11457
 
 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
11458
 
echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
11459
 
if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
11460
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11461
 
else
11462
 
  cat >conftest.$ac_ext <<_ACEOF
11463
 
/* confdefs.h.  */
11464
 
_ACEOF
11465
 
cat confdefs.h >>conftest.$ac_ext
11466
 
cat >>conftest.$ac_ext <<_ACEOF
11467
 
/* end confdefs.h.  */
11468
 
#include <nlist.h>
11469
 
 
11470
 
int
11471
 
main ()
11472
 
{
11473
 
static struct nlist ac_aggr;
11474
 
if (ac_aggr.n_un.n_name)
11475
 
return 0;
11476
 
  ;
11477
 
  return 0;
11478
 
}
11479
 
_ACEOF
11480
 
rm -f conftest.$ac_objext
11481
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11482
 
  (eval $ac_compile) 2>conftest.er1
11483
 
  ac_status=$?
11484
 
  grep -v '^ *+' conftest.er1 >conftest.err
11485
 
  rm -f conftest.er1
11486
 
  cat conftest.err >&5
11487
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11488
 
  (exit $ac_status); } &&
11489
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11490
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11491
 
  (eval $ac_try) 2>&5
11492
 
  ac_status=$?
11493
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11494
 
  (exit $ac_status); }; } &&
11495
 
         { ac_try='test -s conftest.$ac_objext'
11496
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11497
 
  (eval $ac_try) 2>&5
11498
 
  ac_status=$?
11499
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11500
 
  (exit $ac_status); }; }; then
11501
 
  ac_cv_member_struct_nlist_n_un_n_name=yes
11502
 
else
11503
 
  echo "$as_me: failed program was:" >&5
11504
 
sed 's/^/| /' conftest.$ac_ext >&5
11505
 
 
11506
 
cat >conftest.$ac_ext <<_ACEOF
11507
 
/* confdefs.h.  */
11508
 
_ACEOF
11509
 
cat confdefs.h >>conftest.$ac_ext
11510
 
cat >>conftest.$ac_ext <<_ACEOF
11511
 
/* end confdefs.h.  */
11512
 
#include <nlist.h>
11513
 
 
11514
 
int
11515
 
main ()
11516
 
{
11517
 
static struct nlist ac_aggr;
11518
 
if (sizeof ac_aggr.n_un.n_name)
11519
 
return 0;
11520
 
  ;
11521
 
  return 0;
11522
 
}
11523
 
_ACEOF
11524
 
rm -f conftest.$ac_objext
11525
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11526
 
  (eval $ac_compile) 2>conftest.er1
11527
 
  ac_status=$?
11528
 
  grep -v '^ *+' conftest.er1 >conftest.err
11529
 
  rm -f conftest.er1
11530
 
  cat conftest.err >&5
11531
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11532
 
  (exit $ac_status); } &&
11533
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11534
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11535
 
  (eval $ac_try) 2>&5
11536
 
  ac_status=$?
11537
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11538
 
  (exit $ac_status); }; } &&
11539
 
         { ac_try='test -s conftest.$ac_objext'
11540
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11541
 
  (eval $ac_try) 2>&5
11542
 
  ac_status=$?
11543
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11544
 
  (exit $ac_status); }; }; then
11545
 
  ac_cv_member_struct_nlist_n_un_n_name=yes
11546
 
else
11547
 
  echo "$as_me: failed program was:" >&5
11548
 
sed 's/^/| /' conftest.$ac_ext >&5
11549
 
 
11550
 
ac_cv_member_struct_nlist_n_un_n_name=no
11551
 
fi
11552
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11553
 
fi
11554
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11555
 
fi
11556
 
echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
11557
 
echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
11558
 
if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
 
8344
#define HAVE_NLIST_H 1
 
8345
_ACEOF
 
8346
 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
 
8347
"
 
8348
if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then :
11559
8349
 
11560
8350
cat >>confdefs.h <<_ACEOF
11561
8351
#define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
11562
8352
_ACEOF
11563
8353
 
11564
8354
 
11565
 
cat >>confdefs.h <<\_ACEOF
11566
 
#define NLIST_NAME_UNION 1
11567
 
_ACEOF
 
8355
$as_echo "#define NLIST_NAME_UNION 1" >>confdefs.h
11568
8356
 
11569
8357
fi
11570
8358
 
11578
8366
 
11579
8367
 
11580
8368
# Some definitions of getloadavg require that the program be installed setgid.
11581
 
echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
11582
 
echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
11583
 
if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
11584
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8369
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getloadavg requires setgid" >&5
 
8370
$as_echo_n "checking whether getloadavg requires setgid... " >&6; }
 
8371
if test "${ac_cv_func_getloadavg_setgid+set}" = set; then :
 
8372
  $as_echo_n "(cached) " >&6
11585
8373
else
11586
 
  cat >conftest.$ac_ext <<_ACEOF
11587
 
/* confdefs.h.  */
11588
 
_ACEOF
11589
 
cat confdefs.h >>conftest.$ac_ext
11590
 
cat >>conftest.$ac_ext <<_ACEOF
 
8374
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11591
8375
/* end confdefs.h.  */
11592
8376
#include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
11593
8377
#ifdef LDAV_PRIVILEGED
11595
8379
#endif
11596
8380
_ACEOF
11597
8381
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11598
 
  $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
 
8382
  $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then :
11599
8383
  ac_cv_func_getloadavg_setgid=yes
11600
8384
else
11601
8385
  ac_cv_func_getloadavg_setgid=no
11603
8387
rm -f conftest*
11604
8388
 
11605
8389
fi
11606
 
echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
11607
 
echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
 
8390
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getloadavg_setgid" >&5
 
8391
$as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
11608
8392
if test $ac_cv_func_getloadavg_setgid = yes; then
11609
8393
  NEED_SETGID=true
11610
8394
 
11611
 
cat >>confdefs.h <<\_ACEOF
11612
 
#define GETLOADAVG_PRIVILEGED 1
11613
 
_ACEOF
 
8395
$as_echo "#define GETLOADAVG_PRIVILEGED 1" >>confdefs.h
11614
8396
 
11615
8397
else
11616
8398
  NEED_SETGID=false
11617
8399
fi
11618
8400
 
11619
8401
if test $ac_cv_func_getloadavg_setgid = yes; then
11620
 
  echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
11621
 
echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
11622
 
if test "${ac_cv_group_kmem+set}" = set; then
11623
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8402
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking group of /dev/kmem" >&5
 
8403
$as_echo_n "checking group of /dev/kmem... " >&6; }
 
8404
if test "${ac_cv_group_kmem+set}" = set; then :
 
8405
  $as_echo_n "(cached) " >&6
11624
8406
else
11625
8407
   # On Solaris, /dev/kmem is a symlink.  Get info on the real file.
11626
8408
  ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
11627
8409
  # If we got an error (system does not support symlinks), try without -L.
11628
8410
  test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
11629
 
  ac_cv_group_kmem=`echo $ac_ls_output \
 
8411
  ac_cv_group_kmem=`$as_echo "$ac_ls_output" \
11630
8412
    | sed -ne 's/[       ][      ]*/ /g;
11631
8413
               s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\)  *.*/\1/;
11632
8414
               / /s/.* //;p;'`
11633
8415
 
11634
8416
fi
11635
 
echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
11636
 
echo "${ECHO_T}$ac_cv_group_kmem" >&6
 
8417
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_group_kmem" >&5
 
8418
$as_echo "$ac_cv_group_kmem" >&6; }
11637
8419
  KMEM_GROUP=$ac_cv_group_kmem
11638
8420
fi
11639
8421
if test "x$ac_save_LIBS" = x; then
11640
8422
  GETLOADAVG_LIBS=$LIBS
11641
8423
else
11642
 
  GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
 
8424
  GETLOADAVG_LIBS=`$as_echo "$LIBS" | sed "s|$ac_save_LIBS||"`
11643
8425
fi
11644
8426
LIBS=$ac_save_LIBS
11645
8427
 
11649
8431
# doesn't.  So, we will.
11650
8432
 
11651
8433
if test "$ac_cv_header_nlist_h" = yes; then
11652
 
  cat >conftest.$ac_ext <<_ACEOF
11653
 
/* confdefs.h.  */
11654
 
_ACEOF
11655
 
cat confdefs.h >>conftest.$ac_ext
11656
 
cat >>conftest.$ac_ext <<_ACEOF
 
8434
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11657
8435
/* end confdefs.h.  */
11658
8436
#include <nlist.h>
11659
8437
int
11666
8444
  return 0;
11667
8445
}
11668
8446
_ACEOF
11669
 
rm -f conftest.$ac_objext
11670
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11671
 
  (eval $ac_compile) 2>conftest.er1
11672
 
  ac_status=$?
11673
 
  grep -v '^ *+' conftest.er1 >conftest.err
11674
 
  rm -f conftest.er1
11675
 
  cat conftest.err >&5
11676
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11677
 
  (exit $ac_status); } &&
11678
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11679
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11680
 
  (eval $ac_try) 2>&5
11681
 
  ac_status=$?
11682
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11683
 
  (exit $ac_status); }; } &&
11684
 
         { ac_try='test -s conftest.$ac_objext'
11685
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11686
 
  (eval $ac_try) 2>&5
11687
 
  ac_status=$?
11688
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11689
 
  (exit $ac_status); }; }; then
 
8447
if ac_fn_c_try_compile "$LINENO"; then :
11690
8448
  make_cv_nlist_struct=yes
11691
8449
else
11692
 
  echo "$as_me: failed program was:" >&5
11693
 
sed 's/^/| /' conftest.$ac_ext >&5
11694
 
 
11695
 
make_cv_nlist_struct=no
 
8450
  make_cv_nlist_struct=no
11696
8451
fi
11697
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
8452
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11698
8453
  if test "$make_cv_nlist_struct" = yes; then
11699
8454
 
11700
 
cat >>confdefs.h <<\_ACEOF
11701
 
#define NLIST_STRUCT 1
11702
 
_ACEOF
 
8455
$as_echo "#define NLIST_STRUCT 1" >>confdefs.h
11703
8456
 
11704
8457
  fi
11705
8458
fi
11706
8459
 
11707
 
echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
11708
 
echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
11709
 
if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
11710
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11711
 
else
11712
 
  cat >conftest.$ac_ext <<_ACEOF
11713
 
/* confdefs.h.  */
11714
 
_ACEOF
11715
 
cat confdefs.h >>conftest.$ac_ext
11716
 
cat >>conftest.$ac_ext <<_ACEOF
11717
 
/* end confdefs.h.  */
11718
 
$ac_includes_default
11719
 
#include <signal.h>
11720
 
/* NetBSD declares sys_siglist in unistd.h.  */
11721
 
#if HAVE_UNISTD_H
11722
 
# include <unistd.h>
11723
 
#endif
11724
 
 
11725
 
 
11726
 
int
11727
 
main ()
11728
 
{
11729
 
#ifndef sys_siglist
11730
 
  char *p = (char *) sys_siglist;
11731
 
#endif
11732
 
 
11733
 
  ;
11734
 
  return 0;
11735
 
}
11736
 
_ACEOF
11737
 
rm -f conftest.$ac_objext
11738
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11739
 
  (eval $ac_compile) 2>conftest.er1
11740
 
  ac_status=$?
11741
 
  grep -v '^ *+' conftest.er1 >conftest.err
11742
 
  rm -f conftest.er1
11743
 
  cat conftest.err >&5
11744
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11745
 
  (exit $ac_status); } &&
11746
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11747
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11748
 
  (eval $ac_try) 2>&5
11749
 
  ac_status=$?
11750
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11751
 
  (exit $ac_status); }; } &&
11752
 
         { ac_try='test -s conftest.$ac_objext'
11753
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11754
 
  (eval $ac_try) 2>&5
11755
 
  ac_status=$?
11756
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11757
 
  (exit $ac_status); }; }; then
11758
 
  ac_cv_have_decl_sys_siglist=yes
11759
 
else
11760
 
  echo "$as_me: failed program was:" >&5
11761
 
sed 's/^/| /' conftest.$ac_ext >&5
11762
 
 
11763
 
ac_cv_have_decl_sys_siglist=no
11764
 
fi
11765
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11766
 
fi
11767
 
echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
11768
 
echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
11769
 
if test $ac_cv_have_decl_sys_siglist = yes; then
11770
 
 
11771
 
cat >>confdefs.h <<_ACEOF
11772
 
#define HAVE_DECL_SYS_SIGLIST 1
11773
 
_ACEOF
11774
 
 
11775
 
 
11776
 
else
11777
 
  cat >>confdefs.h <<_ACEOF
11778
 
#define HAVE_DECL_SYS_SIGLIST 0
11779
 
_ACEOF
11780
 
 
11781
 
 
11782
 
fi
11783
 
echo "$as_me:$LINENO: checking whether _sys_siglist is declared" >&5
11784
 
echo $ECHO_N "checking whether _sys_siglist is declared... $ECHO_C" >&6
11785
 
if test "${ac_cv_have_decl__sys_siglist+set}" = set; then
11786
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11787
 
else
11788
 
  cat >conftest.$ac_ext <<_ACEOF
11789
 
/* confdefs.h.  */
11790
 
_ACEOF
11791
 
cat confdefs.h >>conftest.$ac_ext
11792
 
cat >>conftest.$ac_ext <<_ACEOF
11793
 
/* end confdefs.h.  */
11794
 
$ac_includes_default
11795
 
#include <signal.h>
11796
 
/* NetBSD declares sys_siglist in unistd.h.  */
11797
 
#if HAVE_UNISTD_H
11798
 
# include <unistd.h>
11799
 
#endif
11800
 
 
11801
 
 
11802
 
int
11803
 
main ()
11804
 
{
11805
 
#ifndef _sys_siglist
11806
 
  char *p = (char *) _sys_siglist;
11807
 
#endif
11808
 
 
11809
 
  ;
11810
 
  return 0;
11811
 
}
11812
 
_ACEOF
11813
 
rm -f conftest.$ac_objext
11814
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11815
 
  (eval $ac_compile) 2>conftest.er1
11816
 
  ac_status=$?
11817
 
  grep -v '^ *+' conftest.er1 >conftest.err
11818
 
  rm -f conftest.er1
11819
 
  cat conftest.err >&5
11820
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11821
 
  (exit $ac_status); } &&
11822
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11823
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11824
 
  (eval $ac_try) 2>&5
11825
 
  ac_status=$?
11826
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11827
 
  (exit $ac_status); }; } &&
11828
 
         { ac_try='test -s conftest.$ac_objext'
11829
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11830
 
  (eval $ac_try) 2>&5
11831
 
  ac_status=$?
11832
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11833
 
  (exit $ac_status); }; }; then
11834
 
  ac_cv_have_decl__sys_siglist=yes
11835
 
else
11836
 
  echo "$as_me: failed program was:" >&5
11837
 
sed 's/^/| /' conftest.$ac_ext >&5
11838
 
 
11839
 
ac_cv_have_decl__sys_siglist=no
11840
 
fi
11841
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11842
 
fi
11843
 
echo "$as_me:$LINENO: result: $ac_cv_have_decl__sys_siglist" >&5
11844
 
echo "${ECHO_T}$ac_cv_have_decl__sys_siglist" >&6
11845
 
if test $ac_cv_have_decl__sys_siglist = yes; then
11846
 
 
11847
 
cat >>confdefs.h <<_ACEOF
11848
 
#define HAVE_DECL__SYS_SIGLIST 1
11849
 
_ACEOF
11850
 
 
11851
 
 
11852
 
else
11853
 
  cat >>confdefs.h <<_ACEOF
11854
 
#define HAVE_DECL__SYS_SIGLIST 0
11855
 
_ACEOF
11856
 
 
11857
 
 
11858
 
fi
11859
 
echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
11860
 
echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6
11861
 
if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
11862
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11863
 
else
11864
 
  cat >conftest.$ac_ext <<_ACEOF
11865
 
/* confdefs.h.  */
11866
 
_ACEOF
11867
 
cat confdefs.h >>conftest.$ac_ext
11868
 
cat >>conftest.$ac_ext <<_ACEOF
11869
 
/* end confdefs.h.  */
11870
 
$ac_includes_default
11871
 
#include <signal.h>
11872
 
/* NetBSD declares sys_siglist in unistd.h.  */
11873
 
#if HAVE_UNISTD_H
11874
 
# include <unistd.h>
11875
 
#endif
11876
 
 
11877
 
 
11878
 
int
11879
 
main ()
11880
 
{
11881
 
#ifndef __sys_siglist
11882
 
  char *p = (char *) __sys_siglist;
11883
 
#endif
11884
 
 
11885
 
  ;
11886
 
  return 0;
11887
 
}
11888
 
_ACEOF
11889
 
rm -f conftest.$ac_objext
11890
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11891
 
  (eval $ac_compile) 2>conftest.er1
11892
 
  ac_status=$?
11893
 
  grep -v '^ *+' conftest.er1 >conftest.err
11894
 
  rm -f conftest.er1
11895
 
  cat conftest.err >&5
11896
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11897
 
  (exit $ac_status); } &&
11898
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11899
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11900
 
  (eval $ac_try) 2>&5
11901
 
  ac_status=$?
11902
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11903
 
  (exit $ac_status); }; } &&
11904
 
         { ac_try='test -s conftest.$ac_objext'
11905
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11906
 
  (eval $ac_try) 2>&5
11907
 
  ac_status=$?
11908
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11909
 
  (exit $ac_status); }; }; then
11910
 
  ac_cv_have_decl___sys_siglist=yes
11911
 
else
11912
 
  echo "$as_me: failed program was:" >&5
11913
 
sed 's/^/| /' conftest.$ac_ext >&5
11914
 
 
11915
 
ac_cv_have_decl___sys_siglist=no
11916
 
fi
11917
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11918
 
fi
11919
 
echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
11920
 
echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6
11921
 
if test $ac_cv_have_decl___sys_siglist = yes; then
11922
 
 
11923
 
cat >>confdefs.h <<_ACEOF
11924
 
#define HAVE_DECL___SYS_SIGLIST 1
11925
 
_ACEOF
11926
 
 
11927
 
 
11928
 
else
11929
 
  cat >>confdefs.h <<_ACEOF
11930
 
#define HAVE_DECL___SYS_SIGLIST 0
11931
 
_ACEOF
11932
 
 
11933
 
 
11934
 
fi
11935
 
 
 
8460
ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default
 
8461
#include <signal.h>
 
8462
/* NetBSD declares sys_siglist in unistd.h.  */
 
8463
#if HAVE_UNISTD_H
 
8464
# include <unistd.h>
 
8465
#endif
 
8466
 
 
8467
"
 
8468
if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then :
 
8469
  ac_have_decl=1
 
8470
else
 
8471
  ac_have_decl=0
 
8472
fi
 
8473
 
 
8474
cat >>confdefs.h <<_ACEOF
 
8475
#define HAVE_DECL_SYS_SIGLIST $ac_have_decl
 
8476
_ACEOF
 
8477
ac_fn_c_check_decl "$LINENO" "_sys_siglist" "ac_cv_have_decl__sys_siglist" "$ac_includes_default
 
8478
#include <signal.h>
 
8479
/* NetBSD declares sys_siglist in unistd.h.  */
 
8480
#if HAVE_UNISTD_H
 
8481
# include <unistd.h>
 
8482
#endif
 
8483
 
 
8484
"
 
8485
if test "x$ac_cv_have_decl__sys_siglist" = x""yes; then :
 
8486
  ac_have_decl=1
 
8487
else
 
8488
  ac_have_decl=0
 
8489
fi
 
8490
 
 
8491
cat >>confdefs.h <<_ACEOF
 
8492
#define HAVE_DECL__SYS_SIGLIST $ac_have_decl
 
8493
_ACEOF
 
8494
ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default
 
8495
#include <signal.h>
 
8496
/* NetBSD declares sys_siglist in unistd.h.  */
 
8497
#if HAVE_UNISTD_H
 
8498
# include <unistd.h>
 
8499
#endif
 
8500
 
 
8501
"
 
8502
if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then :
 
8503
  ac_have_decl=1
 
8504
else
 
8505
  ac_have_decl=0
 
8506
fi
 
8507
 
 
8508
cat >>confdefs.h <<_ACEOF
 
8509
#define HAVE_DECL___SYS_SIGLIST $ac_have_decl
 
8510
_ACEOF
11936
8511
 
11937
8512
 
11938
8513
 
11939
8514
# Check out the wait reality.
11940
 
 
11941
8515
for ac_header in sys/wait.h
11942
 
do
11943
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11944
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
11945
 
  echo "$as_me:$LINENO: checking for $ac_header" >&5
11946
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11947
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
11948
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11949
 
fi
11950
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11951
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11952
 
else
11953
 
  # Is the header compilable?
11954
 
echo "$as_me:$LINENO: checking $ac_header usability" >&5
11955
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11956
 
cat >conftest.$ac_ext <<_ACEOF
11957
 
/* confdefs.h.  */
11958
 
_ACEOF
11959
 
cat confdefs.h >>conftest.$ac_ext
11960
 
cat >>conftest.$ac_ext <<_ACEOF
11961
 
/* end confdefs.h.  */
11962
 
$ac_includes_default
11963
 
#include <$ac_header>
11964
 
_ACEOF
11965
 
rm -f conftest.$ac_objext
11966
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11967
 
  (eval $ac_compile) 2>conftest.er1
11968
 
  ac_status=$?
11969
 
  grep -v '^ *+' conftest.er1 >conftest.err
11970
 
  rm -f conftest.er1
11971
 
  cat conftest.err >&5
11972
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11973
 
  (exit $ac_status); } &&
11974
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11975
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11976
 
  (eval $ac_try) 2>&5
11977
 
  ac_status=$?
11978
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11979
 
  (exit $ac_status); }; } &&
11980
 
         { ac_try='test -s conftest.$ac_objext'
11981
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11982
 
  (eval $ac_try) 2>&5
11983
 
  ac_status=$?
11984
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11985
 
  (exit $ac_status); }; }; then
11986
 
  ac_header_compiler=yes
11987
 
else
11988
 
  echo "$as_me: failed program was:" >&5
11989
 
sed 's/^/| /' conftest.$ac_ext >&5
11990
 
 
11991
 
ac_header_compiler=no
11992
 
fi
11993
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11994
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11995
 
echo "${ECHO_T}$ac_header_compiler" >&6
11996
 
 
11997
 
# Is the header present?
11998
 
echo "$as_me:$LINENO: checking $ac_header presence" >&5
11999
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12000
 
cat >conftest.$ac_ext <<_ACEOF
12001
 
/* confdefs.h.  */
12002
 
_ACEOF
12003
 
cat confdefs.h >>conftest.$ac_ext
12004
 
cat >>conftest.$ac_ext <<_ACEOF
12005
 
/* end confdefs.h.  */
12006
 
#include <$ac_header>
12007
 
_ACEOF
12008
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12009
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12010
 
  ac_status=$?
12011
 
  grep -v '^ *+' conftest.er1 >conftest.err
12012
 
  rm -f conftest.er1
12013
 
  cat conftest.err >&5
12014
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12015
 
  (exit $ac_status); } >/dev/null; then
12016
 
  if test -s conftest.err; then
12017
 
    ac_cpp_err=$ac_c_preproc_warn_flag
12018
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12019
 
  else
12020
 
    ac_cpp_err=
12021
 
  fi
12022
 
else
12023
 
  ac_cpp_err=yes
12024
 
fi
12025
 
if test -z "$ac_cpp_err"; then
12026
 
  ac_header_preproc=yes
12027
 
else
12028
 
  echo "$as_me: failed program was:" >&5
12029
 
sed 's/^/| /' conftest.$ac_ext >&5
12030
 
 
12031
 
  ac_header_preproc=no
12032
 
fi
12033
 
rm -f conftest.err conftest.$ac_ext
12034
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12035
 
echo "${ECHO_T}$ac_header_preproc" >&6
12036
 
 
12037
 
# So?  What about this header?
12038
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12039
 
  yes:no: )
12040
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12041
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12042
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12043
 
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12044
 
    ac_header_preproc=yes
12045
 
    ;;
12046
 
  no:yes:* )
12047
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12048
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12049
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12050
 
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12051
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12052
 
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12053
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12054
 
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12055
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12056
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12057
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12058
 
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12059
 
    (
12060
 
      cat <<\_ASBOX
12061
 
## ------------------------------- ##
12062
 
## Report this to bug-make@gnu.org ##
12063
 
## ------------------------------- ##
12064
 
_ASBOX
12065
 
    ) |
12066
 
      sed "s/^/$as_me: WARNING:     /" >&2
12067
 
    ;;
12068
 
esac
12069
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
12070
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12071
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
12072
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12073
 
else
12074
 
  eval "$as_ac_Header=\$ac_header_preproc"
12075
 
fi
12076
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12077
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12078
 
 
12079
 
fi
12080
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
8516
do :
 
8517
  ac_fn_c_check_header_mongrel "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "$ac_includes_default"
 
8518
if test "x$ac_cv_header_sys_wait_h" = x""yes; then :
12081
8519
  cat >>confdefs.h <<_ACEOF
12082
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
8520
#define HAVE_SYS_WAIT_H 1
12083
8521
_ACEOF
12084
8522
 
12085
8523
fi
12086
8524
 
12087
8525
done
12088
8526
 
12089
 
 
12090
 
 
12091
8527
for ac_func in waitpid wait3
12092
 
do
12093
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12094
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
12095
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12096
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
12097
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12098
 
else
12099
 
  cat >conftest.$ac_ext <<_ACEOF
12100
 
/* confdefs.h.  */
12101
 
_ACEOF
12102
 
cat confdefs.h >>conftest.$ac_ext
12103
 
cat >>conftest.$ac_ext <<_ACEOF
12104
 
/* end confdefs.h.  */
12105
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12106
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12107
 
#define $ac_func innocuous_$ac_func
12108
 
 
12109
 
/* System header to define __stub macros and hopefully few prototypes,
12110
 
    which can conflict with char $ac_func (); below.
12111
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12112
 
    <limits.h> exists even on freestanding compilers.  */
12113
 
 
12114
 
#ifdef __STDC__
12115
 
# include <limits.h>
12116
 
#else
12117
 
# include <assert.h>
12118
 
#endif
12119
 
 
12120
 
#undef $ac_func
12121
 
 
12122
 
/* Override any gcc2 internal prototype to avoid an error.  */
12123
 
#ifdef __cplusplus
12124
 
extern "C"
12125
 
{
12126
 
#endif
12127
 
/* We use char because int might match the return type of a gcc2
12128
 
   builtin and then its argument prototype would still apply.  */
12129
 
char $ac_func ();
12130
 
/* The GNU C library defines this for functions which it implements
12131
 
    to always fail with ENOSYS.  Some functions are actually named
12132
 
    something starting with __ and the normal name is an alias.  */
12133
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12134
 
choke me
12135
 
#else
12136
 
char (*f) () = $ac_func;
12137
 
#endif
12138
 
#ifdef __cplusplus
12139
 
}
12140
 
#endif
12141
 
 
12142
 
int
12143
 
main ()
12144
 
{
12145
 
return f != $ac_func;
12146
 
  ;
12147
 
  return 0;
12148
 
}
12149
 
_ACEOF
12150
 
rm -f conftest.$ac_objext conftest$ac_exeext
12151
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12152
 
  (eval $ac_link) 2>conftest.er1
12153
 
  ac_status=$?
12154
 
  grep -v '^ *+' conftest.er1 >conftest.err
12155
 
  rm -f conftest.er1
12156
 
  cat conftest.err >&5
12157
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12158
 
  (exit $ac_status); } &&
12159
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12160
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12161
 
  (eval $ac_try) 2>&5
12162
 
  ac_status=$?
12163
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12164
 
  (exit $ac_status); }; } &&
12165
 
         { ac_try='test -s conftest$ac_exeext'
12166
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12167
 
  (eval $ac_try) 2>&5
12168
 
  ac_status=$?
12169
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12170
 
  (exit $ac_status); }; }; then
12171
 
  eval "$as_ac_var=yes"
12172
 
else
12173
 
  echo "$as_me: failed program was:" >&5
12174
 
sed 's/^/| /' conftest.$ac_ext >&5
12175
 
 
12176
 
eval "$as_ac_var=no"
12177
 
fi
12178
 
rm -f conftest.err conftest.$ac_objext \
12179
 
      conftest$ac_exeext conftest.$ac_ext
12180
 
fi
12181
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12182
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12183
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
8528
do :
 
8529
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
8530
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
 
8531
eval as_val=\$$as_ac_var
 
8532
   if test "x$as_val" = x""yes; then :
12184
8533
  cat >>confdefs.h <<_ACEOF
12185
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
8534
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12186
8535
_ACEOF
12187
8536
 
12188
8537
fi
12189
8538
done
12190
8539
 
12191
 
echo "$as_me:$LINENO: checking for union wait" >&5
12192
 
echo $ECHO_N "checking for union wait... $ECHO_C" >&6
12193
 
if test "${make_cv_union_wait+set}" = set; then
12194
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8540
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for union wait" >&5
 
8541
$as_echo_n "checking for union wait... " >&6; }
 
8542
if test "${make_cv_union_wait+set}" = set; then :
 
8543
  $as_echo_n "(cached) " >&6
12195
8544
else
12196
 
      cat >conftest.$ac_ext <<_ACEOF
12197
 
/* confdefs.h.  */
12198
 
_ACEOF
12199
 
cat confdefs.h >>conftest.$ac_ext
12200
 
cat >>conftest.$ac_ext <<_ACEOF
 
8545
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12201
8546
/* end confdefs.h.  */
12202
8547
#include <sys/types.h>
12203
8548
#include <sys/wait.h>
12224
8569
  return 0;
12225
8570
}
12226
8571
_ACEOF
12227
 
rm -f conftest.$ac_objext conftest$ac_exeext
12228
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12229
 
  (eval $ac_link) 2>conftest.er1
12230
 
  ac_status=$?
12231
 
  grep -v '^ *+' conftest.er1 >conftest.err
12232
 
  rm -f conftest.er1
12233
 
  cat conftest.err >&5
12234
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12235
 
  (exit $ac_status); } &&
12236
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12237
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12238
 
  (eval $ac_try) 2>&5
12239
 
  ac_status=$?
12240
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12241
 
  (exit $ac_status); }; } &&
12242
 
         { ac_try='test -s conftest$ac_exeext'
12243
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12244
 
  (eval $ac_try) 2>&5
12245
 
  ac_status=$?
12246
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12247
 
  (exit $ac_status); }; }; then
 
8572
if ac_fn_c_try_link "$LINENO"; then :
12248
8573
  make_cv_union_wait=yes
12249
8574
else
12250
 
  echo "$as_me: failed program was:" >&5
12251
 
sed 's/^/| /' conftest.$ac_ext >&5
12252
 
 
12253
 
make_cv_union_wait=no
 
8575
  make_cv_union_wait=no
12254
8576
fi
12255
 
rm -f conftest.err conftest.$ac_objext \
12256
 
      conftest$ac_exeext conftest.$ac_ext
 
8577
rm -f core conftest.err conftest.$ac_objext \
 
8578
    conftest$ac_exeext conftest.$ac_ext
12257
8579
fi
12258
8580
 
12259
8581
if test "$make_cv_union_wait" = yes; then
12260
8582
 
12261
 
cat >>confdefs.h <<\_ACEOF
12262
 
#define HAVE_UNION_WAIT 1
12263
 
_ACEOF
 
8583
$as_echo "#define HAVE_UNION_WAIT 1" >>confdefs.h
12264
8584
 
12265
8585
fi
12266
 
echo "$as_me:$LINENO: result: $make_cv_union_wait" >&5
12267
 
echo "${ECHO_T}$make_cv_union_wait" >&6
 
8586
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $make_cv_union_wait" >&5
 
8587
$as_echo "$make_cv_union_wait" >&6; }
12268
8588
 
12269
8589
 
12270
8590
# If we're building on Windows/DOS/OS/2, add some support for DOS drive specs.
12271
8591
if test "$PATH_SEPARATOR" = ';'; then
12272
8592
 
12273
 
cat >>confdefs.h <<\_ACEOF
12274
 
#define HAVE_DOS_PATHS 1
12275
 
_ACEOF
 
8593
$as_echo "#define HAVE_DOS_PATHS 1" >>confdefs.h
12276
8594
 
12277
8595
fi
12278
8596
 
12282
8600
 REMOTE=stub
12283
8601
use_customs=false
12284
8602
 
12285
 
# Check whether --with-customs or --without-customs was given.
12286
 
if test "${with_customs+set}" = set; then
12287
 
  withval="$with_customs"
12288
 
  case $withval in
 
8603
# Check whether --with-customs was given.
 
8604
if test "${with_customs+set}" = set; then :
 
8605
  withval=$with_customs; case $withval in
12289
8606
    n|no) : ;;
12290
8607
    *) make_cppflags="$CPPFLAGS"
12291
8608
       case $withval in
12295
8612
       esac
12296
8613
 
12297
8614
cf_test_netlibs=no
12298
 
echo "$as_me:$LINENO: checking for network libraries" >&5
12299
 
echo $ECHO_N "checking for network libraries... $ECHO_C" >&6
12300
 
if test "${cf_cv_netlibs+set}" = set; then
12301
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8615
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for network libraries" >&5
 
8616
$as_echo_n "checking for network libraries... " >&6; }
 
8617
if test "${cf_cv_netlibs+set}" = set; then :
 
8618
  $as_echo_n "(cached) " >&6
12302
8619
else
12303
8620
 
12304
 
echo "$as_me:$LINENO: result: working..." >&5
12305
 
echo "${ECHO_T}working..." >&6
 
8621
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: working..." >&5
 
8622
$as_echo "working..." >&6; }
12306
8623
cf_cv_netlibs=""
12307
8624
cf_test_netlibs=yes
12308
 
 
12309
8625
for ac_func in gethostname
12310
 
do
12311
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12312
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
12313
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12314
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
12315
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12316
 
else
12317
 
  cat >conftest.$ac_ext <<_ACEOF
12318
 
/* confdefs.h.  */
12319
 
_ACEOF
12320
 
cat confdefs.h >>conftest.$ac_ext
12321
 
cat >>conftest.$ac_ext <<_ACEOF
12322
 
/* end confdefs.h.  */
12323
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12324
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12325
 
#define $ac_func innocuous_$ac_func
12326
 
 
12327
 
/* System header to define __stub macros and hopefully few prototypes,
12328
 
    which can conflict with char $ac_func (); below.
12329
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12330
 
    <limits.h> exists even on freestanding compilers.  */
12331
 
 
12332
 
#ifdef __STDC__
12333
 
# include <limits.h>
12334
 
#else
12335
 
# include <assert.h>
12336
 
#endif
12337
 
 
12338
 
#undef $ac_func
12339
 
 
12340
 
/* Override any gcc2 internal prototype to avoid an error.  */
12341
 
#ifdef __cplusplus
12342
 
extern "C"
12343
 
{
12344
 
#endif
12345
 
/* We use char because int might match the return type of a gcc2
12346
 
   builtin and then its argument prototype would still apply.  */
12347
 
char $ac_func ();
12348
 
/* The GNU C library defines this for functions which it implements
12349
 
    to always fail with ENOSYS.  Some functions are actually named
12350
 
    something starting with __ and the normal name is an alias.  */
12351
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12352
 
choke me
12353
 
#else
12354
 
char (*f) () = $ac_func;
12355
 
#endif
12356
 
#ifdef __cplusplus
12357
 
}
12358
 
#endif
12359
 
 
12360
 
int
12361
 
main ()
12362
 
{
12363
 
return f != $ac_func;
12364
 
  ;
12365
 
  return 0;
12366
 
}
12367
 
_ACEOF
12368
 
rm -f conftest.$ac_objext conftest$ac_exeext
12369
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12370
 
  (eval $ac_link) 2>conftest.er1
12371
 
  ac_status=$?
12372
 
  grep -v '^ *+' conftest.er1 >conftest.err
12373
 
  rm -f conftest.er1
12374
 
  cat conftest.err >&5
12375
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12376
 
  (exit $ac_status); } &&
12377
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12378
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12379
 
  (eval $ac_try) 2>&5
12380
 
  ac_status=$?
12381
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12382
 
  (exit $ac_status); }; } &&
12383
 
         { ac_try='test -s conftest$ac_exeext'
12384
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12385
 
  (eval $ac_try) 2>&5
12386
 
  ac_status=$?
12387
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12388
 
  (exit $ac_status); }; }; then
12389
 
  eval "$as_ac_var=yes"
12390
 
else
12391
 
  echo "$as_me: failed program was:" >&5
12392
 
sed 's/^/| /' conftest.$ac_ext >&5
12393
 
 
12394
 
eval "$as_ac_var=no"
12395
 
fi
12396
 
rm -f conftest.err conftest.$ac_objext \
12397
 
      conftest$ac_exeext conftest.$ac_ext
12398
 
fi
12399
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12400
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12401
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
8626
do :
 
8627
  ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname"
 
8628
if test "x$ac_cv_func_gethostname" = x""yes; then :
12402
8629
  cat >>confdefs.h <<_ACEOF
12403
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
8630
#define HAVE_GETHOSTNAME 1
12404
8631
_ACEOF
12405
8632
 
12406
8633
else
12407
8634
 
12408
8635
 
12409
 
echo "$as_me:$LINENO: checking for gethostname in -lnsl" >&5
12410
 
echo $ECHO_N "checking for gethostname in -lnsl... $ECHO_C" >&6
12411
 
if test "${ac_cv_lib_nsl_gethostname+set}" = set; then
12412
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8636
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostname in -lnsl" >&5
 
8637
$as_echo_n "checking for gethostname in -lnsl... " >&6; }
 
8638
if test "${ac_cv_lib_nsl_gethostname+set}" = set; then :
 
8639
  $as_echo_n "(cached) " >&6
12413
8640
else
12414
8641
  ac_check_lib_save_LIBS=$LIBS
12415
8642
LIBS="-lnsl $cf_cv_netlibs $LIBS"
12416
 
cat >conftest.$ac_ext <<_ACEOF
12417
 
/* confdefs.h.  */
12418
 
_ACEOF
12419
 
cat confdefs.h >>conftest.$ac_ext
12420
 
cat >>conftest.$ac_ext <<_ACEOF
 
8643
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12421
8644
/* end confdefs.h.  */
12422
8645
 
12423
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
8646
/* Override any GCC internal prototype to avoid an error.
 
8647
   Use char because int might match the return type of a GCC
 
8648
   builtin and then its argument prototype would still apply.  */
12424
8649
#ifdef __cplusplus
12425
8650
extern "C"
12426
8651
#endif
12427
 
/* We use char because int might match the return type of a gcc2
12428
 
   builtin and then its argument prototype would still apply.  */
12429
8652
char gethostname ();
12430
8653
int
12431
8654
main ()
12432
8655
{
12433
 
gethostname ();
 
8656
return gethostname ();
12434
8657
  ;
12435
8658
  return 0;
12436
8659
}
12437
8660
_ACEOF
12438
 
rm -f conftest.$ac_objext conftest$ac_exeext
12439
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12440
 
  (eval $ac_link) 2>conftest.er1
12441
 
  ac_status=$?
12442
 
  grep -v '^ *+' conftest.er1 >conftest.err
12443
 
  rm -f conftest.er1
12444
 
  cat conftest.err >&5
12445
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12446
 
  (exit $ac_status); } &&
12447
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12448
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12449
 
  (eval $ac_try) 2>&5
12450
 
  ac_status=$?
12451
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12452
 
  (exit $ac_status); }; } &&
12453
 
         { ac_try='test -s conftest$ac_exeext'
12454
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12455
 
  (eval $ac_try) 2>&5
12456
 
  ac_status=$?
12457
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12458
 
  (exit $ac_status); }; }; then
 
8661
if ac_fn_c_try_link "$LINENO"; then :
12459
8662
  ac_cv_lib_nsl_gethostname=yes
12460
8663
else
12461
 
  echo "$as_me: failed program was:" >&5
12462
 
sed 's/^/| /' conftest.$ac_ext >&5
12463
 
 
12464
 
ac_cv_lib_nsl_gethostname=no
 
8664
  ac_cv_lib_nsl_gethostname=no
12465
8665
fi
12466
 
rm -f conftest.err conftest.$ac_objext \
12467
 
      conftest$ac_exeext conftest.$ac_ext
 
8666
rm -f core conftest.err conftest.$ac_objext \
 
8667
    conftest$ac_exeext conftest.$ac_ext
12468
8668
LIBS=$ac_check_lib_save_LIBS
12469
8669
fi
12470
 
echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostname" >&5
12471
 
echo "${ECHO_T}$ac_cv_lib_nsl_gethostname" >&6
12472
 
if test $ac_cv_lib_nsl_gethostname = yes; then
 
8670
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostname" >&5
 
8671
$as_echo "$ac_cv_lib_nsl_gethostname" >&6; }
 
8672
if test "x$ac_cv_lib_nsl_gethostname" = x""yes; then :
12473
8673
 
12474
8674
 
12475
8675
cf_tr_func=`echo gethostname | tr '[a-z]' '[A-Z]'`
12487
8687
        unset ac_cv_func_gethostname 2>/dev/null
12488
8688
 
12489
8689
 
12490
 
echo "$as_me:$LINENO: checking for gethostname in -lsocket" >&5
12491
 
echo $ECHO_N "checking for gethostname in -lsocket... $ECHO_C" >&6
12492
 
if test "${ac_cv_lib_socket_gethostname+set}" = set; then
12493
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8690
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostname in -lsocket" >&5
 
8691
$as_echo_n "checking for gethostname in -lsocket... " >&6; }
 
8692
if test "${ac_cv_lib_socket_gethostname+set}" = set; then :
 
8693
  $as_echo_n "(cached) " >&6
12494
8694
else
12495
8695
  ac_check_lib_save_LIBS=$LIBS
12496
8696
LIBS="-lsocket $cf_cv_netlibs $LIBS"
12497
 
cat >conftest.$ac_ext <<_ACEOF
12498
 
/* confdefs.h.  */
12499
 
_ACEOF
12500
 
cat confdefs.h >>conftest.$ac_ext
12501
 
cat >>conftest.$ac_ext <<_ACEOF
 
8697
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12502
8698
/* end confdefs.h.  */
12503
8699
 
12504
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
8700
/* Override any GCC internal prototype to avoid an error.
 
8701
   Use char because int might match the return type of a GCC
 
8702
   builtin and then its argument prototype would still apply.  */
12505
8703
#ifdef __cplusplus
12506
8704
extern "C"
12507
8705
#endif
12508
 
/* We use char because int might match the return type of a gcc2
12509
 
   builtin and then its argument prototype would still apply.  */
12510
8706
char gethostname ();
12511
8707
int
12512
8708
main ()
12513
8709
{
12514
 
gethostname ();
 
8710
return gethostname ();
12515
8711
  ;
12516
8712
  return 0;
12517
8713
}
12518
8714
_ACEOF
12519
 
rm -f conftest.$ac_objext conftest$ac_exeext
12520
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12521
 
  (eval $ac_link) 2>conftest.er1
12522
 
  ac_status=$?
12523
 
  grep -v '^ *+' conftest.er1 >conftest.err
12524
 
  rm -f conftest.er1
12525
 
  cat conftest.err >&5
12526
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12527
 
  (exit $ac_status); } &&
12528
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12529
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12530
 
  (eval $ac_try) 2>&5
12531
 
  ac_status=$?
12532
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12533
 
  (exit $ac_status); }; } &&
12534
 
         { ac_try='test -s conftest$ac_exeext'
12535
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12536
 
  (eval $ac_try) 2>&5
12537
 
  ac_status=$?
12538
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12539
 
  (exit $ac_status); }; }; then
 
8715
if ac_fn_c_try_link "$LINENO"; then :
12540
8716
  ac_cv_lib_socket_gethostname=yes
12541
8717
else
12542
 
  echo "$as_me: failed program was:" >&5
12543
 
sed 's/^/| /' conftest.$ac_ext >&5
12544
 
 
12545
 
ac_cv_lib_socket_gethostname=no
 
8718
  ac_cv_lib_socket_gethostname=no
12546
8719
fi
12547
 
rm -f conftest.err conftest.$ac_objext \
12548
 
      conftest$ac_exeext conftest.$ac_ext
 
8720
rm -f core conftest.err conftest.$ac_objext \
 
8721
    conftest$ac_exeext conftest.$ac_ext
12549
8722
LIBS=$ac_check_lib_save_LIBS
12550
8723
fi
12551
 
echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostname" >&5
12552
 
echo "${ECHO_T}$ac_cv_lib_socket_gethostname" >&6
12553
 
if test $ac_cv_lib_socket_gethostname = yes; then
 
8724
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostname" >&5
 
8725
$as_echo "$ac_cv_lib_socket_gethostname" >&6; }
 
8726
if test "x$ac_cv_lib_socket_gethostname" = x""yes; then :
12554
8727
 
12555
8728
 
12556
8729
cf_tr_func=`echo gethostname | tr '[a-z]' '[A-Z]'`
12579
8752
#
12580
8753
# FIXME:  sequent needs this library (i.e., -lsocket -linet -lnsl), but
12581
8754
# I don't know the entrypoints - 97/7/22 TD
12582
 
echo "$as_me:$LINENO: checking for main in -linet" >&5
12583
 
echo $ECHO_N "checking for main in -linet... $ECHO_C" >&6
12584
 
if test "${ac_cv_lib_inet_main+set}" = set; then
12585
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8755
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -linet" >&5
 
8756
$as_echo_n "checking for main in -linet... " >&6; }
 
8757
if test "${ac_cv_lib_inet_main+set}" = set; then :
 
8758
  $as_echo_n "(cached) " >&6
12586
8759
else
12587
8760
  ac_check_lib_save_LIBS=$LIBS
12588
8761
LIBS="-linet  $LIBS"
12589
 
cat >conftest.$ac_ext <<_ACEOF
12590
 
/* confdefs.h.  */
12591
 
_ACEOF
12592
 
cat confdefs.h >>conftest.$ac_ext
12593
 
cat >>conftest.$ac_ext <<_ACEOF
 
8762
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12594
8763
/* end confdefs.h.  */
12595
8764
 
12596
8765
 
12597
8766
int
12598
8767
main ()
12599
8768
{
12600
 
main ();
 
8769
return main ();
12601
8770
  ;
12602
8771
  return 0;
12603
8772
}
12604
8773
_ACEOF
12605
 
rm -f conftest.$ac_objext conftest$ac_exeext
12606
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12607
 
  (eval $ac_link) 2>conftest.er1
12608
 
  ac_status=$?
12609
 
  grep -v '^ *+' conftest.er1 >conftest.err
12610
 
  rm -f conftest.er1
12611
 
  cat conftest.err >&5
12612
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12613
 
  (exit $ac_status); } &&
12614
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12615
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12616
 
  (eval $ac_try) 2>&5
12617
 
  ac_status=$?
12618
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12619
 
  (exit $ac_status); }; } &&
12620
 
         { ac_try='test -s conftest$ac_exeext'
12621
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12622
 
  (eval $ac_try) 2>&5
12623
 
  ac_status=$?
12624
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12625
 
  (exit $ac_status); }; }; then
 
8774
if ac_fn_c_try_link "$LINENO"; then :
12626
8775
  ac_cv_lib_inet_main=yes
12627
8776
else
12628
 
  echo "$as_me: failed program was:" >&5
12629
 
sed 's/^/| /' conftest.$ac_ext >&5
12630
 
 
12631
 
ac_cv_lib_inet_main=no
 
8777
  ac_cv_lib_inet_main=no
12632
8778
fi
12633
 
rm -f conftest.err conftest.$ac_objext \
12634
 
      conftest$ac_exeext conftest.$ac_ext
 
8779
rm -f core conftest.err conftest.$ac_objext \
 
8780
    conftest$ac_exeext conftest.$ac_ext
12635
8781
LIBS=$ac_check_lib_save_LIBS
12636
8782
fi
12637
 
echo "$as_me:$LINENO: result: $ac_cv_lib_inet_main" >&5
12638
 
echo "${ECHO_T}$ac_cv_lib_inet_main" >&6
12639
 
if test $ac_cv_lib_inet_main = yes; then
 
8783
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_main" >&5
 
8784
$as_echo "$ac_cv_lib_inet_main" >&6; }
 
8785
if test "x$ac_cv_lib_inet_main" = x""yes; then :
12640
8786
  cf_cv_netlibs="-linet $cf_cv_netlibs"
12641
8787
fi
12642
8788
 
12643
8789
#
12644
8790
if test "$ac_cv_func_lsocket" != no ; then
12645
 
 
12646
8791
for ac_func in socket
12647
 
do
12648
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12649
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
12650
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12651
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
12652
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12653
 
else
12654
 
  cat >conftest.$ac_ext <<_ACEOF
12655
 
/* confdefs.h.  */
12656
 
_ACEOF
12657
 
cat confdefs.h >>conftest.$ac_ext
12658
 
cat >>conftest.$ac_ext <<_ACEOF
12659
 
/* end confdefs.h.  */
12660
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12661
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12662
 
#define $ac_func innocuous_$ac_func
12663
 
 
12664
 
/* System header to define __stub macros and hopefully few prototypes,
12665
 
    which can conflict with char $ac_func (); below.
12666
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12667
 
    <limits.h> exists even on freestanding compilers.  */
12668
 
 
12669
 
#ifdef __STDC__
12670
 
# include <limits.h>
12671
 
#else
12672
 
# include <assert.h>
12673
 
#endif
12674
 
 
12675
 
#undef $ac_func
12676
 
 
12677
 
/* Override any gcc2 internal prototype to avoid an error.  */
12678
 
#ifdef __cplusplus
12679
 
extern "C"
12680
 
{
12681
 
#endif
12682
 
/* We use char because int might match the return type of a gcc2
12683
 
   builtin and then its argument prototype would still apply.  */
12684
 
char $ac_func ();
12685
 
/* The GNU C library defines this for functions which it implements
12686
 
    to always fail with ENOSYS.  Some functions are actually named
12687
 
    something starting with __ and the normal name is an alias.  */
12688
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12689
 
choke me
12690
 
#else
12691
 
char (*f) () = $ac_func;
12692
 
#endif
12693
 
#ifdef __cplusplus
12694
 
}
12695
 
#endif
12696
 
 
12697
 
int
12698
 
main ()
12699
 
{
12700
 
return f != $ac_func;
12701
 
  ;
12702
 
  return 0;
12703
 
}
12704
 
_ACEOF
12705
 
rm -f conftest.$ac_objext conftest$ac_exeext
12706
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12707
 
  (eval $ac_link) 2>conftest.er1
12708
 
  ac_status=$?
12709
 
  grep -v '^ *+' conftest.er1 >conftest.err
12710
 
  rm -f conftest.er1
12711
 
  cat conftest.err >&5
12712
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12713
 
  (exit $ac_status); } &&
12714
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12715
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12716
 
  (eval $ac_try) 2>&5
12717
 
  ac_status=$?
12718
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12719
 
  (exit $ac_status); }; } &&
12720
 
         { ac_try='test -s conftest$ac_exeext'
12721
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12722
 
  (eval $ac_try) 2>&5
12723
 
  ac_status=$?
12724
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12725
 
  (exit $ac_status); }; }; then
12726
 
  eval "$as_ac_var=yes"
12727
 
else
12728
 
  echo "$as_me: failed program was:" >&5
12729
 
sed 's/^/| /' conftest.$ac_ext >&5
12730
 
 
12731
 
eval "$as_ac_var=no"
12732
 
fi
12733
 
rm -f conftest.err conftest.$ac_objext \
12734
 
      conftest$ac_exeext conftest.$ac_ext
12735
 
fi
12736
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12737
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12738
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
8792
do :
 
8793
  ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
 
8794
if test "x$ac_cv_func_socket" = x""yes; then :
12739
8795
  cat >>confdefs.h <<_ACEOF
12740
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
8796
#define HAVE_SOCKET 1
12741
8797
_ACEOF
12742
8798
 
12743
8799
else
12744
8800
 
12745
8801
 
12746
 
echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
12747
 
echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
12748
 
if test "${ac_cv_lib_socket_socket+set}" = set; then
12749
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8802
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
 
8803
$as_echo_n "checking for socket in -lsocket... " >&6; }
 
8804
if test "${ac_cv_lib_socket_socket+set}" = set; then :
 
8805
  $as_echo_n "(cached) " >&6
12750
8806
else
12751
8807
  ac_check_lib_save_LIBS=$LIBS
12752
8808
LIBS="-lsocket $cf_cv_netlibs $LIBS"
12753
 
cat >conftest.$ac_ext <<_ACEOF
12754
 
/* confdefs.h.  */
12755
 
_ACEOF
12756
 
cat confdefs.h >>conftest.$ac_ext
12757
 
cat >>conftest.$ac_ext <<_ACEOF
 
8809
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12758
8810
/* end confdefs.h.  */
12759
8811
 
12760
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
8812
/* Override any GCC internal prototype to avoid an error.
 
8813
   Use char because int might match the return type of a GCC
 
8814
   builtin and then its argument prototype would still apply.  */
12761
8815
#ifdef __cplusplus
12762
8816
extern "C"
12763
8817
#endif
12764
 
/* We use char because int might match the return type of a gcc2
12765
 
   builtin and then its argument prototype would still apply.  */
12766
8818
char socket ();
12767
8819
int
12768
8820
main ()
12769
8821
{
12770
 
socket ();
 
8822
return socket ();
12771
8823
  ;
12772
8824
  return 0;
12773
8825
}
12774
8826
_ACEOF
12775
 
rm -f conftest.$ac_objext conftest$ac_exeext
12776
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12777
 
  (eval $ac_link) 2>conftest.er1
12778
 
  ac_status=$?
12779
 
  grep -v '^ *+' conftest.er1 >conftest.err
12780
 
  rm -f conftest.er1
12781
 
  cat conftest.err >&5
12782
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12783
 
  (exit $ac_status); } &&
12784
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12785
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12786
 
  (eval $ac_try) 2>&5
12787
 
  ac_status=$?
12788
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12789
 
  (exit $ac_status); }; } &&
12790
 
         { ac_try='test -s conftest$ac_exeext'
12791
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12792
 
  (eval $ac_try) 2>&5
12793
 
  ac_status=$?
12794
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12795
 
  (exit $ac_status); }; }; then
 
8827
if ac_fn_c_try_link "$LINENO"; then :
12796
8828
  ac_cv_lib_socket_socket=yes
12797
8829
else
12798
 
  echo "$as_me: failed program was:" >&5
12799
 
sed 's/^/| /' conftest.$ac_ext >&5
12800
 
 
12801
 
ac_cv_lib_socket_socket=no
 
8830
  ac_cv_lib_socket_socket=no
12802
8831
fi
12803
 
rm -f conftest.err conftest.$ac_objext \
12804
 
      conftest$ac_exeext conftest.$ac_ext
 
8832
rm -f core conftest.err conftest.$ac_objext \
 
8833
    conftest$ac_exeext conftest.$ac_ext
12805
8834
LIBS=$ac_check_lib_save_LIBS
12806
8835
fi
12807
 
echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
12808
 
echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
12809
 
if test $ac_cv_lib_socket_socket = yes; then
 
8836
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
 
8837
$as_echo "$ac_cv_lib_socket_socket" >&6; }
 
8838
if test "x$ac_cv_lib_socket_socket" = x""yes; then :
12810
8839
 
12811
8840
 
12812
8841
cf_tr_func=`echo socket | tr '[a-z]' '[A-Z]'`
12824
8853
        unset ac_cv_func_socket 2>/dev/null
12825
8854
 
12826
8855
 
12827
 
echo "$as_me:$LINENO: checking for socket in -lbsd" >&5
12828
 
echo $ECHO_N "checking for socket in -lbsd... $ECHO_C" >&6
12829
 
if test "${ac_cv_lib_bsd_socket+set}" = set; then
12830
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8856
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lbsd" >&5
 
8857
$as_echo_n "checking for socket in -lbsd... " >&6; }
 
8858
if test "${ac_cv_lib_bsd_socket+set}" = set; then :
 
8859
  $as_echo_n "(cached) " >&6
12831
8860
else
12832
8861
  ac_check_lib_save_LIBS=$LIBS
12833
8862
LIBS="-lbsd $cf_cv_netlibs $LIBS"
12834
 
cat >conftest.$ac_ext <<_ACEOF
12835
 
/* confdefs.h.  */
12836
 
_ACEOF
12837
 
cat confdefs.h >>conftest.$ac_ext
12838
 
cat >>conftest.$ac_ext <<_ACEOF
 
8863
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12839
8864
/* end confdefs.h.  */
12840
8865
 
12841
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
8866
/* Override any GCC internal prototype to avoid an error.
 
8867
   Use char because int might match the return type of a GCC
 
8868
   builtin and then its argument prototype would still apply.  */
12842
8869
#ifdef __cplusplus
12843
8870
extern "C"
12844
8871
#endif
12845
 
/* We use char because int might match the return type of a gcc2
12846
 
   builtin and then its argument prototype would still apply.  */
12847
8872
char socket ();
12848
8873
int
12849
8874
main ()
12850
8875
{
12851
 
socket ();
 
8876
return socket ();
12852
8877
  ;
12853
8878
  return 0;
12854
8879
}
12855
8880
_ACEOF
12856
 
rm -f conftest.$ac_objext conftest$ac_exeext
12857
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12858
 
  (eval $ac_link) 2>conftest.er1
12859
 
  ac_status=$?
12860
 
  grep -v '^ *+' conftest.er1 >conftest.err
12861
 
  rm -f conftest.er1
12862
 
  cat conftest.err >&5
12863
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12864
 
  (exit $ac_status); } &&
12865
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12866
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12867
 
  (eval $ac_try) 2>&5
12868
 
  ac_status=$?
12869
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12870
 
  (exit $ac_status); }; } &&
12871
 
         { ac_try='test -s conftest$ac_exeext'
12872
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12873
 
  (eval $ac_try) 2>&5
12874
 
  ac_status=$?
12875
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12876
 
  (exit $ac_status); }; }; then
 
8881
if ac_fn_c_try_link "$LINENO"; then :
12877
8882
  ac_cv_lib_bsd_socket=yes
12878
8883
else
12879
 
  echo "$as_me: failed program was:" >&5
12880
 
sed 's/^/| /' conftest.$ac_ext >&5
12881
 
 
12882
 
ac_cv_lib_bsd_socket=no
 
8884
  ac_cv_lib_bsd_socket=no
12883
8885
fi
12884
 
rm -f conftest.err conftest.$ac_objext \
12885
 
      conftest$ac_exeext conftest.$ac_ext
 
8886
rm -f core conftest.err conftest.$ac_objext \
 
8887
    conftest$ac_exeext conftest.$ac_ext
12886
8888
LIBS=$ac_check_lib_save_LIBS
12887
8889
fi
12888
 
echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_socket" >&5
12889
 
echo "${ECHO_T}$ac_cv_lib_bsd_socket" >&6
12890
 
if test $ac_cv_lib_bsd_socket = yes; then
 
8890
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_socket" >&5
 
8891
$as_echo "$ac_cv_lib_bsd_socket" >&6; }
 
8892
if test "x$ac_cv_lib_bsd_socket" = x""yes; then :
12891
8893
 
12892
8894
 
12893
8895
cf_tr_func=`echo socket | tr '[a-z]' '[A-Z]'`
12915
8917
 
12916
8918
fi
12917
8919
#
12918
 
 
12919
8920
for ac_func in gethostbyname
12920
 
do
12921
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12922
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
12923
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12924
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
12925
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12926
 
else
12927
 
  cat >conftest.$ac_ext <<_ACEOF
12928
 
/* confdefs.h.  */
12929
 
_ACEOF
12930
 
cat confdefs.h >>conftest.$ac_ext
12931
 
cat >>conftest.$ac_ext <<_ACEOF
12932
 
/* end confdefs.h.  */
12933
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12934
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12935
 
#define $ac_func innocuous_$ac_func
12936
 
 
12937
 
/* System header to define __stub macros and hopefully few prototypes,
12938
 
    which can conflict with char $ac_func (); below.
12939
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12940
 
    <limits.h> exists even on freestanding compilers.  */
12941
 
 
12942
 
#ifdef __STDC__
12943
 
# include <limits.h>
12944
 
#else
12945
 
# include <assert.h>
12946
 
#endif
12947
 
 
12948
 
#undef $ac_func
12949
 
 
12950
 
/* Override any gcc2 internal prototype to avoid an error.  */
12951
 
#ifdef __cplusplus
12952
 
extern "C"
12953
 
{
12954
 
#endif
12955
 
/* We use char because int might match the return type of a gcc2
12956
 
   builtin and then its argument prototype would still apply.  */
12957
 
char $ac_func ();
12958
 
/* The GNU C library defines this for functions which it implements
12959
 
    to always fail with ENOSYS.  Some functions are actually named
12960
 
    something starting with __ and the normal name is an alias.  */
12961
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12962
 
choke me
12963
 
#else
12964
 
char (*f) () = $ac_func;
12965
 
#endif
12966
 
#ifdef __cplusplus
12967
 
}
12968
 
#endif
12969
 
 
12970
 
int
12971
 
main ()
12972
 
{
12973
 
return f != $ac_func;
12974
 
  ;
12975
 
  return 0;
12976
 
}
12977
 
_ACEOF
12978
 
rm -f conftest.$ac_objext conftest$ac_exeext
12979
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12980
 
  (eval $ac_link) 2>conftest.er1
12981
 
  ac_status=$?
12982
 
  grep -v '^ *+' conftest.er1 >conftest.err
12983
 
  rm -f conftest.er1
12984
 
  cat conftest.err >&5
12985
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12986
 
  (exit $ac_status); } &&
12987
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12988
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12989
 
  (eval $ac_try) 2>&5
12990
 
  ac_status=$?
12991
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12992
 
  (exit $ac_status); }; } &&
12993
 
         { ac_try='test -s conftest$ac_exeext'
12994
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12995
 
  (eval $ac_try) 2>&5
12996
 
  ac_status=$?
12997
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12998
 
  (exit $ac_status); }; }; then
12999
 
  eval "$as_ac_var=yes"
13000
 
else
13001
 
  echo "$as_me: failed program was:" >&5
13002
 
sed 's/^/| /' conftest.$ac_ext >&5
13003
 
 
13004
 
eval "$as_ac_var=no"
13005
 
fi
13006
 
rm -f conftest.err conftest.$ac_objext \
13007
 
      conftest$ac_exeext conftest.$ac_ext
13008
 
fi
13009
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13010
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13011
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
8921
do :
 
8922
  ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
 
8923
if test "x$ac_cv_func_gethostbyname" = x""yes; then :
13012
8924
  cat >>confdefs.h <<_ACEOF
13013
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
8925
#define HAVE_GETHOSTBYNAME 1
13014
8926
_ACEOF
13015
8927
 
13016
8928
else
13017
8929
 
13018
8930
 
13019
 
echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
13020
 
echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
13021
 
if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
13022
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8931
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
 
8932
$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
 
8933
if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
 
8934
  $as_echo_n "(cached) " >&6
13023
8935
else
13024
8936
  ac_check_lib_save_LIBS=$LIBS
13025
8937
LIBS="-lnsl $cf_cv_netlibs $LIBS"
13026
 
cat >conftest.$ac_ext <<_ACEOF
13027
 
/* confdefs.h.  */
13028
 
_ACEOF
13029
 
cat confdefs.h >>conftest.$ac_ext
13030
 
cat >>conftest.$ac_ext <<_ACEOF
 
8938
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13031
8939
/* end confdefs.h.  */
13032
8940
 
13033
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
8941
/* Override any GCC internal prototype to avoid an error.
 
8942
   Use char because int might match the return type of a GCC
 
8943
   builtin and then its argument prototype would still apply.  */
13034
8944
#ifdef __cplusplus
13035
8945
extern "C"
13036
8946
#endif
13037
 
/* We use char because int might match the return type of a gcc2
13038
 
   builtin and then its argument prototype would still apply.  */
13039
8947
char gethostbyname ();
13040
8948
int
13041
8949
main ()
13042
8950
{
13043
 
gethostbyname ();
 
8951
return gethostbyname ();
13044
8952
  ;
13045
8953
  return 0;
13046
8954
}
13047
8955
_ACEOF
13048
 
rm -f conftest.$ac_objext conftest$ac_exeext
13049
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13050
 
  (eval $ac_link) 2>conftest.er1
13051
 
  ac_status=$?
13052
 
  grep -v '^ *+' conftest.er1 >conftest.err
13053
 
  rm -f conftest.er1
13054
 
  cat conftest.err >&5
13055
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13056
 
  (exit $ac_status); } &&
13057
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13058
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13059
 
  (eval $ac_try) 2>&5
13060
 
  ac_status=$?
13061
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13062
 
  (exit $ac_status); }; } &&
13063
 
         { ac_try='test -s conftest$ac_exeext'
13064
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13065
 
  (eval $ac_try) 2>&5
13066
 
  ac_status=$?
13067
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13068
 
  (exit $ac_status); }; }; then
 
8956
if ac_fn_c_try_link "$LINENO"; then :
13069
8957
  ac_cv_lib_nsl_gethostbyname=yes
13070
8958
else
13071
 
  echo "$as_me: failed program was:" >&5
13072
 
sed 's/^/| /' conftest.$ac_ext >&5
13073
 
 
13074
 
ac_cv_lib_nsl_gethostbyname=no
 
8959
  ac_cv_lib_nsl_gethostbyname=no
13075
8960
fi
13076
 
rm -f conftest.err conftest.$ac_objext \
13077
 
      conftest$ac_exeext conftest.$ac_ext
 
8961
rm -f core conftest.err conftest.$ac_objext \
 
8962
    conftest$ac_exeext conftest.$ac_ext
13078
8963
LIBS=$ac_check_lib_save_LIBS
13079
8964
fi
13080
 
echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
13081
 
echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
13082
 
if test $ac_cv_lib_nsl_gethostbyname = yes; then
 
8965
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
 
8966
$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
 
8967
if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
13083
8968
 
13084
8969
 
13085
8970
cf_tr_func=`echo gethostbyname | tr '[a-z]' '[A-Z]'`
13103
8988
done
13104
8989
 
13105
8990
#
13106
 
 
13107
8991
for ac_func in strcasecmp
13108
 
do
13109
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13110
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
13111
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13112
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
13113
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
13114
 
else
13115
 
  cat >conftest.$ac_ext <<_ACEOF
13116
 
/* confdefs.h.  */
13117
 
_ACEOF
13118
 
cat confdefs.h >>conftest.$ac_ext
13119
 
cat >>conftest.$ac_ext <<_ACEOF
13120
 
/* end confdefs.h.  */
13121
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13122
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13123
 
#define $ac_func innocuous_$ac_func
13124
 
 
13125
 
/* System header to define __stub macros and hopefully few prototypes,
13126
 
    which can conflict with char $ac_func (); below.
13127
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13128
 
    <limits.h> exists even on freestanding compilers.  */
13129
 
 
13130
 
#ifdef __STDC__
13131
 
# include <limits.h>
13132
 
#else
13133
 
# include <assert.h>
13134
 
#endif
13135
 
 
13136
 
#undef $ac_func
13137
 
 
13138
 
/* Override any gcc2 internal prototype to avoid an error.  */
13139
 
#ifdef __cplusplus
13140
 
extern "C"
13141
 
{
13142
 
#endif
13143
 
/* We use char because int might match the return type of a gcc2
13144
 
   builtin and then its argument prototype would still apply.  */
13145
 
char $ac_func ();
13146
 
/* The GNU C library defines this for functions which it implements
13147
 
    to always fail with ENOSYS.  Some functions are actually named
13148
 
    something starting with __ and the normal name is an alias.  */
13149
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13150
 
choke me
13151
 
#else
13152
 
char (*f) () = $ac_func;
13153
 
#endif
13154
 
#ifdef __cplusplus
13155
 
}
13156
 
#endif
13157
 
 
13158
 
int
13159
 
main ()
13160
 
{
13161
 
return f != $ac_func;
13162
 
  ;
13163
 
  return 0;
13164
 
}
13165
 
_ACEOF
13166
 
rm -f conftest.$ac_objext conftest$ac_exeext
13167
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13168
 
  (eval $ac_link) 2>conftest.er1
13169
 
  ac_status=$?
13170
 
  grep -v '^ *+' conftest.er1 >conftest.err
13171
 
  rm -f conftest.er1
13172
 
  cat conftest.err >&5
13173
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13174
 
  (exit $ac_status); } &&
13175
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13176
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13177
 
  (eval $ac_try) 2>&5
13178
 
  ac_status=$?
13179
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13180
 
  (exit $ac_status); }; } &&
13181
 
         { ac_try='test -s conftest$ac_exeext'
13182
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13183
 
  (eval $ac_try) 2>&5
13184
 
  ac_status=$?
13185
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13186
 
  (exit $ac_status); }; }; then
13187
 
  eval "$as_ac_var=yes"
13188
 
else
13189
 
  echo "$as_me: failed program was:" >&5
13190
 
sed 's/^/| /' conftest.$ac_ext >&5
13191
 
 
13192
 
eval "$as_ac_var=no"
13193
 
fi
13194
 
rm -f conftest.err conftest.$ac_objext \
13195
 
      conftest$ac_exeext conftest.$ac_ext
13196
 
fi
13197
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13198
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13199
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
8992
do :
 
8993
  ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
 
8994
if test "x$ac_cv_func_strcasecmp" = x""yes; then :
13200
8995
  cat >>confdefs.h <<_ACEOF
13201
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
8996
#define HAVE_STRCASECMP 1
13202
8997
_ACEOF
13203
8998
 
13204
8999
else
13205
9000
 
13206
9001
 
13207
 
echo "$as_me:$LINENO: checking for strcasecmp in -lresolv" >&5
13208
 
echo $ECHO_N "checking for strcasecmp in -lresolv... $ECHO_C" >&6
13209
 
if test "${ac_cv_lib_resolv_strcasecmp+set}" = set; then
13210
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9002
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp in -lresolv" >&5
 
9003
$as_echo_n "checking for strcasecmp in -lresolv... " >&6; }
 
9004
if test "${ac_cv_lib_resolv_strcasecmp+set}" = set; then :
 
9005
  $as_echo_n "(cached) " >&6
13211
9006
else
13212
9007
  ac_check_lib_save_LIBS=$LIBS
13213
9008
LIBS="-lresolv $cf_cv_netlibs $LIBS"
13214
 
cat >conftest.$ac_ext <<_ACEOF
13215
 
/* confdefs.h.  */
13216
 
_ACEOF
13217
 
cat confdefs.h >>conftest.$ac_ext
13218
 
cat >>conftest.$ac_ext <<_ACEOF
 
9009
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13219
9010
/* end confdefs.h.  */
13220
9011
 
13221
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
9012
/* Override any GCC internal prototype to avoid an error.
 
9013
   Use char because int might match the return type of a GCC
 
9014
   builtin and then its argument prototype would still apply.  */
13222
9015
#ifdef __cplusplus
13223
9016
extern "C"
13224
9017
#endif
13225
 
/* We use char because int might match the return type of a gcc2
13226
 
   builtin and then its argument prototype would still apply.  */
13227
9018
char strcasecmp ();
13228
9019
int
13229
9020
main ()
13230
9021
{
13231
 
strcasecmp ();
 
9022
return strcasecmp ();
13232
9023
  ;
13233
9024
  return 0;
13234
9025
}
13235
9026
_ACEOF
13236
 
rm -f conftest.$ac_objext conftest$ac_exeext
13237
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13238
 
  (eval $ac_link) 2>conftest.er1
13239
 
  ac_status=$?
13240
 
  grep -v '^ *+' conftest.er1 >conftest.err
13241
 
  rm -f conftest.er1
13242
 
  cat conftest.err >&5
13243
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13244
 
  (exit $ac_status); } &&
13245
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13246
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13247
 
  (eval $ac_try) 2>&5
13248
 
  ac_status=$?
13249
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13250
 
  (exit $ac_status); }; } &&
13251
 
         { ac_try='test -s conftest$ac_exeext'
13252
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13253
 
  (eval $ac_try) 2>&5
13254
 
  ac_status=$?
13255
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13256
 
  (exit $ac_status); }; }; then
 
9027
if ac_fn_c_try_link "$LINENO"; then :
13257
9028
  ac_cv_lib_resolv_strcasecmp=yes
13258
9029
else
13259
 
  echo "$as_me: failed program was:" >&5
13260
 
sed 's/^/| /' conftest.$ac_ext >&5
13261
 
 
13262
 
ac_cv_lib_resolv_strcasecmp=no
 
9030
  ac_cv_lib_resolv_strcasecmp=no
13263
9031
fi
13264
 
rm -f conftest.err conftest.$ac_objext \
13265
 
      conftest$ac_exeext conftest.$ac_ext
 
9032
rm -f core conftest.err conftest.$ac_objext \
 
9033
    conftest$ac_exeext conftest.$ac_ext
13266
9034
LIBS=$ac_check_lib_save_LIBS
13267
9035
fi
13268
 
echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_strcasecmp" >&5
13269
 
echo "${ECHO_T}$ac_cv_lib_resolv_strcasecmp" >&6
13270
 
if test $ac_cv_lib_resolv_strcasecmp = yes; then
 
9036
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_strcasecmp" >&5
 
9037
$as_echo "$ac_cv_lib_resolv_strcasecmp" >&6; }
 
9038
if test "x$ac_cv_lib_resolv_strcasecmp" = x""yes; then :
13271
9039
 
13272
9040
 
13273
9041
cf_tr_func=`echo strcasecmp | tr '[a-z]' '[A-Z]'`
13296
9064
LIBS="$LIBS $cf_cv_netlibs"
13297
9065
test $cf_test_netlibs = no && echo "$cf_cv_netlibs" >&6
13298
9066
 
13299
 
       if test "${ac_cv_header_customs_h+set}" = set; then
13300
 
  echo "$as_me:$LINENO: checking for customs.h" >&5
13301
 
echo $ECHO_N "checking for customs.h... $ECHO_C" >&6
13302
 
if test "${ac_cv_header_customs_h+set}" = set; then
13303
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
13304
 
fi
13305
 
echo "$as_me:$LINENO: result: $ac_cv_header_customs_h" >&5
13306
 
echo "${ECHO_T}$ac_cv_header_customs_h" >&6
13307
 
else
13308
 
  # Is the header compilable?
13309
 
echo "$as_me:$LINENO: checking customs.h usability" >&5
13310
 
echo $ECHO_N "checking customs.h usability... $ECHO_C" >&6
13311
 
cat >conftest.$ac_ext <<_ACEOF
13312
 
/* confdefs.h.  */
13313
 
_ACEOF
13314
 
cat confdefs.h >>conftest.$ac_ext
13315
 
cat >>conftest.$ac_ext <<_ACEOF
13316
 
/* end confdefs.h.  */
13317
 
$ac_includes_default
13318
 
#include <customs.h>
13319
 
_ACEOF
13320
 
rm -f conftest.$ac_objext
13321
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13322
 
  (eval $ac_compile) 2>conftest.er1
13323
 
  ac_status=$?
13324
 
  grep -v '^ *+' conftest.er1 >conftest.err
13325
 
  rm -f conftest.er1
13326
 
  cat conftest.err >&5
13327
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13328
 
  (exit $ac_status); } &&
13329
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13330
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13331
 
  (eval $ac_try) 2>&5
13332
 
  ac_status=$?
13333
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13334
 
  (exit $ac_status); }; } &&
13335
 
         { ac_try='test -s conftest.$ac_objext'
13336
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13337
 
  (eval $ac_try) 2>&5
13338
 
  ac_status=$?
13339
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13340
 
  (exit $ac_status); }; }; then
13341
 
  ac_header_compiler=yes
13342
 
else
13343
 
  echo "$as_me: failed program was:" >&5
13344
 
sed 's/^/| /' conftest.$ac_ext >&5
13345
 
 
13346
 
ac_header_compiler=no
13347
 
fi
13348
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13349
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13350
 
echo "${ECHO_T}$ac_header_compiler" >&6
13351
 
 
13352
 
# Is the header present?
13353
 
echo "$as_me:$LINENO: checking customs.h presence" >&5
13354
 
echo $ECHO_N "checking customs.h presence... $ECHO_C" >&6
13355
 
cat >conftest.$ac_ext <<_ACEOF
13356
 
/* confdefs.h.  */
13357
 
_ACEOF
13358
 
cat confdefs.h >>conftest.$ac_ext
13359
 
cat >>conftest.$ac_ext <<_ACEOF
13360
 
/* end confdefs.h.  */
13361
 
#include <customs.h>
13362
 
_ACEOF
13363
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13364
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13365
 
  ac_status=$?
13366
 
  grep -v '^ *+' conftest.er1 >conftest.err
13367
 
  rm -f conftest.er1
13368
 
  cat conftest.err >&5
13369
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13370
 
  (exit $ac_status); } >/dev/null; then
13371
 
  if test -s conftest.err; then
13372
 
    ac_cpp_err=$ac_c_preproc_warn_flag
13373
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13374
 
  else
13375
 
    ac_cpp_err=
13376
 
  fi
13377
 
else
13378
 
  ac_cpp_err=yes
13379
 
fi
13380
 
if test -z "$ac_cpp_err"; then
13381
 
  ac_header_preproc=yes
13382
 
else
13383
 
  echo "$as_me: failed program was:" >&5
13384
 
sed 's/^/| /' conftest.$ac_ext >&5
13385
 
 
13386
 
  ac_header_preproc=no
13387
 
fi
13388
 
rm -f conftest.err conftest.$ac_ext
13389
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13390
 
echo "${ECHO_T}$ac_header_preproc" >&6
13391
 
 
13392
 
# So?  What about this header?
13393
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13394
 
  yes:no: )
13395
 
    { echo "$as_me:$LINENO: WARNING: customs.h: accepted by the compiler, rejected by the preprocessor!" >&5
13396
 
echo "$as_me: WARNING: customs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13397
 
    { echo "$as_me:$LINENO: WARNING: customs.h: proceeding with the compiler's result" >&5
13398
 
echo "$as_me: WARNING: customs.h: proceeding with the compiler's result" >&2;}
13399
 
    ac_header_preproc=yes
13400
 
    ;;
13401
 
  no:yes:* )
13402
 
    { echo "$as_me:$LINENO: WARNING: customs.h: present but cannot be compiled" >&5
13403
 
echo "$as_me: WARNING: customs.h: present but cannot be compiled" >&2;}
13404
 
    { echo "$as_me:$LINENO: WARNING: customs.h:     check for missing prerequisite headers?" >&5
13405
 
echo "$as_me: WARNING: customs.h:     check for missing prerequisite headers?" >&2;}
13406
 
    { echo "$as_me:$LINENO: WARNING: customs.h: see the Autoconf documentation" >&5
13407
 
echo "$as_me: WARNING: customs.h: see the Autoconf documentation" >&2;}
13408
 
    { echo "$as_me:$LINENO: WARNING: customs.h:     section \"Present But Cannot Be Compiled\"" >&5
13409
 
echo "$as_me: WARNING: customs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13410
 
    { echo "$as_me:$LINENO: WARNING: customs.h: proceeding with the preprocessor's result" >&5
13411
 
echo "$as_me: WARNING: customs.h: proceeding with the preprocessor's result" >&2;}
13412
 
    { echo "$as_me:$LINENO: WARNING: customs.h: in the future, the compiler will take precedence" >&5
13413
 
echo "$as_me: WARNING: customs.h: in the future, the compiler will take precedence" >&2;}
13414
 
    (
13415
 
      cat <<\_ASBOX
13416
 
## ------------------------------- ##
13417
 
## Report this to bug-make@gnu.org ##
13418
 
## ------------------------------- ##
13419
 
_ASBOX
13420
 
    ) |
13421
 
      sed "s/^/$as_me: WARNING:     /" >&2
13422
 
    ;;
13423
 
esac
13424
 
echo "$as_me:$LINENO: checking for customs.h" >&5
13425
 
echo $ECHO_N "checking for customs.h... $ECHO_C" >&6
13426
 
if test "${ac_cv_header_customs_h+set}" = set; then
13427
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
13428
 
else
13429
 
  ac_cv_header_customs_h=$ac_header_preproc
13430
 
fi
13431
 
echo "$as_me:$LINENO: result: $ac_cv_header_customs_h" >&5
13432
 
echo "${ECHO_T}$ac_cv_header_customs_h" >&6
13433
 
 
13434
 
fi
13435
 
if test $ac_cv_header_customs_h = yes; then
 
9067
       ac_fn_c_check_header_mongrel "$LINENO" "customs.h" "ac_cv_header_customs_h" "$ac_includes_default"
 
9068
if test "x$ac_cv_header_customs_h" = x""yes; then :
13436
9069
  use_customs=true
13437
9070
                         REMOTE=cstms
13438
9071
                         LIBS="$LIBS -lcustoms" LDFLAGS="$make_ldflags"
13444
9077
 
13445
9078
       ;;
13446
9079
  esac
13447
 
fi;
 
9080
fi
 
9081
 
13448
9082
# Tell automake about this, so it can include the right .c files.
13449
 
 
13450
 
 
13451
 
if test "$use_customs" = true; then
 
9083
 if test "$use_customs" = true; then
13452
9084
  USE_CUSTOMS_TRUE=
13453
9085
  USE_CUSTOMS_FALSE='#'
13454
9086
else
13460
9092
# See if the user asked to handle case insensitive file systems.
13461
9093
 
13462
9094
 
13463
 
 
13464
 
# Check whether --enable-case-insensitive-file-system or --disable-case-insensitive-file-system was given.
13465
 
if test "${enable_case_insensitive_file_system+set}" = set; then
13466
 
  enableval="$enable_case_insensitive_file_system"
13467
 
  case_insensitive_fs="yes" cat >>confdefs.h <<\_ACEOF
13468
 
#define HAVE_CASE_INSENSITIVE_FS 1
13469
 
_ACEOF
 
9095
# Check whether --enable-case-insensitive-file-system was given.
 
9096
if test "${enable_case_insensitive_file_system+set}" = set; then :
 
9097
  enableval=$enable_case_insensitive_file_system; case_insensitive_fs="yes" $as_echo "#define HAVE_CASE_INSENSITIVE_FS 1" >>confdefs.h
13470
9098
 
13471
9099
else
13472
9100
  case_insensitive_fs="no"
13473
 
fi;
 
9101
fi
 
9102
 
13474
9103
 
13475
9104
# See if we can handle the job server feature, and if the user wants it.
13476
9105
 
13477
 
# Check whether --enable-job-server or --disable-job-server was given.
13478
 
if test "${enable_job_server+set}" = set; then
13479
 
  enableval="$enable_job_server"
13480
 
  make_cv_job_server="$enableval" user_job_server="$enableval"
 
9106
# Check whether --enable-job-server was given.
 
9107
if test "${enable_job_server+set}" = set; then :
 
9108
  enableval=$enable_job_server; make_cv_job_server="$enableval" user_job_server="$enableval"
13481
9109
else
13482
9110
  make_cv_job_server="yes"
13483
 
fi;
 
9111
fi
 
9112
 
13484
9113
 
13485
9114
has_wait_nohang=yes
13486
9115
case "$ac_cv_func_waitpid/$ac_cv_func_wait3" in
13487
9116
  no/no) has_wait_nohang=no ;;
13488
9117
esac
13489
9118
 
13490
 
echo "$as_me:$LINENO: checking for SA_RESTART" >&5
13491
 
echo $ECHO_N "checking for SA_RESTART... $ECHO_C" >&6
13492
 
if test "${make_cv_sa_restart+set}" = set; then
13493
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9119
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SA_RESTART" >&5
 
9120
$as_echo_n "checking for SA_RESTART... " >&6; }
 
9121
if test "${make_cv_sa_restart+set}" = set; then :
 
9122
  $as_echo_n "(cached) " >&6
13494
9123
else
13495
9124
 
13496
 
  cat >conftest.$ac_ext <<_ACEOF
13497
 
/* confdefs.h.  */
13498
 
_ACEOF
13499
 
cat confdefs.h >>conftest.$ac_ext
13500
 
cat >>conftest.$ac_ext <<_ACEOF
 
9125
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13501
9126
/* end confdefs.h.  */
13502
9127
#include <signal.h>
13503
9128
int
13508
9133
  return 0;
13509
9134
}
13510
9135
_ACEOF
13511
 
rm -f conftest.$ac_objext
13512
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13513
 
  (eval $ac_compile) 2>conftest.er1
13514
 
  ac_status=$?
13515
 
  grep -v '^ *+' conftest.er1 >conftest.err
13516
 
  rm -f conftest.er1
13517
 
  cat conftest.err >&5
13518
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13519
 
  (exit $ac_status); } &&
13520
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13521
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13522
 
  (eval $ac_try) 2>&5
13523
 
  ac_status=$?
13524
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13525
 
  (exit $ac_status); }; } &&
13526
 
         { ac_try='test -s conftest.$ac_objext'
13527
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13528
 
  (eval $ac_try) 2>&5
13529
 
  ac_status=$?
13530
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13531
 
  (exit $ac_status); }; }; then
 
9136
if ac_fn_c_try_compile "$LINENO"; then :
13532
9137
  make_cv_sa_restart=yes
13533
9138
else
13534
 
  echo "$as_me: failed program was:" >&5
13535
 
sed 's/^/| /' conftest.$ac_ext >&5
13536
 
 
13537
 
make_cv_sa_restart=no
13538
 
fi
13539
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13540
 
fi
13541
 
echo "$as_me:$LINENO: result: $make_cv_sa_restart" >&5
13542
 
echo "${ECHO_T}$make_cv_sa_restart" >&6
 
9139
  make_cv_sa_restart=no
 
9140
fi
 
9141
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
9142
fi
 
9143
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $make_cv_sa_restart" >&5
 
9144
$as_echo "$make_cv_sa_restart" >&6; }
13543
9145
 
13544
9146
if test "$make_cv_sa_restart" != no; then
13545
9147
 
13546
 
cat >>confdefs.h <<\_ACEOF
13547
 
#define HAVE_SA_RESTART 1
13548
 
_ACEOF
 
9148
$as_echo "#define HAVE_SA_RESTART 1" >>confdefs.h
13549
9149
 
13550
9150
fi
13551
9151
 
13558
9158
case "$ac_cv_func_pipe/$ac_cv_func_sigaction/$make_cv_sa_restart/$has_wait_nohang/$make_cv_job_server" in
13559
9159
  yes/yes/yes/yes/yes)
13560
9160
 
13561
 
cat >>confdefs.h <<\_ACEOF
13562
 
#define MAKE_JOBSERVER 1
13563
 
_ACEOF
 
9161
$as_echo "#define MAKE_JOBSERVER 1" >>confdefs.h
13564
9162
;;
13565
9163
esac
13566
9164
 
13569
9167
case "$ac_cv_func_lstat/$ac_cv_func_readlink" in
13570
9168
  yes/yes)
13571
9169
 
13572
 
cat >>confdefs.h <<\_ACEOF
13573
 
#define MAKE_SYMLINKS 1
13574
 
_ACEOF
 
9170
$as_echo "#define MAKE_SYMLINKS 1" >>confdefs.h
13575
9171
;;
13576
9172
esac
13577
9173
 
13578
9174
# Find the SCCS commands, so we can include them in our default rules.
13579
9175
 
13580
 
echo "$as_me:$LINENO: checking for location of SCCS get command" >&5
13581
 
echo $ECHO_N "checking for location of SCCS get command... $ECHO_C" >&6
13582
 
if test "${make_cv_path_sccs_get+set}" = set; then
13583
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9176
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of SCCS get command" >&5
 
9177
$as_echo_n "checking for location of SCCS get command... " >&6; }
 
9178
if test "${make_cv_path_sccs_get+set}" = set; then :
 
9179
  $as_echo_n "(cached) " >&6
13584
9180
else
13585
9181
 
13586
9182
if test -f /usr/sccs/get; then
13589
9185
  make_cv_path_sccs_get=get
13590
9186
fi
13591
9187
fi
13592
 
echo "$as_me:$LINENO: result: $make_cv_path_sccs_get" >&5
13593
 
echo "${ECHO_T}$make_cv_path_sccs_get" >&6
 
9188
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $make_cv_path_sccs_get" >&5
 
9189
$as_echo "$make_cv_path_sccs_get" >&6; }
13594
9190
 
13595
9191
cat >>confdefs.h <<_ACEOF
13596
9192
#define SCCS_GET "$make_cv_path_sccs_get"
13601
9197
if ( /usr/sccs/admin -n s.conftest || admin -n s.conftest ) >/dev/null 2>&1 &&
13602
9198
   test -f s.conftest; then
13603
9199
  # We successfully created an SCCS file.
13604
 
  echo "$as_me:$LINENO: checking if SCCS get command understands -G" >&5
13605
 
echo $ECHO_N "checking if SCCS get command understands -G... $ECHO_C" >&6
13606
 
if test "${make_cv_sys_get_minus_G+set}" = set; then
13607
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9200
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if SCCS get command understands -G" >&5
 
9201
$as_echo_n "checking if SCCS get command understands -G... " >&6; }
 
9202
if test "${make_cv_sys_get_minus_G+set}" = set; then :
 
9203
  $as_echo_n "(cached) " >&6
13608
9204
else
13609
9205
 
13610
9206
    if $make_cv_path_sccs_get -Gconftoast s.conftest >/dev/null 2>&1 &&
13614
9210
       make_cv_sys_get_minus_G=no
13615
9211
    fi
13616
9212
fi
13617
 
echo "$as_me:$LINENO: result: $make_cv_sys_get_minus_G" >&5
13618
 
echo "${ECHO_T}$make_cv_sys_get_minus_G" >&6
 
9213
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $make_cv_sys_get_minus_G" >&5
 
9214
$as_echo "$make_cv_sys_get_minus_G" >&6; }
13619
9215
  case "$make_cv_sys_get_minus_G" in
13620
9216
    yes)
13621
 
cat >>confdefs.h <<\_ACEOF
13622
 
#define SCCS_GET_MINUS_G 1
13623
 
_ACEOF
 
9217
$as_echo "#define SCCS_GET_MINUS_G 1" >>confdefs.h
13624
9218
;;
13625
9219
  esac
13626
9220
fi
13629
9223
# Check the system to see if it provides GNU glob.  If not, use our
13630
9224
# local version.
13631
9225
 
13632
 
echo "$as_me:$LINENO: checking if system libc has GNU glob" >&5
13633
 
echo $ECHO_N "checking if system libc has GNU glob... $ECHO_C" >&6
13634
 
if test "${make_cv_sys_gnu_glob+set}" = set; then
13635
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9226
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if system libc has GNU glob" >&5
 
9227
$as_echo_n "checking if system libc has GNU glob... " >&6; }
 
9228
if test "${make_cv_sys_gnu_glob+set}" = set; then :
 
9229
  $as_echo_n "(cached) " >&6
13636
9230
else
13637
9231
 
13638
 
 cat >conftest.$ac_ext <<_ACEOF
13639
 
/* confdefs.h.  */
13640
 
_ACEOF
13641
 
cat confdefs.h >>conftest.$ac_ext
13642
 
cat >>conftest.$ac_ext <<_ACEOF
 
9232
 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13643
9233
/* end confdefs.h.  */
13644
9234
 
13645
9235
#include <features.h>
13656
9246
 
13657
9247
_ACEOF
13658
9248
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13659
 
  $EGREP "gnu glob" >/dev/null 2>&1; then
13660
 
  echo "$as_me:$LINENO: result: yes" >&5
13661
 
echo "${ECHO_T}yes" >&6
 
9249
  $EGREP "gnu glob" >/dev/null 2>&1; then :
 
9250
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
9251
$as_echo "yes" >&6; }
13662
9252
make_cv_sys_gnu_glob=yes
13663
9253
else
13664
 
  echo "$as_me:$LINENO: result: no; using local copy" >&5
13665
 
echo "${ECHO_T}no; using local copy" >&6
 
9254
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; using local copy" >&5
 
9255
$as_echo "no; using local copy" >&6; }
13666
9256
 GLOBINC='-I$(srcdir)/glob'
13667
9257
 GLOBLIB=glob/libglob.a
13668
9258
make_cv_sys_gnu_glob=no
13672
9262
fi
13673
9263
 
13674
9264
# Tell automake about this, so it can build the right .c files.
13675
 
 
13676
 
 
13677
 
if test "$make_cv_sys_gnu_glob" = no; then
 
9265
 if test "$make_cv_sys_gnu_glob" = no; then
13678
9266
  USE_LOCAL_GLOB_TRUE=
13679
9267
  USE_LOCAL_GLOB_FALSE='#'
13680
9268
else
13694
9282
 
13695
9283
 
13696
9284
w32_target_env=no
13697
 
 
13698
 
 
13699
 
if false; then
 
9285
 if false; then
13700
9286
  WINDOWSENV_TRUE=
13701
9287
  WINDOWSENV_FALSE='#'
13702
9288
else
13707
9293
 
13708
9294
case "$host" in
13709
9295
  *-*-mingw32)
13710
 
 
13711
 
 
13712
 
if true; then
 
9296
     if true; then
13713
9297
  WINDOWSENV_TRUE=
13714
9298
  WINDOWSENV_FALSE='#'
13715
9299
else
13719
9303
 
13720
9304
    w32_target_env=yes
13721
9305
 
13722
 
cat >>confdefs.h <<\_ACEOF
13723
 
#define WINDOWS32 1
13724
 
_ACEOF
13725
 
 
13726
 
 
13727
 
cat >>confdefs.h <<\_ACEOF
13728
 
#define HAVE_DOS_PATHS 1
13729
 
_ACEOF
 
9306
$as_echo "#define WINDOWS32 1" >>confdefs.h
 
9307
 
 
9308
 
 
9309
$as_echo "#define HAVE_DOS_PATHS 1" >>confdefs.h
13730
9310
 
13731
9311
    ;;
13732
9312
esac
13740
9320
 
13741
9321
 
13742
9322
# Allow building with dmalloc
13743
 
echo "$as_me:$LINENO: checking if malloc debugging is wanted" >&5
13744
 
echo $ECHO_N "checking if malloc debugging is wanted... $ECHO_C" >&6
13745
 
 
13746
 
# Check whether --with-dmalloc or --without-dmalloc was given.
13747
 
if test "${with_dmalloc+set}" = set; then
13748
 
  withval="$with_dmalloc"
13749
 
  if test "$withval" = yes; then
13750
 
  echo "$as_me:$LINENO: result: yes" >&5
13751
 
echo "${ECHO_T}yes" >&6
13752
 
 
13753
 
cat >>confdefs.h <<\_ACEOF
13754
 
#define WITH_DMALLOC 1
13755
 
_ACEOF
 
9323
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
 
9324
$as_echo_n "checking if malloc debugging is wanted... " >&6; }
 
9325
 
 
9326
# Check whether --with-dmalloc was given.
 
9327
if test "${with_dmalloc+set}" = set; then :
 
9328
  withval=$with_dmalloc; if test "$withval" = yes; then
 
9329
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
9330
$as_echo "yes" >&6; }
 
9331
 
 
9332
$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
13756
9333
 
13757
9334
  LIBS="$LIBS -ldmalloc"
13758
9335
  LDFLAGS="$LDFLAGS -g"
13759
9336
else
13760
 
  echo "$as_me:$LINENO: result: no" >&5
13761
 
echo "${ECHO_T}no" >&6
 
9337
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
9338
$as_echo "no" >&6; }
13762
9339
fi
13763
9340
else
13764
 
  echo "$as_me:$LINENO: result: no" >&5
13765
 
echo "${ECHO_T}no" >&6
13766
 
fi;
 
9341
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
9342
$as_echo "no" >&6; }
 
9343
fi
 
9344
 
13767
9345
 
13768
9346
 
13769
9347
# Forcibly disable SET_MAKE.  If it's set it breaks things like the test
13813
9391
 
13814
9392
 
13815
9393
# Specify what files are to be created.
13816
 
                                                            ac_config_files="$ac_config_files Makefile glob/Makefile po/Makefile.in config/Makefile w32/Makefile"
 
9394
ac_config_files="$ac_config_files Makefile glob/Makefile po/Makefile.in config/Makefile w32/Makefile"
13817
9395
 
13818
9396
 
13819
9397
# OK, do it!
13836
9414
 
13837
9415
# The following way of writing the cache mishandles newlines in values,
13838
9416
# but we know of no workaround that is simple, portable, and efficient.
13839
 
# So, don't put newlines in cache variables' values.
 
9417
# So, we kill variables containing newlines.
13840
9418
# Ultrix sh set writes to stderr and can't be redirected directly,
13841
9419
# and sets the high bit in the cache file unless we assign to the vars.
13842
 
{
 
9420
(
 
9421
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
 
9422
    eval ac_val=\$$ac_var
 
9423
    case $ac_val in #(
 
9424
    *${as_nl}*)
 
9425
      case $ac_var in #(
 
9426
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
 
9427
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
 
9428
      esac
 
9429
      case $ac_var in #(
 
9430
      _ | IFS | as_nl) ;; #(
 
9431
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 
9432
      *) { eval $ac_var=; unset $ac_var;} ;;
 
9433
      esac ;;
 
9434
    esac
 
9435
  done
 
9436
 
13843
9437
  (set) 2>&1 |
13844
 
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
13845
 
    *ac_space=\ *)
13846
 
      # `set' does not quote correctly, so add quotes (double-quote
13847
 
      # substitution turns \\\\ into \\, and sed turns \\ into \).
 
9438
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
 
9439
    *${as_nl}ac_space=\ *)
 
9440
      # `set' does not quote correctly, so add quotes: double-quote
 
9441
      # substitution turns \\\\ into \\, and sed turns \\ into \.
13848
9442
      sed -n \
13849
9443
        "s/'/'\\\\''/g;
13850
9444
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13851
 
      ;;
 
9445
      ;; #(
13852
9446
    *)
13853
9447
      # `set' quotes correctly as required by POSIX, so do not add quotes.
13854
 
      sed -n \
13855
 
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
9448
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13856
9449
      ;;
13857
 
    esac;
13858
 
} |
 
9450
    esac |
 
9451
    sort
 
9452
) |
13859
9453
  sed '
 
9454
     /^ac_cv_env_/b end
13860
9455
     t clear
13861
 
     : clear
 
9456
     :clear
13862
9457
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13863
9458
     t end
13864
 
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13865
 
     : end' >>confcache
13866
 
if diff $cache_file confcache >/dev/null 2>&1; then :; else
13867
 
  if test -w $cache_file; then
13868
 
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
 
9459
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
9460
     :end' >>confcache
 
9461
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
 
9462
  if test -w "$cache_file"; then
 
9463
    test "x$cache_file" != "x/dev/null" &&
 
9464
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
 
9465
$as_echo "$as_me: updating cache $cache_file" >&6;}
13869
9466
    cat confcache >$cache_file
13870
9467
  else
13871
 
    echo "not updating unwritable cache $cache_file"
 
9468
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
 
9469
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13872
9470
  fi
13873
9471
fi
13874
9472
rm -f confcache
13877
9475
# Let make expand exec_prefix.
13878
9476
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13879
9477
 
13880
 
# VPATH may cause trouble with some makes, so we remove $(srcdir),
13881
 
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13882
 
# trailing colons and then remove the whole line if VPATH becomes empty
13883
 
# (actually we leave an empty line to preserve line numbers).
13884
 
if test "x$srcdir" = x.; then
13885
 
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
13886
 
s/:*\$(srcdir):*/:/;
13887
 
s/:*\${srcdir}:*/:/;
13888
 
s/:*@srcdir@:*/:/;
13889
 
s/^\([^=]*=[     ]*\):*/\1/;
13890
 
s/:*$//;
13891
 
s/^[^=]*=[       ]*$//;
13892
 
}'
13893
 
fi
13894
 
 
13895
9478
DEFS=-DHAVE_CONFIG_H
13896
9479
 
13897
9480
ac_libobjs=
13898
9481
ac_ltlibobjs=
13899
9482
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13900
9483
  # 1. Remove the extension, and $U if already installed.
13901
 
  ac_i=`echo "$ac_i" |
13902
 
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
13903
 
  # 2. Add them.
13904
 
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
13905
 
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
 
9484
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
 
9485
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
 
9486
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
 
9487
  #    will be set to the directory where LIBOBJS objects are built.
 
9488
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
 
9489
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13906
9490
done
13907
9491
LIBOBJS=$ac_libobjs
13908
9492
 
13910
9494
 
13911
9495
 
13912
9496
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13913
 
  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
13914
 
Usually this means the macro was only invoked conditionally." >&5
13915
 
echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
13916
 
Usually this means the macro was only invoked conditionally." >&2;}
13917
 
   { (exit 1); exit 1; }; }
13918
 
fi
 
9497
  as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
 
9498
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
9499
fi
 
9500
 if test -n "$EXEEXT"; then
 
9501
  am__EXEEXT_TRUE=
 
9502
  am__EXEEXT_FALSE='#'
 
9503
else
 
9504
  am__EXEEXT_TRUE='#'
 
9505
  am__EXEEXT_FALSE=
 
9506
fi
 
9507
 
13919
9508
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13920
 
  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
13921
 
Usually this means the macro was only invoked conditionally." >&5
13922
 
echo "$as_me: error: conditional \"AMDEP\" was never defined.
13923
 
Usually this means the macro was only invoked conditionally." >&2;}
13924
 
   { (exit 1); exit 1; }; }
 
9509
  as_fn_error "conditional \"AMDEP\" was never defined.
 
9510
Usually this means the macro was only invoked conditionally." "$LINENO" 5
13925
9511
fi
13926
9512
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13927
 
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13928
 
Usually this means the macro was only invoked conditionally." >&5
13929
 
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13930
 
Usually this means the macro was only invoked conditionally." >&2;}
13931
 
   { (exit 1); exit 1; }; }
 
9513
  as_fn_error "conditional \"am__fastdepCC\" was never defined.
 
9514
Usually this means the macro was only invoked conditionally." "$LINENO" 5
13932
9515
fi
13933
9516
if test -z "${USE_CUSTOMS_TRUE}" && test -z "${USE_CUSTOMS_FALSE}"; then
13934
 
  { { echo "$as_me:$LINENO: error: conditional \"USE_CUSTOMS\" was never defined.
13935
 
Usually this means the macro was only invoked conditionally." >&5
13936
 
echo "$as_me: error: conditional \"USE_CUSTOMS\" was never defined.
13937
 
Usually this means the macro was only invoked conditionally." >&2;}
13938
 
   { (exit 1); exit 1; }; }
 
9517
  as_fn_error "conditional \"USE_CUSTOMS\" was never defined.
 
9518
Usually this means the macro was only invoked conditionally." "$LINENO" 5
13939
9519
fi
13940
9520
if test -z "${USE_LOCAL_GLOB_TRUE}" && test -z "${USE_LOCAL_GLOB_FALSE}"; then
13941
 
  { { echo "$as_me:$LINENO: error: conditional \"USE_LOCAL_GLOB\" was never defined.
13942
 
Usually this means the macro was only invoked conditionally." >&5
13943
 
echo "$as_me: error: conditional \"USE_LOCAL_GLOB\" was never defined.
13944
 
Usually this means the macro was only invoked conditionally." >&2;}
13945
 
   { (exit 1); exit 1; }; }
13946
 
fi
13947
 
if test -z "${WINDOWSENV_TRUE}" && test -z "${WINDOWSENV_FALSE}"; then
13948
 
  { { echo "$as_me:$LINENO: error: conditional \"WINDOWSENV\" was never defined.
13949
 
Usually this means the macro was only invoked conditionally." >&5
13950
 
echo "$as_me: error: conditional \"WINDOWSENV\" was never defined.
13951
 
Usually this means the macro was only invoked conditionally." >&2;}
13952
 
   { (exit 1); exit 1; }; }
13953
 
fi
13954
 
if test -z "${WINDOWSENV_TRUE}" && test -z "${WINDOWSENV_FALSE}"; then
13955
 
  { { echo "$as_me:$LINENO: error: conditional \"WINDOWSENV\" was never defined.
13956
 
Usually this means the macro was only invoked conditionally." >&5
13957
 
echo "$as_me: error: conditional \"WINDOWSENV\" was never defined.
13958
 
Usually this means the macro was only invoked conditionally." >&2;}
13959
 
   { (exit 1); exit 1; }; }
 
9521
  as_fn_error "conditional \"USE_LOCAL_GLOB\" was never defined.
 
9522
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
9523
fi
 
9524
if test -z "${WINDOWSENV_TRUE}" && test -z "${WINDOWSENV_FALSE}"; then
 
9525
  as_fn_error "conditional \"WINDOWSENV\" was never defined.
 
9526
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
9527
fi
 
9528
if test -z "${WINDOWSENV_TRUE}" && test -z "${WINDOWSENV_FALSE}"; then
 
9529
  as_fn_error "conditional \"WINDOWSENV\" was never defined.
 
9530
Usually this means the macro was only invoked conditionally." "$LINENO" 5
13960
9531
fi
13961
9532
 
13962
9533
: ${CONFIG_STATUS=./config.status}
 
9534
ac_write_fail=0
13963
9535
ac_clean_files_save=$ac_clean_files
13964
9536
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13965
 
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13966
 
echo "$as_me: creating $CONFIG_STATUS" >&6;}
13967
 
cat >$CONFIG_STATUS <<_ACEOF
 
9537
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
 
9538
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
9539
as_write_fail=0
 
9540
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13968
9541
#! $SHELL
13969
9542
# Generated by $as_me.
13970
9543
# Run this file to recreate the current configuration.
13974
9547
debug=false
13975
9548
ac_cs_recheck=false
13976
9549
ac_cs_silent=false
 
9550
 
13977
9551
SHELL=\${CONFIG_SHELL-$SHELL}
13978
 
_ACEOF
13979
 
 
13980
 
cat >>$CONFIG_STATUS <<\_ACEOF
13981
 
## --------------------- ##
13982
 
## M4sh Initialization.  ##
13983
 
## --------------------- ##
13984
 
 
13985
 
# Be Bourne compatible
13986
 
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
9552
export SHELL
 
9553
_ASEOF
 
9554
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
 
9555
## -------------------- ##
 
9556
## M4sh Initialization. ##
 
9557
## -------------------- ##
 
9558
 
 
9559
# Be more Bourne compatible
 
9560
DUALCASE=1; export DUALCASE # for MKS sh
 
9561
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13987
9562
  emulate sh
13988
9563
  NULLCMD=:
13989
 
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
9564
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13990
9565
  # is contrary to our usage.  Disable this feature.
13991
9566
  alias -g '${1+"$@"}'='"$@"'
13992
 
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
13993
 
  set -o posix
13994
 
fi
13995
 
DUALCASE=1; export DUALCASE # for MKS sh
13996
 
 
13997
 
# Support unset when possible.
13998
 
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13999
 
  as_unset=unset
14000
 
else
14001
 
  as_unset=false
14002
 
fi
14003
 
 
14004
 
 
14005
 
# Work around bugs in pre-3.0 UWIN ksh.
14006
 
$as_unset ENV MAIL MAILPATH
 
9567
  setopt NO_GLOB_SUBST
 
9568
else
 
9569
  case `(set -o) 2>/dev/null` in #(
 
9570
  *posix*) :
 
9571
    set -o posix ;; #(
 
9572
  *) :
 
9573
     ;;
 
9574
esac
 
9575
fi
 
9576
 
 
9577
 
 
9578
as_nl='
 
9579
'
 
9580
export as_nl
 
9581
# Printing a long string crashes Solaris 7 /usr/bin/printf.
 
9582
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
9583
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
 
9584
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
 
9585
# Prefer a ksh shell builtin over an external printf program on Solaris,
 
9586
# but without wasting forks for bash or zsh.
 
9587
if test -z "$BASH_VERSION$ZSH_VERSION" \
 
9588
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
 
9589
  as_echo='print -r --'
 
9590
  as_echo_n='print -rn --'
 
9591
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
 
9592
  as_echo='printf %s\n'
 
9593
  as_echo_n='printf %s'
 
9594
else
 
9595
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
 
9596
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
 
9597
    as_echo_n='/usr/ucb/echo -n'
 
9598
  else
 
9599
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
 
9600
    as_echo_n_body='eval
 
9601
      arg=$1;
 
9602
      case $arg in #(
 
9603
      *"$as_nl"*)
 
9604
        expr "X$arg" : "X\\(.*\\)$as_nl";
 
9605
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
 
9606
      esac;
 
9607
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
 
9608
    '
 
9609
    export as_echo_n_body
 
9610
    as_echo_n='sh -c $as_echo_n_body as_echo'
 
9611
  fi
 
9612
  export as_echo_body
 
9613
  as_echo='sh -c $as_echo_body as_echo'
 
9614
fi
 
9615
 
 
9616
# The user is always right.
 
9617
if test "${PATH_SEPARATOR+set}" != set; then
 
9618
  PATH_SEPARATOR=:
 
9619
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
 
9620
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
 
9621
      PATH_SEPARATOR=';'
 
9622
  }
 
9623
fi
 
9624
 
 
9625
 
 
9626
# IFS
 
9627
# We need space, tab and new line, in precisely that order.  Quoting is
 
9628
# there to prevent editors from complaining about space-tab.
 
9629
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
9630
# splitting by setting IFS to empty value.)
 
9631
IFS=" ""        $as_nl"
 
9632
 
 
9633
# Find who we are.  Look in the path if we contain no directory separator.
 
9634
case $0 in #((
 
9635
  *[\\/]* ) as_myself=$0 ;;
 
9636
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
9637
for as_dir in $PATH
 
9638
do
 
9639
  IFS=$as_save_IFS
 
9640
  test -z "$as_dir" && as_dir=.
 
9641
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
9642
  done
 
9643
IFS=$as_save_IFS
 
9644
 
 
9645
     ;;
 
9646
esac
 
9647
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
9648
# in which case we are not to be found in the path.
 
9649
if test "x$as_myself" = x; then
 
9650
  as_myself=$0
 
9651
fi
 
9652
if test ! -f "$as_myself"; then
 
9653
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
9654
  exit 1
 
9655
fi
 
9656
 
 
9657
# Unset variables that we do not need and which cause bugs (e.g. in
 
9658
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
 
9659
# suppresses any "Segmentation fault" message there.  '((' could
 
9660
# trigger a bug in pdksh 5.2.14.
 
9661
for as_var in BASH_ENV ENV MAIL MAILPATH
 
9662
do eval test x\${$as_var+set} = xset \
 
9663
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
 
9664
done
14007
9665
PS1='$ '
14008
9666
PS2='> '
14009
9667
PS4='+ '
14010
9668
 
14011
9669
# NLS nuisances.
14012
 
for as_var in \
14013
 
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
14014
 
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
14015
 
  LC_TELEPHONE LC_TIME
14016
 
do
14017
 
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
14018
 
    eval $as_var=C; export $as_var
14019
 
  else
14020
 
    $as_unset $as_var
 
9670
LC_ALL=C
 
9671
export LC_ALL
 
9672
LANGUAGE=C
 
9673
export LANGUAGE
 
9674
 
 
9675
# CDPATH.
 
9676
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
9677
 
 
9678
 
 
9679
# as_fn_error ERROR [LINENO LOG_FD]
 
9680
# ---------------------------------
 
9681
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
 
9682
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
 
9683
# script with status $?, using 1 if that was 0.
 
9684
as_fn_error ()
 
9685
{
 
9686
  as_status=$?; test $as_status -eq 0 && as_status=1
 
9687
  if test "$3"; then
 
9688
    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
9689
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14021
9690
  fi
14022
 
done
14023
 
 
14024
 
# Required to use basename.
14025
 
if expr a : '\(a\)' >/dev/null 2>&1; then
 
9691
  $as_echo "$as_me: error: $1" >&2
 
9692
  as_fn_exit $as_status
 
9693
} # as_fn_error
 
9694
 
 
9695
 
 
9696
# as_fn_set_status STATUS
 
9697
# -----------------------
 
9698
# Set $? to STATUS, without forking.
 
9699
as_fn_set_status ()
 
9700
{
 
9701
  return $1
 
9702
} # as_fn_set_status
 
9703
 
 
9704
# as_fn_exit STATUS
 
9705
# -----------------
 
9706
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
 
9707
as_fn_exit ()
 
9708
{
 
9709
  set +e
 
9710
  as_fn_set_status $1
 
9711
  exit $1
 
9712
} # as_fn_exit
 
9713
 
 
9714
# as_fn_unset VAR
 
9715
# ---------------
 
9716
# Portably unset VAR.
 
9717
as_fn_unset ()
 
9718
{
 
9719
  { eval $1=; unset $1;}
 
9720
}
 
9721
as_unset=as_fn_unset
 
9722
# as_fn_append VAR VALUE
 
9723
# ----------------------
 
9724
# Append the text in VALUE to the end of the definition contained in VAR. Take
 
9725
# advantage of any shell optimizations that allow amortized linear growth over
 
9726
# repeated appends, instead of the typical quadratic growth present in naive
 
9727
# implementations.
 
9728
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
 
9729
  eval 'as_fn_append ()
 
9730
  {
 
9731
    eval $1+=\$2
 
9732
  }'
 
9733
else
 
9734
  as_fn_append ()
 
9735
  {
 
9736
    eval $1=\$$1\$2
 
9737
  }
 
9738
fi # as_fn_append
 
9739
 
 
9740
# as_fn_arith ARG...
 
9741
# ------------------
 
9742
# Perform arithmetic evaluation on the ARGs, and store the result in the
 
9743
# global $as_val. Take advantage of shells that can avoid forks. The arguments
 
9744
# must be portable across $(()) and expr.
 
9745
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
 
9746
  eval 'as_fn_arith ()
 
9747
  {
 
9748
    as_val=$(( $* ))
 
9749
  }'
 
9750
else
 
9751
  as_fn_arith ()
 
9752
  {
 
9753
    as_val=`expr "$@" || test $? -eq 1`
 
9754
  }
 
9755
fi # as_fn_arith
 
9756
 
 
9757
 
 
9758
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
9759
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
14026
9760
  as_expr=expr
14027
9761
else
14028
9762
  as_expr=false
14029
9763
fi
14030
9764
 
14031
 
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
9765
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14032
9766
  as_basename=basename
14033
9767
else
14034
9768
  as_basename=false
14035
9769
fi
14036
9770
 
 
9771
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
9772
  as_dirname=dirname
 
9773
else
 
9774
  as_dirname=false
 
9775
fi
14037
9776
 
14038
 
# Name of the executable.
14039
 
as_me=`$as_basename "$0" ||
 
9777
as_me=`$as_basename -- "$0" ||
14040
9778
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14041
9779
         X"$0" : 'X\(//\)$' \| \
14042
 
         X"$0" : 'X\(/\)$' \| \
14043
 
         .     : '\(.\)' 2>/dev/null ||
14044
 
echo X/"$0" |
14045
 
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
14046
 
          /^X\/\(\/\/\)$/{ s//\1/; q; }
14047
 
          /^X\/\(\/\).*/{ s//\1/; q; }
14048
 
          s/.*/./; q'`
14049
 
 
14050
 
 
14051
 
# PATH needs CR, and LINENO needs CR and PATH.
 
9780
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
9781
$as_echo X/"$0" |
 
9782
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
9783
            s//\1/
 
9784
            q
 
9785
          }
 
9786
          /^X\/\(\/\/\)$/{
 
9787
            s//\1/
 
9788
            q
 
9789
          }
 
9790
          /^X\/\(\/\).*/{
 
9791
            s//\1/
 
9792
            q
 
9793
          }
 
9794
          s/.*/./; q'`
 
9795
 
14052
9796
# Avoid depending upon Character Ranges.
14053
9797
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14054
9798
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14056
9800
as_cr_digits='0123456789'
14057
9801
as_cr_alnum=$as_cr_Letters$as_cr_digits
14058
9802
 
14059
 
# The user is always right.
14060
 
if test "${PATH_SEPARATOR+set}" != set; then
14061
 
  echo "#! /bin/sh" >conf$$.sh
14062
 
  echo  "exit 0"   >>conf$$.sh
14063
 
  chmod +x conf$$.sh
14064
 
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14065
 
    PATH_SEPARATOR=';'
14066
 
  else
14067
 
    PATH_SEPARATOR=:
14068
 
  fi
14069
 
  rm -f conf$$.sh
14070
 
fi
14071
 
 
14072
 
 
14073
 
  as_lineno_1=$LINENO
14074
 
  as_lineno_2=$LINENO
14075
 
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14076
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
14077
 
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
14078
 
  # Find who we are.  Look in the path if we contain no path at all
14079
 
  # relative or not.
14080
 
  case $0 in
14081
 
    *[\\/]* ) as_myself=$0 ;;
14082
 
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14083
 
for as_dir in $PATH
14084
 
do
14085
 
  IFS=$as_save_IFS
14086
 
  test -z "$as_dir" && as_dir=.
14087
 
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14088
 
done
14089
 
 
14090
 
       ;;
14091
 
  esac
14092
 
  # We did not find ourselves, most probably we were run as `sh COMMAND'
14093
 
  # in which case we are not to be found in the path.
14094
 
  if test "x$as_myself" = x; then
14095
 
    as_myself=$0
14096
 
  fi
14097
 
  if test ! -f "$as_myself"; then
14098
 
    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
14099
 
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
14100
 
   { (exit 1); exit 1; }; }
14101
 
  fi
14102
 
  case $CONFIG_SHELL in
14103
 
  '')
14104
 
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14105
 
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
14106
 
do
14107
 
  IFS=$as_save_IFS
14108
 
  test -z "$as_dir" && as_dir=.
14109
 
  for as_base in sh bash ksh sh5; do
14110
 
         case $as_dir in
14111
 
         /*)
14112
 
           if ("$as_dir/$as_base" -c '
14113
 
  as_lineno_1=$LINENO
14114
 
  as_lineno_2=$LINENO
14115
 
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14116
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
14117
 
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
14118
 
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
14119
 
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
14120
 
             CONFIG_SHELL=$as_dir/$as_base
14121
 
             export CONFIG_SHELL
14122
 
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
14123
 
           fi;;
14124
 
         esac
14125
 
       done
14126
 
done
14127
 
;;
14128
 
  esac
14129
 
 
14130
 
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14131
 
  # uniformly replaced by the line number.  The first 'sed' inserts a
14132
 
  # line-number line before each line; the second 'sed' does the real
14133
 
  # work.  The second script uses 'N' to pair each line-number line
14134
 
  # with the numbered line, and appends trailing '-' during
14135
 
  # substitution so that $LINENO is not a special case at line end.
14136
 
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14137
 
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
14138
 
  sed '=' <$as_myself |
14139
 
    sed '
14140
 
      N
14141
 
      s,$,-,
14142
 
      : loop
14143
 
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
14144
 
      t loop
14145
 
      s,-$,,
14146
 
      s,^['$as_cr_digits']*\n,,
14147
 
    ' >$as_me.lineno &&
14148
 
  chmod +x $as_me.lineno ||
14149
 
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
14150
 
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
14151
 
   { (exit 1); exit 1; }; }
14152
 
 
14153
 
  # Don't try to exec as it changes $[0], causing all sort of problems
14154
 
  # (the dirname of $[0] is not the place where we might find the
14155
 
  # original and so on.  Autoconf is especially sensible to this).
14156
 
  . ./$as_me.lineno
14157
 
  # Exit status is that of the last command.
14158
 
  exit
14159
 
}
14160
 
 
14161
 
 
14162
 
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
14163
 
  *c*,-n*) ECHO_N= ECHO_C='
14164
 
' ECHO_T='      ' ;;
14165
 
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
14166
 
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
9803
ECHO_C= ECHO_N= ECHO_T=
 
9804
case `echo -n x` in #(((((
 
9805
-n*)
 
9806
  case `echo 'xy\c'` in
 
9807
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
9808
  xy)  ECHO_C='\c';;
 
9809
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
 
9810
       ECHO_T=' ';;
 
9811
  esac;;
 
9812
*)
 
9813
  ECHO_N='-n';;
14167
9814
esac
14168
9815
 
14169
 
if expr a : '\(a\)' >/dev/null 2>&1; then
14170
 
  as_expr=expr
 
9816
rm -f conf$$ conf$$.exe conf$$.file
 
9817
if test -d conf$$.dir; then
 
9818
  rm -f conf$$.dir/conf$$.file
14171
9819
else
14172
 
  as_expr=false
 
9820
  rm -f conf$$.dir
 
9821
  mkdir conf$$.dir 2>/dev/null
14173
9822
fi
14174
 
 
14175
 
rm -f conf$$ conf$$.exe conf$$.file
14176
 
echo >conf$$.file
14177
 
if ln -s conf$$.file conf$$ 2>/dev/null; then
14178
 
  # We could just check for DJGPP; but this test a) works b) is more generic
14179
 
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
14180
 
  if test -f conf$$.exe; then
14181
 
    # Don't use ln at all; we don't have any links
 
9823
if (echo >conf$$.file) 2>/dev/null; then
 
9824
  if ln -s conf$$.file conf$$ 2>/dev/null; then
 
9825
    as_ln_s='ln -s'
 
9826
    # ... but there are two gotchas:
 
9827
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
9828
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
9829
    # In both cases, we have to default to `cp -p'.
 
9830
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
9831
      as_ln_s='cp -p'
 
9832
  elif ln conf$$.file conf$$ 2>/dev/null; then
 
9833
    as_ln_s=ln
 
9834
  else
14182
9835
    as_ln_s='cp -p'
14183
 
  else
14184
 
    as_ln_s='ln -s'
14185
9836
  fi
14186
 
elif ln conf$$.file conf$$ 2>/dev/null; then
14187
 
  as_ln_s=ln
14188
9837
else
14189
9838
  as_ln_s='cp -p'
14190
9839
fi
14191
 
rm -f conf$$ conf$$.exe conf$$.file
14192
 
 
 
9840
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
9841
rmdir conf$$.dir 2>/dev/null
 
9842
 
 
9843
 
 
9844
# as_fn_mkdir_p
 
9845
# -------------
 
9846
# Create "$as_dir" as a directory, including parents if necessary.
 
9847
as_fn_mkdir_p ()
 
9848
{
 
9849
 
 
9850
  case $as_dir in #(
 
9851
  -*) as_dir=./$as_dir;;
 
9852
  esac
 
9853
  test -d "$as_dir" || eval $as_mkdir_p || {
 
9854
    as_dirs=
 
9855
    while :; do
 
9856
      case $as_dir in #(
 
9857
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 
9858
      *) as_qdir=$as_dir;;
 
9859
      esac
 
9860
      as_dirs="'$as_qdir' $as_dirs"
 
9861
      as_dir=`$as_dirname -- "$as_dir" ||
 
9862
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
9863
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
9864
         X"$as_dir" : 'X\(//\)$' \| \
 
9865
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
9866
$as_echo X"$as_dir" |
 
9867
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
9868
            s//\1/
 
9869
            q
 
9870
          }
 
9871
          /^X\(\/\/\)[^/].*/{
 
9872
            s//\1/
 
9873
            q
 
9874
          }
 
9875
          /^X\(\/\/\)$/{
 
9876
            s//\1/
 
9877
            q
 
9878
          }
 
9879
          /^X\(\/\).*/{
 
9880
            s//\1/
 
9881
            q
 
9882
          }
 
9883
          s/.*/./; q'`
 
9884
      test -d "$as_dir" && break
 
9885
    done
 
9886
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
9887
  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
 
9888
 
 
9889
 
 
9890
} # as_fn_mkdir_p
14193
9891
if mkdir -p . 2>/dev/null; then
14194
 
  as_mkdir_p=:
 
9892
  as_mkdir_p='mkdir -p "$as_dir"'
14195
9893
else
14196
9894
  test -d ./-p && rmdir ./-p
14197
9895
  as_mkdir_p=false
14198
9896
fi
14199
9897
 
14200
 
as_executable_p="test -f"
 
9898
if test -x / >/dev/null 2>&1; then
 
9899
  as_test_x='test -x'
 
9900
else
 
9901
  if ls -dL / >/dev/null 2>&1; then
 
9902
    as_ls_L_option=L
 
9903
  else
 
9904
    as_ls_L_option=
 
9905
  fi
 
9906
  as_test_x='
 
9907
    eval sh -c '\''
 
9908
      if test -d "$1"; then
 
9909
        test -d "$1/.";
 
9910
      else
 
9911
        case $1 in #(
 
9912
        -*)set "./$1";;
 
9913
        esac;
 
9914
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
 
9915
        ???[sx]*):;;*)false;;esac;fi
 
9916
    '\'' sh
 
9917
  '
 
9918
fi
 
9919
as_executable_p=$as_test_x
14201
9920
 
14202
9921
# Sed expression to map a string onto a valid CPP name.
14203
9922
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14206
9925
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14207
9926
 
14208
9927
 
14209
 
# IFS
14210
 
# We need space, tab and new line, in precisely that order.
14211
 
as_nl='
14212
 
'
14213
 
IFS="   $as_nl"
14214
 
 
14215
 
# CDPATH.
14216
 
$as_unset CDPATH
14217
 
 
14218
9928
exec 6>&1
 
9929
## ----------------------------------- ##
 
9930
## Main body of $CONFIG_STATUS script. ##
 
9931
## ----------------------------------- ##
 
9932
_ASEOF
 
9933
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14219
9934
 
14220
 
# Open the log real soon, to keep \$[0] and so on meaningful, and to
 
9935
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
9936
# Save the log message, to keep $0 and so on meaningful, and to
14221
9937
# report actual input values of CONFIG_FILES etc. instead of their
14222
 
# values after options handling.  Logging --version etc. is OK.
14223
 
exec 5>>config.log
14224
 
{
14225
 
  echo
14226
 
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14227
 
## Running $as_me. ##
14228
 
_ASBOX
14229
 
} >&5
14230
 
cat >&5 <<_CSEOF
14231
 
 
 
9938
# values after options handling.
 
9939
ac_log="
14232
9940
This file was extended by GNU make $as_me 3.81, which was
14233
 
generated by GNU Autoconf 2.59.  Invocation command line was
 
9941
generated by GNU Autoconf 2.65.  Invocation command line was
14234
9942
 
14235
9943
  CONFIG_FILES    = $CONFIG_FILES
14236
9944
  CONFIG_HEADERS  = $CONFIG_HEADERS
14238
9946
  CONFIG_COMMANDS = $CONFIG_COMMANDS
14239
9947
  $ $0 $@
14240
9948
 
14241
 
_CSEOF
14242
 
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
14243
 
echo >&5
 
9949
on `(hostname || uname -n) 2>/dev/null | sed 1q`
 
9950
"
 
9951
 
14244
9952
_ACEOF
14245
9953
 
 
9954
case $ac_config_files in *"
 
9955
"*) set x $ac_config_files; shift; ac_config_files=$*;;
 
9956
esac
 
9957
 
 
9958
case $ac_config_headers in *"
 
9959
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
 
9960
esac
 
9961
 
 
9962
 
 
9963
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14246
9964
# Files that config.status was made for.
14247
 
if test -n "$ac_config_files"; then
14248
 
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
14249
 
fi
14250
 
 
14251
 
if test -n "$ac_config_headers"; then
14252
 
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
14253
 
fi
14254
 
 
14255
 
if test -n "$ac_config_links"; then
14256
 
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
14257
 
fi
14258
 
 
14259
 
if test -n "$ac_config_commands"; then
14260
 
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
14261
 
fi
14262
 
 
14263
 
cat >>$CONFIG_STATUS <<\_ACEOF
14264
 
 
 
9965
config_files="$ac_config_files"
 
9966
config_headers="$ac_config_headers"
 
9967
config_commands="$ac_config_commands"
 
9968
 
 
9969
_ACEOF
 
9970
 
 
9971
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14265
9972
ac_cs_usage="\
14266
 
\`$as_me' instantiates files from templates according to the
14267
 
current configuration.
 
9973
\`$as_me' instantiates files and other configuration actions
 
9974
from templates according to the current configuration.  Unless the files
 
9975
and actions are specified as TAGs, all are instantiated by default.
14268
9976
 
14269
 
Usage: $0 [OPTIONS] [FILE]...
 
9977
Usage: $0 [OPTION]... [TAG]...
14270
9978
 
14271
9979
  -h, --help       print this help, then exit
14272
 
  -V, --version    print version number, then exit
14273
 
  -q, --quiet      do not print progress messages
 
9980
  -V, --version    print version number and configuration settings, then exit
 
9981
      --config     print configuration, then exit
 
9982
  -q, --quiet, --silent
 
9983
                   do not print progress messages
14274
9984
  -d, --debug      don't remove temporary files
14275
9985
      --recheck    update $as_me by reconfiguring in the same conditions
14276
 
  --file=FILE[:TEMPLATE]
14277
 
                   instantiate the configuration file FILE
14278
 
  --header=FILE[:TEMPLATE]
14279
 
                   instantiate the configuration header FILE
 
9986
      --file=FILE[:TEMPLATE]
 
9987
                   instantiate the configuration file FILE
 
9988
      --header=FILE[:TEMPLATE]
 
9989
                   instantiate the configuration header FILE
14280
9990
 
14281
9991
Configuration files:
14282
9992
$config_files
14287
9997
Configuration commands:
14288
9998
$config_commands
14289
9999
 
14290
 
Report bugs to <bug-autoconf@gnu.org>."
 
10000
Report bugs to <bug-make@gnu.org>.
 
10001
GNU make home page: <http://www.gnu.org/software/make/>.
 
10002
General help using GNU software: <http://www.gnu.org/gethelp/>."
 
10003
 
14291
10004
_ACEOF
14292
 
 
14293
 
cat >>$CONFIG_STATUS <<_ACEOF
 
10005
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
10006
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14294
10007
ac_cs_version="\\
14295
10008
GNU make config.status 3.81
14296
 
configured by $0, generated by GNU Autoconf 2.59,
14297
 
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
 
10009
configured by $0, generated by GNU Autoconf 2.65,
 
10010
  with options \\"\$ac_cs_config\\"
14298
10011
 
14299
 
Copyright (C) 2003 Free Software Foundation, Inc.
 
10012
Copyright (C) 2009 Free Software Foundation, Inc.
14300
10013
This config.status script is free software; the Free Software Foundation
14301
10014
gives unlimited permission to copy, distribute and modify it."
14302
 
srcdir=$srcdir
14303
 
INSTALL="$INSTALL"
 
10015
 
 
10016
ac_pwd='$ac_pwd'
 
10017
srcdir='$srcdir'
 
10018
INSTALL='$INSTALL'
 
10019
MKDIR_P='$MKDIR_P'
 
10020
AWK='$AWK'
 
10021
test -n "\$AWK" || AWK=awk
14304
10022
_ACEOF
14305
10023
 
14306
 
cat >>$CONFIG_STATUS <<\_ACEOF
14307
 
# If no file are specified by the user, then we need to provide default
14308
 
# value.  By we need to know if files were specified by the user.
 
10024
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
10025
# The default lists apply if the user does not specify any file.
14309
10026
ac_need_defaults=:
14310
10027
while test $# != 0
14311
10028
do
14312
10029
  case $1 in
14313
10030
  --*=*)
14314
 
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
14315
 
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
 
10031
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
 
10032
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14316
10033
    ac_shift=:
14317
10034
    ;;
14318
 
  -*)
 
10035
  *)
14319
10036
    ac_option=$1
14320
10037
    ac_optarg=$2
14321
10038
    ac_shift=shift
14322
10039
    ;;
14323
 
  *) # This is not an option, so the user has probably given explicit
14324
 
     # arguments.
14325
 
     ac_option=$1
14326
 
     ac_need_defaults=false;;
14327
10040
  esac
14328
10041
 
14329
10042
  case $ac_option in
14330
10043
  # Handling of the options.
14331
 
_ACEOF
14332
 
cat >>$CONFIG_STATUS <<\_ACEOF
14333
10044
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14334
10045
    ac_cs_recheck=: ;;
14335
 
  --version | --vers* | -V )
14336
 
    echo "$ac_cs_version"; exit 0 ;;
 
10046
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
 
10047
    $as_echo "$ac_cs_version"; exit ;;
 
10048
  --config | --confi | --conf | --con | --co | --c )
 
10049
    $as_echo "$ac_cs_config"; exit ;;
 
10050
  --debug | --debu | --deb | --de | --d | -d )
 
10051
    debug=: ;;
 
10052
  --file | --fil | --fi | --f )
 
10053
    $ac_shift
 
10054
    case $ac_optarg in
 
10055
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
10056
    esac
 
10057
    as_fn_append CONFIG_FILES " '$ac_optarg'"
 
10058
    ac_need_defaults=false;;
 
10059
  --header | --heade | --head | --hea )
 
10060
    $ac_shift
 
10061
    case $ac_optarg in
 
10062
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
10063
    esac
 
10064
    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
 
10065
    ac_need_defaults=false;;
14337
10066
  --he | --h)
14338
10067
    # Conflict between --help and --header
14339
 
    { { echo "$as_me:$LINENO: error: ambiguous option: $1
14340
 
Try \`$0 --help' for more information." >&5
14341
 
echo "$as_me: error: ambiguous option: $1
14342
 
Try \`$0 --help' for more information." >&2;}
14343
 
   { (exit 1); exit 1; }; };;
 
10068
    as_fn_error "ambiguous option: \`$1'
 
10069
Try \`$0 --help' for more information.";;
14344
10070
  --help | --hel | -h )
14345
 
    echo "$ac_cs_usage"; exit 0 ;;
14346
 
  --debug | --d* | -d )
14347
 
    debug=: ;;
14348
 
  --file | --fil | --fi | --f )
14349
 
    $ac_shift
14350
 
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
14351
 
    ac_need_defaults=false;;
14352
 
  --header | --heade | --head | --hea )
14353
 
    $ac_shift
14354
 
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
14355
 
    ac_need_defaults=false;;
 
10071
    $as_echo "$ac_cs_usage"; exit ;;
14356
10072
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14357
10073
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
14358
10074
    ac_cs_silent=: ;;
14359
10075
 
14360
10076
  # This is an error.
14361
 
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
14362
 
Try \`$0 --help' for more information." >&5
14363
 
echo "$as_me: error: unrecognized option: $1
14364
 
Try \`$0 --help' for more information." >&2;}
14365
 
   { (exit 1); exit 1; }; } ;;
 
10077
  -*) as_fn_error "unrecognized option: \`$1'
 
10078
Try \`$0 --help' for more information." ;;
14366
10079
 
14367
 
  *) ac_config_targets="$ac_config_targets $1" ;;
 
10080
  *) as_fn_append ac_config_targets " $1"
 
10081
     ac_need_defaults=false ;;
14368
10082
 
14369
10083
  esac
14370
10084
  shift
14378
10092
fi
14379
10093
 
14380
10094
_ACEOF
14381
 
cat >>$CONFIG_STATUS <<_ACEOF
 
10095
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14382
10096
if \$ac_cs_recheck; then
14383
 
  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
14384
 
  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
10097
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
10098
  shift
 
10099
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
 
10100
  CONFIG_SHELL='$SHELL'
 
10101
  export CONFIG_SHELL
 
10102
  exec "\$@"
14385
10103
fi
14386
10104
 
14387
10105
_ACEOF
14388
 
 
14389
 
cat >>$CONFIG_STATUS <<_ACEOF
14390
 
#
14391
 
# INIT-COMMANDS section.
14392
 
#
14393
 
 
 
10106
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
10107
exec 5>>config.log
 
10108
{
 
10109
  echo
 
10110
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
10111
## Running $as_me. ##
 
10112
_ASBOX
 
10113
  $as_echo "$ac_log"
 
10114
} >&5
 
10115
 
 
10116
_ACEOF
 
10117
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
10118
#
 
10119
# INIT-COMMANDS
 
10120
#
14394
10121
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14395
10122
# Capture the value of obsolete ALL_LINGUAS because we need it to compute
14396
10123
    # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
14402
10129
 
14403
10130
_ACEOF
14404
10131
 
14405
 
 
14406
 
 
14407
 
cat >>$CONFIG_STATUS <<\_ACEOF
 
10132
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
10133
 
 
10134
# Handling of arguments.
14408
10135
for ac_config_target in $ac_config_targets
14409
10136
do
14410
 
  case "$ac_config_target" in
14411
 
  # Handling of arguments.
14412
 
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14413
 
  "glob/Makefile" ) CONFIG_FILES="$CONFIG_FILES glob/Makefile" ;;
14414
 
  "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
14415
 
  "config/Makefile" ) CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
14416
 
  "w32/Makefile" ) CONFIG_FILES="$CONFIG_FILES w32/Makefile" ;;
14417
 
  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14418
 
  "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
14419
 
  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14420
 
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14421
 
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14422
 
   { (exit 1); exit 1; }; };;
 
10137
  case $ac_config_target in
 
10138
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
 
10139
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 
10140
    "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
 
10141
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
10142
    "glob/Makefile") CONFIG_FILES="$CONFIG_FILES glob/Makefile" ;;
 
10143
    "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
 
10144
    "config/Makefile") CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
 
10145
    "w32/Makefile") CONFIG_FILES="$CONFIG_FILES w32/Makefile" ;;
 
10146
 
 
10147
  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14423
10148
  esac
14424
10149
done
14425
10150
 
 
10151
 
14426
10152
# If the user did not use the arguments to specify the items to instantiate,
14427
10153
# then the envvar interface is used.  Set only those that are not.
14428
10154
# We use the long form for the default assignment because of an extremely
14434
10160
fi
14435
10161
 
14436
10162
# Have a temporary directory for convenience.  Make it in the build tree
14437
 
# simply because there is no reason to put it here, and in addition,
 
10163
# simply because there is no reason against having it here, and in addition,
14438
10164
# creating and moving files from /tmp can sometimes cause problems.
14439
 
# Create a temporary directory, and hook for its removal unless debugging.
 
10165
# Hook for its removal unless debugging.
 
10166
# Note that there is a small window in which the directory will not be cleaned:
 
10167
# after its creation but before its name has been assigned to `$tmp'.
14440
10168
$debug ||
14441
10169
{
14442
 
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
14443
 
  trap '{ (exit 1); exit 1; }' 1 2 13 15
 
10170
  tmp=
 
10171
  trap 'exit_status=$?
 
10172
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
 
10173
' 0
 
10174
  trap 'as_fn_exit 1' 1 2 13 15
14444
10175
}
14445
 
 
14446
10176
# Create a (secure) tmp directory for tmp files.
14447
10177
 
14448
10178
{
14449
 
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
 
10179
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14450
10180
  test -n "$tmp" && test -d "$tmp"
14451
10181
}  ||
14452
10182
{
14453
 
  tmp=./confstat$$-$RANDOM
14454
 
  (umask 077 && mkdir $tmp)
14455
 
} ||
14456
 
{
14457
 
   echo "$me: cannot create a temporary directory in ." >&2
14458
 
   { (exit 1); exit 1; }
14459
 
}
14460
 
 
14461
 
_ACEOF
14462
 
 
14463
 
cat >>$CONFIG_STATUS <<_ACEOF
14464
 
 
14465
 
#
14466
 
# CONFIG_FILES section.
14467
 
#
14468
 
 
14469
 
# No need to generate the scripts if there are no CONFIG_FILES.
14470
 
# This happens for instance when ./config.status config.h
14471
 
if test -n "\$CONFIG_FILES"; then
14472
 
  # Protect against being on the right side of a sed subst in config.status.
14473
 
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
14474
 
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
14475
 
s,@SHELL@,$SHELL,;t t
14476
 
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
14477
 
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
14478
 
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
14479
 
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
14480
 
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
14481
 
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
14482
 
s,@exec_prefix@,$exec_prefix,;t t
14483
 
s,@prefix@,$prefix,;t t
14484
 
s,@program_transform_name@,$program_transform_name,;t t
14485
 
s,@bindir@,$bindir,;t t
14486
 
s,@sbindir@,$sbindir,;t t
14487
 
s,@libexecdir@,$libexecdir,;t t
14488
 
s,@datadir@,$datadir,;t t
14489
 
s,@sysconfdir@,$sysconfdir,;t t
14490
 
s,@sharedstatedir@,$sharedstatedir,;t t
14491
 
s,@localstatedir@,$localstatedir,;t t
14492
 
s,@libdir@,$libdir,;t t
14493
 
s,@includedir@,$includedir,;t t
14494
 
s,@oldincludedir@,$oldincludedir,;t t
14495
 
s,@infodir@,$infodir,;t t
14496
 
s,@mandir@,$mandir,;t t
14497
 
s,@build_alias@,$build_alias,;t t
14498
 
s,@host_alias@,$host_alias,;t t
14499
 
s,@target_alias@,$target_alias,;t t
14500
 
s,@DEFS@,$DEFS,;t t
14501
 
s,@ECHO_C@,$ECHO_C,;t t
14502
 
s,@ECHO_N@,$ECHO_N,;t t
14503
 
s,@ECHO_T@,$ECHO_T,;t t
14504
 
s,@LIBS@,$LIBS,;t t
14505
 
s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
14506
 
s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
14507
 
s,@MAINT@,$MAINT,;t t
14508
 
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
14509
 
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
14510
 
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
14511
 
s,@CYGPATH_W@,$CYGPATH_W,;t t
14512
 
s,@PACKAGE@,$PACKAGE,;t t
14513
 
s,@VERSION@,$VERSION,;t t
14514
 
s,@ACLOCAL@,$ACLOCAL,;t t
14515
 
s,@AUTOCONF@,$AUTOCONF,;t t
14516
 
s,@AUTOMAKE@,$AUTOMAKE,;t t
14517
 
s,@AUTOHEADER@,$AUTOHEADER,;t t
14518
 
s,@MAKEINFO@,$MAKEINFO,;t t
14519
 
s,@install_sh@,$install_sh,;t t
14520
 
s,@STRIP@,$STRIP,;t t
14521
 
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
14522
 
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
14523
 
s,@mkdir_p@,$mkdir_p,;t t
14524
 
s,@AWK@,$AWK,;t t
14525
 
s,@SET_MAKE@,$SET_MAKE,;t t
14526
 
s,@am__leading_dot@,$am__leading_dot,;t t
14527
 
s,@AMTAR@,$AMTAR,;t t
14528
 
s,@am__tar@,$am__tar,;t t
14529
 
s,@am__untar@,$am__untar,;t t
14530
 
s,@CC@,$CC,;t t
14531
 
s,@CFLAGS@,$CFLAGS,;t t
14532
 
s,@LDFLAGS@,$LDFLAGS,;t t
14533
 
s,@CPPFLAGS@,$CPPFLAGS,;t t
14534
 
s,@ac_ct_CC@,$ac_ct_CC,;t t
14535
 
s,@EXEEXT@,$EXEEXT,;t t
14536
 
s,@OBJEXT@,$OBJEXT,;t t
14537
 
s,@DEPDIR@,$DEPDIR,;t t
14538
 
s,@am__include@,$am__include,;t t
14539
 
s,@am__quote@,$am__quote,;t t
14540
 
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
14541
 
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
14542
 
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
14543
 
s,@CCDEPMODE@,$CCDEPMODE,;t t
14544
 
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
14545
 
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
14546
 
s,@RANLIB@,$RANLIB,;t t
14547
 
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
14548
 
s,@CPP@,$CPP,;t t
14549
 
s,@AR@,$AR,;t t
14550
 
s,@PERL@,$PERL,;t t
14551
 
s,@build@,$build,;t t
14552
 
s,@build_cpu@,$build_cpu,;t t
14553
 
s,@build_vendor@,$build_vendor,;t t
14554
 
s,@build_os@,$build_os,;t t
14555
 
s,@host@,$host,;t t
14556
 
s,@host_cpu@,$host_cpu,;t t
14557
 
s,@host_vendor@,$host_vendor,;t t
14558
 
s,@host_os@,$host_os,;t t
14559
 
s,@EGREP@,$EGREP,;t t
14560
 
s,@U@,$U,;t t
14561
 
s,@ANSI2KNR@,$ANSI2KNR,;t t
14562
 
s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
14563
 
s,@USE_NLS@,$USE_NLS,;t t
14564
 
s,@MSGFMT@,$MSGFMT,;t t
14565
 
s,@GMSGFMT@,$GMSGFMT,;t t
14566
 
s,@XGETTEXT@,$XGETTEXT,;t t
14567
 
s,@MSGMERGE@,$MSGMERGE,;t t
14568
 
s,@LIBICONV@,$LIBICONV,;t t
14569
 
s,@LTLIBICONV@,$LTLIBICONV,;t t
14570
 
s,@INTLLIBS@,$INTLLIBS,;t t
14571
 
s,@LIBINTL@,$LIBINTL,;t t
14572
 
s,@LTLIBINTL@,$LTLIBINTL,;t t
14573
 
s,@POSUB@,$POSUB,;t t
14574
 
s,@ALLOCA@,$ALLOCA,;t t
14575
 
s,@LIBOBJS@,$LIBOBJS,;t t
14576
 
s,@NEED_SETGID@,$NEED_SETGID,;t t
14577
 
s,@KMEM_GROUP@,$KMEM_GROUP,;t t
14578
 
s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
14579
 
s,@REMOTE@,$REMOTE,;t t
14580
 
s,@USE_CUSTOMS_TRUE@,$USE_CUSTOMS_TRUE,;t t
14581
 
s,@USE_CUSTOMS_FALSE@,$USE_CUSTOMS_FALSE,;t t
14582
 
s,@GLOBINC@,$GLOBINC,;t t
14583
 
s,@GLOBLIB@,$GLOBLIB,;t t
14584
 
s,@USE_LOCAL_GLOB_TRUE@,$USE_LOCAL_GLOB_TRUE,;t t
14585
 
s,@USE_LOCAL_GLOB_FALSE@,$USE_LOCAL_GLOB_FALSE,;t t
14586
 
s,@MAKE_HOST@,$MAKE_HOST,;t t
14587
 
s,@WINDOWSENV_TRUE@,$WINDOWSENV_TRUE,;t t
14588
 
s,@WINDOWSENV_FALSE@,$WINDOWSENV_FALSE,;t t
14589
 
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
14590
 
/@MAINT_MAKEFILE@/r $MAINT_MAKEFILE
14591
 
s,@MAINT_MAKEFILE@,,;t t
14592
 
CEOF
14593
 
 
14594
 
_ACEOF
14595
 
 
14596
 
  cat >>$CONFIG_STATUS <<\_ACEOF
14597
 
  # Split the substitutions into bite-sized pieces for seds with
14598
 
  # small command number limits, like on Digital OSF/1 and HP-UX.
14599
 
  ac_max_sed_lines=48
14600
 
  ac_sed_frag=1 # Number of current file.
14601
 
  ac_beg=1 # First line for current file.
14602
 
  ac_end=$ac_max_sed_lines # Line after last line for current file.
14603
 
  ac_more_lines=:
14604
 
  ac_sed_cmds=
14605
 
  while $ac_more_lines; do
14606
 
    if test $ac_beg -gt 1; then
14607
 
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14608
 
    else
14609
 
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14610
 
    fi
14611
 
    if test ! -s $tmp/subs.frag; then
14612
 
      ac_more_lines=false
14613
 
    else
14614
 
      # The purpose of the label and of the branching condition is to
14615
 
      # speed up the sed processing (if there are no `@' at all, there
14616
 
      # is no need to browse any of the substitutions).
14617
 
      # These are the two extra sed commands mentioned above.
14618
 
      (echo ':t
14619
 
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
14620
 
      if test -z "$ac_sed_cmds"; then
14621
 
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
14622
 
      else
14623
 
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
14624
 
      fi
14625
 
      ac_sed_frag=`expr $ac_sed_frag + 1`
14626
 
      ac_beg=$ac_end
14627
 
      ac_end=`expr $ac_end + $ac_max_sed_lines`
14628
 
    fi
14629
 
  done
14630
 
  if test -z "$ac_sed_cmds"; then
14631
 
    ac_sed_cmds=cat
 
10183
  tmp=./conf$$-$RANDOM
 
10184
  (umask 077 && mkdir "$tmp")
 
10185
} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
 
10186
 
 
10187
# Set up the scripts for CONFIG_FILES section.
 
10188
# No need to generate them if there are no CONFIG_FILES.
 
10189
# This happens for instance with `./config.status config.h'.
 
10190
if test -n "$CONFIG_FILES"; then
 
10191
 
 
10192
if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
 
10193
  ac_cs_awk_getline=:
 
10194
  ac_cs_awk_pipe_init=
 
10195
  ac_cs_awk_read_file='
 
10196
      while ((getline aline < (F[key])) > 0)
 
10197
        print(aline)
 
10198
      close(F[key])'
 
10199
  ac_cs_awk_pipe_fini=
 
10200
else
 
10201
  ac_cs_awk_getline=false
 
10202
  ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
 
10203
  ac_cs_awk_read_file='
 
10204
      print "|#_!!_#|"
 
10205
      print "cat " F[key] " &&"
 
10206
      '$ac_cs_awk_pipe_init
 
10207
  # The final `:' finishes the AND list.
 
10208
  ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
 
10209
fi
 
10210
ac_cr=`echo X | tr X '\015'`
 
10211
# On cygwin, bash can eat \r inside `` if the user requested igncr.
 
10212
# But we know of no other shell where ac_cr would be empty at this
 
10213
# point, so we can use a bashism as a fallback.
 
10214
if test "x$ac_cr" = x; then
 
10215
  eval ac_cr=\$\'\\r\'
 
10216
fi
 
10217
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
 
10218
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
 
10219
  ac_cs_awk_cr='\r'
 
10220
else
 
10221
  ac_cs_awk_cr=$ac_cr
 
10222
fi
 
10223
 
 
10224
echo 'BEGIN {' >"$tmp/subs1.awk" &&
 
10225
_ACEOF
 
10226
 
 
10227
# Create commands to substitute file output variables.
 
10228
{
 
10229
  echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
 
10230
  echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
 
10231
  echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
 
10232
  echo "_ACAWK" &&
 
10233
  echo "_ACEOF"
 
10234
} >conf$$files.sh &&
 
10235
. ./conf$$files.sh ||
 
10236
  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
 
10237
rm -f conf$$files.sh
 
10238
 
 
10239
{
 
10240
  echo "cat >conf$$subs.awk <<_ACEOF" &&
 
10241
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
 
10242
  echo "_ACEOF"
 
10243
} >conf$$subs.sh ||
 
10244
  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
 
10245
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
 
10246
ac_delim='%!_!# '
 
10247
for ac_last_try in false false false false false :; do
 
10248
  . ./conf$$subs.sh ||
 
10249
    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
 
10250
 
 
10251
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
 
10252
  if test $ac_delim_n = $ac_delim_num; then
 
10253
    break
 
10254
  elif $ac_last_try; then
 
10255
    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
 
10256
  else
 
10257
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14632
10258
  fi
 
10259
done
 
10260
rm -f conf$$subs.sh
 
10261
 
 
10262
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
10263
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
 
10264
_ACEOF
 
10265
sed -n '
 
10266
h
 
10267
s/^/S["/; s/!.*/"]=/
 
10268
p
 
10269
g
 
10270
s/^[^!]*!//
 
10271
:repl
 
10272
t repl
 
10273
s/'"$ac_delim"'$//
 
10274
t delim
 
10275
:nl
 
10276
h
 
10277
s/\(.\{148\}\)..*/\1/
 
10278
t more1
 
10279
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
 
10280
p
 
10281
n
 
10282
b repl
 
10283
:more1
 
10284
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 
10285
p
 
10286
g
 
10287
s/.\{148\}//
 
10288
t nl
 
10289
:delim
 
10290
h
 
10291
s/\(.\{148\}\)..*/\1/
 
10292
t more2
 
10293
s/["\\]/\\&/g; s/^/"/; s/$/"/
 
10294
p
 
10295
b
 
10296
:more2
 
10297
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 
10298
p
 
10299
g
 
10300
s/.\{148\}//
 
10301
t delim
 
10302
' <conf$$subs.awk | sed '
 
10303
/^[^""]/{
 
10304
  N
 
10305
  s/\n//
 
10306
}
 
10307
' >>$CONFIG_STATUS || ac_write_fail=1
 
10308
rm -f conf$$subs.awk
 
10309
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
10310
_ACAWK
 
10311
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
 
10312
  for (key in S) S_is_set[key] = 1
 
10313
  FS = ""
 
10314
  \$ac_cs_awk_pipe_init
 
10315
}
 
10316
{
 
10317
  line = $ 0
 
10318
  nfields = split(line, field, "@")
 
10319
  substed = 0
 
10320
  len = length(field[1])
 
10321
  for (i = 2; i < nfields; i++) {
 
10322
    key = field[i]
 
10323
    keylen = length(key)
 
10324
    if (S_is_set[key]) {
 
10325
      value = S[key]
 
10326
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
 
10327
      len += length(value) + length(field[++i])
 
10328
      substed = 1
 
10329
    } else
 
10330
      len += 1 + keylen
 
10331
  }
 
10332
  if (nfields == 3 && !substed) {
 
10333
    key = field[2]
 
10334
    if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
 
10335
      \$ac_cs_awk_read_file
 
10336
      next
 
10337
    }
 
10338
  }
 
10339
  print line
 
10340
}
 
10341
\$ac_cs_awk_pipe_fini
 
10342
_ACAWK
 
10343
_ACEOF
 
10344
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
10345
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
 
10346
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
 
10347
else
 
10348
  cat
 
10349
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
 
10350
  || as_fn_error "could not setup config files machinery" "$LINENO" 5
 
10351
_ACEOF
 
10352
 
 
10353
# VPATH may cause trouble with some makes, so we remove $(srcdir),
 
10354
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 
10355
# trailing colons and then remove the whole line if VPATH becomes empty
 
10356
# (actually we leave an empty line to preserve line numbers).
 
10357
if test "x$srcdir" = x.; then
 
10358
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
 
10359
s/:*\$(srcdir):*/:/
 
10360
s/:*\${srcdir}:*/:/
 
10361
s/:*@srcdir@:*/:/
 
10362
s/^\([^=]*=[     ]*\):*/\1/
 
10363
s/:*$//
 
10364
s/^[^=]*=[       ]*$//
 
10365
}'
 
10366
fi
 
10367
 
 
10368
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14633
10369
fi # test -n "$CONFIG_FILES"
14634
10370
 
14635
 
_ACEOF
14636
 
cat >>$CONFIG_STATUS <<\_ACEOF
14637
 
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
14638
 
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14639
 
  case $ac_file in
14640
 
  - | *:- | *:-:* ) # input from stdin
14641
 
        cat >$tmp/stdin
14642
 
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14643
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14644
 
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14645
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14646
 
  * )   ac_file_in=$ac_file.in ;;
14647
 
  esac
14648
 
 
14649
 
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
14650
 
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
10371
# Set up the scripts for CONFIG_HEADERS section.
 
10372
# No need to generate them if there are no CONFIG_HEADERS.
 
10373
# This happens for instance with `./config.status Makefile'.
 
10374
if test -n "$CONFIG_HEADERS"; then
 
10375
cat >"$tmp/defines.awk" <<\_ACAWK ||
 
10376
BEGIN {
 
10377
_ACEOF
 
10378
 
 
10379
# Transform confdefs.h into an awk script `defines.awk', embedded as
 
10380
# here-document in config.status, that substitutes the proper values into
 
10381
# config.h.in to produce config.h.
 
10382
 
 
10383
# Create a delimiter string that does not exist in confdefs.h, to ease
 
10384
# handling of long lines.
 
10385
ac_delim='%!_!# '
 
10386
for ac_last_try in false false :; do
 
10387
  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
 
10388
  if test -z "$ac_t"; then
 
10389
    break
 
10390
  elif $ac_last_try; then
 
10391
    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
 
10392
  else
 
10393
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
10394
  fi
 
10395
done
 
10396
 
 
10397
# For the awk script, D is an array of macro values keyed by name,
 
10398
# likewise P contains macro parameters if any.  Preserve backslash
 
10399
# newline sequences.
 
10400
 
 
10401
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
 
10402
sed -n '
 
10403
s/.\{148\}/&'"$ac_delim"'/g
 
10404
t rset
 
10405
:rset
 
10406
s/^[     ]*#[    ]*define[       ][      ]*/ /
 
10407
t def
 
10408
d
 
10409
:def
 
10410
s/\\$//
 
10411
t bsnl
 
10412
s/["\\]/\\&/g
 
10413
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
 
10414
D["\1"]=" \3"/p
 
10415
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
 
10416
d
 
10417
:bsnl
 
10418
s/["\\]/\\&/g
 
10419
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
 
10420
D["\1"]=" \3\\\\\\n"\\/p
 
10421
t cont
 
10422
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
 
10423
t cont
 
10424
d
 
10425
:cont
 
10426
n
 
10427
s/.\{148\}/&'"$ac_delim"'/g
 
10428
t clear
 
10429
:clear
 
10430
s/\\$//
 
10431
t bsnlc
 
10432
s/["\\]/\\&/g; s/^/"/; s/$/"/p
 
10433
d
 
10434
:bsnlc
 
10435
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
 
10436
b cont
 
10437
' <confdefs.h | sed '
 
10438
s/'"$ac_delim"'/"\\\
 
10439
"/g' >>$CONFIG_STATUS || ac_write_fail=1
 
10440
 
 
10441
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
10442
  for (key in D) D_is_set[key] = 1
 
10443
  FS = ""
 
10444
}
 
10445
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
 
10446
  line = \$ 0
 
10447
  split(line, arg, " ")
 
10448
  if (arg[1] == "#") {
 
10449
    defundef = arg[2]
 
10450
    mac1 = arg[3]
 
10451
  } else {
 
10452
    defundef = substr(arg[1], 2)
 
10453
    mac1 = arg[2]
 
10454
  }
 
10455
  split(mac1, mac2, "(") #)
 
10456
  macro = mac2[1]
 
10457
  prefix = substr(line, 1, index(line, defundef) - 1)
 
10458
  if (D_is_set[macro]) {
 
10459
    # Preserve the white space surrounding the "#".
 
10460
    print prefix "define", macro P[macro] D[macro]
 
10461
    next
 
10462
  } else {
 
10463
    # Replace #undef with comments.  This is necessary, for example,
 
10464
    # in the case of _POSIX_SOURCE, which is predefined and required
 
10465
    # on some systems where configure will not decide to define it.
 
10466
    if (defundef == "undef") {
 
10467
      print "/*", prefix defundef, macro, "*/"
 
10468
      next
 
10469
    }
 
10470
  }
 
10471
}
 
10472
{ print }
 
10473
_ACAWK
 
10474
_ACEOF
 
10475
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
10476
  as_fn_error "could not setup config headers machinery" "$LINENO" 5
 
10477
fi # test -n "$CONFIG_HEADERS"
 
10478
 
 
10479
 
 
10480
eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
 
10481
shift
 
10482
for ac_tag
 
10483
do
 
10484
  case $ac_tag in
 
10485
  :[FHLC]) ac_mode=$ac_tag; continue;;
 
10486
  esac
 
10487
  case $ac_mode$ac_tag in
 
10488
  :[FHL]*:*);;
 
10489
  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
 
10490
  :[FH]-) ac_tag=-:-;;
 
10491
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
 
10492
  esac
 
10493
  ac_save_IFS=$IFS
 
10494
  IFS=:
 
10495
  set x $ac_tag
 
10496
  IFS=$ac_save_IFS
 
10497
  shift
 
10498
  ac_file=$1
 
10499
  shift
 
10500
 
 
10501
  case $ac_mode in
 
10502
  :L) ac_source=$1;;
 
10503
  :[FH])
 
10504
    ac_file_inputs=
 
10505
    for ac_f
 
10506
    do
 
10507
      case $ac_f in
 
10508
      -) ac_f="$tmp/stdin";;
 
10509
      *) # Look for the file first in the build tree, then in the source tree
 
10510
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
 
10511
         # because $ac_f cannot contain `:'.
 
10512
         test -f "$ac_f" ||
 
10513
           case $ac_f in
 
10514
           [\\/$]*) false;;
 
10515
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
 
10516
           esac ||
 
10517
           as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
 
10518
      esac
 
10519
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
 
10520
      as_fn_append ac_file_inputs " '$ac_f'"
 
10521
    done
 
10522
 
 
10523
    # Let's still pretend it is `configure' which instantiates (i.e., don't
 
10524
    # use $as_me), people would be surprised to read:
 
10525
    #    /* config.h.  Generated by config.status.  */
 
10526
    configure_input='Generated from '`
 
10527
          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
 
10528
        `' by configure.'
 
10529
    if test x"$ac_file" != x-; then
 
10530
      configure_input="$ac_file.  $configure_input"
 
10531
      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
 
10532
$as_echo "$as_me: creating $ac_file" >&6;}
 
10533
    fi
 
10534
    # Neutralize special characters interpreted by sed in replacement strings.
 
10535
    case $configure_input in #(
 
10536
    *\&* | *\|* | *\\* )
 
10537
       ac_sed_conf_input=`$as_echo "$configure_input" |
 
10538
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
 
10539
    *) ac_sed_conf_input=$configure_input;;
 
10540
    esac
 
10541
 
 
10542
    case $ac_tag in
 
10543
    *:-:* | *:-) cat >"$tmp/stdin" \
 
10544
      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
 
10545
    esac
 
10546
    ;;
 
10547
  esac
 
10548
 
 
10549
  ac_dir=`$as_dirname -- "$ac_file" ||
14651
10550
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14652
10551
         X"$ac_file" : 'X\(//\)[^/]' \| \
14653
10552
         X"$ac_file" : 'X\(//\)$' \| \
14654
 
         X"$ac_file" : 'X\(/\)' \| \
14655
 
         .     : '\(.\)' 2>/dev/null ||
14656
 
echo X"$ac_file" |
14657
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14658
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14659
 
          /^X\(\/\/\)$/{ s//\1/; q; }
14660
 
          /^X\(\/\).*/{ s//\1/; q; }
14661
 
          s/.*/./; q'`
14662
 
  { if $as_mkdir_p; then
14663
 
    mkdir -p "$ac_dir"
14664
 
  else
14665
 
    as_dir="$ac_dir"
14666
 
    as_dirs=
14667
 
    while test ! -d "$as_dir"; do
14668
 
      as_dirs="$as_dir $as_dirs"
14669
 
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
14670
 
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14671
 
         X"$as_dir" : 'X\(//\)[^/]' \| \
14672
 
         X"$as_dir" : 'X\(//\)$' \| \
14673
 
         X"$as_dir" : 'X\(/\)' \| \
14674
 
         .     : '\(.\)' 2>/dev/null ||
14675
 
echo X"$as_dir" |
14676
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14677
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14678
 
          /^X\(\/\/\)$/{ s//\1/; q; }
14679
 
          /^X\(\/\).*/{ s//\1/; q; }
14680
 
          s/.*/./; q'`
14681
 
    done
14682
 
    test ! -n "$as_dirs" || mkdir $as_dirs
14683
 
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14684
 
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14685
 
   { (exit 1); exit 1; }; }; }
14686
 
 
 
10553
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
 
10554
$as_echo X"$ac_file" |
 
10555
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
10556
            s//\1/
 
10557
            q
 
10558
          }
 
10559
          /^X\(\/\/\)[^/].*/{
 
10560
            s//\1/
 
10561
            q
 
10562
          }
 
10563
          /^X\(\/\/\)$/{
 
10564
            s//\1/
 
10565
            q
 
10566
          }
 
10567
          /^X\(\/\).*/{
 
10568
            s//\1/
 
10569
            q
 
10570
          }
 
10571
          s/.*/./; q'`
 
10572
  as_dir="$ac_dir"; as_fn_mkdir_p
14687
10573
  ac_builddir=.
14688
10574
 
14689
 
if test "$ac_dir" != .; then
14690
 
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14691
 
  # A "../" for each directory in $ac_dir_suffix.
14692
 
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14693
 
else
14694
 
  ac_dir_suffix= ac_top_builddir=
14695
 
fi
 
10575
case "$ac_dir" in
 
10576
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
10577
*)
 
10578
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 
10579
  # A ".." for each directory in $ac_dir_suffix.
 
10580
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 
10581
  case $ac_top_builddir_sub in
 
10582
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
10583
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
10584
  esac ;;
 
10585
esac
 
10586
ac_abs_top_builddir=$ac_pwd
 
10587
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
10588
# for backward compatibility:
 
10589
ac_top_builddir=$ac_top_build_prefix
14696
10590
 
14697
10591
case $srcdir in
14698
 
  .)  # No --srcdir option.  We are building in place.
 
10592
  .)  # We are building in place.
14699
10593
    ac_srcdir=.
14700
 
    if test -z "$ac_top_builddir"; then
14701
 
       ac_top_srcdir=.
14702
 
    else
14703
 
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14704
 
    fi ;;
14705
 
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
10594
    ac_top_srcdir=$ac_top_builddir_sub
 
10595
    ac_abs_top_srcdir=$ac_pwd ;;
 
10596
  [\\/]* | ?:[\\/]* )  # Absolute name.
14706
10597
    ac_srcdir=$srcdir$ac_dir_suffix;
14707
 
    ac_top_srcdir=$srcdir ;;
14708
 
  *) # Relative path.
14709
 
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14710
 
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
14711
 
esac
14712
 
 
14713
 
# Do not use `cd foo && pwd` to compute absolute paths, because
14714
 
# the directories may not exist.
14715
 
case `pwd` in
14716
 
.) ac_abs_builddir="$ac_dir";;
14717
 
*)
14718
 
  case "$ac_dir" in
14719
 
  .) ac_abs_builddir=`pwd`;;
14720
 
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
14721
 
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
14722
 
  esac;;
14723
 
esac
14724
 
case $ac_abs_builddir in
14725
 
.) ac_abs_top_builddir=${ac_top_builddir}.;;
14726
 
*)
14727
 
  case ${ac_top_builddir}. in
14728
 
  .) ac_abs_top_builddir=$ac_abs_builddir;;
14729
 
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
14730
 
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
14731
 
  esac;;
14732
 
esac
14733
 
case $ac_abs_builddir in
14734
 
.) ac_abs_srcdir=$ac_srcdir;;
14735
 
*)
14736
 
  case $ac_srcdir in
14737
 
  .) ac_abs_srcdir=$ac_abs_builddir;;
14738
 
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
14739
 
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
14740
 
  esac;;
14741
 
esac
14742
 
case $ac_abs_builddir in
14743
 
.) ac_abs_top_srcdir=$ac_top_srcdir;;
14744
 
*)
14745
 
  case $ac_top_srcdir in
14746
 
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
14747
 
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
14748
 
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
14749
 
  esac;;
14750
 
esac
14751
 
 
 
10598
    ac_top_srcdir=$srcdir
 
10599
    ac_abs_top_srcdir=$srcdir ;;
 
10600
  *) # Relative name.
 
10601
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
10602
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
10603
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
10604
esac
 
10605
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
10606
 
 
10607
 
 
10608
  case $ac_mode in
 
10609
  :F)
 
10610
  #
 
10611
  # CONFIG_FILE
 
10612
  #
14752
10613
 
14753
10614
  case $INSTALL in
14754
10615
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14755
 
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
14756
 
  esac
14757
 
 
14758
 
  # Let's still pretend it is `configure' which instantiates (i.e., don't
14759
 
  # use $as_me), people would be surprised to read:
14760
 
  #    /* config.h.  Generated by config.status.  */
14761
 
  if test x"$ac_file" = x-; then
14762
 
    configure_input=
14763
 
  else
14764
 
    configure_input="$ac_file.  "
14765
 
  fi
14766
 
  configure_input=$configure_input"Generated from `echo $ac_file_in |
14767
 
                                     sed 's,.*/,,'` by configure."
14768
 
 
14769
 
  # First look for the input files in the build tree, otherwise in the
14770
 
  # src tree.
14771
 
  ac_file_inputs=`IFS=:
14772
 
    for f in $ac_file_in; do
14773
 
      case $f in
14774
 
      -) echo $tmp/stdin ;;
14775
 
      [\\/$]*)
14776
 
         # Absolute (can't be DOS-style, as IFS=:)
14777
 
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14778
 
echo "$as_me: error: cannot find input file: $f" >&2;}
14779
 
   { (exit 1); exit 1; }; }
14780
 
         echo "$f";;
14781
 
      *) # Relative
14782
 
         if test -f "$f"; then
14783
 
           # Build tree
14784
 
           echo "$f"
14785
 
         elif test -f "$srcdir/$f"; then
14786
 
           # Source tree
14787
 
           echo "$srcdir/$f"
14788
 
         else
14789
 
           # /dev/null tree
14790
 
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14791
 
echo "$as_me: error: cannot find input file: $f" >&2;}
14792
 
   { (exit 1); exit 1; }; }
14793
 
         fi;;
14794
 
      esac
14795
 
    done` || { (exit 1); exit 1; }
14796
 
 
14797
 
  if test x"$ac_file" != x-; then
14798
 
    { echo "$as_me:$LINENO: creating $ac_file" >&5
14799
 
echo "$as_me: creating $ac_file" >&6;}
14800
 
    rm -f "$ac_file"
14801
 
  fi
14802
 
_ACEOF
14803
 
cat >>$CONFIG_STATUS <<_ACEOF
14804
 
  sed "$ac_vpsub
 
10616
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
 
10617
  esac
 
10618
  ac_MKDIR_P=$MKDIR_P
 
10619
  case $MKDIR_P in
 
10620
  [\\/$]* | ?:[\\/]* ) ;;
 
10621
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
 
10622
  esac
 
10623
_ACEOF
 
10624
 
 
10625
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
10626
# If the template does not know about datarootdir, expand it.
 
10627
# FIXME: This hack should be removed a few years after 2.60.
 
10628
ac_datarootdir_hack=; ac_datarootdir_seen=
 
10629
ac_sed_dataroot='
 
10630
/datarootdir/ {
 
10631
  p
 
10632
  q
 
10633
}
 
10634
/@datadir@/p
 
10635
/@docdir@/p
 
10636
/@infodir@/p
 
10637
/@localedir@/p
 
10638
/@mandir@/p'
 
10639
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
 
10640
*datarootdir*) ac_datarootdir_seen=yes;;
 
10641
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
 
10642
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
 
10643
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
 
10644
_ACEOF
 
10645
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
10646
  ac_datarootdir_hack='
 
10647
  s&@datadir@&$datadir&g
 
10648
  s&@docdir@&$docdir&g
 
10649
  s&@infodir@&$infodir&g
 
10650
  s&@localedir@&$localedir&g
 
10651
  s&@mandir@&$mandir&g
 
10652
  s&\\\${datarootdir}&$datarootdir&g' ;;
 
10653
esac
 
10654
_ACEOF
 
10655
 
 
10656
# Neutralize VPATH when `$srcdir' = `.'.
 
10657
# Shell code in configure.ac might set extrasub.
 
10658
# FIXME: do we really want to maintain this feature?
 
10659
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
10660
ac_sed_extra="$ac_vpsub
14805
10661
$extrasub
14806
10662
_ACEOF
14807
 
cat >>$CONFIG_STATUS <<\_ACEOF
 
10663
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14808
10664
:t
14809
10665
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14810
 
s,@configure_input@,$configure_input,;t t
14811
 
s,@srcdir@,$ac_srcdir,;t t
14812
 
s,@abs_srcdir@,$ac_abs_srcdir,;t t
14813
 
s,@top_srcdir@,$ac_top_srcdir,;t t
14814
 
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
14815
 
s,@builddir@,$ac_builddir,;t t
14816
 
s,@abs_builddir@,$ac_abs_builddir,;t t
14817
 
s,@top_builddir@,$ac_top_builddir,;t t
14818
 
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
14819
 
s,@INSTALL@,$ac_INSTALL,;t t
14820
 
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
14821
 
  rm -f $tmp/stdin
14822
 
  if test x"$ac_file" != x-; then
14823
 
    mv $tmp/out $ac_file
14824
 
  else
14825
 
    cat $tmp/out
14826
 
    rm -f $tmp/out
14827
 
  fi
14828
 
 
14829
 
done
14830
 
_ACEOF
14831
 
cat >>$CONFIG_STATUS <<\_ACEOF
14832
 
 
14833
 
#
14834
 
# CONFIG_HEADER section.
14835
 
#
14836
 
 
14837
 
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
14838
 
# NAME is the cpp macro being defined and VALUE is the value it is being given.
14839
 
#
14840
 
# ac_d sets the value in "#define NAME VALUE" lines.
14841
 
ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
14842
 
ac_dB='[         ].*$,\1#\2'
14843
 
ac_dC=' '
14844
 
ac_dD=',;t'
14845
 
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
14846
 
ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
14847
 
ac_uB='$,\1#\2define\3'
14848
 
ac_uC=' '
14849
 
ac_uD=',;t'
14850
 
 
14851
 
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
14852
 
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
10666
s|@configure_input@|$ac_sed_conf_input|;t t
 
10667
s&@top_builddir@&$ac_top_builddir_sub&;t t
 
10668
s&@top_build_prefix@&$ac_top_build_prefix&;t t
 
10669
s&@srcdir@&$ac_srcdir&;t t
 
10670
s&@abs_srcdir@&$ac_abs_srcdir&;t t
 
10671
s&@top_srcdir@&$ac_top_srcdir&;t t
 
10672
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
 
10673
s&@builddir@&$ac_builddir&;t t
 
10674
s&@abs_builddir@&$ac_abs_builddir&;t t
 
10675
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
 
10676
s&@INSTALL@&$ac_INSTALL&;t t
 
10677
s&@MKDIR_P@&$ac_MKDIR_P&;t t
 
10678
$ac_datarootdir_hack
 
10679
"
 
10680
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
 
10681
if $ac_cs_awk_getline; then
 
10682
  $AWK -f "$tmp/subs.awk"
 
10683
else
 
10684
  $AWK -f "$tmp/subs.awk" | $SHELL
 
10685
fi >$tmp/out \
 
10686
  || as_fn_error "could not create $ac_file" "$LINENO" 5
 
10687
 
 
10688
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
 
10689
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
 
10690
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
 
10691
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
10692
which seems to be undefined.  Please make sure it is defined." >&5
 
10693
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
10694
which seems to be undefined.  Please make sure it is defined." >&2;}
 
10695
 
 
10696
  rm -f "$tmp/stdin"
14853
10697
  case $ac_file in
14854
 
  - | *:- | *:-:* ) # input from stdin
14855
 
        cat >$tmp/stdin
14856
 
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14857
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14858
 
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14859
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14860
 
  * )   ac_file_in=$ac_file.in ;;
14861
 
  esac
14862
 
 
14863
 
  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
14864
 
echo "$as_me: creating $ac_file" >&6;}
14865
 
 
14866
 
  # First look for the input files in the build tree, otherwise in the
14867
 
  # src tree.
14868
 
  ac_file_inputs=`IFS=:
14869
 
    for f in $ac_file_in; do
14870
 
      case $f in
14871
 
      -) echo $tmp/stdin ;;
14872
 
      [\\/$]*)
14873
 
         # Absolute (can't be DOS-style, as IFS=:)
14874
 
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14875
 
echo "$as_me: error: cannot find input file: $f" >&2;}
14876
 
   { (exit 1); exit 1; }; }
14877
 
         # Do quote $f, to prevent DOS paths from being IFS'd.
14878
 
         echo "$f";;
14879
 
      *) # Relative
14880
 
         if test -f "$f"; then
14881
 
           # Build tree
14882
 
           echo "$f"
14883
 
         elif test -f "$srcdir/$f"; then
14884
 
           # Source tree
14885
 
           echo "$srcdir/$f"
14886
 
         else
14887
 
           # /dev/null tree
14888
 
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14889
 
echo "$as_me: error: cannot find input file: $f" >&2;}
14890
 
   { (exit 1); exit 1; }; }
14891
 
         fi;;
14892
 
      esac
14893
 
    done` || { (exit 1); exit 1; }
14894
 
  # Remove the trailing spaces.
14895
 
  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
14896
 
 
14897
 
_ACEOF
14898
 
 
14899
 
# Transform confdefs.h into two sed scripts, `conftest.defines' and
14900
 
# `conftest.undefs', that substitutes the proper values into
14901
 
# config.h.in to produce config.h.  The first handles `#define'
14902
 
# templates, and the second `#undef' templates.
14903
 
# And first: Protect against being on the right side of a sed subst in
14904
 
# config.status.  Protect against being in an unquoted here document
14905
 
# in config.status.
14906
 
rm -f conftest.defines conftest.undefs
14907
 
# Using a here document instead of a string reduces the quoting nightmare.
14908
 
# Putting comments in sed scripts is not portable.
14909
 
#
14910
 
# `end' is used to avoid that the second main sed command (meant for
14911
 
# 0-ary CPP macros) applies to n-ary macro definitions.
14912
 
# See the Autoconf documentation for `clear'.
14913
 
cat >confdef2sed.sed <<\_ACEOF
14914
 
s/[\\&,]/\\&/g
14915
 
s,[\\$`],\\&,g
14916
 
t clear
14917
 
: clear
14918
 
s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
14919
 
t end
14920
 
s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
14921
 
: end
14922
 
_ACEOF
14923
 
# If some macros were called several times there might be several times
14924
 
# the same #defines, which is useless.  Nevertheless, we may not want to
14925
 
# sort them, since we want the *last* AC-DEFINE to be honored.
14926
 
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
14927
 
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
14928
 
rm -f confdef2sed.sed
14929
 
 
14930
 
# This sed command replaces #undef with comments.  This is necessary, for
14931
 
# example, in the case of _POSIX_SOURCE, which is predefined and required
14932
 
# on some systems where configure will not decide to define it.
14933
 
cat >>conftest.undefs <<\_ACEOF
14934
 
s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
14935
 
_ACEOF
14936
 
 
14937
 
# Break up conftest.defines because some shells have a limit on the size
14938
 
# of here documents, and old seds have small limits too (100 cmds).
14939
 
echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
14940
 
echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
14941
 
echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
14942
 
echo '  :' >>$CONFIG_STATUS
14943
 
rm -f conftest.tail
14944
 
while grep . conftest.defines >/dev/null
14945
 
do
14946
 
  # Write a limited-size here document to $tmp/defines.sed.
14947
 
  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
14948
 
  # Speed up: don't consider the non `#define' lines.
14949
 
  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
14950
 
  # Work around the forget-to-reset-the-flag bug.
14951
 
  echo 't clr' >>$CONFIG_STATUS
14952
 
  echo ': clr' >>$CONFIG_STATUS
14953
 
  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
14954
 
  echo 'CEOF
14955
 
  sed -f $tmp/defines.sed $tmp/in >$tmp/out
14956
 
  rm -f $tmp/in
14957
 
  mv $tmp/out $tmp/in
14958
 
' >>$CONFIG_STATUS
14959
 
  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
14960
 
  rm -f conftest.defines
14961
 
  mv conftest.tail conftest.defines
14962
 
done
14963
 
rm -f conftest.defines
14964
 
echo '  fi # grep' >>$CONFIG_STATUS
14965
 
echo >>$CONFIG_STATUS
14966
 
 
14967
 
# Break up conftest.undefs because some shells have a limit on the size
14968
 
# of here documents, and old seds have small limits too (100 cmds).
14969
 
echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
14970
 
rm -f conftest.tail
14971
 
while grep . conftest.undefs >/dev/null
14972
 
do
14973
 
  # Write a limited-size here document to $tmp/undefs.sed.
14974
 
  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
14975
 
  # Speed up: don't consider the non `#undef'
14976
 
  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
14977
 
  # Work around the forget-to-reset-the-flag bug.
14978
 
  echo 't clr' >>$CONFIG_STATUS
14979
 
  echo ': clr' >>$CONFIG_STATUS
14980
 
  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
14981
 
  echo 'CEOF
14982
 
  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
14983
 
  rm -f $tmp/in
14984
 
  mv $tmp/out $tmp/in
14985
 
' >>$CONFIG_STATUS
14986
 
  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
14987
 
  rm -f conftest.undefs
14988
 
  mv conftest.tail conftest.undefs
14989
 
done
14990
 
rm -f conftest.undefs
14991
 
 
14992
 
cat >>$CONFIG_STATUS <<\_ACEOF
14993
 
  # Let's still pretend it is `configure' which instantiates (i.e., don't
14994
 
  # use $as_me), people would be surprised to read:
14995
 
  #    /* config.h.  Generated by config.status.  */
14996
 
  if test x"$ac_file" = x-; then
14997
 
    echo "/* Generated by configure.  */" >$tmp/config.h
14998
 
  else
14999
 
    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
15000
 
  fi
15001
 
  cat $tmp/in >>$tmp/config.h
15002
 
  rm -f $tmp/in
 
10698
  -) cat "$tmp/out" && rm -f "$tmp/out";;
 
10699
  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
 
10700
  esac \
 
10701
  || as_fn_error "could not create $ac_file" "$LINENO" 5
 
10702
 ;;
 
10703
  :H)
 
10704
  #
 
10705
  # CONFIG_HEADER
 
10706
  #
15003
10707
  if test x"$ac_file" != x-; then
15004
 
    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
15005
 
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
15006
 
echo "$as_me: $ac_file is unchanged" >&6;}
 
10708
    {
 
10709
      $as_echo "/* $configure_input  */" \
 
10710
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
 
10711
    } >"$tmp/config.h" \
 
10712
      || as_fn_error "could not create $ac_file" "$LINENO" 5
 
10713
    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
 
10714
      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
 
10715
$as_echo "$as_me: $ac_file is unchanged" >&6;}
15007
10716
    else
15008
 
      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15009
 
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15010
 
         X"$ac_file" : 'X\(//\)[^/]' \| \
15011
 
         X"$ac_file" : 'X\(//\)$' \| \
15012
 
         X"$ac_file" : 'X\(/\)' \| \
15013
 
         .     : '\(.\)' 2>/dev/null ||
15014
 
echo X"$ac_file" |
15015
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15016
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15017
 
          /^X\(\/\/\)$/{ s//\1/; q; }
15018
 
          /^X\(\/\).*/{ s//\1/; q; }
15019
 
          s/.*/./; q'`
15020
 
      { if $as_mkdir_p; then
15021
 
    mkdir -p "$ac_dir"
15022
 
  else
15023
 
    as_dir="$ac_dir"
15024
 
    as_dirs=
15025
 
    while test ! -d "$as_dir"; do
15026
 
      as_dirs="$as_dir $as_dirs"
15027
 
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
15028
 
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15029
 
         X"$as_dir" : 'X\(//\)[^/]' \| \
15030
 
         X"$as_dir" : 'X\(//\)$' \| \
15031
 
         X"$as_dir" : 'X\(/\)' \| \
15032
 
         .     : '\(.\)' 2>/dev/null ||
15033
 
echo X"$as_dir" |
15034
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15035
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15036
 
          /^X\(\/\/\)$/{ s//\1/; q; }
15037
 
          /^X\(\/\).*/{ s//\1/; q; }
15038
 
          s/.*/./; q'`
15039
 
    done
15040
 
    test ! -n "$as_dirs" || mkdir $as_dirs
15041
 
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15042
 
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15043
 
   { (exit 1); exit 1; }; }; }
15044
 
 
15045
 
      rm -f $ac_file
15046
 
      mv $tmp/config.h $ac_file
 
10717
      rm -f "$ac_file"
 
10718
      mv "$tmp/config.h" "$ac_file" \
 
10719
        || as_fn_error "could not create $ac_file" "$LINENO" 5
15047
10720
    fi
15048
10721
  else
15049
 
    cat $tmp/config.h
15050
 
    rm -f $tmp/config.h
 
10722
    $as_echo "/* $configure_input  */" \
 
10723
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
 
10724
      || as_fn_error "could not create -" "$LINENO" 5
15051
10725
  fi
15052
 
# Compute $ac_file's index in $config_headers.
 
10726
# Compute "$ac_file"'s index in $config_headers.
 
10727
_am_arg="$ac_file"
15053
10728
_am_stamp_count=1
15054
10729
for _am_header in $config_headers :; do
15055
10730
  case $_am_header in
15056
 
    $ac_file | $ac_file:* )
 
10731
    $_am_arg | $_am_arg:* )
15057
10732
      break ;;
15058
10733
    * )
15059
10734
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15060
10735
  esac
15061
10736
done
15062
 
echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
15063
 
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15064
 
         X$ac_file : 'X\(//\)[^/]' \| \
15065
 
         X$ac_file : 'X\(//\)$' \| \
15066
 
         X$ac_file : 'X\(/\)' \| \
15067
 
         .     : '\(.\)' 2>/dev/null ||
15068
 
echo X$ac_file |
15069
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15070
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15071
 
          /^X\(\/\/\)$/{ s//\1/; q; }
15072
 
          /^X\(\/\).*/{ s//\1/; q; }
15073
 
          s/.*/./; q'`/stamp-h$_am_stamp_count
15074
 
done
15075
 
_ACEOF
15076
 
cat >>$CONFIG_STATUS <<\_ACEOF
15077
 
 
15078
 
#
15079
 
# CONFIG_COMMANDS section.
15080
 
#
15081
 
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
15082
 
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
15083
 
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
15084
 
  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
15085
 
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15086
 
         X"$ac_dest" : 'X\(//\)[^/]' \| \
15087
 
         X"$ac_dest" : 'X\(//\)$' \| \
15088
 
         X"$ac_dest" : 'X\(/\)' \| \
15089
 
         .     : '\(.\)' 2>/dev/null ||
15090
 
echo X"$ac_dest" |
15091
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15092
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15093
 
          /^X\(\/\/\)$/{ s//\1/; q; }
15094
 
          /^X\(\/\).*/{ s//\1/; q; }
15095
 
          s/.*/./; q'`
15096
 
  { if $as_mkdir_p; then
15097
 
    mkdir -p "$ac_dir"
15098
 
  else
15099
 
    as_dir="$ac_dir"
15100
 
    as_dirs=
15101
 
    while test ! -d "$as_dir"; do
15102
 
      as_dirs="$as_dir $as_dirs"
15103
 
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
15104
 
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15105
 
         X"$as_dir" : 'X\(//\)[^/]' \| \
15106
 
         X"$as_dir" : 'X\(//\)$' \| \
15107
 
         X"$as_dir" : 'X\(/\)' \| \
15108
 
         .     : '\(.\)' 2>/dev/null ||
15109
 
echo X"$as_dir" |
15110
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15111
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15112
 
          /^X\(\/\/\)$/{ s//\1/; q; }
15113
 
          /^X\(\/\).*/{ s//\1/; q; }
15114
 
          s/.*/./; q'`
15115
 
    done
15116
 
    test ! -n "$as_dirs" || mkdir $as_dirs
15117
 
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15118
 
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15119
 
   { (exit 1); exit 1; }; }; }
15120
 
 
15121
 
  ac_builddir=.
15122
 
 
15123
 
if test "$ac_dir" != .; then
15124
 
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15125
 
  # A "../" for each directory in $ac_dir_suffix.
15126
 
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15127
 
else
15128
 
  ac_dir_suffix= ac_top_builddir=
15129
 
fi
15130
 
 
15131
 
case $srcdir in
15132
 
  .)  # No --srcdir option.  We are building in place.
15133
 
    ac_srcdir=.
15134
 
    if test -z "$ac_top_builddir"; then
15135
 
       ac_top_srcdir=.
15136
 
    else
15137
 
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15138
 
    fi ;;
15139
 
  [\\/]* | ?:[\\/]* )  # Absolute path.
15140
 
    ac_srcdir=$srcdir$ac_dir_suffix;
15141
 
    ac_top_srcdir=$srcdir ;;
15142
 
  *) # Relative path.
15143
 
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15144
 
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
15145
 
esac
15146
 
 
15147
 
# Do not use `cd foo && pwd` to compute absolute paths, because
15148
 
# the directories may not exist.
15149
 
case `pwd` in
15150
 
.) ac_abs_builddir="$ac_dir";;
15151
 
*)
15152
 
  case "$ac_dir" in
15153
 
  .) ac_abs_builddir=`pwd`;;
15154
 
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
15155
 
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
15156
 
  esac;;
15157
 
esac
15158
 
case $ac_abs_builddir in
15159
 
.) ac_abs_top_builddir=${ac_top_builddir}.;;
15160
 
*)
15161
 
  case ${ac_top_builddir}. in
15162
 
  .) ac_abs_top_builddir=$ac_abs_builddir;;
15163
 
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
15164
 
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
15165
 
  esac;;
15166
 
esac
15167
 
case $ac_abs_builddir in
15168
 
.) ac_abs_srcdir=$ac_srcdir;;
15169
 
*)
15170
 
  case $ac_srcdir in
15171
 
  .) ac_abs_srcdir=$ac_abs_builddir;;
15172
 
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
15173
 
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
15174
 
  esac;;
15175
 
esac
15176
 
case $ac_abs_builddir in
15177
 
.) ac_abs_top_srcdir=$ac_top_srcdir;;
15178
 
*)
15179
 
  case $ac_top_srcdir in
15180
 
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
15181
 
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
15182
 
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
15183
 
  esac;;
15184
 
esac
15185
 
 
15186
 
 
15187
 
  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
15188
 
echo "$as_me: executing $ac_dest commands" >&6;}
15189
 
  case $ac_dest in
15190
 
    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
15191
 
  # Strip MF so we end up with the name of the file.
15192
 
  mf=`echo "$mf" | sed -e 's/:.*$//'`
15193
 
  # Check whether this is an Automake generated Makefile or not.
15194
 
  # We used to match only the files named `Makefile.in', but
15195
 
  # some people rename them; so instead we look at the file content.
15196
 
  # Grep'ing the first line is not enough: some people post-process
15197
 
  # each Makefile.in and add a new line on top of each file to say so.
15198
 
  # So let's grep whole file.
15199
 
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
15200
 
    dirpart=`(dirname "$mf") 2>/dev/null ||
 
10737
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
 
10738
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
10739
         X"$_am_arg" : 'X\(//\)[^/]' \| \
 
10740
         X"$_am_arg" : 'X\(//\)$' \| \
 
10741
         X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
 
10742
$as_echo X"$_am_arg" |
 
10743
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
10744
            s//\1/
 
10745
            q
 
10746
          }
 
10747
          /^X\(\/\/\)[^/].*/{
 
10748
            s//\1/
 
10749
            q
 
10750
          }
 
10751
          /^X\(\/\/\)$/{
 
10752
            s//\1/
 
10753
            q
 
10754
          }
 
10755
          /^X\(\/\).*/{
 
10756
            s//\1/
 
10757
            q
 
10758
          }
 
10759
          s/.*/./; q'`/stamp-h$_am_stamp_count
 
10760
 ;;
 
10761
 
 
10762
  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
 
10763
$as_echo "$as_me: executing $ac_file commands" >&6;}
 
10764
 ;;
 
10765
  esac
 
10766
 
 
10767
 
 
10768
  case $ac_file$ac_mode in
 
10769
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
 
10770
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
 
10771
  # are listed without --file.  Let's play safe and only enable the eval
 
10772
  # if we detect the quoting.
 
10773
  case $CONFIG_FILES in
 
10774
  *\'*) eval set x "$CONFIG_FILES" ;;
 
10775
  *)   set x $CONFIG_FILES ;;
 
10776
  esac
 
10777
  shift
 
10778
  for mf
 
10779
  do
 
10780
    # Strip MF so we end up with the name of the file.
 
10781
    mf=`echo "$mf" | sed -e 's/:.*$//'`
 
10782
    # Check whether this is an Automake generated Makefile or not.
 
10783
    # We used to match only the files named `Makefile.in', but
 
10784
    # some people rename them; so instead we look at the file content.
 
10785
    # Grep'ing the first line is not enough: some people post-process
 
10786
    # each Makefile.in and add a new line on top of each file to say so.
 
10787
    # Grep'ing the whole file is not good either: AIX grep has a line
 
10788
    # limit of 2048, but all sed's we know have understand at least 4000.
 
10789
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
 
10790
      dirpart=`$as_dirname -- "$mf" ||
15201
10791
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15202
10792
         X"$mf" : 'X\(//\)[^/]' \| \
15203
10793
         X"$mf" : 'X\(//\)$' \| \
15204
 
         X"$mf" : 'X\(/\)' \| \
15205
 
         .     : '\(.\)' 2>/dev/null ||
15206
 
echo X"$mf" |
15207
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15208
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15209
 
          /^X\(\/\/\)$/{ s//\1/; q; }
15210
 
          /^X\(\/\).*/{ s//\1/; q; }
15211
 
          s/.*/./; q'`
15212
 
  else
15213
 
    continue
15214
 
  fi
15215
 
  # Extract the definition of DEPDIR, am__include, and am__quote
15216
 
  # from the Makefile without running `make'.
15217
 
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15218
 
  test -z "$DEPDIR" && continue
15219
 
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
15220
 
  test -z "am__include" && continue
15221
 
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15222
 
  # When using ansi2knr, U may be empty or an underscore; expand it
15223
 
  U=`sed -n 's/^U = //p' < "$mf"`
15224
 
  # Find all dependency output files, they are included files with
15225
 
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
15226
 
  # simplest approach to changing $(DEPDIR) to its actual value in the
15227
 
  # expansion.
15228
 
  for file in `sed -n "
15229
 
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15230
 
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15231
 
    # Make sure the directory exists.
15232
 
    test -f "$dirpart/$file" && continue
15233
 
    fdir=`(dirname "$file") 2>/dev/null ||
 
10794
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
 
10795
$as_echo X"$mf" |
 
10796
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
10797
            s//\1/
 
10798
            q
 
10799
          }
 
10800
          /^X\(\/\/\)[^/].*/{
 
10801
            s//\1/
 
10802
            q
 
10803
          }
 
10804
          /^X\(\/\/\)$/{
 
10805
            s//\1/
 
10806
            q
 
10807
          }
 
10808
          /^X\(\/\).*/{
 
10809
            s//\1/
 
10810
            q
 
10811
          }
 
10812
          s/.*/./; q'`
 
10813
    else
 
10814
      continue
 
10815
    fi
 
10816
    # Extract the definition of DEPDIR, am__include, and am__quote
 
10817
    # from the Makefile without running `make'.
 
10818
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
10819
    test -z "$DEPDIR" && continue
 
10820
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
10821
    test -z "am__include" && continue
 
10822
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 
10823
    # When using ansi2knr, U may be empty or an underscore; expand it
 
10824
    U=`sed -n 's/^U = //p' < "$mf"`
 
10825
    # Find all dependency output files, they are included files with
 
10826
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
10827
    # simplest approach to changing $(DEPDIR) to its actual value in the
 
10828
    # expansion.
 
10829
    for file in `sed -n "
 
10830
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
10831
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
10832
      # Make sure the directory exists.
 
10833
      test -f "$dirpart/$file" && continue
 
10834
      fdir=`$as_dirname -- "$file" ||
15234
10835
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15235
10836
         X"$file" : 'X\(//\)[^/]' \| \
15236
10837
         X"$file" : 'X\(//\)$' \| \
15237
 
         X"$file" : 'X\(/\)' \| \
15238
 
         .     : '\(.\)' 2>/dev/null ||
15239
 
echo X"$file" |
15240
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15241
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15242
 
          /^X\(\/\/\)$/{ s//\1/; q; }
15243
 
          /^X\(\/\).*/{ s//\1/; q; }
15244
 
          s/.*/./; q'`
15245
 
    { if $as_mkdir_p; then
15246
 
    mkdir -p $dirpart/$fdir
15247
 
  else
15248
 
    as_dir=$dirpart/$fdir
15249
 
    as_dirs=
15250
 
    while test ! -d "$as_dir"; do
15251
 
      as_dirs="$as_dir $as_dirs"
15252
 
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
15253
 
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15254
 
         X"$as_dir" : 'X\(//\)[^/]' \| \
15255
 
         X"$as_dir" : 'X\(//\)$' \| \
15256
 
         X"$as_dir" : 'X\(/\)' \| \
15257
 
         .     : '\(.\)' 2>/dev/null ||
15258
 
echo X"$as_dir" |
15259
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15260
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15261
 
          /^X\(\/\/\)$/{ s//\1/; q; }
15262
 
          /^X\(\/\).*/{ s//\1/; q; }
15263
 
          s/.*/./; q'`
 
10838
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
 
10839
$as_echo X"$file" |
 
10840
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
10841
            s//\1/
 
10842
            q
 
10843
          }
 
10844
          /^X\(\/\/\)[^/].*/{
 
10845
            s//\1/
 
10846
            q
 
10847
          }
 
10848
          /^X\(\/\/\)$/{
 
10849
            s//\1/
 
10850
            q
 
10851
          }
 
10852
          /^X\(\/\).*/{
 
10853
            s//\1/
 
10854
            q
 
10855
          }
 
10856
          s/.*/./; q'`
 
10857
      as_dir=$dirpart/$fdir; as_fn_mkdir_p
 
10858
      # echo "creating $dirpart/$file"
 
10859
      echo '# dummy' > "$dirpart/$file"
15264
10860
    done
15265
 
    test ! -n "$as_dirs" || mkdir $as_dirs
15266
 
  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
15267
 
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
15268
 
   { (exit 1); exit 1; }; }; }
15269
 
 
15270
 
    # echo "creating $dirpart/$file"
15271
 
    echo '# dummy' > "$dirpart/$file"
15272
10861
  done
15273
 
done
 
10862
}
15274
10863
 ;;
15275
 
    default-1 )
 
10864
    "default-1":C)
15276
10865
    for ac_file in $CONFIG_FILES; do
15277
10866
      # Support "outfile[:infile[:infile...]]"
15278
10867
      case "$ac_file" in
15381
10970
        ;;
15382
10971
      esac
15383
10972
    done ;;
 
10973
 
15384
10974
  esac
15385
 
done
15386
 
_ACEOF
15387
 
 
15388
 
cat >>$CONFIG_STATUS <<\_ACEOF
15389
 
 
15390
 
{ (exit 0); exit 0; }
15391
 
_ACEOF
15392
 
chmod +x $CONFIG_STATUS
 
10975
done # for ac_tag
 
10976
 
 
10977
 
 
10978
as_fn_exit 0
 
10979
_ACEOF
15393
10980
ac_clean_files=$ac_clean_files_save
15394
10981
 
 
10982
test $ac_write_fail = 0 ||
 
10983
  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
 
10984
 
15395
10985
 
15396
10986
# configure is writing to config.log, and then calls config.status.
15397
10987
# config.status does its own redirection, appending to config.log.
15411
11001
  exec 5>>config.log
15412
11002
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15413
11003
  # would make configure fail if this is the last instruction.
15414
 
  $ac_cs_success || { (exit 1); exit 1; }
 
11004
  $ac_cs_success || as_fn_exit $?
 
11005
fi
 
11006
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
 
11007
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
 
11008
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15415
11009
fi
15416
11010
 
15417
11011