~ubuntu-branches/ubuntu/oneiric/cabextract/oneiric

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Eric Sharkey
  • Date: 2010-08-03 23:38:56 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20100803233856-59ewqji0uo2tic1l
Tags: 1.3-1
New upstream version: Closes: #591552

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
2
# Guess values for system-dependent variables and create Makefiles.
3
 
# Generated by GNU Autoconf 2.59 for cabextract 1.2.
 
3
# Generated by GNU Autoconf 2.65 for cabextract 1.3.
4
4
#
5
5
# Report bugs to <kyzer@4u.net>.
6
6
#
7
 
# Copyright (C) 2003 Free Software Foundation, Inc.
 
7
#
 
8
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
 
9
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
 
10
# Inc.
 
11
#
 
12
#
8
13
# This configure script is free software; the Free Software Foundation
9
14
# gives unlimited permission to copy, distribute and modify it.
10
 
## --------------------- ##
11
 
## M4sh Initialization.  ##
12
 
## --------------------- ##
 
15
## -------------------- ##
 
16
## M4sh Initialization. ##
 
17
## -------------------- ##
13
18
 
14
 
# Be Bourne compatible
15
 
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
19
# Be more Bourne compatible
 
20
DUALCASE=1; export DUALCASE # for MKS sh
 
21
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16
22
  emulate sh
17
23
  NULLCMD=:
18
 
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
24
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19
25
  # is contrary to our usage.  Disable this feature.
20
26
  alias -g '${1+"$@"}'='"$@"'
21
 
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22
 
  set -o posix
23
 
fi
24
 
DUALCASE=1; export DUALCASE # for MKS sh
25
 
 
26
 
# Support unset when possible.
27
 
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28
 
  as_unset=unset
29
 
else
30
 
  as_unset=false
31
 
fi
32
 
 
33
 
 
34
 
# Work around bugs in pre-3.0 UWIN ksh.
35
 
$as_unset ENV MAIL MAILPATH
 
27
  setopt NO_GLOB_SUBST
 
28
else
 
29
  case `(set -o) 2>/dev/null` in #(
 
30
  *posix*) :
 
31
    set -o posix ;; #(
 
32
  *) :
 
33
     ;;
 
34
esac
 
35
fi
 
36
 
 
37
 
 
38
as_nl='
 
39
'
 
40
export as_nl
 
41
# Printing a long string crashes Solaris 7 /usr/bin/printf.
 
42
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
43
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
 
44
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
 
45
# Prefer a ksh shell builtin over an external printf program on Solaris,
 
46
# but without wasting forks for bash or zsh.
 
47
if test -z "$BASH_VERSION$ZSH_VERSION" \
 
48
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
 
49
  as_echo='print -r --'
 
50
  as_echo_n='print -rn --'
 
51
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
 
52
  as_echo='printf %s\n'
 
53
  as_echo_n='printf %s'
 
54
else
 
55
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
 
56
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
 
57
    as_echo_n='/usr/ucb/echo -n'
 
58
  else
 
59
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
 
60
    as_echo_n_body='eval
 
61
      arg=$1;
 
62
      case $arg in #(
 
63
      *"$as_nl"*)
 
64
        expr "X$arg" : "X\\(.*\\)$as_nl";
 
65
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
 
66
      esac;
 
67
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
 
68
    '
 
69
    export as_echo_n_body
 
70
    as_echo_n='sh -c $as_echo_n_body as_echo'
 
71
  fi
 
72
  export as_echo_body
 
73
  as_echo='sh -c $as_echo_body as_echo'
 
74
fi
 
75
 
 
76
# The user is always right.
 
77
if test "${PATH_SEPARATOR+set}" != set; then
 
78
  PATH_SEPARATOR=:
 
79
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
 
80
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
 
81
      PATH_SEPARATOR=';'
 
82
  }
 
83
fi
 
84
 
 
85
 
 
86
# IFS
 
87
# We need space, tab and new line, in precisely that order.  Quoting is
 
88
# there to prevent editors from complaining about space-tab.
 
89
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
90
# splitting by setting IFS to empty value.)
 
91
IFS=" ""        $as_nl"
 
92
 
 
93
# Find who we are.  Look in the path if we contain no directory separator.
 
94
case $0 in #((
 
95
  *[\\/]* ) as_myself=$0 ;;
 
96
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
97
for as_dir in $PATH
 
98
do
 
99
  IFS=$as_save_IFS
 
100
  test -z "$as_dir" && as_dir=.
 
101
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
102
  done
 
103
IFS=$as_save_IFS
 
104
 
 
105
     ;;
 
106
esac
 
107
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
108
# in which case we are not to be found in the path.
 
109
if test "x$as_myself" = x; then
 
110
  as_myself=$0
 
111
fi
 
112
if test ! -f "$as_myself"; then
 
113
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
114
  exit 1
 
115
fi
 
116
 
 
117
# Unset variables that we do not need and which cause bugs (e.g. in
 
118
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
 
119
# suppresses any "Segmentation fault" message there.  '((' could
 
120
# trigger a bug in pdksh 5.2.14.
 
121
for as_var in BASH_ENV ENV MAIL MAILPATH
 
122
do eval test x\${$as_var+set} = xset \
 
123
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
 
124
done
36
125
PS1='$ '
37
126
PS2='> '
38
127
PS4='+ '
39
128
 
40
129
# NLS nuisances.
41
 
for as_var in \
42
 
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43
 
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44
 
  LC_TELEPHONE LC_TIME
 
130
LC_ALL=C
 
131
export LC_ALL
 
132
LANGUAGE=C
 
133
export LANGUAGE
 
134
 
 
135
# CDPATH.
 
136
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
137
 
 
138
if test "x$CONFIG_SHELL" = x; then
 
139
  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
 
140
  emulate sh
 
141
  NULLCMD=:
 
142
  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
 
143
  # is contrary to our usage.  Disable this feature.
 
144
  alias -g '\${1+\"\$@\"}'='\"\$@\"'
 
145
  setopt NO_GLOB_SUBST
 
146
else
 
147
  case \`(set -o) 2>/dev/null\` in #(
 
148
  *posix*) :
 
149
    set -o posix ;; #(
 
150
  *) :
 
151
     ;;
 
152
esac
 
153
fi
 
154
"
 
155
  as_required="as_fn_return () { (exit \$1); }
 
156
as_fn_success () { as_fn_return 0; }
 
157
as_fn_failure () { as_fn_return 1; }
 
158
as_fn_ret_success () { return 0; }
 
159
as_fn_ret_failure () { return 1; }
 
160
 
 
161
exitcode=0
 
162
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
 
163
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
 
164
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
 
165
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
 
166
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
 
167
 
 
168
else
 
169
  exitcode=1; echo positional parameters were not saved.
 
170
fi
 
171
test x\$exitcode = x0 || exit 1"
 
172
  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
 
173
  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
 
174
  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
 
175
  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
 
176
test \$(( 1 + 1 )) = 2 || exit 1"
 
177
  if (eval "$as_required") 2>/dev/null; then :
 
178
  as_have_required=yes
 
179
else
 
180
  as_have_required=no
 
181
fi
 
182
  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
 
183
 
 
184
else
 
185
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
186
as_found=false
 
187
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
45
188
do
46
 
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47
 
    eval $as_var=C; export $as_var
 
189
  IFS=$as_save_IFS
 
190
  test -z "$as_dir" && as_dir=.
 
191
  as_found=:
 
192
  case $as_dir in #(
 
193
         /*)
 
194
           for as_base in sh bash ksh sh5; do
 
195
             # Try only shells that exist, to save several forks.
 
196
             as_shell=$as_dir/$as_base
 
197
             if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
 
198
                    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
 
199
  CONFIG_SHELL=$as_shell as_have_required=yes
 
200
                   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
 
201
  break 2
 
202
fi
 
203
fi
 
204
           done;;
 
205
       esac
 
206
  as_found=false
 
207
done
 
208
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
 
209
              { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
 
210
  CONFIG_SHELL=$SHELL as_have_required=yes
 
211
fi; }
 
212
IFS=$as_save_IFS
 
213
 
 
214
 
 
215
      if test "x$CONFIG_SHELL" != x; then :
 
216
  # We cannot yet assume a decent shell, so we have to provide a
 
217
        # neutralization value for shells without unset; and this also
 
218
        # works around shells that cannot unset nonexistent variables.
 
219
        BASH_ENV=/dev/null
 
220
        ENV=/dev/null
 
221
        (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
 
222
        export CONFIG_SHELL
 
223
        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
 
224
fi
 
225
 
 
226
    if test x$as_have_required = xno; then :
 
227
  $as_echo "$0: This script requires a shell more modern than all"
 
228
  $as_echo "$0: the shells that I found on your system."
 
229
  if test x${ZSH_VERSION+set} = xset ; then
 
230
    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
 
231
    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
48
232
  else
49
 
    $as_unset $as_var
50
 
  fi
51
 
done
52
 
 
53
 
# Required to use basename.
54
 
if expr a : '\(a\)' >/dev/null 2>&1; then
 
233
    $as_echo "$0: Please tell bug-autoconf@gnu.org and kyzer@4u.net about
 
234
$0: your system, including any error possibly output before
 
235
$0: this message. Then install a modern shell, or manually
 
236
$0: run the script under such a shell if you do have one."
 
237
  fi
 
238
  exit 1
 
239
fi
 
240
fi
 
241
fi
 
242
SHELL=${CONFIG_SHELL-/bin/sh}
 
243
export SHELL
 
244
# Unset more variables known to interfere with behavior of common tools.
 
245
CLICOLOR_FORCE= GREP_OPTIONS=
 
246
unset CLICOLOR_FORCE GREP_OPTIONS
 
247
 
 
248
## --------------------- ##
 
249
## M4sh Shell Functions. ##
 
250
## --------------------- ##
 
251
# as_fn_unset VAR
 
252
# ---------------
 
253
# Portably unset VAR.
 
254
as_fn_unset ()
 
255
{
 
256
  { eval $1=; unset $1;}
 
257
}
 
258
as_unset=as_fn_unset
 
259
 
 
260
# as_fn_set_status STATUS
 
261
# -----------------------
 
262
# Set $? to STATUS, without forking.
 
263
as_fn_set_status ()
 
264
{
 
265
  return $1
 
266
} # as_fn_set_status
 
267
 
 
268
# as_fn_exit STATUS
 
269
# -----------------
 
270
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
 
271
as_fn_exit ()
 
272
{
 
273
  set +e
 
274
  as_fn_set_status $1
 
275
  exit $1
 
276
} # as_fn_exit
 
277
 
 
278
# as_fn_mkdir_p
 
279
# -------------
 
280
# Create "$as_dir" as a directory, including parents if necessary.
 
281
as_fn_mkdir_p ()
 
282
{
 
283
 
 
284
  case $as_dir in #(
 
285
  -*) as_dir=./$as_dir;;
 
286
  esac
 
287
  test -d "$as_dir" || eval $as_mkdir_p || {
 
288
    as_dirs=
 
289
    while :; do
 
290
      case $as_dir in #(
 
291
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 
292
      *) as_qdir=$as_dir;;
 
293
      esac
 
294
      as_dirs="'$as_qdir' $as_dirs"
 
295
      as_dir=`$as_dirname -- "$as_dir" ||
 
296
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
297
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
298
         X"$as_dir" : 'X\(//\)$' \| \
 
299
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
300
$as_echo X"$as_dir" |
 
301
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
302
            s//\1/
 
303
            q
 
304
          }
 
305
          /^X\(\/\/\)[^/].*/{
 
306
            s//\1/
 
307
            q
 
308
          }
 
309
          /^X\(\/\/\)$/{
 
310
            s//\1/
 
311
            q
 
312
          }
 
313
          /^X\(\/\).*/{
 
314
            s//\1/
 
315
            q
 
316
          }
 
317
          s/.*/./; q'`
 
318
      test -d "$as_dir" && break
 
319
    done
 
320
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
321
  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
 
322
 
 
323
 
 
324
} # as_fn_mkdir_p
 
325
# as_fn_append VAR VALUE
 
326
# ----------------------
 
327
# Append the text in VALUE to the end of the definition contained in VAR. Take
 
328
# advantage of any shell optimizations that allow amortized linear growth over
 
329
# repeated appends, instead of the typical quadratic growth present in naive
 
330
# implementations.
 
331
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
 
332
  eval 'as_fn_append ()
 
333
  {
 
334
    eval $1+=\$2
 
335
  }'
 
336
else
 
337
  as_fn_append ()
 
338
  {
 
339
    eval $1=\$$1\$2
 
340
  }
 
341
fi # as_fn_append
 
342
 
 
343
# as_fn_arith ARG...
 
344
# ------------------
 
345
# Perform arithmetic evaluation on the ARGs, and store the result in the
 
346
# global $as_val. Take advantage of shells that can avoid forks. The arguments
 
347
# must be portable across $(()) and expr.
 
348
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
 
349
  eval 'as_fn_arith ()
 
350
  {
 
351
    as_val=$(( $* ))
 
352
  }'
 
353
else
 
354
  as_fn_arith ()
 
355
  {
 
356
    as_val=`expr "$@" || test $? -eq 1`
 
357
  }
 
358
fi # as_fn_arith
 
359
 
 
360
 
 
361
# as_fn_error ERROR [LINENO LOG_FD]
 
362
# ---------------------------------
 
363
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
 
364
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
 
365
# script with status $?, using 1 if that was 0.
 
366
as_fn_error ()
 
367
{
 
368
  as_status=$?; test $as_status -eq 0 && as_status=1
 
369
  if test "$3"; then
 
370
    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
371
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
 
372
  fi
 
373
  $as_echo "$as_me: error: $1" >&2
 
374
  as_fn_exit $as_status
 
375
} # as_fn_error
 
376
 
 
377
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
378
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
55
379
  as_expr=expr
56
380
else
57
381
  as_expr=false
58
382
fi
59
383
 
60
 
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
384
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
61
385
  as_basename=basename
62
386
else
63
387
  as_basename=false
64
388
fi
65
389
 
 
390
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
391
  as_dirname=dirname
 
392
else
 
393
  as_dirname=false
 
394
fi
66
395
 
67
 
# Name of the executable.
68
 
as_me=`$as_basename "$0" ||
 
396
as_me=`$as_basename -- "$0" ||
69
397
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70
398
         X"$0" : 'X\(//\)$' \| \
71
 
         X"$0" : 'X\(/\)$' \| \
72
 
         .     : '\(.\)' 2>/dev/null ||
73
 
echo X/"$0" |
74
 
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75
 
          /^X\/\(\/\/\)$/{ s//\1/; q; }
76
 
          /^X\/\(\/\).*/{ s//\1/; q; }
77
 
          s/.*/./; q'`
78
 
 
79
 
 
80
 
# PATH needs CR, and LINENO needs CR and PATH.
 
399
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
400
$as_echo X/"$0" |
 
401
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
402
            s//\1/
 
403
            q
 
404
          }
 
405
          /^X\/\(\/\/\)$/{
 
406
            s//\1/
 
407
            q
 
408
          }
 
409
          /^X\/\(\/\).*/{
 
410
            s//\1/
 
411
            q
 
412
          }
 
413
          s/.*/./; q'`
 
414
 
81
415
# Avoid depending upon Character Ranges.
82
416
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83
417
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85
419
as_cr_digits='0123456789'
86
420
as_cr_alnum=$as_cr_Letters$as_cr_digits
87
421
 
88
 
# The user is always right.
89
 
if test "${PATH_SEPARATOR+set}" != set; then
90
 
  echo "#! /bin/sh" >conf$$.sh
91
 
  echo  "exit 0"   >>conf$$.sh
92
 
  chmod +x conf$$.sh
93
 
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94
 
    PATH_SEPARATOR=';'
95
 
  else
96
 
    PATH_SEPARATOR=:
97
 
  fi
98
 
  rm -f conf$$.sh
99
 
fi
100
 
 
101
 
 
102
 
  as_lineno_1=$LINENO
103
 
  as_lineno_2=$LINENO
104
 
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
106
 
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
107
 
  # Find who we are.  Look in the path if we contain no path at all
108
 
  # relative or not.
109
 
  case $0 in
110
 
    *[\\/]* ) as_myself=$0 ;;
111
 
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112
 
for as_dir in $PATH
113
 
do
114
 
  IFS=$as_save_IFS
115
 
  test -z "$as_dir" && as_dir=.
116
 
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117
 
done
118
 
 
119
 
       ;;
120
 
  esac
121
 
  # We did not find ourselves, most probably we were run as `sh COMMAND'
122
 
  # in which case we are not to be found in the path.
123
 
  if test "x$as_myself" = x; then
124
 
    as_myself=$0
125
 
  fi
126
 
  if test ! -f "$as_myself"; then
127
 
    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128
 
   { (exit 1); exit 1; }; }
129
 
  fi
130
 
  case $CONFIG_SHELL in
131
 
  '')
132
 
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133
 
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134
 
do
135
 
  IFS=$as_save_IFS
136
 
  test -z "$as_dir" && as_dir=.
137
 
  for as_base in sh bash ksh sh5; do
138
 
         case $as_dir in
139
 
         /*)
140
 
           if ("$as_dir/$as_base" -c '
141
 
  as_lineno_1=$LINENO
142
 
  as_lineno_2=$LINENO
143
 
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
145
 
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
146
 
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147
 
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148
 
             CONFIG_SHELL=$as_dir/$as_base
149
 
             export CONFIG_SHELL
150
 
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151
 
           fi;;
152
 
         esac
153
 
       done
154
 
done
155
 
;;
156
 
  esac
157
 
 
158
 
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159
 
  # uniformly replaced by the line number.  The first 'sed' inserts a
160
 
  # line-number line before each line; the second 'sed' does the real
161
 
  # work.  The second script uses 'N' to pair each line-number line
162
 
  # with the numbered line, and appends trailing '-' during
163
 
  # substitution so that $LINENO is not a special case at line end.
164
 
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165
 
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
166
 
  sed '=' <$as_myself |
 
422
 
 
423
  as_lineno_1=$LINENO as_lineno_1a=$LINENO
 
424
  as_lineno_2=$LINENO as_lineno_2a=$LINENO
 
425
  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
 
426
  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
 
427
  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
 
428
  sed -n '
 
429
    p
 
430
    /[$]LINENO/=
 
431
  ' <$as_myself |
167
432
    sed '
 
433
      s/[$]LINENO.*/&-/
 
434
      t lineno
 
435
      b
 
436
      :lineno
168
437
      N
169
 
      s,$,-,
170
 
      : loop
171
 
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
438
      :loop
 
439
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
172
440
      t loop
173
 
      s,-$,,
174
 
      s,^['$as_cr_digits']*\n,,
 
441
      s/-\n.*//
175
442
    ' >$as_me.lineno &&
176
 
  chmod +x $as_me.lineno ||
177
 
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178
 
   { (exit 1); exit 1; }; }
 
443
  chmod +x "$as_me.lineno" ||
 
444
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
179
445
 
180
446
  # Don't try to exec as it changes $[0], causing all sort of problems
181
447
  # (the dirname of $[0] is not the place where we might find the
182
 
  # original and so on.  Autoconf is especially sensible to this).
183
 
  . ./$as_me.lineno
 
448
  # original and so on.  Autoconf is especially sensitive to this).
 
449
  . "./$as_me.lineno"
184
450
  # Exit status is that of the last command.
185
451
  exit
186
452
}
187
453
 
188
 
 
189
 
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190
 
  *c*,-n*) ECHO_N= ECHO_C='
191
 
' ECHO_T='      ' ;;
192
 
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193
 
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
454
ECHO_C= ECHO_N= ECHO_T=
 
455
case `echo -n x` in #(((((
 
456
-n*)
 
457
  case `echo 'xy\c'` in
 
458
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
459
  xy)  ECHO_C='\c';;
 
460
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
 
461
       ECHO_T=' ';;
 
462
  esac;;
 
463
*)
 
464
  ECHO_N='-n';;
194
465
esac
195
466
 
196
 
if expr a : '\(a\)' >/dev/null 2>&1; then
197
 
  as_expr=expr
 
467
rm -f conf$$ conf$$.exe conf$$.file
 
468
if test -d conf$$.dir; then
 
469
  rm -f conf$$.dir/conf$$.file
198
470
else
199
 
  as_expr=false
 
471
  rm -f conf$$.dir
 
472
  mkdir conf$$.dir 2>/dev/null
200
473
fi
201
 
 
202
 
rm -f conf$$ conf$$.exe conf$$.file
203
 
echo >conf$$.file
204
 
if ln -s conf$$.file conf$$ 2>/dev/null; then
205
 
  # We could just check for DJGPP; but this test a) works b) is more generic
206
 
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207
 
  if test -f conf$$.exe; then
208
 
    # Don't use ln at all; we don't have any links
 
474
if (echo >conf$$.file) 2>/dev/null; then
 
475
  if ln -s conf$$.file conf$$ 2>/dev/null; then
 
476
    as_ln_s='ln -s'
 
477
    # ... but there are two gotchas:
 
478
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
479
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
480
    # In both cases, we have to default to `cp -p'.
 
481
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
482
      as_ln_s='cp -p'
 
483
  elif ln conf$$.file conf$$ 2>/dev/null; then
 
484
    as_ln_s=ln
 
485
  else
209
486
    as_ln_s='cp -p'
210
 
  else
211
 
    as_ln_s='ln -s'
212
487
  fi
213
 
elif ln conf$$.file conf$$ 2>/dev/null; then
214
 
  as_ln_s=ln
215
488
else
216
489
  as_ln_s='cp -p'
217
490
fi
218
 
rm -f conf$$ conf$$.exe conf$$.file
 
491
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
492
rmdir conf$$.dir 2>/dev/null
219
493
 
220
494
if mkdir -p . 2>/dev/null; then
221
 
  as_mkdir_p=:
 
495
  as_mkdir_p='mkdir -p "$as_dir"'
222
496
else
223
497
  test -d ./-p && rmdir ./-p
224
498
  as_mkdir_p=false
225
499
fi
226
500
 
227
 
as_executable_p="test -f"
 
501
if test -x / >/dev/null 2>&1; then
 
502
  as_test_x='test -x'
 
503
else
 
504
  if ls -dL / >/dev/null 2>&1; then
 
505
    as_ls_L_option=L
 
506
  else
 
507
    as_ls_L_option=
 
508
  fi
 
509
  as_test_x='
 
510
    eval sh -c '\''
 
511
      if test -d "$1"; then
 
512
        test -d "$1/.";
 
513
      else
 
514
        case $1 in #(
 
515
        -*)set "./$1";;
 
516
        esac;
 
517
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
 
518
        ???[sx]*):;;*)false;;esac;fi
 
519
    '\'' sh
 
520
  '
 
521
fi
 
522
as_executable_p=$as_test_x
228
523
 
229
524
# Sed expression to map a string onto a valid CPP name.
230
525
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
233
528
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
529
 
235
530
 
236
 
# IFS
237
 
# We need space, tab and new line, in precisely that order.
238
 
as_nl='
239
 
'
240
 
IFS="   $as_nl"
241
 
 
242
 
# CDPATH.
243
 
$as_unset CDPATH
244
 
 
 
531
test -n "$DJDIR" || exec 7<&0 </dev/null
 
532
exec 6>&1
245
533
 
246
534
# Name of the host.
247
535
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248
536
# so uname gets run too.
249
537
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
250
538
 
251
 
exec 6>&1
252
 
 
253
539
#
254
540
# Initializations.
255
541
#
256
542
ac_default_prefix=/usr/local
 
543
ac_clean_files=
257
544
ac_config_libobj_dir=.
 
545
LIBOBJS=
258
546
cross_compiling=no
259
547
subdirs=
260
548
MFLAGS=
261
549
MAKEFLAGS=
262
 
SHELL=${CONFIG_SHELL-/bin/sh}
263
 
 
264
 
# Maximum number of lines to put in a shell here document.
265
 
# This variable seems obsolete.  It should probably be removed, and
266
 
# only ac_max_sed_lines should be used.
267
 
: ${ac_max_here_lines=38}
268
550
 
269
551
# Identity of this package.
270
552
PACKAGE_NAME='cabextract'
271
553
PACKAGE_TARNAME='cabextract'
272
 
PACKAGE_VERSION='1.2'
273
 
PACKAGE_STRING='cabextract 1.2'
 
554
PACKAGE_VERSION='1.3'
 
555
PACKAGE_STRING='cabextract 1.3'
274
556
PACKAGE_BUGREPORT='kyzer@4u.net'
 
557
PACKAGE_URL=''
275
558
 
276
559
ac_unique_file="src/cabextract.c"
277
560
# Factoring default headers for most tests.
278
561
ac_includes_default="\
279
562
#include <stdio.h>
280
 
#if HAVE_SYS_TYPES_H
 
563
#ifdef HAVE_SYS_TYPES_H
281
564
# include <sys/types.h>
282
565
#endif
283
 
#if HAVE_SYS_STAT_H
 
566
#ifdef HAVE_SYS_STAT_H
284
567
# include <sys/stat.h>
285
568
#endif
286
 
#if STDC_HEADERS
 
569
#ifdef STDC_HEADERS
287
570
# include <stdlib.h>
288
571
# include <stddef.h>
289
572
#else
290
 
# if HAVE_STDLIB_H
 
573
# ifdef HAVE_STDLIB_H
291
574
#  include <stdlib.h>
292
575
# endif
293
576
#endif
294
 
#if HAVE_STRING_H
295
 
# if !STDC_HEADERS && HAVE_MEMORY_H
 
577
#ifdef HAVE_STRING_H
 
578
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
296
579
#  include <memory.h>
297
580
# endif
298
581
# include <string.h>
299
582
#endif
300
 
#if HAVE_STRINGS_H
 
583
#ifdef HAVE_STRINGS_H
301
584
# include <strings.h>
302
585
#endif
303
 
#if HAVE_INTTYPES_H
 
586
#ifdef HAVE_INTTYPES_H
304
587
# include <inttypes.h>
305
 
#else
306
 
# if HAVE_STDINT_H
307
 
#  include <stdint.h>
308
 
# endif
309
 
#endif
310
 
#if HAVE_UNISTD_H
 
588
#endif
 
589
#ifdef HAVE_STDINT_H
 
590
# include <stdint.h>
 
591
#endif
 
592
#ifdef HAVE_UNISTD_H
311
593
# include <unistd.h>
312
594
#endif"
313
595
 
314
 
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS 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 EGREP LIBOBJS ALLOCA LTLIBOBJS'
 
596
ac_header_list=
 
597
ac_func_list=
 
598
ac_subst_vars='am__EXEEXT_FALSE
 
599
am__EXEEXT_TRUE
 
600
LTLIBOBJS
 
601
EXTERNAL_LIBMSPACK_FALSE
 
602
EXTERNAL_LIBMSPACK_TRUE
 
603
LIBMSPACK_LIBS
 
604
ALLOCA
 
605
LIBOBJS
 
606
EGREP
 
607
GREP
 
608
CPP
 
609
RANLIB
 
610
am__fastdepCC_FALSE
 
611
am__fastdepCC_TRUE
 
612
CCDEPMODE
 
613
AMDEPBACKSLASH
 
614
AMDEP_FALSE
 
615
AMDEP_TRUE
 
616
am__quote
 
617
am__include
 
618
DEPDIR
 
619
OBJEXT
 
620
EXEEXT
 
621
ac_ct_CC
 
622
CPPFLAGS
 
623
LDFLAGS
 
624
CFLAGS
 
625
CC
 
626
am__untar
 
627
am__tar
 
628
AMTAR
 
629
am__leading_dot
 
630
SET_MAKE
 
631
AWK
 
632
mkdir_p
 
633
MKDIR_P
 
634
INSTALL_STRIP_PROGRAM
 
635
STRIP
 
636
install_sh
 
637
MAKEINFO
 
638
AUTOHEADER
 
639
AUTOMAKE
 
640
AUTOCONF
 
641
ACLOCAL
 
642
VERSION
 
643
PACKAGE
 
644
CYGPATH_W
 
645
am__isrc
 
646
INSTALL_DATA
 
647
INSTALL_SCRIPT
 
648
INSTALL_PROGRAM
 
649
target_alias
 
650
host_alias
 
651
build_alias
 
652
LIBS
 
653
ECHO_T
 
654
ECHO_N
 
655
ECHO_C
 
656
DEFS
 
657
mandir
 
658
localedir
 
659
libdir
 
660
psdir
 
661
pdfdir
 
662
dvidir
 
663
htmldir
 
664
infodir
 
665
docdir
 
666
oldincludedir
 
667
includedir
 
668
localstatedir
 
669
sharedstatedir
 
670
sysconfdir
 
671
datadir
 
672
datarootdir
 
673
libexecdir
 
674
sbindir
 
675
bindir
 
676
program_transform_name
 
677
prefix
 
678
exec_prefix
 
679
PACKAGE_URL
 
680
PACKAGE_BUGREPORT
 
681
PACKAGE_STRING
 
682
PACKAGE_VERSION
 
683
PACKAGE_TARNAME
 
684
PACKAGE_NAME
 
685
PATH_SEPARATOR
 
686
SHELL'
315
687
ac_subst_files=''
 
688
ac_user_opts='
 
689
enable_option_checking
 
690
enable_dependency_tracking
 
691
enable_largefile
 
692
with_external_libmspack
 
693
'
 
694
      ac_precious_vars='build_alias
 
695
host_alias
 
696
target_alias
 
697
CC
 
698
CFLAGS
 
699
LDFLAGS
 
700
LIBS
 
701
CPPFLAGS
 
702
CPP'
 
703
 
316
704
 
317
705
# Initialize some variables set by options.
318
706
ac_init_help=
319
707
ac_init_version=false
 
708
ac_unrecognized_opts=
 
709
ac_unrecognized_sep=
320
710
# The variables have the same names as the options, with
321
711
# dashes changed to underlines.
322
712
cache_file=/dev/null
339
729
# and all the variables that are supposed to be based on exec_prefix
340
730
# by default will actually change.
341
731
# Use braces instead of parens because sh, perl, etc. also accept them.
 
732
# (The list follows the same order as the GNU Coding Standards.)
342
733
bindir='${exec_prefix}/bin'
343
734
sbindir='${exec_prefix}/sbin'
344
735
libexecdir='${exec_prefix}/libexec'
345
 
datadir='${prefix}/share'
 
736
datarootdir='${prefix}/share'
 
737
datadir='${datarootdir}'
346
738
sysconfdir='${prefix}/etc'
347
739
sharedstatedir='${prefix}/com'
348
740
localstatedir='${prefix}/var'
349
 
libdir='${exec_prefix}/lib'
350
741
includedir='${prefix}/include'
351
742
oldincludedir='/usr/include'
352
 
infodir='${prefix}/info'
353
 
mandir='${prefix}/man'
 
743
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
 
744
infodir='${datarootdir}/info'
 
745
htmldir='${docdir}'
 
746
dvidir='${docdir}'
 
747
pdfdir='${docdir}'
 
748
psdir='${docdir}'
 
749
libdir='${exec_prefix}/lib'
 
750
localedir='${datarootdir}/locale'
 
751
mandir='${datarootdir}/man'
354
752
 
355
753
ac_prev=
 
754
ac_dashdash=
356
755
for ac_option
357
756
do
358
757
  # If the previous option needs an argument, assign it.
359
758
  if test -n "$ac_prev"; then
360
 
    eval "$ac_prev=\$ac_option"
 
759
    eval $ac_prev=\$ac_option
361
760
    ac_prev=
362
761
    continue
363
762
  fi
364
763
 
365
 
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
 
764
  case $ac_option in
 
765
  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
 
766
  *)    ac_optarg=yes ;;
 
767
  esac
366
768
 
367
769
  # Accept the important Cygnus configure options, so we can diagnose typos.
368
770
 
369
 
  case $ac_option in
 
771
  case $ac_dashdash$ac_option in
 
772
  --)
 
773
    ac_dashdash=yes ;;
370
774
 
371
775
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
372
776
    ac_prev=bindir ;;
388
792
  --config-cache | -C)
389
793
    cache_file=config.cache ;;
390
794
 
391
 
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
 
795
  -datadir | --datadir | --datadi | --datad)
392
796
    ac_prev=datadir ;;
393
 
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
394
 
  | --da=*)
 
797
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
395
798
    datadir=$ac_optarg ;;
396
799
 
 
800
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
 
801
  | --dataroo | --dataro | --datar)
 
802
    ac_prev=datarootdir ;;
 
803
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
 
804
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
 
805
    datarootdir=$ac_optarg ;;
 
806
 
397
807
  -disable-* | --disable-*)
398
 
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 
808
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
399
809
    # Reject names that are not valid shell variable names.
400
 
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
401
 
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
402
 
   { (exit 1); exit 1; }; }
403
 
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
404
 
    eval "enable_$ac_feature=no" ;;
 
810
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
811
      as_fn_error "invalid feature name: $ac_useropt"
 
812
    ac_useropt_orig=$ac_useropt
 
813
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
814
    case $ac_user_opts in
 
815
      *"
 
816
"enable_$ac_useropt"
 
817
"*) ;;
 
818
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
 
819
         ac_unrecognized_sep=', ';;
 
820
    esac
 
821
    eval enable_$ac_useropt=no ;;
 
822
 
 
823
  -docdir | --docdir | --docdi | --doc | --do)
 
824
    ac_prev=docdir ;;
 
825
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
 
826
    docdir=$ac_optarg ;;
 
827
 
 
828
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
 
829
    ac_prev=dvidir ;;
 
830
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
 
831
    dvidir=$ac_optarg ;;
405
832
 
406
833
  -enable-* | --enable-*)
407
 
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 
834
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
408
835
    # Reject names that are not valid shell variable names.
409
 
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
410
 
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
411
 
   { (exit 1); exit 1; }; }
412
 
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
413
 
    case $ac_option in
414
 
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415
 
      *) ac_optarg=yes ;;
 
836
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
837
      as_fn_error "invalid feature name: $ac_useropt"
 
838
    ac_useropt_orig=$ac_useropt
 
839
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
840
    case $ac_user_opts in
 
841
      *"
 
842
"enable_$ac_useropt"
 
843
"*) ;;
 
844
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
 
845
         ac_unrecognized_sep=', ';;
416
846
    esac
417
 
    eval "enable_$ac_feature='$ac_optarg'" ;;
 
847
    eval enable_$ac_useropt=\$ac_optarg ;;
418
848
 
419
849
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
420
850
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
441
871
  -host=* | --host=* | --hos=* | --ho=*)
442
872
    host_alias=$ac_optarg ;;
443
873
 
 
874
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
 
875
    ac_prev=htmldir ;;
 
876
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
 
877
  | --ht=*)
 
878
    htmldir=$ac_optarg ;;
 
879
 
444
880
  -includedir | --includedir | --includedi | --included | --include \
445
881
  | --includ | --inclu | --incl | --inc)
446
882
    ac_prev=includedir ;;
465
901
  | --libexe=* | --libex=* | --libe=*)
466
902
    libexecdir=$ac_optarg ;;
467
903
 
 
904
  -localedir | --localedir | --localedi | --localed | --locale)
 
905
    ac_prev=localedir ;;
 
906
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
 
907
    localedir=$ac_optarg ;;
 
908
 
468
909
  -localstatedir | --localstatedir | --localstatedi | --localstated \
469
 
  | --localstate | --localstat | --localsta | --localst \
470
 
  | --locals | --local | --loca | --loc | --lo)
 
910
  | --localstate | --localstat | --localsta | --localst | --locals)
471
911
    ac_prev=localstatedir ;;
472
912
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
473
 
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
474
 
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
 
913
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
475
914
    localstatedir=$ac_optarg ;;
476
915
 
477
916
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
536
975
  | --progr-tra=* | --program-tr=* | --program-t=*)
537
976
    program_transform_name=$ac_optarg ;;
538
977
 
 
978
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
 
979
    ac_prev=pdfdir ;;
 
980
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
 
981
    pdfdir=$ac_optarg ;;
 
982
 
 
983
  -psdir | --psdir | --psdi | --psd | --ps)
 
984
    ac_prev=psdir ;;
 
985
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
 
986
    psdir=$ac_optarg ;;
 
987
 
539
988
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
540
989
  | -silent | --silent | --silen | --sile | --sil)
541
990
    silent=yes ;;
586
1035
    ac_init_version=: ;;
587
1036
 
588
1037
  -with-* | --with-*)
589
 
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 
1038
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
590
1039
    # Reject names that are not valid shell variable names.
591
 
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
592
 
      { echo "$as_me: error: invalid package name: $ac_package" >&2
593
 
   { (exit 1); exit 1; }; }
594
 
    ac_package=`echo $ac_package| sed 's/-/_/g'`
595
 
    case $ac_option in
596
 
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597
 
      *) ac_optarg=yes ;;
 
1040
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1041
      as_fn_error "invalid package name: $ac_useropt"
 
1042
    ac_useropt_orig=$ac_useropt
 
1043
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1044
    case $ac_user_opts in
 
1045
      *"
 
1046
"with_$ac_useropt"
 
1047
"*) ;;
 
1048
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
 
1049
         ac_unrecognized_sep=', ';;
598
1050
    esac
599
 
    eval "with_$ac_package='$ac_optarg'" ;;
 
1051
    eval with_$ac_useropt=\$ac_optarg ;;
600
1052
 
601
1053
  -without-* | --without-*)
602
 
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 
1054
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
603
1055
    # Reject names that are not valid shell variable names.
604
 
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
605
 
      { echo "$as_me: error: invalid package name: $ac_package" >&2
606
 
   { (exit 1); exit 1; }; }
607
 
    ac_package=`echo $ac_package | sed 's/-/_/g'`
608
 
    eval "with_$ac_package=no" ;;
 
1056
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1057
      as_fn_error "invalid package name: $ac_useropt"
 
1058
    ac_useropt_orig=$ac_useropt
 
1059
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1060
    case $ac_user_opts in
 
1061
      *"
 
1062
"with_$ac_useropt"
 
1063
"*) ;;
 
1064
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
 
1065
         ac_unrecognized_sep=', ';;
 
1066
    esac
 
1067
    eval with_$ac_useropt=no ;;
609
1068
 
610
1069
  --x)
611
1070
    # Obsolete; use --with-x.
625
1084
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
626
1085
    x_libraries=$ac_optarg ;;
627
1086
 
628
 
  -*) { echo "$as_me: error: unrecognized option: $ac_option
629
 
Try \`$0 --help' for more information." >&2
630
 
   { (exit 1); exit 1; }; }
 
1087
  -*) as_fn_error "unrecognized option: \`$ac_option'
 
1088
Try \`$0 --help' for more information."
631
1089
    ;;
632
1090
 
633
1091
  *=*)
634
1092
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
635
1093
    # Reject names that are not valid shell variable names.
636
 
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
637
 
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
638
 
   { (exit 1); exit 1; }; }
639
 
    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
640
 
    eval "$ac_envvar='$ac_optarg'"
 
1094
    case $ac_envvar in #(
 
1095
      '' | [0-9]* | *[!_$as_cr_alnum]* )
 
1096
      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
 
1097
    esac
 
1098
    eval $ac_envvar=\$ac_optarg
641
1099
    export $ac_envvar ;;
642
1100
 
643
1101
  *)
644
1102
    # FIXME: should be removed in autoconf 3.0.
645
 
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
1103
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
646
1104
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
647
 
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
1105
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
648
1106
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
649
1107
    ;;
650
1108
 
653
1111
 
654
1112
if test -n "$ac_prev"; then
655
1113
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
656
 
  { echo "$as_me: error: missing argument to $ac_option" >&2
657
 
   { (exit 1); exit 1; }; }
658
 
fi
659
 
 
660
 
# Be sure to have absolute paths.
661
 
for ac_var in exec_prefix prefix
662
 
do
663
 
  eval ac_val=$`echo $ac_var`
664
 
  case $ac_val in
665
 
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
666
 
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667
 
   { (exit 1); exit 1; }; };;
668
 
  esac
669
 
done
670
 
 
671
 
# Be sure to have absolute paths.
672
 
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
673
 
              localstatedir libdir includedir oldincludedir infodir mandir
674
 
do
675
 
  eval ac_val=$`echo $ac_var`
676
 
  case $ac_val in
677
 
    [\\/$]* | ?:[\\/]* ) ;;
678
 
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
679
 
   { (exit 1); exit 1; }; };;
680
 
  esac
 
1114
  as_fn_error "missing argument to $ac_option"
 
1115
fi
 
1116
 
 
1117
if test -n "$ac_unrecognized_opts"; then
 
1118
  case $enable_option_checking in
 
1119
    no) ;;
 
1120
    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
 
1121
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
 
1122
  esac
 
1123
fi
 
1124
 
 
1125
# Check all directory arguments for consistency.
 
1126
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
 
1127
                datadir sysconfdir sharedstatedir localstatedir includedir \
 
1128
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
 
1129
                libdir localedir mandir
 
1130
do
 
1131
  eval ac_val=\$$ac_var
 
1132
  # Remove trailing slashes.
 
1133
  case $ac_val in
 
1134
    */ )
 
1135
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
 
1136
      eval $ac_var=\$ac_val;;
 
1137
  esac
 
1138
  # Be sure to have absolute directory names.
 
1139
  case $ac_val in
 
1140
    [\\/$]* | ?:[\\/]* )  continue;;
 
1141
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
 
1142
  esac
 
1143
  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
681
1144
done
682
1145
 
683
1146
# There might be people who depend on the old broken behavior: `$host'
691
1154
if test "x$host_alias" != x; then
692
1155
  if test "x$build_alias" = x; then
693
1156
    cross_compiling=maybe
694
 
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
 
1157
    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
695
1158
    If a cross compiler is detected then cross compile mode will be used." >&2
696
1159
  elif test "x$build_alias" != "x$host_alias"; then
697
1160
    cross_compiling=yes
704
1167
test "$silent" = yes && exec 6>/dev/null
705
1168
 
706
1169
 
 
1170
ac_pwd=`pwd` && test -n "$ac_pwd" &&
 
1171
ac_ls_di=`ls -di .` &&
 
1172
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
 
1173
  as_fn_error "working directory cannot be determined"
 
1174
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
 
1175
  as_fn_error "pwd does not report name of working directory"
 
1176
 
 
1177
 
707
1178
# Find the source files, if location was not specified.
708
1179
if test -z "$srcdir"; then
709
1180
  ac_srcdir_defaulted=yes
710
 
  # Try the directory containing this script, then its parent.
711
 
  ac_confdir=`(dirname "$0") 2>/dev/null ||
712
 
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
713
 
         X"$0" : 'X\(//\)[^/]' \| \
714
 
         X"$0" : 'X\(//\)$' \| \
715
 
         X"$0" : 'X\(/\)' \| \
716
 
         .     : '\(.\)' 2>/dev/null ||
717
 
echo X"$0" |
718
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
720
 
          /^X\(\/\/\)$/{ s//\1/; q; }
721
 
          /^X\(\/\).*/{ s//\1/; q; }
722
 
          s/.*/./; q'`
 
1181
  # Try the directory containing this script, then the parent directory.
 
1182
  ac_confdir=`$as_dirname -- "$as_myself" ||
 
1183
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
1184
         X"$as_myself" : 'X\(//\)[^/]' \| \
 
1185
         X"$as_myself" : 'X\(//\)$' \| \
 
1186
         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
 
1187
$as_echo X"$as_myself" |
 
1188
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
1189
            s//\1/
 
1190
            q
 
1191
          }
 
1192
          /^X\(\/\/\)[^/].*/{
 
1193
            s//\1/
 
1194
            q
 
1195
          }
 
1196
          /^X\(\/\/\)$/{
 
1197
            s//\1/
 
1198
            q
 
1199
          }
 
1200
          /^X\(\/\).*/{
 
1201
            s//\1/
 
1202
            q
 
1203
          }
 
1204
          s/.*/./; q'`
723
1205
  srcdir=$ac_confdir
724
 
  if test ! -r $srcdir/$ac_unique_file; then
 
1206
  if test ! -r "$srcdir/$ac_unique_file"; then
725
1207
    srcdir=..
726
1208
  fi
727
1209
else
728
1210
  ac_srcdir_defaulted=no
729
1211
fi
730
 
if test ! -r $srcdir/$ac_unique_file; then
731
 
  if test "$ac_srcdir_defaulted" = yes; then
732
 
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
733
 
   { (exit 1); exit 1; }; }
734
 
  else
735
 
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
736
 
   { (exit 1); exit 1; }; }
737
 
  fi
738
 
fi
739
 
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
740
 
  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
741
 
   { (exit 1); exit 1; }; }
742
 
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743
 
ac_env_build_alias_set=${build_alias+set}
744
 
ac_env_build_alias_value=$build_alias
745
 
ac_cv_env_build_alias_set=${build_alias+set}
746
 
ac_cv_env_build_alias_value=$build_alias
747
 
ac_env_host_alias_set=${host_alias+set}
748
 
ac_env_host_alias_value=$host_alias
749
 
ac_cv_env_host_alias_set=${host_alias+set}
750
 
ac_cv_env_host_alias_value=$host_alias
751
 
ac_env_target_alias_set=${target_alias+set}
752
 
ac_env_target_alias_value=$target_alias
753
 
ac_cv_env_target_alias_set=${target_alias+set}
754
 
ac_cv_env_target_alias_value=$target_alias
755
 
ac_env_CC_set=${CC+set}
756
 
ac_env_CC_value=$CC
757
 
ac_cv_env_CC_set=${CC+set}
758
 
ac_cv_env_CC_value=$CC
759
 
ac_env_CFLAGS_set=${CFLAGS+set}
760
 
ac_env_CFLAGS_value=$CFLAGS
761
 
ac_cv_env_CFLAGS_set=${CFLAGS+set}
762
 
ac_cv_env_CFLAGS_value=$CFLAGS
763
 
ac_env_LDFLAGS_set=${LDFLAGS+set}
764
 
ac_env_LDFLAGS_value=$LDFLAGS
765
 
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
766
 
ac_cv_env_LDFLAGS_value=$LDFLAGS
767
 
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
768
 
ac_env_CPPFLAGS_value=$CPPFLAGS
769
 
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
770
 
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
771
 
ac_env_CPP_set=${CPP+set}
772
 
ac_env_CPP_value=$CPP
773
 
ac_cv_env_CPP_set=${CPP+set}
774
 
ac_cv_env_CPP_value=$CPP
 
1212
if test ! -r "$srcdir/$ac_unique_file"; then
 
1213
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
 
1214
  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
 
1215
fi
 
1216
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
 
1217
ac_abs_confdir=`(
 
1218
        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
 
1219
        pwd)`
 
1220
# When building in place, set srcdir=.
 
1221
if test "$ac_abs_confdir" = "$ac_pwd"; then
 
1222
  srcdir=.
 
1223
fi
 
1224
# Remove unnecessary trailing slashes from srcdir.
 
1225
# Double slashes in file names in object file debugging info
 
1226
# mess up M-x gdb in Emacs.
 
1227
case $srcdir in
 
1228
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
 
1229
esac
 
1230
for ac_var in $ac_precious_vars; do
 
1231
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
 
1232
  eval ac_env_${ac_var}_value=\$${ac_var}
 
1233
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
 
1234
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
 
1235
done
775
1236
 
776
1237
#
777
1238
# Report the --help message.
780
1241
  # Omit some internal or obsolete options to make the list less imposing.
781
1242
  # This message is too long to be a string in the A/UX 3.1 sh.
782
1243
  cat <<_ACEOF
783
 
\`configure' configures cabextract 1.2 to adapt to many kinds of systems.
 
1244
\`configure' configures cabextract 1.3 to adapt to many kinds of systems.
784
1245
 
785
1246
Usage: $0 [OPTION]... [VAR=VALUE]...
786
1247
 
800
1261
  -n, --no-create         do not create output files
801
1262
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
802
1263
 
803
 
_ACEOF
804
 
 
805
 
  cat <<_ACEOF
806
1264
Installation directories:
807
1265
  --prefix=PREFIX         install architecture-independent files in PREFIX
808
 
                          [$ac_default_prefix]
 
1266
                          [$ac_default_prefix]
809
1267
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
810
 
                          [PREFIX]
 
1268
                          [PREFIX]
811
1269
 
812
1270
By default, \`make install' will install all the files in
813
1271
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
817
1275
For better control, use the options below.
818
1276
 
819
1277
Fine tuning of the installation directories:
820
 
  --bindir=DIR           user executables [EPREFIX/bin]
821
 
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
822
 
  --libexecdir=DIR       program executables [EPREFIX/libexec]
823
 
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
824
 
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
825
 
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
826
 
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
827
 
  --libdir=DIR           object code libraries [EPREFIX/lib]
828
 
  --includedir=DIR       C header files [PREFIX/include]
829
 
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
830
 
  --infodir=DIR          info documentation [PREFIX/info]
831
 
  --mandir=DIR           man documentation [PREFIX/man]
 
1278
  --bindir=DIR            user executables [EPREFIX/bin]
 
1279
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
 
1280
  --libexecdir=DIR        program executables [EPREFIX/libexec]
 
1281
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
 
1282
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
 
1283
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
 
1284
  --libdir=DIR            object code libraries [EPREFIX/lib]
 
1285
  --includedir=DIR        C header files [PREFIX/include]
 
1286
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
 
1287
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
 
1288
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
 
1289
  --infodir=DIR           info documentation [DATAROOTDIR/info]
 
1290
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
 
1291
  --mandir=DIR            man documentation [DATAROOTDIR/man]
 
1292
  --docdir=DIR            documentation root [DATAROOTDIR/doc/cabextract]
 
1293
  --htmldir=DIR           html documentation [DOCDIR]
 
1294
  --dvidir=DIR            dvi documentation [DOCDIR]
 
1295
  --pdfdir=DIR            pdf documentation [DOCDIR]
 
1296
  --psdir=DIR             ps documentation [DOCDIR]
832
1297
_ACEOF
833
1298
 
834
1299
  cat <<\_ACEOF
842
1307
 
843
1308
if test -n "$ac_init_help"; then
844
1309
  case $ac_init_help in
845
 
     short | recursive ) echo "Configuration of cabextract 1.2:";;
 
1310
     short | recursive ) echo "Configuration of cabextract 1.3:";;
846
1311
   esac
847
1312
  cat <<\_ACEOF
848
1313
 
849
1314
Optional Features:
 
1315
  --disable-option-checking  ignore unrecognized --enable/--with options
850
1316
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
851
1317
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
852
1318
  --disable-dependency-tracking  speeds up one-time build
853
1319
  --enable-dependency-tracking   do not reject slow dependency extractors
854
1320
  --disable-largefile     omit support for large files
855
1321
 
 
1322
Optional Packages:
 
1323
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
1324
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
1325
  --with-external-libmspack
 
1326
                          use external libmspack (default no)
 
1327
 
856
1328
Some influential environment variables:
857
1329
  CC          C compiler command
858
1330
  CFLAGS      C compiler flags
859
1331
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
860
1332
              nonstandard directory <lib dir>
861
 
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
862
 
              headers in a nonstandard directory <include dir>
 
1333
  LIBS        libraries to pass to the linker, e.g. -l<library>
 
1334
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
 
1335
              you have headers in a nonstandard directory <include dir>
863
1336
  CPP         C preprocessor
864
1337
 
865
1338
Use these variables to override the choices made by `configure' or to help
867
1340
 
868
1341
Report bugs to <kyzer@4u.net>.
869
1342
_ACEOF
 
1343
ac_status=$?
870
1344
fi
871
1345
 
872
1346
if test "$ac_init_help" = "recursive"; then
873
1347
  # If there are subdirs, report their specific --help.
874
 
  ac_popdir=`pwd`
875
1348
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
876
 
    test -d $ac_dir || continue
 
1349
    test -d "$ac_dir" ||
 
1350
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
 
1351
      continue
877
1352
    ac_builddir=.
878
1353
 
879
 
if test "$ac_dir" != .; then
880
 
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
881
 
  # A "../" for each directory in $ac_dir_suffix.
882
 
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
883
 
else
884
 
  ac_dir_suffix= ac_top_builddir=
885
 
fi
 
1354
case "$ac_dir" in
 
1355
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1356
*)
 
1357
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 
1358
  # A ".." for each directory in $ac_dir_suffix.
 
1359
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 
1360
  case $ac_top_builddir_sub in
 
1361
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1362
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
1363
  esac ;;
 
1364
esac
 
1365
ac_abs_top_builddir=$ac_pwd
 
1366
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
1367
# for backward compatibility:
 
1368
ac_top_builddir=$ac_top_build_prefix
886
1369
 
887
1370
case $srcdir in
888
 
  .)  # No --srcdir option.  We are building in place.
 
1371
  .)  # We are building in place.
889
1372
    ac_srcdir=.
890
 
    if test -z "$ac_top_builddir"; then
891
 
       ac_top_srcdir=.
892
 
    else
893
 
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
894
 
    fi ;;
895
 
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
1373
    ac_top_srcdir=$ac_top_builddir_sub
 
1374
    ac_abs_top_srcdir=$ac_pwd ;;
 
1375
  [\\/]* | ?:[\\/]* )  # Absolute name.
896
1376
    ac_srcdir=$srcdir$ac_dir_suffix;
897
 
    ac_top_srcdir=$srcdir ;;
898
 
  *) # Relative path.
899
 
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
900
 
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
901
 
esac
902
 
 
903
 
# Do not use `cd foo && pwd` to compute absolute paths, because
904
 
# the directories may not exist.
905
 
case `pwd` in
906
 
.) ac_abs_builddir="$ac_dir";;
907
 
*)
908
 
  case "$ac_dir" in
909
 
  .) ac_abs_builddir=`pwd`;;
910
 
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
911
 
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
912
 
  esac;;
913
 
esac
914
 
case $ac_abs_builddir in
915
 
.) ac_abs_top_builddir=${ac_top_builddir}.;;
916
 
*)
917
 
  case ${ac_top_builddir}. in
918
 
  .) ac_abs_top_builddir=$ac_abs_builddir;;
919
 
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
920
 
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
921
 
  esac;;
922
 
esac
923
 
case $ac_abs_builddir in
924
 
.) ac_abs_srcdir=$ac_srcdir;;
925
 
*)
926
 
  case $ac_srcdir in
927
 
  .) ac_abs_srcdir=$ac_abs_builddir;;
928
 
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
929
 
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
930
 
  esac;;
931
 
esac
932
 
case $ac_abs_builddir in
933
 
.) ac_abs_top_srcdir=$ac_top_srcdir;;
934
 
*)
935
 
  case $ac_top_srcdir in
936
 
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
937
 
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
938
 
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
939
 
  esac;;
940
 
esac
941
 
 
942
 
    cd $ac_dir
943
 
    # Check for guested configure; otherwise get Cygnus style configure.
944
 
    if test -f $ac_srcdir/configure.gnu; then
945
 
      echo
946
 
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
947
 
    elif test -f $ac_srcdir/configure; then
948
 
      echo
949
 
      $SHELL $ac_srcdir/configure  --help=recursive
950
 
    elif test -f $ac_srcdir/configure.ac ||
951
 
           test -f $ac_srcdir/configure.in; then
952
 
      echo
953
 
      $ac_configure --help
 
1377
    ac_top_srcdir=$srcdir
 
1378
    ac_abs_top_srcdir=$srcdir ;;
 
1379
  *) # Relative name.
 
1380
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
1381
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
1382
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
1383
esac
 
1384
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
1385
 
 
1386
    cd "$ac_dir" || { ac_status=$?; continue; }
 
1387
    # Check for guested configure.
 
1388
    if test -f "$ac_srcdir/configure.gnu"; then
 
1389
      echo &&
 
1390
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
 
1391
    elif test -f "$ac_srcdir/configure"; then
 
1392
      echo &&
 
1393
      $SHELL "$ac_srcdir/configure" --help=recursive
954
1394
    else
955
 
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
956
 
    fi
957
 
    cd "$ac_popdir"
 
1395
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
1396
    fi || ac_status=$?
 
1397
    cd "$ac_pwd" || { ac_status=$?; break; }
958
1398
  done
959
1399
fi
960
1400
 
961
 
test -n "$ac_init_help" && exit 0
 
1401
test -n "$ac_init_help" && exit $ac_status
962
1402
if $ac_init_version; then
963
1403
  cat <<\_ACEOF
964
 
cabextract configure 1.2
965
 
generated by GNU Autoconf 2.59
 
1404
cabextract configure 1.3
 
1405
generated by GNU Autoconf 2.65
966
1406
 
967
 
Copyright (C) 2003 Free Software Foundation, Inc.
 
1407
Copyright (C) 2009 Free Software Foundation, Inc.
968
1408
This configure script is free software; the Free Software Foundation
969
1409
gives unlimited permission to copy, distribute and modify it.
970
1410
_ACEOF
971
 
  exit 0
972
 
fi
973
 
exec 5>config.log
974
 
cat >&5 <<_ACEOF
 
1411
  exit
 
1412
fi
 
1413
 
 
1414
## ------------------------ ##
 
1415
## Autoconf initialization. ##
 
1416
## ------------------------ ##
 
1417
 
 
1418
# ac_fn_c_try_compile LINENO
 
1419
# --------------------------
 
1420
# Try to compile conftest.$ac_ext, and return whether this succeeded.
 
1421
ac_fn_c_try_compile ()
 
1422
{
 
1423
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1424
  rm -f conftest.$ac_objext
 
1425
  if { { ac_try="$ac_compile"
 
1426
case "(($ac_try" in
 
1427
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1428
  *) ac_try_echo=$ac_try;;
 
1429
esac
 
1430
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1431
$as_echo "$ac_try_echo"; } >&5
 
1432
  (eval "$ac_compile") 2>conftest.err
 
1433
  ac_status=$?
 
1434
  if test -s conftest.err; then
 
1435
    grep -v '^ *+' conftest.err >conftest.er1
 
1436
    cat conftest.er1 >&5
 
1437
    mv -f conftest.er1 conftest.err
 
1438
  fi
 
1439
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1440
  test $ac_status = 0; } && {
 
1441
         test -z "$ac_c_werror_flag" ||
 
1442
         test ! -s conftest.err
 
1443
       } && test -s conftest.$ac_objext; then :
 
1444
  ac_retval=0
 
1445
else
 
1446
  $as_echo "$as_me: failed program was:" >&5
 
1447
sed 's/^/| /' conftest.$ac_ext >&5
 
1448
 
 
1449
        ac_retval=1
 
1450
fi
 
1451
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1452
  as_fn_set_status $ac_retval
 
1453
 
 
1454
} # ac_fn_c_try_compile
 
1455
 
 
1456
# ac_fn_c_try_cpp LINENO
 
1457
# ----------------------
 
1458
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
 
1459
ac_fn_c_try_cpp ()
 
1460
{
 
1461
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1462
  if { { ac_try="$ac_cpp conftest.$ac_ext"
 
1463
case "(($ac_try" in
 
1464
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1465
  *) ac_try_echo=$ac_try;;
 
1466
esac
 
1467
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1468
$as_echo "$ac_try_echo"; } >&5
 
1469
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
 
1470
  ac_status=$?
 
1471
  if test -s conftest.err; then
 
1472
    grep -v '^ *+' conftest.err >conftest.er1
 
1473
    cat conftest.er1 >&5
 
1474
    mv -f conftest.er1 conftest.err
 
1475
  fi
 
1476
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1477
  test $ac_status = 0; } >/dev/null && {
 
1478
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
1479
         test ! -s conftest.err
 
1480
       }; then :
 
1481
  ac_retval=0
 
1482
else
 
1483
  $as_echo "$as_me: failed program was:" >&5
 
1484
sed 's/^/| /' conftest.$ac_ext >&5
 
1485
 
 
1486
    ac_retval=1
 
1487
fi
 
1488
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1489
  as_fn_set_status $ac_retval
 
1490
 
 
1491
} # ac_fn_c_try_cpp
 
1492
 
 
1493
# ac_fn_c_try_run LINENO
 
1494
# ----------------------
 
1495
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
 
1496
# that executables *can* be run.
 
1497
ac_fn_c_try_run ()
 
1498
{
 
1499
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1500
  if { { ac_try="$ac_link"
 
1501
case "(($ac_try" in
 
1502
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1503
  *) ac_try_echo=$ac_try;;
 
1504
esac
 
1505
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1506
$as_echo "$ac_try_echo"; } >&5
 
1507
  (eval "$ac_link") 2>&5
 
1508
  ac_status=$?
 
1509
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1510
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
 
1511
  { { case "(($ac_try" in
 
1512
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1513
  *) ac_try_echo=$ac_try;;
 
1514
esac
 
1515
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1516
$as_echo "$ac_try_echo"; } >&5
 
1517
  (eval "$ac_try") 2>&5
 
1518
  ac_status=$?
 
1519
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1520
  test $ac_status = 0; }; }; then :
 
1521
  ac_retval=0
 
1522
else
 
1523
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
1524
       $as_echo "$as_me: failed program was:" >&5
 
1525
sed 's/^/| /' conftest.$ac_ext >&5
 
1526
 
 
1527
       ac_retval=$ac_status
 
1528
fi
 
1529
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 
1530
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1531
  as_fn_set_status $ac_retval
 
1532
 
 
1533
} # ac_fn_c_try_run
 
1534
 
 
1535
# ac_fn_c_try_link LINENO
 
1536
# -----------------------
 
1537
# Try to link conftest.$ac_ext, and return whether this succeeded.
 
1538
ac_fn_c_try_link ()
 
1539
{
 
1540
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1541
  rm -f conftest.$ac_objext conftest$ac_exeext
 
1542
  if { { ac_try="$ac_link"
 
1543
case "(($ac_try" in
 
1544
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1545
  *) ac_try_echo=$ac_try;;
 
1546
esac
 
1547
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1548
$as_echo "$ac_try_echo"; } >&5
 
1549
  (eval "$ac_link") 2>conftest.err
 
1550
  ac_status=$?
 
1551
  if test -s conftest.err; then
 
1552
    grep -v '^ *+' conftest.err >conftest.er1
 
1553
    cat conftest.er1 >&5
 
1554
    mv -f conftest.er1 conftest.err
 
1555
  fi
 
1556
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1557
  test $ac_status = 0; } && {
 
1558
         test -z "$ac_c_werror_flag" ||
 
1559
         test ! -s conftest.err
 
1560
       } && test -s conftest$ac_exeext && {
 
1561
         test "$cross_compiling" = yes ||
 
1562
         $as_test_x conftest$ac_exeext
 
1563
       }; then :
 
1564
  ac_retval=0
 
1565
else
 
1566
  $as_echo "$as_me: failed program was:" >&5
 
1567
sed 's/^/| /' conftest.$ac_ext >&5
 
1568
 
 
1569
        ac_retval=1
 
1570
fi
 
1571
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
 
1572
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
 
1573
  # interfere with the next link command; also delete a directory that is
 
1574
  # left behind by Apple's compiler.  We do this before executing the actions.
 
1575
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 
1576
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1577
  as_fn_set_status $ac_retval
 
1578
 
 
1579
} # ac_fn_c_try_link
 
1580
 
 
1581
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
 
1582
# -------------------------------------------------------
 
1583
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
 
1584
# the include files in INCLUDES and setting the cache variable VAR
 
1585
# accordingly.
 
1586
ac_fn_c_check_header_mongrel ()
 
1587
{
 
1588
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1589
  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
 
1590
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1591
$as_echo_n "checking for $2... " >&6; }
 
1592
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
 
1593
  $as_echo_n "(cached) " >&6
 
1594
fi
 
1595
eval ac_res=\$$3
 
1596
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1597
$as_echo "$ac_res" >&6; }
 
1598
else
 
1599
  # Is the header compilable?
 
1600
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
 
1601
$as_echo_n "checking $2 usability... " >&6; }
 
1602
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1603
/* end confdefs.h.  */
 
1604
$4
 
1605
#include <$2>
 
1606
_ACEOF
 
1607
if ac_fn_c_try_compile "$LINENO"; then :
 
1608
  ac_header_compiler=yes
 
1609
else
 
1610
  ac_header_compiler=no
 
1611
fi
 
1612
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
1613
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
 
1614
$as_echo "$ac_header_compiler" >&6; }
 
1615
 
 
1616
# Is the header present?
 
1617
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
 
1618
$as_echo_n "checking $2 presence... " >&6; }
 
1619
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1620
/* end confdefs.h.  */
 
1621
#include <$2>
 
1622
_ACEOF
 
1623
if ac_fn_c_try_cpp "$LINENO"; then :
 
1624
  ac_header_preproc=yes
 
1625
else
 
1626
  ac_header_preproc=no
 
1627
fi
 
1628
rm -f conftest.err conftest.$ac_ext
 
1629
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
 
1630
$as_echo "$ac_header_preproc" >&6; }
 
1631
 
 
1632
# So?  What about this header?
 
1633
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
 
1634
  yes:no: )
 
1635
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
 
1636
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
1637
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
 
1638
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
 
1639
    ;;
 
1640
  no:yes:* )
 
1641
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
 
1642
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
 
1643
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
 
1644
$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
 
1645
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
 
1646
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
 
1647
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
 
1648
$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
 
1649
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
 
1650
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
 
1651
( cat <<\_ASBOX
 
1652
## --------------------------- ##
 
1653
## Report this to kyzer@4u.net ##
 
1654
## --------------------------- ##
 
1655
_ASBOX
 
1656
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
1657
    ;;
 
1658
esac
 
1659
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1660
$as_echo_n "checking for $2... " >&6; }
 
1661
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
 
1662
  $as_echo_n "(cached) " >&6
 
1663
else
 
1664
  eval "$3=\$ac_header_compiler"
 
1665
fi
 
1666
eval ac_res=\$$3
 
1667
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1668
$as_echo "$ac_res" >&6; }
 
1669
fi
 
1670
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1671
 
 
1672
} # ac_fn_c_check_header_mongrel
 
1673
 
 
1674
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
 
1675
# -------------------------------------------------------
 
1676
# Tests whether HEADER exists and can be compiled using the include files in
 
1677
# INCLUDES, setting the cache variable VAR accordingly.
 
1678
ac_fn_c_check_header_compile ()
 
1679
{
 
1680
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1681
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1682
$as_echo_n "checking for $2... " >&6; }
 
1683
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
 
1684
  $as_echo_n "(cached) " >&6
 
1685
else
 
1686
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1687
/* end confdefs.h.  */
 
1688
$4
 
1689
#include <$2>
 
1690
_ACEOF
 
1691
if ac_fn_c_try_compile "$LINENO"; then :
 
1692
  eval "$3=yes"
 
1693
else
 
1694
  eval "$3=no"
 
1695
fi
 
1696
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
1697
fi
 
1698
eval ac_res=\$$3
 
1699
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1700
$as_echo "$ac_res" >&6; }
 
1701
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1702
 
 
1703
} # ac_fn_c_check_header_compile
 
1704
 
 
1705
# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
 
1706
# -------------------------------------------
 
1707
# Tests whether TYPE exists after having included INCLUDES, setting cache
 
1708
# variable VAR accordingly.
 
1709
ac_fn_c_check_type ()
 
1710
{
 
1711
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1712
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1713
$as_echo_n "checking for $2... " >&6; }
 
1714
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
 
1715
  $as_echo_n "(cached) " >&6
 
1716
else
 
1717
  eval "$3=no"
 
1718
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1719
/* end confdefs.h.  */
 
1720
$4
 
1721
int
 
1722
main ()
 
1723
{
 
1724
if (sizeof ($2))
 
1725
         return 0;
 
1726
  ;
 
1727
  return 0;
 
1728
}
 
1729
_ACEOF
 
1730
if ac_fn_c_try_compile "$LINENO"; then :
 
1731
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1732
/* end confdefs.h.  */
 
1733
$4
 
1734
int
 
1735
main ()
 
1736
{
 
1737
if (sizeof (($2)))
 
1738
            return 0;
 
1739
  ;
 
1740
  return 0;
 
1741
}
 
1742
_ACEOF
 
1743
if ac_fn_c_try_compile "$LINENO"; then :
 
1744
 
 
1745
else
 
1746
  eval "$3=yes"
 
1747
fi
 
1748
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
1749
fi
 
1750
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
1751
fi
 
1752
eval ac_res=\$$3
 
1753
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1754
$as_echo "$ac_res" >&6; }
 
1755
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1756
 
 
1757
} # ac_fn_c_check_type
 
1758
 
 
1759
# ac_fn_c_check_func LINENO FUNC VAR
 
1760
# ----------------------------------
 
1761
# Tests whether FUNC exists, setting the cache variable VAR accordingly
 
1762
ac_fn_c_check_func ()
 
1763
{
 
1764
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1765
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1766
$as_echo_n "checking for $2... " >&6; }
 
1767
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
 
1768
  $as_echo_n "(cached) " >&6
 
1769
else
 
1770
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1771
/* end confdefs.h.  */
 
1772
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
 
1773
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
1774
#define $2 innocuous_$2
 
1775
 
 
1776
/* System header to define __stub macros and hopefully few prototypes,
 
1777
    which can conflict with char $2 (); below.
 
1778
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
1779
    <limits.h> exists even on freestanding compilers.  */
 
1780
 
 
1781
#ifdef __STDC__
 
1782
# include <limits.h>
 
1783
#else
 
1784
# include <assert.h>
 
1785
#endif
 
1786
 
 
1787
#undef $2
 
1788
 
 
1789
/* Override any GCC internal prototype to avoid an error.
 
1790
   Use char because int might match the return type of a GCC
 
1791
   builtin and then its argument prototype would still apply.  */
 
1792
#ifdef __cplusplus
 
1793
extern "C"
 
1794
#endif
 
1795
char $2 ();
 
1796
/* The GNU C library defines this for functions which it implements
 
1797
    to always fail with ENOSYS.  Some functions are actually named
 
1798
    something starting with __ and the normal name is an alias.  */
 
1799
#if defined __stub_$2 || defined __stub___$2
 
1800
choke me
 
1801
#endif
 
1802
 
 
1803
int
 
1804
main ()
 
1805
{
 
1806
return $2 ();
 
1807
  ;
 
1808
  return 0;
 
1809
}
 
1810
_ACEOF
 
1811
if ac_fn_c_try_link "$LINENO"; then :
 
1812
  eval "$3=yes"
 
1813
else
 
1814
  eval "$3=no"
 
1815
fi
 
1816
rm -f core conftest.err conftest.$ac_objext \
 
1817
    conftest$ac_exeext conftest.$ac_ext
 
1818
fi
 
1819
eval ac_res=\$$3
 
1820
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1821
$as_echo "$ac_res" >&6; }
 
1822
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1823
 
 
1824
} # ac_fn_c_check_func
 
1825
 
 
1826
# ac_fn_c_check_decl LINENO SYMBOL VAR
 
1827
# ------------------------------------
 
1828
# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
 
1829
ac_fn_c_check_decl ()
 
1830
{
 
1831
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1832
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
 
1833
$as_echo_n "checking whether $2 is declared... " >&6; }
 
1834
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
 
1835
  $as_echo_n "(cached) " >&6
 
1836
else
 
1837
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1838
/* end confdefs.h.  */
 
1839
$4
 
1840
int
 
1841
main ()
 
1842
{
 
1843
#ifndef $2
 
1844
  (void) $2;
 
1845
#endif
 
1846
 
 
1847
  ;
 
1848
  return 0;
 
1849
}
 
1850
_ACEOF
 
1851
if ac_fn_c_try_compile "$LINENO"; then :
 
1852
  eval "$3=yes"
 
1853
else
 
1854
  eval "$3=no"
 
1855
fi
 
1856
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
1857
fi
 
1858
eval ac_res=\$$3
 
1859
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1860
$as_echo "$ac_res" >&6; }
 
1861
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1862
 
 
1863
} # ac_fn_c_check_decl
 
1864
cat >config.log <<_ACEOF
975
1865
This file contains any messages produced by compilers while
976
1866
running configure, to aid debugging if configure makes a mistake.
977
1867
 
978
 
It was created by cabextract $as_me 1.2, which was
979
 
generated by GNU Autoconf 2.59.  Invocation command line was
 
1868
It was created by cabextract $as_me 1.3, which was
 
1869
generated by GNU Autoconf 2.65.  Invocation command line was
980
1870
 
981
1871
  $ $0 $@
982
1872
 
983
1873
_ACEOF
 
1874
exec 5>>config.log
984
1875
{
985
1876
cat <<_ASUNAME
986
1877
## --------- ##
999
1890
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1000
1891
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1001
1892
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1002
 
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
 
1893
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1003
1894
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1004
1895
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1005
1896
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1011
1902
do
1012
1903
  IFS=$as_save_IFS
1013
1904
  test -z "$as_dir" && as_dir=.
1014
 
  echo "PATH: $as_dir"
1015
 
done
 
1905
    $as_echo "PATH: $as_dir"
 
1906
  done
 
1907
IFS=$as_save_IFS
1016
1908
 
1017
1909
} >&5
1018
1910
 
1034
1926
ac_configure_args=
1035
1927
ac_configure_args0=
1036
1928
ac_configure_args1=
1037
 
ac_sep=
1038
1929
ac_must_keep_next=false
1039
1930
for ac_pass in 1 2
1040
1931
do
1045
1936
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1046
1937
    | -silent | --silent | --silen | --sile | --sil)
1047
1938
      continue ;;
1048
 
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1049
 
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1939
    *\'*)
 
1940
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1050
1941
    esac
1051
1942
    case $ac_pass in
1052
 
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
 
1943
    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1053
1944
    2)
1054
 
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
 
1945
      as_fn_append ac_configure_args1 " '$ac_arg'"
1055
1946
      if test $ac_must_keep_next = true; then
1056
1947
        ac_must_keep_next=false # Got value, back to normal.
1057
1948
      else
1067
1958
          -* ) ac_must_keep_next=true ;;
1068
1959
        esac
1069
1960
      fi
1070
 
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1071
 
      # Get rid of the leading space.
1072
 
      ac_sep=" "
 
1961
      as_fn_append ac_configure_args " '$ac_arg'"
1073
1962
      ;;
1074
1963
    esac
1075
1964
  done
1076
1965
done
1077
 
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1078
 
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
 
1966
{ ac_configure_args0=; unset ac_configure_args0;}
 
1967
{ ac_configure_args1=; unset ac_configure_args1;}
1079
1968
 
1080
1969
# When interrupted or exit'd, cleanup temporary files, and complete
1081
1970
# config.log.  We remove comments because anyway the quotes in there
1082
1971
# would cause problems or look ugly.
1083
 
# WARNING: Be sure not to use single quotes in there, as some shells,
1084
 
# such as our DU 5.0 friend, will then `close' the trap.
 
1972
# WARNING: Use '\'' to represent an apostrophe within the trap.
 
1973
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1085
1974
trap 'exit_status=$?
1086
1975
  # Save into config.log some information that might help in debugging.
1087
1976
  {
1094
1983
_ASBOX
1095
1984
    echo
1096
1985
    # The following way of writing the cache mishandles newlines in values,
1097
 
{
 
1986
(
 
1987
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
 
1988
    eval ac_val=\$$ac_var
 
1989
    case $ac_val in #(
 
1990
    *${as_nl}*)
 
1991
      case $ac_var in #(
 
1992
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
 
1993
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
 
1994
      esac
 
1995
      case $ac_var in #(
 
1996
      _ | IFS | as_nl) ;; #(
 
1997
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 
1998
      *) { eval $ac_var=; unset $ac_var;} ;;
 
1999
      esac ;;
 
2000
    esac
 
2001
  done
1098
2002
  (set) 2>&1 |
1099
 
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1100
 
    *ac_space=\ *)
 
2003
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
 
2004
    *${as_nl}ac_space=\ *)
1101
2005
      sed -n \
1102
 
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1103
 
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1104
 
      ;;
 
2006
        "s/'\''/'\''\\\\'\'''\''/g;
 
2007
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
 
2008
      ;; #(
1105
2009
    *)
1106
 
      sed -n \
1107
 
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
2010
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1108
2011
      ;;
1109
 
    esac;
1110
 
}
 
2012
    esac |
 
2013
    sort
 
2014
)
1111
2015
    echo
1112
2016
 
1113
2017
    cat <<\_ASBOX
1118
2022
    echo
1119
2023
    for ac_var in $ac_subst_vars
1120
2024
    do
1121
 
      eval ac_val=$`echo $ac_var`
1122
 
      echo "$ac_var='"'"'$ac_val'"'"'"
 
2025
      eval ac_val=\$$ac_var
 
2026
      case $ac_val in
 
2027
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
2028
      esac
 
2029
      $as_echo "$ac_var='\''$ac_val'\''"
1123
2030
    done | sort
1124
2031
    echo
1125
2032
 
1126
2033
    if test -n "$ac_subst_files"; then
1127
2034
      cat <<\_ASBOX
1128
 
## ------------- ##
1129
 
## Output files. ##
1130
 
## ------------- ##
 
2035
## ------------------- ##
 
2036
## File substitutions. ##
 
2037
## ------------------- ##
1131
2038
_ASBOX
1132
2039
      echo
1133
2040
      for ac_var in $ac_subst_files
1134
2041
      do
1135
 
        eval ac_val=$`echo $ac_var`
1136
 
        echo "$ac_var='"'"'$ac_val'"'"'"
 
2042
        eval ac_val=\$$ac_var
 
2043
        case $ac_val in
 
2044
        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
2045
        esac
 
2046
        $as_echo "$ac_var='\''$ac_val'\''"
1137
2047
      done | sort
1138
2048
      echo
1139
2049
    fi
1145
2055
## ----------- ##
1146
2056
_ASBOX
1147
2057
      echo
1148
 
      sed "/^$/d" confdefs.h | sort
 
2058
      cat confdefs.h
1149
2059
      echo
1150
2060
    fi
1151
2061
    test "$ac_signal" != 0 &&
1152
 
      echo "$as_me: caught signal $ac_signal"
1153
 
    echo "$as_me: exit $exit_status"
 
2062
      $as_echo "$as_me: caught signal $ac_signal"
 
2063
    $as_echo "$as_me: exit $exit_status"
1154
2064
  } >&5
1155
 
  rm -f core *.core &&
1156
 
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
 
2065
  rm -f core *.core core.conftest.* &&
 
2066
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1157
2067
    exit $exit_status
1158
 
     ' 0
 
2068
' 0
1159
2069
for ac_signal in 1 2 13 15; do
1160
 
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
 
2070
  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1161
2071
done
1162
2072
ac_signal=0
1163
2073
 
1164
2074
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1165
 
rm -rf conftest* confdefs.h
1166
 
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1167
 
echo >confdefs.h
 
2075
rm -f -r conftest* confdefs.h
 
2076
 
 
2077
$as_echo "/* confdefs.h */" > confdefs.h
1168
2078
 
1169
2079
# Predefined preprocessor variables.
1170
2080
 
1172
2082
#define PACKAGE_NAME "$PACKAGE_NAME"
1173
2083
_ACEOF
1174
2084
 
1175
 
 
1176
2085
cat >>confdefs.h <<_ACEOF
1177
2086
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1178
2087
_ACEOF
1179
2088
 
1180
 
 
1181
2089
cat >>confdefs.h <<_ACEOF
1182
2090
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1183
2091
_ACEOF
1184
2092
 
1185
 
 
1186
2093
cat >>confdefs.h <<_ACEOF
1187
2094
#define PACKAGE_STRING "$PACKAGE_STRING"
1188
2095
_ACEOF
1189
2096
 
1190
 
 
1191
2097
cat >>confdefs.h <<_ACEOF
1192
2098
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1193
2099
_ACEOF
1194
2100
 
 
2101
cat >>confdefs.h <<_ACEOF
 
2102
#define PACKAGE_URL "$PACKAGE_URL"
 
2103
_ACEOF
 
2104
 
1195
2105
 
1196
2106
# Let the site file select an alternate cache file if it wants to.
1197
 
# Prefer explicitly selected file to automatically selected ones.
1198
 
if test -z "$CONFIG_SITE"; then
1199
 
  if test "x$prefix" != xNONE; then
1200
 
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1201
 
  else
1202
 
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1203
 
  fi
 
2107
# Prefer an explicitly selected file to automatically selected ones.
 
2108
ac_site_file1=NONE
 
2109
ac_site_file2=NONE
 
2110
if test -n "$CONFIG_SITE"; then
 
2111
  ac_site_file1=$CONFIG_SITE
 
2112
elif test "x$prefix" != xNONE; then
 
2113
  ac_site_file1=$prefix/share/config.site
 
2114
  ac_site_file2=$prefix/etc/config.site
 
2115
else
 
2116
  ac_site_file1=$ac_default_prefix/share/config.site
 
2117
  ac_site_file2=$ac_default_prefix/etc/config.site
1204
2118
fi
1205
 
for ac_site_file in $CONFIG_SITE; do
1206
 
  if test -r "$ac_site_file"; then
1207
 
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1208
 
echo "$as_me: loading site script $ac_site_file" >&6;}
 
2119
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
 
2120
do
 
2121
  test "x$ac_site_file" = xNONE && continue
 
2122
  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
 
2123
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
 
2124
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1209
2125
    sed 's/^/| /' "$ac_site_file" >&5
1210
2126
    . "$ac_site_file"
1211
2127
  fi
1212
2128
done
1213
2129
 
1214
2130
if test -r "$cache_file"; then
1215
 
  # Some versions of bash will fail to source /dev/null (special
1216
 
  # files actually), so we avoid doing that.
1217
 
  if test -f "$cache_file"; then
1218
 
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1219
 
echo "$as_me: loading cache $cache_file" >&6;}
 
2131
  # Some versions of bash will fail to source /dev/null (special files
 
2132
  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
 
2133
  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
 
2134
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
 
2135
$as_echo "$as_me: loading cache $cache_file" >&6;}
1220
2136
    case $cache_file in
1221
 
      [\\/]* | ?:[\\/]* ) . $cache_file;;
1222
 
      *)                      . ./$cache_file;;
 
2137
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
 
2138
      *)                      . "./$cache_file";;
1223
2139
    esac
1224
2140
  fi
1225
2141
else
1226
 
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1227
 
echo "$as_me: creating cache $cache_file" >&6;}
 
2142
  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
 
2143
$as_echo "$as_me: creating cache $cache_file" >&6;}
1228
2144
  >$cache_file
1229
2145
fi
1230
2146
 
 
2147
as_fn_append ac_header_list " sys/time.h"
 
2148
as_fn_append ac_header_list " unistd.h"
 
2149
as_fn_append ac_func_list " alarm"
1231
2150
# Check that the precious variables saved in the cache have kept the same
1232
2151
# value.
1233
2152
ac_cache_corrupted=false
1234
 
for ac_var in `(set) 2>&1 |
1235
 
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
 
2153
for ac_var in $ac_precious_vars; do
1236
2154
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1237
2155
  eval ac_new_set=\$ac_env_${ac_var}_set
1238
 
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1239
 
  eval ac_new_val="\$ac_env_${ac_var}_value"
 
2156
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
 
2157
  eval ac_new_val=\$ac_env_${ac_var}_value
1240
2158
  case $ac_old_set,$ac_new_set in
1241
2159
    set,)
1242
 
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1243
 
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
2160
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
2161
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1244
2162
      ac_cache_corrupted=: ;;
1245
2163
    ,set)
1246
 
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1247
 
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
2164
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
 
2165
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1248
2166
      ac_cache_corrupted=: ;;
1249
2167
    ,);;
1250
2168
    *)
1251
2169
      if test "x$ac_old_val" != "x$ac_new_val"; then
1252
 
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1253
 
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1254
 
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1255
 
echo "$as_me:   former value:  $ac_old_val" >&2;}
1256
 
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1257
 
echo "$as_me:   current value: $ac_new_val" >&2;}
1258
 
        ac_cache_corrupted=:
 
2170
        # differences in whitespace do not lead to failure.
 
2171
        ac_old_val_w=`echo x $ac_old_val`
 
2172
        ac_new_val_w=`echo x $ac_new_val`
 
2173
        if test "$ac_old_val_w" != "$ac_new_val_w"; then
 
2174
          { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
 
2175
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
2176
          ac_cache_corrupted=:
 
2177
        else
 
2178
          { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
 
2179
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
 
2180
          eval $ac_var=\$ac_old_val
 
2181
        fi
 
2182
        { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
 
2183
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
 
2184
        { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
 
2185
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1259
2186
      fi;;
1260
2187
  esac
1261
2188
  # Pass precious variables to config.status.
1262
2189
  if test "$ac_new_set" = set; then
1263
2190
    case $ac_new_val in
1264
 
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1265
 
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
2191
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1266
2192
    *) ac_arg=$ac_var=$ac_new_val ;;
1267
2193
    esac
1268
2194
    case " $ac_configure_args " in
1269
2195
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1270
 
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
 
2196
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1271
2197
    esac
1272
2198
  fi
1273
2199
done
1274
2200
if $ac_cache_corrupted; then
1275
 
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1276
 
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1277
 
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1278
 
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1279
 
   { (exit 1); exit 1; }; }
 
2201
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
2202
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2203
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
 
2204
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
2205
  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1280
2206
fi
 
2207
## -------------------- ##
 
2208
## Main body of script. ##
 
2209
## -------------------- ##
1281
2210
 
1282
2211
ac_ext=c
1283
2212
ac_cpp='$CPP $CPPFLAGS'
1286
2215
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1287
2216
 
1288
2217
 
1289
 
 
1290
 
 
1291
 
 
1292
 
 
1293
 
 
1294
 
 
1295
 
 
1296
 
 
1297
 
 
1298
 
 
1299
 
 
1300
 
 
1301
 
 
1302
 
 
1303
 
 
1304
 
 
1305
 
 
1306
 
 
1307
 
 
1308
 
 
1309
 
 
1310
 
 
1311
 
 
1312
 
 
1313
 
 
1314
 
am__api_version="1.9"
 
2218
am__api_version='1.11'
 
2219
 
1315
2220
ac_aux_dir=
1316
 
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1317
 
  if test -f $ac_dir/install-sh; then
1318
 
    ac_aux_dir=$ac_dir
1319
 
    ac_install_sh="$ac_aux_dir/install-sh -c"
1320
 
    break
1321
 
  elif test -f $ac_dir/install.sh; then
1322
 
    ac_aux_dir=$ac_dir
1323
 
    ac_install_sh="$ac_aux_dir/install.sh -c"
1324
 
    break
1325
 
  elif test -f $ac_dir/shtool; then
1326
 
    ac_aux_dir=$ac_dir
1327
 
    ac_install_sh="$ac_aux_dir/shtool install -c"
1328
 
    break
1329
 
  fi
 
2221
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
 
2222
  for ac_t in install-sh install.sh shtool; do
 
2223
    if test -f "$ac_dir/$ac_t"; then
 
2224
      ac_aux_dir=$ac_dir
 
2225
      ac_install_sh="$ac_aux_dir/$ac_t -c"
 
2226
      break 2
 
2227
    fi
 
2228
  done
1330
2229
done
1331
2230
if test -z "$ac_aux_dir"; then
1332
 
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1333
 
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1334
 
   { (exit 1); exit 1; }; }
 
2231
  as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
1335
2232
fi
1336
 
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1337
 
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1338
 
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
 
2233
 
 
2234
# These three variables are undocumented and unsupported,
 
2235
# and are intended to be withdrawn in a future Autoconf release.
 
2236
# They can cause serious problems if a builder's source tree is in a directory
 
2237
# whose full name contains unusual characters.
 
2238
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
 
2239
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
 
2240
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
 
2241
 
1339
2242
 
1340
2243
# Find a good install program.  We prefer a C program (faster),
1341
2244
# so one script is as good as another.  But avoid the broken or
1350
2253
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1351
2254
# OS/2's system install, which has a completely different semantic
1352
2255
# ./install, which can be erroneously created by make from ./install.sh.
1353
 
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1354
 
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
 
2256
# Reject install programs that cannot install multiple files.
 
2257
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
 
2258
$as_echo_n "checking for a BSD-compatible install... " >&6; }
1355
2259
if test -z "$INSTALL"; then
1356
 
if test "${ac_cv_path_install+set}" = set; then
1357
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2260
if test "${ac_cv_path_install+set}" = set; then :
 
2261
  $as_echo_n "(cached) " >&6
1358
2262
else
1359
2263
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1360
2264
for as_dir in $PATH
1361
2265
do
1362
2266
  IFS=$as_save_IFS
1363
2267
  test -z "$as_dir" && as_dir=.
1364
 
  # Account for people who put trailing slashes in PATH elements.
1365
 
case $as_dir/ in
1366
 
  ./ | .// | /cC/* | \
 
2268
    # Account for people who put trailing slashes in PATH elements.
 
2269
case $as_dir/ in #((
 
2270
  ./ | .// | /[cC]/* | \
1367
2271
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1368
 
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
2272
  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
1369
2273
  /usr/ucb/* ) ;;
1370
2274
  *)
1371
2275
    # OSF1 and SCO ODT 3.0 have their own names for install.
1373
2277
    # by default.
1374
2278
    for ac_prog in ginstall scoinst install; do
1375
2279
      for ac_exec_ext in '' $ac_executable_extensions; do
1376
 
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
 
2280
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1377
2281
          if test $ac_prog = install &&
1378
2282
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1379
2283
            # AIX install.  It has an incompatible calling convention.
1383
2287
            # program-specific install script used by HP pwplus--don't use.
1384
2288
            :
1385
2289
          else
1386
 
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1387
 
            break 3
 
2290
            rm -rf conftest.one conftest.two conftest.dir
 
2291
            echo one > conftest.one
 
2292
            echo two > conftest.two
 
2293
            mkdir conftest.dir
 
2294
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
 
2295
              test -s conftest.one && test -s conftest.two &&
 
2296
              test -s conftest.dir/conftest.one &&
 
2297
              test -s conftest.dir/conftest.two
 
2298
            then
 
2299
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
2300
              break 3
 
2301
            fi
1388
2302
          fi
1389
2303
        fi
1390
2304
      done
1391
2305
    done
1392
2306
    ;;
1393
2307
esac
1394
 
done
1395
 
 
 
2308
 
 
2309
  done
 
2310
IFS=$as_save_IFS
 
2311
 
 
2312
rm -rf conftest.one conftest.two conftest.dir
1396
2313
 
1397
2314
fi
1398
2315
  if test "${ac_cv_path_install+set}" = set; then
1399
2316
    INSTALL=$ac_cv_path_install
1400
2317
  else
1401
 
    # As a last resort, use the slow shell script.  We don't cache a
1402
 
    # path for INSTALL within a source directory, because that will
 
2318
    # As a last resort, use the slow shell script.  Don't cache a
 
2319
    # value for INSTALL within a source directory, because that will
1403
2320
    # break other packages using the cache if that directory is
1404
 
    # removed, or if the path is relative.
 
2321
    # removed, or if the value is a relative name.
1405
2322
    INSTALL=$ac_install_sh
1406
2323
  fi
1407
2324
fi
1408
 
echo "$as_me:$LINENO: result: $INSTALL" >&5
1409
 
echo "${ECHO_T}$INSTALL" >&6
 
2325
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
 
2326
$as_echo "$INSTALL" >&6; }
1410
2327
 
1411
2328
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1412
2329
# It thinks the first close brace ends the variable substitution.
1416
2333
 
1417
2334
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1418
2335
 
1419
 
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1420
 
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
 
2336
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
 
2337
$as_echo_n "checking whether build environment is sane... " >&6; }
1421
2338
# Just in case
1422
2339
sleep 1
1423
2340
echo timestamp > conftest.file
 
2341
# Reject unsafe characters in $srcdir or the absolute working directory
 
2342
# name.  Accept space and tab only in the latter.
 
2343
am_lf='
 
2344
'
 
2345
case `pwd` in
 
2346
  *[\\\"\#\$\&\'\`$am_lf]*)
 
2347
    as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
 
2348
esac
 
2349
case $srcdir in
 
2350
  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
 
2351
    as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
 
2352
esac
 
2353
 
1424
2354
# Do `set' in a subshell so we don't clobber the current shell's
1425
2355
# arguments.  Must try -L first in case configure is actually a
1426
2356
# symlink; some systems play weird games with the mod time of symlinks
1427
2357
# (eg FreeBSD returns the mod time of the symlink's containing
1428
2358
# directory).
1429
2359
if (
1430
 
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
 
2360
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
1431
2361
   if test "$*" = "X"; then
1432
2362
      # -L didn't work.
1433
 
      set X `ls -t $srcdir/configure conftest.file`
 
2363
      set X `ls -t "$srcdir/configure" conftest.file`
1434
2364
   fi
1435
2365
   rm -f conftest.file
1436
2366
   if test "$*" != "X $srcdir/configure conftest.file" \
1440
2370
      # if, for instance, CONFIG_SHELL is bash and it inherits a
1441
2371
      # broken ls alias from the environment.  This has actually
1442
2372
      # happened.  Such a system could not be considered "sane".
1443
 
      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1444
 
alias in your environment" >&5
1445
 
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1446
 
alias in your environment" >&2;}
1447
 
   { (exit 1); exit 1; }; }
 
2373
      as_fn_error "ls -t appears to fail.  Make sure there is not a broken
 
2374
alias in your environment" "$LINENO" 5
1448
2375
   fi
1449
2376
 
1450
2377
   test "$2" = conftest.file
1453
2380
   # Ok.
1454
2381
   :
1455
2382
else
1456
 
   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1457
 
Check your system clock" >&5
1458
 
echo "$as_me: error: newly created file is older than distributed files!
1459
 
Check your system clock" >&2;}
1460
 
   { (exit 1); exit 1; }; }
 
2383
   as_fn_error "newly created file is older than distributed files!
 
2384
Check your system clock" "$LINENO" 5
1461
2385
fi
1462
 
echo "$as_me:$LINENO: result: yes" >&5
1463
 
echo "${ECHO_T}yes" >&6
 
2386
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
2387
$as_echo "yes" >&6; }
1464
2388
test "$program_prefix" != NONE &&
1465
 
  program_transform_name="s,^,$program_prefix,;$program_transform_name"
 
2389
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
1466
2390
# Use a double $ so make ignores it.
1467
2391
test "$program_suffix" != NONE &&
1468
 
  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1469
 
# Double any \ or $.  echo might interpret backslashes.
 
2392
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
 
2393
# Double any \ or $.
1470
2394
# By default was `s,x,x', remove it if useless.
1471
 
cat <<\_ACEOF >conftest.sed
1472
 
s/[\\$]/&&/g;s/;s,x,x,$//
1473
 
_ACEOF
1474
 
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1475
 
rm conftest.sed
 
2395
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
 
2396
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
1476
2397
 
1477
2398
# expand $ac_aux_dir to an absolute path
1478
2399
am_aux_dir=`cd $ac_aux_dir && pwd`
1479
2400
 
1480
 
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
 
2401
if test x"${MISSING+set}" != xset; then
 
2402
  case $am_aux_dir in
 
2403
  *\ * | *\     *)
 
2404
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
 
2405
  *)
 
2406
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
 
2407
  esac
 
2408
fi
1481
2409
# Use eval to expand $SHELL
1482
2410
if eval "$MISSING --run true"; then
1483
2411
  am_missing_run="$MISSING --run "
1484
2412
else
1485
2413
  am_missing_run=
1486
 
  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1487
 
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1488
 
fi
1489
 
 
1490
 
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1491
 
  # We used to keeping the `.' as first argument, in order to
1492
 
  # allow $(mkdir_p) to be used without argument.  As in
1493
 
  #   $(mkdir_p) $(somedir)
1494
 
  # where $(somedir) is conditionally defined.  However this is wrong
1495
 
  # for two reasons:
1496
 
  #  1. if the package is installed by a user who cannot write `.'
1497
 
  #     make install will fail,
1498
 
  #  2. the above comment should most certainly read
1499
 
  #     $(mkdir_p) $(DESTDIR)$(somedir)
1500
 
  #     so it does not work when $(somedir) is undefined and
1501
 
  #     $(DESTDIR) is not.
1502
 
  #  To support the latter case, we have to write
1503
 
  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1504
 
  #  so the `.' trick is pointless.
1505
 
  mkdir_p='mkdir -p --'
1506
 
else
1507
 
  # On NextStep and OpenStep, the `mkdir' command does not
1508
 
  # recognize any option.  It will interpret all options as
1509
 
  # directories to create, and then abort because `.' already
1510
 
  # exists.
1511
 
  for d in ./-p ./--version;
1512
 
  do
1513
 
    test -d $d && rmdir $d
1514
 
  done
1515
 
  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1516
 
  if test -f "$ac_aux_dir/mkinstalldirs"; then
1517
 
    mkdir_p='$(mkinstalldirs)'
1518
 
  else
1519
 
    mkdir_p='$(install_sh) -d'
1520
 
  fi
1521
 
fi
 
2414
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
 
2415
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
 
2416
fi
 
2417
 
 
2418
if test x"${install_sh}" != xset; then
 
2419
  case $am_aux_dir in
 
2420
  *\ * | *\     *)
 
2421
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
 
2422
  *)
 
2423
    install_sh="\${SHELL} $am_aux_dir/install-sh"
 
2424
  esac
 
2425
fi
 
2426
 
 
2427
# Installed binaries are usually stripped using `strip' when the user
 
2428
# run `make install-strip'.  However `strip' might not be the right
 
2429
# tool to use in cross-compilation environments, therefore Automake
 
2430
# will honor the `STRIP' environment variable to overrule this program.
 
2431
if test "$cross_compiling" != no; then
 
2432
  if test -n "$ac_tool_prefix"; then
 
2433
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
2434
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
2435
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2436
$as_echo_n "checking for $ac_word... " >&6; }
 
2437
if test "${ac_cv_prog_STRIP+set}" = set; then :
 
2438
  $as_echo_n "(cached) " >&6
 
2439
else
 
2440
  if test -n "$STRIP"; then
 
2441
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
2442
else
 
2443
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2444
for as_dir in $PATH
 
2445
do
 
2446
  IFS=$as_save_IFS
 
2447
  test -z "$as_dir" && as_dir=.
 
2448
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2449
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2450
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
2451
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2452
    break 2
 
2453
  fi
 
2454
done
 
2455
  done
 
2456
IFS=$as_save_IFS
 
2457
 
 
2458
fi
 
2459
fi
 
2460
STRIP=$ac_cv_prog_STRIP
 
2461
if test -n "$STRIP"; then
 
2462
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
 
2463
$as_echo "$STRIP" >&6; }
 
2464
else
 
2465
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2466
$as_echo "no" >&6; }
 
2467
fi
 
2468
 
 
2469
 
 
2470
fi
 
2471
if test -z "$ac_cv_prog_STRIP"; then
 
2472
  ac_ct_STRIP=$STRIP
 
2473
  # Extract the first word of "strip", so it can be a program name with args.
 
2474
set dummy strip; ac_word=$2
 
2475
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2476
$as_echo_n "checking for $ac_word... " >&6; }
 
2477
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
 
2478
  $as_echo_n "(cached) " >&6
 
2479
else
 
2480
  if test -n "$ac_ct_STRIP"; then
 
2481
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
2482
else
 
2483
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2484
for as_dir in $PATH
 
2485
do
 
2486
  IFS=$as_save_IFS
 
2487
  test -z "$as_dir" && as_dir=.
 
2488
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2489
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2490
    ac_cv_prog_ac_ct_STRIP="strip"
 
2491
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2492
    break 2
 
2493
  fi
 
2494
done
 
2495
  done
 
2496
IFS=$as_save_IFS
 
2497
 
 
2498
fi
 
2499
fi
 
2500
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
2501
if test -n "$ac_ct_STRIP"; then
 
2502
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
 
2503
$as_echo "$ac_ct_STRIP" >&6; }
 
2504
else
 
2505
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2506
$as_echo "no" >&6; }
 
2507
fi
 
2508
 
 
2509
  if test "x$ac_ct_STRIP" = x; then
 
2510
    STRIP=":"
 
2511
  else
 
2512
    case $cross_compiling:$ac_tool_warned in
 
2513
yes:)
 
2514
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
2515
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
2516
ac_tool_warned=yes ;;
 
2517
esac
 
2518
    STRIP=$ac_ct_STRIP
 
2519
  fi
 
2520
else
 
2521
  STRIP="$ac_cv_prog_STRIP"
 
2522
fi
 
2523
 
 
2524
fi
 
2525
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
 
2526
 
 
2527
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
 
2528
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
 
2529
if test -z "$MKDIR_P"; then
 
2530
  if test "${ac_cv_path_mkdir+set}" = set; then :
 
2531
  $as_echo_n "(cached) " >&6
 
2532
else
 
2533
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2534
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
 
2535
do
 
2536
  IFS=$as_save_IFS
 
2537
  test -z "$as_dir" && as_dir=.
 
2538
    for ac_prog in mkdir gmkdir; do
 
2539
         for ac_exec_ext in '' $ac_executable_extensions; do
 
2540
           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
 
2541
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
 
2542
             'mkdir (GNU coreutils) '* | \
 
2543
             'mkdir (coreutils) '* | \
 
2544
             'mkdir (fileutils) '4.1*)
 
2545
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
 
2546
               break 3;;
 
2547
           esac
 
2548
         done
 
2549
       done
 
2550
  done
 
2551
IFS=$as_save_IFS
 
2552
 
 
2553
fi
 
2554
 
 
2555
  test -d ./--version && rmdir ./--version
 
2556
  if test "${ac_cv_path_mkdir+set}" = set; then
 
2557
    MKDIR_P="$ac_cv_path_mkdir -p"
 
2558
  else
 
2559
    # As a last resort, use the slow shell script.  Don't cache a
 
2560
    # value for MKDIR_P within a source directory, because that will
 
2561
    # break other packages using the cache if that directory is
 
2562
    # removed, or if the value is a relative name.
 
2563
    MKDIR_P="$ac_install_sh -d"
 
2564
  fi
 
2565
fi
 
2566
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
 
2567
$as_echo "$MKDIR_P" >&6; }
 
2568
 
 
2569
mkdir_p="$MKDIR_P"
 
2570
case $mkdir_p in
 
2571
  [\\/$]* | ?:[\\/]*) ;;
 
2572
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
 
2573
esac
1522
2574
 
1523
2575
for ac_prog in gawk mawk nawk awk
1524
2576
do
1525
2577
  # Extract the first word of "$ac_prog", so it can be a program name with args.
1526
2578
set dummy $ac_prog; ac_word=$2
1527
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1528
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1529
 
if test "${ac_cv_prog_AWK+set}" = set; then
1530
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2579
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2580
$as_echo_n "checking for $ac_word... " >&6; }
 
2581
if test "${ac_cv_prog_AWK+set}" = set; then :
 
2582
  $as_echo_n "(cached) " >&6
1531
2583
else
1532
2584
  if test -n "$AWK"; then
1533
2585
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1537
2589
do
1538
2590
  IFS=$as_save_IFS
1539
2591
  test -z "$as_dir" && as_dir=.
1540
 
  for ac_exec_ext in '' $ac_executable_extensions; do
1541
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2592
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2593
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1542
2594
    ac_cv_prog_AWK="$ac_prog"
1543
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2595
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1544
2596
    break 2
1545
2597
  fi
1546
2598
done
1547
 
done
 
2599
  done
 
2600
IFS=$as_save_IFS
1548
2601
 
1549
2602
fi
1550
2603
fi
1551
2604
AWK=$ac_cv_prog_AWK
1552
2605
if test -n "$AWK"; then
1553
 
  echo "$as_me:$LINENO: result: $AWK" >&5
1554
 
echo "${ECHO_T}$AWK" >&6
 
2606
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
 
2607
$as_echo "$AWK" >&6; }
1555
2608
else
1556
 
  echo "$as_me:$LINENO: result: no" >&5
1557
 
echo "${ECHO_T}no" >&6
 
2609
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2610
$as_echo "no" >&6; }
1558
2611
fi
1559
2612
 
 
2613
 
1560
2614
  test -n "$AWK" && break
1561
2615
done
1562
2616
 
1563
 
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1564
 
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1565
 
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1566
 
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1567
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2617
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
2618
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
 
2619
set x ${MAKE-make}
 
2620
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
 
2621
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
 
2622
  $as_echo_n "(cached) " >&6
1568
2623
else
1569
2624
  cat >conftest.make <<\_ACEOF
 
2625
SHELL = /bin/sh
1570
2626
all:
1571
 
        @echo 'ac_maketemp="$(MAKE)"'
 
2627
        @echo '@@@%%%=$(MAKE)=@@@%%%'
1572
2628
_ACEOF
1573
2629
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1574
 
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1575
 
if test -n "$ac_maketemp"; then
1576
 
  eval ac_cv_prog_make_${ac_make}_set=yes
1577
 
else
1578
 
  eval ac_cv_prog_make_${ac_make}_set=no
1579
 
fi
 
2630
case `${MAKE-make} -f conftest.make 2>/dev/null` in
 
2631
  *@@@%%%=?*=@@@%%%*)
 
2632
    eval ac_cv_prog_make_${ac_make}_set=yes;;
 
2633
  *)
 
2634
    eval ac_cv_prog_make_${ac_make}_set=no;;
 
2635
esac
1580
2636
rm -f conftest.make
1581
2637
fi
1582
 
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1583
 
  echo "$as_me:$LINENO: result: yes" >&5
1584
 
echo "${ECHO_T}yes" >&6
 
2638
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
 
2639
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
2640
$as_echo "yes" >&6; }
1585
2641
  SET_MAKE=
1586
2642
else
1587
 
  echo "$as_me:$LINENO: result: no" >&5
1588
 
echo "${ECHO_T}no" >&6
 
2643
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2644
$as_echo "no" >&6; }
1589
2645
  SET_MAKE="MAKE=${MAKE-make}"
1590
2646
fi
1591
2647
 
1598
2654
fi
1599
2655
rmdir .tst 2>/dev/null
1600
2656
 
1601
 
# test to see if srcdir already configured
1602
 
if test "`cd $srcdir && pwd`" != "`pwd`" &&
1603
 
   test -f $srcdir/config.status; then
1604
 
  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1605
 
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1606
 
   { (exit 1); exit 1; }; }
 
2657
if test "`cd $srcdir && pwd`" != "`pwd`"; then
 
2658
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
 
2659
  # is not polluted with repeated "-I."
 
2660
  am__isrc=' -I$(srcdir)'
 
2661
  # test to see if srcdir already configured
 
2662
  if test -f $srcdir/config.status; then
 
2663
    as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
 
2664
  fi
1607
2665
fi
1608
2666
 
1609
2667
# test whether we have cygpath
1618
2676
 
1619
2677
# Define the identity of the package.
1620
2678
 PACKAGE='cabextract'
1621
 
 VERSION='1.2'
 
2679
 VERSION='1.3'
1622
2680
 
1623
2681
 
1624
2682
cat >>confdefs.h <<_ACEOF
1646
2704
 
1647
2705
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1648
2706
 
1649
 
install_sh=${install_sh-"$am_aux_dir/install-sh"}
1650
 
 
1651
 
# Installed binaries are usually stripped using `strip' when the user
1652
 
# run `make install-strip'.  However `strip' might not be the right
1653
 
# tool to use in cross-compilation environments, therefore Automake
1654
 
# will honor the `STRIP' environment variable to overrule this program.
1655
 
if test "$cross_compiling" != no; then
1656
 
  if test -n "$ac_tool_prefix"; then
1657
 
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1658
 
set dummy ${ac_tool_prefix}strip; ac_word=$2
1659
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1660
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1661
 
if test "${ac_cv_prog_STRIP+set}" = set; then
1662
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1663
 
else
1664
 
  if test -n "$STRIP"; then
1665
 
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1666
 
else
1667
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1668
 
for as_dir in $PATH
1669
 
do
1670
 
  IFS=$as_save_IFS
1671
 
  test -z "$as_dir" && as_dir=.
1672
 
  for ac_exec_ext in '' $ac_executable_extensions; do
1673
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1674
 
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1675
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1676
 
    break 2
1677
 
  fi
1678
 
done
1679
 
done
1680
 
 
1681
 
fi
1682
 
fi
1683
 
STRIP=$ac_cv_prog_STRIP
1684
 
if test -n "$STRIP"; then
1685
 
  echo "$as_me:$LINENO: result: $STRIP" >&5
1686
 
echo "${ECHO_T}$STRIP" >&6
1687
 
else
1688
 
  echo "$as_me:$LINENO: result: no" >&5
1689
 
echo "${ECHO_T}no" >&6
1690
 
fi
1691
 
 
1692
 
fi
1693
 
if test -z "$ac_cv_prog_STRIP"; then
1694
 
  ac_ct_STRIP=$STRIP
1695
 
  # Extract the first word of "strip", so it can be a program name with args.
1696
 
set dummy strip; ac_word=$2
1697
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1698
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1699
 
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1700
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1701
 
else
1702
 
  if test -n "$ac_ct_STRIP"; then
1703
 
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1704
 
else
1705
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1706
 
for as_dir in $PATH
1707
 
do
1708
 
  IFS=$as_save_IFS
1709
 
  test -z "$as_dir" && as_dir=.
1710
 
  for ac_exec_ext in '' $ac_executable_extensions; do
1711
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1712
 
    ac_cv_prog_ac_ct_STRIP="strip"
1713
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1714
 
    break 2
1715
 
  fi
1716
 
done
1717
 
done
1718
 
 
1719
 
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1720
 
fi
1721
 
fi
1722
 
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1723
 
if test -n "$ac_ct_STRIP"; then
1724
 
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1725
 
echo "${ECHO_T}$ac_ct_STRIP" >&6
1726
 
else
1727
 
  echo "$as_me:$LINENO: result: no" >&5
1728
 
echo "${ECHO_T}no" >&6
1729
 
fi
1730
 
 
1731
 
  STRIP=$ac_ct_STRIP
1732
 
else
1733
 
  STRIP="$ac_cv_prog_STRIP"
1734
 
fi
1735
 
 
1736
 
fi
1737
 
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1738
 
 
1739
2707
# We need awk for the "check" target.  The system "awk" is bad on
1740
2708
# some platforms.
1741
2709
# Always define AMTAR for backward compatibility.
1749
2717
 
1750
2718
 
1751
2719
 
1752
 
          ac_config_headers="$ac_config_headers config.h"
 
2720
ac_config_headers="$ac_config_headers config.h"
1753
2721
 
1754
2722
 
1755
2723
# Checks for programs.
1761
2729
if test -n "$ac_tool_prefix"; then
1762
2730
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1763
2731
set dummy ${ac_tool_prefix}gcc; ac_word=$2
1764
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1765
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1766
 
if test "${ac_cv_prog_CC+set}" = set; then
1767
 
  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_CC+set}" = set; then :
 
2735
  $as_echo_n "(cached) " >&6
1768
2736
else
1769
2737
  if test -n "$CC"; then
1770
2738
  ac_cv_prog_CC="$CC" # Let the user override the test.
1774
2742
do
1775
2743
  IFS=$as_save_IFS
1776
2744
  test -z "$as_dir" && as_dir=.
1777
 
  for ac_exec_ext in '' $ac_executable_extensions; do
1778
 
  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
1779
2747
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1780
 
    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
1781
2749
    break 2
1782
2750
  fi
1783
2751
done
1784
 
done
 
2752
  done
 
2753
IFS=$as_save_IFS
1785
2754
 
1786
2755
fi
1787
2756
fi
1788
2757
CC=$ac_cv_prog_CC
1789
2758
if test -n "$CC"; then
1790
 
  echo "$as_me:$LINENO: result: $CC" >&5
1791
 
echo "${ECHO_T}$CC" >&6
 
2759
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
2760
$as_echo "$CC" >&6; }
1792
2761
else
1793
 
  echo "$as_me:$LINENO: result: no" >&5
1794
 
echo "${ECHO_T}no" >&6
 
2762
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2763
$as_echo "no" >&6; }
1795
2764
fi
 
2765
 
1796
2766
 
1797
2767
fi
1798
2768
if test -z "$ac_cv_prog_CC"; then
1799
2769
  ac_ct_CC=$CC
1800
2770
  # Extract the first word of "gcc", so it can be a program name with args.
1801
2771
set dummy gcc; ac_word=$2
1802
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1803
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1804
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1805
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2772
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2773
$as_echo_n "checking for $ac_word... " >&6; }
 
2774
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
 
2775
  $as_echo_n "(cached) " >&6
1806
2776
else
1807
2777
  if test -n "$ac_ct_CC"; then
1808
2778
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1812
2782
do
1813
2783
  IFS=$as_save_IFS
1814
2784
  test -z "$as_dir" && as_dir=.
1815
 
  for ac_exec_ext in '' $ac_executable_extensions; do
1816
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2785
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2786
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1817
2787
    ac_cv_prog_ac_ct_CC="gcc"
1818
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2788
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1819
2789
    break 2
1820
2790
  fi
1821
2791
done
1822
 
done
 
2792
  done
 
2793
IFS=$as_save_IFS
1823
2794
 
1824
2795
fi
1825
2796
fi
1826
2797
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1827
2798
if test -n "$ac_ct_CC"; then
1828
 
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1829
 
echo "${ECHO_T}$ac_ct_CC" >&6
 
2799
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
2800
$as_echo "$ac_ct_CC" >&6; }
1830
2801
else
1831
 
  echo "$as_me:$LINENO: result: no" >&5
1832
 
echo "${ECHO_T}no" >&6
 
2802
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2803
$as_echo "no" >&6; }
1833
2804
fi
1834
2805
 
1835
 
  CC=$ac_ct_CC
 
2806
  if test "x$ac_ct_CC" = x; then
 
2807
    CC=""
 
2808
  else
 
2809
    case $cross_compiling:$ac_tool_warned in
 
2810
yes:)
 
2811
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
2812
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
2813
ac_tool_warned=yes ;;
 
2814
esac
 
2815
    CC=$ac_ct_CC
 
2816
  fi
1836
2817
else
1837
2818
  CC="$ac_cv_prog_CC"
1838
2819
fi
1839
2820
 
1840
2821
if test -z "$CC"; then
1841
 
  if test -n "$ac_tool_prefix"; then
1842
 
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
2822
          if test -n "$ac_tool_prefix"; then
 
2823
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1843
2824
set dummy ${ac_tool_prefix}cc; ac_word=$2
1844
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1845
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1846
 
if test "${ac_cv_prog_CC+set}" = set; then
1847
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2825
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2826
$as_echo_n "checking for $ac_word... " >&6; }
 
2827
if test "${ac_cv_prog_CC+set}" = set; then :
 
2828
  $as_echo_n "(cached) " >&6
1848
2829
else
1849
2830
  if test -n "$CC"; then
1850
2831
  ac_cv_prog_CC="$CC" # Let the user override the test.
1854
2835
do
1855
2836
  IFS=$as_save_IFS
1856
2837
  test -z "$as_dir" && as_dir=.
1857
 
  for ac_exec_ext in '' $ac_executable_extensions; do
1858
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2838
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2839
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1859
2840
    ac_cv_prog_CC="${ac_tool_prefix}cc"
1860
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2841
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1861
2842
    break 2
1862
2843
  fi
1863
2844
done
1864
 
done
 
2845
  done
 
2846
IFS=$as_save_IFS
1865
2847
 
1866
2848
fi
1867
2849
fi
1868
2850
CC=$ac_cv_prog_CC
1869
2851
if test -n "$CC"; then
1870
 
  echo "$as_me:$LINENO: result: $CC" >&5
1871
 
echo "${ECHO_T}$CC" >&6
1872
 
else
1873
 
  echo "$as_me:$LINENO: result: no" >&5
1874
 
echo "${ECHO_T}no" >&6
1875
 
fi
1876
 
 
1877
 
fi
1878
 
if test -z "$ac_cv_prog_CC"; then
1879
 
  ac_ct_CC=$CC
1880
 
  # Extract the first word of "cc", so it can be a program name with args.
1881
 
set dummy cc; ac_word=$2
1882
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1883
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1884
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1885
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1886
 
else
1887
 
  if test -n "$ac_ct_CC"; then
1888
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1889
 
else
1890
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1891
 
for as_dir in $PATH
1892
 
do
1893
 
  IFS=$as_save_IFS
1894
 
  test -z "$as_dir" && as_dir=.
1895
 
  for ac_exec_ext in '' $ac_executable_extensions; do
1896
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1897
 
    ac_cv_prog_ac_ct_CC="cc"
1898
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1899
 
    break 2
 
2852
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
2853
$as_echo "$CC" >&6; }
 
2854
else
 
2855
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2856
$as_echo "no" >&6; }
 
2857
fi
 
2858
 
 
2859
 
1900
2860
  fi
1901
 
done
1902
 
done
1903
 
 
1904
 
fi
1905
 
fi
1906
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1907
 
if test -n "$ac_ct_CC"; then
1908
 
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1909
 
echo "${ECHO_T}$ac_ct_CC" >&6
1910
 
else
1911
 
  echo "$as_me:$LINENO: result: no" >&5
1912
 
echo "${ECHO_T}no" >&6
1913
 
fi
1914
 
 
1915
 
  CC=$ac_ct_CC
1916
 
else
1917
 
  CC="$ac_cv_prog_CC"
1918
 
fi
1919
 
 
1920
2861
fi
1921
2862
if test -z "$CC"; then
1922
2863
  # Extract the first word of "cc", so it can be a program name with args.
1923
2864
set dummy cc; ac_word=$2
1924
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1925
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1926
 
if test "${ac_cv_prog_CC+set}" = set; then
1927
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2865
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2866
$as_echo_n "checking for $ac_word... " >&6; }
 
2867
if test "${ac_cv_prog_CC+set}" = set; then :
 
2868
  $as_echo_n "(cached) " >&6
1928
2869
else
1929
2870
  if test -n "$CC"; then
1930
2871
  ac_cv_prog_CC="$CC" # Let the user override the test.
1935
2876
do
1936
2877
  IFS=$as_save_IFS
1937
2878
  test -z "$as_dir" && as_dir=.
1938
 
  for ac_exec_ext in '' $ac_executable_extensions; do
1939
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2879
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2880
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1940
2881
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1941
2882
       ac_prog_rejected=yes
1942
2883
       continue
1943
2884
     fi
1944
2885
    ac_cv_prog_CC="cc"
1945
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2886
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1946
2887
    break 2
1947
2888
  fi
1948
2889
done
1949
 
done
 
2890
  done
 
2891
IFS=$as_save_IFS
1950
2892
 
1951
2893
if test $ac_prog_rejected = yes; then
1952
2894
  # We found a bogon in the path, so make sure we never use it.
1964
2906
fi
1965
2907
CC=$ac_cv_prog_CC
1966
2908
if test -n "$CC"; then
1967
 
  echo "$as_me:$LINENO: result: $CC" >&5
1968
 
echo "${ECHO_T}$CC" >&6
 
2909
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
2910
$as_echo "$CC" >&6; }
1969
2911
else
1970
 
  echo "$as_me:$LINENO: result: no" >&5
1971
 
echo "${ECHO_T}no" >&6
 
2912
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2913
$as_echo "no" >&6; }
1972
2914
fi
 
2915
 
1973
2916
 
1974
2917
fi
1975
2918
if test -z "$CC"; then
1976
2919
  if test -n "$ac_tool_prefix"; then
1977
 
  for ac_prog in cl
 
2920
  for ac_prog in cl.exe
1978
2921
  do
1979
2922
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1980
2923
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1981
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1982
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1983
 
if test "${ac_cv_prog_CC+set}" = set; then
1984
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2924
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2925
$as_echo_n "checking for $ac_word... " >&6; }
 
2926
if test "${ac_cv_prog_CC+set}" = set; then :
 
2927
  $as_echo_n "(cached) " >&6
1985
2928
else
1986
2929
  if test -n "$CC"; then
1987
2930
  ac_cv_prog_CC="$CC" # Let the user override the test.
1991
2934
do
1992
2935
  IFS=$as_save_IFS
1993
2936
  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
 
2937
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2938
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1996
2939
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1997
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2940
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1998
2941
    break 2
1999
2942
  fi
2000
2943
done
2001
 
done
 
2944
  done
 
2945
IFS=$as_save_IFS
2002
2946
 
2003
2947
fi
2004
2948
fi
2005
2949
CC=$ac_cv_prog_CC
2006
2950
if test -n "$CC"; then
2007
 
  echo "$as_me:$LINENO: result: $CC" >&5
2008
 
echo "${ECHO_T}$CC" >&6
 
2951
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
2952
$as_echo "$CC" >&6; }
2009
2953
else
2010
 
  echo "$as_me:$LINENO: result: no" >&5
2011
 
echo "${ECHO_T}no" >&6
 
2954
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2955
$as_echo "no" >&6; }
2012
2956
fi
2013
2957
 
 
2958
 
2014
2959
    test -n "$CC" && break
2015
2960
  done
2016
2961
fi
2017
2962
if test -z "$CC"; then
2018
2963
  ac_ct_CC=$CC
2019
 
  for ac_prog in cl
 
2964
  for ac_prog in cl.exe
2020
2965
do
2021
2966
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2022
2967
set dummy $ac_prog; ac_word=$2
2023
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2024
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2025
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2026
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2968
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2969
$as_echo_n "checking for $ac_word... " >&6; }
 
2970
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
 
2971
  $as_echo_n "(cached) " >&6
2027
2972
else
2028
2973
  if test -n "$ac_ct_CC"; then
2029
2974
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2033
2978
do
2034
2979
  IFS=$as_save_IFS
2035
2980
  test -z "$as_dir" && as_dir=.
2036
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2037
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2981
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2982
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2038
2983
    ac_cv_prog_ac_ct_CC="$ac_prog"
2039
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2984
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2040
2985
    break 2
2041
2986
  fi
2042
2987
done
2043
 
done
 
2988
  done
 
2989
IFS=$as_save_IFS
2044
2990
 
2045
2991
fi
2046
2992
fi
2047
2993
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2048
2994
if test -n "$ac_ct_CC"; then
2049
 
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2050
 
echo "${ECHO_T}$ac_ct_CC" >&6
 
2995
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
2996
$as_echo "$ac_ct_CC" >&6; }
2051
2997
else
2052
 
  echo "$as_me:$LINENO: result: no" >&5
2053
 
echo "${ECHO_T}no" >&6
 
2998
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2999
$as_echo "no" >&6; }
2054
3000
fi
2055
3001
 
 
3002
 
2056
3003
  test -n "$ac_ct_CC" && break
2057
3004
done
2058
3005
 
2059
 
  CC=$ac_ct_CC
2060
 
fi
2061
 
 
2062
 
fi
2063
 
 
2064
 
 
2065
 
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2066
 
See \`config.log' for more details." >&5
2067
 
echo "$as_me: error: no acceptable C compiler found in \$PATH
2068
 
See \`config.log' for more details." >&2;}
2069
 
   { (exit 1); exit 1; }; }
 
3006
  if test "x$ac_ct_CC" = x; then
 
3007
    CC=""
 
3008
  else
 
3009
    case $cross_compiling:$ac_tool_warned in
 
3010
yes:)
 
3011
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
3012
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
3013
ac_tool_warned=yes ;;
 
3014
esac
 
3015
    CC=$ac_ct_CC
 
3016
  fi
 
3017
fi
 
3018
 
 
3019
fi
 
3020
 
 
3021
 
 
3022
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3023
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3024
as_fn_error "no acceptable C compiler found in \$PATH
 
3025
See \`config.log' for more details." "$LINENO" 5; }
2070
3026
 
2071
3027
# Provide some information about the compiler.
2072
 
echo "$as_me:$LINENO:" \
2073
 
     "checking for C compiler version" >&5
2074
 
ac_compiler=`set X $ac_compile; echo $2`
2075
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2076
 
  (eval $ac_compiler --version </dev/null >&5) 2>&5
2077
 
  ac_status=$?
2078
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2079
 
  (exit $ac_status); }
2080
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2081
 
  (eval $ac_compiler -v </dev/null >&5) 2>&5
2082
 
  ac_status=$?
2083
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2084
 
  (exit $ac_status); }
2085
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2086
 
  (eval $ac_compiler -V </dev/null >&5) 2>&5
2087
 
  ac_status=$?
2088
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2089
 
  (exit $ac_status); }
 
3028
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
 
3029
set X $ac_compile
 
3030
ac_compiler=$2
 
3031
for ac_option in --version -v -V -qversion; do
 
3032
  { { ac_try="$ac_compiler $ac_option >&5"
 
3033
case "(($ac_try" in
 
3034
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3035
  *) ac_try_echo=$ac_try;;
 
3036
esac
 
3037
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3038
$as_echo "$ac_try_echo"; } >&5
 
3039
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
 
3040
  ac_status=$?
 
3041
  if test -s conftest.err; then
 
3042
    sed '10a\
 
3043
... rest of stderr output deleted ...
 
3044
         10q' conftest.err >conftest.er1
 
3045
    cat conftest.er1 >&5
 
3046
  fi
 
3047
  rm -f conftest.er1 conftest.err
 
3048
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3049
  test $ac_status = 0; }
 
3050
done
2090
3051
 
2091
 
cat >conftest.$ac_ext <<_ACEOF
2092
 
/* confdefs.h.  */
2093
 
_ACEOF
2094
 
cat confdefs.h >>conftest.$ac_ext
2095
 
cat >>conftest.$ac_ext <<_ACEOF
 
3052
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2096
3053
/* end confdefs.h.  */
2097
3054
 
2098
3055
int
2104
3061
}
2105
3062
_ACEOF
2106
3063
ac_clean_files_save=$ac_clean_files
2107
 
ac_clean_files="$ac_clean_files a.out a.exe b.out"
 
3064
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2108
3065
# Try to create an executable without -o first, disregard a.out.
2109
3066
# It will help us diagnose broken compilers, and finding out an intuition
2110
3067
# of exeext.
2111
 
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2112
 
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2113
 
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2114
 
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2115
 
  (eval $ac_link_default) 2>&5
 
3068
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
 
3069
$as_echo_n "checking whether the C compiler works... " >&6; }
 
3070
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
3071
 
 
3072
# The possible output files:
 
3073
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
 
3074
 
 
3075
ac_rmfiles=
 
3076
for ac_file in $ac_files
 
3077
do
 
3078
  case $ac_file in
 
3079
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 
3080
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
 
3081
  esac
 
3082
done
 
3083
rm -f $ac_rmfiles
 
3084
 
 
3085
if { { ac_try="$ac_link_default"
 
3086
case "(($ac_try" in
 
3087
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3088
  *) ac_try_echo=$ac_try;;
 
3089
esac
 
3090
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3091
$as_echo "$ac_try_echo"; } >&5
 
3092
  (eval "$ac_link_default") 2>&5
2116
3093
  ac_status=$?
2117
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2118
 
  (exit $ac_status); }; then
2119
 
  # Find the output, starting from the most likely.  This scheme is
2120
 
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2121
 
# resort.
2122
 
 
2123
 
# Be careful to initialize this variable, since it used to be cached.
2124
 
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2125
 
ac_cv_exeext=
2126
 
# b.out is created by i960 compilers.
2127
 
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
 
3094
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3095
  test $ac_status = 0; }; then :
 
3096
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
 
3097
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
 
3098
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
 
3099
# so that the user can short-circuit this test for compilers unknown to
 
3100
# Autoconf.
 
3101
for ac_file in $ac_files ''
2128
3102
do
2129
3103
  test -f "$ac_file" || continue
2130
3104
  case $ac_file in
2131
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2132
 
        ;;
2133
 
    conftest.$ac_ext )
2134
 
        # This is the source file.
 
3105
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2135
3106
        ;;
2136
3107
    [ab].out )
2137
3108
        # We found the default executable, but exeext='' is most
2138
3109
        # certainly right.
2139
3110
        break;;
2140
3111
    *.* )
2141
 
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2142
 
        # FIXME: I believe we export ac_cv_exeext for Libtool,
2143
 
        # but it would be cool to find out if it's true.  Does anybody
2144
 
        # maintain Libtool? --akim.
2145
 
        export ac_cv_exeext
 
3112
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
 
3113
        then :; else
 
3114
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
3115
        fi
 
3116
        # We set ac_cv_exeext here because the later test for it is not
 
3117
        # safe: cross compilers may not add the suffix if given an `-o'
 
3118
        # argument, so we may need to know it at that point already.
 
3119
        # Even if this section looks crufty: it has the advantage of
 
3120
        # actually working.
2146
3121
        break;;
2147
3122
    * )
2148
3123
        break;;
2149
3124
  esac
2150
3125
done
 
3126
test "$ac_cv_exeext" = no && ac_cv_exeext=
 
3127
 
2151
3128
else
2152
 
  echo "$as_me: failed program was:" >&5
 
3129
  ac_file=''
 
3130
fi
 
3131
if test -z "$ac_file"; then :
 
3132
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3133
$as_echo "no" >&6; }
 
3134
$as_echo "$as_me: failed program was:" >&5
2153
3135
sed 's/^/| /' conftest.$ac_ext >&5
2154
3136
 
2155
 
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2156
 
See \`config.log' for more details." >&5
2157
 
echo "$as_me: error: C compiler cannot create executables
2158
 
See \`config.log' for more details." >&2;}
2159
 
   { (exit 77); exit 77; }; }
 
3137
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3138
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3139
{ as_fn_set_status 77
 
3140
as_fn_error "C compiler cannot create executables
 
3141
See \`config.log' for more details." "$LINENO" 5; }; }
 
3142
else
 
3143
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
3144
$as_echo "yes" >&6; }
2160
3145
fi
2161
 
 
 
3146
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
 
3147
$as_echo_n "checking for C compiler default output file name... " >&6; }
 
3148
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
 
3149
$as_echo "$ac_file" >&6; }
2162
3150
ac_exeext=$ac_cv_exeext
2163
 
echo "$as_me:$LINENO: result: $ac_file" >&5
2164
 
echo "${ECHO_T}$ac_file" >&6
2165
 
 
2166
 
# Check the compiler produces executables we can run.  If not, either
2167
 
# the compiler is broken, or we cross compile.
2168
 
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2169
 
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2170
 
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2171
 
# If not cross compiling, check that we can run a simple program.
2172
 
if test "$cross_compiling" != yes; then
2173
 
  if { ac_try='./$ac_file'
2174
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2175
 
  (eval $ac_try) 2>&5
2176
 
  ac_status=$?
2177
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2178
 
  (exit $ac_status); }; }; then
2179
 
    cross_compiling=no
2180
 
  else
2181
 
    if test "$cross_compiling" = maybe; then
2182
 
        cross_compiling=yes
2183
 
    else
2184
 
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2185
 
If you meant to cross compile, use \`--host'.
2186
 
See \`config.log' for more details." >&5
2187
 
echo "$as_me: error: cannot run C compiled programs.
2188
 
If you meant to cross compile, use \`--host'.
2189
 
See \`config.log' for more details." >&2;}
2190
 
   { (exit 1); exit 1; }; }
2191
 
    fi
2192
 
  fi
2193
 
fi
2194
 
echo "$as_me:$LINENO: result: yes" >&5
2195
 
echo "${ECHO_T}yes" >&6
2196
 
 
2197
 
rm -f a.out a.exe conftest$ac_cv_exeext b.out
 
3151
 
 
3152
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2198
3153
ac_clean_files=$ac_clean_files_save
2199
 
# Check the compiler produces executables we can run.  If not, either
2200
 
# the compiler is broken, or we cross compile.
2201
 
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2202
 
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2203
 
echo "$as_me:$LINENO: result: $cross_compiling" >&5
2204
 
echo "${ECHO_T}$cross_compiling" >&6
2205
 
 
2206
 
echo "$as_me:$LINENO: checking for suffix of executables" >&5
2207
 
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2208
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2209
 
  (eval $ac_link) 2>&5
 
3154
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
 
3155
$as_echo_n "checking for suffix of executables... " >&6; }
 
3156
if { { ac_try="$ac_link"
 
3157
case "(($ac_try" in
 
3158
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3159
  *) ac_try_echo=$ac_try;;
 
3160
esac
 
3161
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3162
$as_echo "$ac_try_echo"; } >&5
 
3163
  (eval "$ac_link") 2>&5
2210
3164
  ac_status=$?
2211
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2212
 
  (exit $ac_status); }; then
 
3165
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3166
  test $ac_status = 0; }; then :
2213
3167
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2214
3168
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2215
3169
# work properly (i.e., refer to `conftest.exe'), while it won't with
2217
3171
for ac_file in conftest.exe conftest conftest.*; do
2218
3172
  test -f "$ac_file" || continue
2219
3173
  case $ac_file in
2220
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
 
3174
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2221
3175
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2222
 
          export ac_cv_exeext
2223
3176
          break;;
2224
3177
    * ) break;;
2225
3178
  esac
2226
3179
done
2227
3180
else
2228
 
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2229
 
See \`config.log' for more details." >&5
2230
 
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2231
 
See \`config.log' for more details." >&2;}
2232
 
   { (exit 1); exit 1; }; }
 
3181
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3182
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3183
as_fn_error "cannot compute suffix of executables: cannot compile and link
 
3184
See \`config.log' for more details." "$LINENO" 5; }
2233
3185
fi
2234
 
 
2235
 
rm -f conftest$ac_cv_exeext
2236
 
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2237
 
echo "${ECHO_T}$ac_cv_exeext" >&6
 
3186
rm -f conftest conftest$ac_cv_exeext
 
3187
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
 
3188
$as_echo "$ac_cv_exeext" >&6; }
2238
3189
 
2239
3190
rm -f conftest.$ac_ext
2240
3191
EXEEXT=$ac_cv_exeext
2241
3192
ac_exeext=$EXEEXT
2242
 
echo "$as_me:$LINENO: checking for suffix of object files" >&5
2243
 
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2244
 
if test "${ac_cv_objext+set}" = set; then
2245
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3193
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3194
/* end confdefs.h.  */
 
3195
#include <stdio.h>
 
3196
int
 
3197
main ()
 
3198
{
 
3199
FILE *f = fopen ("conftest.out", "w");
 
3200
 return ferror (f) || fclose (f) != 0;
 
3201
 
 
3202
  ;
 
3203
  return 0;
 
3204
}
 
3205
_ACEOF
 
3206
ac_clean_files="$ac_clean_files conftest.out"
 
3207
# Check that the compiler produces executables we can run.  If not, either
 
3208
# the compiler is broken, or we cross compile.
 
3209
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
 
3210
$as_echo_n "checking whether we are cross compiling... " >&6; }
 
3211
if test "$cross_compiling" != yes; then
 
3212
  { { ac_try="$ac_link"
 
3213
case "(($ac_try" in
 
3214
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3215
  *) ac_try_echo=$ac_try;;
 
3216
esac
 
3217
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3218
$as_echo "$ac_try_echo"; } >&5
 
3219
  (eval "$ac_link") 2>&5
 
3220
  ac_status=$?
 
3221
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3222
  test $ac_status = 0; }
 
3223
  if { ac_try='./conftest$ac_cv_exeext'
 
3224
  { { case "(($ac_try" in
 
3225
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3226
  *) ac_try_echo=$ac_try;;
 
3227
esac
 
3228
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3229
$as_echo "$ac_try_echo"; } >&5
 
3230
  (eval "$ac_try") 2>&5
 
3231
  ac_status=$?
 
3232
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3233
  test $ac_status = 0; }; }; then
 
3234
    cross_compiling=no
 
3235
  else
 
3236
    if test "$cross_compiling" = maybe; then
 
3237
        cross_compiling=yes
 
3238
    else
 
3239
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3240
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3241
as_fn_error "cannot run C compiled programs.
 
3242
If you meant to cross compile, use \`--host'.
 
3243
See \`config.log' for more details." "$LINENO" 5; }
 
3244
    fi
 
3245
  fi
 
3246
fi
 
3247
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
 
3248
$as_echo "$cross_compiling" >&6; }
 
3249
 
 
3250
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
 
3251
ac_clean_files=$ac_clean_files_save
 
3252
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
 
3253
$as_echo_n "checking for suffix of object files... " >&6; }
 
3254
if test "${ac_cv_objext+set}" = set; then :
 
3255
  $as_echo_n "(cached) " >&6
2246
3256
else
2247
 
  cat >conftest.$ac_ext <<_ACEOF
2248
 
/* confdefs.h.  */
2249
 
_ACEOF
2250
 
cat confdefs.h >>conftest.$ac_ext
2251
 
cat >>conftest.$ac_ext <<_ACEOF
 
3257
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2252
3258
/* end confdefs.h.  */
2253
3259
 
2254
3260
int
2260
3266
}
2261
3267
_ACEOF
2262
3268
rm -f conftest.o conftest.obj
2263
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2264
 
  (eval $ac_compile) 2>&5
 
3269
if { { ac_try="$ac_compile"
 
3270
case "(($ac_try" in
 
3271
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3272
  *) ac_try_echo=$ac_try;;
 
3273
esac
 
3274
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3275
$as_echo "$ac_try_echo"; } >&5
 
3276
  (eval "$ac_compile") 2>&5
2265
3277
  ac_status=$?
2266
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2267
 
  (exit $ac_status); }; then
2268
 
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
 
3278
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3279
  test $ac_status = 0; }; then :
 
3280
  for ac_file in conftest.o conftest.obj conftest.*; do
 
3281
  test -f "$ac_file" || continue;
2269
3282
  case $ac_file in
2270
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
 
3283
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2271
3284
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2272
3285
       break;;
2273
3286
  esac
2274
3287
done
2275
3288
else
2276
 
  echo "$as_me: failed program was:" >&5
 
3289
  $as_echo "$as_me: failed program was:" >&5
2277
3290
sed 's/^/| /' conftest.$ac_ext >&5
2278
3291
 
2279
 
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2280
 
See \`config.log' for more details." >&5
2281
 
echo "$as_me: error: cannot compute suffix of object files: cannot compile
2282
 
See \`config.log' for more details." >&2;}
2283
 
   { (exit 1); exit 1; }; }
 
3292
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3293
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3294
as_fn_error "cannot compute suffix of object files: cannot compile
 
3295
See \`config.log' for more details." "$LINENO" 5; }
2284
3296
fi
2285
 
 
2286
3297
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2287
3298
fi
2288
 
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2289
 
echo "${ECHO_T}$ac_cv_objext" >&6
 
3299
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
 
3300
$as_echo "$ac_cv_objext" >&6; }
2290
3301
OBJEXT=$ac_cv_objext
2291
3302
ac_objext=$OBJEXT
2292
 
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2293
 
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2294
 
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2295
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3303
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
 
3304
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
 
3305
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
 
3306
  $as_echo_n "(cached) " >&6
2296
3307
else
2297
 
  cat >conftest.$ac_ext <<_ACEOF
2298
 
/* confdefs.h.  */
2299
 
_ACEOF
2300
 
cat confdefs.h >>conftest.$ac_ext
2301
 
cat >>conftest.$ac_ext <<_ACEOF
 
3308
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2302
3309
/* end confdefs.h.  */
2303
3310
 
2304
3311
int
2312
3319
  return 0;
2313
3320
}
2314
3321
_ACEOF
2315
 
rm -f conftest.$ac_objext
2316
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2317
 
  (eval $ac_compile) 2>conftest.er1
2318
 
  ac_status=$?
2319
 
  grep -v '^ *+' conftest.er1 >conftest.err
2320
 
  rm -f conftest.er1
2321
 
  cat conftest.err >&5
2322
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2323
 
  (exit $ac_status); } &&
2324
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2325
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2326
 
  (eval $ac_try) 2>&5
2327
 
  ac_status=$?
2328
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2329
 
  (exit $ac_status); }; } &&
2330
 
         { ac_try='test -s conftest.$ac_objext'
2331
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2332
 
  (eval $ac_try) 2>&5
2333
 
  ac_status=$?
2334
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2335
 
  (exit $ac_status); }; }; then
 
3322
if ac_fn_c_try_compile "$LINENO"; then :
2336
3323
  ac_compiler_gnu=yes
2337
3324
else
2338
 
  echo "$as_me: failed program was:" >&5
2339
 
sed 's/^/| /' conftest.$ac_ext >&5
2340
 
 
2341
 
ac_compiler_gnu=no
 
3325
  ac_compiler_gnu=no
2342
3326
fi
2343
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3327
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2344
3328
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2345
3329
 
2346
3330
fi
2347
 
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2348
 
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2349
 
GCC=`test $ac_compiler_gnu = yes && echo yes`
 
3331
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
 
3332
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
 
3333
if test $ac_compiler_gnu = yes; then
 
3334
  GCC=yes
 
3335
else
 
3336
  GCC=
 
3337
fi
2350
3338
ac_test_CFLAGS=${CFLAGS+set}
2351
3339
ac_save_CFLAGS=$CFLAGS
2352
 
CFLAGS="-g"
2353
 
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2354
 
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2355
 
if test "${ac_cv_prog_cc_g+set}" = set; then
2356
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2357
 
else
2358
 
  cat >conftest.$ac_ext <<_ACEOF
2359
 
/* confdefs.h.  */
2360
 
_ACEOF
2361
 
cat confdefs.h >>conftest.$ac_ext
2362
 
cat >>conftest.$ac_ext <<_ACEOF
2363
 
/* end confdefs.h.  */
2364
 
 
2365
 
int
2366
 
main ()
2367
 
{
2368
 
 
2369
 
  ;
2370
 
  return 0;
2371
 
}
2372
 
_ACEOF
2373
 
rm -f conftest.$ac_objext
2374
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2375
 
  (eval $ac_compile) 2>conftest.er1
2376
 
  ac_status=$?
2377
 
  grep -v '^ *+' conftest.er1 >conftest.err
2378
 
  rm -f conftest.er1
2379
 
  cat conftest.err >&5
2380
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2381
 
  (exit $ac_status); } &&
2382
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2383
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2384
 
  (eval $ac_try) 2>&5
2385
 
  ac_status=$?
2386
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2387
 
  (exit $ac_status); }; } &&
2388
 
         { ac_try='test -s conftest.$ac_objext'
2389
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2390
 
  (eval $ac_try) 2>&5
2391
 
  ac_status=$?
2392
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2393
 
  (exit $ac_status); }; }; then
2394
 
  ac_cv_prog_cc_g=yes
2395
 
else
2396
 
  echo "$as_me: failed program was:" >&5
2397
 
sed 's/^/| /' conftest.$ac_ext >&5
2398
 
 
2399
 
ac_cv_prog_cc_g=no
2400
 
fi
2401
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2402
 
fi
2403
 
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2404
 
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
 
3340
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
 
3341
$as_echo_n "checking whether $CC accepts -g... " >&6; }
 
3342
if test "${ac_cv_prog_cc_g+set}" = set; then :
 
3343
  $as_echo_n "(cached) " >&6
 
3344
else
 
3345
  ac_save_c_werror_flag=$ac_c_werror_flag
 
3346
   ac_c_werror_flag=yes
 
3347
   ac_cv_prog_cc_g=no
 
3348
   CFLAGS="-g"
 
3349
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3350
/* end confdefs.h.  */
 
3351
 
 
3352
int
 
3353
main ()
 
3354
{
 
3355
 
 
3356
  ;
 
3357
  return 0;
 
3358
}
 
3359
_ACEOF
 
3360
if ac_fn_c_try_compile "$LINENO"; then :
 
3361
  ac_cv_prog_cc_g=yes
 
3362
else
 
3363
  CFLAGS=""
 
3364
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3365
/* end confdefs.h.  */
 
3366
 
 
3367
int
 
3368
main ()
 
3369
{
 
3370
 
 
3371
  ;
 
3372
  return 0;
 
3373
}
 
3374
_ACEOF
 
3375
if ac_fn_c_try_compile "$LINENO"; then :
 
3376
 
 
3377
else
 
3378
  ac_c_werror_flag=$ac_save_c_werror_flag
 
3379
         CFLAGS="-g"
 
3380
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3381
/* end confdefs.h.  */
 
3382
 
 
3383
int
 
3384
main ()
 
3385
{
 
3386
 
 
3387
  ;
 
3388
  return 0;
 
3389
}
 
3390
_ACEOF
 
3391
if ac_fn_c_try_compile "$LINENO"; then :
 
3392
  ac_cv_prog_cc_g=yes
 
3393
fi
 
3394
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3395
fi
 
3396
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3397
fi
 
3398
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3399
   ac_c_werror_flag=$ac_save_c_werror_flag
 
3400
fi
 
3401
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
 
3402
$as_echo "$ac_cv_prog_cc_g" >&6; }
2405
3403
if test "$ac_test_CFLAGS" = set; then
2406
3404
  CFLAGS=$ac_save_CFLAGS
2407
3405
elif test $ac_cv_prog_cc_g = yes; then
2417
3415
    CFLAGS=
2418
3416
  fi
2419
3417
fi
2420
 
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2421
 
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2422
 
if test "${ac_cv_prog_cc_stdc+set}" = set; then
2423
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3418
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
 
3419
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
 
3420
if test "${ac_cv_prog_cc_c89+set}" = set; then :
 
3421
  $as_echo_n "(cached) " >&6
2424
3422
else
2425
 
  ac_cv_prog_cc_stdc=no
 
3423
  ac_cv_prog_cc_c89=no
2426
3424
ac_save_CC=$CC
2427
 
cat >conftest.$ac_ext <<_ACEOF
2428
 
/* confdefs.h.  */
2429
 
_ACEOF
2430
 
cat confdefs.h >>conftest.$ac_ext
2431
 
cat >>conftest.$ac_ext <<_ACEOF
 
3425
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2432
3426
/* end confdefs.h.  */
2433
3427
#include <stdarg.h>
2434
3428
#include <stdio.h>
2456
3450
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2457
3451
   function prototypes and stuff, but not '\xHH' hex character constants.
2458
3452
   These don't provoke an error unfortunately, instead are silently treated
2459
 
   as 'x'.  The following induces an error, until -std1 is added to get
 
3453
   as 'x'.  The following induces an error, until -std is added to get
2460
3454
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2461
3455
   array size at least.  It's necessary to write '\x00'==0 to get something
2462
 
   that's true only with -std1.  */
 
3456
   that's true only with -std.  */
2463
3457
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2464
3458
 
 
3459
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 
3460
   inside strings and character constants.  */
 
3461
#define FOO(x) 'x'
 
3462
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 
3463
 
2465
3464
int test (int i, double x);
2466
3465
struct s1 {int (*f) (int a);};
2467
3466
struct s2 {int (*f) (double a);};
2476
3475
  return 0;
2477
3476
}
2478
3477
_ACEOF
2479
 
# Don't try gcc -ansi; that turns off useful extensions and
2480
 
# breaks some systems' header files.
2481
 
# AIX                   -qlanglvl=ansi
2482
 
# Ultrix and OSF/1      -std1
2483
 
# HP-UX 10.20 and later -Ae
2484
 
# HP-UX older versions  -Aa -D_HPUX_SOURCE
2485
 
# SVR4                  -Xc -D__EXTENSIONS__
2486
 
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
3478
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 
3479
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2487
3480
do
2488
3481
  CC="$ac_save_CC $ac_arg"
2489
 
  rm -f conftest.$ac_objext
2490
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2491
 
  (eval $ac_compile) 2>conftest.er1
2492
 
  ac_status=$?
2493
 
  grep -v '^ *+' conftest.er1 >conftest.err
2494
 
  rm -f conftest.er1
2495
 
  cat conftest.err >&5
2496
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2497
 
  (exit $ac_status); } &&
2498
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2499
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2500
 
  (eval $ac_try) 2>&5
2501
 
  ac_status=$?
2502
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2503
 
  (exit $ac_status); }; } &&
2504
 
         { ac_try='test -s conftest.$ac_objext'
2505
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2506
 
  (eval $ac_try) 2>&5
2507
 
  ac_status=$?
2508
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509
 
  (exit $ac_status); }; }; then
2510
 
  ac_cv_prog_cc_stdc=$ac_arg
2511
 
break
2512
 
else
2513
 
  echo "$as_me: failed program was:" >&5
2514
 
sed 's/^/| /' conftest.$ac_ext >&5
2515
 
 
 
3482
  if ac_fn_c_try_compile "$LINENO"; then :
 
3483
  ac_cv_prog_cc_c89=$ac_arg
2516
3484
fi
2517
 
rm -f conftest.err conftest.$ac_objext
 
3485
rm -f core conftest.err conftest.$ac_objext
 
3486
  test "x$ac_cv_prog_cc_c89" != "xno" && break
2518
3487
done
2519
 
rm -f conftest.$ac_ext conftest.$ac_objext
 
3488
rm -f conftest.$ac_ext
2520
3489
CC=$ac_save_CC
2521
3490
 
2522
3491
fi
2523
 
 
2524
 
case "x$ac_cv_prog_cc_stdc" in
2525
 
  x|xno)
2526
 
    echo "$as_me:$LINENO: result: none needed" >&5
2527
 
echo "${ECHO_T}none needed" >&6 ;;
 
3492
# AC_CACHE_VAL
 
3493
case "x$ac_cv_prog_cc_c89" in
 
3494
  x)
 
3495
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
 
3496
$as_echo "none needed" >&6; } ;;
 
3497
  xno)
 
3498
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
 
3499
$as_echo "unsupported" >&6; } ;;
2528
3500
  *)
2529
 
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2530
 
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2531
 
    CC="$CC $ac_cv_prog_cc_stdc" ;;
 
3501
    CC="$CC $ac_cv_prog_cc_c89"
 
3502
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
 
3503
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2532
3504
esac
2533
 
 
2534
 
# Some people use a C++ compiler to compile C.  Since we use `exit',
2535
 
# in C++ we need to declare it.  In case someone uses the same compiler
2536
 
# for both compiling C and C++ we need to have the C++ compiler decide
2537
 
# the declaration of exit, since it's the most demanding environment.
2538
 
cat >conftest.$ac_ext <<_ACEOF
2539
 
#ifndef __cplusplus
2540
 
  choke me
2541
 
#endif
2542
 
_ACEOF
2543
 
rm -f conftest.$ac_objext
2544
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2545
 
  (eval $ac_compile) 2>conftest.er1
2546
 
  ac_status=$?
2547
 
  grep -v '^ *+' conftest.er1 >conftest.err
2548
 
  rm -f conftest.er1
2549
 
  cat conftest.err >&5
2550
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2551
 
  (exit $ac_status); } &&
2552
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2553
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2554
 
  (eval $ac_try) 2>&5
2555
 
  ac_status=$?
2556
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557
 
  (exit $ac_status); }; } &&
2558
 
         { ac_try='test -s conftest.$ac_objext'
2559
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2560
 
  (eval $ac_try) 2>&5
2561
 
  ac_status=$?
2562
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563
 
  (exit $ac_status); }; }; then
2564
 
  for ac_declaration in \
2565
 
   '' \
2566
 
   'extern "C" void std::exit (int) throw (); using std::exit;' \
2567
 
   'extern "C" void std::exit (int); using std::exit;' \
2568
 
   'extern "C" void exit (int) throw ();' \
2569
 
   'extern "C" void exit (int);' \
2570
 
   'void exit (int);'
2571
 
do
2572
 
  cat >conftest.$ac_ext <<_ACEOF
2573
 
/* confdefs.h.  */
2574
 
_ACEOF
2575
 
cat confdefs.h >>conftest.$ac_ext
2576
 
cat >>conftest.$ac_ext <<_ACEOF
2577
 
/* end confdefs.h.  */
2578
 
$ac_declaration
2579
 
#include <stdlib.h>
2580
 
int
2581
 
main ()
2582
 
{
2583
 
exit (42);
2584
 
  ;
2585
 
  return 0;
2586
 
}
2587
 
_ACEOF
2588
 
rm -f conftest.$ac_objext
2589
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2590
 
  (eval $ac_compile) 2>conftest.er1
2591
 
  ac_status=$?
2592
 
  grep -v '^ *+' conftest.er1 >conftest.err
2593
 
  rm -f conftest.er1
2594
 
  cat conftest.err >&5
2595
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2596
 
  (exit $ac_status); } &&
2597
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2598
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2599
 
  (eval $ac_try) 2>&5
2600
 
  ac_status=$?
2601
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2602
 
  (exit $ac_status); }; } &&
2603
 
         { ac_try='test -s conftest.$ac_objext'
2604
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2605
 
  (eval $ac_try) 2>&5
2606
 
  ac_status=$?
2607
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608
 
  (exit $ac_status); }; }; then
2609
 
  :
2610
 
else
2611
 
  echo "$as_me: failed program was:" >&5
2612
 
sed 's/^/| /' conftest.$ac_ext >&5
2613
 
 
2614
 
continue
2615
 
fi
2616
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2617
 
  cat >conftest.$ac_ext <<_ACEOF
2618
 
/* confdefs.h.  */
2619
 
_ACEOF
2620
 
cat confdefs.h >>conftest.$ac_ext
2621
 
cat >>conftest.$ac_ext <<_ACEOF
2622
 
/* end confdefs.h.  */
2623
 
$ac_declaration
2624
 
int
2625
 
main ()
2626
 
{
2627
 
exit (42);
2628
 
  ;
2629
 
  return 0;
2630
 
}
2631
 
_ACEOF
2632
 
rm -f conftest.$ac_objext
2633
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2634
 
  (eval $ac_compile) 2>conftest.er1
2635
 
  ac_status=$?
2636
 
  grep -v '^ *+' conftest.er1 >conftest.err
2637
 
  rm -f conftest.er1
2638
 
  cat conftest.err >&5
2639
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2640
 
  (exit $ac_status); } &&
2641
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2642
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2643
 
  (eval $ac_try) 2>&5
2644
 
  ac_status=$?
2645
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2646
 
  (exit $ac_status); }; } &&
2647
 
         { ac_try='test -s conftest.$ac_objext'
2648
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2649
 
  (eval $ac_try) 2>&5
2650
 
  ac_status=$?
2651
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2652
 
  (exit $ac_status); }; }; then
2653
 
  break
2654
 
else
2655
 
  echo "$as_me: failed program was:" >&5
2656
 
sed 's/^/| /' conftest.$ac_ext >&5
2657
 
 
2658
 
fi
2659
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2660
 
done
2661
 
rm -f conftest*
2662
 
if test -n "$ac_declaration"; then
2663
 
  echo '#ifdef __cplusplus' >>confdefs.h
2664
 
  echo $ac_declaration      >>confdefs.h
2665
 
  echo '#endif'             >>confdefs.h
2666
 
fi
2667
 
 
2668
 
else
2669
 
  echo "$as_me: failed program was:" >&5
2670
 
sed 's/^/| /' conftest.$ac_ext >&5
2671
 
 
2672
 
fi
2673
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3505
if test "x$ac_cv_prog_cc_c89" != xno; then :
 
3506
 
 
3507
fi
 
3508
 
2674
3509
ac_ext=c
2675
3510
ac_cpp='$CPP $CPPFLAGS'
2676
3511
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2678
3513
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2679
3514
DEPDIR="${am__leading_dot}deps"
2680
3515
 
2681
 
          ac_config_commands="$ac_config_commands depfiles"
 
3516
ac_config_commands="$ac_config_commands depfiles"
2682
3517
 
2683
3518
 
2684
3519
am_make=${MAKE-make}
2685
3520
cat > confinc << 'END'
2686
3521
am__doit:
2687
 
        @echo done
 
3522
        @echo this is the am__doit target
2688
3523
.PHONY: am__doit
2689
3524
END
2690
3525
# If we don't find an include directive, just comment out the code.
2691
 
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2692
 
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
 
3526
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
 
3527
$as_echo_n "checking for style of include used by $am_make... " >&6; }
2693
3528
am__include="#"
2694
3529
am__quote=
2695
3530
_am_result=none
2696
3531
# First try GNU make style include.
2697
3532
echo "include confinc" > confmf
2698
 
# We grep out `Entering directory' and `Leaving directory'
2699
 
# messages which can occur if `w' ends up in MAKEFLAGS.
2700
 
# In particular we don't look at `^make:' because GNU make might
2701
 
# be invoked under some other name (usually "gmake"), in which
2702
 
# case it prints its new name instead of `make'.
2703
 
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2704
 
   am__include=include
2705
 
   am__quote=
2706
 
   _am_result=GNU
2707
 
fi
 
3533
# Ignore all kinds of additional output from `make'.
 
3534
case `$am_make -s -f confmf 2> /dev/null` in #(
 
3535
*the\ am__doit\ target*)
 
3536
  am__include=include
 
3537
  am__quote=
 
3538
  _am_result=GNU
 
3539
  ;;
 
3540
esac
2708
3541
# Now try BSD make style include.
2709
3542
if test "$am__include" = "#"; then
2710
3543
   echo '.include "confinc"' > confmf
2711
 
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2712
 
      am__include=.include
2713
 
      am__quote="\""
2714
 
      _am_result=BSD
2715
 
   fi
 
3544
   case `$am_make -s -f confmf 2> /dev/null` in #(
 
3545
   *the\ am__doit\ target*)
 
3546
     am__include=.include
 
3547
     am__quote="\""
 
3548
     _am_result=BSD
 
3549
     ;;
 
3550
   esac
2716
3551
fi
2717
3552
 
2718
3553
 
2719
 
echo "$as_me:$LINENO: result: $_am_result" >&5
2720
 
echo "${ECHO_T}$_am_result" >&6
 
3554
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
 
3555
$as_echo "$_am_result" >&6; }
2721
3556
rm -f confinc confmf
2722
3557
 
2723
 
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2724
 
if test "${enable_dependency_tracking+set}" = set; then
2725
 
  enableval="$enable_dependency_tracking"
 
3558
# Check whether --enable-dependency-tracking was given.
 
3559
if test "${enable_dependency_tracking+set}" = set; then :
 
3560
  enableval=$enable_dependency_tracking;
 
3561
fi
2726
3562
 
2727
 
fi;
2728
3563
if test "x$enable_dependency_tracking" != xno; then
2729
3564
  am_depcomp="$ac_aux_dir/depcomp"
2730
3565
  AMDEPBACKSLASH='\'
2731
3566
fi
2732
 
 
2733
 
 
2734
 
if test "x$enable_dependency_tracking" != xno; then
 
3567
 if test "x$enable_dependency_tracking" != xno; then
2735
3568
  AMDEP_TRUE=
2736
3569
  AMDEP_FALSE='#'
2737
3570
else
2741
3574
 
2742
3575
 
2743
3576
 
2744
 
 
2745
3577
depcc="$CC"   am_compiler_list=
2746
3578
 
2747
 
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2748
 
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2749
 
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2750
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3579
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
 
3580
$as_echo_n "checking dependency style of $depcc... " >&6; }
 
3581
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
 
3582
  $as_echo_n "(cached) " >&6
2751
3583
else
2752
3584
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2753
3585
  # We make a subdir and do the tests there.  Otherwise we can end up
2772
3604
  if test "$am_compiler_list" = ""; then
2773
3605
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2774
3606
  fi
 
3607
  am__universal=false
 
3608
  case " $depcc " in #(
 
3609
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
3610
     esac
 
3611
 
2775
3612
  for depmode in $am_compiler_list; do
2776
3613
    # Setup a source with many dependencies, because some compilers
2777
3614
    # like to wrap large dependency lists on column 80 (with \), and
2789
3626
    done
2790
3627
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2791
3628
 
 
3629
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
3630
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
3631
    # handle `-M -o', and we need to detect this.  Also, some Intel
 
3632
    # versions had trouble with output in subdirs
 
3633
    am__obj=sub/conftest.${OBJEXT-o}
 
3634
    am__minus_obj="-o $am__obj"
2792
3635
    case $depmode in
 
3636
    gcc)
 
3637
      # This depmode causes a compiler race in universal mode.
 
3638
      test "$am__universal" = false || continue
 
3639
      ;;
2793
3640
    nosideeffect)
2794
3641
      # after this tag, mechanisms are not by side-effect, so they'll
2795
3642
      # only be used when explicitly requested
2799
3646
        break
2800
3647
      fi
2801
3648
      ;;
 
3649
    msvisualcpp | msvcmsys)
 
3650
      # This compiler won't grok `-c -o', but also, the minuso test has
 
3651
      # not run yet.  These depmodes are late enough in the game, and
 
3652
      # so weak that their functioning should not be impacted.
 
3653
      am__obj=conftest.${OBJEXT-o}
 
3654
      am__minus_obj=
 
3655
      ;;
2802
3656
    none) break ;;
2803
3657
    esac
2804
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
2805
 
    # mode.  It turns out that the SunPro C++ compiler does not properly
2806
 
    # handle `-M -o', and we need to detect this.
2807
3658
    if depmode=$depmode \
2808
 
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
3659
       source=sub/conftest.c object=$am__obj \
2809
3660
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2810
 
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
3661
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
2811
3662
         >/dev/null 2>conftest.err &&
 
3663
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
2812
3664
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2813
 
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
3665
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
2814
3666
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2815
3667
      # icc doesn't choke on unknown options, it will just issue warnings
2816
3668
      # or remarks (even with -Werror).  So we grep stderr for any message
2834
3686
fi
2835
3687
 
2836
3688
fi
2837
 
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2838
 
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
 
3689
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
 
3690
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
2839
3691
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2840
3692
 
2841
 
 
2842
 
 
2843
 
if
 
3693
 if
2844
3694
  test "x$enable_dependency_tracking" != xno \
2845
3695
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2846
3696
  am__fastdepCC_TRUE=
2851
3701
fi
2852
3702
 
2853
3703
 
2854
 
# Find a good install program.  We prefer a C program (faster),
2855
 
# so one script is as good as another.  But avoid the broken or
2856
 
# incompatible versions:
2857
 
# SysV /etc/install, /usr/sbin/install
2858
 
# SunOS /usr/etc/install
2859
 
# IRIX /sbin/install
2860
 
# AIX /bin/install
2861
 
# AmigaOS /C/install, which installs bootblocks on floppy discs
2862
 
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2863
 
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2864
 
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2865
 
# OS/2's system install, which has a completely different semantic
2866
 
# ./install, which can be erroneously created by make from ./install.sh.
2867
 
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2868
 
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2869
 
if test -z "$INSTALL"; then
2870
 
if test "${ac_cv_path_install+set}" = set; then
2871
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2872
 
else
2873
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2874
 
for as_dir in $PATH
2875
 
do
2876
 
  IFS=$as_save_IFS
2877
 
  test -z "$as_dir" && as_dir=.
2878
 
  # Account for people who put trailing slashes in PATH elements.
2879
 
case $as_dir/ in
2880
 
  ./ | .// | /cC/* | \
2881
 
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2882
 
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2883
 
  /usr/ucb/* ) ;;
2884
 
  *)
2885
 
    # OSF1 and SCO ODT 3.0 have their own names for install.
2886
 
    # Don't use installbsd from OSF since it installs stuff as root
2887
 
    # by default.
2888
 
    for ac_prog in ginstall scoinst install; do
2889
 
      for ac_exec_ext in '' $ac_executable_extensions; do
2890
 
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2891
 
          if test $ac_prog = install &&
2892
 
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2893
 
            # AIX install.  It has an incompatible calling convention.
2894
 
            :
2895
 
          elif test $ac_prog = install &&
2896
 
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2897
 
            # program-specific install script used by HP pwplus--don't use.
2898
 
            :
2899
 
          else
2900
 
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2901
 
            break 3
2902
 
          fi
2903
 
        fi
2904
 
      done
2905
 
    done
2906
 
    ;;
2907
 
esac
2908
 
done
2909
 
 
2910
 
 
2911
 
fi
2912
 
  if test "${ac_cv_path_install+set}" = set; then
2913
 
    INSTALL=$ac_cv_path_install
2914
 
  else
2915
 
    # As a last resort, use the slow shell script.  We don't cache a
2916
 
    # path for INSTALL within a source directory, because that will
2917
 
    # break other packages using the cache if that directory is
2918
 
    # removed, or if the path is relative.
2919
 
    INSTALL=$ac_install_sh
2920
 
  fi
2921
 
fi
2922
 
echo "$as_me:$LINENO: result: $INSTALL" >&5
2923
 
echo "${ECHO_T}$INSTALL" >&6
2924
 
 
2925
 
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2926
 
# It thinks the first close brace ends the variable substitution.
2927
 
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2928
 
 
2929
 
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2930
 
 
2931
 
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2932
3704
 
2933
3705
if test -n "$ac_tool_prefix"; then
2934
3706
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2935
3707
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2936
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2937
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2938
 
if test "${ac_cv_prog_RANLIB+set}" = set; then
2939
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3708
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3709
$as_echo_n "checking for $ac_word... " >&6; }
 
3710
if test "${ac_cv_prog_RANLIB+set}" = set; then :
 
3711
  $as_echo_n "(cached) " >&6
2940
3712
else
2941
3713
  if test -n "$RANLIB"; then
2942
3714
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2946
3718
do
2947
3719
  IFS=$as_save_IFS
2948
3720
  test -z "$as_dir" && as_dir=.
2949
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2950
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3721
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3722
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2951
3723
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2952
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3724
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2953
3725
    break 2
2954
3726
  fi
2955
3727
done
2956
 
done
 
3728
  done
 
3729
IFS=$as_save_IFS
2957
3730
 
2958
3731
fi
2959
3732
fi
2960
3733
RANLIB=$ac_cv_prog_RANLIB
2961
3734
if test -n "$RANLIB"; then
2962
 
  echo "$as_me:$LINENO: result: $RANLIB" >&5
2963
 
echo "${ECHO_T}$RANLIB" >&6
 
3735
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
 
3736
$as_echo "$RANLIB" >&6; }
2964
3737
else
2965
 
  echo "$as_me:$LINENO: result: no" >&5
2966
 
echo "${ECHO_T}no" >&6
 
3738
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3739
$as_echo "no" >&6; }
2967
3740
fi
 
3741
 
2968
3742
 
2969
3743
fi
2970
3744
if test -z "$ac_cv_prog_RANLIB"; then
2971
3745
  ac_ct_RANLIB=$RANLIB
2972
3746
  # Extract the first word of "ranlib", so it can be a program name with args.
2973
3747
set dummy ranlib; ac_word=$2
2974
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2975
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2976
 
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2977
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3748
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3749
$as_echo_n "checking for $ac_word... " >&6; }
 
3750
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
 
3751
  $as_echo_n "(cached) " >&6
2978
3752
else
2979
3753
  if test -n "$ac_ct_RANLIB"; then
2980
3754
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2984
3758
do
2985
3759
  IFS=$as_save_IFS
2986
3760
  test -z "$as_dir" && as_dir=.
2987
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2988
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3761
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3762
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2989
3763
    ac_cv_prog_ac_ct_RANLIB="ranlib"
2990
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3764
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2991
3765
    break 2
2992
3766
  fi
2993
3767
done
2994
 
done
 
3768
  done
 
3769
IFS=$as_save_IFS
2995
3770
 
2996
 
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2997
3771
fi
2998
3772
fi
2999
3773
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3000
3774
if test -n "$ac_ct_RANLIB"; then
3001
 
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3002
 
echo "${ECHO_T}$ac_ct_RANLIB" >&6
 
3775
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
 
3776
$as_echo "$ac_ct_RANLIB" >&6; }
3003
3777
else
3004
 
  echo "$as_me:$LINENO: result: no" >&5
3005
 
echo "${ECHO_T}no" >&6
 
3778
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3779
$as_echo "no" >&6; }
3006
3780
fi
3007
3781
 
3008
 
  RANLIB=$ac_ct_RANLIB
 
3782
  if test "x$ac_ct_RANLIB" = x; then
 
3783
    RANLIB=":"
 
3784
  else
 
3785
    case $cross_compiling:$ac_tool_warned in
 
3786
yes:)
 
3787
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
3788
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
3789
ac_tool_warned=yes ;;
 
3790
esac
 
3791
    RANLIB=$ac_ct_RANLIB
 
3792
  fi
3009
3793
else
3010
3794
  RANLIB="$ac_cv_prog_RANLIB"
3011
3795
fi
3019
3803
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3020
3804
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3021
3805
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3022
 
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3023
 
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
 
3806
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
 
3807
$as_echo_n "checking how to run the C preprocessor... " >&6; }
3024
3808
# On Suns, sometimes $CPP names a directory.
3025
3809
if test -n "$CPP" && test -d "$CPP"; then
3026
3810
  CPP=
3027
3811
fi
3028
3812
if test -z "$CPP"; then
3029
 
  if test "${ac_cv_prog_CPP+set}" = set; then
3030
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3813
  if test "${ac_cv_prog_CPP+set}" = set; then :
 
3814
  $as_echo_n "(cached) " >&6
3031
3815
else
3032
3816
      # Double quotes because CPP needs to be expanded
3033
3817
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3041
3825
  # <limits.h> exists even on freestanding compilers.
3042
3826
  # On the NeXT, cc -E runs the code through the compiler's parser,
3043
3827
  # not just through cpp. "Syntax error" is here to catch this case.
3044
 
  cat >conftest.$ac_ext <<_ACEOF
3045
 
/* confdefs.h.  */
3046
 
_ACEOF
3047
 
cat confdefs.h >>conftest.$ac_ext
3048
 
cat >>conftest.$ac_ext <<_ACEOF
 
3828
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3049
3829
/* end confdefs.h.  */
3050
3830
#ifdef __STDC__
3051
3831
# include <limits.h>
3054
3834
#endif
3055
3835
                     Syntax error
3056
3836
_ACEOF
3057
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3058
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3059
 
  ac_status=$?
3060
 
  grep -v '^ *+' conftest.er1 >conftest.err
3061
 
  rm -f conftest.er1
3062
 
  cat conftest.err >&5
3063
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3064
 
  (exit $ac_status); } >/dev/null; then
3065
 
  if test -s conftest.err; then
3066
 
    ac_cpp_err=$ac_c_preproc_warn_flag
3067
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3068
 
  else
3069
 
    ac_cpp_err=
3070
 
  fi
3071
 
else
3072
 
  ac_cpp_err=yes
3073
 
fi
3074
 
if test -z "$ac_cpp_err"; then
3075
 
  :
3076
 
else
3077
 
  echo "$as_me: failed program was:" >&5
3078
 
sed 's/^/| /' conftest.$ac_ext >&5
 
3837
if ac_fn_c_try_cpp "$LINENO"; then :
3079
3838
 
 
3839
else
3080
3840
  # Broken: fails on valid input.
3081
3841
continue
3082
3842
fi
3083
3843
rm -f conftest.err conftest.$ac_ext
3084
3844
 
3085
 
  # OK, works on sane cases.  Now check whether non-existent headers
 
3845
  # OK, works on sane cases.  Now check whether nonexistent headers
3086
3846
  # can be detected and how.
3087
 
  cat >conftest.$ac_ext <<_ACEOF
3088
 
/* confdefs.h.  */
3089
 
_ACEOF
3090
 
cat confdefs.h >>conftest.$ac_ext
3091
 
cat >>conftest.$ac_ext <<_ACEOF
 
3847
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3092
3848
/* end confdefs.h.  */
3093
3849
#include <ac_nonexistent.h>
3094
3850
_ACEOF
3095
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3096
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3097
 
  ac_status=$?
3098
 
  grep -v '^ *+' conftest.er1 >conftest.err
3099
 
  rm -f conftest.er1
3100
 
  cat conftest.err >&5
3101
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102
 
  (exit $ac_status); } >/dev/null; then
3103
 
  if test -s conftest.err; then
3104
 
    ac_cpp_err=$ac_c_preproc_warn_flag
3105
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3106
 
  else
3107
 
    ac_cpp_err=
3108
 
  fi
3109
 
else
3110
 
  ac_cpp_err=yes
3111
 
fi
3112
 
if test -z "$ac_cpp_err"; then
 
3851
if ac_fn_c_try_cpp "$LINENO"; then :
3113
3852
  # Broken: success on invalid input.
3114
3853
continue
3115
3854
else
3116
 
  echo "$as_me: failed program was:" >&5
3117
 
sed 's/^/| /' conftest.$ac_ext >&5
3118
 
 
3119
3855
  # Passes both tests.
3120
3856
ac_preproc_ok=:
3121
3857
break
3125
3861
done
3126
3862
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3127
3863
rm -f conftest.err conftest.$ac_ext
3128
 
if $ac_preproc_ok; then
 
3864
if $ac_preproc_ok; then :
3129
3865
  break
3130
3866
fi
3131
3867
 
3137
3873
else
3138
3874
  ac_cv_prog_CPP=$CPP
3139
3875
fi
3140
 
echo "$as_me:$LINENO: result: $CPP" >&5
3141
 
echo "${ECHO_T}$CPP" >&6
 
3876
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
 
3877
$as_echo "$CPP" >&6; }
3142
3878
ac_preproc_ok=false
3143
3879
for ac_c_preproc_warn_flag in '' yes
3144
3880
do
3148
3884
  # <limits.h> exists even on freestanding compilers.
3149
3885
  # On the NeXT, cc -E runs the code through the compiler's parser,
3150
3886
  # not just through cpp. "Syntax error" is here to catch this case.
3151
 
  cat >conftest.$ac_ext <<_ACEOF
3152
 
/* confdefs.h.  */
3153
 
_ACEOF
3154
 
cat confdefs.h >>conftest.$ac_ext
3155
 
cat >>conftest.$ac_ext <<_ACEOF
 
3887
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3156
3888
/* end confdefs.h.  */
3157
3889
#ifdef __STDC__
3158
3890
# include <limits.h>
3161
3893
#endif
3162
3894
                     Syntax error
3163
3895
_ACEOF
3164
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3165
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3166
 
  ac_status=$?
3167
 
  grep -v '^ *+' conftest.er1 >conftest.err
3168
 
  rm -f conftest.er1
3169
 
  cat conftest.err >&5
3170
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3171
 
  (exit $ac_status); } >/dev/null; then
3172
 
  if test -s conftest.err; then
3173
 
    ac_cpp_err=$ac_c_preproc_warn_flag
3174
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3175
 
  else
3176
 
    ac_cpp_err=
3177
 
  fi
3178
 
else
3179
 
  ac_cpp_err=yes
3180
 
fi
3181
 
if test -z "$ac_cpp_err"; then
3182
 
  :
3183
 
else
3184
 
  echo "$as_me: failed program was:" >&5
3185
 
sed 's/^/| /' conftest.$ac_ext >&5
 
3896
if ac_fn_c_try_cpp "$LINENO"; then :
3186
3897
 
 
3898
else
3187
3899
  # Broken: fails on valid input.
3188
3900
continue
3189
3901
fi
3190
3902
rm -f conftest.err conftest.$ac_ext
3191
3903
 
3192
 
  # OK, works on sane cases.  Now check whether non-existent headers
 
3904
  # OK, works on sane cases.  Now check whether nonexistent headers
3193
3905
  # can be detected and how.
3194
 
  cat >conftest.$ac_ext <<_ACEOF
3195
 
/* confdefs.h.  */
3196
 
_ACEOF
3197
 
cat confdefs.h >>conftest.$ac_ext
3198
 
cat >>conftest.$ac_ext <<_ACEOF
 
3906
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3199
3907
/* end confdefs.h.  */
3200
3908
#include <ac_nonexistent.h>
3201
3909
_ACEOF
3202
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3203
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3204
 
  ac_status=$?
3205
 
  grep -v '^ *+' conftest.er1 >conftest.err
3206
 
  rm -f conftest.er1
3207
 
  cat conftest.err >&5
3208
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3209
 
  (exit $ac_status); } >/dev/null; then
3210
 
  if test -s conftest.err; then
3211
 
    ac_cpp_err=$ac_c_preproc_warn_flag
3212
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3213
 
  else
3214
 
    ac_cpp_err=
3215
 
  fi
3216
 
else
3217
 
  ac_cpp_err=yes
3218
 
fi
3219
 
if test -z "$ac_cpp_err"; then
 
3910
if ac_fn_c_try_cpp "$LINENO"; then :
3220
3911
  # Broken: success on invalid input.
3221
3912
continue
3222
3913
else
3223
 
  echo "$as_me: failed program was:" >&5
3224
 
sed 's/^/| /' conftest.$ac_ext >&5
3225
 
 
3226
3914
  # Passes both tests.
3227
3915
ac_preproc_ok=:
3228
3916
break
3232
3920
done
3233
3921
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3234
3922
rm -f conftest.err conftest.$ac_ext
3235
 
if $ac_preproc_ok; then
3236
 
  :
 
3923
if $ac_preproc_ok; then :
 
3924
 
3237
3925
else
3238
 
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3239
 
See \`config.log' for more details." >&5
3240
 
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3241
 
See \`config.log' for more details." >&2;}
3242
 
   { (exit 1); exit 1; }; }
 
3926
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3927
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3928
as_fn_error "C preprocessor \"$CPP\" fails sanity check
 
3929
See \`config.log' for more details." "$LINENO" 5; }
3243
3930
fi
3244
3931
 
3245
3932
ac_ext=c
3249
3936
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3250
3937
 
3251
3938
 
3252
 
echo "$as_me:$LINENO: checking for egrep" >&5
3253
 
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3254
 
if test "${ac_cv_prog_egrep+set}" = set; then
3255
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3256
 
else
3257
 
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3258
 
    then ac_cv_prog_egrep='grep -E'
3259
 
    else ac_cv_prog_egrep='egrep'
3260
 
    fi
3261
 
fi
3262
 
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3263
 
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3264
 
 EGREP=$ac_cv_prog_egrep
3265
 
 
3266
 
 
3267
 
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3268
 
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3269
 
if test "${ac_cv_header_stdc+set}" = set; then
3270
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3271
 
else
3272
 
  cat >conftest.$ac_ext <<_ACEOF
3273
 
/* confdefs.h.  */
3274
 
_ACEOF
3275
 
cat confdefs.h >>conftest.$ac_ext
3276
 
cat >>conftest.$ac_ext <<_ACEOF
 
3939
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
 
3940
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
 
3941
if test "${ac_cv_path_GREP+set}" = set; then :
 
3942
  $as_echo_n "(cached) " >&6
 
3943
else
 
3944
  if test -z "$GREP"; then
 
3945
  ac_path_GREP_found=false
 
3946
  # Loop through the user's path and test for each of PROGNAME-LIST
 
3947
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3948
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
3949
do
 
3950
  IFS=$as_save_IFS
 
3951
  test -z "$as_dir" && as_dir=.
 
3952
    for ac_prog in grep ggrep; do
 
3953
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3954
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
 
3955
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
 
3956
# Check for GNU ac_path_GREP and select it if it is found.
 
3957
  # Check for GNU $ac_path_GREP
 
3958
case `"$ac_path_GREP" --version 2>&1` in
 
3959
*GNU*)
 
3960
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
 
3961
*)
 
3962
  ac_count=0
 
3963
  $as_echo_n 0123456789 >"conftest.in"
 
3964
  while :
 
3965
  do
 
3966
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
3967
    mv "conftest.tmp" "conftest.in"
 
3968
    cp "conftest.in" "conftest.nl"
 
3969
    $as_echo 'GREP' >> "conftest.nl"
 
3970
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
3971
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
3972
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
3973
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
 
3974
      # Best one so far, save it but keep looking for a better one
 
3975
      ac_cv_path_GREP="$ac_path_GREP"
 
3976
      ac_path_GREP_max=$ac_count
 
3977
    fi
 
3978
    # 10*(2^10) chars as input seems more than enough
 
3979
    test $ac_count -gt 10 && break
 
3980
  done
 
3981
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
3982
esac
 
3983
 
 
3984
      $ac_path_GREP_found && break 3
 
3985
    done
 
3986
  done
 
3987
  done
 
3988
IFS=$as_save_IFS
 
3989
  if test -z "$ac_cv_path_GREP"; then
 
3990
    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
3991
  fi
 
3992
else
 
3993
  ac_cv_path_GREP=$GREP
 
3994
fi
 
3995
 
 
3996
fi
 
3997
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
 
3998
$as_echo "$ac_cv_path_GREP" >&6; }
 
3999
 GREP="$ac_cv_path_GREP"
 
4000
 
 
4001
 
 
4002
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
 
4003
$as_echo_n "checking for egrep... " >&6; }
 
4004
if test "${ac_cv_path_EGREP+set}" = set; then :
 
4005
  $as_echo_n "(cached) " >&6
 
4006
else
 
4007
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
 
4008
   then ac_cv_path_EGREP="$GREP -E"
 
4009
   else
 
4010
     if test -z "$EGREP"; then
 
4011
  ac_path_EGREP_found=false
 
4012
  # Loop through the user's path and test for each of PROGNAME-LIST
 
4013
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4014
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
4015
do
 
4016
  IFS=$as_save_IFS
 
4017
  test -z "$as_dir" && as_dir=.
 
4018
    for ac_prog in egrep; do
 
4019
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4020
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
 
4021
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
 
4022
# Check for GNU ac_path_EGREP and select it if it is found.
 
4023
  # Check for GNU $ac_path_EGREP
 
4024
case `"$ac_path_EGREP" --version 2>&1` in
 
4025
*GNU*)
 
4026
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
 
4027
*)
 
4028
  ac_count=0
 
4029
  $as_echo_n 0123456789 >"conftest.in"
 
4030
  while :
 
4031
  do
 
4032
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4033
    mv "conftest.tmp" "conftest.in"
 
4034
    cp "conftest.in" "conftest.nl"
 
4035
    $as_echo 'EGREP' >> "conftest.nl"
 
4036
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4037
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4038
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
4039
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
 
4040
      # Best one so far, save it but keep looking for a better one
 
4041
      ac_cv_path_EGREP="$ac_path_EGREP"
 
4042
      ac_path_EGREP_max=$ac_count
 
4043
    fi
 
4044
    # 10*(2^10) chars as input seems more than enough
 
4045
    test $ac_count -gt 10 && break
 
4046
  done
 
4047
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4048
esac
 
4049
 
 
4050
      $ac_path_EGREP_found && break 3
 
4051
    done
 
4052
  done
 
4053
  done
 
4054
IFS=$as_save_IFS
 
4055
  if test -z "$ac_cv_path_EGREP"; then
 
4056
    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
4057
  fi
 
4058
else
 
4059
  ac_cv_path_EGREP=$EGREP
 
4060
fi
 
4061
 
 
4062
   fi
 
4063
fi
 
4064
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
 
4065
$as_echo "$ac_cv_path_EGREP" >&6; }
 
4066
 EGREP="$ac_cv_path_EGREP"
 
4067
 
 
4068
 
 
4069
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
 
4070
$as_echo_n "checking for ANSI C header files... " >&6; }
 
4071
if test "${ac_cv_header_stdc+set}" = set; then :
 
4072
  $as_echo_n "(cached) " >&6
 
4073
else
 
4074
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3277
4075
/* end confdefs.h.  */
3278
4076
#include <stdlib.h>
3279
4077
#include <stdarg.h>
3288
4086
  return 0;
3289
4087
}
3290
4088
_ACEOF
3291
 
rm -f conftest.$ac_objext
3292
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3293
 
  (eval $ac_compile) 2>conftest.er1
3294
 
  ac_status=$?
3295
 
  grep -v '^ *+' conftest.er1 >conftest.err
3296
 
  rm -f conftest.er1
3297
 
  cat conftest.err >&5
3298
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3299
 
  (exit $ac_status); } &&
3300
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3301
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3302
 
  (eval $ac_try) 2>&5
3303
 
  ac_status=$?
3304
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3305
 
  (exit $ac_status); }; } &&
3306
 
         { ac_try='test -s conftest.$ac_objext'
3307
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3308
 
  (eval $ac_try) 2>&5
3309
 
  ac_status=$?
3310
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3311
 
  (exit $ac_status); }; }; then
 
4089
if ac_fn_c_try_compile "$LINENO"; then :
3312
4090
  ac_cv_header_stdc=yes
3313
4091
else
3314
 
  echo "$as_me: failed program was:" >&5
3315
 
sed 's/^/| /' conftest.$ac_ext >&5
3316
 
 
3317
 
ac_cv_header_stdc=no
 
4092
  ac_cv_header_stdc=no
3318
4093
fi
3319
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4094
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3320
4095
 
3321
4096
if test $ac_cv_header_stdc = yes; then
3322
4097
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3323
 
  cat >conftest.$ac_ext <<_ACEOF
3324
 
/* confdefs.h.  */
3325
 
_ACEOF
3326
 
cat confdefs.h >>conftest.$ac_ext
3327
 
cat >>conftest.$ac_ext <<_ACEOF
 
4098
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3328
4099
/* end confdefs.h.  */
3329
4100
#include <string.h>
3330
4101
 
3331
4102
_ACEOF
3332
4103
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3333
 
  $EGREP "memchr" >/dev/null 2>&1; then
3334
 
  :
 
4104
  $EGREP "memchr" >/dev/null 2>&1; then :
 
4105
 
3335
4106
else
3336
4107
  ac_cv_header_stdc=no
3337
4108
fi
3341
4112
 
3342
4113
if test $ac_cv_header_stdc = yes; then
3343
4114
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3344
 
  cat >conftest.$ac_ext <<_ACEOF
3345
 
/* confdefs.h.  */
3346
 
_ACEOF
3347
 
cat confdefs.h >>conftest.$ac_ext
3348
 
cat >>conftest.$ac_ext <<_ACEOF
 
4115
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3349
4116
/* end confdefs.h.  */
3350
4117
#include <stdlib.h>
3351
4118
 
3352
4119
_ACEOF
3353
4120
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3354
 
  $EGREP "free" >/dev/null 2>&1; then
3355
 
  :
 
4121
  $EGREP "free" >/dev/null 2>&1; then :
 
4122
 
3356
4123
else
3357
4124
  ac_cv_header_stdc=no
3358
4125
fi
3362
4129
 
3363
4130
if test $ac_cv_header_stdc = yes; then
3364
4131
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3365
 
  if test "$cross_compiling" = yes; then
 
4132
  if test "$cross_compiling" = yes; then :
3366
4133
  :
3367
4134
else
3368
 
  cat >conftest.$ac_ext <<_ACEOF
3369
 
/* confdefs.h.  */
3370
 
_ACEOF
3371
 
cat confdefs.h >>conftest.$ac_ext
3372
 
cat >>conftest.$ac_ext <<_ACEOF
 
4135
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3373
4136
/* end confdefs.h.  */
3374
4137
#include <ctype.h>
 
4138
#include <stdlib.h>
3375
4139
#if ((' ' & 0x0FF) == 0x020)
3376
4140
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3377
4141
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3391
4155
  for (i = 0; i < 256; i++)
3392
4156
    if (XOR (islower (i), ISLOWER (i))
3393
4157
        || toupper (i) != TOUPPER (i))
3394
 
      exit(2);
3395
 
  exit (0);
 
4158
      return 2;
 
4159
  return 0;
3396
4160
}
3397
4161
_ACEOF
3398
 
rm -f conftest$ac_exeext
3399
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3400
 
  (eval $ac_link) 2>&5
3401
 
  ac_status=$?
3402
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3403
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3404
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3405
 
  (eval $ac_try) 2>&5
3406
 
  ac_status=$?
3407
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3408
 
  (exit $ac_status); }; }; then
3409
 
  :
 
4162
if ac_fn_c_try_run "$LINENO"; then :
 
4163
 
3410
4164
else
3411
 
  echo "$as_me: program exited with status $ac_status" >&5
3412
 
echo "$as_me: failed program was:" >&5
3413
 
sed 's/^/| /' conftest.$ac_ext >&5
 
4165
  ac_cv_header_stdc=no
 
4166
fi
 
4167
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
4168
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
4169
fi
3414
4170
 
3415
 
( exit $ac_status )
3416
 
ac_cv_header_stdc=no
3417
 
fi
3418
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3419
 
fi
3420
 
fi
3421
 
fi
3422
 
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3423
 
echo "${ECHO_T}$ac_cv_header_stdc" >&6
 
4171
fi
 
4172
fi
 
4173
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
 
4174
$as_echo "$ac_cv_header_stdc" >&6; }
3424
4175
if test $ac_cv_header_stdc = yes; then
3425
4176
 
3426
 
cat >>confdefs.h <<\_ACEOF
3427
 
#define STDC_HEADERS 1
3428
 
_ACEOF
 
4177
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3429
4178
 
3430
4179
fi
3431
4180
 
3432
 
echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
3433
 
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
3434
 
if test "${ac_cv_header_time+set}" = set; then
3435
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4181
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
 
4182
$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
 
4183
if test "${ac_cv_header_time+set}" = set; then :
 
4184
  $as_echo_n "(cached) " >&6
3436
4185
else
3437
 
  cat >conftest.$ac_ext <<_ACEOF
3438
 
/* confdefs.h.  */
3439
 
_ACEOF
3440
 
cat confdefs.h >>conftest.$ac_ext
3441
 
cat >>conftest.$ac_ext <<_ACEOF
 
4186
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3442
4187
/* end confdefs.h.  */
3443
4188
#include <sys/types.h>
3444
4189
#include <sys/time.h>
3453
4198
  return 0;
3454
4199
}
3455
4200
_ACEOF
3456
 
rm -f conftest.$ac_objext
3457
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3458
 
  (eval $ac_compile) 2>conftest.er1
3459
 
  ac_status=$?
3460
 
  grep -v '^ *+' conftest.er1 >conftest.err
3461
 
  rm -f conftest.er1
3462
 
  cat conftest.err >&5
3463
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3464
 
  (exit $ac_status); } &&
3465
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3466
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3467
 
  (eval $ac_try) 2>&5
3468
 
  ac_status=$?
3469
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3470
 
  (exit $ac_status); }; } &&
3471
 
         { ac_try='test -s conftest.$ac_objext'
3472
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3473
 
  (eval $ac_try) 2>&5
3474
 
  ac_status=$?
3475
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3476
 
  (exit $ac_status); }; }; then
 
4201
if ac_fn_c_try_compile "$LINENO"; then :
3477
4202
  ac_cv_header_time=yes
3478
4203
else
3479
 
  echo "$as_me: failed program was:" >&5
3480
 
sed 's/^/| /' conftest.$ac_ext >&5
3481
 
 
3482
 
ac_cv_header_time=no
3483
 
fi
3484
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3485
 
fi
3486
 
echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
3487
 
echo "${ECHO_T}$ac_cv_header_time" >&6
 
4204
  ac_cv_header_time=no
 
4205
fi
 
4206
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4207
fi
 
4208
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
 
4209
$as_echo "$ac_cv_header_time" >&6; }
3488
4210
if test $ac_cv_header_time = yes; then
3489
4211
 
3490
 
cat >>confdefs.h <<\_ACEOF
3491
 
#define TIME_WITH_SYS_TIME 1
3492
 
_ACEOF
 
4212
$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
3493
4213
 
3494
4214
fi
3495
4215
 
3496
 
 
3497
 
 
3498
 
 
3499
 
 
3500
 
 
3501
4216
ac_header_dirent=no
3502
4217
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
3503
 
  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
3504
 
echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
3505
 
echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
3506
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3507
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4218
  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
 
4219
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
 
4220
$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
 
4221
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
 
4222
  $as_echo_n "(cached) " >&6
3508
4223
else
3509
 
  cat >conftest.$ac_ext <<_ACEOF
3510
 
/* confdefs.h.  */
3511
 
_ACEOF
3512
 
cat confdefs.h >>conftest.$ac_ext
3513
 
cat >>conftest.$ac_ext <<_ACEOF
 
4224
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3514
4225
/* end confdefs.h.  */
3515
4226
#include <sys/types.h>
3516
4227
#include <$ac_hdr>
3524
4235
  return 0;
3525
4236
}
3526
4237
_ACEOF
3527
 
rm -f conftest.$ac_objext
3528
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3529
 
  (eval $ac_compile) 2>conftest.er1
3530
 
  ac_status=$?
3531
 
  grep -v '^ *+' conftest.er1 >conftest.err
3532
 
  rm -f conftest.er1
3533
 
  cat conftest.err >&5
3534
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3535
 
  (exit $ac_status); } &&
3536
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3537
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3538
 
  (eval $ac_try) 2>&5
3539
 
  ac_status=$?
3540
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3541
 
  (exit $ac_status); }; } &&
3542
 
         { ac_try='test -s conftest.$ac_objext'
3543
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3544
 
  (eval $ac_try) 2>&5
3545
 
  ac_status=$?
3546
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3547
 
  (exit $ac_status); }; }; then
 
4238
if ac_fn_c_try_compile "$LINENO"; then :
3548
4239
  eval "$as_ac_Header=yes"
3549
4240
else
3550
 
  echo "$as_me: failed program was:" >&5
3551
 
sed 's/^/| /' conftest.$ac_ext >&5
3552
 
 
3553
 
eval "$as_ac_Header=no"
3554
 
fi
3555
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3556
 
fi
3557
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3558
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3559
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
4241
  eval "$as_ac_Header=no"
 
4242
fi
 
4243
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4244
fi
 
4245
eval ac_res=\$$as_ac_Header
 
4246
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
4247
$as_echo "$ac_res" >&6; }
 
4248
eval as_val=\$$as_ac_Header
 
4249
   if test "x$as_val" = x""yes; then :
3560
4250
  cat >>confdefs.h <<_ACEOF
3561
 
#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
 
4251
#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
3562
4252
_ACEOF
3563
4253
 
3564
4254
ac_header_dirent=$ac_hdr; break
3567
4257
done
3568
4258
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3569
4259
if test $ac_header_dirent = dirent.h; then
3570
 
  echo "$as_me:$LINENO: checking for library containing opendir" >&5
3571
 
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
3572
 
if test "${ac_cv_search_opendir+set}" = set; then
3573
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3574
 
else
3575
 
  ac_func_search_save_LIBS=$LIBS
3576
 
ac_cv_search_opendir=no
3577
 
cat >conftest.$ac_ext <<_ACEOF
3578
 
/* confdefs.h.  */
3579
 
_ACEOF
3580
 
cat confdefs.h >>conftest.$ac_ext
3581
 
cat >>conftest.$ac_ext <<_ACEOF
3582
 
/* end confdefs.h.  */
3583
 
 
3584
 
/* Override any gcc2 internal prototype to avoid an error.  */
3585
 
#ifdef __cplusplus
3586
 
extern "C"
3587
 
#endif
3588
 
/* We use char because int might match the return type of a gcc2
3589
 
   builtin and then its argument prototype would still apply.  */
3590
 
char opendir ();
3591
 
int
3592
 
main ()
3593
 
{
3594
 
opendir ();
3595
 
  ;
3596
 
  return 0;
3597
 
}
3598
 
_ACEOF
3599
 
rm -f conftest.$ac_objext conftest$ac_exeext
3600
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3601
 
  (eval $ac_link) 2>conftest.er1
3602
 
  ac_status=$?
3603
 
  grep -v '^ *+' conftest.er1 >conftest.err
3604
 
  rm -f conftest.er1
3605
 
  cat conftest.err >&5
3606
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3607
 
  (exit $ac_status); } &&
3608
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3609
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3610
 
  (eval $ac_try) 2>&5
3611
 
  ac_status=$?
3612
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3613
 
  (exit $ac_status); }; } &&
3614
 
         { ac_try='test -s conftest$ac_exeext'
3615
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3616
 
  (eval $ac_try) 2>&5
3617
 
  ac_status=$?
3618
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3619
 
  (exit $ac_status); }; }; then
3620
 
  ac_cv_search_opendir="none required"
3621
 
else
3622
 
  echo "$as_me: failed program was:" >&5
3623
 
sed 's/^/| /' conftest.$ac_ext >&5
3624
 
 
3625
 
fi
3626
 
rm -f conftest.err conftest.$ac_objext \
3627
 
      conftest$ac_exeext conftest.$ac_ext
3628
 
if test "$ac_cv_search_opendir" = no; then
3629
 
  for ac_lib in dir; do
3630
 
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3631
 
    cat >conftest.$ac_ext <<_ACEOF
3632
 
/* confdefs.h.  */
3633
 
_ACEOF
3634
 
cat confdefs.h >>conftest.$ac_ext
3635
 
cat >>conftest.$ac_ext <<_ACEOF
3636
 
/* end confdefs.h.  */
3637
 
 
3638
 
/* Override any gcc2 internal prototype to avoid an error.  */
3639
 
#ifdef __cplusplus
3640
 
extern "C"
3641
 
#endif
3642
 
/* We use char because int might match the return type of a gcc2
3643
 
   builtin and then its argument prototype would still apply.  */
3644
 
char opendir ();
3645
 
int
3646
 
main ()
3647
 
{
3648
 
opendir ();
3649
 
  ;
3650
 
  return 0;
3651
 
}
3652
 
_ACEOF
3653
 
rm -f conftest.$ac_objext conftest$ac_exeext
3654
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3655
 
  (eval $ac_link) 2>conftest.er1
3656
 
  ac_status=$?
3657
 
  grep -v '^ *+' conftest.er1 >conftest.err
3658
 
  rm -f conftest.er1
3659
 
  cat conftest.err >&5
3660
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3661
 
  (exit $ac_status); } &&
3662
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3663
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3664
 
  (eval $ac_try) 2>&5
3665
 
  ac_status=$?
3666
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3667
 
  (exit $ac_status); }; } &&
3668
 
         { ac_try='test -s conftest$ac_exeext'
3669
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3670
 
  (eval $ac_try) 2>&5
3671
 
  ac_status=$?
3672
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3673
 
  (exit $ac_status); }; }; then
3674
 
  ac_cv_search_opendir="-l$ac_lib"
3675
 
break
3676
 
else
3677
 
  echo "$as_me: failed program was:" >&5
3678
 
sed 's/^/| /' conftest.$ac_ext >&5
3679
 
 
3680
 
fi
3681
 
rm -f conftest.err conftest.$ac_objext \
3682
 
      conftest$ac_exeext conftest.$ac_ext
3683
 
  done
3684
 
fi
3685
 
LIBS=$ac_func_search_save_LIBS
3686
 
fi
3687
 
echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3688
 
echo "${ECHO_T}$ac_cv_search_opendir" >&6
3689
 
if test "$ac_cv_search_opendir" != no; then
3690
 
  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
3691
 
 
3692
 
fi
3693
 
 
3694
 
else
3695
 
  echo "$as_me:$LINENO: checking for library containing opendir" >&5
3696
 
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
3697
 
if test "${ac_cv_search_opendir+set}" = set; then
3698
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3699
 
else
3700
 
  ac_func_search_save_LIBS=$LIBS
3701
 
ac_cv_search_opendir=no
3702
 
cat >conftest.$ac_ext <<_ACEOF
3703
 
/* confdefs.h.  */
3704
 
_ACEOF
3705
 
cat confdefs.h >>conftest.$ac_ext
3706
 
cat >>conftest.$ac_ext <<_ACEOF
3707
 
/* end confdefs.h.  */
3708
 
 
3709
 
/* Override any gcc2 internal prototype to avoid an error.  */
3710
 
#ifdef __cplusplus
3711
 
extern "C"
3712
 
#endif
3713
 
/* We use char because int might match the return type of a gcc2
3714
 
   builtin and then its argument prototype would still apply.  */
3715
 
char opendir ();
3716
 
int
3717
 
main ()
3718
 
{
3719
 
opendir ();
3720
 
  ;
3721
 
  return 0;
3722
 
}
3723
 
_ACEOF
3724
 
rm -f conftest.$ac_objext conftest$ac_exeext
3725
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3726
 
  (eval $ac_link) 2>conftest.er1
3727
 
  ac_status=$?
3728
 
  grep -v '^ *+' conftest.er1 >conftest.err
3729
 
  rm -f conftest.er1
3730
 
  cat conftest.err >&5
3731
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3732
 
  (exit $ac_status); } &&
3733
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3734
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3735
 
  (eval $ac_try) 2>&5
3736
 
  ac_status=$?
3737
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3738
 
  (exit $ac_status); }; } &&
3739
 
         { ac_try='test -s conftest$ac_exeext'
3740
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3741
 
  (eval $ac_try) 2>&5
3742
 
  ac_status=$?
3743
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3744
 
  (exit $ac_status); }; }; then
3745
 
  ac_cv_search_opendir="none required"
3746
 
else
3747
 
  echo "$as_me: failed program was:" >&5
3748
 
sed 's/^/| /' conftest.$ac_ext >&5
3749
 
 
3750
 
fi
3751
 
rm -f conftest.err conftest.$ac_objext \
3752
 
      conftest$ac_exeext conftest.$ac_ext
3753
 
if test "$ac_cv_search_opendir" = no; then
3754
 
  for ac_lib in x; do
3755
 
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3756
 
    cat >conftest.$ac_ext <<_ACEOF
3757
 
/* confdefs.h.  */
3758
 
_ACEOF
3759
 
cat confdefs.h >>conftest.$ac_ext
3760
 
cat >>conftest.$ac_ext <<_ACEOF
3761
 
/* end confdefs.h.  */
3762
 
 
3763
 
/* Override any gcc2 internal prototype to avoid an error.  */
3764
 
#ifdef __cplusplus
3765
 
extern "C"
3766
 
#endif
3767
 
/* We use char because int might match the return type of a gcc2
3768
 
   builtin and then its argument prototype would still apply.  */
3769
 
char opendir ();
3770
 
int
3771
 
main ()
3772
 
{
3773
 
opendir ();
3774
 
  ;
3775
 
  return 0;
3776
 
}
3777
 
_ACEOF
3778
 
rm -f conftest.$ac_objext conftest$ac_exeext
3779
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3780
 
  (eval $ac_link) 2>conftest.er1
3781
 
  ac_status=$?
3782
 
  grep -v '^ *+' conftest.er1 >conftest.err
3783
 
  rm -f conftest.er1
3784
 
  cat conftest.err >&5
3785
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3786
 
  (exit $ac_status); } &&
3787
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3788
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3789
 
  (eval $ac_try) 2>&5
3790
 
  ac_status=$?
3791
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3792
 
  (exit $ac_status); }; } &&
3793
 
         { ac_try='test -s conftest$ac_exeext'
3794
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3795
 
  (eval $ac_try) 2>&5
3796
 
  ac_status=$?
3797
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3798
 
  (exit $ac_status); }; }; then
3799
 
  ac_cv_search_opendir="-l$ac_lib"
3800
 
break
3801
 
else
3802
 
  echo "$as_me: failed program was:" >&5
3803
 
sed 's/^/| /' conftest.$ac_ext >&5
3804
 
 
3805
 
fi
3806
 
rm -f conftest.err conftest.$ac_objext \
3807
 
      conftest$ac_exeext conftest.$ac_ext
3808
 
  done
3809
 
fi
3810
 
LIBS=$ac_func_search_save_LIBS
3811
 
fi
3812
 
echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3813
 
echo "${ECHO_T}$ac_cv_search_opendir" >&6
3814
 
if test "$ac_cv_search_opendir" != no; then
3815
 
  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
 
4260
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
 
4261
$as_echo_n "checking for library containing opendir... " >&6; }
 
4262
if test "${ac_cv_search_opendir+set}" = set; then :
 
4263
  $as_echo_n "(cached) " >&6
 
4264
else
 
4265
  ac_func_search_save_LIBS=$LIBS
 
4266
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4267
/* end confdefs.h.  */
 
4268
 
 
4269
/* Override any GCC internal prototype to avoid an error.
 
4270
   Use char because int might match the return type of a GCC
 
4271
   builtin and then its argument prototype would still apply.  */
 
4272
#ifdef __cplusplus
 
4273
extern "C"
 
4274
#endif
 
4275
char opendir ();
 
4276
int
 
4277
main ()
 
4278
{
 
4279
return opendir ();
 
4280
  ;
 
4281
  return 0;
 
4282
}
 
4283
_ACEOF
 
4284
for ac_lib in '' dir; do
 
4285
  if test -z "$ac_lib"; then
 
4286
    ac_res="none required"
 
4287
  else
 
4288
    ac_res=-l$ac_lib
 
4289
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
4290
  fi
 
4291
  if ac_fn_c_try_link "$LINENO"; then :
 
4292
  ac_cv_search_opendir=$ac_res
 
4293
fi
 
4294
rm -f core conftest.err conftest.$ac_objext \
 
4295
    conftest$ac_exeext
 
4296
  if test "${ac_cv_search_opendir+set}" = set; then :
 
4297
  break
 
4298
fi
 
4299
done
 
4300
if test "${ac_cv_search_opendir+set}" = set; then :
 
4301
 
 
4302
else
 
4303
  ac_cv_search_opendir=no
 
4304
fi
 
4305
rm conftest.$ac_ext
 
4306
LIBS=$ac_func_search_save_LIBS
 
4307
fi
 
4308
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
 
4309
$as_echo "$ac_cv_search_opendir" >&6; }
 
4310
ac_res=$ac_cv_search_opendir
 
4311
if test "$ac_res" != no; then :
 
4312
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
4313
 
 
4314
fi
 
4315
 
 
4316
else
 
4317
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
 
4318
$as_echo_n "checking for library containing opendir... " >&6; }
 
4319
if test "${ac_cv_search_opendir+set}" = set; then :
 
4320
  $as_echo_n "(cached) " >&6
 
4321
else
 
4322
  ac_func_search_save_LIBS=$LIBS
 
4323
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4324
/* end confdefs.h.  */
 
4325
 
 
4326
/* Override any GCC internal prototype to avoid an error.
 
4327
   Use char because int might match the return type of a GCC
 
4328
   builtin and then its argument prototype would still apply.  */
 
4329
#ifdef __cplusplus
 
4330
extern "C"
 
4331
#endif
 
4332
char opendir ();
 
4333
int
 
4334
main ()
 
4335
{
 
4336
return opendir ();
 
4337
  ;
 
4338
  return 0;
 
4339
}
 
4340
_ACEOF
 
4341
for ac_lib in '' x; do
 
4342
  if test -z "$ac_lib"; then
 
4343
    ac_res="none required"
 
4344
  else
 
4345
    ac_res=-l$ac_lib
 
4346
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
4347
  fi
 
4348
  if ac_fn_c_try_link "$LINENO"; then :
 
4349
  ac_cv_search_opendir=$ac_res
 
4350
fi
 
4351
rm -f core conftest.err conftest.$ac_objext \
 
4352
    conftest$ac_exeext
 
4353
  if test "${ac_cv_search_opendir+set}" = set; then :
 
4354
  break
 
4355
fi
 
4356
done
 
4357
if test "${ac_cv_search_opendir+set}" = set; then :
 
4358
 
 
4359
else
 
4360
  ac_cv_search_opendir=no
 
4361
fi
 
4362
rm conftest.$ac_ext
 
4363
LIBS=$ac_func_search_save_LIBS
 
4364
fi
 
4365
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
 
4366
$as_echo "$ac_cv_search_opendir" >&6; }
 
4367
ac_res=$ac_cv_search_opendir
 
4368
if test "$ac_res" != no; then :
 
4369
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3816
4370
 
3817
4371
fi
3818
4372
 
3819
4373
fi
3820
4374
 
3821
4375
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3822
 
 
3823
 
 
3824
 
 
3825
 
 
3826
 
 
3827
 
 
3828
 
 
3829
 
 
3830
 
 
3831
4376
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3832
4377
                  inttypes.h stdint.h unistd.h
3833
 
do
3834
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3835
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
3836
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3837
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3838
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3839
 
else
3840
 
  cat >conftest.$ac_ext <<_ACEOF
3841
 
/* confdefs.h.  */
3842
 
_ACEOF
3843
 
cat confdefs.h >>conftest.$ac_ext
3844
 
cat >>conftest.$ac_ext <<_ACEOF
3845
 
/* end confdefs.h.  */
3846
 
$ac_includes_default
3847
 
 
3848
 
#include <$ac_header>
3849
 
_ACEOF
3850
 
rm -f conftest.$ac_objext
3851
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3852
 
  (eval $ac_compile) 2>conftest.er1
3853
 
  ac_status=$?
3854
 
  grep -v '^ *+' conftest.er1 >conftest.err
3855
 
  rm -f conftest.er1
3856
 
  cat conftest.err >&5
3857
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3858
 
  (exit $ac_status); } &&
3859
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3860
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3861
 
  (eval $ac_try) 2>&5
3862
 
  ac_status=$?
3863
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3864
 
  (exit $ac_status); }; } &&
3865
 
         { ac_try='test -s conftest.$ac_objext'
3866
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3867
 
  (eval $ac_try) 2>&5
3868
 
  ac_status=$?
3869
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3870
 
  (exit $ac_status); }; }; then
3871
 
  eval "$as_ac_Header=yes"
3872
 
else
3873
 
  echo "$as_me: failed program was:" >&5
3874
 
sed 's/^/| /' conftest.$ac_ext >&5
3875
 
 
3876
 
eval "$as_ac_Header=no"
3877
 
fi
3878
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3879
 
fi
3880
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3881
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3882
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
4378
do :
 
4379
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
4380
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
 
4381
"
 
4382
eval as_val=\$$as_ac_Header
 
4383
   if test "x$as_val" = x""yes; then :
3883
4384
  cat >>confdefs.h <<_ACEOF
3884
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
4385
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3885
4386
_ACEOF
3886
4387
 
3887
4388
fi
3889
4390
done
3890
4391
 
3891
4392
 
3892
 
 
3893
 
 
3894
 
 
3895
 
 
3896
 
 
3897
 
 
3898
 
 
3899
 
 
3900
 
 
3901
 
 
3902
 
 
3903
 
 
3904
 
 
3905
 
 
3906
 
 
3907
 
 
3908
4393
for ac_header in ctype.h errno.h fnmatch.h libintl.h limits.h stdlib.h \
3909
4394
        string.h strings.h utime.h stdarg.h sys/stat.h sys/time.h sys/types.h \
3910
4395
        getopt.h wchar.h wctype.h
3911
 
do
3912
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3913
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3914
 
  echo "$as_me:$LINENO: checking for $ac_header" >&5
3915
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3916
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3917
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3918
 
fi
3919
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3920
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3921
 
else
3922
 
  # Is the header compilable?
3923
 
echo "$as_me:$LINENO: checking $ac_header usability" >&5
3924
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3925
 
cat >conftest.$ac_ext <<_ACEOF
3926
 
/* confdefs.h.  */
3927
 
_ACEOF
3928
 
cat confdefs.h >>conftest.$ac_ext
3929
 
cat >>conftest.$ac_ext <<_ACEOF
3930
 
/* end confdefs.h.  */
3931
 
$ac_includes_default
3932
 
#include <$ac_header>
3933
 
_ACEOF
3934
 
rm -f conftest.$ac_objext
3935
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3936
 
  (eval $ac_compile) 2>conftest.er1
3937
 
  ac_status=$?
3938
 
  grep -v '^ *+' conftest.er1 >conftest.err
3939
 
  rm -f conftest.er1
3940
 
  cat conftest.err >&5
3941
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3942
 
  (exit $ac_status); } &&
3943
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3944
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3945
 
  (eval $ac_try) 2>&5
3946
 
  ac_status=$?
3947
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3948
 
  (exit $ac_status); }; } &&
3949
 
         { ac_try='test -s conftest.$ac_objext'
3950
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3951
 
  (eval $ac_try) 2>&5
3952
 
  ac_status=$?
3953
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3954
 
  (exit $ac_status); }; }; then
3955
 
  ac_header_compiler=yes
3956
 
else
3957
 
  echo "$as_me: failed program was:" >&5
3958
 
sed 's/^/| /' conftest.$ac_ext >&5
3959
 
 
3960
 
ac_header_compiler=no
3961
 
fi
3962
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3963
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3964
 
echo "${ECHO_T}$ac_header_compiler" >&6
3965
 
 
3966
 
# Is the header present?
3967
 
echo "$as_me:$LINENO: checking $ac_header presence" >&5
3968
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3969
 
cat >conftest.$ac_ext <<_ACEOF
3970
 
/* confdefs.h.  */
3971
 
_ACEOF
3972
 
cat confdefs.h >>conftest.$ac_ext
3973
 
cat >>conftest.$ac_ext <<_ACEOF
3974
 
/* end confdefs.h.  */
3975
 
#include <$ac_header>
3976
 
_ACEOF
3977
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3978
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3979
 
  ac_status=$?
3980
 
  grep -v '^ *+' conftest.er1 >conftest.err
3981
 
  rm -f conftest.er1
3982
 
  cat conftest.err >&5
3983
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3984
 
  (exit $ac_status); } >/dev/null; then
3985
 
  if test -s conftest.err; then
3986
 
    ac_cpp_err=$ac_c_preproc_warn_flag
3987
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3988
 
  else
3989
 
    ac_cpp_err=
3990
 
  fi
3991
 
else
3992
 
  ac_cpp_err=yes
3993
 
fi
3994
 
if test -z "$ac_cpp_err"; then
3995
 
  ac_header_preproc=yes
3996
 
else
3997
 
  echo "$as_me: failed program was:" >&5
3998
 
sed 's/^/| /' conftest.$ac_ext >&5
3999
 
 
4000
 
  ac_header_preproc=no
4001
 
fi
4002
 
rm -f conftest.err conftest.$ac_ext
4003
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4004
 
echo "${ECHO_T}$ac_header_preproc" >&6
4005
 
 
4006
 
# So?  What about this header?
4007
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4008
 
  yes:no: )
4009
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4010
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4011
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4012
 
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4013
 
    ac_header_preproc=yes
4014
 
    ;;
4015
 
  no:yes:* )
4016
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4017
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4018
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4019
 
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4020
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4021
 
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4022
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4023
 
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4024
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4025
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4026
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4027
 
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4028
 
    (
4029
 
      cat <<\_ASBOX
4030
 
## --------------------------- ##
4031
 
## Report this to kyzer@4u.net ##
4032
 
## --------------------------- ##
4033
 
_ASBOX
4034
 
    ) |
4035
 
      sed "s/^/$as_me: WARNING:     /" >&2
4036
 
    ;;
4037
 
esac
4038
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
4039
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4040
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4041
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4042
 
else
4043
 
  eval "$as_ac_Header=\$ac_header_preproc"
4044
 
fi
4045
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4046
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4047
 
 
4048
 
fi
4049
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
4396
do :
 
4397
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
4398
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
 
4399
eval as_val=\$$as_ac_Header
 
4400
   if test "x$as_val" = x""yes; then :
4050
4401
  cat >>confdefs.h <<_ACEOF
4051
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
4402
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4052
4403
_ACEOF
4053
4404
 
4054
4405
fi
4057
4408
 
4058
4409
 
4059
4410
# Checks for typedefs, structures, and compiler characteristics.
4060
 
echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4061
 
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4062
 
if test "${ac_cv_c_const+set}" = set; then
4063
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4411
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
 
4412
$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
 
4413
if test "${ac_cv_c_const+set}" = set; then :
 
4414
  $as_echo_n "(cached) " >&6
4064
4415
else
4065
 
  cat >conftest.$ac_ext <<_ACEOF
4066
 
/* confdefs.h.  */
4067
 
_ACEOF
4068
 
cat confdefs.h >>conftest.$ac_ext
4069
 
cat >>conftest.$ac_ext <<_ACEOF
 
4416
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4070
4417
/* end confdefs.h.  */
4071
4418
 
4072
4419
int
4076
4423
#ifndef __cplusplus
4077
4424
  /* Ultrix mips cc rejects this.  */
4078
4425
  typedef int charset[2];
4079
 
  const charset x;
 
4426
  const charset cs;
4080
4427
  /* SunOS 4.1.1 cc rejects this.  */
4081
 
  char const *const *ccp;
4082
 
  char **p;
 
4428
  char const *const *pcpcc;
 
4429
  char **ppc;
4083
4430
  /* NEC SVR4.0.2 mips cc rejects this.  */
4084
4431
  struct point {int x, y;};
4085
4432
  static struct point const zero = {0,0};
4088
4435
     an arm of an if-expression whose if-part is not a constant
4089
4436
     expression */
4090
4437
  const char *g = "string";
4091
 
  ccp = &g + (g ? g-g : 0);
 
4438
  pcpcc = &g + (g ? g-g : 0);
4092
4439
  /* HPUX 7.0 cc rejects these. */
4093
 
  ++ccp;
4094
 
  p = (char**) ccp;
4095
 
  ccp = (char const *const *) p;
 
4440
  ++pcpcc;
 
4441
  ppc = (char**) pcpcc;
 
4442
  pcpcc = (char const *const *) ppc;
4096
4443
  { /* SCO 3.2v4 cc rejects this.  */
4097
4444
    char *t;
4098
4445
    char const *s = 0 ? (char *) 0 : (char const *) 0;
4099
4446
 
4100
4447
    *t++ = 0;
 
4448
    if (s) return 0;
4101
4449
  }
4102
4450
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
4103
4451
    int x[] = {25, 17};
4116
4464
  }
4117
4465
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4118
4466
    const int foo = 10;
 
4467
    if (!foo) return 0;
4119
4468
  }
 
4469
  return !cs[0] && !zero.x;
4120
4470
#endif
4121
4471
 
4122
4472
  ;
4123
4473
  return 0;
4124
4474
}
4125
4475
_ACEOF
4126
 
rm -f conftest.$ac_objext
4127
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4128
 
  (eval $ac_compile) 2>conftest.er1
4129
 
  ac_status=$?
4130
 
  grep -v '^ *+' conftest.er1 >conftest.err
4131
 
  rm -f conftest.er1
4132
 
  cat conftest.err >&5
4133
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4134
 
  (exit $ac_status); } &&
4135
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4136
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4137
 
  (eval $ac_try) 2>&5
4138
 
  ac_status=$?
4139
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4140
 
  (exit $ac_status); }; } &&
4141
 
         { ac_try='test -s conftest.$ac_objext'
4142
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4143
 
  (eval $ac_try) 2>&5
4144
 
  ac_status=$?
4145
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4146
 
  (exit $ac_status); }; }; then
 
4476
if ac_fn_c_try_compile "$LINENO"; then :
4147
4477
  ac_cv_c_const=yes
4148
4478
else
4149
 
  echo "$as_me: failed program was:" >&5
4150
 
sed 's/^/| /' conftest.$ac_ext >&5
4151
 
 
4152
 
ac_cv_c_const=no
4153
 
fi
4154
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4155
 
fi
4156
 
echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4157
 
echo "${ECHO_T}$ac_cv_c_const" >&6
 
4479
  ac_cv_c_const=no
 
4480
fi
 
4481
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4482
fi
 
4483
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
 
4484
$as_echo "$ac_cv_c_const" >&6; }
4158
4485
if test $ac_cv_c_const = no; then
4159
4486
 
4160
 
cat >>confdefs.h <<\_ACEOF
4161
 
#define const
4162
 
_ACEOF
 
4487
$as_echo "#define const /**/" >>confdefs.h
4163
4488
 
4164
4489
fi
4165
4490
 
4166
 
echo "$as_me:$LINENO: checking for inline" >&5
4167
 
echo $ECHO_N "checking for inline... $ECHO_C" >&6
4168
 
if test "${ac_cv_c_inline+set}" = set; then
4169
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4491
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
 
4492
$as_echo_n "checking for inline... " >&6; }
 
4493
if test "${ac_cv_c_inline+set}" = set; then :
 
4494
  $as_echo_n "(cached) " >&6
4170
4495
else
4171
4496
  ac_cv_c_inline=no
4172
4497
for ac_kw in inline __inline__ __inline; do
4173
 
  cat >conftest.$ac_ext <<_ACEOF
4174
 
/* confdefs.h.  */
4175
 
_ACEOF
4176
 
cat confdefs.h >>conftest.$ac_ext
4177
 
cat >>conftest.$ac_ext <<_ACEOF
 
4498
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4178
4499
/* end confdefs.h.  */
4179
4500
#ifndef __cplusplus
4180
4501
typedef int foo_t;
4183
4504
#endif
4184
4505
 
4185
4506
_ACEOF
4186
 
rm -f conftest.$ac_objext
4187
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4188
 
  (eval $ac_compile) 2>conftest.er1
4189
 
  ac_status=$?
4190
 
  grep -v '^ *+' conftest.er1 >conftest.err
4191
 
  rm -f conftest.er1
4192
 
  cat conftest.err >&5
4193
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4194
 
  (exit $ac_status); } &&
4195
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4196
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4197
 
  (eval $ac_try) 2>&5
4198
 
  ac_status=$?
4199
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4200
 
  (exit $ac_status); }; } &&
4201
 
         { ac_try='test -s conftest.$ac_objext'
4202
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4203
 
  (eval $ac_try) 2>&5
4204
 
  ac_status=$?
4205
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4206
 
  (exit $ac_status); }; }; then
4207
 
  ac_cv_c_inline=$ac_kw; break
4208
 
else
4209
 
  echo "$as_me: failed program was:" >&5
4210
 
sed 's/^/| /' conftest.$ac_ext >&5
4211
 
 
 
4507
if ac_fn_c_try_compile "$LINENO"; then :
 
4508
  ac_cv_c_inline=$ac_kw
4212
4509
fi
4213
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4510
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4511
  test "$ac_cv_c_inline" != no && break
4214
4512
done
4215
4513
 
4216
4514
fi
4217
 
echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4218
 
echo "${ECHO_T}$ac_cv_c_inline" >&6
4219
 
 
 
4515
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
 
4516
$as_echo "$ac_cv_c_inline" >&6; }
4220
4517
 
4221
4518
case $ac_cv_c_inline in
4222
4519
  inline | yes) ;;
4233
4530
    ;;
4234
4531
esac
4235
4532
 
4236
 
echo "$as_me:$LINENO: checking for mode_t" >&5
4237
 
echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
4238
 
if test "${ac_cv_type_mode_t+set}" = set; then
4239
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4240
 
else
4241
 
  cat >conftest.$ac_ext <<_ACEOF
4242
 
/* confdefs.h.  */
4243
 
_ACEOF
4244
 
cat confdefs.h >>conftest.$ac_ext
4245
 
cat >>conftest.$ac_ext <<_ACEOF
4246
 
/* end confdefs.h.  */
4247
 
$ac_includes_default
4248
 
int
4249
 
main ()
4250
 
{
4251
 
if ((mode_t *) 0)
4252
 
  return 0;
4253
 
if (sizeof (mode_t))
4254
 
  return 0;
4255
 
  ;
4256
 
  return 0;
4257
 
}
4258
 
_ACEOF
4259
 
rm -f conftest.$ac_objext
4260
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4261
 
  (eval $ac_compile) 2>conftest.er1
4262
 
  ac_status=$?
4263
 
  grep -v '^ *+' conftest.er1 >conftest.err
4264
 
  rm -f conftest.er1
4265
 
  cat conftest.err >&5
4266
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4267
 
  (exit $ac_status); } &&
4268
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4269
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4270
 
  (eval $ac_try) 2>&5
4271
 
  ac_status=$?
4272
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4273
 
  (exit $ac_status); }; } &&
4274
 
         { ac_try='test -s conftest.$ac_objext'
4275
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4276
 
  (eval $ac_try) 2>&5
4277
 
  ac_status=$?
4278
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4279
 
  (exit $ac_status); }; }; then
4280
 
  ac_cv_type_mode_t=yes
4281
 
else
4282
 
  echo "$as_me: failed program was:" >&5
4283
 
sed 's/^/| /' conftest.$ac_ext >&5
 
4533
ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
 
4534
if test "x$ac_cv_type_mode_t" = x""yes; then :
4284
4535
 
4285
 
ac_cv_type_mode_t=no
4286
 
fi
4287
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4288
 
fi
4289
 
echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
4290
 
echo "${ECHO_T}$ac_cv_type_mode_t" >&6
4291
 
if test $ac_cv_type_mode_t = yes; then
4292
 
  :
4293
4536
else
4294
4537
 
4295
4538
cat >>confdefs.h <<_ACEOF
4298
4541
 
4299
4542
fi
4300
4543
 
4301
 
echo "$as_me:$LINENO: checking for off_t" >&5
4302
 
echo $ECHO_N "checking for off_t... $ECHO_C" >&6
4303
 
if test "${ac_cv_type_off_t+set}" = set; then
4304
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4305
 
else
4306
 
  cat >conftest.$ac_ext <<_ACEOF
4307
 
/* confdefs.h.  */
4308
 
_ACEOF
4309
 
cat confdefs.h >>conftest.$ac_ext
4310
 
cat >>conftest.$ac_ext <<_ACEOF
4311
 
/* end confdefs.h.  */
4312
 
$ac_includes_default
4313
 
int
4314
 
main ()
4315
 
{
4316
 
if ((off_t *) 0)
4317
 
  return 0;
4318
 
if (sizeof (off_t))
4319
 
  return 0;
4320
 
  ;
4321
 
  return 0;
4322
 
}
4323
 
_ACEOF
4324
 
rm -f conftest.$ac_objext
4325
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4326
 
  (eval $ac_compile) 2>conftest.er1
4327
 
  ac_status=$?
4328
 
  grep -v '^ *+' conftest.er1 >conftest.err
4329
 
  rm -f conftest.er1
4330
 
  cat conftest.err >&5
4331
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4332
 
  (exit $ac_status); } &&
4333
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4334
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4335
 
  (eval $ac_try) 2>&5
4336
 
  ac_status=$?
4337
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4338
 
  (exit $ac_status); }; } &&
4339
 
         { ac_try='test -s conftest.$ac_objext'
4340
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4341
 
  (eval $ac_try) 2>&5
4342
 
  ac_status=$?
4343
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4344
 
  (exit $ac_status); }; }; then
4345
 
  ac_cv_type_off_t=yes
4346
 
else
4347
 
  echo "$as_me: failed program was:" >&5
4348
 
sed 's/^/| /' conftest.$ac_ext >&5
4349
 
 
4350
 
ac_cv_type_off_t=no
4351
 
fi
4352
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4353
 
fi
4354
 
echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
4355
 
echo "${ECHO_T}$ac_cv_type_off_t" >&6
4356
 
if test $ac_cv_type_off_t = yes; then
4357
 
  :
4358
 
else
4359
 
 
4360
 
cat >>confdefs.h <<_ACEOF
4361
 
#define off_t long
4362
 
_ACEOF
4363
 
 
4364
 
fi
4365
 
 
4366
 
echo "$as_me:$LINENO: checking for size_t" >&5
4367
 
echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4368
 
if test "${ac_cv_type_size_t+set}" = set; then
4369
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4370
 
else
4371
 
  cat >conftest.$ac_ext <<_ACEOF
4372
 
/* confdefs.h.  */
4373
 
_ACEOF
4374
 
cat confdefs.h >>conftest.$ac_ext
4375
 
cat >>conftest.$ac_ext <<_ACEOF
4376
 
/* end confdefs.h.  */
4377
 
$ac_includes_default
4378
 
int
4379
 
main ()
4380
 
{
4381
 
if ((size_t *) 0)
4382
 
  return 0;
4383
 
if (sizeof (size_t))
4384
 
  return 0;
4385
 
  ;
4386
 
  return 0;
4387
 
}
4388
 
_ACEOF
4389
 
rm -f conftest.$ac_objext
4390
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4391
 
  (eval $ac_compile) 2>conftest.er1
4392
 
  ac_status=$?
4393
 
  grep -v '^ *+' conftest.er1 >conftest.err
4394
 
  rm -f conftest.er1
4395
 
  cat conftest.err >&5
4396
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4397
 
  (exit $ac_status); } &&
4398
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4399
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4400
 
  (eval $ac_try) 2>&5
4401
 
  ac_status=$?
4402
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4403
 
  (exit $ac_status); }; } &&
4404
 
         { ac_try='test -s conftest.$ac_objext'
4405
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4406
 
  (eval $ac_try) 2>&5
4407
 
  ac_status=$?
4408
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4409
 
  (exit $ac_status); }; }; then
4410
 
  ac_cv_type_size_t=yes
4411
 
else
4412
 
  echo "$as_me: failed program was:" >&5
4413
 
sed 's/^/| /' conftest.$ac_ext >&5
4414
 
 
4415
 
ac_cv_type_size_t=no
4416
 
fi
4417
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4418
 
fi
4419
 
echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4420
 
echo "${ECHO_T}$ac_cv_type_size_t" >&6
4421
 
if test $ac_cv_type_size_t = yes; then
4422
 
  :
4423
 
else
4424
 
 
4425
 
cat >>confdefs.h <<_ACEOF
4426
 
#define size_t unsigned
4427
 
_ACEOF
4428
 
 
4429
 
fi
4430
 
 
4431
 
# Check whether --enable-largefile or --disable-largefile was given.
4432
 
if test "${enable_largefile+set}" = set; then
4433
 
  enableval="$enable_largefile"
4434
 
 
4435
 
fi;
 
4544
ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
 
4545
if test "x$ac_cv_type_off_t" = x""yes; then :
 
4546
 
 
4547
else
 
4548
 
 
4549
cat >>confdefs.h <<_ACEOF
 
4550
#define off_t long int
 
4551
_ACEOF
 
4552
 
 
4553
fi
 
4554
 
 
4555
ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
 
4556
if test "x$ac_cv_type_size_t" = x""yes; then :
 
4557
 
 
4558
else
 
4559
 
 
4560
cat >>confdefs.h <<_ACEOF
 
4561
#define size_t unsigned int
 
4562
_ACEOF
 
4563
 
 
4564
fi
 
4565
 
 
4566
# Check whether --enable-largefile was given.
 
4567
if test "${enable_largefile+set}" = set; then :
 
4568
  enableval=$enable_largefile;
 
4569
fi
 
4570
 
4436
4571
if test "$enable_largefile" != no; then
4437
4572
 
4438
 
  echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4439
 
echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4440
 
if test "${ac_cv_sys_largefile_CC+set}" = set; then
4441
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4573
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
 
4574
$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
 
4575
if test "${ac_cv_sys_largefile_CC+set}" = set; then :
 
4576
  $as_echo_n "(cached) " >&6
4442
4577
else
4443
4578
  ac_cv_sys_largefile_CC=no
4444
4579
     if test "$GCC" != yes; then
4445
4580
       ac_save_CC=$CC
4446
4581
       while :; do
4447
 
         # IRIX 6.2 and later do not support large files by default,
4448
 
         # so use the C compiler's -n32 option if that helps.
4449
 
         cat >conftest.$ac_ext <<_ACEOF
4450
 
/* confdefs.h.  */
4451
 
_ACEOF
4452
 
cat confdefs.h >>conftest.$ac_ext
4453
 
cat >>conftest.$ac_ext <<_ACEOF
 
4582
         # IRIX 6.2 and later do not support large files by default,
 
4583
         # so use the C compiler's -n32 option if that helps.
 
4584
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4454
4585
/* end confdefs.h.  */
4455
4586
#include <sys/types.h>
4456
4587
 /* Check that off_t can represent 2**63 - 1 correctly.
4469
4600
  return 0;
4470
4601
}
4471
4602
_ACEOF
4472
 
         rm -f conftest.$ac_objext
4473
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4474
 
  (eval $ac_compile) 2>conftest.er1
4475
 
  ac_status=$?
4476
 
  grep -v '^ *+' conftest.er1 >conftest.err
4477
 
  rm -f conftest.er1
4478
 
  cat conftest.err >&5
4479
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4480
 
  (exit $ac_status); } &&
4481
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4482
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4483
 
  (eval $ac_try) 2>&5
4484
 
  ac_status=$?
4485
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4486
 
  (exit $ac_status); }; } &&
4487
 
         { ac_try='test -s conftest.$ac_objext'
4488
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4489
 
  (eval $ac_try) 2>&5
4490
 
  ac_status=$?
4491
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4492
 
  (exit $ac_status); }; }; then
 
4603
         if ac_fn_c_try_compile "$LINENO"; then :
4493
4604
  break
4494
 
else
4495
 
  echo "$as_me: failed program was:" >&5
4496
 
sed 's/^/| /' conftest.$ac_ext >&5
4497
 
 
4498
4605
fi
4499
 
rm -f conftest.err conftest.$ac_objext
4500
 
         CC="$CC -n32"
4501
 
         rm -f conftest.$ac_objext
4502
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4503
 
  (eval $ac_compile) 2>conftest.er1
4504
 
  ac_status=$?
4505
 
  grep -v '^ *+' conftest.er1 >conftest.err
4506
 
  rm -f conftest.er1
4507
 
  cat conftest.err >&5
4508
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4509
 
  (exit $ac_status); } &&
4510
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4511
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4512
 
  (eval $ac_try) 2>&5
4513
 
  ac_status=$?
4514
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4515
 
  (exit $ac_status); }; } &&
4516
 
         { ac_try='test -s conftest.$ac_objext'
4517
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4518
 
  (eval $ac_try) 2>&5
4519
 
  ac_status=$?
4520
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4521
 
  (exit $ac_status); }; }; then
 
4606
rm -f core conftest.err conftest.$ac_objext
 
4607
         CC="$CC -n32"
 
4608
         if ac_fn_c_try_compile "$LINENO"; then :
4522
4609
  ac_cv_sys_largefile_CC=' -n32'; break
4523
 
else
4524
 
  echo "$as_me: failed program was:" >&5
4525
 
sed 's/^/| /' conftest.$ac_ext >&5
4526
 
 
4527
4610
fi
4528
 
rm -f conftest.err conftest.$ac_objext
 
4611
rm -f core conftest.err conftest.$ac_objext
4529
4612
         break
4530
4613
       done
4531
4614
       CC=$ac_save_CC
4532
4615
       rm -f conftest.$ac_ext
4533
4616
    fi
4534
4617
fi
4535
 
echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4536
 
echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
 
4618
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
 
4619
$as_echo "$ac_cv_sys_largefile_CC" >&6; }
4537
4620
  if test "$ac_cv_sys_largefile_CC" != no; then
4538
4621
    CC=$CC$ac_cv_sys_largefile_CC
4539
4622
  fi
4540
4623
 
4541
 
  echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4542
 
echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4543
 
if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4544
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4624
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
 
4625
$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
 
4626
if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
 
4627
  $as_echo_n "(cached) " >&6
4545
4628
else
4546
4629
  while :; do
4547
 
  ac_cv_sys_file_offset_bits=no
4548
 
  cat >conftest.$ac_ext <<_ACEOF
4549
 
/* confdefs.h.  */
4550
 
_ACEOF
4551
 
cat confdefs.h >>conftest.$ac_ext
4552
 
cat >>conftest.$ac_ext <<_ACEOF
 
4630
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4553
4631
/* end confdefs.h.  */
4554
4632
#include <sys/types.h>
4555
4633
 /* Check that off_t can represent 2**63 - 1 correctly.
4568
4646
  return 0;
4569
4647
}
4570
4648
_ACEOF
4571
 
rm -f conftest.$ac_objext
4572
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4573
 
  (eval $ac_compile) 2>conftest.er1
4574
 
  ac_status=$?
4575
 
  grep -v '^ *+' conftest.er1 >conftest.err
4576
 
  rm -f conftest.er1
4577
 
  cat conftest.err >&5
4578
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4579
 
  (exit $ac_status); } &&
4580
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4581
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4582
 
  (eval $ac_try) 2>&5
4583
 
  ac_status=$?
4584
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4585
 
  (exit $ac_status); }; } &&
4586
 
         { ac_try='test -s conftest.$ac_objext'
4587
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4588
 
  (eval $ac_try) 2>&5
4589
 
  ac_status=$?
4590
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4591
 
  (exit $ac_status); }; }; then
4592
 
  break
4593
 
else
4594
 
  echo "$as_me: failed program was:" >&5
4595
 
sed 's/^/| /' conftest.$ac_ext >&5
4596
 
 
 
4649
if ac_fn_c_try_compile "$LINENO"; then :
 
4650
  ac_cv_sys_file_offset_bits=no; break
4597
4651
fi
4598
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4599
 
  cat >conftest.$ac_ext <<_ACEOF
4600
 
/* confdefs.h.  */
4601
 
_ACEOF
4602
 
cat confdefs.h >>conftest.$ac_ext
4603
 
cat >>conftest.$ac_ext <<_ACEOF
 
4652
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4653
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4604
4654
/* end confdefs.h.  */
4605
4655
#define _FILE_OFFSET_BITS 64
4606
4656
#include <sys/types.h>
4620
4670
  return 0;
4621
4671
}
4622
4672
_ACEOF
4623
 
rm -f conftest.$ac_objext
4624
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4625
 
  (eval $ac_compile) 2>conftest.er1
4626
 
  ac_status=$?
4627
 
  grep -v '^ *+' conftest.er1 >conftest.err
4628
 
  rm -f conftest.er1
4629
 
  cat conftest.err >&5
4630
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4631
 
  (exit $ac_status); } &&
4632
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4633
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4634
 
  (eval $ac_try) 2>&5
4635
 
  ac_status=$?
4636
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4637
 
  (exit $ac_status); }; } &&
4638
 
         { ac_try='test -s conftest.$ac_objext'
4639
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4640
 
  (eval $ac_try) 2>&5
4641
 
  ac_status=$?
4642
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4643
 
  (exit $ac_status); }; }; then
 
4673
if ac_fn_c_try_compile "$LINENO"; then :
4644
4674
  ac_cv_sys_file_offset_bits=64; break
4645
 
else
4646
 
  echo "$as_me: failed program was:" >&5
4647
 
sed 's/^/| /' conftest.$ac_ext >&5
4648
 
 
4649
4675
fi
4650
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4676
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4677
  ac_cv_sys_file_offset_bits=unknown
4651
4678
  break
4652
4679
done
4653
4680
fi
4654
 
echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4655
 
echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4656
 
if test "$ac_cv_sys_file_offset_bits" != no; then
4657
 
 
 
4681
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
 
4682
$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
 
4683
case $ac_cv_sys_file_offset_bits in #(
 
4684
  no | unknown) ;;
 
4685
  *)
4658
4686
cat >>confdefs.h <<_ACEOF
4659
4687
#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4660
4688
_ACEOF
4661
 
 
4662
 
fi
4663
 
rm -f conftest*
4664
 
  echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4665
 
echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4666
 
if test "${ac_cv_sys_large_files+set}" = set; then
4667
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4689
;;
 
4690
esac
 
4691
rm -rf conftest*
 
4692
  if test $ac_cv_sys_file_offset_bits = unknown; then
 
4693
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
 
4694
$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
 
4695
if test "${ac_cv_sys_large_files+set}" = set; then :
 
4696
  $as_echo_n "(cached) " >&6
4668
4697
else
4669
4698
  while :; do
4670
 
  ac_cv_sys_large_files=no
4671
 
  cat >conftest.$ac_ext <<_ACEOF
4672
 
/* confdefs.h.  */
4673
 
_ACEOF
4674
 
cat confdefs.h >>conftest.$ac_ext
4675
 
cat >>conftest.$ac_ext <<_ACEOF
 
4699
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4676
4700
/* end confdefs.h.  */
4677
4701
#include <sys/types.h>
4678
4702
 /* Check that off_t can represent 2**63 - 1 correctly.
4691
4715
  return 0;
4692
4716
}
4693
4717
_ACEOF
4694
 
rm -f conftest.$ac_objext
4695
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4696
 
  (eval $ac_compile) 2>conftest.er1
4697
 
  ac_status=$?
4698
 
  grep -v '^ *+' conftest.er1 >conftest.err
4699
 
  rm -f conftest.er1
4700
 
  cat conftest.err >&5
4701
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4702
 
  (exit $ac_status); } &&
4703
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4704
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4705
 
  (eval $ac_try) 2>&5
4706
 
  ac_status=$?
4707
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4708
 
  (exit $ac_status); }; } &&
4709
 
         { ac_try='test -s conftest.$ac_objext'
4710
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4711
 
  (eval $ac_try) 2>&5
4712
 
  ac_status=$?
4713
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4714
 
  (exit $ac_status); }; }; then
4715
 
  break
4716
 
else
4717
 
  echo "$as_me: failed program was:" >&5
4718
 
sed 's/^/| /' conftest.$ac_ext >&5
4719
 
 
 
4718
if ac_fn_c_try_compile "$LINENO"; then :
 
4719
  ac_cv_sys_large_files=no; break
4720
4720
fi
4721
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4722
 
  cat >conftest.$ac_ext <<_ACEOF
4723
 
/* confdefs.h.  */
4724
 
_ACEOF
4725
 
cat confdefs.h >>conftest.$ac_ext
4726
 
cat >>conftest.$ac_ext <<_ACEOF
 
4721
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4722
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4727
4723
/* end confdefs.h.  */
4728
4724
#define _LARGE_FILES 1
4729
4725
#include <sys/types.h>
4743
4739
  return 0;
4744
4740
}
4745
4741
_ACEOF
4746
 
rm -f conftest.$ac_objext
4747
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4748
 
  (eval $ac_compile) 2>conftest.er1
4749
 
  ac_status=$?
4750
 
  grep -v '^ *+' conftest.er1 >conftest.err
4751
 
  rm -f conftest.er1
4752
 
  cat conftest.err >&5
4753
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4754
 
  (exit $ac_status); } &&
4755
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4756
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4757
 
  (eval $ac_try) 2>&5
4758
 
  ac_status=$?
4759
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4760
 
  (exit $ac_status); }; } &&
4761
 
         { ac_try='test -s conftest.$ac_objext'
4762
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4763
 
  (eval $ac_try) 2>&5
4764
 
  ac_status=$?
4765
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4766
 
  (exit $ac_status); }; }; then
 
4742
if ac_fn_c_try_compile "$LINENO"; then :
4767
4743
  ac_cv_sys_large_files=1; break
4768
 
else
4769
 
  echo "$as_me: failed program was:" >&5
4770
 
sed 's/^/| /' conftest.$ac_ext >&5
4771
 
 
4772
4744
fi
4773
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4745
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4746
  ac_cv_sys_large_files=unknown
4774
4747
  break
4775
4748
done
4776
4749
fi
4777
 
echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4778
 
echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4779
 
if test "$ac_cv_sys_large_files" != no; then
4780
 
 
 
4750
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
 
4751
$as_echo "$ac_cv_sys_large_files" >&6; }
 
4752
case $ac_cv_sys_large_files in #(
 
4753
  no | unknown) ;;
 
4754
  *)
4781
4755
cat >>confdefs.h <<_ACEOF
4782
4756
#define _LARGE_FILES $ac_cv_sys_large_files
4783
4757
_ACEOF
4784
 
 
4785
 
fi
4786
 
rm -f conftest*
 
4758
;;
 
4759
esac
 
4760
rm -rf conftest*
 
4761
  fi
4787
4762
fi
4788
4763
 
4789
4764
 
4790
4765
# Checks for library functions.
4791
 
echo "$as_me:$LINENO: checking for working POSIX fnmatch" >&5
4792
 
echo $ECHO_N "checking for working POSIX fnmatch... $ECHO_C" >&6
4793
 
if test "${ac_cv_func_fnmatch_works+set}" = set; then
4794
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4766
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working POSIX fnmatch" >&5
 
4767
$as_echo_n "checking for working POSIX fnmatch... " >&6; }
 
4768
if test "${ac_cv_func_fnmatch_works+set}" = set; then :
 
4769
  $as_echo_n "(cached) " >&6
4795
4770
else
4796
4771
  # Some versions of Solaris, SCO, and the GNU C Library
4797
4772
   # have a broken or incompatible fnmatch.
4798
4773
   # So we run a test program.  If we are cross-compiling, take no chance.
4799
4774
   # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
4800
 
   if test "$cross_compiling" = yes; then
 
4775
   if test "$cross_compiling" = yes; then :
4801
4776
  ac_cv_func_fnmatch_works=cross
4802
4777
else
4803
 
  cat >conftest.$ac_ext <<_ACEOF
4804
 
/* confdefs.h.  */
4805
 
_ACEOF
4806
 
cat confdefs.h >>conftest.$ac_ext
4807
 
cat >>conftest.$ac_ext <<_ACEOF
 
4778
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4808
4779
/* end confdefs.h.  */
4809
4780
#include <fnmatch.h>
4810
4781
#          define y(a, b, c) (fnmatch (a, b, c) == 0)
4813
4784
int
4814
4785
main ()
4815
4786
{
4816
 
exit
 
4787
return
4817
4788
           (!(y ("a*", "abc", 0)
4818
4789
              && n ("d*/*1", "d/s/1", FNM_PATHNAME)
4819
4790
              && y ("a\\\\bc", "abc", 0)
4825
4796
  return 0;
4826
4797
}
4827
4798
_ACEOF
4828
 
rm -f conftest$ac_exeext
4829
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4830
 
  (eval $ac_link) 2>&5
4831
 
  ac_status=$?
4832
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4833
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4834
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4835
 
  (eval $ac_try) 2>&5
4836
 
  ac_status=$?
4837
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4838
 
  (exit $ac_status); }; }; then
 
4799
if ac_fn_c_try_run "$LINENO"; then :
4839
4800
  ac_cv_func_fnmatch_works=yes
4840
4801
else
4841
 
  echo "$as_me: program exited with status $ac_status" >&5
4842
 
echo "$as_me: failed program was:" >&5
4843
 
sed 's/^/| /' conftest.$ac_ext >&5
4844
 
 
4845
 
( exit $ac_status )
4846
 
ac_cv_func_fnmatch_works=no
4847
 
fi
4848
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4849
 
fi
4850
 
fi
4851
 
echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_works" >&5
4852
 
echo "${ECHO_T}$ac_cv_func_fnmatch_works" >&6
4853
 
if test $ac_cv_func_fnmatch_works = yes; then
4854
 
 
4855
 
cat >>confdefs.h <<\_ACEOF
4856
 
#define HAVE_FNMATCH 1
4857
 
_ACEOF
4858
 
 
4859
 
fi
4860
 
 
4861
 
 
4862
 
 
4863
 
echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
4864
 
echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
4865
 
if test "${ac_cv_sys_largefile_source+set}" = set; then
4866
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4802
  ac_cv_func_fnmatch_works=no
 
4803
fi
 
4804
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
4805
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
4806
fi
 
4807
 
 
4808
fi
 
4809
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fnmatch_works" >&5
 
4810
$as_echo "$ac_cv_func_fnmatch_works" >&6; }
 
4811
if test $ac_cv_func_fnmatch_works = yes; then :
 
4812
 
 
4813
$as_echo "#define HAVE_FNMATCH 1" >>confdefs.h
 
4814
 
 
4815
fi
 
4816
 
 
4817
 
 
4818
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
 
4819
$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
 
4820
if test "${ac_cv_sys_largefile_source+set}" = set; then :
 
4821
  $as_echo_n "(cached) " >&6
4867
4822
else
4868
4823
  while :; do
4869
 
  ac_cv_sys_largefile_source=no
4870
 
  cat >conftest.$ac_ext <<_ACEOF
4871
 
/* confdefs.h.  */
4872
 
_ACEOF
4873
 
cat confdefs.h >>conftest.$ac_ext
4874
 
cat >>conftest.$ac_ext <<_ACEOF
 
4824
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4875
4825
/* end confdefs.h.  */
4876
 
#include <stdio.h>
 
4826
#include <sys/types.h> /* for off_t */
 
4827
     #include <stdio.h>
4877
4828
int
4878
4829
main ()
4879
4830
{
4880
 
return !fseeko;
 
4831
int (*fp) (FILE *, off_t, int) = fseeko;
 
4832
     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
4881
4833
  ;
4882
4834
  return 0;
4883
4835
}
4884
4836
_ACEOF
4885
 
rm -f conftest.$ac_objext
4886
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4887
 
  (eval $ac_compile) 2>conftest.er1
4888
 
  ac_status=$?
4889
 
  grep -v '^ *+' conftest.er1 >conftest.err
4890
 
  rm -f conftest.er1
4891
 
  cat conftest.err >&5
4892
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4893
 
  (exit $ac_status); } &&
4894
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4895
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4896
 
  (eval $ac_try) 2>&5
4897
 
  ac_status=$?
4898
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4899
 
  (exit $ac_status); }; } &&
4900
 
         { ac_try='test -s conftest.$ac_objext'
4901
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4902
 
  (eval $ac_try) 2>&5
4903
 
  ac_status=$?
4904
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905
 
  (exit $ac_status); }; }; then
4906
 
  break
4907
 
else
4908
 
  echo "$as_me: failed program was:" >&5
4909
 
sed 's/^/| /' conftest.$ac_ext >&5
4910
 
 
 
4837
if ac_fn_c_try_link "$LINENO"; then :
 
4838
  ac_cv_sys_largefile_source=no; break
4911
4839
fi
4912
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4913
 
  cat >conftest.$ac_ext <<_ACEOF
4914
 
/* confdefs.h.  */
4915
 
_ACEOF
4916
 
cat confdefs.h >>conftest.$ac_ext
4917
 
cat >>conftest.$ac_ext <<_ACEOF
 
4840
rm -f core conftest.err conftest.$ac_objext \
 
4841
    conftest$ac_exeext conftest.$ac_ext
 
4842
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4918
4843
/* end confdefs.h.  */
4919
4844
#define _LARGEFILE_SOURCE 1
4920
 
#include <stdio.h>
 
4845
#include <sys/types.h> /* for off_t */
 
4846
     #include <stdio.h>
4921
4847
int
4922
4848
main ()
4923
4849
{
4924
 
return !fseeko;
 
4850
int (*fp) (FILE *, off_t, int) = fseeko;
 
4851
     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
4925
4852
  ;
4926
4853
  return 0;
4927
4854
}
4928
4855
_ACEOF
4929
 
rm -f conftest.$ac_objext
4930
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4931
 
  (eval $ac_compile) 2>conftest.er1
4932
 
  ac_status=$?
4933
 
  grep -v '^ *+' conftest.er1 >conftest.err
4934
 
  rm -f conftest.er1
4935
 
  cat conftest.err >&5
4936
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4937
 
  (exit $ac_status); } &&
4938
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4939
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4940
 
  (eval $ac_try) 2>&5
4941
 
  ac_status=$?
4942
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4943
 
  (exit $ac_status); }; } &&
4944
 
         { ac_try='test -s conftest.$ac_objext'
4945
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4946
 
  (eval $ac_try) 2>&5
4947
 
  ac_status=$?
4948
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4949
 
  (exit $ac_status); }; }; then
 
4856
if ac_fn_c_try_link "$LINENO"; then :
4950
4857
  ac_cv_sys_largefile_source=1; break
4951
 
else
4952
 
  echo "$as_me: failed program was:" >&5
4953
 
sed 's/^/| /' conftest.$ac_ext >&5
4954
 
 
4955
4858
fi
4956
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4859
rm -f core conftest.err conftest.$ac_objext \
 
4860
    conftest$ac_exeext conftest.$ac_ext
 
4861
  ac_cv_sys_largefile_source=unknown
4957
4862
  break
4958
4863
done
4959
4864
fi
4960
 
echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
4961
 
echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
4962
 
if test "$ac_cv_sys_largefile_source" != no; then
4963
 
 
 
4865
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
 
4866
$as_echo "$ac_cv_sys_largefile_source" >&6; }
 
4867
case $ac_cv_sys_largefile_source in #(
 
4868
  no | unknown) ;;
 
4869
  *)
4964
4870
cat >>confdefs.h <<_ACEOF
4965
4871
#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
4966
4872
_ACEOF
4967
 
 
4968
 
fi
4969
 
rm -f conftest*
 
4873
;;
 
4874
esac
 
4875
rm -rf conftest*
4970
4876
 
4971
4877
# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
4972
4878
# in glibc 2.1.3, but that breaks too many other things.
4973
4879
# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
4974
 
echo "$as_me:$LINENO: checking for fseeko" >&5
4975
 
echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
4976
 
if test "${ac_cv_func_fseeko+set}" = set; then
4977
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4978
 
else
4979
 
  cat >conftest.$ac_ext <<_ACEOF
4980
 
/* confdefs.h.  */
4981
 
_ACEOF
4982
 
cat confdefs.h >>conftest.$ac_ext
4983
 
cat >>conftest.$ac_ext <<_ACEOF
4984
 
/* end confdefs.h.  */
4985
 
#include <stdio.h>
4986
 
int
4987
 
main ()
4988
 
{
4989
 
return fseeko && fseeko (stdin, 0, 0);
4990
 
  ;
4991
 
  return 0;
4992
 
}
4993
 
_ACEOF
4994
 
rm -f conftest.$ac_objext conftest$ac_exeext
4995
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4996
 
  (eval $ac_link) 2>conftest.er1
4997
 
  ac_status=$?
4998
 
  grep -v '^ *+' conftest.er1 >conftest.err
4999
 
  rm -f conftest.er1
5000
 
  cat conftest.err >&5
5001
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5002
 
  (exit $ac_status); } &&
5003
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5004
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5005
 
  (eval $ac_try) 2>&5
5006
 
  ac_status=$?
5007
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5008
 
  (exit $ac_status); }; } &&
5009
 
         { ac_try='test -s conftest$ac_exeext'
5010
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5011
 
  (eval $ac_try) 2>&5
5012
 
  ac_status=$?
5013
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5014
 
  (exit $ac_status); }; }; then
5015
 
  ac_cv_func_fseeko=yes
5016
 
else
5017
 
  echo "$as_me: failed program was:" >&5
5018
 
sed 's/^/| /' conftest.$ac_ext >&5
5019
 
 
5020
 
ac_cv_func_fseeko=no
5021
 
fi
5022
 
rm -f conftest.err conftest.$ac_objext \
5023
 
      conftest$ac_exeext conftest.$ac_ext
5024
 
fi
5025
 
echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
5026
 
echo "${ECHO_T}$ac_cv_func_fseeko" >&6
5027
 
if test $ac_cv_func_fseeko = yes; then
5028
 
 
5029
 
cat >>confdefs.h <<\_ACEOF
5030
 
#define HAVE_FSEEKO 1
5031
 
_ACEOF
5032
 
 
5033
 
fi
5034
 
 
5035
 
 
5036
 
 
5037
 
 
5038
 
for ac_header in stdlib.h sys/time.h unistd.h
5039
 
do
5040
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5041
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5042
 
  echo "$as_me:$LINENO: checking for $ac_header" >&5
5043
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5044
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5045
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5046
 
fi
5047
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5048
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5049
 
else
5050
 
  # Is the header compilable?
5051
 
echo "$as_me:$LINENO: checking $ac_header usability" >&5
5052
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5053
 
cat >conftest.$ac_ext <<_ACEOF
5054
 
/* confdefs.h.  */
5055
 
_ACEOF
5056
 
cat confdefs.h >>conftest.$ac_ext
5057
 
cat >>conftest.$ac_ext <<_ACEOF
5058
 
/* end confdefs.h.  */
5059
 
$ac_includes_default
5060
 
#include <$ac_header>
5061
 
_ACEOF
5062
 
rm -f conftest.$ac_objext
5063
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5064
 
  (eval $ac_compile) 2>conftest.er1
5065
 
  ac_status=$?
5066
 
  grep -v '^ *+' conftest.er1 >conftest.err
5067
 
  rm -f conftest.er1
5068
 
  cat conftest.err >&5
5069
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5070
 
  (exit $ac_status); } &&
5071
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5072
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5073
 
  (eval $ac_try) 2>&5
5074
 
  ac_status=$?
5075
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5076
 
  (exit $ac_status); }; } &&
5077
 
         { ac_try='test -s conftest.$ac_objext'
5078
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5079
 
  (eval $ac_try) 2>&5
5080
 
  ac_status=$?
5081
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5082
 
  (exit $ac_status); }; }; then
5083
 
  ac_header_compiler=yes
5084
 
else
5085
 
  echo "$as_me: failed program was:" >&5
5086
 
sed 's/^/| /' conftest.$ac_ext >&5
5087
 
 
5088
 
ac_header_compiler=no
5089
 
fi
5090
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5091
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5092
 
echo "${ECHO_T}$ac_header_compiler" >&6
5093
 
 
5094
 
# Is the header present?
5095
 
echo "$as_me:$LINENO: checking $ac_header presence" >&5
5096
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5097
 
cat >conftest.$ac_ext <<_ACEOF
5098
 
/* confdefs.h.  */
5099
 
_ACEOF
5100
 
cat confdefs.h >>conftest.$ac_ext
5101
 
cat >>conftest.$ac_ext <<_ACEOF
5102
 
/* end confdefs.h.  */
5103
 
#include <$ac_header>
5104
 
_ACEOF
5105
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5106
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5107
 
  ac_status=$?
5108
 
  grep -v '^ *+' conftest.er1 >conftest.err
5109
 
  rm -f conftest.er1
5110
 
  cat conftest.err >&5
5111
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5112
 
  (exit $ac_status); } >/dev/null; then
5113
 
  if test -s conftest.err; then
5114
 
    ac_cpp_err=$ac_c_preproc_warn_flag
5115
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5116
 
  else
5117
 
    ac_cpp_err=
5118
 
  fi
5119
 
else
5120
 
  ac_cpp_err=yes
5121
 
fi
5122
 
if test -z "$ac_cpp_err"; then
5123
 
  ac_header_preproc=yes
5124
 
else
5125
 
  echo "$as_me: failed program was:" >&5
5126
 
sed 's/^/| /' conftest.$ac_ext >&5
5127
 
 
5128
 
  ac_header_preproc=no
5129
 
fi
5130
 
rm -f conftest.err conftest.$ac_ext
5131
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5132
 
echo "${ECHO_T}$ac_header_preproc" >&6
5133
 
 
5134
 
# So?  What about this header?
5135
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5136
 
  yes:no: )
5137
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5138
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5139
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5140
 
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5141
 
    ac_header_preproc=yes
5142
 
    ;;
5143
 
  no:yes:* )
5144
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5145
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5146
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5147
 
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5148
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5149
 
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5150
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5151
 
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5152
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5153
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5154
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5155
 
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5156
 
    (
5157
 
      cat <<\_ASBOX
5158
 
## --------------------------- ##
5159
 
## Report this to kyzer@4u.net ##
5160
 
## --------------------------- ##
5161
 
_ASBOX
5162
 
    ) |
5163
 
      sed "s/^/$as_me: WARNING:     /" >&2
5164
 
    ;;
5165
 
esac
5166
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
5167
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5168
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5169
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5170
 
else
5171
 
  eval "$as_ac_Header=\$ac_header_preproc"
5172
 
fi
5173
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5174
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5175
 
 
5176
 
fi
5177
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5178
 
  cat >>confdefs.h <<_ACEOF
5179
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5180
 
_ACEOF
5181
 
 
5182
 
fi
5183
 
 
5184
 
done
5185
 
 
5186
 
 
5187
 
for ac_func in alarm
5188
 
do
5189
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5190
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
5191
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5192
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
5193
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5194
 
else
5195
 
  cat >conftest.$ac_ext <<_ACEOF
5196
 
/* confdefs.h.  */
5197
 
_ACEOF
5198
 
cat confdefs.h >>conftest.$ac_ext
5199
 
cat >>conftest.$ac_ext <<_ACEOF
5200
 
/* end confdefs.h.  */
5201
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5202
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5203
 
#define $ac_func innocuous_$ac_func
5204
 
 
5205
 
/* System header to define __stub macros and hopefully few prototypes,
5206
 
    which can conflict with char $ac_func (); below.
5207
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5208
 
    <limits.h> exists even on freestanding compilers.  */
5209
 
 
5210
 
#ifdef __STDC__
5211
 
# include <limits.h>
5212
 
#else
5213
 
# include <assert.h>
5214
 
#endif
5215
 
 
5216
 
#undef $ac_func
5217
 
 
5218
 
/* Override any gcc2 internal prototype to avoid an error.  */
5219
 
#ifdef __cplusplus
5220
 
extern "C"
5221
 
{
5222
 
#endif
5223
 
/* We use char because int might match the return type of a gcc2
5224
 
   builtin and then its argument prototype would still apply.  */
5225
 
char $ac_func ();
5226
 
/* The GNU C library defines this for functions which it implements
5227
 
    to always fail with ENOSYS.  Some functions are actually named
5228
 
    something starting with __ and the normal name is an alias.  */
5229
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5230
 
choke me
5231
 
#else
5232
 
char (*f) () = $ac_func;
5233
 
#endif
5234
 
#ifdef __cplusplus
5235
 
}
5236
 
#endif
5237
 
 
5238
 
int
5239
 
main ()
5240
 
{
5241
 
return f != $ac_func;
5242
 
  ;
5243
 
  return 0;
5244
 
}
5245
 
_ACEOF
5246
 
rm -f conftest.$ac_objext conftest$ac_exeext
5247
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5248
 
  (eval $ac_link) 2>conftest.er1
5249
 
  ac_status=$?
5250
 
  grep -v '^ *+' conftest.er1 >conftest.err
5251
 
  rm -f conftest.er1
5252
 
  cat conftest.err >&5
5253
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5254
 
  (exit $ac_status); } &&
5255
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5256
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5257
 
  (eval $ac_try) 2>&5
5258
 
  ac_status=$?
5259
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5260
 
  (exit $ac_status); }; } &&
5261
 
         { ac_try='test -s conftest$ac_exeext'
5262
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5263
 
  (eval $ac_try) 2>&5
5264
 
  ac_status=$?
5265
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5266
 
  (exit $ac_status); }; }; then
5267
 
  eval "$as_ac_var=yes"
5268
 
else
5269
 
  echo "$as_me: failed program was:" >&5
5270
 
sed 's/^/| /' conftest.$ac_ext >&5
5271
 
 
5272
 
eval "$as_ac_var=no"
5273
 
fi
5274
 
rm -f conftest.err conftest.$ac_objext \
5275
 
      conftest$ac_exeext conftest.$ac_ext
5276
 
fi
5277
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5278
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5279
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
5280
 
  cat >>confdefs.h <<_ACEOF
5281
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5282
 
_ACEOF
5283
 
 
5284
 
fi
5285
 
done
5286
 
 
5287
 
echo "$as_me:$LINENO: checking for working mktime" >&5
5288
 
echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
5289
 
if test "${ac_cv_func_working_mktime+set}" = set; then
5290
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5291
 
else
5292
 
  if test "$cross_compiling" = yes; then
 
4880
if test $ac_cv_sys_largefile_source != unknown; then
 
4881
 
 
4882
$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
 
4883
 
 
4884
fi
 
4885
 
 
4886
for ac_func in mkdir _mkdir
 
4887
do :
 
4888
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
4889
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
 
4890
eval as_val=\$$as_ac_var
 
4891
   if test "x$as_val" = x""yes; then :
 
4892
  cat >>confdefs.h <<_ACEOF
 
4893
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
4894
_ACEOF
 
4895
 
 
4896
fi
 
4897
done
 
4898
 
 
4899
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir takes one argument" >&5
 
4900
$as_echo_n "checking whether mkdir takes one argument... " >&6; }
 
4901
if test "${ac_cv_mkdir_takes_one_arg+set}" = set; then :
 
4902
  $as_echo_n "(cached) " >&6
 
4903
else
 
4904
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4905
/* end confdefs.h.  */
 
4906
 
 
4907
#include <sys/stat.h>
 
4908
#if HAVE_UNISTD_H
 
4909
#  include <unistd.h>
 
4910
#endif
 
4911
 
 
4912
int
 
4913
main ()
 
4914
{
 
4915
mkdir (".");
 
4916
  ;
 
4917
  return 0;
 
4918
}
 
4919
_ACEOF
 
4920
if ac_fn_c_try_compile "$LINENO"; then :
 
4921
  ac_cv_mkdir_takes_one_arg=yes
 
4922
else
 
4923
  ac_cv_mkdir_takes_one_arg=no
 
4924
fi
 
4925
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4926
fi
 
4927
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mkdir_takes_one_arg" >&5
 
4928
$as_echo "$ac_cv_mkdir_takes_one_arg" >&6; }
 
4929
if test x"$ac_cv_mkdir_takes_one_arg" = xyes; then
 
4930
 
 
4931
$as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
 
4932
 
 
4933
fi
 
4934
 
 
4935
 
 
4936
 
 
4937
 
 
4938
  for ac_header in $ac_header_list
 
4939
do :
 
4940
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
4941
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
 
4942
"
 
4943
eval as_val=\$$as_ac_Header
 
4944
   if test "x$as_val" = x""yes; then :
 
4945
  cat >>confdefs.h <<_ACEOF
 
4946
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
4947
_ACEOF
 
4948
 
 
4949
fi
 
4950
 
 
4951
done
 
4952
 
 
4953
 
 
4954
 
 
4955
 
 
4956
 
 
4957
 
 
4958
 
 
4959
 
 
4960
  for ac_func in $ac_func_list
 
4961
do :
 
4962
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
4963
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
 
4964
eval as_val=\$$as_ac_var
 
4965
   if test "x$as_val" = x""yes; then :
 
4966
  cat >>confdefs.h <<_ACEOF
 
4967
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
4968
_ACEOF
 
4969
 
 
4970
fi
 
4971
done
 
4972
 
 
4973
 
 
4974
 
 
4975
 
 
4976
 
 
4977
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
 
4978
$as_echo_n "checking for working mktime... " >&6; }
 
4979
if test "${ac_cv_func_working_mktime+set}" = set; then :
 
4980
  $as_echo_n "(cached) " >&6
 
4981
else
 
4982
  if test "$cross_compiling" = yes; then :
5293
4983
  ac_cv_func_working_mktime=no
5294
4984
else
5295
 
  cat >conftest.$ac_ext <<_ACEOF
5296
 
/* confdefs.h.  */
5297
 
_ACEOF
5298
 
cat confdefs.h >>conftest.$ac_ext
5299
 
cat >>conftest.$ac_ext <<_ACEOF
 
4985
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5300
4986
/* end confdefs.h.  */
5301
4987
/* Test program from Paul Eggert and Tony Leneis.  */
5302
 
#if TIME_WITH_SYS_TIME
 
4988
#ifdef TIME_WITH_SYS_TIME
5303
4989
# include <sys/time.h>
5304
4990
# include <time.h>
5305
4991
#else
5306
 
# if HAVE_SYS_TIME_H
 
4992
# ifdef HAVE_SYS_TIME_H
5307
4993
#  include <sys/time.h>
5308
4994
# else
5309
4995
#  include <time.h>
5310
4996
# endif
5311
4997
#endif
5312
4998
 
5313
 
#if HAVE_STDLIB_H
5314
 
# include <stdlib.h>
5315
 
#endif
 
4999
#include <limits.h>
 
5000
#include <stdlib.h>
5316
5001
 
5317
 
#if HAVE_UNISTD_H
 
5002
#ifdef HAVE_UNISTD_H
5318
5003
# include <unistd.h>
5319
5004
#endif
5320
5005
 
5321
 
#if !HAVE_ALARM
 
5006
#ifndef HAVE_ALARM
5322
5007
# define alarm(X) /* empty */
5323
5008
#endif
5324
5009
 
5335
5020
};
5336
5021
#define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
5337
5022
 
5338
 
/* Fail if mktime fails to convert a date in the spring-forward gap.
 
5023
/* Return 0 if mktime fails to convert a date in the spring-forward gap.
5339
5024
   Based on a problem report from Andreas Jaeger.  */
5340
 
static void
 
5025
static int
5341
5026
spring_forward_gap ()
5342
5027
{
5343
5028
  /* glibc (up to about 1998-10-07) failed this test. */
5356
5041
  tm.tm_min = 0;
5357
5042
  tm.tm_sec = 0;
5358
5043
  tm.tm_isdst = -1;
5359
 
  if (mktime (&tm) == (time_t)-1)
5360
 
    exit (1);
 
5044
  return mktime (&tm) != (time_t) -1;
5361
5045
}
5362
5046
 
5363
 
static void
 
5047
static int
5364
5048
mktime_test1 (now)
5365
5049
     time_t now;
5366
5050
{
5367
5051
  struct tm *lt;
5368
 
  if ((lt = localtime (&now)) && mktime (lt) != now)
5369
 
    exit (1);
 
5052
  return ! (lt = localtime (&now)) || mktime (lt) == now;
5370
5053
}
5371
5054
 
5372
 
static void
 
5055
static int
5373
5056
mktime_test (now)
5374
5057
     time_t now;
5375
5058
{
5376
 
  mktime_test1 (now);
5377
 
  mktime_test1 ((time_t) (time_t_max - now));
5378
 
  mktime_test1 ((time_t) (time_t_min + now));
 
5059
  return (mktime_test1 (now)
 
5060
          && mktime_test1 ((time_t) (time_t_max - now))
 
5061
          && mktime_test1 ((time_t) (time_t_min + now)));
5379
5062
}
5380
5063
 
5381
 
static void
 
5064
static int
5382
5065
irix_6_4_bug ()
5383
5066
{
5384
5067
  /* Based on code from Ariel Faigon.  */
5391
5074
  tm.tm_sec = 0;
5392
5075
  tm.tm_isdst = -1;
5393
5076
  mktime (&tm);
5394
 
  if (tm.tm_mon != 2 || tm.tm_mday != 31)
5395
 
    exit (1);
 
5077
  return tm.tm_mon == 2 && tm.tm_mday == 31;
5396
5078
}
5397
5079
 
5398
 
static void
 
5080
static int
5399
5081
bigtime_test (j)
5400
5082
     int j;
5401
5083
{
5417
5099
             && lt->tm_wday == tm.tm_wday
5418
5100
             && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
5419
5101
                  == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
5420
 
        exit (1);
 
5102
        return 0;
5421
5103
    }
 
5104
  return 1;
 
5105
}
 
5106
 
 
5107
static int
 
5108
year_2050_test ()
 
5109
{
 
5110
  /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
 
5111
     ignoring leap seconds.  */
 
5112
  unsigned long int answer = 2527315200UL;
 
5113
 
 
5114
  struct tm tm;
 
5115
  time_t t;
 
5116
  tm.tm_year = 2050 - 1900;
 
5117
  tm.tm_mon = 2 - 1;
 
5118
  tm.tm_mday = 1;
 
5119
  tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
 
5120
  tm.tm_isdst = -1;
 
5121
 
 
5122
  /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
 
5123
     instead of "TZ=America/Vancouver" in order to detect the bug even
 
5124
     on systems that don't support the Olson extension, or don't have the
 
5125
     full zoneinfo tables installed.  */
 
5126
  putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
 
5127
 
 
5128
  t = mktime (&tm);
 
5129
 
 
5130
  /* Check that the result is either a failure, or close enough
 
5131
     to the correct answer that we can assume the discrepancy is
 
5132
     due to leap seconds.  */
 
5133
  return (t == (time_t) -1
 
5134
          || (0 < t && answer - 120 <= t && t <= answer + 120));
5422
5135
}
5423
5136
 
5424
5137
int
5432
5145
     isn't worth using anyway.  */
5433
5146
  alarm (60);
5434
5147
 
5435
 
  for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
5436
 
    continue;
5437
 
  time_t_max--;
5438
 
  if ((time_t) -1 < 0)
5439
 
    for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
5440
 
      continue;
 
5148
  for (;;)
 
5149
    {
 
5150
      t = (time_t_max << 1) + 1;
 
5151
      if (t <= time_t_max)
 
5152
        break;
 
5153
      time_t_max = t;
 
5154
    }
 
5155
  time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
 
5156
 
5441
5157
  delta = time_t_max / 997; /* a suitable prime number */
5442
5158
  for (i = 0; i < N_STRINGS; i++)
5443
5159
    {
5445
5161
        putenv (tz_strings[i]);
5446
5162
 
5447
5163
      for (t = 0; t <= time_t_max - delta; t += delta)
5448
 
        mktime_test (t);
5449
 
      mktime_test ((time_t) 1);
5450
 
      mktime_test ((time_t) (60 * 60));
5451
 
      mktime_test ((time_t) (60 * 60 * 24));
 
5164
        if (! mktime_test (t))
 
5165
          return 1;
 
5166
      if (! (mktime_test ((time_t) 1)
 
5167
             && mktime_test ((time_t) (60 * 60))
 
5168
             && mktime_test ((time_t) (60 * 60 * 24))))
 
5169
        return 1;
5452
5170
 
5453
 
      for (j = 1; 0 < j; j *= 2)
5454
 
        bigtime_test (j);
5455
 
      bigtime_test (j - 1);
 
5171
      for (j = 1; ; j <<= 1)
 
5172
        if (! bigtime_test (j))
 
5173
          return 1;
 
5174
        else if (INT_MAX / 2 < j)
 
5175
          break;
 
5176
      if (! bigtime_test (INT_MAX))
 
5177
        return 1;
5456
5178
    }
5457
 
  irix_6_4_bug ();
5458
 
  spring_forward_gap ();
5459
 
  exit (0);
 
5179
  return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
5460
5180
}
5461
5181
_ACEOF
5462
 
rm -f conftest$ac_exeext
5463
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5464
 
  (eval $ac_link) 2>&5
5465
 
  ac_status=$?
5466
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5467
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5468
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5469
 
  (eval $ac_try) 2>&5
5470
 
  ac_status=$?
5471
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5472
 
  (exit $ac_status); }; }; then
 
5182
if ac_fn_c_try_run "$LINENO"; then :
5473
5183
  ac_cv_func_working_mktime=yes
5474
5184
else
5475
 
  echo "$as_me: program exited with status $ac_status" >&5
5476
 
echo "$as_me: failed program was:" >&5
5477
 
sed 's/^/| /' conftest.$ac_ext >&5
 
5185
  ac_cv_func_working_mktime=no
 
5186
fi
 
5187
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
5188
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
5189
fi
5478
5190
 
5479
 
( exit $ac_status )
5480
 
ac_cv_func_working_mktime=no
5481
 
fi
5482
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5483
 
fi
5484
 
fi
5485
 
echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
5486
 
echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
 
5191
fi
 
5192
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
 
5193
$as_echo "$ac_cv_func_working_mktime" >&6; }
5487
5194
if test $ac_cv_func_working_mktime = no; then
5488
 
  case $LIBOBJS in
5489
 
    "mktime.$ac_objext"   | \
5490
 
  *" mktime.$ac_objext"   | \
5491
 
    "mktime.$ac_objext "* | \
 
5195
  case " $LIBOBJS " in
5492
5196
  *" mktime.$ac_objext "* ) ;;
5493
 
  *) LIBOBJS="$LIBOBJS mktime.$ac_objext" ;;
 
5197
  *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
 
5198
 ;;
5494
5199
esac
5495
5200
 
5496
5201
fi
5497
5202
 
5498
 
 
5499
 
 
5500
 
 
5501
 
 
5502
 
 
5503
5203
for ac_func in memcpy strcasecmp strchr utime utimes
5504
 
do
5505
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5506
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
5507
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5508
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
5509
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5510
 
else
5511
 
  cat >conftest.$ac_ext <<_ACEOF
5512
 
/* confdefs.h.  */
5513
 
_ACEOF
5514
 
cat confdefs.h >>conftest.$ac_ext
5515
 
cat >>conftest.$ac_ext <<_ACEOF
5516
 
/* end confdefs.h.  */
5517
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5518
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5519
 
#define $ac_func innocuous_$ac_func
5520
 
 
5521
 
/* System header to define __stub macros and hopefully few prototypes,
5522
 
    which can conflict with char $ac_func (); below.
5523
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5524
 
    <limits.h> exists even on freestanding compilers.  */
5525
 
 
5526
 
#ifdef __STDC__
5527
 
# include <limits.h>
5528
 
#else
5529
 
# include <assert.h>
5530
 
#endif
5531
 
 
5532
 
#undef $ac_func
5533
 
 
5534
 
/* Override any gcc2 internal prototype to avoid an error.  */
5535
 
#ifdef __cplusplus
5536
 
extern "C"
5537
 
{
5538
 
#endif
5539
 
/* We use char because int might match the return type of a gcc2
5540
 
   builtin and then its argument prototype would still apply.  */
5541
 
char $ac_func ();
5542
 
/* The GNU C library defines this for functions which it implements
5543
 
    to always fail with ENOSYS.  Some functions are actually named
5544
 
    something starting with __ and the normal name is an alias.  */
5545
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5546
 
choke me
5547
 
#else
5548
 
char (*f) () = $ac_func;
5549
 
#endif
5550
 
#ifdef __cplusplus
5551
 
}
5552
 
#endif
5553
 
 
5554
 
int
5555
 
main ()
5556
 
{
5557
 
return f != $ac_func;
5558
 
  ;
5559
 
  return 0;
5560
 
}
5561
 
_ACEOF
5562
 
rm -f conftest.$ac_objext conftest$ac_exeext
5563
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5564
 
  (eval $ac_link) 2>conftest.er1
5565
 
  ac_status=$?
5566
 
  grep -v '^ *+' conftest.er1 >conftest.err
5567
 
  rm -f conftest.er1
5568
 
  cat conftest.err >&5
5569
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5570
 
  (exit $ac_status); } &&
5571
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5572
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5573
 
  (eval $ac_try) 2>&5
5574
 
  ac_status=$?
5575
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5576
 
  (exit $ac_status); }; } &&
5577
 
         { ac_try='test -s conftest$ac_exeext'
5578
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5579
 
  (eval $ac_try) 2>&5
5580
 
  ac_status=$?
5581
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5582
 
  (exit $ac_status); }; }; then
5583
 
  eval "$as_ac_var=yes"
5584
 
else
5585
 
  echo "$as_me: failed program was:" >&5
5586
 
sed 's/^/| /' conftest.$ac_ext >&5
5587
 
 
5588
 
eval "$as_ac_var=no"
5589
 
fi
5590
 
rm -f conftest.err conftest.$ac_objext \
5591
 
      conftest$ac_exeext conftest.$ac_ext
5592
 
fi
5593
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5594
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5595
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
5204
do :
 
5205
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
5206
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
 
5207
eval as_val=\$$as_ac_var
 
5208
   if test "x$as_val" = x""yes; then :
5596
5209
  cat >>confdefs.h <<_ACEOF
5597
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
5210
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5598
5211
_ACEOF
5599
5212
 
5600
5213
fi
5601
5214
done
5602
5215
 
5603
 
 
5604
5216
for ac_func in getopt_long
5605
 
do
5606
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5607
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
5608
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5609
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
5610
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5611
 
else
5612
 
  cat >conftest.$ac_ext <<_ACEOF
5613
 
/* confdefs.h.  */
5614
 
_ACEOF
5615
 
cat confdefs.h >>conftest.$ac_ext
5616
 
cat >>conftest.$ac_ext <<_ACEOF
5617
 
/* end confdefs.h.  */
5618
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5619
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5620
 
#define $ac_func innocuous_$ac_func
5621
 
 
5622
 
/* System header to define __stub macros and hopefully few prototypes,
5623
 
    which can conflict with char $ac_func (); below.
5624
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5625
 
    <limits.h> exists even on freestanding compilers.  */
5626
 
 
5627
 
#ifdef __STDC__
5628
 
# include <limits.h>
5629
 
#else
5630
 
# include <assert.h>
5631
 
#endif
5632
 
 
5633
 
#undef $ac_func
5634
 
 
5635
 
/* Override any gcc2 internal prototype to avoid an error.  */
5636
 
#ifdef __cplusplus
5637
 
extern "C"
5638
 
{
5639
 
#endif
5640
 
/* We use char because int might match the return type of a gcc2
5641
 
   builtin and then its argument prototype would still apply.  */
5642
 
char $ac_func ();
5643
 
/* The GNU C library defines this for functions which it implements
5644
 
    to always fail with ENOSYS.  Some functions are actually named
5645
 
    something starting with __ and the normal name is an alias.  */
5646
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5647
 
choke me
5648
 
#else
5649
 
char (*f) () = $ac_func;
5650
 
#endif
5651
 
#ifdef __cplusplus
5652
 
}
5653
 
#endif
5654
 
 
5655
 
int
5656
 
main ()
5657
 
{
5658
 
return f != $ac_func;
5659
 
  ;
5660
 
  return 0;
5661
 
}
5662
 
_ACEOF
5663
 
rm -f conftest.$ac_objext conftest$ac_exeext
5664
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5665
 
  (eval $ac_link) 2>conftest.er1
5666
 
  ac_status=$?
5667
 
  grep -v '^ *+' conftest.er1 >conftest.err
5668
 
  rm -f conftest.er1
5669
 
  cat conftest.err >&5
5670
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5671
 
  (exit $ac_status); } &&
5672
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5673
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5674
 
  (eval $ac_try) 2>&5
5675
 
  ac_status=$?
5676
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5677
 
  (exit $ac_status); }; } &&
5678
 
         { ac_try='test -s conftest$ac_exeext'
5679
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5680
 
  (eval $ac_try) 2>&5
5681
 
  ac_status=$?
5682
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683
 
  (exit $ac_status); }; }; then
5684
 
  eval "$as_ac_var=yes"
5685
 
else
5686
 
  echo "$as_me: failed program was:" >&5
5687
 
sed 's/^/| /' conftest.$ac_ext >&5
5688
 
 
5689
 
eval "$as_ac_var=no"
5690
 
fi
5691
 
rm -f conftest.err conftest.$ac_objext \
5692
 
      conftest$ac_exeext conftest.$ac_ext
5693
 
fi
5694
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5695
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5696
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
5217
do :
 
5218
  ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
 
5219
if test "x$ac_cv_func_getopt_long" = x""yes; then :
5697
5220
  cat >>confdefs.h <<_ACEOF
5698
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
5221
#define HAVE_GETOPT_LONG 1
5699
5222
_ACEOF
5700
5223
 
5701
5224
else
5702
 
  echo "$as_me:$LINENO: checking for getopt_long in -lgnugetopt" >&5
5703
 
echo $ECHO_N "checking for getopt_long in -lgnugetopt... $ECHO_C" >&6
5704
 
if test "${ac_cv_lib_gnugetopt_getopt_long+set}" = set; then
5705
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5225
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getopt_long in -lgnugetopt" >&5
 
5226
$as_echo_n "checking for getopt_long in -lgnugetopt... " >&6; }
 
5227
if test "${ac_cv_lib_gnugetopt_getopt_long+set}" = set; then :
 
5228
  $as_echo_n "(cached) " >&6
5706
5229
else
5707
5230
  ac_check_lib_save_LIBS=$LIBS
5708
5231
LIBS="-lgnugetopt  $LIBS"
5709
 
cat >conftest.$ac_ext <<_ACEOF
5710
 
/* confdefs.h.  */
5711
 
_ACEOF
5712
 
cat confdefs.h >>conftest.$ac_ext
5713
 
cat >>conftest.$ac_ext <<_ACEOF
 
5232
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5714
5233
/* end confdefs.h.  */
5715
5234
 
5716
 
/* Override any gcc2 internal prototype to avoid an error.  */
 
5235
/* Override any GCC internal prototype to avoid an error.
 
5236
   Use char because int might match the return type of a GCC
 
5237
   builtin and then its argument prototype would still apply.  */
5717
5238
#ifdef __cplusplus
5718
5239
extern "C"
5719
5240
#endif
5720
 
/* We use char because int might match the return type of a gcc2
5721
 
   builtin and then its argument prototype would still apply.  */
5722
5241
char getopt_long ();
5723
5242
int
5724
5243
main ()
5725
5244
{
5726
 
getopt_long ();
 
5245
return getopt_long ();
5727
5246
  ;
5728
5247
  return 0;
5729
5248
}
5730
5249
_ACEOF
5731
 
rm -f conftest.$ac_objext conftest$ac_exeext
5732
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5733
 
  (eval $ac_link) 2>conftest.er1
5734
 
  ac_status=$?
5735
 
  grep -v '^ *+' conftest.er1 >conftest.err
5736
 
  rm -f conftest.er1
5737
 
  cat conftest.err >&5
5738
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5739
 
  (exit $ac_status); } &&
5740
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5741
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5742
 
  (eval $ac_try) 2>&5
5743
 
  ac_status=$?
5744
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5745
 
  (exit $ac_status); }; } &&
5746
 
         { ac_try='test -s conftest$ac_exeext'
5747
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5748
 
  (eval $ac_try) 2>&5
5749
 
  ac_status=$?
5750
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5751
 
  (exit $ac_status); }; }; then
 
5250
if ac_fn_c_try_link "$LINENO"; then :
5752
5251
  ac_cv_lib_gnugetopt_getopt_long=yes
5753
5252
else
5754
 
  echo "$as_me: failed program was:" >&5
5755
 
sed 's/^/| /' conftest.$ac_ext >&5
5756
 
 
5757
 
ac_cv_lib_gnugetopt_getopt_long=no
 
5253
  ac_cv_lib_gnugetopt_getopt_long=no
5758
5254
fi
5759
 
rm -f conftest.err conftest.$ac_objext \
5760
 
      conftest$ac_exeext conftest.$ac_ext
 
5255
rm -f core conftest.err conftest.$ac_objext \
 
5256
    conftest$ac_exeext conftest.$ac_ext
5761
5257
LIBS=$ac_check_lib_save_LIBS
5762
5258
fi
5763
 
echo "$as_me:$LINENO: result: $ac_cv_lib_gnugetopt_getopt_long" >&5
5764
 
echo "${ECHO_T}$ac_cv_lib_gnugetopt_getopt_long" >&6
5765
 
if test $ac_cv_lib_gnugetopt_getopt_long = yes; then
5766
 
  cat >>confdefs.h <<\_ACEOF
5767
 
#define HAVE_GETOPT_LONG 1
5768
 
_ACEOF
 
5259
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnugetopt_getopt_long" >&5
 
5260
$as_echo "$ac_cv_lib_gnugetopt_getopt_long" >&6; }
 
5261
if test "x$ac_cv_lib_gnugetopt_getopt_long" = x""yes; then :
 
5262
  $as_echo "#define HAVE_GETOPT_LONG 1" >>confdefs.h
5769
5263
 
5770
5264
else
5771
 
  case $LIBOBJS in
5772
 
    "getopt.$ac_objext"   | \
5773
 
  *" getopt.$ac_objext"   | \
5774
 
    "getopt.$ac_objext "* | \
 
5265
  case " $LIBOBJS " in
5775
5266
  *" getopt.$ac_objext "* ) ;;
5776
 
  *) LIBOBJS="$LIBOBJS getopt.$ac_objext" ;;
 
5267
  *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
 
5268
 ;;
5777
5269
esac
5778
 
 case $LIBOBJS in
5779
 
    "getopt1.$ac_objext"   | \
5780
 
  *" getopt1.$ac_objext"   | \
5781
 
    "getopt1.$ac_objext "* | \
 
5270
 case " $LIBOBJS " in
5782
5271
  *" getopt1.$ac_objext "* ) ;;
5783
 
  *) LIBOBJS="$LIBOBJS getopt1.$ac_objext" ;;
 
5272
  *) LIBOBJS="$LIBOBJS getopt1.$ac_objext"
 
5273
 ;;
5784
5274
esac
5785
5275
 
5786
5276
fi
5790
5280
 
5791
5281
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5792
5282
# for constant arguments.  Useless!
5793
 
echo "$as_me:$LINENO: checking for working alloca.h" >&5
5794
 
echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
5795
 
if test "${ac_cv_working_alloca_h+set}" = set; then
5796
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5283
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
 
5284
$as_echo_n "checking for working alloca.h... " >&6; }
 
5285
if test "${ac_cv_working_alloca_h+set}" = set; then :
 
5286
  $as_echo_n "(cached) " >&6
5797
5287
else
5798
 
  cat >conftest.$ac_ext <<_ACEOF
5799
 
/* confdefs.h.  */
5800
 
_ACEOF
5801
 
cat confdefs.h >>conftest.$ac_ext
5802
 
cat >>conftest.$ac_ext <<_ACEOF
 
5288
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5803
5289
/* end confdefs.h.  */
5804
5290
#include <alloca.h>
5805
5291
int
5806
5292
main ()
5807
5293
{
5808
5294
char *p = (char *) alloca (2 * sizeof (int));
 
5295
                          if (p) return 0;
5809
5296
  ;
5810
5297
  return 0;
5811
5298
}
5812
5299
_ACEOF
5813
 
rm -f conftest.$ac_objext conftest$ac_exeext
5814
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5815
 
  (eval $ac_link) 2>conftest.er1
5816
 
  ac_status=$?
5817
 
  grep -v '^ *+' conftest.er1 >conftest.err
5818
 
  rm -f conftest.er1
5819
 
  cat conftest.err >&5
5820
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5821
 
  (exit $ac_status); } &&
5822
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5823
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5824
 
  (eval $ac_try) 2>&5
5825
 
  ac_status=$?
5826
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5827
 
  (exit $ac_status); }; } &&
5828
 
         { ac_try='test -s conftest$ac_exeext'
5829
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5830
 
  (eval $ac_try) 2>&5
5831
 
  ac_status=$?
5832
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5833
 
  (exit $ac_status); }; }; then
 
5300
if ac_fn_c_try_link "$LINENO"; then :
5834
5301
  ac_cv_working_alloca_h=yes
5835
5302
else
5836
 
  echo "$as_me: failed program was:" >&5
5837
 
sed 's/^/| /' conftest.$ac_ext >&5
5838
 
 
5839
 
ac_cv_working_alloca_h=no
5840
 
fi
5841
 
rm -f conftest.err conftest.$ac_objext \
5842
 
      conftest$ac_exeext conftest.$ac_ext
5843
 
fi
5844
 
echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
5845
 
echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
 
5303
  ac_cv_working_alloca_h=no
 
5304
fi
 
5305
rm -f core conftest.err conftest.$ac_objext \
 
5306
    conftest$ac_exeext conftest.$ac_ext
 
5307
fi
 
5308
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
 
5309
$as_echo "$ac_cv_working_alloca_h" >&6; }
5846
5310
if test $ac_cv_working_alloca_h = yes; then
5847
5311
 
5848
 
cat >>confdefs.h <<\_ACEOF
5849
 
#define HAVE_ALLOCA_H 1
5850
 
_ACEOF
 
5312
$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
5851
5313
 
5852
5314
fi
5853
5315
 
5854
 
echo "$as_me:$LINENO: checking for alloca" >&5
5855
 
echo $ECHO_N "checking for alloca... $ECHO_C" >&6
5856
 
if test "${ac_cv_func_alloca_works+set}" = set; then
5857
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5316
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
 
5317
$as_echo_n "checking for alloca... " >&6; }
 
5318
if test "${ac_cv_func_alloca_works+set}" = set; then :
 
5319
  $as_echo_n "(cached) " >&6
5858
5320
else
5859
 
  cat >conftest.$ac_ext <<_ACEOF
5860
 
/* confdefs.h.  */
5861
 
_ACEOF
5862
 
cat confdefs.h >>conftest.$ac_ext
5863
 
cat >>conftest.$ac_ext <<_ACEOF
 
5321
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5864
5322
/* end confdefs.h.  */
5865
5323
#ifdef __GNUC__
5866
5324
# define alloca __builtin_alloca
5869
5327
#  include <malloc.h>
5870
5328
#  define alloca _alloca
5871
5329
# else
5872
 
#  if HAVE_ALLOCA_H
 
5330
#  ifdef HAVE_ALLOCA_H
5873
5331
#   include <alloca.h>
5874
5332
#  else
5875
5333
#   ifdef _AIX
5887
5345
main ()
5888
5346
{
5889
5347
char *p = (char *) alloca (1);
 
5348
                                    if (p) return 0;
5890
5349
  ;
5891
5350
  return 0;
5892
5351
}
5893
5352
_ACEOF
5894
 
rm -f conftest.$ac_objext conftest$ac_exeext
5895
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5896
 
  (eval $ac_link) 2>conftest.er1
5897
 
  ac_status=$?
5898
 
  grep -v '^ *+' conftest.er1 >conftest.err
5899
 
  rm -f conftest.er1
5900
 
  cat conftest.err >&5
5901
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5902
 
  (exit $ac_status); } &&
5903
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5904
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5905
 
  (eval $ac_try) 2>&5
5906
 
  ac_status=$?
5907
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5908
 
  (exit $ac_status); }; } &&
5909
 
         { ac_try='test -s conftest$ac_exeext'
5910
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5911
 
  (eval $ac_try) 2>&5
5912
 
  ac_status=$?
5913
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5914
 
  (exit $ac_status); }; }; then
 
5353
if ac_fn_c_try_link "$LINENO"; then :
5915
5354
  ac_cv_func_alloca_works=yes
5916
5355
else
5917
 
  echo "$as_me: failed program was:" >&5
5918
 
sed 's/^/| /' conftest.$ac_ext >&5
5919
 
 
5920
 
ac_cv_func_alloca_works=no
5921
 
fi
5922
 
rm -f conftest.err conftest.$ac_objext \
5923
 
      conftest$ac_exeext conftest.$ac_ext
5924
 
fi
5925
 
echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
5926
 
echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
 
5356
  ac_cv_func_alloca_works=no
 
5357
fi
 
5358
rm -f core conftest.err conftest.$ac_objext \
 
5359
    conftest$ac_exeext conftest.$ac_ext
 
5360
fi
 
5361
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
 
5362
$as_echo "$ac_cv_func_alloca_works" >&6; }
5927
5363
 
5928
5364
if test $ac_cv_func_alloca_works = yes; then
5929
5365
 
5930
 
cat >>confdefs.h <<\_ACEOF
5931
 
#define HAVE_ALLOCA 1
5932
 
_ACEOF
 
5366
$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
5933
5367
 
5934
5368
else
5935
5369
  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5937
5371
# contain a buggy version.  If you still want to use their alloca,
5938
5372
# use ar to extract alloca.o from them instead of compiling alloca.c.
5939
5373
 
5940
 
ALLOCA=alloca.$ac_objext
5941
 
 
5942
 
cat >>confdefs.h <<\_ACEOF
5943
 
#define C_ALLOCA 1
5944
 
_ACEOF
5945
 
 
5946
 
 
5947
 
echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
5948
 
echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
5949
 
if test "${ac_cv_os_cray+set}" = set; then
5950
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5374
ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
 
5375
 
 
5376
$as_echo "#define C_ALLOCA 1" >>confdefs.h
 
5377
 
 
5378
 
 
5379
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
 
5380
$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
 
5381
if test "${ac_cv_os_cray+set}" = set; then :
 
5382
  $as_echo_n "(cached) " >&6
5951
5383
else
5952
 
  cat >conftest.$ac_ext <<_ACEOF
5953
 
/* confdefs.h.  */
5954
 
_ACEOF
5955
 
cat confdefs.h >>conftest.$ac_ext
5956
 
cat >>conftest.$ac_ext <<_ACEOF
 
5384
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5957
5385
/* end confdefs.h.  */
5958
 
#if defined(CRAY) && ! defined(CRAY2)
 
5386
#if defined CRAY && ! defined CRAY2
5959
5387
webecray
5960
5388
#else
5961
5389
wenotbecray
5963
5391
 
5964
5392
_ACEOF
5965
5393
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5966
 
  $EGREP "webecray" >/dev/null 2>&1; then
 
5394
  $EGREP "webecray" >/dev/null 2>&1; then :
5967
5395
  ac_cv_os_cray=yes
5968
5396
else
5969
5397
  ac_cv_os_cray=no
5971
5399
rm -f conftest*
5972
5400
 
5973
5401
fi
5974
 
echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
5975
 
echo "${ECHO_T}$ac_cv_os_cray" >&6
 
5402
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
 
5403
$as_echo "$ac_cv_os_cray" >&6; }
5976
5404
if test $ac_cv_os_cray = yes; then
5977
5405
  for ac_func in _getb67 GETB67 getb67; do
5978
 
    as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5979
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
5980
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5981
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
5982
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5983
 
else
5984
 
  cat >conftest.$ac_ext <<_ACEOF
5985
 
/* confdefs.h.  */
5986
 
_ACEOF
5987
 
cat confdefs.h >>conftest.$ac_ext
5988
 
cat >>conftest.$ac_ext <<_ACEOF
5989
 
/* end confdefs.h.  */
5990
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5991
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5992
 
#define $ac_func innocuous_$ac_func
5993
 
 
5994
 
/* System header to define __stub macros and hopefully few prototypes,
5995
 
    which can conflict with char $ac_func (); below.
5996
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5997
 
    <limits.h> exists even on freestanding compilers.  */
5998
 
 
5999
 
#ifdef __STDC__
6000
 
# include <limits.h>
6001
 
#else
6002
 
# include <assert.h>
6003
 
#endif
6004
 
 
6005
 
#undef $ac_func
6006
 
 
6007
 
/* Override any gcc2 internal prototype to avoid an error.  */
6008
 
#ifdef __cplusplus
6009
 
extern "C"
6010
 
{
6011
 
#endif
6012
 
/* We use char because int might match the return type of a gcc2
6013
 
   builtin and then its argument prototype would still apply.  */
6014
 
char $ac_func ();
6015
 
/* The GNU C library defines this for functions which it implements
6016
 
    to always fail with ENOSYS.  Some functions are actually named
6017
 
    something starting with __ and the normal name is an alias.  */
6018
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6019
 
choke me
6020
 
#else
6021
 
char (*f) () = $ac_func;
6022
 
#endif
6023
 
#ifdef __cplusplus
6024
 
}
6025
 
#endif
6026
 
 
6027
 
int
6028
 
main ()
6029
 
{
6030
 
return f != $ac_func;
6031
 
  ;
6032
 
  return 0;
6033
 
}
6034
 
_ACEOF
6035
 
rm -f conftest.$ac_objext conftest$ac_exeext
6036
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6037
 
  (eval $ac_link) 2>conftest.er1
6038
 
  ac_status=$?
6039
 
  grep -v '^ *+' conftest.er1 >conftest.err
6040
 
  rm -f conftest.er1
6041
 
  cat conftest.err >&5
6042
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6043
 
  (exit $ac_status); } &&
6044
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6045
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6046
 
  (eval $ac_try) 2>&5
6047
 
  ac_status=$?
6048
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6049
 
  (exit $ac_status); }; } &&
6050
 
         { ac_try='test -s conftest$ac_exeext'
6051
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6052
 
  (eval $ac_try) 2>&5
6053
 
  ac_status=$?
6054
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6055
 
  (exit $ac_status); }; }; then
6056
 
  eval "$as_ac_var=yes"
6057
 
else
6058
 
  echo "$as_me: failed program was:" >&5
6059
 
sed 's/^/| /' conftest.$ac_ext >&5
6060
 
 
6061
 
eval "$as_ac_var=no"
6062
 
fi
6063
 
rm -f conftest.err conftest.$ac_objext \
6064
 
      conftest$ac_exeext conftest.$ac_ext
6065
 
fi
6066
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6067
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6068
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
5406
    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
5407
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
 
5408
eval as_val=\$$as_ac_var
 
5409
   if test "x$as_val" = x""yes; then :
6069
5410
 
6070
5411
cat >>confdefs.h <<_ACEOF
6071
5412
#define CRAY_STACKSEG_END $ac_func
6077
5418
  done
6078
5419
fi
6079
5420
 
6080
 
echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6081
 
echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
6082
 
if test "${ac_cv_c_stack_direction+set}" = set; then
6083
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5421
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
 
5422
$as_echo_n "checking stack direction for C alloca... " >&6; }
 
5423
if test "${ac_cv_c_stack_direction+set}" = set; then :
 
5424
  $as_echo_n "(cached) " >&6
6084
5425
else
6085
 
  if test "$cross_compiling" = yes; then
 
5426
  if test "$cross_compiling" = yes; then :
6086
5427
  ac_cv_c_stack_direction=0
6087
5428
else
6088
 
  cat >conftest.$ac_ext <<_ACEOF
6089
 
/* confdefs.h.  */
6090
 
_ACEOF
6091
 
cat confdefs.h >>conftest.$ac_ext
6092
 
cat >>conftest.$ac_ext <<_ACEOF
 
5429
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6093
5430
/* end confdefs.h.  */
 
5431
$ac_includes_default
6094
5432
int
6095
5433
find_stack_direction ()
6096
5434
{
6108
5446
int
6109
5447
main ()
6110
5448
{
6111
 
  exit (find_stack_direction () < 0);
 
5449
  return find_stack_direction () < 0;
6112
5450
}
6113
5451
_ACEOF
6114
 
rm -f conftest$ac_exeext
6115
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6116
 
  (eval $ac_link) 2>&5
6117
 
  ac_status=$?
6118
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6119
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6120
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6121
 
  (eval $ac_try) 2>&5
6122
 
  ac_status=$?
6123
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6124
 
  (exit $ac_status); }; }; then
 
5452
if ac_fn_c_try_run "$LINENO"; then :
6125
5453
  ac_cv_c_stack_direction=1
6126
5454
else
6127
 
  echo "$as_me: program exited with status $ac_status" >&5
6128
 
echo "$as_me: failed program was:" >&5
6129
 
sed 's/^/| /' conftest.$ac_ext >&5
6130
 
 
6131
 
( exit $ac_status )
6132
 
ac_cv_c_stack_direction=-1
6133
 
fi
6134
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6135
 
fi
6136
 
fi
6137
 
echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6138
 
echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
6139
 
 
 
5455
  ac_cv_c_stack_direction=-1
 
5456
fi
 
5457
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
5458
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
5459
fi
 
5460
 
 
5461
fi
 
5462
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
 
5463
$as_echo "$ac_cv_c_stack_direction" >&6; }
6140
5464
cat >>confdefs.h <<_ACEOF
6141
5465
#define STACK_DIRECTION $ac_cv_c_stack_direction
6142
5466
_ACEOF
6144
5468
 
6145
5469
fi
6146
5470
 
6147
 
echo "$as_me:$LINENO: checking for mbstate_t" >&5
6148
 
echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
6149
 
if test "${ac_cv_type_mbstate_t+set}" = set; then
6150
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5471
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
 
5472
$as_echo_n "checking for mbstate_t... " >&6; }
 
5473
if test "${ac_cv_type_mbstate_t+set}" = set; then :
 
5474
  $as_echo_n "(cached) " >&6
6151
5475
else
6152
 
  cat >conftest.$ac_ext <<_ACEOF
6153
 
/* confdefs.h.  */
6154
 
_ACEOF
6155
 
cat confdefs.h >>conftest.$ac_ext
6156
 
cat >>conftest.$ac_ext <<_ACEOF
 
5476
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6157
5477
/* end confdefs.h.  */
6158
5478
$ac_includes_default
6159
5479
#           include <wchar.h>
6165
5485
  return 0;
6166
5486
}
6167
5487
_ACEOF
6168
 
rm -f conftest.$ac_objext
6169
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6170
 
  (eval $ac_compile) 2>conftest.er1
6171
 
  ac_status=$?
6172
 
  grep -v '^ *+' conftest.er1 >conftest.err
6173
 
  rm -f conftest.er1
6174
 
  cat conftest.err >&5
6175
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6176
 
  (exit $ac_status); } &&
6177
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6178
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6179
 
  (eval $ac_try) 2>&5
6180
 
  ac_status=$?
6181
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6182
 
  (exit $ac_status); }; } &&
6183
 
         { ac_try='test -s conftest.$ac_objext'
6184
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6185
 
  (eval $ac_try) 2>&5
6186
 
  ac_status=$?
6187
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6188
 
  (exit $ac_status); }; }; then
 
5488
if ac_fn_c_try_compile "$LINENO"; then :
6189
5489
  ac_cv_type_mbstate_t=yes
6190
5490
else
6191
 
  echo "$as_me: failed program was:" >&5
6192
 
sed 's/^/| /' conftest.$ac_ext >&5
6193
 
 
6194
 
ac_cv_type_mbstate_t=no
6195
 
fi
6196
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6197
 
fi
6198
 
echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
6199
 
echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
 
5491
  ac_cv_type_mbstate_t=no
 
5492
fi
 
5493
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5494
fi
 
5495
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
 
5496
$as_echo "$ac_cv_type_mbstate_t" >&6; }
6200
5497
   if test $ac_cv_type_mbstate_t = yes; then
6201
5498
 
6202
 
cat >>confdefs.h <<\_ACEOF
6203
 
#define HAVE_MBSTATE_T 1
6204
 
_ACEOF
 
5499
$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
6205
5500
 
6206
5501
   else
6207
5502
 
6208
 
cat >>confdefs.h <<\_ACEOF
6209
 
#define mbstate_t int
6210
 
_ACEOF
 
5503
$as_echo "#define mbstate_t int" >>confdefs.h
6211
5504
 
6212
5505
   fi
6213
 
echo "$as_me:$LINENO: checking for working POSIX fnmatch" >&5
6214
 
echo $ECHO_N "checking for working POSIX fnmatch... $ECHO_C" >&6
6215
 
if test "${ac_cv_func_fnmatch_works+set}" = set; then
6216
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5506
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working POSIX fnmatch" >&5
 
5507
$as_echo_n "checking for working POSIX fnmatch... " >&6; }
 
5508
if test "${ac_cv_func_fnmatch_works+set}" = set; then :
 
5509
  $as_echo_n "(cached) " >&6
6217
5510
else
6218
5511
  # Some versions of Solaris, SCO, and the GNU C Library
6219
5512
   # have a broken or incompatible fnmatch.
6220
5513
   # So we run a test program.  If we are cross-compiling, take no chance.
6221
5514
   # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
6222
 
   if test "$cross_compiling" = yes; then
 
5515
   if test "$cross_compiling" = yes; then :
6223
5516
  ac_cv_func_fnmatch_works=cross
6224
5517
else
6225
 
  cat >conftest.$ac_ext <<_ACEOF
6226
 
/* confdefs.h.  */
6227
 
_ACEOF
6228
 
cat confdefs.h >>conftest.$ac_ext
6229
 
cat >>conftest.$ac_ext <<_ACEOF
 
5518
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6230
5519
/* end confdefs.h.  */
6231
5520
#include <fnmatch.h>
6232
5521
#          define y(a, b, c) (fnmatch (a, b, c) == 0)
6235
5524
int
6236
5525
main ()
6237
5526
{
6238
 
exit
 
5527
return
6239
5528
           (!(y ("a*", "abc", 0)
6240
5529
              && n ("d*/*1", "d/s/1", FNM_PATHNAME)
6241
5530
              && y ("a\\\\bc", "abc", 0)
6247
5536
  return 0;
6248
5537
}
6249
5538
_ACEOF
6250
 
rm -f conftest$ac_exeext
6251
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6252
 
  (eval $ac_link) 2>&5
6253
 
  ac_status=$?
6254
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6255
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6256
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6257
 
  (eval $ac_try) 2>&5
6258
 
  ac_status=$?
6259
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6260
 
  (exit $ac_status); }; }; then
 
5539
if ac_fn_c_try_run "$LINENO"; then :
6261
5540
  ac_cv_func_fnmatch_works=yes
6262
5541
else
6263
 
  echo "$as_me: program exited with status $ac_status" >&5
6264
 
echo "$as_me: failed program was:" >&5
6265
 
sed 's/^/| /' conftest.$ac_ext >&5
6266
 
 
6267
 
( exit $ac_status )
6268
 
ac_cv_func_fnmatch_works=no
6269
 
fi
6270
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6271
 
fi
6272
 
fi
6273
 
echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_works" >&5
6274
 
echo "${ECHO_T}$ac_cv_func_fnmatch_works" >&6
6275
 
if test $ac_cv_func_fnmatch_works = yes; then
6276
 
  rm -f $ac_config_libobj_dir/fnmatch.h
6277
 
else
6278
 
  echo "$as_me:$LINENO: checking whether getenv is declared" >&5
6279
 
echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
6280
 
if test "${ac_cv_have_decl_getenv+set}" = set; then
6281
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6282
 
else
6283
 
  cat >conftest.$ac_ext <<_ACEOF
6284
 
/* confdefs.h.  */
6285
 
_ACEOF
6286
 
cat confdefs.h >>conftest.$ac_ext
6287
 
cat >>conftest.$ac_ext <<_ACEOF
6288
 
/* end confdefs.h.  */
6289
 
$ac_includes_default
6290
 
int
6291
 
main ()
6292
 
{
6293
 
#ifndef getenv
6294
 
  char *p = (char *) getenv;
6295
 
#endif
6296
 
 
6297
 
  ;
6298
 
  return 0;
6299
 
}
6300
 
_ACEOF
6301
 
rm -f conftest.$ac_objext
6302
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6303
 
  (eval $ac_compile) 2>conftest.er1
6304
 
  ac_status=$?
6305
 
  grep -v '^ *+' conftest.er1 >conftest.err
6306
 
  rm -f conftest.er1
6307
 
  cat conftest.err >&5
6308
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6309
 
  (exit $ac_status); } &&
6310
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6311
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6312
 
  (eval $ac_try) 2>&5
6313
 
  ac_status=$?
6314
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6315
 
  (exit $ac_status); }; } &&
6316
 
         { ac_try='test -s conftest.$ac_objext'
6317
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6318
 
  (eval $ac_try) 2>&5
6319
 
  ac_status=$?
6320
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6321
 
  (exit $ac_status); }; }; then
6322
 
  ac_cv_have_decl_getenv=yes
6323
 
else
6324
 
  echo "$as_me: failed program was:" >&5
6325
 
sed 's/^/| /' conftest.$ac_ext >&5
6326
 
 
6327
 
ac_cv_have_decl_getenv=no
6328
 
fi
6329
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6330
 
fi
6331
 
echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
6332
 
echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
6333
 
if test $ac_cv_have_decl_getenv = yes; then
 
5542
  ac_cv_func_fnmatch_works=no
 
5543
fi
 
5544
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
5545
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
5546
fi
 
5547
 
 
5548
fi
 
5549
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fnmatch_works" >&5
 
5550
$as_echo "$ac_cv_func_fnmatch_works" >&6; }
 
5551
if test $ac_cv_func_fnmatch_works = yes; then :
 
5552
  rm -f "$ac_config_libobj_dir/fnmatch.h"
 
5553
else
 
5554
  ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
 
5555
if test "x$ac_cv_have_decl_getenv" = x""yes; then :
 
5556
  ac_have_decl=1
 
5557
else
 
5558
  ac_have_decl=0
 
5559
fi
6334
5560
 
6335
5561
cat >>confdefs.h <<_ACEOF
6336
 
#define HAVE_DECL_GETENV 1
6337
 
_ACEOF
6338
 
 
6339
 
 
6340
 
else
6341
 
  cat >>confdefs.h <<_ACEOF
6342
 
#define HAVE_DECL_GETENV 0
6343
 
_ACEOF
6344
 
 
6345
 
 
6346
 
fi
6347
 
 
6348
 
 
6349
 
 
6350
 
 
6351
 
 
 
5562
#define HAVE_DECL_GETENV $ac_have_decl
 
5563
_ACEOF
6352
5564
 
6353
5565
for ac_func in btowc mbsrtowcs mempcpy wmempcpy
6354
 
do
6355
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6356
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
6357
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6358
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
6359
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6360
 
else
6361
 
  cat >conftest.$ac_ext <<_ACEOF
6362
 
/* confdefs.h.  */
6363
 
_ACEOF
6364
 
cat confdefs.h >>conftest.$ac_ext
6365
 
cat >>conftest.$ac_ext <<_ACEOF
6366
 
/* end confdefs.h.  */
6367
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6368
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6369
 
#define $ac_func innocuous_$ac_func
6370
 
 
6371
 
/* System header to define __stub macros and hopefully few prototypes,
6372
 
    which can conflict with char $ac_func (); below.
6373
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6374
 
    <limits.h> exists even on freestanding compilers.  */
6375
 
 
6376
 
#ifdef __STDC__
6377
 
# include <limits.h>
6378
 
#else
6379
 
# include <assert.h>
6380
 
#endif
6381
 
 
6382
 
#undef $ac_func
6383
 
 
6384
 
/* Override any gcc2 internal prototype to avoid an error.  */
6385
 
#ifdef __cplusplus
6386
 
extern "C"
6387
 
{
6388
 
#endif
6389
 
/* We use char because int might match the return type of a gcc2
6390
 
   builtin and then its argument prototype would still apply.  */
6391
 
char $ac_func ();
6392
 
/* The GNU C library defines this for functions which it implements
6393
 
    to always fail with ENOSYS.  Some functions are actually named
6394
 
    something starting with __ and the normal name is an alias.  */
6395
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6396
 
choke me
6397
 
#else
6398
 
char (*f) () = $ac_func;
6399
 
#endif
6400
 
#ifdef __cplusplus
6401
 
}
6402
 
#endif
6403
 
 
6404
 
int
6405
 
main ()
6406
 
{
6407
 
return f != $ac_func;
6408
 
  ;
6409
 
  return 0;
6410
 
}
6411
 
_ACEOF
6412
 
rm -f conftest.$ac_objext conftest$ac_exeext
6413
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6414
 
  (eval $ac_link) 2>conftest.er1
6415
 
  ac_status=$?
6416
 
  grep -v '^ *+' conftest.er1 >conftest.err
6417
 
  rm -f conftest.er1
6418
 
  cat conftest.err >&5
6419
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6420
 
  (exit $ac_status); } &&
6421
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6422
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6423
 
  (eval $ac_try) 2>&5
6424
 
  ac_status=$?
6425
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6426
 
  (exit $ac_status); }; } &&
6427
 
         { ac_try='test -s conftest$ac_exeext'
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); }; }; then
6433
 
  eval "$as_ac_var=yes"
6434
 
else
6435
 
  echo "$as_me: failed program was:" >&5
6436
 
sed 's/^/| /' conftest.$ac_ext >&5
6437
 
 
6438
 
eval "$as_ac_var=no"
6439
 
fi
6440
 
rm -f conftest.err conftest.$ac_objext \
6441
 
      conftest$ac_exeext conftest.$ac_ext
6442
 
fi
6443
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6444
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6445
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
5566
do :
 
5567
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
5568
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
 
5569
eval as_val=\$$as_ac_var
 
5570
   if test "x$as_val" = x""yes; then :
6446
5571
  cat >>confdefs.h <<_ACEOF
6447
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
5572
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6448
5573
_ACEOF
6449
5574
 
6450
5575
fi
6451
5576
done
6452
5577
 
6453
 
 
6454
 
 
6455
5578
for ac_header in wchar.h wctype.h
6456
 
do
6457
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6458
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
6459
 
  echo "$as_me:$LINENO: checking for $ac_header" >&5
6460
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6461
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
6462
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6463
 
fi
6464
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6465
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6466
 
else
6467
 
  # Is the header compilable?
6468
 
echo "$as_me:$LINENO: checking $ac_header usability" >&5
6469
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6470
 
cat >conftest.$ac_ext <<_ACEOF
6471
 
/* confdefs.h.  */
6472
 
_ACEOF
6473
 
cat confdefs.h >>conftest.$ac_ext
6474
 
cat >>conftest.$ac_ext <<_ACEOF
6475
 
/* end confdefs.h.  */
6476
 
$ac_includes_default
6477
 
#include <$ac_header>
6478
 
_ACEOF
6479
 
rm -f conftest.$ac_objext
6480
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6481
 
  (eval $ac_compile) 2>conftest.er1
6482
 
  ac_status=$?
6483
 
  grep -v '^ *+' conftest.er1 >conftest.err
6484
 
  rm -f conftest.er1
6485
 
  cat conftest.err >&5
6486
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6487
 
  (exit $ac_status); } &&
6488
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6489
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6490
 
  (eval $ac_try) 2>&5
6491
 
  ac_status=$?
6492
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6493
 
  (exit $ac_status); }; } &&
6494
 
         { ac_try='test -s conftest.$ac_objext'
6495
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6496
 
  (eval $ac_try) 2>&5
6497
 
  ac_status=$?
6498
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6499
 
  (exit $ac_status); }; }; then
6500
 
  ac_header_compiler=yes
6501
 
else
6502
 
  echo "$as_me: failed program was:" >&5
6503
 
sed 's/^/| /' conftest.$ac_ext >&5
6504
 
 
6505
 
ac_header_compiler=no
6506
 
fi
6507
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6508
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6509
 
echo "${ECHO_T}$ac_header_compiler" >&6
6510
 
 
6511
 
# Is the header present?
6512
 
echo "$as_me:$LINENO: checking $ac_header presence" >&5
6513
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6514
 
cat >conftest.$ac_ext <<_ACEOF
6515
 
/* confdefs.h.  */
6516
 
_ACEOF
6517
 
cat confdefs.h >>conftest.$ac_ext
6518
 
cat >>conftest.$ac_ext <<_ACEOF
6519
 
/* end confdefs.h.  */
6520
 
#include <$ac_header>
6521
 
_ACEOF
6522
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6523
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6524
 
  ac_status=$?
6525
 
  grep -v '^ *+' conftest.er1 >conftest.err
6526
 
  rm -f conftest.er1
6527
 
  cat conftest.err >&5
6528
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6529
 
  (exit $ac_status); } >/dev/null; then
6530
 
  if test -s conftest.err; then
6531
 
    ac_cpp_err=$ac_c_preproc_warn_flag
6532
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6533
 
  else
6534
 
    ac_cpp_err=
6535
 
  fi
6536
 
else
6537
 
  ac_cpp_err=yes
6538
 
fi
6539
 
if test -z "$ac_cpp_err"; then
6540
 
  ac_header_preproc=yes
6541
 
else
6542
 
  echo "$as_me: failed program was:" >&5
6543
 
sed 's/^/| /' conftest.$ac_ext >&5
6544
 
 
6545
 
  ac_header_preproc=no
6546
 
fi
6547
 
rm -f conftest.err conftest.$ac_ext
6548
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6549
 
echo "${ECHO_T}$ac_header_preproc" >&6
6550
 
 
6551
 
# So?  What about this header?
6552
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6553
 
  yes:no: )
6554
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6555
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6556
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6557
 
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6558
 
    ac_header_preproc=yes
6559
 
    ;;
6560
 
  no:yes:* )
6561
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6562
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6563
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6564
 
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6565
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6566
 
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6567
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6568
 
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6569
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6570
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6571
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6572
 
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6573
 
    (
6574
 
      cat <<\_ASBOX
6575
 
## --------------------------- ##
6576
 
## Report this to kyzer@4u.net ##
6577
 
## --------------------------- ##
6578
 
_ASBOX
6579
 
    ) |
6580
 
      sed "s/^/$as_me: WARNING:     /" >&2
6581
 
    ;;
6582
 
esac
6583
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
6584
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6585
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
6586
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6587
 
else
6588
 
  eval "$as_ac_Header=\$ac_header_preproc"
6589
 
fi
6590
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6591
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6592
 
 
6593
 
fi
6594
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
5579
do :
 
5580
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
5581
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
 
5582
eval as_val=\$$as_ac_Header
 
5583
   if test "x$as_val" = x""yes; then :
6595
5584
  cat >>confdefs.h <<_ACEOF
6596
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
5585
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6597
5586
_ACEOF
6598
5587
 
6599
5588
fi
6600
5589
 
6601
5590
done
6602
5591
 
6603
 
case $LIBOBJS in
6604
 
    "fnmatch.$ac_objext"   | \
6605
 
  *" fnmatch.$ac_objext"   | \
6606
 
    "fnmatch.$ac_objext "* | \
 
5592
case " $LIBOBJS " in
6607
5593
  *" fnmatch.$ac_objext "* ) ;;
6608
 
  *) LIBOBJS="$LIBOBJS fnmatch.$ac_objext" ;;
 
5594
  *) LIBOBJS="$LIBOBJS fnmatch.$ac_objext"
 
5595
 ;;
6609
5596
esac
6610
5597
 
6611
 
          ac_config_links="$ac_config_links $ac_config_libobj_dir/fnmatch.h:$ac_config_libobj_dir/fnmatch_.h"
6612
 
 
6613
 
 
6614
 
cat >>confdefs.h <<\_ACEOF
6615
 
#define fnmatch rpl_fnmatch
 
5598
ac_config_links="$ac_config_links $ac_config_libobj_dir/fnmatch.h:$ac_config_libobj_dir/fnmatch_.h"
 
5599
 
 
5600
 
 
5601
$as_echo "#define fnmatch rpl_fnmatch" >>confdefs.h
 
5602
 
 
5603
 
 
5604
fi
 
5605
 
 
5606
 
 
5607
 
 
5608
# use an external libmspack if requested
 
5609
cabextract_external_libmspack=no
 
5610
 
 
5611
# Check whether --with-external-libmspack was given.
 
5612
if test "${with_external_libmspack+set}" = set; then :
 
5613
  withval=$with_external_libmspack; cabextract_external_libmspack=$withval
 
5614
fi
 
5615
 
 
5616
 
 
5617
if test "z$cabextract_external_libmspack" != 'zno'; then
 
5618
 ac_fn_c_check_header_mongrel "$LINENO" "mspack.h" "ac_cv_header_mspack_h" "$ac_includes_default"
 
5619
if test "x$ac_cv_header_mspack_h" = x""yes; then :
 
5620
 
 
5621
else
 
5622
  as_fn_error "Cannot find libmspack header" "$LINENO" 5
 
5623
fi
 
5624
 
 
5625
 
 
5626
fi
 
5627
 
 
5628
if test "z$cabextract_external_libmspack" != 'zno'; then
 
5629
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mspack_create_cab_compressor in -lmspack" >&5
 
5630
$as_echo_n "checking for mspack_create_cab_compressor in -lmspack... " >&6; }
 
5631
if test "${ac_cv_lib_mspack_mspack_create_cab_compressor+set}" = set; then :
 
5632
  $as_echo_n "(cached) " >&6
 
5633
else
 
5634
  ac_check_lib_save_LIBS=$LIBS
 
5635
LIBS="-lmspack  $LIBS"
 
5636
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5637
/* end confdefs.h.  */
 
5638
 
 
5639
/* Override any GCC internal prototype to avoid an error.
 
5640
   Use char because int might match the return type of a GCC
 
5641
   builtin and then its argument prototype would still apply.  */
 
5642
#ifdef __cplusplus
 
5643
extern "C"
 
5644
#endif
 
5645
char mspack_create_cab_compressor ();
 
5646
int
 
5647
main ()
 
5648
{
 
5649
return mspack_create_cab_compressor ();
 
5650
  ;
 
5651
  return 0;
 
5652
}
6616
5653
_ACEOF
6617
 
 
6618
 
 
6619
 
fi
6620
 
 
6621
 
 
6622
 
 
6623
 
 
6624
 
                    ac_config_files="$ac_config_files Makefile cabextract.spec"
 
5654
if ac_fn_c_try_link "$LINENO"; then :
 
5655
  ac_cv_lib_mspack_mspack_create_cab_compressor=yes
 
5656
else
 
5657
  ac_cv_lib_mspack_mspack_create_cab_compressor=no
 
5658
fi
 
5659
rm -f core conftest.err conftest.$ac_objext \
 
5660
    conftest$ac_exeext conftest.$ac_ext
 
5661
LIBS=$ac_check_lib_save_LIBS
 
5662
fi
 
5663
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mspack_mspack_create_cab_compressor" >&5
 
5664
$as_echo "$ac_cv_lib_mspack_mspack_create_cab_compressor" >&6; }
 
5665
if test "x$ac_cv_lib_mspack_mspack_create_cab_compressor" = x""yes; then :
 
5666
  LIBMSPACK_LIBS=-lmspack
 
5667
else
 
5668
  as_fn_error "Cannot find libmspack library" "$LINENO" 5
 
5669
fi
 
5670
 
 
5671
fi
 
5672
 
 
5673
 if test "z$cabextract_external_libmspack" != 'zno'; then
 
5674
  EXTERNAL_LIBMSPACK_TRUE=
 
5675
  EXTERNAL_LIBMSPACK_FALSE='#'
 
5676
else
 
5677
  EXTERNAL_LIBMSPACK_TRUE='#'
 
5678
  EXTERNAL_LIBMSPACK_FALSE=
 
5679
fi
 
5680
 
 
5681
 
 
5682
ac_config_files="$ac_config_files Makefile cabextract.spec"
6625
5683
 
6626
5684
cat >confcache <<\_ACEOF
6627
5685
# This file is a shell script that caches the results of configure
6641
5699
 
6642
5700
# The following way of writing the cache mishandles newlines in values,
6643
5701
# but we know of no workaround that is simple, portable, and efficient.
6644
 
# So, don't put newlines in cache variables' values.
 
5702
# So, we kill variables containing newlines.
6645
5703
# Ultrix sh set writes to stderr and can't be redirected directly,
6646
5704
# and sets the high bit in the cache file unless we assign to the vars.
6647
 
{
 
5705
(
 
5706
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
 
5707
    eval ac_val=\$$ac_var
 
5708
    case $ac_val in #(
 
5709
    *${as_nl}*)
 
5710
      case $ac_var in #(
 
5711
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
 
5712
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
 
5713
      esac
 
5714
      case $ac_var in #(
 
5715
      _ | IFS | as_nl) ;; #(
 
5716
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 
5717
      *) { eval $ac_var=; unset $ac_var;} ;;
 
5718
      esac ;;
 
5719
    esac
 
5720
  done
 
5721
 
6648
5722
  (set) 2>&1 |
6649
 
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
6650
 
    *ac_space=\ *)
6651
 
      # `set' does not quote correctly, so add quotes (double-quote
6652
 
      # substitution turns \\\\ into \\, and sed turns \\ into \).
 
5723
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
 
5724
    *${as_nl}ac_space=\ *)
 
5725
      # `set' does not quote correctly, so add quotes: double-quote
 
5726
      # substitution turns \\\\ into \\, and sed turns \\ into \.
6653
5727
      sed -n \
6654
5728
        "s/'/'\\\\''/g;
6655
5729
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6656
 
      ;;
 
5730
      ;; #(
6657
5731
    *)
6658
5732
      # `set' quotes correctly as required by POSIX, so do not add quotes.
6659
 
      sed -n \
6660
 
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
5733
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6661
5734
      ;;
6662
 
    esac;
6663
 
} |
 
5735
    esac |
 
5736
    sort
 
5737
) |
6664
5738
  sed '
 
5739
     /^ac_cv_env_/b end
6665
5740
     t clear
6666
 
     : clear
 
5741
     :clear
6667
5742
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6668
5743
     t end
6669
 
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6670
 
     : end' >>confcache
6671
 
if diff $cache_file confcache >/dev/null 2>&1; then :; else
6672
 
  if test -w $cache_file; then
6673
 
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
 
5744
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
5745
     :end' >>confcache
 
5746
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
 
5747
  if test -w "$cache_file"; then
 
5748
    test "x$cache_file" != "x/dev/null" &&
 
5749
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
 
5750
$as_echo "$as_me: updating cache $cache_file" >&6;}
6674
5751
    cat confcache >$cache_file
6675
5752
  else
6676
 
    echo "not updating unwritable cache $cache_file"
 
5753
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
 
5754
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6677
5755
  fi
6678
5756
fi
6679
5757
rm -f confcache
6682
5760
# Let make expand exec_prefix.
6683
5761
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6684
5762
 
6685
 
# VPATH may cause trouble with some makes, so we remove $(srcdir),
6686
 
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6687
 
# trailing colons and then remove the whole line if VPATH becomes empty
6688
 
# (actually we leave an empty line to preserve line numbers).
6689
 
if test "x$srcdir" = x.; then
6690
 
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
6691
 
s/:*\$(srcdir):*/:/;
6692
 
s/:*\${srcdir}:*/:/;
6693
 
s/:*@srcdir@:*/:/;
6694
 
s/^\([^=]*=[     ]*\):*/\1/;
6695
 
s/:*$//;
6696
 
s/^[^=]*=[       ]*$//;
6697
 
}'
6698
 
fi
6699
 
 
6700
5763
DEFS=-DHAVE_CONFIG_H
6701
5764
 
6702
5765
ac_libobjs=
6703
5766
ac_ltlibobjs=
6704
5767
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6705
5768
  # 1. Remove the extension, and $U if already installed.
6706
 
  ac_i=`echo "$ac_i" |
6707
 
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6708
 
  # 2. Add them.
6709
 
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6710
 
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
 
5769
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
 
5770
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
 
5771
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
 
5772
  #    will be set to the directory where LIBOBJS objects are built.
 
5773
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
 
5774
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
6711
5775
done
6712
5776
LIBOBJS=$ac_libobjs
6713
5777
 
6714
5778
LTLIBOBJS=$ac_ltlibobjs
6715
5779
 
6716
5780
 
 
5781
 if test -n "$EXEEXT"; then
 
5782
  am__EXEEXT_TRUE=
 
5783
  am__EXEEXT_FALSE='#'
 
5784
else
 
5785
  am__EXEEXT_TRUE='#'
 
5786
  am__EXEEXT_FALSE=
 
5787
fi
 
5788
 
6717
5789
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
6718
 
  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
6719
 
Usually this means the macro was only invoked conditionally." >&5
6720
 
echo "$as_me: error: conditional \"AMDEP\" was never defined.
6721
 
Usually this means the macro was only invoked conditionally." >&2;}
6722
 
   { (exit 1); exit 1; }; }
 
5790
  as_fn_error "conditional \"AMDEP\" was never defined.
 
5791
Usually this means the macro was only invoked conditionally." "$LINENO" 5
6723
5792
fi
6724
5793
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6725
 
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
6726
 
Usually this means the macro was only invoked conditionally." >&5
6727
 
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
6728
 
Usually this means the macro was only invoked conditionally." >&2;}
6729
 
   { (exit 1); exit 1; }; }
 
5794
  as_fn_error "conditional \"am__fastdepCC\" was never defined.
 
5795
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
5796
fi
 
5797
if test -z "${EXTERNAL_LIBMSPACK_TRUE}" && test -z "${EXTERNAL_LIBMSPACK_FALSE}"; then
 
5798
  as_fn_error "conditional \"EXTERNAL_LIBMSPACK\" was never defined.
 
5799
Usually this means the macro was only invoked conditionally." "$LINENO" 5
6730
5800
fi
6731
5801
 
6732
5802
: ${CONFIG_STATUS=./config.status}
 
5803
ac_write_fail=0
6733
5804
ac_clean_files_save=$ac_clean_files
6734
5805
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6735
 
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6736
 
echo "$as_me: creating $CONFIG_STATUS" >&6;}
6737
 
cat >$CONFIG_STATUS <<_ACEOF
 
5806
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
 
5807
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
5808
as_write_fail=0
 
5809
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6738
5810
#! $SHELL
6739
5811
# Generated by $as_me.
6740
5812
# Run this file to recreate the current configuration.
6744
5816
debug=false
6745
5817
ac_cs_recheck=false
6746
5818
ac_cs_silent=false
 
5819
 
6747
5820
SHELL=\${CONFIG_SHELL-$SHELL}
6748
 
_ACEOF
6749
 
 
6750
 
cat >>$CONFIG_STATUS <<\_ACEOF
6751
 
## --------------------- ##
6752
 
## M4sh Initialization.  ##
6753
 
## --------------------- ##
6754
 
 
6755
 
# Be Bourne compatible
6756
 
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
5821
export SHELL
 
5822
_ASEOF
 
5823
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
 
5824
## -------------------- ##
 
5825
## M4sh Initialization. ##
 
5826
## -------------------- ##
 
5827
 
 
5828
# Be more Bourne compatible
 
5829
DUALCASE=1; export DUALCASE # for MKS sh
 
5830
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
6757
5831
  emulate sh
6758
5832
  NULLCMD=:
6759
 
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
5833
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6760
5834
  # is contrary to our usage.  Disable this feature.
6761
5835
  alias -g '${1+"$@"}'='"$@"'
6762
 
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6763
 
  set -o posix
6764
 
fi
6765
 
DUALCASE=1; export DUALCASE # for MKS sh
6766
 
 
6767
 
# Support unset when possible.
6768
 
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6769
 
  as_unset=unset
6770
 
else
6771
 
  as_unset=false
6772
 
fi
6773
 
 
6774
 
 
6775
 
# Work around bugs in pre-3.0 UWIN ksh.
6776
 
$as_unset ENV MAIL MAILPATH
 
5836
  setopt NO_GLOB_SUBST
 
5837
else
 
5838
  case `(set -o) 2>/dev/null` in #(
 
5839
  *posix*) :
 
5840
    set -o posix ;; #(
 
5841
  *) :
 
5842
     ;;
 
5843
esac
 
5844
fi
 
5845
 
 
5846
 
 
5847
as_nl='
 
5848
'
 
5849
export as_nl
 
5850
# Printing a long string crashes Solaris 7 /usr/bin/printf.
 
5851
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
5852
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
 
5853
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
 
5854
# Prefer a ksh shell builtin over an external printf program on Solaris,
 
5855
# but without wasting forks for bash or zsh.
 
5856
if test -z "$BASH_VERSION$ZSH_VERSION" \
 
5857
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
 
5858
  as_echo='print -r --'
 
5859
  as_echo_n='print -rn --'
 
5860
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
 
5861
  as_echo='printf %s\n'
 
5862
  as_echo_n='printf %s'
 
5863
else
 
5864
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
 
5865
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
 
5866
    as_echo_n='/usr/ucb/echo -n'
 
5867
  else
 
5868
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
 
5869
    as_echo_n_body='eval
 
5870
      arg=$1;
 
5871
      case $arg in #(
 
5872
      *"$as_nl"*)
 
5873
        expr "X$arg" : "X\\(.*\\)$as_nl";
 
5874
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
 
5875
      esac;
 
5876
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
 
5877
    '
 
5878
    export as_echo_n_body
 
5879
    as_echo_n='sh -c $as_echo_n_body as_echo'
 
5880
  fi
 
5881
  export as_echo_body
 
5882
  as_echo='sh -c $as_echo_body as_echo'
 
5883
fi
 
5884
 
 
5885
# The user is always right.
 
5886
if test "${PATH_SEPARATOR+set}" != set; then
 
5887
  PATH_SEPARATOR=:
 
5888
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
 
5889
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
 
5890
      PATH_SEPARATOR=';'
 
5891
  }
 
5892
fi
 
5893
 
 
5894
 
 
5895
# IFS
 
5896
# We need space, tab and new line, in precisely that order.  Quoting is
 
5897
# there to prevent editors from complaining about space-tab.
 
5898
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
5899
# splitting by setting IFS to empty value.)
 
5900
IFS=" ""        $as_nl"
 
5901
 
 
5902
# Find who we are.  Look in the path if we contain no directory separator.
 
5903
case $0 in #((
 
5904
  *[\\/]* ) as_myself=$0 ;;
 
5905
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5906
for as_dir in $PATH
 
5907
do
 
5908
  IFS=$as_save_IFS
 
5909
  test -z "$as_dir" && as_dir=.
 
5910
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
5911
  done
 
5912
IFS=$as_save_IFS
 
5913
 
 
5914
     ;;
 
5915
esac
 
5916
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
5917
# in which case we are not to be found in the path.
 
5918
if test "x$as_myself" = x; then
 
5919
  as_myself=$0
 
5920
fi
 
5921
if test ! -f "$as_myself"; then
 
5922
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
5923
  exit 1
 
5924
fi
 
5925
 
 
5926
# Unset variables that we do not need and which cause bugs (e.g. in
 
5927
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
 
5928
# suppresses any "Segmentation fault" message there.  '((' could
 
5929
# trigger a bug in pdksh 5.2.14.
 
5930
for as_var in BASH_ENV ENV MAIL MAILPATH
 
5931
do eval test x\${$as_var+set} = xset \
 
5932
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
 
5933
done
6777
5934
PS1='$ '
6778
5935
PS2='> '
6779
5936
PS4='+ '
6780
5937
 
6781
5938
# NLS nuisances.
6782
 
for as_var in \
6783
 
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6784
 
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6785
 
  LC_TELEPHONE LC_TIME
6786
 
do
6787
 
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
6788
 
    eval $as_var=C; export $as_var
6789
 
  else
6790
 
    $as_unset $as_var
 
5939
LC_ALL=C
 
5940
export LC_ALL
 
5941
LANGUAGE=C
 
5942
export LANGUAGE
 
5943
 
 
5944
# CDPATH.
 
5945
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
5946
 
 
5947
 
 
5948
# as_fn_error ERROR [LINENO LOG_FD]
 
5949
# ---------------------------------
 
5950
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
 
5951
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
 
5952
# script with status $?, using 1 if that was 0.
 
5953
as_fn_error ()
 
5954
{
 
5955
  as_status=$?; test $as_status -eq 0 && as_status=1
 
5956
  if test "$3"; then
 
5957
    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
5958
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
6791
5959
  fi
6792
 
done
6793
 
 
6794
 
# Required to use basename.
6795
 
if expr a : '\(a\)' >/dev/null 2>&1; then
 
5960
  $as_echo "$as_me: error: $1" >&2
 
5961
  as_fn_exit $as_status
 
5962
} # as_fn_error
 
5963
 
 
5964
 
 
5965
# as_fn_set_status STATUS
 
5966
# -----------------------
 
5967
# Set $? to STATUS, without forking.
 
5968
as_fn_set_status ()
 
5969
{
 
5970
  return $1
 
5971
} # as_fn_set_status
 
5972
 
 
5973
# as_fn_exit STATUS
 
5974
# -----------------
 
5975
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
 
5976
as_fn_exit ()
 
5977
{
 
5978
  set +e
 
5979
  as_fn_set_status $1
 
5980
  exit $1
 
5981
} # as_fn_exit
 
5982
 
 
5983
# as_fn_unset VAR
 
5984
# ---------------
 
5985
# Portably unset VAR.
 
5986
as_fn_unset ()
 
5987
{
 
5988
  { eval $1=; unset $1;}
 
5989
}
 
5990
as_unset=as_fn_unset
 
5991
# as_fn_append VAR VALUE
 
5992
# ----------------------
 
5993
# Append the text in VALUE to the end of the definition contained in VAR. Take
 
5994
# advantage of any shell optimizations that allow amortized linear growth over
 
5995
# repeated appends, instead of the typical quadratic growth present in naive
 
5996
# implementations.
 
5997
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
 
5998
  eval 'as_fn_append ()
 
5999
  {
 
6000
    eval $1+=\$2
 
6001
  }'
 
6002
else
 
6003
  as_fn_append ()
 
6004
  {
 
6005
    eval $1=\$$1\$2
 
6006
  }
 
6007
fi # as_fn_append
 
6008
 
 
6009
# as_fn_arith ARG...
 
6010
# ------------------
 
6011
# Perform arithmetic evaluation on the ARGs, and store the result in the
 
6012
# global $as_val. Take advantage of shells that can avoid forks. The arguments
 
6013
# must be portable across $(()) and expr.
 
6014
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
 
6015
  eval 'as_fn_arith ()
 
6016
  {
 
6017
    as_val=$(( $* ))
 
6018
  }'
 
6019
else
 
6020
  as_fn_arith ()
 
6021
  {
 
6022
    as_val=`expr "$@" || test $? -eq 1`
 
6023
  }
 
6024
fi # as_fn_arith
 
6025
 
 
6026
 
 
6027
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
6028
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
6796
6029
  as_expr=expr
6797
6030
else
6798
6031
  as_expr=false
6799
6032
fi
6800
6033
 
6801
 
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
6034
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6802
6035
  as_basename=basename
6803
6036
else
6804
6037
  as_basename=false
6805
6038
fi
6806
6039
 
 
6040
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
6041
  as_dirname=dirname
 
6042
else
 
6043
  as_dirname=false
 
6044
fi
6807
6045
 
6808
 
# Name of the executable.
6809
 
as_me=`$as_basename "$0" ||
 
6046
as_me=`$as_basename -- "$0" ||
6810
6047
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6811
6048
         X"$0" : 'X\(//\)$' \| \
6812
 
         X"$0" : 'X\(/\)$' \| \
6813
 
         .     : '\(.\)' 2>/dev/null ||
6814
 
echo X/"$0" |
6815
 
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6816
 
          /^X\/\(\/\/\)$/{ s//\1/; q; }
6817
 
          /^X\/\(\/\).*/{ s//\1/; q; }
6818
 
          s/.*/./; q'`
6819
 
 
6820
 
 
6821
 
# PATH needs CR, and LINENO needs CR and PATH.
 
6049
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
6050
$as_echo X/"$0" |
 
6051
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
6052
            s//\1/
 
6053
            q
 
6054
          }
 
6055
          /^X\/\(\/\/\)$/{
 
6056
            s//\1/
 
6057
            q
 
6058
          }
 
6059
          /^X\/\(\/\).*/{
 
6060
            s//\1/
 
6061
            q
 
6062
          }
 
6063
          s/.*/./; q'`
 
6064
 
6822
6065
# Avoid depending upon Character Ranges.
6823
6066
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6824
6067
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6826
6069
as_cr_digits='0123456789'
6827
6070
as_cr_alnum=$as_cr_Letters$as_cr_digits
6828
6071
 
6829
 
# The user is always right.
6830
 
if test "${PATH_SEPARATOR+set}" != set; then
6831
 
  echo "#! /bin/sh" >conf$$.sh
6832
 
  echo  "exit 0"   >>conf$$.sh
6833
 
  chmod +x conf$$.sh
6834
 
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6835
 
    PATH_SEPARATOR=';'
6836
 
  else
6837
 
    PATH_SEPARATOR=:
6838
 
  fi
6839
 
  rm -f conf$$.sh
6840
 
fi
6841
 
 
6842
 
 
6843
 
  as_lineno_1=$LINENO
6844
 
  as_lineno_2=$LINENO
6845
 
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6846
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
6847
 
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
6848
 
  # Find who we are.  Look in the path if we contain no path at all
6849
 
  # relative or not.
6850
 
  case $0 in
6851
 
    *[\\/]* ) as_myself=$0 ;;
6852
 
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6853
 
for as_dir in $PATH
6854
 
do
6855
 
  IFS=$as_save_IFS
6856
 
  test -z "$as_dir" && as_dir=.
6857
 
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6858
 
done
6859
 
 
6860
 
       ;;
6861
 
  esac
6862
 
  # We did not find ourselves, most probably we were run as `sh COMMAND'
6863
 
  # in which case we are not to be found in the path.
6864
 
  if test "x$as_myself" = x; then
6865
 
    as_myself=$0
6866
 
  fi
6867
 
  if test ! -f "$as_myself"; then
6868
 
    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6869
 
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6870
 
   { (exit 1); exit 1; }; }
6871
 
  fi
6872
 
  case $CONFIG_SHELL in
6873
 
  '')
6874
 
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6875
 
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6876
 
do
6877
 
  IFS=$as_save_IFS
6878
 
  test -z "$as_dir" && as_dir=.
6879
 
  for as_base in sh bash ksh sh5; do
6880
 
         case $as_dir in
6881
 
         /*)
6882
 
           if ("$as_dir/$as_base" -c '
6883
 
  as_lineno_1=$LINENO
6884
 
  as_lineno_2=$LINENO
6885
 
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6886
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
6887
 
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
6888
 
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
6889
 
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
6890
 
             CONFIG_SHELL=$as_dir/$as_base
6891
 
             export CONFIG_SHELL
6892
 
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6893
 
           fi;;
6894
 
         esac
6895
 
       done
6896
 
done
6897
 
;;
6898
 
  esac
6899
 
 
6900
 
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6901
 
  # uniformly replaced by the line number.  The first 'sed' inserts a
6902
 
  # line-number line before each line; the second 'sed' does the real
6903
 
  # work.  The second script uses 'N' to pair each line-number line
6904
 
  # with the numbered line, and appends trailing '-' during
6905
 
  # substitution so that $LINENO is not a special case at line end.
6906
 
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6907
 
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
6908
 
  sed '=' <$as_myself |
6909
 
    sed '
6910
 
      N
6911
 
      s,$,-,
6912
 
      : loop
6913
 
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6914
 
      t loop
6915
 
      s,-$,,
6916
 
      s,^['$as_cr_digits']*\n,,
6917
 
    ' >$as_me.lineno &&
6918
 
  chmod +x $as_me.lineno ||
6919
 
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6920
 
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6921
 
   { (exit 1); exit 1; }; }
6922
 
 
6923
 
  # Don't try to exec as it changes $[0], causing all sort of problems
6924
 
  # (the dirname of $[0] is not the place where we might find the
6925
 
  # original and so on.  Autoconf is especially sensible to this).
6926
 
  . ./$as_me.lineno
6927
 
  # Exit status is that of the last command.
6928
 
  exit
6929
 
}
6930
 
 
6931
 
 
6932
 
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6933
 
  *c*,-n*) ECHO_N= ECHO_C='
6934
 
' ECHO_T='      ' ;;
6935
 
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6936
 
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
6072
ECHO_C= ECHO_N= ECHO_T=
 
6073
case `echo -n x` in #(((((
 
6074
-n*)
 
6075
  case `echo 'xy\c'` in
 
6076
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
6077
  xy)  ECHO_C='\c';;
 
6078
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
 
6079
       ECHO_T=' ';;
 
6080
  esac;;
 
6081
*)
 
6082
  ECHO_N='-n';;
6937
6083
esac
6938
6084
 
6939
 
if expr a : '\(a\)' >/dev/null 2>&1; then
6940
 
  as_expr=expr
 
6085
rm -f conf$$ conf$$.exe conf$$.file
 
6086
if test -d conf$$.dir; then
 
6087
  rm -f conf$$.dir/conf$$.file
6941
6088
else
6942
 
  as_expr=false
 
6089
  rm -f conf$$.dir
 
6090
  mkdir conf$$.dir 2>/dev/null
6943
6091
fi
6944
 
 
6945
 
rm -f conf$$ conf$$.exe conf$$.file
6946
 
echo >conf$$.file
6947
 
if ln -s conf$$.file conf$$ 2>/dev/null; then
6948
 
  # We could just check for DJGPP; but this test a) works b) is more generic
6949
 
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6950
 
  if test -f conf$$.exe; then
6951
 
    # Don't use ln at all; we don't have any links
 
6092
if (echo >conf$$.file) 2>/dev/null; then
 
6093
  if ln -s conf$$.file conf$$ 2>/dev/null; then
 
6094
    as_ln_s='ln -s'
 
6095
    # ... but there are two gotchas:
 
6096
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
6097
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
6098
    # In both cases, we have to default to `cp -p'.
 
6099
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
6100
      as_ln_s='cp -p'
 
6101
  elif ln conf$$.file conf$$ 2>/dev/null; then
 
6102
    as_ln_s=ln
 
6103
  else
6952
6104
    as_ln_s='cp -p'
6953
 
  else
6954
 
    as_ln_s='ln -s'
6955
6105
  fi
6956
 
elif ln conf$$.file conf$$ 2>/dev/null; then
6957
 
  as_ln_s=ln
6958
6106
else
6959
6107
  as_ln_s='cp -p'
6960
6108
fi
6961
 
rm -f conf$$ conf$$.exe conf$$.file
6962
 
 
 
6109
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
6110
rmdir conf$$.dir 2>/dev/null
 
6111
 
 
6112
 
 
6113
# as_fn_mkdir_p
 
6114
# -------------
 
6115
# Create "$as_dir" as a directory, including parents if necessary.
 
6116
as_fn_mkdir_p ()
 
6117
{
 
6118
 
 
6119
  case $as_dir in #(
 
6120
  -*) as_dir=./$as_dir;;
 
6121
  esac
 
6122
  test -d "$as_dir" || eval $as_mkdir_p || {
 
6123
    as_dirs=
 
6124
    while :; do
 
6125
      case $as_dir in #(
 
6126
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 
6127
      *) as_qdir=$as_dir;;
 
6128
      esac
 
6129
      as_dirs="'$as_qdir' $as_dirs"
 
6130
      as_dir=`$as_dirname -- "$as_dir" ||
 
6131
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
6132
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
6133
         X"$as_dir" : 'X\(//\)$' \| \
 
6134
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
6135
$as_echo X"$as_dir" |
 
6136
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
6137
            s//\1/
 
6138
            q
 
6139
          }
 
6140
          /^X\(\/\/\)[^/].*/{
 
6141
            s//\1/
 
6142
            q
 
6143
          }
 
6144
          /^X\(\/\/\)$/{
 
6145
            s//\1/
 
6146
            q
 
6147
          }
 
6148
          /^X\(\/\).*/{
 
6149
            s//\1/
 
6150
            q
 
6151
          }
 
6152
          s/.*/./; q'`
 
6153
      test -d "$as_dir" && break
 
6154
    done
 
6155
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
6156
  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
 
6157
 
 
6158
 
 
6159
} # as_fn_mkdir_p
6963
6160
if mkdir -p . 2>/dev/null; then
6964
 
  as_mkdir_p=:
 
6161
  as_mkdir_p='mkdir -p "$as_dir"'
6965
6162
else
6966
6163
  test -d ./-p && rmdir ./-p
6967
6164
  as_mkdir_p=false
6968
6165
fi
6969
6166
 
6970
 
as_executable_p="test -f"
 
6167
if test -x / >/dev/null 2>&1; then
 
6168
  as_test_x='test -x'
 
6169
else
 
6170
  if ls -dL / >/dev/null 2>&1; then
 
6171
    as_ls_L_option=L
 
6172
  else
 
6173
    as_ls_L_option=
 
6174
  fi
 
6175
  as_test_x='
 
6176
    eval sh -c '\''
 
6177
      if test -d "$1"; then
 
6178
        test -d "$1/.";
 
6179
      else
 
6180
        case $1 in #(
 
6181
        -*)set "./$1";;
 
6182
        esac;
 
6183
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
 
6184
        ???[sx]*):;;*)false;;esac;fi
 
6185
    '\'' sh
 
6186
  '
 
6187
fi
 
6188
as_executable_p=$as_test_x
6971
6189
 
6972
6190
# Sed expression to map a string onto a valid CPP name.
6973
6191
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6976
6194
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6977
6195
 
6978
6196
 
6979
 
# IFS
6980
 
# We need space, tab and new line, in precisely that order.
6981
 
as_nl='
6982
 
'
6983
 
IFS="   $as_nl"
6984
 
 
6985
 
# CDPATH.
6986
 
$as_unset CDPATH
6987
 
 
6988
6197
exec 6>&1
 
6198
## ----------------------------------- ##
 
6199
## Main body of $CONFIG_STATUS script. ##
 
6200
## ----------------------------------- ##
 
6201
_ASEOF
 
6202
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
6989
6203
 
6990
 
# Open the log real soon, to keep \$[0] and so on meaningful, and to
 
6204
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
6205
# Save the log message, to keep $0 and so on meaningful, and to
6991
6206
# report actual input values of CONFIG_FILES etc. instead of their
6992
 
# values after options handling.  Logging --version etc. is OK.
6993
 
exec 5>>config.log
6994
 
{
6995
 
  echo
6996
 
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6997
 
## Running $as_me. ##
6998
 
_ASBOX
6999
 
} >&5
7000
 
cat >&5 <<_CSEOF
7001
 
 
7002
 
This file was extended by cabextract $as_me 1.2, which was
7003
 
generated by GNU Autoconf 2.59.  Invocation command line was
 
6207
# values after options handling.
 
6208
ac_log="
 
6209
This file was extended by cabextract $as_me 1.3, which was
 
6210
generated by GNU Autoconf 2.65.  Invocation command line was
7004
6211
 
7005
6212
  CONFIG_FILES    = $CONFIG_FILES
7006
6213
  CONFIG_HEADERS  = $CONFIG_HEADERS
7008
6215
  CONFIG_COMMANDS = $CONFIG_COMMANDS
7009
6216
  $ $0 $@
7010
6217
 
7011
 
_CSEOF
7012
 
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7013
 
echo >&5
 
6218
on `(hostname || uname -n) 2>/dev/null | sed 1q`
 
6219
"
 
6220
 
7014
6221
_ACEOF
7015
6222
 
 
6223
case $ac_config_files in *"
 
6224
"*) set x $ac_config_files; shift; ac_config_files=$*;;
 
6225
esac
 
6226
 
 
6227
case $ac_config_headers in *"
 
6228
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
 
6229
esac
 
6230
 
 
6231
 
 
6232
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7016
6233
# Files that config.status was made for.
7017
 
if test -n "$ac_config_files"; then
7018
 
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7019
 
fi
7020
 
 
7021
 
if test -n "$ac_config_headers"; then
7022
 
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7023
 
fi
7024
 
 
7025
 
if test -n "$ac_config_links"; then
7026
 
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7027
 
fi
7028
 
 
7029
 
if test -n "$ac_config_commands"; then
7030
 
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7031
 
fi
7032
 
 
7033
 
cat >>$CONFIG_STATUS <<\_ACEOF
7034
 
 
 
6234
config_files="$ac_config_files"
 
6235
config_headers="$ac_config_headers"
 
6236
config_links="$ac_config_links"
 
6237
config_commands="$ac_config_commands"
 
6238
 
 
6239
_ACEOF
 
6240
 
 
6241
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7035
6242
ac_cs_usage="\
7036
 
\`$as_me' instantiates files from templates according to the
7037
 
current configuration.
 
6243
\`$as_me' instantiates files and other configuration actions
 
6244
from templates according to the current configuration.  Unless the files
 
6245
and actions are specified as TAGs, all are instantiated by default.
7038
6246
 
7039
 
Usage: $0 [OPTIONS] [FILE]...
 
6247
Usage: $0 [OPTION]... [TAG]...
7040
6248
 
7041
6249
  -h, --help       print this help, then exit
7042
 
  -V, --version    print version number, then exit
7043
 
  -q, --quiet      do not print progress messages
 
6250
  -V, --version    print version number and configuration settings, then exit
 
6251
      --config     print configuration, then exit
 
6252
  -q, --quiet, --silent
 
6253
                   do not print progress messages
7044
6254
  -d, --debug      don't remove temporary files
7045
6255
      --recheck    update $as_me by reconfiguring in the same conditions
7046
 
  --file=FILE[:TEMPLATE]
7047
 
                   instantiate the configuration file FILE
7048
 
  --header=FILE[:TEMPLATE]
7049
 
                   instantiate the configuration header FILE
 
6256
      --file=FILE[:TEMPLATE]
 
6257
                   instantiate the configuration file FILE
 
6258
      --header=FILE[:TEMPLATE]
 
6259
                   instantiate the configuration header FILE
7050
6260
 
7051
6261
Configuration files:
7052
6262
$config_files
7060
6270
Configuration commands:
7061
6271
$config_commands
7062
6272
 
7063
 
Report bugs to <bug-autoconf@gnu.org>."
 
6273
Report bugs to <kyzer@4u.net>."
 
6274
 
7064
6275
_ACEOF
7065
 
 
7066
 
cat >>$CONFIG_STATUS <<_ACEOF
 
6276
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
6277
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
7067
6278
ac_cs_version="\\
7068
 
cabextract config.status 1.2
7069
 
configured by $0, generated by GNU Autoconf 2.59,
7070
 
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
 
6279
cabextract config.status 1.3
 
6280
configured by $0, generated by GNU Autoconf 2.65,
 
6281
  with options \\"\$ac_cs_config\\"
7071
6282
 
7072
 
Copyright (C) 2003 Free Software Foundation, Inc.
 
6283
Copyright (C) 2009 Free Software Foundation, Inc.
7073
6284
This config.status script is free software; the Free Software Foundation
7074
6285
gives unlimited permission to copy, distribute and modify it."
7075
 
srcdir=$srcdir
7076
 
INSTALL="$INSTALL"
 
6286
 
 
6287
ac_pwd='$ac_pwd'
 
6288
srcdir='$srcdir'
 
6289
INSTALL='$INSTALL'
 
6290
MKDIR_P='$MKDIR_P'
 
6291
AWK='$AWK'
 
6292
test -n "\$AWK" || AWK=awk
7077
6293
_ACEOF
7078
6294
 
7079
 
cat >>$CONFIG_STATUS <<\_ACEOF
7080
 
# If no file are specified by the user, then we need to provide default
7081
 
# value.  By we need to know if files were specified by the user.
 
6295
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
6296
# The default lists apply if the user does not specify any file.
7082
6297
ac_need_defaults=:
7083
6298
while test $# != 0
7084
6299
do
7085
6300
  case $1 in
7086
6301
  --*=*)
7087
 
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
7088
 
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
 
6302
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
 
6303
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7089
6304
    ac_shift=:
7090
6305
    ;;
7091
 
  -*)
 
6306
  *)
7092
6307
    ac_option=$1
7093
6308
    ac_optarg=$2
7094
6309
    ac_shift=shift
7095
6310
    ;;
7096
 
  *) # This is not an option, so the user has probably given explicit
7097
 
     # arguments.
7098
 
     ac_option=$1
7099
 
     ac_need_defaults=false;;
7100
6311
  esac
7101
6312
 
7102
6313
  case $ac_option in
7103
6314
  # Handling of the options.
7104
 
_ACEOF
7105
 
cat >>$CONFIG_STATUS <<\_ACEOF
7106
6315
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7107
6316
    ac_cs_recheck=: ;;
7108
 
  --version | --vers* | -V )
7109
 
    echo "$ac_cs_version"; exit 0 ;;
 
6317
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
 
6318
    $as_echo "$ac_cs_version"; exit ;;
 
6319
  --config | --confi | --conf | --con | --co | --c )
 
6320
    $as_echo "$ac_cs_config"; exit ;;
 
6321
  --debug | --debu | --deb | --de | --d | -d )
 
6322
    debug=: ;;
 
6323
  --file | --fil | --fi | --f )
 
6324
    $ac_shift
 
6325
    case $ac_optarg in
 
6326
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
6327
    esac
 
6328
    as_fn_append CONFIG_FILES " '$ac_optarg'"
 
6329
    ac_need_defaults=false;;
 
6330
  --header | --heade | --head | --hea )
 
6331
    $ac_shift
 
6332
    case $ac_optarg in
 
6333
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
6334
    esac
 
6335
    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
 
6336
    ac_need_defaults=false;;
7110
6337
  --he | --h)
7111
6338
    # Conflict between --help and --header
7112
 
    { { echo "$as_me:$LINENO: error: ambiguous option: $1
7113
 
Try \`$0 --help' for more information." >&5
7114
 
echo "$as_me: error: ambiguous option: $1
7115
 
Try \`$0 --help' for more information." >&2;}
7116
 
   { (exit 1); exit 1; }; };;
 
6339
    as_fn_error "ambiguous option: \`$1'
 
6340
Try \`$0 --help' for more information.";;
7117
6341
  --help | --hel | -h )
7118
 
    echo "$ac_cs_usage"; exit 0 ;;
7119
 
  --debug | --d* | -d )
7120
 
    debug=: ;;
7121
 
  --file | --fil | --fi | --f )
7122
 
    $ac_shift
7123
 
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7124
 
    ac_need_defaults=false;;
7125
 
  --header | --heade | --head | --hea )
7126
 
    $ac_shift
7127
 
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7128
 
    ac_need_defaults=false;;
 
6342
    $as_echo "$ac_cs_usage"; exit ;;
7129
6343
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7130
6344
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
7131
6345
    ac_cs_silent=: ;;
7132
6346
 
7133
6347
  # This is an error.
7134
 
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7135
 
Try \`$0 --help' for more information." >&5
7136
 
echo "$as_me: error: unrecognized option: $1
7137
 
Try \`$0 --help' for more information." >&2;}
7138
 
   { (exit 1); exit 1; }; } ;;
 
6348
  -*) as_fn_error "unrecognized option: \`$1'
 
6349
Try \`$0 --help' for more information." ;;
7139
6350
 
7140
 
  *) ac_config_targets="$ac_config_targets $1" ;;
 
6351
  *) as_fn_append ac_config_targets " $1"
 
6352
     ac_need_defaults=false ;;
7141
6353
 
7142
6354
  esac
7143
6355
  shift
7151
6363
fi
7152
6364
 
7153
6365
_ACEOF
7154
 
cat >>$CONFIG_STATUS <<_ACEOF
 
6366
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7155
6367
if \$ac_cs_recheck; then
7156
 
  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7157
 
  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
6368
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
6369
  shift
 
6370
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
 
6371
  CONFIG_SHELL='$SHELL'
 
6372
  export CONFIG_SHELL
 
6373
  exec "\$@"
7158
6374
fi
7159
6375
 
7160
6376
_ACEOF
7161
 
 
7162
 
cat >>$CONFIG_STATUS <<_ACEOF
7163
 
#
7164
 
# INIT-COMMANDS section.
7165
 
#
7166
 
 
 
6377
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
6378
exec 5>>config.log
 
6379
{
 
6380
  echo
 
6381
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
6382
## Running $as_me. ##
 
6383
_ASBOX
 
6384
  $as_echo "$ac_log"
 
6385
} >&5
 
6386
 
 
6387
_ACEOF
 
6388
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
6389
#
 
6390
# INIT-COMMANDS
 
6391
#
7167
6392
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
7168
6393
 
7169
6394
_ACEOF
7170
6395
 
7171
 
 
7172
 
 
7173
 
cat >>$CONFIG_STATUS <<\_ACEOF
 
6396
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
6397
 
 
6398
# Handling of arguments.
7174
6399
for ac_config_target in $ac_config_targets
7175
6400
do
7176
 
  case "$ac_config_target" in
7177
 
  # Handling of arguments.
7178
 
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7179
 
  "cabextract.spec" ) CONFIG_FILES="$CONFIG_FILES cabextract.spec" ;;
7180
 
  "$ac_config_libobj_dir/fnmatch.h" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_libobj_dir/fnmatch.h:$ac_config_libobj_dir/fnmatch_.h" ;;
7181
 
  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
7182
 
  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7183
 
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7184
 
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7185
 
   { (exit 1); exit 1; }; };;
 
6401
  case $ac_config_target in
 
6402
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
 
6403
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 
6404
    "$ac_config_libobj_dir/fnmatch.h") CONFIG_LINKS="$CONFIG_LINKS $ac_config_libobj_dir/fnmatch.h:$ac_config_libobj_dir/fnmatch_.h" ;;
 
6405
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
6406
    "cabextract.spec") CONFIG_FILES="$CONFIG_FILES cabextract.spec" ;;
 
6407
 
 
6408
  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
7186
6409
  esac
7187
6410
done
7188
6411
 
 
6412
 
7189
6413
# If the user did not use the arguments to specify the items to instantiate,
7190
6414
# then the envvar interface is used.  Set only those that are not.
7191
6415
# We use the long form for the default assignment because of an extremely
7198
6422
fi
7199
6423
 
7200
6424
# Have a temporary directory for convenience.  Make it in the build tree
7201
 
# simply because there is no reason to put it here, and in addition,
 
6425
# simply because there is no reason against having it here, and in addition,
7202
6426
# creating and moving files from /tmp can sometimes cause problems.
7203
 
# Create a temporary directory, and hook for its removal unless debugging.
 
6427
# Hook for its removal unless debugging.
 
6428
# Note that there is a small window in which the directory will not be cleaned:
 
6429
# after its creation but before its name has been assigned to `$tmp'.
7204
6430
$debug ||
7205
6431
{
7206
 
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7207
 
  trap '{ (exit 1); exit 1; }' 1 2 13 15
 
6432
  tmp=
 
6433
  trap 'exit_status=$?
 
6434
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
 
6435
' 0
 
6436
  trap 'as_fn_exit 1' 1 2 13 15
7208
6437
}
7209
 
 
7210
6438
# Create a (secure) tmp directory for tmp files.
7211
6439
 
7212
6440
{
7213
 
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
 
6441
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7214
6442
  test -n "$tmp" && test -d "$tmp"
7215
6443
}  ||
7216
6444
{
7217
 
  tmp=./confstat$$-$RANDOM
7218
 
  (umask 077 && mkdir $tmp)
7219
 
} ||
 
6445
  tmp=./conf$$-$RANDOM
 
6446
  (umask 077 && mkdir "$tmp")
 
6447
} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
 
6448
 
 
6449
# Set up the scripts for CONFIG_FILES section.
 
6450
# No need to generate them if there are no CONFIG_FILES.
 
6451
# This happens for instance with `./config.status config.h'.
 
6452
if test -n "$CONFIG_FILES"; then
 
6453
 
 
6454
 
 
6455
ac_cr=`echo X | tr X '\015'`
 
6456
# On cygwin, bash can eat \r inside `` if the user requested igncr.
 
6457
# But we know of no other shell where ac_cr would be empty at this
 
6458
# point, so we can use a bashism as a fallback.
 
6459
if test "x$ac_cr" = x; then
 
6460
  eval ac_cr=\$\'\\r\'
 
6461
fi
 
6462
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
 
6463
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
 
6464
  ac_cs_awk_cr='\r'
 
6465
else
 
6466
  ac_cs_awk_cr=$ac_cr
 
6467
fi
 
6468
 
 
6469
echo 'BEGIN {' >"$tmp/subs1.awk" &&
 
6470
_ACEOF
 
6471
 
 
6472
 
7220
6473
{
7221
 
   echo "$me: cannot create a temporary directory in ." >&2
7222
 
   { (exit 1); exit 1; }
7223
 
}
7224
 
 
7225
 
_ACEOF
7226
 
 
7227
 
cat >>$CONFIG_STATUS <<_ACEOF
7228
 
 
7229
 
#
7230
 
# CONFIG_FILES section.
7231
 
#
7232
 
 
7233
 
# No need to generate the scripts if there are no CONFIG_FILES.
7234
 
# This happens for instance when ./config.status config.h
7235
 
if test -n "\$CONFIG_FILES"; then
7236
 
  # Protect against being on the right side of a sed subst in config.status.
7237
 
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7238
 
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7239
 
s,@SHELL@,$SHELL,;t t
7240
 
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7241
 
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7242
 
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7243
 
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7244
 
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7245
 
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7246
 
s,@exec_prefix@,$exec_prefix,;t t
7247
 
s,@prefix@,$prefix,;t t
7248
 
s,@program_transform_name@,$program_transform_name,;t t
7249
 
s,@bindir@,$bindir,;t t
7250
 
s,@sbindir@,$sbindir,;t t
7251
 
s,@libexecdir@,$libexecdir,;t t
7252
 
s,@datadir@,$datadir,;t t
7253
 
s,@sysconfdir@,$sysconfdir,;t t
7254
 
s,@sharedstatedir@,$sharedstatedir,;t t
7255
 
s,@localstatedir@,$localstatedir,;t t
7256
 
s,@libdir@,$libdir,;t t
7257
 
s,@includedir@,$includedir,;t t
7258
 
s,@oldincludedir@,$oldincludedir,;t t
7259
 
s,@infodir@,$infodir,;t t
7260
 
s,@mandir@,$mandir,;t t
7261
 
s,@build_alias@,$build_alias,;t t
7262
 
s,@host_alias@,$host_alias,;t t
7263
 
s,@target_alias@,$target_alias,;t t
7264
 
s,@DEFS@,$DEFS,;t t
7265
 
s,@ECHO_C@,$ECHO_C,;t t
7266
 
s,@ECHO_N@,$ECHO_N,;t t
7267
 
s,@ECHO_T@,$ECHO_T,;t t
7268
 
s,@LIBS@,$LIBS,;t t
7269
 
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7270
 
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7271
 
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7272
 
s,@CYGPATH_W@,$CYGPATH_W,;t t
7273
 
s,@PACKAGE@,$PACKAGE,;t t
7274
 
s,@VERSION@,$VERSION,;t t
7275
 
s,@ACLOCAL@,$ACLOCAL,;t t
7276
 
s,@AUTOCONF@,$AUTOCONF,;t t
7277
 
s,@AUTOMAKE@,$AUTOMAKE,;t t
7278
 
s,@AUTOHEADER@,$AUTOHEADER,;t t
7279
 
s,@MAKEINFO@,$MAKEINFO,;t t
7280
 
s,@install_sh@,$install_sh,;t t
7281
 
s,@STRIP@,$STRIP,;t t
7282
 
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
7283
 
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
7284
 
s,@mkdir_p@,$mkdir_p,;t t
7285
 
s,@AWK@,$AWK,;t t
7286
 
s,@SET_MAKE@,$SET_MAKE,;t t
7287
 
s,@am__leading_dot@,$am__leading_dot,;t t
7288
 
s,@AMTAR@,$AMTAR,;t t
7289
 
s,@am__tar@,$am__tar,;t t
7290
 
s,@am__untar@,$am__untar,;t t
7291
 
s,@CC@,$CC,;t t
7292
 
s,@CFLAGS@,$CFLAGS,;t t
7293
 
s,@LDFLAGS@,$LDFLAGS,;t t
7294
 
s,@CPPFLAGS@,$CPPFLAGS,;t t
7295
 
s,@ac_ct_CC@,$ac_ct_CC,;t t
7296
 
s,@EXEEXT@,$EXEEXT,;t t
7297
 
s,@OBJEXT@,$OBJEXT,;t t
7298
 
s,@DEPDIR@,$DEPDIR,;t t
7299
 
s,@am__include@,$am__include,;t t
7300
 
s,@am__quote@,$am__quote,;t t
7301
 
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
7302
 
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
7303
 
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
7304
 
s,@CCDEPMODE@,$CCDEPMODE,;t t
7305
 
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
7306
 
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
7307
 
s,@RANLIB@,$RANLIB,;t t
7308
 
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
7309
 
s,@CPP@,$CPP,;t t
7310
 
s,@EGREP@,$EGREP,;t t
7311
 
s,@LIBOBJS@,$LIBOBJS,;t t
7312
 
s,@ALLOCA@,$ALLOCA,;t t
7313
 
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7314
 
CEOF
7315
 
 
7316
 
_ACEOF
7317
 
 
7318
 
  cat >>$CONFIG_STATUS <<\_ACEOF
7319
 
  # Split the substitutions into bite-sized pieces for seds with
7320
 
  # small command number limits, like on Digital OSF/1 and HP-UX.
7321
 
  ac_max_sed_lines=48
7322
 
  ac_sed_frag=1 # Number of current file.
7323
 
  ac_beg=1 # First line for current file.
7324
 
  ac_end=$ac_max_sed_lines # Line after last line for current file.
7325
 
  ac_more_lines=:
7326
 
  ac_sed_cmds=
7327
 
  while $ac_more_lines; do
7328
 
    if test $ac_beg -gt 1; then
7329
 
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7330
 
    else
7331
 
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7332
 
    fi
7333
 
    if test ! -s $tmp/subs.frag; then
7334
 
      ac_more_lines=false
7335
 
    else
7336
 
      # The purpose of the label and of the branching condition is to
7337
 
      # speed up the sed processing (if there are no `@' at all, there
7338
 
      # is no need to browse any of the substitutions).
7339
 
      # These are the two extra sed commands mentioned above.
7340
 
      (echo ':t
7341
 
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7342
 
      if test -z "$ac_sed_cmds"; then
7343
 
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7344
 
      else
7345
 
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7346
 
      fi
7347
 
      ac_sed_frag=`expr $ac_sed_frag + 1`
7348
 
      ac_beg=$ac_end
7349
 
      ac_end=`expr $ac_end + $ac_max_sed_lines`
7350
 
    fi
7351
 
  done
7352
 
  if test -z "$ac_sed_cmds"; then
7353
 
    ac_sed_cmds=cat
 
6474
  echo "cat >conf$$subs.awk <<_ACEOF" &&
 
6475
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
 
6476
  echo "_ACEOF"
 
6477
} >conf$$subs.sh ||
 
6478
  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
 
6479
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
 
6480
ac_delim='%!_!# '
 
6481
for ac_last_try in false false false false false :; do
 
6482
  . ./conf$$subs.sh ||
 
6483
    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
 
6484
 
 
6485
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
 
6486
  if test $ac_delim_n = $ac_delim_num; then
 
6487
    break
 
6488
  elif $ac_last_try; then
 
6489
    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
 
6490
  else
 
6491
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7354
6492
  fi
 
6493
done
 
6494
rm -f conf$$subs.sh
 
6495
 
 
6496
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
6497
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
 
6498
_ACEOF
 
6499
sed -n '
 
6500
h
 
6501
s/^/S["/; s/!.*/"]=/
 
6502
p
 
6503
g
 
6504
s/^[^!]*!//
 
6505
:repl
 
6506
t repl
 
6507
s/'"$ac_delim"'$//
 
6508
t delim
 
6509
:nl
 
6510
h
 
6511
s/\(.\{148\}\)..*/\1/
 
6512
t more1
 
6513
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
 
6514
p
 
6515
n
 
6516
b repl
 
6517
:more1
 
6518
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 
6519
p
 
6520
g
 
6521
s/.\{148\}//
 
6522
t nl
 
6523
:delim
 
6524
h
 
6525
s/\(.\{148\}\)..*/\1/
 
6526
t more2
 
6527
s/["\\]/\\&/g; s/^/"/; s/$/"/
 
6528
p
 
6529
b
 
6530
:more2
 
6531
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 
6532
p
 
6533
g
 
6534
s/.\{148\}//
 
6535
t delim
 
6536
' <conf$$subs.awk | sed '
 
6537
/^[^""]/{
 
6538
  N
 
6539
  s/\n//
 
6540
}
 
6541
' >>$CONFIG_STATUS || ac_write_fail=1
 
6542
rm -f conf$$subs.awk
 
6543
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
6544
_ACAWK
 
6545
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
 
6546
  for (key in S) S_is_set[key] = 1
 
6547
  FS = ""
 
6548
 
 
6549
}
 
6550
{
 
6551
  line = $ 0
 
6552
  nfields = split(line, field, "@")
 
6553
  substed = 0
 
6554
  len = length(field[1])
 
6555
  for (i = 2; i < nfields; i++) {
 
6556
    key = field[i]
 
6557
    keylen = length(key)
 
6558
    if (S_is_set[key]) {
 
6559
      value = S[key]
 
6560
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
 
6561
      len += length(value) + length(field[++i])
 
6562
      substed = 1
 
6563
    } else
 
6564
      len += 1 + keylen
 
6565
  }
 
6566
 
 
6567
  print line
 
6568
}
 
6569
 
 
6570
_ACAWK
 
6571
_ACEOF
 
6572
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
6573
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
 
6574
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
 
6575
else
 
6576
  cat
 
6577
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
 
6578
  || as_fn_error "could not setup config files machinery" "$LINENO" 5
 
6579
_ACEOF
 
6580
 
 
6581
# VPATH may cause trouble with some makes, so we remove $(srcdir),
 
6582
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 
6583
# trailing colons and then remove the whole line if VPATH becomes empty
 
6584
# (actually we leave an empty line to preserve line numbers).
 
6585
if test "x$srcdir" = x.; then
 
6586
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
 
6587
s/:*\$(srcdir):*/:/
 
6588
s/:*\${srcdir}:*/:/
 
6589
s/:*@srcdir@:*/:/
 
6590
s/^\([^=]*=[     ]*\):*/\1/
 
6591
s/:*$//
 
6592
s/^[^=]*=[       ]*$//
 
6593
}'
 
6594
fi
 
6595
 
 
6596
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7355
6597
fi # test -n "$CONFIG_FILES"
7356
6598
 
7357
 
_ACEOF
7358
 
cat >>$CONFIG_STATUS <<\_ACEOF
7359
 
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7360
 
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7361
 
  case $ac_file in
7362
 
  - | *:- | *:-:* ) # input from stdin
7363
 
        cat >$tmp/stdin
7364
 
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7365
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7366
 
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7367
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7368
 
  * )   ac_file_in=$ac_file.in ;;
7369
 
  esac
7370
 
 
7371
 
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7372
 
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
6599
# Set up the scripts for CONFIG_HEADERS section.
 
6600
# No need to generate them if there are no CONFIG_HEADERS.
 
6601
# This happens for instance with `./config.status Makefile'.
 
6602
if test -n "$CONFIG_HEADERS"; then
 
6603
cat >"$tmp/defines.awk" <<\_ACAWK ||
 
6604
BEGIN {
 
6605
_ACEOF
 
6606
 
 
6607
# Transform confdefs.h into an awk script `defines.awk', embedded as
 
6608
# here-document in config.status, that substitutes the proper values into
 
6609
# config.h.in to produce config.h.
 
6610
 
 
6611
# Create a delimiter string that does not exist in confdefs.h, to ease
 
6612
# handling of long lines.
 
6613
ac_delim='%!_!# '
 
6614
for ac_last_try in false false :; do
 
6615
  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
 
6616
  if test -z "$ac_t"; then
 
6617
    break
 
6618
  elif $ac_last_try; then
 
6619
    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
 
6620
  else
 
6621
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
6622
  fi
 
6623
done
 
6624
 
 
6625
# For the awk script, D is an array of macro values keyed by name,
 
6626
# likewise P contains macro parameters if any.  Preserve backslash
 
6627
# newline sequences.
 
6628
 
 
6629
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
 
6630
sed -n '
 
6631
s/.\{148\}/&'"$ac_delim"'/g
 
6632
t rset
 
6633
:rset
 
6634
s/^[     ]*#[    ]*define[       ][      ]*/ /
 
6635
t def
 
6636
d
 
6637
:def
 
6638
s/\\$//
 
6639
t bsnl
 
6640
s/["\\]/\\&/g
 
6641
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
 
6642
D["\1"]=" \3"/p
 
6643
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
 
6644
d
 
6645
:bsnl
 
6646
s/["\\]/\\&/g
 
6647
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
 
6648
D["\1"]=" \3\\\\\\n"\\/p
 
6649
t cont
 
6650
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
 
6651
t cont
 
6652
d
 
6653
:cont
 
6654
n
 
6655
s/.\{148\}/&'"$ac_delim"'/g
 
6656
t clear
 
6657
:clear
 
6658
s/\\$//
 
6659
t bsnlc
 
6660
s/["\\]/\\&/g; s/^/"/; s/$/"/p
 
6661
d
 
6662
:bsnlc
 
6663
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
 
6664
b cont
 
6665
' <confdefs.h | sed '
 
6666
s/'"$ac_delim"'/"\\\
 
6667
"/g' >>$CONFIG_STATUS || ac_write_fail=1
 
6668
 
 
6669
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
6670
  for (key in D) D_is_set[key] = 1
 
6671
  FS = ""
 
6672
}
 
6673
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
 
6674
  line = \$ 0
 
6675
  split(line, arg, " ")
 
6676
  if (arg[1] == "#") {
 
6677
    defundef = arg[2]
 
6678
    mac1 = arg[3]
 
6679
  } else {
 
6680
    defundef = substr(arg[1], 2)
 
6681
    mac1 = arg[2]
 
6682
  }
 
6683
  split(mac1, mac2, "(") #)
 
6684
  macro = mac2[1]
 
6685
  prefix = substr(line, 1, index(line, defundef) - 1)
 
6686
  if (D_is_set[macro]) {
 
6687
    # Preserve the white space surrounding the "#".
 
6688
    print prefix "define", macro P[macro] D[macro]
 
6689
    next
 
6690
  } else {
 
6691
    # Replace #undef with comments.  This is necessary, for example,
 
6692
    # in the case of _POSIX_SOURCE, which is predefined and required
 
6693
    # on some systems where configure will not decide to define it.
 
6694
    if (defundef == "undef") {
 
6695
      print "/*", prefix defundef, macro, "*/"
 
6696
      next
 
6697
    }
 
6698
  }
 
6699
}
 
6700
{ print }
 
6701
_ACAWK
 
6702
_ACEOF
 
6703
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
6704
  as_fn_error "could not setup config headers machinery" "$LINENO" 5
 
6705
fi # test -n "$CONFIG_HEADERS"
 
6706
 
 
6707
 
 
6708
eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
 
6709
shift
 
6710
for ac_tag
 
6711
do
 
6712
  case $ac_tag in
 
6713
  :[FHLC]) ac_mode=$ac_tag; continue;;
 
6714
  esac
 
6715
  case $ac_mode$ac_tag in
 
6716
  :[FHL]*:*);;
 
6717
  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
 
6718
  :[FH]-) ac_tag=-:-;;
 
6719
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
 
6720
  esac
 
6721
  ac_save_IFS=$IFS
 
6722
  IFS=:
 
6723
  set x $ac_tag
 
6724
  IFS=$ac_save_IFS
 
6725
  shift
 
6726
  ac_file=$1
 
6727
  shift
 
6728
 
 
6729
  case $ac_mode in
 
6730
  :L) ac_source=$1;;
 
6731
  :[FH])
 
6732
    ac_file_inputs=
 
6733
    for ac_f
 
6734
    do
 
6735
      case $ac_f in
 
6736
      -) ac_f="$tmp/stdin";;
 
6737
      *) # Look for the file first in the build tree, then in the source tree
 
6738
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
 
6739
         # because $ac_f cannot contain `:'.
 
6740
         test -f "$ac_f" ||
 
6741
           case $ac_f in
 
6742
           [\\/$]*) false;;
 
6743
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
 
6744
           esac ||
 
6745
           as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
 
6746
      esac
 
6747
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
 
6748
      as_fn_append ac_file_inputs " '$ac_f'"
 
6749
    done
 
6750
 
 
6751
    # Let's still pretend it is `configure' which instantiates (i.e., don't
 
6752
    # use $as_me), people would be surprised to read:
 
6753
    #    /* config.h.  Generated by config.status.  */
 
6754
    configure_input='Generated from '`
 
6755
          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
 
6756
        `' by configure.'
 
6757
    if test x"$ac_file" != x-; then
 
6758
      configure_input="$ac_file.  $configure_input"
 
6759
      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
 
6760
$as_echo "$as_me: creating $ac_file" >&6;}
 
6761
    fi
 
6762
    # Neutralize special characters interpreted by sed in replacement strings.
 
6763
    case $configure_input in #(
 
6764
    *\&* | *\|* | *\\* )
 
6765
       ac_sed_conf_input=`$as_echo "$configure_input" |
 
6766
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
 
6767
    *) ac_sed_conf_input=$configure_input;;
 
6768
    esac
 
6769
 
 
6770
    case $ac_tag in
 
6771
    *:-:* | *:-) cat >"$tmp/stdin" \
 
6772
      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
 
6773
    esac
 
6774
    ;;
 
6775
  esac
 
6776
 
 
6777
  ac_dir=`$as_dirname -- "$ac_file" ||
7373
6778
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7374
6779
         X"$ac_file" : 'X\(//\)[^/]' \| \
7375
6780
         X"$ac_file" : 'X\(//\)$' \| \
7376
 
         X"$ac_file" : 'X\(/\)' \| \
7377
 
         .     : '\(.\)' 2>/dev/null ||
7378
 
echo X"$ac_file" |
7379
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7380
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7381
 
          /^X\(\/\/\)$/{ s//\1/; q; }
7382
 
          /^X\(\/\).*/{ s//\1/; q; }
7383
 
          s/.*/./; q'`
7384
 
  { if $as_mkdir_p; then
7385
 
    mkdir -p "$ac_dir"
7386
 
  else
7387
 
    as_dir="$ac_dir"
7388
 
    as_dirs=
7389
 
    while test ! -d "$as_dir"; do
7390
 
      as_dirs="$as_dir $as_dirs"
7391
 
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
7392
 
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7393
 
         X"$as_dir" : 'X\(//\)[^/]' \| \
7394
 
         X"$as_dir" : 'X\(//\)$' \| \
7395
 
         X"$as_dir" : 'X\(/\)' \| \
7396
 
         .     : '\(.\)' 2>/dev/null ||
7397
 
echo X"$as_dir" |
7398
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7399
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7400
 
          /^X\(\/\/\)$/{ s//\1/; q; }
7401
 
          /^X\(\/\).*/{ s//\1/; q; }
7402
 
          s/.*/./; q'`
7403
 
    done
7404
 
    test ! -n "$as_dirs" || mkdir $as_dirs
7405
 
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7406
 
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7407
 
   { (exit 1); exit 1; }; }; }
7408
 
 
 
6781
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
 
6782
$as_echo X"$ac_file" |
 
6783
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
6784
            s//\1/
 
6785
            q
 
6786
          }
 
6787
          /^X\(\/\/\)[^/].*/{
 
6788
            s//\1/
 
6789
            q
 
6790
          }
 
6791
          /^X\(\/\/\)$/{
 
6792
            s//\1/
 
6793
            q
 
6794
          }
 
6795
          /^X\(\/\).*/{
 
6796
            s//\1/
 
6797
            q
 
6798
          }
 
6799
          s/.*/./; q'`
 
6800
  as_dir="$ac_dir"; as_fn_mkdir_p
7409
6801
  ac_builddir=.
7410
6802
 
7411
 
if test "$ac_dir" != .; then
7412
 
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7413
 
  # A "../" for each directory in $ac_dir_suffix.
7414
 
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7415
 
else
7416
 
  ac_dir_suffix= ac_top_builddir=
7417
 
fi
 
6803
case "$ac_dir" in
 
6804
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
6805
*)
 
6806
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 
6807
  # A ".." for each directory in $ac_dir_suffix.
 
6808
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 
6809
  case $ac_top_builddir_sub in
 
6810
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
6811
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
6812
  esac ;;
 
6813
esac
 
6814
ac_abs_top_builddir=$ac_pwd
 
6815
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
6816
# for backward compatibility:
 
6817
ac_top_builddir=$ac_top_build_prefix
7418
6818
 
7419
6819
case $srcdir in
7420
 
  .)  # No --srcdir option.  We are building in place.
 
6820
  .)  # We are building in place.
7421
6821
    ac_srcdir=.
7422
 
    if test -z "$ac_top_builddir"; then
7423
 
       ac_top_srcdir=.
7424
 
    else
7425
 
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7426
 
    fi ;;
7427
 
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
6822
    ac_top_srcdir=$ac_top_builddir_sub
 
6823
    ac_abs_top_srcdir=$ac_pwd ;;
 
6824
  [\\/]* | ?:[\\/]* )  # Absolute name.
7428
6825
    ac_srcdir=$srcdir$ac_dir_suffix;
7429
 
    ac_top_srcdir=$srcdir ;;
7430
 
  *) # Relative path.
7431
 
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7432
 
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
7433
 
esac
7434
 
 
7435
 
# Do not use `cd foo && pwd` to compute absolute paths, because
7436
 
# the directories may not exist.
7437
 
case `pwd` in
7438
 
.) ac_abs_builddir="$ac_dir";;
7439
 
*)
7440
 
  case "$ac_dir" in
7441
 
  .) ac_abs_builddir=`pwd`;;
7442
 
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7443
 
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
7444
 
  esac;;
7445
 
esac
7446
 
case $ac_abs_builddir in
7447
 
.) ac_abs_top_builddir=${ac_top_builddir}.;;
7448
 
*)
7449
 
  case ${ac_top_builddir}. in
7450
 
  .) ac_abs_top_builddir=$ac_abs_builddir;;
7451
 
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7452
 
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7453
 
  esac;;
7454
 
esac
7455
 
case $ac_abs_builddir in
7456
 
.) ac_abs_srcdir=$ac_srcdir;;
7457
 
*)
7458
 
  case $ac_srcdir in
7459
 
  .) ac_abs_srcdir=$ac_abs_builddir;;
7460
 
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7461
 
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7462
 
  esac;;
7463
 
esac
7464
 
case $ac_abs_builddir in
7465
 
.) ac_abs_top_srcdir=$ac_top_srcdir;;
7466
 
*)
7467
 
  case $ac_top_srcdir in
7468
 
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
7469
 
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7470
 
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7471
 
  esac;;
7472
 
esac
7473
 
 
 
6826
    ac_top_srcdir=$srcdir
 
6827
    ac_abs_top_srcdir=$srcdir ;;
 
6828
  *) # Relative name.
 
6829
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
6830
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
6831
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
6832
esac
 
6833
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
6834
 
 
6835
 
 
6836
  case $ac_mode in
 
6837
  :F)
 
6838
  #
 
6839
  # CONFIG_FILE
 
6840
  #
7474
6841
 
7475
6842
  case $INSTALL in
7476
6843
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7477
 
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
7478
 
  esac
7479
 
 
7480
 
  # Let's still pretend it is `configure' which instantiates (i.e., don't
7481
 
  # use $as_me), people would be surprised to read:
7482
 
  #    /* config.h.  Generated by config.status.  */
7483
 
  if test x"$ac_file" = x-; then
7484
 
    configure_input=
7485
 
  else
7486
 
    configure_input="$ac_file.  "
7487
 
  fi
7488
 
  configure_input=$configure_input"Generated from `echo $ac_file_in |
7489
 
                                     sed 's,.*/,,'` by configure."
7490
 
 
7491
 
  # First look for the input files in the build tree, otherwise in the
7492
 
  # src tree.
7493
 
  ac_file_inputs=`IFS=:
7494
 
    for f in $ac_file_in; do
7495
 
      case $f in
7496
 
      -) echo $tmp/stdin ;;
7497
 
      [\\/$]*)
7498
 
         # Absolute (can't be DOS-style, as IFS=:)
7499
 
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7500
 
echo "$as_me: error: cannot find input file: $f" >&2;}
7501
 
   { (exit 1); exit 1; }; }
7502
 
         echo "$f";;
7503
 
      *) # Relative
7504
 
         if test -f "$f"; then
7505
 
           # Build tree
7506
 
           echo "$f"
7507
 
         elif test -f "$srcdir/$f"; then
7508
 
           # Source tree
7509
 
           echo "$srcdir/$f"
7510
 
         else
7511
 
           # /dev/null tree
7512
 
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7513
 
echo "$as_me: error: cannot find input file: $f" >&2;}
7514
 
   { (exit 1); exit 1; }; }
7515
 
         fi;;
7516
 
      esac
7517
 
    done` || { (exit 1); exit 1; }
7518
 
 
7519
 
  if test x"$ac_file" != x-; then
7520
 
    { echo "$as_me:$LINENO: creating $ac_file" >&5
7521
 
echo "$as_me: creating $ac_file" >&6;}
7522
 
    rm -f "$ac_file"
7523
 
  fi
7524
 
_ACEOF
7525
 
cat >>$CONFIG_STATUS <<_ACEOF
7526
 
  sed "$ac_vpsub
 
6844
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
 
6845
  esac
 
6846
  ac_MKDIR_P=$MKDIR_P
 
6847
  case $MKDIR_P in
 
6848
  [\\/$]* | ?:[\\/]* ) ;;
 
6849
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
 
6850
  esac
 
6851
_ACEOF
 
6852
 
 
6853
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
6854
# If the template does not know about datarootdir, expand it.
 
6855
# FIXME: This hack should be removed a few years after 2.60.
 
6856
ac_datarootdir_hack=; ac_datarootdir_seen=
 
6857
ac_sed_dataroot='
 
6858
/datarootdir/ {
 
6859
  p
 
6860
  q
 
6861
}
 
6862
/@datadir@/p
 
6863
/@docdir@/p
 
6864
/@infodir@/p
 
6865
/@localedir@/p
 
6866
/@mandir@/p'
 
6867
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
 
6868
*datarootdir*) ac_datarootdir_seen=yes;;
 
6869
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
 
6870
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
 
6871
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
 
6872
_ACEOF
 
6873
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
6874
  ac_datarootdir_hack='
 
6875
  s&@datadir@&$datadir&g
 
6876
  s&@docdir@&$docdir&g
 
6877
  s&@infodir@&$infodir&g
 
6878
  s&@localedir@&$localedir&g
 
6879
  s&@mandir@&$mandir&g
 
6880
  s&\\\${datarootdir}&$datarootdir&g' ;;
 
6881
esac
 
6882
_ACEOF
 
6883
 
 
6884
# Neutralize VPATH when `$srcdir' = `.'.
 
6885
# Shell code in configure.ac might set extrasub.
 
6886
# FIXME: do we really want to maintain this feature?
 
6887
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
6888
ac_sed_extra="$ac_vpsub
7527
6889
$extrasub
7528
6890
_ACEOF
7529
 
cat >>$CONFIG_STATUS <<\_ACEOF
 
6891
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7530
6892
:t
7531
6893
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7532
 
s,@configure_input@,$configure_input,;t t
7533
 
s,@srcdir@,$ac_srcdir,;t t
7534
 
s,@abs_srcdir@,$ac_abs_srcdir,;t t
7535
 
s,@top_srcdir@,$ac_top_srcdir,;t t
7536
 
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7537
 
s,@builddir@,$ac_builddir,;t t
7538
 
s,@abs_builddir@,$ac_abs_builddir,;t t
7539
 
s,@top_builddir@,$ac_top_builddir,;t t
7540
 
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7541
 
s,@INSTALL@,$ac_INSTALL,;t t
7542
 
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7543
 
  rm -f $tmp/stdin
7544
 
  if test x"$ac_file" != x-; then
7545
 
    mv $tmp/out $ac_file
7546
 
  else
7547
 
    cat $tmp/out
7548
 
    rm -f $tmp/out
7549
 
  fi
7550
 
 
7551
 
done
7552
 
_ACEOF
7553
 
cat >>$CONFIG_STATUS <<\_ACEOF
7554
 
 
7555
 
#
7556
 
# CONFIG_HEADER section.
7557
 
#
7558
 
 
7559
 
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7560
 
# NAME is the cpp macro being defined and VALUE is the value it is being given.
7561
 
#
7562
 
# ac_d sets the value in "#define NAME VALUE" lines.
7563
 
ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
7564
 
ac_dB='[         ].*$,\1#\2'
7565
 
ac_dC=' '
7566
 
ac_dD=',;t'
7567
 
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7568
 
ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
7569
 
ac_uB='$,\1#\2define\3'
7570
 
ac_uC=' '
7571
 
ac_uD=',;t'
7572
 
 
7573
 
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
7574
 
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
6894
s|@configure_input@|$ac_sed_conf_input|;t t
 
6895
s&@top_builddir@&$ac_top_builddir_sub&;t t
 
6896
s&@top_build_prefix@&$ac_top_build_prefix&;t t
 
6897
s&@srcdir@&$ac_srcdir&;t t
 
6898
s&@abs_srcdir@&$ac_abs_srcdir&;t t
 
6899
s&@top_srcdir@&$ac_top_srcdir&;t t
 
6900
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
 
6901
s&@builddir@&$ac_builddir&;t t
 
6902
s&@abs_builddir@&$ac_abs_builddir&;t t
 
6903
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
 
6904
s&@INSTALL@&$ac_INSTALL&;t t
 
6905
s&@MKDIR_P@&$ac_MKDIR_P&;t t
 
6906
$ac_datarootdir_hack
 
6907
"
 
6908
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
 
6909
  || as_fn_error "could not create $ac_file" "$LINENO" 5
 
6910
 
 
6911
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
 
6912
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
 
6913
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
 
6914
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
6915
which seems to be undefined.  Please make sure it is defined." >&5
 
6916
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
6917
which seems to be undefined.  Please make sure it is defined." >&2;}
 
6918
 
 
6919
  rm -f "$tmp/stdin"
7575
6920
  case $ac_file in
7576
 
  - | *:- | *:-:* ) # input from stdin
7577
 
        cat >$tmp/stdin
7578
 
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7579
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7580
 
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7581
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7582
 
  * )   ac_file_in=$ac_file.in ;;
7583
 
  esac
7584
 
 
7585
 
  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
7586
 
echo "$as_me: creating $ac_file" >&6;}
7587
 
 
7588
 
  # First look for the input files in the build tree, otherwise in the
7589
 
  # src tree.
7590
 
  ac_file_inputs=`IFS=:
7591
 
    for f in $ac_file_in; do
7592
 
      case $f in
7593
 
      -) echo $tmp/stdin ;;
7594
 
      [\\/$]*)
7595
 
         # Absolute (can't be DOS-style, as IFS=:)
7596
 
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7597
 
echo "$as_me: error: cannot find input file: $f" >&2;}
7598
 
   { (exit 1); exit 1; }; }
7599
 
         # Do quote $f, to prevent DOS paths from being IFS'd.
7600
 
         echo "$f";;
7601
 
      *) # Relative
7602
 
         if test -f "$f"; then
7603
 
           # Build tree
7604
 
           echo "$f"
7605
 
         elif test -f "$srcdir/$f"; then
7606
 
           # Source tree
7607
 
           echo "$srcdir/$f"
7608
 
         else
7609
 
           # /dev/null tree
7610
 
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7611
 
echo "$as_me: error: cannot find input file: $f" >&2;}
7612
 
   { (exit 1); exit 1; }; }
7613
 
         fi;;
7614
 
      esac
7615
 
    done` || { (exit 1); exit 1; }
7616
 
  # Remove the trailing spaces.
7617
 
  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
7618
 
 
7619
 
_ACEOF
7620
 
 
7621
 
# Transform confdefs.h into two sed scripts, `conftest.defines' and
7622
 
# `conftest.undefs', that substitutes the proper values into
7623
 
# config.h.in to produce config.h.  The first handles `#define'
7624
 
# templates, and the second `#undef' templates.
7625
 
# And first: Protect against being on the right side of a sed subst in
7626
 
# config.status.  Protect against being in an unquoted here document
7627
 
# in config.status.
7628
 
rm -f conftest.defines conftest.undefs
7629
 
# Using a here document instead of a string reduces the quoting nightmare.
7630
 
# Putting comments in sed scripts is not portable.
7631
 
#
7632
 
# `end' is used to avoid that the second main sed command (meant for
7633
 
# 0-ary CPP macros) applies to n-ary macro definitions.
7634
 
# See the Autoconf documentation for `clear'.
7635
 
cat >confdef2sed.sed <<\_ACEOF
7636
 
s/[\\&,]/\\&/g
7637
 
s,[\\$`],\\&,g
7638
 
t clear
7639
 
: clear
7640
 
s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7641
 
t end
7642
 
s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7643
 
: end
7644
 
_ACEOF
7645
 
# If some macros were called several times there might be several times
7646
 
# the same #defines, which is useless.  Nevertheless, we may not want to
7647
 
# sort them, since we want the *last* AC-DEFINE to be honored.
7648
 
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7649
 
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7650
 
rm -f confdef2sed.sed
7651
 
 
7652
 
# This sed command replaces #undef with comments.  This is necessary, for
7653
 
# example, in the case of _POSIX_SOURCE, which is predefined and required
7654
 
# on some systems where configure will not decide to define it.
7655
 
cat >>conftest.undefs <<\_ACEOF
7656
 
s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7657
 
_ACEOF
7658
 
 
7659
 
# Break up conftest.defines because some shells have a limit on the size
7660
 
# of here documents, and old seds have small limits too (100 cmds).
7661
 
echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7662
 
echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7663
 
echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7664
 
echo '  :' >>$CONFIG_STATUS
7665
 
rm -f conftest.tail
7666
 
while grep . conftest.defines >/dev/null
7667
 
do
7668
 
  # Write a limited-size here document to $tmp/defines.sed.
7669
 
  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7670
 
  # Speed up: don't consider the non `#define' lines.
7671
 
  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
7672
 
  # Work around the forget-to-reset-the-flag bug.
7673
 
  echo 't clr' >>$CONFIG_STATUS
7674
 
  echo ': clr' >>$CONFIG_STATUS
7675
 
  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
7676
 
  echo 'CEOF
7677
 
  sed -f $tmp/defines.sed $tmp/in >$tmp/out
7678
 
  rm -f $tmp/in
7679
 
  mv $tmp/out $tmp/in
7680
 
' >>$CONFIG_STATUS
7681
 
  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
7682
 
  rm -f conftest.defines
7683
 
  mv conftest.tail conftest.defines
7684
 
done
7685
 
rm -f conftest.defines
7686
 
echo '  fi # grep' >>$CONFIG_STATUS
7687
 
echo >>$CONFIG_STATUS
7688
 
 
7689
 
# Break up conftest.undefs because some shells have a limit on the size
7690
 
# of here documents, and old seds have small limits too (100 cmds).
7691
 
echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
7692
 
rm -f conftest.tail
7693
 
while grep . conftest.undefs >/dev/null
7694
 
do
7695
 
  # Write a limited-size here document to $tmp/undefs.sed.
7696
 
  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7697
 
  # Speed up: don't consider the non `#undef'
7698
 
  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
7699
 
  # Work around the forget-to-reset-the-flag bug.
7700
 
  echo 't clr' >>$CONFIG_STATUS
7701
 
  echo ': clr' >>$CONFIG_STATUS
7702
 
  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7703
 
  echo 'CEOF
7704
 
  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7705
 
  rm -f $tmp/in
7706
 
  mv $tmp/out $tmp/in
7707
 
' >>$CONFIG_STATUS
7708
 
  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7709
 
  rm -f conftest.undefs
7710
 
  mv conftest.tail conftest.undefs
7711
 
done
7712
 
rm -f conftest.undefs
7713
 
 
7714
 
cat >>$CONFIG_STATUS <<\_ACEOF
7715
 
  # Let's still pretend it is `configure' which instantiates (i.e., don't
7716
 
  # use $as_me), people would be surprised to read:
7717
 
  #    /* config.h.  Generated by config.status.  */
7718
 
  if test x"$ac_file" = x-; then
7719
 
    echo "/* Generated by configure.  */" >$tmp/config.h
7720
 
  else
7721
 
    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
7722
 
  fi
7723
 
  cat $tmp/in >>$tmp/config.h
7724
 
  rm -f $tmp/in
 
6921
  -) cat "$tmp/out" && rm -f "$tmp/out";;
 
6922
  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
 
6923
  esac \
 
6924
  || as_fn_error "could not create $ac_file" "$LINENO" 5
 
6925
 ;;
 
6926
  :H)
 
6927
  #
 
6928
  # CONFIG_HEADER
 
6929
  #
7725
6930
  if test x"$ac_file" != x-; then
7726
 
    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
7727
 
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7728
 
echo "$as_me: $ac_file is unchanged" >&6;}
 
6931
    {
 
6932
      $as_echo "/* $configure_input  */" \
 
6933
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
 
6934
    } >"$tmp/config.h" \
 
6935
      || as_fn_error "could not create $ac_file" "$LINENO" 5
 
6936
    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
 
6937
      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
 
6938
$as_echo "$as_me: $ac_file is unchanged" >&6;}
7729
6939
    else
7730
 
      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7731
 
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7732
 
         X"$ac_file" : 'X\(//\)[^/]' \| \
7733
 
         X"$ac_file" : 'X\(//\)$' \| \
7734
 
         X"$ac_file" : 'X\(/\)' \| \
7735
 
         .     : '\(.\)' 2>/dev/null ||
7736
 
echo X"$ac_file" |
7737
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7738
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7739
 
          /^X\(\/\/\)$/{ s//\1/; q; }
7740
 
          /^X\(\/\).*/{ s//\1/; q; }
7741
 
          s/.*/./; q'`
7742
 
      { if $as_mkdir_p; then
7743
 
    mkdir -p "$ac_dir"
7744
 
  else
7745
 
    as_dir="$ac_dir"
7746
 
    as_dirs=
7747
 
    while test ! -d "$as_dir"; do
7748
 
      as_dirs="$as_dir $as_dirs"
7749
 
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
7750
 
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7751
 
         X"$as_dir" : 'X\(//\)[^/]' \| \
7752
 
         X"$as_dir" : 'X\(//\)$' \| \
7753
 
         X"$as_dir" : 'X\(/\)' \| \
7754
 
         .     : '\(.\)' 2>/dev/null ||
7755
 
echo X"$as_dir" |
7756
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7757
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7758
 
          /^X\(\/\/\)$/{ s//\1/; q; }
7759
 
          /^X\(\/\).*/{ s//\1/; q; }
7760
 
          s/.*/./; q'`
7761
 
    done
7762
 
    test ! -n "$as_dirs" || mkdir $as_dirs
7763
 
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7764
 
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7765
 
   { (exit 1); exit 1; }; }; }
7766
 
 
7767
 
      rm -f $ac_file
7768
 
      mv $tmp/config.h $ac_file
 
6940
      rm -f "$ac_file"
 
6941
      mv "$tmp/config.h" "$ac_file" \
 
6942
        || as_fn_error "could not create $ac_file" "$LINENO" 5
7769
6943
    fi
7770
6944
  else
7771
 
    cat $tmp/config.h
7772
 
    rm -f $tmp/config.h
 
6945
    $as_echo "/* $configure_input  */" \
 
6946
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
 
6947
      || as_fn_error "could not create -" "$LINENO" 5
7773
6948
  fi
7774
 
# Compute $ac_file's index in $config_headers.
 
6949
# Compute "$ac_file"'s index in $config_headers.
 
6950
_am_arg="$ac_file"
7775
6951
_am_stamp_count=1
7776
6952
for _am_header in $config_headers :; do
7777
6953
  case $_am_header in
7778
 
    $ac_file | $ac_file:* )
 
6954
    $_am_arg | $_am_arg:* )
7779
6955
      break ;;
7780
6956
    * )
7781
6957
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
7782
6958
  esac
7783
6959
done
7784
 
echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
7785
 
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7786
 
         X$ac_file : 'X\(//\)[^/]' \| \
7787
 
         X$ac_file : 'X\(//\)$' \| \
7788
 
         X$ac_file : 'X\(/\)' \| \
7789
 
         .     : '\(.\)' 2>/dev/null ||
7790
 
echo X$ac_file |
7791
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7792
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7793
 
          /^X\(\/\/\)$/{ s//\1/; q; }
7794
 
          /^X\(\/\).*/{ s//\1/; q; }
7795
 
          s/.*/./; q'`/stamp-h$_am_stamp_count
7796
 
done
7797
 
_ACEOF
7798
 
cat >>$CONFIG_STATUS <<\_ACEOF
7799
 
 
7800
 
#
7801
 
# CONFIG_LINKS section.
7802
 
#
7803
 
 
7804
 
for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
7805
 
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
7806
 
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
7807
 
 
7808
 
  { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
7809
 
echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
7810
 
 
7811
 
  if test ! -r $srcdir/$ac_source; then
7812
 
    { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
7813
 
echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
7814
 
   { (exit 1); exit 1; }; }
 
6960
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
 
6961
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
6962
         X"$_am_arg" : 'X\(//\)[^/]' \| \
 
6963
         X"$_am_arg" : 'X\(//\)$' \| \
 
6964
         X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
 
6965
$as_echo X"$_am_arg" |
 
6966
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
6967
            s//\1/
 
6968
            q
 
6969
          }
 
6970
          /^X\(\/\/\)[^/].*/{
 
6971
            s//\1/
 
6972
            q
 
6973
          }
 
6974
          /^X\(\/\/\)$/{
 
6975
            s//\1/
 
6976
            q
 
6977
          }
 
6978
          /^X\(\/\).*/{
 
6979
            s//\1/
 
6980
            q
 
6981
          }
 
6982
          s/.*/./; q'`/stamp-h$_am_stamp_count
 
6983
 ;;
 
6984
  :L)
 
6985
  #
 
6986
  # CONFIG_LINK
 
6987
  #
 
6988
 
 
6989
  if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
 
6990
    :
 
6991
  else
 
6992
    # Prefer the file from the source tree if names are identical.
 
6993
    if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
 
6994
      ac_source=$srcdir/$ac_source
 
6995
    fi
 
6996
 
 
6997
    { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
 
6998
$as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
 
6999
 
 
7000
    if test ! -r "$ac_source"; then
 
7001
      as_fn_error "$ac_source: file not found" "$LINENO" 5
 
7002
    fi
 
7003
    rm -f "$ac_file"
 
7004
 
 
7005
    # Try a relative symlink, then a hard link, then a copy.
 
7006
    case $srcdir in
 
7007
    [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
 
7008
        *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
 
7009
    esac
 
7010
    ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
 
7011
      ln "$ac_source" "$ac_file" 2>/dev/null ||
 
7012
      cp -p "$ac_source" "$ac_file" ||
 
7013
      as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
7815
7014
  fi
7816
 
  rm -f $ac_dest
7817
 
 
7818
 
  # Make relative symlinks.
7819
 
  ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
7820
 
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7821
 
         X"$ac_dest" : 'X\(//\)[^/]' \| \
7822
 
         X"$ac_dest" : 'X\(//\)$' \| \
7823
 
         X"$ac_dest" : 'X\(/\)' \| \
7824
 
         .     : '\(.\)' 2>/dev/null ||
7825
 
echo X"$ac_dest" |
7826
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7827
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7828
 
          /^X\(\/\/\)$/{ s//\1/; q; }
7829
 
          /^X\(\/\).*/{ s//\1/; q; }
7830
 
          s/.*/./; q'`
7831
 
  { if $as_mkdir_p; then
7832
 
    mkdir -p "$ac_dest_dir"
7833
 
  else
7834
 
    as_dir="$ac_dest_dir"
7835
 
    as_dirs=
7836
 
    while test ! -d "$as_dir"; do
7837
 
      as_dirs="$as_dir $as_dirs"
7838
 
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
7839
 
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7840
 
         X"$as_dir" : 'X\(//\)[^/]' \| \
7841
 
         X"$as_dir" : 'X\(//\)$' \| \
7842
 
         X"$as_dir" : 'X\(/\)' \| \
7843
 
         .     : '\(.\)' 2>/dev/null ||
7844
 
echo X"$as_dir" |
7845
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7846
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7847
 
          /^X\(\/\/\)$/{ s//\1/; q; }
7848
 
          /^X\(\/\).*/{ s//\1/; q; }
7849
 
          s/.*/./; q'`
7850
 
    done
7851
 
    test ! -n "$as_dirs" || mkdir $as_dirs
7852
 
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
7853
 
echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
7854
 
   { (exit 1); exit 1; }; }; }
7855
 
 
7856
 
  ac_builddir=.
7857
 
 
7858
 
if test "$ac_dest_dir" != .; then
7859
 
  ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
7860
 
  # A "../" for each directory in $ac_dir_suffix.
7861
 
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7862
 
else
7863
 
  ac_dir_suffix= ac_top_builddir=
7864
 
fi
7865
 
 
7866
 
case $srcdir in
7867
 
  .)  # No --srcdir option.  We are building in place.
7868
 
    ac_srcdir=.
7869
 
    if test -z "$ac_top_builddir"; then
7870
 
       ac_top_srcdir=.
7871
 
    else
7872
 
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7873
 
    fi ;;
7874
 
  [\\/]* | ?:[\\/]* )  # Absolute path.
7875
 
    ac_srcdir=$srcdir$ac_dir_suffix;
7876
 
    ac_top_srcdir=$srcdir ;;
7877
 
  *) # Relative path.
7878
 
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7879
 
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
7880
 
esac
7881
 
 
7882
 
# Do not use `cd foo && pwd` to compute absolute paths, because
7883
 
# the directories may not exist.
7884
 
case `pwd` in
7885
 
.) ac_abs_builddir="$ac_dest_dir";;
7886
 
*)
7887
 
  case "$ac_dest_dir" in
7888
 
  .) ac_abs_builddir=`pwd`;;
7889
 
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
7890
 
  *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
7891
 
  esac;;
7892
 
esac
7893
 
case $ac_abs_builddir in
7894
 
.) ac_abs_top_builddir=${ac_top_builddir}.;;
7895
 
*)
7896
 
  case ${ac_top_builddir}. in
7897
 
  .) ac_abs_top_builddir=$ac_abs_builddir;;
7898
 
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7899
 
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7900
 
  esac;;
7901
 
esac
7902
 
case $ac_abs_builddir in
7903
 
.) ac_abs_srcdir=$ac_srcdir;;
7904
 
*)
7905
 
  case $ac_srcdir in
7906
 
  .) ac_abs_srcdir=$ac_abs_builddir;;
7907
 
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7908
 
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7909
 
  esac;;
7910
 
esac
7911
 
case $ac_abs_builddir in
7912
 
.) ac_abs_top_srcdir=$ac_top_srcdir;;
7913
 
*)
7914
 
  case $ac_top_srcdir in
7915
 
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
7916
 
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7917
 
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7918
 
  esac;;
7919
 
esac
7920
 
 
7921
 
 
7922
 
  case $srcdir in
7923
 
  [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
7924
 
      *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
7925
 
  esac
7926
 
 
7927
 
  # Try a symlink, then a hard link, then a copy.
7928
 
  ln -s $ac_rel_source $ac_dest 2>/dev/null ||
7929
 
    ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
7930
 
    cp -p $srcdir/$ac_source $ac_dest ||
7931
 
    { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
7932
 
echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
7933
 
   { (exit 1); exit 1; }; }
7934
 
done
7935
 
_ACEOF
7936
 
cat >>$CONFIG_STATUS <<\_ACEOF
7937
 
 
7938
 
#
7939
 
# CONFIG_COMMANDS section.
7940
 
#
7941
 
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
7942
 
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
7943
 
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
7944
 
  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
7945
 
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7946
 
         X"$ac_dest" : 'X\(//\)[^/]' \| \
7947
 
         X"$ac_dest" : 'X\(//\)$' \| \
7948
 
         X"$ac_dest" : 'X\(/\)' \| \
7949
 
         .     : '\(.\)' 2>/dev/null ||
7950
 
echo X"$ac_dest" |
7951
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7952
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7953
 
          /^X\(\/\/\)$/{ s//\1/; q; }
7954
 
          /^X\(\/\).*/{ s//\1/; q; }
7955
 
          s/.*/./; q'`
7956
 
  { if $as_mkdir_p; then
7957
 
    mkdir -p "$ac_dir"
7958
 
  else
7959
 
    as_dir="$ac_dir"
7960
 
    as_dirs=
7961
 
    while test ! -d "$as_dir"; do
7962
 
      as_dirs="$as_dir $as_dirs"
7963
 
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
7964
 
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7965
 
         X"$as_dir" : 'X\(//\)[^/]' \| \
7966
 
         X"$as_dir" : 'X\(//\)$' \| \
7967
 
         X"$as_dir" : 'X\(/\)' \| \
7968
 
         .     : '\(.\)' 2>/dev/null ||
7969
 
echo X"$as_dir" |
7970
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7971
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7972
 
          /^X\(\/\/\)$/{ s//\1/; q; }
7973
 
          /^X\(\/\).*/{ s//\1/; q; }
7974
 
          s/.*/./; q'`
7975
 
    done
7976
 
    test ! -n "$as_dirs" || mkdir $as_dirs
7977
 
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7978
 
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7979
 
   { (exit 1); exit 1; }; }; }
7980
 
 
7981
 
  ac_builddir=.
7982
 
 
7983
 
if test "$ac_dir" != .; then
7984
 
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7985
 
  # A "../" for each directory in $ac_dir_suffix.
7986
 
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7987
 
else
7988
 
  ac_dir_suffix= ac_top_builddir=
7989
 
fi
7990
 
 
7991
 
case $srcdir in
7992
 
  .)  # No --srcdir option.  We are building in place.
7993
 
    ac_srcdir=.
7994
 
    if test -z "$ac_top_builddir"; then
7995
 
       ac_top_srcdir=.
7996
 
    else
7997
 
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7998
 
    fi ;;
7999
 
  [\\/]* | ?:[\\/]* )  # Absolute path.
8000
 
    ac_srcdir=$srcdir$ac_dir_suffix;
8001
 
    ac_top_srcdir=$srcdir ;;
8002
 
  *) # Relative path.
8003
 
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8004
 
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
8005
 
esac
8006
 
 
8007
 
# Do not use `cd foo && pwd` to compute absolute paths, because
8008
 
# the directories may not exist.
8009
 
case `pwd` in
8010
 
.) ac_abs_builddir="$ac_dir";;
8011
 
*)
8012
 
  case "$ac_dir" in
8013
 
  .) ac_abs_builddir=`pwd`;;
8014
 
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8015
 
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
8016
 
  esac;;
8017
 
esac
8018
 
case $ac_abs_builddir in
8019
 
.) ac_abs_top_builddir=${ac_top_builddir}.;;
8020
 
*)
8021
 
  case ${ac_top_builddir}. in
8022
 
  .) ac_abs_top_builddir=$ac_abs_builddir;;
8023
 
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8024
 
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8025
 
  esac;;
8026
 
esac
8027
 
case $ac_abs_builddir in
8028
 
.) ac_abs_srcdir=$ac_srcdir;;
8029
 
*)
8030
 
  case $ac_srcdir in
8031
 
  .) ac_abs_srcdir=$ac_abs_builddir;;
8032
 
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8033
 
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8034
 
  esac;;
8035
 
esac
8036
 
case $ac_abs_builddir in
8037
 
.) ac_abs_top_srcdir=$ac_top_srcdir;;
8038
 
*)
8039
 
  case $ac_top_srcdir in
8040
 
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
8041
 
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8042
 
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8043
 
  esac;;
8044
 
esac
8045
 
 
8046
 
 
8047
 
  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
8048
 
echo "$as_me: executing $ac_dest commands" >&6;}
8049
 
  case $ac_dest in
8050
 
    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
8051
 
  # Strip MF so we end up with the name of the file.
8052
 
  mf=`echo "$mf" | sed -e 's/:.*$//'`
8053
 
  # Check whether this is an Automake generated Makefile or not.
8054
 
  # We used to match only the files named `Makefile.in', but
8055
 
  # some people rename them; so instead we look at the file content.
8056
 
  # Grep'ing the first line is not enough: some people post-process
8057
 
  # each Makefile.in and add a new line on top of each file to say so.
8058
 
  # So let's grep whole file.
8059
 
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
8060
 
    dirpart=`(dirname "$mf") 2>/dev/null ||
 
7015
 ;;
 
7016
  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
 
7017
$as_echo "$as_me: executing $ac_file commands" >&6;}
 
7018
 ;;
 
7019
  esac
 
7020
 
 
7021
 
 
7022
  case $ac_file$ac_mode in
 
7023
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
 
7024
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
 
7025
  # are listed without --file.  Let's play safe and only enable the eval
 
7026
  # if we detect the quoting.
 
7027
  case $CONFIG_FILES in
 
7028
  *\'*) eval set x "$CONFIG_FILES" ;;
 
7029
  *)   set x $CONFIG_FILES ;;
 
7030
  esac
 
7031
  shift
 
7032
  for mf
 
7033
  do
 
7034
    # Strip MF so we end up with the name of the file.
 
7035
    mf=`echo "$mf" | sed -e 's/:.*$//'`
 
7036
    # Check whether this is an Automake generated Makefile or not.
 
7037
    # We used to match only the files named `Makefile.in', but
 
7038
    # some people rename them; so instead we look at the file content.
 
7039
    # Grep'ing the first line is not enough: some people post-process
 
7040
    # each Makefile.in and add a new line on top of each file to say so.
 
7041
    # Grep'ing the whole file is not good either: AIX grep has a line
 
7042
    # limit of 2048, but all sed's we know have understand at least 4000.
 
7043
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
 
7044
      dirpart=`$as_dirname -- "$mf" ||
8061
7045
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8062
7046
         X"$mf" : 'X\(//\)[^/]' \| \
8063
7047
         X"$mf" : 'X\(//\)$' \| \
8064
 
         X"$mf" : 'X\(/\)' \| \
8065
 
         .     : '\(.\)' 2>/dev/null ||
8066
 
echo X"$mf" |
8067
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8068
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8069
 
          /^X\(\/\/\)$/{ s//\1/; q; }
8070
 
          /^X\(\/\).*/{ s//\1/; q; }
8071
 
          s/.*/./; q'`
8072
 
  else
8073
 
    continue
8074
 
  fi
8075
 
  # Extract the definition of DEPDIR, am__include, and am__quote
8076
 
  # from the Makefile without running `make'.
8077
 
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
8078
 
  test -z "$DEPDIR" && continue
8079
 
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
8080
 
  test -z "am__include" && continue
8081
 
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
8082
 
  # When using ansi2knr, U may be empty or an underscore; expand it
8083
 
  U=`sed -n 's/^U = //p' < "$mf"`
8084
 
  # Find all dependency output files, they are included files with
8085
 
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
8086
 
  # simplest approach to changing $(DEPDIR) to its actual value in the
8087
 
  # expansion.
8088
 
  for file in `sed -n "
8089
 
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
8090
 
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
8091
 
    # Make sure the directory exists.
8092
 
    test -f "$dirpart/$file" && continue
8093
 
    fdir=`(dirname "$file") 2>/dev/null ||
 
7048
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
 
7049
$as_echo X"$mf" |
 
7050
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
7051
            s//\1/
 
7052
            q
 
7053
          }
 
7054
          /^X\(\/\/\)[^/].*/{
 
7055
            s//\1/
 
7056
            q
 
7057
          }
 
7058
          /^X\(\/\/\)$/{
 
7059
            s//\1/
 
7060
            q
 
7061
          }
 
7062
          /^X\(\/\).*/{
 
7063
            s//\1/
 
7064
            q
 
7065
          }
 
7066
          s/.*/./; q'`
 
7067
    else
 
7068
      continue
 
7069
    fi
 
7070
    # Extract the definition of DEPDIR, am__include, and am__quote
 
7071
    # from the Makefile without running `make'.
 
7072
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
7073
    test -z "$DEPDIR" && continue
 
7074
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
7075
    test -z "am__include" && continue
 
7076
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 
7077
    # When using ansi2knr, U may be empty or an underscore; expand it
 
7078
    U=`sed -n 's/^U = //p' < "$mf"`
 
7079
    # Find all dependency output files, they are included files with
 
7080
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
7081
    # simplest approach to changing $(DEPDIR) to its actual value in the
 
7082
    # expansion.
 
7083
    for file in `sed -n "
 
7084
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
7085
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
7086
      # Make sure the directory exists.
 
7087
      test -f "$dirpart/$file" && continue
 
7088
      fdir=`$as_dirname -- "$file" ||
8094
7089
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8095
7090
         X"$file" : 'X\(//\)[^/]' \| \
8096
7091
         X"$file" : 'X\(//\)$' \| \
8097
 
         X"$file" : 'X\(/\)' \| \
8098
 
         .     : '\(.\)' 2>/dev/null ||
8099
 
echo X"$file" |
8100
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8101
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8102
 
          /^X\(\/\/\)$/{ s//\1/; q; }
8103
 
          /^X\(\/\).*/{ s//\1/; q; }
8104
 
          s/.*/./; q'`
8105
 
    { if $as_mkdir_p; then
8106
 
    mkdir -p $dirpart/$fdir
8107
 
  else
8108
 
    as_dir=$dirpart/$fdir
8109
 
    as_dirs=
8110
 
    while test ! -d "$as_dir"; do
8111
 
      as_dirs="$as_dir $as_dirs"
8112
 
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
8113
 
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8114
 
         X"$as_dir" : 'X\(//\)[^/]' \| \
8115
 
         X"$as_dir" : 'X\(//\)$' \| \
8116
 
         X"$as_dir" : 'X\(/\)' \| \
8117
 
         .     : '\(.\)' 2>/dev/null ||
8118
 
echo X"$as_dir" |
8119
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8120
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8121
 
          /^X\(\/\/\)$/{ s//\1/; q; }
8122
 
          /^X\(\/\).*/{ s//\1/; q; }
8123
 
          s/.*/./; q'`
 
7092
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
 
7093
$as_echo X"$file" |
 
7094
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
7095
            s//\1/
 
7096
            q
 
7097
          }
 
7098
          /^X\(\/\/\)[^/].*/{
 
7099
            s//\1/
 
7100
            q
 
7101
          }
 
7102
          /^X\(\/\/\)$/{
 
7103
            s//\1/
 
7104
            q
 
7105
          }
 
7106
          /^X\(\/\).*/{
 
7107
            s//\1/
 
7108
            q
 
7109
          }
 
7110
          s/.*/./; q'`
 
7111
      as_dir=$dirpart/$fdir; as_fn_mkdir_p
 
7112
      # echo "creating $dirpart/$file"
 
7113
      echo '# dummy' > "$dirpart/$file"
8124
7114
    done
8125
 
    test ! -n "$as_dirs" || mkdir $as_dirs
8126
 
  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
8127
 
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
8128
 
   { (exit 1); exit 1; }; }; }
8129
 
 
8130
 
    # echo "creating $dirpart/$file"
8131
 
    echo '# dummy' > "$dirpart/$file"
8132
7115
  done
8133
 
done
 
7116
}
8134
7117
 ;;
 
7118
 
8135
7119
  esac
8136
 
done
8137
 
_ACEOF
8138
 
 
8139
 
cat >>$CONFIG_STATUS <<\_ACEOF
8140
 
 
8141
 
{ (exit 0); exit 0; }
8142
 
_ACEOF
8143
 
chmod +x $CONFIG_STATUS
 
7120
done # for ac_tag
 
7121
 
 
7122
 
 
7123
as_fn_exit 0
 
7124
_ACEOF
8144
7125
ac_clean_files=$ac_clean_files_save
8145
7126
 
 
7127
test $ac_write_fail = 0 ||
 
7128
  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
 
7129
 
8146
7130
 
8147
7131
# configure is writing to config.log, and then calls config.status.
8148
7132
# config.status does its own redirection, appending to config.log.
8162
7146
  exec 5>>config.log
8163
7147
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8164
7148
  # would make configure fail if this is the last instruction.
8165
 
  $ac_cs_success || { (exit 1); exit 1; }
 
7149
  $ac_cs_success || as_fn_exit $?
 
7150
fi
 
7151
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
 
7152
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
 
7153
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
8166
7154
fi
8167
7155