~ubuntu-branches/ubuntu/saucy/dahdi-tools/saucy

« back to all changes in this revision

Viewing changes to menuselect/mxml/configure

  • Committer: Stefan Lesicnik
  • Date: 2011-05-08 12:22:46 UTC
  • mfrom: (2.1.4 sid)
  • Revision ID: stefan@lsd.co.za-20110508122246-lh6k2x1uy8pl3vdi
Tags: 1:2.4.1-1ubuntu1
* Merge from Debian. Remaining changes:
  - Bug Fix: If linux-headers are not installed, don't block, and print
    information for the user.
  - added debian/dahdi.postinst
  - added --error-handler=init_failed to debian/rules
  - Changes from Debian:
    - debian/control: Change Maintainer
    - debian/control: Removed Uploaders field.
    - debian/control: Removed Debian Vcs-Svn entry and replaced with
      ubuntu-voip Vcs-Bzr, to reflect divergence in packages.
    - debian/control: Package dahdi Depends on dahdi-dkms | dahdi-source
* debian/control: Added gawk as dependency for dkms build (LP: #493304)
* New upstream release (Closes: #581076, #582094).
* Patches hardware_rescan, perl_fix_noserial, perl_fix_transportdir,
  astribank_allow_ignoreend, init_unload_modules and wcb4xxp_extra_trunk
  dropped: merged upstream.
* dahdi-linux 2.3.0 is required (extra config options for dahdi_cfg).
* Convert to dpkg v.3 format.
* Standards version: 3.9.1.0 (No change needed.

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.
4
 
#
5
 
# Copyright (C) 2003 Free Software Foundation, Inc.
 
3
# Generated by GNU Autoconf 2.65.
 
4
#
 
5
#
 
6
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
 
7
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
 
8
# Inc.
 
9
#
 
10
#
6
11
# This configure script is free software; the Free Software Foundation
7
12
# gives unlimited permission to copy, distribute and modify it.
8
 
## --------------------- ##
9
 
## M4sh Initialization.  ##
10
 
## --------------------- ##
 
13
## -------------------- ##
 
14
## M4sh Initialization. ##
 
15
## -------------------- ##
11
16
 
12
 
# Be Bourne compatible
13
 
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
17
# Be more Bourne compatible
 
18
DUALCASE=1; export DUALCASE # for MKS sh
 
19
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14
20
  emulate sh
15
21
  NULLCMD=:
16
 
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
22
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17
23
  # is contrary to our usage.  Disable this feature.
18
24
  alias -g '${1+"$@"}'='"$@"'
19
 
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20
 
  set -o posix
21
 
fi
22
 
DUALCASE=1; export DUALCASE # for MKS sh
23
 
 
24
 
# Support unset when possible.
25
 
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26
 
  as_unset=unset
27
 
else
28
 
  as_unset=false
29
 
fi
30
 
 
31
 
 
32
 
# Work around bugs in pre-3.0 UWIN ksh.
33
 
$as_unset ENV MAIL MAILPATH
 
25
  setopt NO_GLOB_SUBST
 
26
else
 
27
  case `(set -o) 2>/dev/null` in #(
 
28
  *posix*) :
 
29
    set -o posix ;; #(
 
30
  *) :
 
31
     ;;
 
32
esac
 
33
fi
 
34
 
 
35
 
 
36
as_nl='
 
37
'
 
38
export as_nl
 
39
# Printing a long string crashes Solaris 7 /usr/bin/printf.
 
40
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
41
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
 
42
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
 
43
# Prefer a ksh shell builtin over an external printf program on Solaris,
 
44
# but without wasting forks for bash or zsh.
 
45
if test -z "$BASH_VERSION$ZSH_VERSION" \
 
46
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
 
47
  as_echo='print -r --'
 
48
  as_echo_n='print -rn --'
 
49
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
 
50
  as_echo='printf %s\n'
 
51
  as_echo_n='printf %s'
 
52
else
 
53
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
 
54
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
 
55
    as_echo_n='/usr/ucb/echo -n'
 
56
  else
 
57
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
 
58
    as_echo_n_body='eval
 
59
      arg=$1;
 
60
      case $arg in #(
 
61
      *"$as_nl"*)
 
62
        expr "X$arg" : "X\\(.*\\)$as_nl";
 
63
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
 
64
      esac;
 
65
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
 
66
    '
 
67
    export as_echo_n_body
 
68
    as_echo_n='sh -c $as_echo_n_body as_echo'
 
69
  fi
 
70
  export as_echo_body
 
71
  as_echo='sh -c $as_echo_body as_echo'
 
72
fi
 
73
 
 
74
# The user is always right.
 
75
if test "${PATH_SEPARATOR+set}" != set; then
 
76
  PATH_SEPARATOR=:
 
77
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
 
78
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
 
79
      PATH_SEPARATOR=';'
 
80
  }
 
81
fi
 
82
 
 
83
 
 
84
# IFS
 
85
# We need space, tab and new line, in precisely that order.  Quoting is
 
86
# there to prevent editors from complaining about space-tab.
 
87
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
88
# splitting by setting IFS to empty value.)
 
89
IFS=" ""        $as_nl"
 
90
 
 
91
# Find who we are.  Look in the path if we contain no directory separator.
 
92
case $0 in #((
 
93
  *[\\/]* ) as_myself=$0 ;;
 
94
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
95
for as_dir in $PATH
 
96
do
 
97
  IFS=$as_save_IFS
 
98
  test -z "$as_dir" && as_dir=.
 
99
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
100
  done
 
101
IFS=$as_save_IFS
 
102
 
 
103
     ;;
 
104
esac
 
105
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
106
# in which case we are not to be found in the path.
 
107
if test "x$as_myself" = x; then
 
108
  as_myself=$0
 
109
fi
 
110
if test ! -f "$as_myself"; then
 
111
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
112
  exit 1
 
113
fi
 
114
 
 
115
# Unset variables that we do not need and which cause bugs (e.g. in
 
116
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
 
117
# suppresses any "Segmentation fault" message there.  '((' could
 
118
# trigger a bug in pdksh 5.2.14.
 
119
for as_var in BASH_ENV ENV MAIL MAILPATH
 
120
do eval test x\${$as_var+set} = xset \
 
121
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
 
122
done
34
123
PS1='$ '
35
124
PS2='> '
36
125
PS4='+ '
37
126
 
38
127
# NLS nuisances.
39
 
for as_var in \
40
 
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41
 
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42
 
  LC_TELEPHONE LC_TIME
 
128
LC_ALL=C
 
129
export LC_ALL
 
130
LANGUAGE=C
 
131
export LANGUAGE
 
132
 
 
133
# CDPATH.
 
134
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
135
 
 
136
if test "x$CONFIG_SHELL" = x; then
 
137
  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
 
138
  emulate sh
 
139
  NULLCMD=:
 
140
  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
 
141
  # is contrary to our usage.  Disable this feature.
 
142
  alias -g '\${1+\"\$@\"}'='\"\$@\"'
 
143
  setopt NO_GLOB_SUBST
 
144
else
 
145
  case \`(set -o) 2>/dev/null\` in #(
 
146
  *posix*) :
 
147
    set -o posix ;; #(
 
148
  *) :
 
149
     ;;
 
150
esac
 
151
fi
 
152
"
 
153
  as_required="as_fn_return () { (exit \$1); }
 
154
as_fn_success () { as_fn_return 0; }
 
155
as_fn_failure () { as_fn_return 1; }
 
156
as_fn_ret_success () { return 0; }
 
157
as_fn_ret_failure () { return 1; }
 
158
 
 
159
exitcode=0
 
160
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
 
161
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
 
162
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
 
163
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
 
164
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
 
165
 
 
166
else
 
167
  exitcode=1; echo positional parameters were not saved.
 
168
fi
 
169
test x\$exitcode = x0 || exit 1"
 
170
  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
 
171
  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
 
172
  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
 
173
  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
 
174
test \$(( 1 + 1 )) = 2 || exit 1"
 
175
  if (eval "$as_required") 2>/dev/null; then :
 
176
  as_have_required=yes
 
177
else
 
178
  as_have_required=no
 
179
fi
 
180
  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
 
181
 
 
182
else
 
183
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
184
as_found=false
 
185
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
43
186
do
44
 
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45
 
    eval $as_var=C; export $as_var
 
187
  IFS=$as_save_IFS
 
188
  test -z "$as_dir" && as_dir=.
 
189
  as_found=:
 
190
  case $as_dir in #(
 
191
         /*)
 
192
           for as_base in sh bash ksh sh5; do
 
193
             # Try only shells that exist, to save several forks.
 
194
             as_shell=$as_dir/$as_base
 
195
             if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
 
196
                    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
 
197
  CONFIG_SHELL=$as_shell as_have_required=yes
 
198
                   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
 
199
  break 2
 
200
fi
 
201
fi
 
202
           done;;
 
203
       esac
 
204
  as_found=false
 
205
done
 
206
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
 
207
              { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
 
208
  CONFIG_SHELL=$SHELL as_have_required=yes
 
209
fi; }
 
210
IFS=$as_save_IFS
 
211
 
 
212
 
 
213
      if test "x$CONFIG_SHELL" != x; then :
 
214
  # We cannot yet assume a decent shell, so we have to provide a
 
215
        # neutralization value for shells without unset; and this also
 
216
        # works around shells that cannot unset nonexistent variables.
 
217
        BASH_ENV=/dev/null
 
218
        ENV=/dev/null
 
219
        (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
 
220
        export CONFIG_SHELL
 
221
        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
 
222
fi
 
223
 
 
224
    if test x$as_have_required = xno; then :
 
225
  $as_echo "$0: This script requires a shell more modern than all"
 
226
  $as_echo "$0: the shells that I found on your system."
 
227
  if test x${ZSH_VERSION+set} = xset ; then
 
228
    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
 
229
    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
46
230
  else
47
 
    $as_unset $as_var
48
 
  fi
49
 
done
50
 
 
51
 
# Required to use basename.
52
 
if expr a : '\(a\)' >/dev/null 2>&1; then
 
231
    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
 
232
$0: including any error possibly output before this
 
233
$0: message. Then install a modern shell, or manually run
 
234
$0: the script under such a shell if you do have one."
 
235
  fi
 
236
  exit 1
 
237
fi
 
238
fi
 
239
fi
 
240
SHELL=${CONFIG_SHELL-/bin/sh}
 
241
export SHELL
 
242
# Unset more variables known to interfere with behavior of common tools.
 
243
CLICOLOR_FORCE= GREP_OPTIONS=
 
244
unset CLICOLOR_FORCE GREP_OPTIONS
 
245
 
 
246
## --------------------- ##
 
247
## M4sh Shell Functions. ##
 
248
## --------------------- ##
 
249
# as_fn_unset VAR
 
250
# ---------------
 
251
# Portably unset VAR.
 
252
as_fn_unset ()
 
253
{
 
254
  { eval $1=; unset $1;}
 
255
}
 
256
as_unset=as_fn_unset
 
257
 
 
258
# as_fn_set_status STATUS
 
259
# -----------------------
 
260
# Set $? to STATUS, without forking.
 
261
as_fn_set_status ()
 
262
{
 
263
  return $1
 
264
} # as_fn_set_status
 
265
 
 
266
# as_fn_exit STATUS
 
267
# -----------------
 
268
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
 
269
as_fn_exit ()
 
270
{
 
271
  set +e
 
272
  as_fn_set_status $1
 
273
  exit $1
 
274
} # as_fn_exit
 
275
 
 
276
# as_fn_mkdir_p
 
277
# -------------
 
278
# Create "$as_dir" as a directory, including parents if necessary.
 
279
as_fn_mkdir_p ()
 
280
{
 
281
 
 
282
  case $as_dir in #(
 
283
  -*) as_dir=./$as_dir;;
 
284
  esac
 
285
  test -d "$as_dir" || eval $as_mkdir_p || {
 
286
    as_dirs=
 
287
    while :; do
 
288
      case $as_dir in #(
 
289
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 
290
      *) as_qdir=$as_dir;;
 
291
      esac
 
292
      as_dirs="'$as_qdir' $as_dirs"
 
293
      as_dir=`$as_dirname -- "$as_dir" ||
 
294
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
295
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
296
         X"$as_dir" : 'X\(//\)$' \| \
 
297
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
298
$as_echo X"$as_dir" |
 
299
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
300
            s//\1/
 
301
            q
 
302
          }
 
303
          /^X\(\/\/\)[^/].*/{
 
304
            s//\1/
 
305
            q
 
306
          }
 
307
          /^X\(\/\/\)$/{
 
308
            s//\1/
 
309
            q
 
310
          }
 
311
          /^X\(\/\).*/{
 
312
            s//\1/
 
313
            q
 
314
          }
 
315
          s/.*/./; q'`
 
316
      test -d "$as_dir" && break
 
317
    done
 
318
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
319
  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
 
320
 
 
321
 
 
322
} # as_fn_mkdir_p
 
323
# as_fn_append VAR VALUE
 
324
# ----------------------
 
325
# Append the text in VALUE to the end of the definition contained in VAR. Take
 
326
# advantage of any shell optimizations that allow amortized linear growth over
 
327
# repeated appends, instead of the typical quadratic growth present in naive
 
328
# implementations.
 
329
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
 
330
  eval 'as_fn_append ()
 
331
  {
 
332
    eval $1+=\$2
 
333
  }'
 
334
else
 
335
  as_fn_append ()
 
336
  {
 
337
    eval $1=\$$1\$2
 
338
  }
 
339
fi # as_fn_append
 
340
 
 
341
# as_fn_arith ARG...
 
342
# ------------------
 
343
# Perform arithmetic evaluation on the ARGs, and store the result in the
 
344
# global $as_val. Take advantage of shells that can avoid forks. The arguments
 
345
# must be portable across $(()) and expr.
 
346
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
 
347
  eval 'as_fn_arith ()
 
348
  {
 
349
    as_val=$(( $* ))
 
350
  }'
 
351
else
 
352
  as_fn_arith ()
 
353
  {
 
354
    as_val=`expr "$@" || test $? -eq 1`
 
355
  }
 
356
fi # as_fn_arith
 
357
 
 
358
 
 
359
# as_fn_error ERROR [LINENO LOG_FD]
 
360
# ---------------------------------
 
361
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
 
362
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
 
363
# script with status $?, using 1 if that was 0.
 
364
as_fn_error ()
 
365
{
 
366
  as_status=$?; test $as_status -eq 0 && as_status=1
 
367
  if test "$3"; then
 
368
    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
369
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
 
370
  fi
 
371
  $as_echo "$as_me: error: $1" >&2
 
372
  as_fn_exit $as_status
 
373
} # as_fn_error
 
374
 
 
375
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
376
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
53
377
  as_expr=expr
54
378
else
55
379
  as_expr=false
56
380
fi
57
381
 
58
 
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
382
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
59
383
  as_basename=basename
60
384
else
61
385
  as_basename=false
62
386
fi
63
387
 
 
388
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
389
  as_dirname=dirname
 
390
else
 
391
  as_dirname=false
 
392
fi
64
393
 
65
 
# Name of the executable.
66
 
as_me=`$as_basename "$0" ||
 
394
as_me=`$as_basename -- "$0" ||
67
395
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68
396
         X"$0" : 'X\(//\)$' \| \
69
 
         X"$0" : 'X\(/\)$' \| \
70
 
         .     : '\(.\)' 2>/dev/null ||
71
 
echo X/"$0" |
72
 
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73
 
          /^X\/\(\/\/\)$/{ s//\1/; q; }
74
 
          /^X\/\(\/\).*/{ s//\1/; q; }
75
 
          s/.*/./; q'`
76
 
 
77
 
 
78
 
# PATH needs CR, and LINENO needs CR and PATH.
 
397
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
398
$as_echo X/"$0" |
 
399
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
400
            s//\1/
 
401
            q
 
402
          }
 
403
          /^X\/\(\/\/\)$/{
 
404
            s//\1/
 
405
            q
 
406
          }
 
407
          /^X\/\(\/\).*/{
 
408
            s//\1/
 
409
            q
 
410
          }
 
411
          s/.*/./; q'`
 
412
 
79
413
# Avoid depending upon Character Ranges.
80
414
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81
415
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
83
417
as_cr_digits='0123456789'
84
418
as_cr_alnum=$as_cr_Letters$as_cr_digits
85
419
 
86
 
# The user is always right.
87
 
if test "${PATH_SEPARATOR+set}" != set; then
88
 
  echo "#! /bin/sh" >conf$$.sh
89
 
  echo  "exit 0"   >>conf$$.sh
90
 
  chmod +x conf$$.sh
91
 
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92
 
    PATH_SEPARATOR=';'
93
 
  else
94
 
    PATH_SEPARATOR=:
95
 
  fi
96
 
  rm -f conf$$.sh
97
 
fi
98
 
 
99
 
 
100
 
  as_lineno_1=$LINENO
101
 
  as_lineno_2=$LINENO
102
 
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
104
 
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105
 
  # Find who we are.  Look in the path if we contain no path at all
106
 
  # relative or not.
107
 
  case $0 in
108
 
    *[\\/]* ) as_myself=$0 ;;
109
 
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110
 
for as_dir in $PATH
111
 
do
112
 
  IFS=$as_save_IFS
113
 
  test -z "$as_dir" && as_dir=.
114
 
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115
 
done
116
 
 
117
 
       ;;
118
 
  esac
119
 
  # We did not find ourselves, most probably we were run as `sh COMMAND'
120
 
  # in which case we are not to be found in the path.
121
 
  if test "x$as_myself" = x; then
122
 
    as_myself=$0
123
 
  fi
124
 
  if test ! -f "$as_myself"; then
125
 
    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126
 
   { (exit 1); exit 1; }; }
127
 
  fi
128
 
  case $CONFIG_SHELL in
129
 
  '')
130
 
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131
 
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132
 
do
133
 
  IFS=$as_save_IFS
134
 
  test -z "$as_dir" && as_dir=.
135
 
  for as_base in sh bash ksh sh5; do
136
 
         case $as_dir in
137
 
         /*)
138
 
           if ("$as_dir/$as_base" -c '
139
 
  as_lineno_1=$LINENO
140
 
  as_lineno_2=$LINENO
141
 
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
143
 
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144
 
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145
 
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146
 
             CONFIG_SHELL=$as_dir/$as_base
147
 
             export CONFIG_SHELL
148
 
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149
 
           fi;;
150
 
         esac
151
 
       done
152
 
done
153
 
;;
154
 
  esac
155
 
 
156
 
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157
 
  # uniformly replaced by the line number.  The first 'sed' inserts a
158
 
  # line-number line before each line; the second 'sed' does the real
159
 
  # work.  The second script uses 'N' to pair each line-number line
160
 
  # with the numbered line, and appends trailing '-' during
161
 
  # substitution so that $LINENO is not a special case at line end.
162
 
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163
 
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164
 
  sed '=' <$as_myself |
 
420
 
 
421
  as_lineno_1=$LINENO as_lineno_1a=$LINENO
 
422
  as_lineno_2=$LINENO as_lineno_2a=$LINENO
 
423
  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
 
424
  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
 
425
  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
 
426
  sed -n '
 
427
    p
 
428
    /[$]LINENO/=
 
429
  ' <$as_myself |
165
430
    sed '
 
431
      s/[$]LINENO.*/&-/
 
432
      t lineno
 
433
      b
 
434
      :lineno
166
435
      N
167
 
      s,$,-,
168
 
      : loop
169
 
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
436
      :loop
 
437
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
170
438
      t loop
171
 
      s,-$,,
172
 
      s,^['$as_cr_digits']*\n,,
 
439
      s/-\n.*//
173
440
    ' >$as_me.lineno &&
174
 
  chmod +x $as_me.lineno ||
175
 
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176
 
   { (exit 1); exit 1; }; }
 
441
  chmod +x "$as_me.lineno" ||
 
442
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
177
443
 
178
444
  # Don't try to exec as it changes $[0], causing all sort of problems
179
445
  # (the dirname of $[0] is not the place where we might find the
180
 
  # original and so on.  Autoconf is especially sensible to this).
181
 
  . ./$as_me.lineno
 
446
  # original and so on.  Autoconf is especially sensitive to this).
 
447
  . "./$as_me.lineno"
182
448
  # Exit status is that of the last command.
183
449
  exit
184
450
}
185
451
 
186
 
 
187
 
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188
 
  *c*,-n*) ECHO_N= ECHO_C='
189
 
' ECHO_T='      ' ;;
190
 
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191
 
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
452
ECHO_C= ECHO_N= ECHO_T=
 
453
case `echo -n x` in #(((((
 
454
-n*)
 
455
  case `echo 'xy\c'` in
 
456
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
457
  xy)  ECHO_C='\c';;
 
458
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
 
459
       ECHO_T=' ';;
 
460
  esac;;
 
461
*)
 
462
  ECHO_N='-n';;
192
463
esac
193
464
 
194
 
if expr a : '\(a\)' >/dev/null 2>&1; then
195
 
  as_expr=expr
 
465
rm -f conf$$ conf$$.exe conf$$.file
 
466
if test -d conf$$.dir; then
 
467
  rm -f conf$$.dir/conf$$.file
196
468
else
197
 
  as_expr=false
 
469
  rm -f conf$$.dir
 
470
  mkdir conf$$.dir 2>/dev/null
198
471
fi
199
 
 
200
 
rm -f conf$$ conf$$.exe conf$$.file
201
 
echo >conf$$.file
202
 
if ln -s conf$$.file conf$$ 2>/dev/null; then
203
 
  # We could just check for DJGPP; but this test a) works b) is more generic
204
 
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205
 
  if test -f conf$$.exe; then
206
 
    # Don't use ln at all; we don't have any links
 
472
if (echo >conf$$.file) 2>/dev/null; then
 
473
  if ln -s conf$$.file conf$$ 2>/dev/null; then
 
474
    as_ln_s='ln -s'
 
475
    # ... but there are two gotchas:
 
476
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
477
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
478
    # In both cases, we have to default to `cp -p'.
 
479
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
480
      as_ln_s='cp -p'
 
481
  elif ln conf$$.file conf$$ 2>/dev/null; then
 
482
    as_ln_s=ln
 
483
  else
207
484
    as_ln_s='cp -p'
208
 
  else
209
 
    as_ln_s='ln -s'
210
485
  fi
211
 
elif ln conf$$.file conf$$ 2>/dev/null; then
212
 
  as_ln_s=ln
213
486
else
214
487
  as_ln_s='cp -p'
215
488
fi
216
 
rm -f conf$$ conf$$.exe conf$$.file
 
489
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
490
rmdir conf$$.dir 2>/dev/null
217
491
 
218
492
if mkdir -p . 2>/dev/null; then
219
 
  as_mkdir_p=:
 
493
  as_mkdir_p='mkdir -p "$as_dir"'
220
494
else
221
495
  test -d ./-p && rmdir ./-p
222
496
  as_mkdir_p=false
223
497
fi
224
498
 
225
 
as_executable_p="test -f"
 
499
if test -x / >/dev/null 2>&1; then
 
500
  as_test_x='test -x'
 
501
else
 
502
  if ls -dL / >/dev/null 2>&1; then
 
503
    as_ls_L_option=L
 
504
  else
 
505
    as_ls_L_option=
 
506
  fi
 
507
  as_test_x='
 
508
    eval sh -c '\''
 
509
      if test -d "$1"; then
 
510
        test -d "$1/.";
 
511
      else
 
512
        case $1 in #(
 
513
        -*)set "./$1";;
 
514
        esac;
 
515
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
 
516
        ???[sx]*):;;*)false;;esac;fi
 
517
    '\'' sh
 
518
  '
 
519
fi
 
520
as_executable_p=$as_test_x
226
521
 
227
522
# Sed expression to map a string onto a valid CPP name.
228
523
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
526
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
527
 
233
528
 
234
 
# IFS
235
 
# We need space, tab and new line, in precisely that order.
236
 
as_nl='
237
 
'
238
 
IFS="   $as_nl"
239
 
 
240
 
# CDPATH.
241
 
$as_unset CDPATH
242
 
 
 
529
test -n "$DJDIR" || exec 7<&0 </dev/null
 
530
exec 6>&1
243
531
 
244
532
# Name of the host.
245
533
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246
534
# so uname gets run too.
247
535
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
536
 
249
 
exec 6>&1
250
 
 
251
537
#
252
538
# Initializations.
253
539
#
254
540
ac_default_prefix=/usr/local
 
541
ac_clean_files=
255
542
ac_config_libobj_dir=.
 
543
LIBOBJS=
256
544
cross_compiling=no
257
545
subdirs=
258
546
MFLAGS=
259
547
MAKEFLAGS=
260
 
SHELL=${CONFIG_SHELL-/bin/sh}
261
 
 
262
 
# Maximum number of lines to put in a shell here document.
263
 
# This variable seems obsolete.  It should probably be removed, and
264
 
# only ac_max_sed_lines should be used.
265
 
: ${ac_max_here_lines=38}
266
548
 
267
549
# Identity of this package.
268
550
PACKAGE_NAME=
270
552
PACKAGE_VERSION=
271
553
PACKAGE_STRING=
272
554
PACKAGE_BUGREPORT=
 
555
PACKAGE_URL=
273
556
 
274
557
ac_unique_file="mxml.h"
275
 
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 VERSION LDFLAGS OPTIM docdir CC CFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB AR CP LN MKDIR NROFF GROFF RM ARFLAGS DSO DSOFLAGS LIBMXML PICFLAG CAT1EXT CAT3EXT MAN1EXT MAN3EXT PC_CFLAGS PC_LIBS LIBOBJS LTLIBOBJS'
 
558
# Factoring default headers for most tests.
 
559
ac_includes_default="\
 
560
#include <stdio.h>
 
561
#ifdef HAVE_SYS_TYPES_H
 
562
# include <sys/types.h>
 
563
#endif
 
564
#ifdef HAVE_SYS_STAT_H
 
565
# include <sys/stat.h>
 
566
#endif
 
567
#ifdef STDC_HEADERS
 
568
# include <stdlib.h>
 
569
# include <stddef.h>
 
570
#else
 
571
# ifdef HAVE_STDLIB_H
 
572
#  include <stdlib.h>
 
573
# endif
 
574
#endif
 
575
#ifdef HAVE_STRING_H
 
576
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
 
577
#  include <memory.h>
 
578
# endif
 
579
# include <string.h>
 
580
#endif
 
581
#ifdef HAVE_STRINGS_H
 
582
# include <strings.h>
 
583
#endif
 
584
#ifdef HAVE_INTTYPES_H
 
585
# include <inttypes.h>
 
586
#endif
 
587
#ifdef HAVE_STDINT_H
 
588
# include <stdint.h>
 
589
#endif
 
590
#ifdef HAVE_UNISTD_H
 
591
# include <unistd.h>
 
592
#endif"
 
593
 
 
594
ac_subst_vars='LTLIBOBJS
 
595
LIBOBJS
 
596
PC_LIBS
 
597
PC_CFLAGS
 
598
PICFLAG
 
599
LIBMXML
 
600
DSOFLAGS
 
601
DSO
 
602
PTHREAD_LIBS
 
603
PTHREAD_FLAGS
 
604
EGREP
 
605
GREP
 
606
CPP
 
607
ARFLAGS
 
608
RM
 
609
MKDIR
 
610
LN
 
611
CP
 
612
AR
 
613
RANLIB
 
614
INSTALL_DATA
 
615
INSTALL_SCRIPT
 
616
INSTALL_PROGRAM
 
617
ac_ct_CXX
 
618
CXXFLAGS
 
619
CXX
 
620
OBJEXT
 
621
EXEEXT
 
622
ac_ct_CC
 
623
CPPFLAGS
 
624
CFLAGS
 
625
CC
 
626
ARCHFLAGS
 
627
OPTIM
 
628
LDFLAGS
 
629
VERSION
 
630
target_alias
 
631
host_alias
 
632
build_alias
 
633
LIBS
 
634
ECHO_T
 
635
ECHO_N
 
636
ECHO_C
 
637
DEFS
 
638
mandir
 
639
localedir
 
640
libdir
 
641
psdir
 
642
pdfdir
 
643
dvidir
 
644
htmldir
 
645
infodir
 
646
docdir
 
647
oldincludedir
 
648
includedir
 
649
localstatedir
 
650
sharedstatedir
 
651
sysconfdir
 
652
datadir
 
653
datarootdir
 
654
libexecdir
 
655
sbindir
 
656
bindir
 
657
program_transform_name
 
658
prefix
 
659
exec_prefix
 
660
PACKAGE_URL
 
661
PACKAGE_BUGREPORT
 
662
PACKAGE_STRING
 
663
PACKAGE_VERSION
 
664
PACKAGE_TARNAME
 
665
PACKAGE_NAME
 
666
PATH_SEPARATOR
 
667
SHELL'
276
668
ac_subst_files=''
 
669
ac_user_opts='
 
670
enable_option_checking
 
671
with_ansi
 
672
with_archflags
 
673
enable_debug
 
674
with_docdir
 
675
with_vsnprintf
 
676
enable_threads
 
677
enable_shared
 
678
'
 
679
      ac_precious_vars='build_alias
 
680
host_alias
 
681
target_alias
 
682
CC
 
683
CFLAGS
 
684
LDFLAGS
 
685
LIBS
 
686
CPPFLAGS
 
687
CXX
 
688
CXXFLAGS
 
689
CCC
 
690
CPP'
 
691
 
277
692
 
278
693
# Initialize some variables set by options.
279
694
ac_init_help=
280
695
ac_init_version=false
 
696
ac_unrecognized_opts=
 
697
ac_unrecognized_sep=
281
698
# The variables have the same names as the options, with
282
699
# dashes changed to underlines.
283
700
cache_file=/dev/null
300
717
# and all the variables that are supposed to be based on exec_prefix
301
718
# by default will actually change.
302
719
# Use braces instead of parens because sh, perl, etc. also accept them.
 
720
# (The list follows the same order as the GNU Coding Standards.)
303
721
bindir='${exec_prefix}/bin'
304
722
sbindir='${exec_prefix}/sbin'
305
723
libexecdir='${exec_prefix}/libexec'
306
 
datadir='${prefix}/share'
 
724
datarootdir='${prefix}/share'
 
725
datadir='${datarootdir}'
307
726
sysconfdir='${prefix}/etc'
308
727
sharedstatedir='${prefix}/com'
309
728
localstatedir='${prefix}/var'
310
 
libdir='${exec_prefix}/lib'
311
729
includedir='${prefix}/include'
312
730
oldincludedir='/usr/include'
313
 
infodir='${prefix}/info'
314
 
mandir='${prefix}/man'
 
731
docdir='${datarootdir}/doc/${PACKAGE}'
 
732
infodir='${datarootdir}/info'
 
733
htmldir='${docdir}'
 
734
dvidir='${docdir}'
 
735
pdfdir='${docdir}'
 
736
psdir='${docdir}'
 
737
libdir='${exec_prefix}/lib'
 
738
localedir='${datarootdir}/locale'
 
739
mandir='${datarootdir}/man'
315
740
 
316
741
ac_prev=
 
742
ac_dashdash=
317
743
for ac_option
318
744
do
319
745
  # If the previous option needs an argument, assign it.
320
746
  if test -n "$ac_prev"; then
321
 
    eval "$ac_prev=\$ac_option"
 
747
    eval $ac_prev=\$ac_option
322
748
    ac_prev=
323
749
    continue
324
750
  fi
325
751
 
326
 
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
 
752
  case $ac_option in
 
753
  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
 
754
  *)    ac_optarg=yes ;;
 
755
  esac
327
756
 
328
757
  # Accept the important Cygnus configure options, so we can diagnose typos.
329
758
 
330
 
  case $ac_option in
 
759
  case $ac_dashdash$ac_option in
 
760
  --)
 
761
    ac_dashdash=yes ;;
331
762
 
332
763
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
333
764
    ac_prev=bindir ;;
349
780
  --config-cache | -C)
350
781
    cache_file=config.cache ;;
351
782
 
352
 
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
 
783
  -datadir | --datadir | --datadi | --datad)
353
784
    ac_prev=datadir ;;
354
 
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
355
 
  | --da=*)
 
785
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
356
786
    datadir=$ac_optarg ;;
357
787
 
 
788
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
 
789
  | --dataroo | --dataro | --datar)
 
790
    ac_prev=datarootdir ;;
 
791
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
 
792
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
 
793
    datarootdir=$ac_optarg ;;
 
794
 
358
795
  -disable-* | --disable-*)
359
 
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 
796
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
360
797
    # Reject names that are not valid shell variable names.
361
 
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
362
 
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
363
 
   { (exit 1); exit 1; }; }
364
 
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
365
 
    eval "enable_$ac_feature=no" ;;
 
798
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
799
      as_fn_error "invalid feature name: $ac_useropt"
 
800
    ac_useropt_orig=$ac_useropt
 
801
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
802
    case $ac_user_opts in
 
803
      *"
 
804
"enable_$ac_useropt"
 
805
"*) ;;
 
806
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
 
807
         ac_unrecognized_sep=', ';;
 
808
    esac
 
809
    eval enable_$ac_useropt=no ;;
 
810
 
 
811
  -docdir | --docdir | --docdi | --doc | --do)
 
812
    ac_prev=docdir ;;
 
813
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
 
814
    docdir=$ac_optarg ;;
 
815
 
 
816
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
 
817
    ac_prev=dvidir ;;
 
818
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
 
819
    dvidir=$ac_optarg ;;
366
820
 
367
821
  -enable-* | --enable-*)
368
 
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 
822
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
369
823
    # Reject names that are not valid shell variable names.
370
 
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
371
 
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
372
 
   { (exit 1); exit 1; }; }
373
 
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
374
 
    case $ac_option in
375
 
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
376
 
      *) ac_optarg=yes ;;
 
824
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
825
      as_fn_error "invalid feature name: $ac_useropt"
 
826
    ac_useropt_orig=$ac_useropt
 
827
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
828
    case $ac_user_opts in
 
829
      *"
 
830
"enable_$ac_useropt"
 
831
"*) ;;
 
832
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
 
833
         ac_unrecognized_sep=', ';;
377
834
    esac
378
 
    eval "enable_$ac_feature='$ac_optarg'" ;;
 
835
    eval enable_$ac_useropt=\$ac_optarg ;;
379
836
 
380
837
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
381
838
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
402
859
  -host=* | --host=* | --hos=* | --ho=*)
403
860
    host_alias=$ac_optarg ;;
404
861
 
 
862
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
 
863
    ac_prev=htmldir ;;
 
864
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
 
865
  | --ht=*)
 
866
    htmldir=$ac_optarg ;;
 
867
 
405
868
  -includedir | --includedir | --includedi | --included | --include \
406
869
  | --includ | --inclu | --incl | --inc)
407
870
    ac_prev=includedir ;;
426
889
  | --libexe=* | --libex=* | --libe=*)
427
890
    libexecdir=$ac_optarg ;;
428
891
 
 
892
  -localedir | --localedir | --localedi | --localed | --locale)
 
893
    ac_prev=localedir ;;
 
894
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
 
895
    localedir=$ac_optarg ;;
 
896
 
429
897
  -localstatedir | --localstatedir | --localstatedi | --localstated \
430
 
  | --localstate | --localstat | --localsta | --localst \
431
 
  | --locals | --local | --loca | --loc | --lo)
 
898
  | --localstate | --localstat | --localsta | --localst | --locals)
432
899
    ac_prev=localstatedir ;;
433
900
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
434
 
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
435
 
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
 
901
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
436
902
    localstatedir=$ac_optarg ;;
437
903
 
438
904
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
497
963
  | --progr-tra=* | --program-tr=* | --program-t=*)
498
964
    program_transform_name=$ac_optarg ;;
499
965
 
 
966
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
 
967
    ac_prev=pdfdir ;;
 
968
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
 
969
    pdfdir=$ac_optarg ;;
 
970
 
 
971
  -psdir | --psdir | --psdi | --psd | --ps)
 
972
    ac_prev=psdir ;;
 
973
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
 
974
    psdir=$ac_optarg ;;
 
975
 
500
976
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
501
977
  | -silent | --silent | --silen | --sile | --sil)
502
978
    silent=yes ;;
547
1023
    ac_init_version=: ;;
548
1024
 
549
1025
  -with-* | --with-*)
550
 
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 
1026
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
551
1027
    # Reject names that are not valid shell variable names.
552
 
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
553
 
      { echo "$as_me: error: invalid package name: $ac_package" >&2
554
 
   { (exit 1); exit 1; }; }
555
 
    ac_package=`echo $ac_package| sed 's/-/_/g'`
556
 
    case $ac_option in
557
 
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
558
 
      *) ac_optarg=yes ;;
 
1028
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1029
      as_fn_error "invalid package name: $ac_useropt"
 
1030
    ac_useropt_orig=$ac_useropt
 
1031
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1032
    case $ac_user_opts in
 
1033
      *"
 
1034
"with_$ac_useropt"
 
1035
"*) ;;
 
1036
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
 
1037
         ac_unrecognized_sep=', ';;
559
1038
    esac
560
 
    eval "with_$ac_package='$ac_optarg'" ;;
 
1039
    eval with_$ac_useropt=\$ac_optarg ;;
561
1040
 
562
1041
  -without-* | --without-*)
563
 
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 
1042
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
564
1043
    # Reject names that are not valid shell variable names.
565
 
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566
 
      { echo "$as_me: error: invalid package name: $ac_package" >&2
567
 
   { (exit 1); exit 1; }; }
568
 
    ac_package=`echo $ac_package | sed 's/-/_/g'`
569
 
    eval "with_$ac_package=no" ;;
 
1044
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1045
      as_fn_error "invalid package name: $ac_useropt"
 
1046
    ac_useropt_orig=$ac_useropt
 
1047
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1048
    case $ac_user_opts in
 
1049
      *"
 
1050
"with_$ac_useropt"
 
1051
"*) ;;
 
1052
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
 
1053
         ac_unrecognized_sep=', ';;
 
1054
    esac
 
1055
    eval with_$ac_useropt=no ;;
570
1056
 
571
1057
  --x)
572
1058
    # Obsolete; use --with-x.
586
1072
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
587
1073
    x_libraries=$ac_optarg ;;
588
1074
 
589
 
  -*) { echo "$as_me: error: unrecognized option: $ac_option
590
 
Try \`$0 --help' for more information." >&2
591
 
   { (exit 1); exit 1; }; }
 
1075
  -*) as_fn_error "unrecognized option: \`$ac_option'
 
1076
Try \`$0 --help' for more information."
592
1077
    ;;
593
1078
 
594
1079
  *=*)
595
1080
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
596
1081
    # Reject names that are not valid shell variable names.
597
 
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
598
 
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
599
 
   { (exit 1); exit 1; }; }
600
 
    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
601
 
    eval "$ac_envvar='$ac_optarg'"
 
1082
    case $ac_envvar in #(
 
1083
      '' | [0-9]* | *[!_$as_cr_alnum]* )
 
1084
      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
 
1085
    esac
 
1086
    eval $ac_envvar=\$ac_optarg
602
1087
    export $ac_envvar ;;
603
1088
 
604
1089
  *)
605
1090
    # FIXME: should be removed in autoconf 3.0.
606
 
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
1091
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
607
1092
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
608
 
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
1093
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
609
1094
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
610
1095
    ;;
611
1096
 
614
1099
 
615
1100
if test -n "$ac_prev"; then
616
1101
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
617
 
  { echo "$as_me: error: missing argument to $ac_option" >&2
618
 
   { (exit 1); exit 1; }; }
619
 
fi
620
 
 
621
 
# Be sure to have absolute paths.
622
 
for ac_var in exec_prefix prefix
623
 
do
624
 
  eval ac_val=$`echo $ac_var`
625
 
  case $ac_val in
626
 
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
627
 
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
628
 
   { (exit 1); exit 1; }; };;
629
 
  esac
630
 
done
631
 
 
632
 
# Be sure to have absolute paths.
633
 
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
634
 
              localstatedir libdir includedir oldincludedir infodir mandir
635
 
do
636
 
  eval ac_val=$`echo $ac_var`
637
 
  case $ac_val in
638
 
    [\\/$]* | ?:[\\/]* ) ;;
639
 
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
640
 
   { (exit 1); exit 1; }; };;
641
 
  esac
 
1102
  as_fn_error "missing argument to $ac_option"
 
1103
fi
 
1104
 
 
1105
if test -n "$ac_unrecognized_opts"; then
 
1106
  case $enable_option_checking in
 
1107
    no) ;;
 
1108
    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
 
1109
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
 
1110
  esac
 
1111
fi
 
1112
 
 
1113
# Check all directory arguments for consistency.
 
1114
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
 
1115
                datadir sysconfdir sharedstatedir localstatedir includedir \
 
1116
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
 
1117
                libdir localedir mandir
 
1118
do
 
1119
  eval ac_val=\$$ac_var
 
1120
  # Remove trailing slashes.
 
1121
  case $ac_val in
 
1122
    */ )
 
1123
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
 
1124
      eval $ac_var=\$ac_val;;
 
1125
  esac
 
1126
  # Be sure to have absolute directory names.
 
1127
  case $ac_val in
 
1128
    [\\/$]* | ?:[\\/]* )  continue;;
 
1129
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
 
1130
  esac
 
1131
  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
642
1132
done
643
1133
 
644
1134
# There might be people who depend on the old broken behavior: `$host'
652
1142
if test "x$host_alias" != x; then
653
1143
  if test "x$build_alias" = x; then
654
1144
    cross_compiling=maybe
655
 
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
 
1145
    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
656
1146
    If a cross compiler is detected then cross compile mode will be used." >&2
657
1147
  elif test "x$build_alias" != "x$host_alias"; then
658
1148
    cross_compiling=yes
665
1155
test "$silent" = yes && exec 6>/dev/null
666
1156
 
667
1157
 
 
1158
ac_pwd=`pwd` && test -n "$ac_pwd" &&
 
1159
ac_ls_di=`ls -di .` &&
 
1160
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
 
1161
  as_fn_error "working directory cannot be determined"
 
1162
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
 
1163
  as_fn_error "pwd does not report name of working directory"
 
1164
 
 
1165
 
668
1166
# Find the source files, if location was not specified.
669
1167
if test -z "$srcdir"; then
670
1168
  ac_srcdir_defaulted=yes
671
 
  # Try the directory containing this script, then its parent.
672
 
  ac_confdir=`(dirname "$0") 2>/dev/null ||
673
 
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
674
 
         X"$0" : 'X\(//\)[^/]' \| \
675
 
         X"$0" : 'X\(//\)$' \| \
676
 
         X"$0" : 'X\(/\)' \| \
677
 
         .     : '\(.\)' 2>/dev/null ||
678
 
echo X"$0" |
679
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
680
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
681
 
          /^X\(\/\/\)$/{ s//\1/; q; }
682
 
          /^X\(\/\).*/{ s//\1/; q; }
683
 
          s/.*/./; q'`
 
1169
  # Try the directory containing this script, then the parent directory.
 
1170
  ac_confdir=`$as_dirname -- "$as_myself" ||
 
1171
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
1172
         X"$as_myself" : 'X\(//\)[^/]' \| \
 
1173
         X"$as_myself" : 'X\(//\)$' \| \
 
1174
         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
 
1175
$as_echo X"$as_myself" |
 
1176
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
1177
            s//\1/
 
1178
            q
 
1179
          }
 
1180
          /^X\(\/\/\)[^/].*/{
 
1181
            s//\1/
 
1182
            q
 
1183
          }
 
1184
          /^X\(\/\/\)$/{
 
1185
            s//\1/
 
1186
            q
 
1187
          }
 
1188
          /^X\(\/\).*/{
 
1189
            s//\1/
 
1190
            q
 
1191
          }
 
1192
          s/.*/./; q'`
684
1193
  srcdir=$ac_confdir
685
 
  if test ! -r $srcdir/$ac_unique_file; then
 
1194
  if test ! -r "$srcdir/$ac_unique_file"; then
686
1195
    srcdir=..
687
1196
  fi
688
1197
else
689
1198
  ac_srcdir_defaulted=no
690
1199
fi
691
 
if test ! -r $srcdir/$ac_unique_file; then
692
 
  if test "$ac_srcdir_defaulted" = yes; then
693
 
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
694
 
   { (exit 1); exit 1; }; }
695
 
  else
696
 
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
697
 
   { (exit 1); exit 1; }; }
698
 
  fi
699
 
fi
700
 
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
701
 
  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
702
 
   { (exit 1); exit 1; }; }
703
 
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
704
 
ac_env_build_alias_set=${build_alias+set}
705
 
ac_env_build_alias_value=$build_alias
706
 
ac_cv_env_build_alias_set=${build_alias+set}
707
 
ac_cv_env_build_alias_value=$build_alias
708
 
ac_env_host_alias_set=${host_alias+set}
709
 
ac_env_host_alias_value=$host_alias
710
 
ac_cv_env_host_alias_set=${host_alias+set}
711
 
ac_cv_env_host_alias_value=$host_alias
712
 
ac_env_target_alias_set=${target_alias+set}
713
 
ac_env_target_alias_value=$target_alias
714
 
ac_cv_env_target_alias_set=${target_alias+set}
715
 
ac_cv_env_target_alias_value=$target_alias
716
 
ac_env_CC_set=${CC+set}
717
 
ac_env_CC_value=$CC
718
 
ac_cv_env_CC_set=${CC+set}
719
 
ac_cv_env_CC_value=$CC
720
 
ac_env_CFLAGS_set=${CFLAGS+set}
721
 
ac_env_CFLAGS_value=$CFLAGS
722
 
ac_cv_env_CFLAGS_set=${CFLAGS+set}
723
 
ac_cv_env_CFLAGS_value=$CFLAGS
724
 
ac_env_LDFLAGS_set=${LDFLAGS+set}
725
 
ac_env_LDFLAGS_value=$LDFLAGS
726
 
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
727
 
ac_cv_env_LDFLAGS_value=$LDFLAGS
728
 
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
729
 
ac_env_CPPFLAGS_value=$CPPFLAGS
730
 
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
731
 
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
732
 
ac_env_CXX_set=${CXX+set}
733
 
ac_env_CXX_value=$CXX
734
 
ac_cv_env_CXX_set=${CXX+set}
735
 
ac_cv_env_CXX_value=$CXX
736
 
ac_env_CXXFLAGS_set=${CXXFLAGS+set}
737
 
ac_env_CXXFLAGS_value=$CXXFLAGS
738
 
ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
739
 
ac_cv_env_CXXFLAGS_value=$CXXFLAGS
 
1200
if test ! -r "$srcdir/$ac_unique_file"; then
 
1201
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
 
1202
  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
 
1203
fi
 
1204
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
 
1205
ac_abs_confdir=`(
 
1206
        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
 
1207
        pwd)`
 
1208
# When building in place, set srcdir=.
 
1209
if test "$ac_abs_confdir" = "$ac_pwd"; then
 
1210
  srcdir=.
 
1211
fi
 
1212
# Remove unnecessary trailing slashes from srcdir.
 
1213
# Double slashes in file names in object file debugging info
 
1214
# mess up M-x gdb in Emacs.
 
1215
case $srcdir in
 
1216
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
 
1217
esac
 
1218
for ac_var in $ac_precious_vars; do
 
1219
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
 
1220
  eval ac_env_${ac_var}_value=\$${ac_var}
 
1221
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
 
1222
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
 
1223
done
740
1224
 
741
1225
#
742
1226
# Report the --help message.
765
1249
  -n, --no-create         do not create output files
766
1250
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
767
1251
 
768
 
_ACEOF
769
 
 
770
 
  cat <<_ACEOF
771
1252
Installation directories:
772
1253
  --prefix=PREFIX         install architecture-independent files in PREFIX
773
 
                          [$ac_default_prefix]
 
1254
                          [$ac_default_prefix]
774
1255
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
775
 
                          [PREFIX]
 
1256
                          [PREFIX]
776
1257
 
777
1258
By default, \`make install' will install all the files in
778
1259
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
782
1263
For better control, use the options below.
783
1264
 
784
1265
Fine tuning of the installation directories:
785
 
  --bindir=DIR           user executables [EPREFIX/bin]
786
 
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
787
 
  --libexecdir=DIR       program executables [EPREFIX/libexec]
788
 
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
789
 
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
790
 
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
791
 
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
792
 
  --libdir=DIR           object code libraries [EPREFIX/lib]
793
 
  --includedir=DIR       C header files [PREFIX/include]
794
 
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
795
 
  --infodir=DIR          info documentation [PREFIX/info]
796
 
  --mandir=DIR           man documentation [PREFIX/man]
 
1266
  --bindir=DIR            user executables [EPREFIX/bin]
 
1267
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
 
1268
  --libexecdir=DIR        program executables [EPREFIX/libexec]
 
1269
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
 
1270
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
 
1271
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
 
1272
  --libdir=DIR            object code libraries [EPREFIX/lib]
 
1273
  --includedir=DIR        C header files [PREFIX/include]
 
1274
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
 
1275
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
 
1276
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
 
1277
  --infodir=DIR           info documentation [DATAROOTDIR/info]
 
1278
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
 
1279
  --mandir=DIR            man documentation [DATAROOTDIR/man]
 
1280
  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
 
1281
  --htmldir=DIR           html documentation [DOCDIR]
 
1282
  --dvidir=DIR            dvi documentation [DOCDIR]
 
1283
  --pdfdir=DIR            pdf documentation [DOCDIR]
 
1284
  --psdir=DIR             ps documentation [DOCDIR]
797
1285
_ACEOF
798
1286
 
799
1287
  cat <<\_ACEOF
805
1293
  cat <<\_ACEOF
806
1294
 
807
1295
Optional Features:
 
1296
  --disable-option-checking  ignore unrecognized --enable/--with options
808
1297
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
809
1298
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
810
1299
  --enable-debug          turn on debugging, default=no
 
1300
  --enable-threads        enable multi-threading support
811
1301
  --enable-shared         turn on shared libraries, default=no
812
1302
 
813
1303
Optional Packages:
814
1304
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
815
1305
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
816
1306
  --with-ansi             set full ANSI C mode, default=no
 
1307
  --with-archflags        set additional architecture flags, default=none
817
1308
  --with-docdir           set directory for documentation, default=${prefix}/share/doc/mxml
818
1309
  --with-vsnprintf        use vsnprintf emulation functions, default=auto
819
1310
 
822
1313
  CFLAGS      C compiler flags
823
1314
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
824
1315
              nonstandard directory <lib dir>
825
 
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
826
 
              headers in a nonstandard directory <include dir>
 
1316
  LIBS        libraries to pass to the linker, e.g. -l<library>
 
1317
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
 
1318
              you have headers in a nonstandard directory <include dir>
827
1319
  CXX         C++ compiler command
828
1320
  CXXFLAGS    C++ compiler flags
 
1321
  CPP         C preprocessor
829
1322
 
830
1323
Use these variables to override the choices made by `configure' or to help
831
1324
it to find libraries and programs with nonstandard names/locations.
832
1325
 
 
1326
Report bugs to the package provider.
833
1327
_ACEOF
 
1328
ac_status=$?
834
1329
fi
835
1330
 
836
1331
if test "$ac_init_help" = "recursive"; then
837
1332
  # If there are subdirs, report their specific --help.
838
 
  ac_popdir=`pwd`
839
1333
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
840
 
    test -d $ac_dir || continue
 
1334
    test -d "$ac_dir" ||
 
1335
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
 
1336
      continue
841
1337
    ac_builddir=.
842
1338
 
843
 
if test "$ac_dir" != .; then
844
 
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
845
 
  # A "../" for each directory in $ac_dir_suffix.
846
 
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
847
 
else
848
 
  ac_dir_suffix= ac_top_builddir=
849
 
fi
 
1339
case "$ac_dir" in
 
1340
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1341
*)
 
1342
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 
1343
  # A ".." for each directory in $ac_dir_suffix.
 
1344
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 
1345
  case $ac_top_builddir_sub in
 
1346
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1347
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
1348
  esac ;;
 
1349
esac
 
1350
ac_abs_top_builddir=$ac_pwd
 
1351
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
1352
# for backward compatibility:
 
1353
ac_top_builddir=$ac_top_build_prefix
850
1354
 
851
1355
case $srcdir in
852
 
  .)  # No --srcdir option.  We are building in place.
 
1356
  .)  # We are building in place.
853
1357
    ac_srcdir=.
854
 
    if test -z "$ac_top_builddir"; then
855
 
       ac_top_srcdir=.
856
 
    else
857
 
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
858
 
    fi ;;
859
 
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
1358
    ac_top_srcdir=$ac_top_builddir_sub
 
1359
    ac_abs_top_srcdir=$ac_pwd ;;
 
1360
  [\\/]* | ?:[\\/]* )  # Absolute name.
860
1361
    ac_srcdir=$srcdir$ac_dir_suffix;
861
 
    ac_top_srcdir=$srcdir ;;
862
 
  *) # Relative path.
863
 
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
864
 
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
865
 
esac
866
 
 
867
 
# Do not use `cd foo && pwd` to compute absolute paths, because
868
 
# the directories may not exist.
869
 
case `pwd` in
870
 
.) ac_abs_builddir="$ac_dir";;
871
 
*)
872
 
  case "$ac_dir" in
873
 
  .) ac_abs_builddir=`pwd`;;
874
 
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
875
 
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
876
 
  esac;;
877
 
esac
878
 
case $ac_abs_builddir in
879
 
.) ac_abs_top_builddir=${ac_top_builddir}.;;
880
 
*)
881
 
  case ${ac_top_builddir}. in
882
 
  .) ac_abs_top_builddir=$ac_abs_builddir;;
883
 
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
884
 
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
885
 
  esac;;
886
 
esac
887
 
case $ac_abs_builddir in
888
 
.) ac_abs_srcdir=$ac_srcdir;;
889
 
*)
890
 
  case $ac_srcdir in
891
 
  .) ac_abs_srcdir=$ac_abs_builddir;;
892
 
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
893
 
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
894
 
  esac;;
895
 
esac
896
 
case $ac_abs_builddir in
897
 
.) ac_abs_top_srcdir=$ac_top_srcdir;;
898
 
*)
899
 
  case $ac_top_srcdir in
900
 
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
901
 
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
902
 
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
903
 
  esac;;
904
 
esac
905
 
 
906
 
    cd $ac_dir
907
 
    # Check for guested configure; otherwise get Cygnus style configure.
908
 
    if test -f $ac_srcdir/configure.gnu; then
909
 
      echo
910
 
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
911
 
    elif test -f $ac_srcdir/configure; then
912
 
      echo
913
 
      $SHELL $ac_srcdir/configure  --help=recursive
914
 
    elif test -f $ac_srcdir/configure.ac ||
915
 
           test -f $ac_srcdir/configure.in; then
916
 
      echo
917
 
      $ac_configure --help
 
1362
    ac_top_srcdir=$srcdir
 
1363
    ac_abs_top_srcdir=$srcdir ;;
 
1364
  *) # Relative name.
 
1365
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
1366
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
1367
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
1368
esac
 
1369
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
1370
 
 
1371
    cd "$ac_dir" || { ac_status=$?; continue; }
 
1372
    # Check for guested configure.
 
1373
    if test -f "$ac_srcdir/configure.gnu"; then
 
1374
      echo &&
 
1375
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
 
1376
    elif test -f "$ac_srcdir/configure"; then
 
1377
      echo &&
 
1378
      $SHELL "$ac_srcdir/configure" --help=recursive
918
1379
    else
919
 
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
920
 
    fi
921
 
    cd "$ac_popdir"
 
1380
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
1381
    fi || ac_status=$?
 
1382
    cd "$ac_pwd" || { ac_status=$?; break; }
922
1383
  done
923
1384
fi
924
1385
 
925
 
test -n "$ac_init_help" && exit 0
 
1386
test -n "$ac_init_help" && exit $ac_status
926
1387
if $ac_init_version; then
927
1388
  cat <<\_ACEOF
 
1389
configure
 
1390
generated by GNU Autoconf 2.65
928
1391
 
929
 
Copyright (C) 2003 Free Software Foundation, Inc.
 
1392
Copyright (C) 2009 Free Software Foundation, Inc.
930
1393
This configure script is free software; the Free Software Foundation
931
1394
gives unlimited permission to copy, distribute and modify it.
932
1395
_ACEOF
933
 
  exit 0
934
 
fi
935
 
exec 5>config.log
936
 
cat >&5 <<_ACEOF
 
1396
  exit
 
1397
fi
 
1398
 
 
1399
## ------------------------ ##
 
1400
## Autoconf initialization. ##
 
1401
## ------------------------ ##
 
1402
 
 
1403
# ac_fn_c_try_compile LINENO
 
1404
# --------------------------
 
1405
# Try to compile conftest.$ac_ext, and return whether this succeeded.
 
1406
ac_fn_c_try_compile ()
 
1407
{
 
1408
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1409
  rm -f conftest.$ac_objext
 
1410
  if { { ac_try="$ac_compile"
 
1411
case "(($ac_try" in
 
1412
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1413
  *) ac_try_echo=$ac_try;;
 
1414
esac
 
1415
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1416
$as_echo "$ac_try_echo"; } >&5
 
1417
  (eval "$ac_compile") 2>conftest.err
 
1418
  ac_status=$?
 
1419
  if test -s conftest.err; then
 
1420
    grep -v '^ *+' conftest.err >conftest.er1
 
1421
    cat conftest.er1 >&5
 
1422
    mv -f conftest.er1 conftest.err
 
1423
  fi
 
1424
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1425
  test $ac_status = 0; } && {
 
1426
         test -z "$ac_c_werror_flag" ||
 
1427
         test ! -s conftest.err
 
1428
       } && test -s conftest.$ac_objext; then :
 
1429
  ac_retval=0
 
1430
else
 
1431
  $as_echo "$as_me: failed program was:" >&5
 
1432
sed 's/^/| /' conftest.$ac_ext >&5
 
1433
 
 
1434
        ac_retval=1
 
1435
fi
 
1436
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1437
  as_fn_set_status $ac_retval
 
1438
 
 
1439
} # ac_fn_c_try_compile
 
1440
 
 
1441
# ac_fn_cxx_try_compile LINENO
 
1442
# ----------------------------
 
1443
# Try to compile conftest.$ac_ext, and return whether this succeeded.
 
1444
ac_fn_cxx_try_compile ()
 
1445
{
 
1446
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1447
  rm -f conftest.$ac_objext
 
1448
  if { { ac_try="$ac_compile"
 
1449
case "(($ac_try" in
 
1450
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1451
  *) ac_try_echo=$ac_try;;
 
1452
esac
 
1453
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1454
$as_echo "$ac_try_echo"; } >&5
 
1455
  (eval "$ac_compile") 2>conftest.err
 
1456
  ac_status=$?
 
1457
  if test -s conftest.err; then
 
1458
    grep -v '^ *+' conftest.err >conftest.er1
 
1459
    cat conftest.er1 >&5
 
1460
    mv -f conftest.er1 conftest.err
 
1461
  fi
 
1462
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1463
  test $ac_status = 0; } && {
 
1464
         test -z "$ac_cxx_werror_flag" ||
 
1465
         test ! -s conftest.err
 
1466
       } && test -s conftest.$ac_objext; then :
 
1467
  ac_retval=0
 
1468
else
 
1469
  $as_echo "$as_me: failed program was:" >&5
 
1470
sed 's/^/| /' conftest.$ac_ext >&5
 
1471
 
 
1472
        ac_retval=1
 
1473
fi
 
1474
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1475
  as_fn_set_status $ac_retval
 
1476
 
 
1477
} # ac_fn_cxx_try_compile
 
1478
 
 
1479
# ac_fn_c_try_link LINENO
 
1480
# -----------------------
 
1481
# Try to link conftest.$ac_ext, and return whether this succeeded.
 
1482
ac_fn_c_try_link ()
 
1483
{
 
1484
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1485
  rm -f conftest.$ac_objext conftest$ac_exeext
 
1486
  if { { ac_try="$ac_link"
 
1487
case "(($ac_try" in
 
1488
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1489
  *) ac_try_echo=$ac_try;;
 
1490
esac
 
1491
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1492
$as_echo "$ac_try_echo"; } >&5
 
1493
  (eval "$ac_link") 2>conftest.err
 
1494
  ac_status=$?
 
1495
  if test -s conftest.err; then
 
1496
    grep -v '^ *+' conftest.err >conftest.er1
 
1497
    cat conftest.er1 >&5
 
1498
    mv -f conftest.er1 conftest.err
 
1499
  fi
 
1500
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1501
  test $ac_status = 0; } && {
 
1502
         test -z "$ac_c_werror_flag" ||
 
1503
         test ! -s conftest.err
 
1504
       } && test -s conftest$ac_exeext && {
 
1505
         test "$cross_compiling" = yes ||
 
1506
         $as_test_x conftest$ac_exeext
 
1507
       }; then :
 
1508
  ac_retval=0
 
1509
else
 
1510
  $as_echo "$as_me: failed program was:" >&5
 
1511
sed 's/^/| /' conftest.$ac_ext >&5
 
1512
 
 
1513
        ac_retval=1
 
1514
fi
 
1515
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
 
1516
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
 
1517
  # interfere with the next link command; also delete a directory that is
 
1518
  # left behind by Apple's compiler.  We do this before executing the actions.
 
1519
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 
1520
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1521
  as_fn_set_status $ac_retval
 
1522
 
 
1523
} # ac_fn_c_try_link
 
1524
 
 
1525
# ac_fn_c_check_func LINENO FUNC VAR
 
1526
# ----------------------------------
 
1527
# Tests whether FUNC exists, setting the cache variable VAR accordingly
 
1528
ac_fn_c_check_func ()
 
1529
{
 
1530
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1531
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1532
$as_echo_n "checking for $2... " >&6; }
 
1533
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
 
1534
  $as_echo_n "(cached) " >&6
 
1535
else
 
1536
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1537
/* end confdefs.h.  */
 
1538
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
 
1539
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
1540
#define $2 innocuous_$2
 
1541
 
 
1542
/* System header to define __stub macros and hopefully few prototypes,
 
1543
    which can conflict with char $2 (); below.
 
1544
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
1545
    <limits.h> exists even on freestanding compilers.  */
 
1546
 
 
1547
#ifdef __STDC__
 
1548
# include <limits.h>
 
1549
#else
 
1550
# include <assert.h>
 
1551
#endif
 
1552
 
 
1553
#undef $2
 
1554
 
 
1555
/* Override any GCC internal prototype to avoid an error.
 
1556
   Use char because int might match the return type of a GCC
 
1557
   builtin and then its argument prototype would still apply.  */
 
1558
#ifdef __cplusplus
 
1559
extern "C"
 
1560
#endif
 
1561
char $2 ();
 
1562
/* The GNU C library defines this for functions which it implements
 
1563
    to always fail with ENOSYS.  Some functions are actually named
 
1564
    something starting with __ and the normal name is an alias.  */
 
1565
#if defined __stub_$2 || defined __stub___$2
 
1566
choke me
 
1567
#endif
 
1568
 
 
1569
int
 
1570
main ()
 
1571
{
 
1572
return $2 ();
 
1573
  ;
 
1574
  return 0;
 
1575
}
 
1576
_ACEOF
 
1577
if ac_fn_c_try_link "$LINENO"; then :
 
1578
  eval "$3=yes"
 
1579
else
 
1580
  eval "$3=no"
 
1581
fi
 
1582
rm -f core conftest.err conftest.$ac_objext \
 
1583
    conftest$ac_exeext conftest.$ac_ext
 
1584
fi
 
1585
eval ac_res=\$$3
 
1586
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1587
$as_echo "$ac_res" >&6; }
 
1588
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1589
 
 
1590
} # ac_fn_c_check_func
 
1591
 
 
1592
# ac_fn_c_try_cpp LINENO
 
1593
# ----------------------
 
1594
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
 
1595
ac_fn_c_try_cpp ()
 
1596
{
 
1597
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1598
  if { { ac_try="$ac_cpp conftest.$ac_ext"
 
1599
case "(($ac_try" in
 
1600
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1601
  *) ac_try_echo=$ac_try;;
 
1602
esac
 
1603
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1604
$as_echo "$ac_try_echo"; } >&5
 
1605
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
 
1606
  ac_status=$?
 
1607
  if test -s conftest.err; then
 
1608
    grep -v '^ *+' conftest.err >conftest.er1
 
1609
    cat conftest.er1 >&5
 
1610
    mv -f conftest.er1 conftest.err
 
1611
  fi
 
1612
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1613
  test $ac_status = 0; } >/dev/null && {
 
1614
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
1615
         test ! -s conftest.err
 
1616
       }; then :
 
1617
  ac_retval=0
 
1618
else
 
1619
  $as_echo "$as_me: failed program was:" >&5
 
1620
sed 's/^/| /' conftest.$ac_ext >&5
 
1621
 
 
1622
    ac_retval=1
 
1623
fi
 
1624
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1625
  as_fn_set_status $ac_retval
 
1626
 
 
1627
} # ac_fn_c_try_cpp
 
1628
 
 
1629
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
 
1630
# -------------------------------------------------------
 
1631
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
 
1632
# the include files in INCLUDES and setting the cache variable VAR
 
1633
# accordingly.
 
1634
ac_fn_c_check_header_mongrel ()
 
1635
{
 
1636
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1637
  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
 
1638
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1639
$as_echo_n "checking for $2... " >&6; }
 
1640
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
 
1641
  $as_echo_n "(cached) " >&6
 
1642
fi
 
1643
eval ac_res=\$$3
 
1644
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1645
$as_echo "$ac_res" >&6; }
 
1646
else
 
1647
  # Is the header compilable?
 
1648
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
 
1649
$as_echo_n "checking $2 usability... " >&6; }
 
1650
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1651
/* end confdefs.h.  */
 
1652
$4
 
1653
#include <$2>
 
1654
_ACEOF
 
1655
if ac_fn_c_try_compile "$LINENO"; then :
 
1656
  ac_header_compiler=yes
 
1657
else
 
1658
  ac_header_compiler=no
 
1659
fi
 
1660
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
1661
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
 
1662
$as_echo "$ac_header_compiler" >&6; }
 
1663
 
 
1664
# Is the header present?
 
1665
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
 
1666
$as_echo_n "checking $2 presence... " >&6; }
 
1667
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1668
/* end confdefs.h.  */
 
1669
#include <$2>
 
1670
_ACEOF
 
1671
if ac_fn_c_try_cpp "$LINENO"; then :
 
1672
  ac_header_preproc=yes
 
1673
else
 
1674
  ac_header_preproc=no
 
1675
fi
 
1676
rm -f conftest.err conftest.$ac_ext
 
1677
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
 
1678
$as_echo "$ac_header_preproc" >&6; }
 
1679
 
 
1680
# So?  What about this header?
 
1681
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
 
1682
  yes:no: )
 
1683
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
 
1684
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
1685
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
 
1686
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
 
1687
    ;;
 
1688
  no:yes:* )
 
1689
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
 
1690
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
 
1691
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
 
1692
$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
 
1693
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
 
1694
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
 
1695
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
 
1696
$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
 
1697
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
 
1698
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
 
1699
    ;;
 
1700
esac
 
1701
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1702
$as_echo_n "checking for $2... " >&6; }
 
1703
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
 
1704
  $as_echo_n "(cached) " >&6
 
1705
else
 
1706
  eval "$3=\$ac_header_compiler"
 
1707
fi
 
1708
eval ac_res=\$$3
 
1709
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1710
$as_echo "$ac_res" >&6; }
 
1711
fi
 
1712
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1713
 
 
1714
} # ac_fn_c_check_header_mongrel
 
1715
 
 
1716
# ac_fn_c_try_run LINENO
 
1717
# ----------------------
 
1718
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
 
1719
# that executables *can* be run.
 
1720
ac_fn_c_try_run ()
 
1721
{
 
1722
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1723
  if { { ac_try="$ac_link"
 
1724
case "(($ac_try" in
 
1725
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1726
  *) ac_try_echo=$ac_try;;
 
1727
esac
 
1728
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1729
$as_echo "$ac_try_echo"; } >&5
 
1730
  (eval "$ac_link") 2>&5
 
1731
  ac_status=$?
 
1732
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1733
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
 
1734
  { { case "(($ac_try" in
 
1735
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1736
  *) ac_try_echo=$ac_try;;
 
1737
esac
 
1738
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1739
$as_echo "$ac_try_echo"; } >&5
 
1740
  (eval "$ac_try") 2>&5
 
1741
  ac_status=$?
 
1742
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1743
  test $ac_status = 0; }; }; then :
 
1744
  ac_retval=0
 
1745
else
 
1746
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
1747
       $as_echo "$as_me: failed program was:" >&5
 
1748
sed 's/^/| /' conftest.$ac_ext >&5
 
1749
 
 
1750
       ac_retval=$ac_status
 
1751
fi
 
1752
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 
1753
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1754
  as_fn_set_status $ac_retval
 
1755
 
 
1756
} # ac_fn_c_try_run
 
1757
 
 
1758
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
 
1759
# -------------------------------------------------------
 
1760
# Tests whether HEADER exists and can be compiled using the include files in
 
1761
# INCLUDES, setting the cache variable VAR accordingly.
 
1762
ac_fn_c_check_header_compile ()
 
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
$4
 
1773
#include <$2>
 
1774
_ACEOF
 
1775
if ac_fn_c_try_compile "$LINENO"; then :
 
1776
  eval "$3=yes"
 
1777
else
 
1778
  eval "$3=no"
 
1779
fi
 
1780
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
1781
fi
 
1782
eval ac_res=\$$3
 
1783
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1784
$as_echo "$ac_res" >&6; }
 
1785
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1786
 
 
1787
} # ac_fn_c_check_header_compile
 
1788
cat >config.log <<_ACEOF
937
1789
This file contains any messages produced by compilers while
938
1790
running configure, to aid debugging if configure makes a mistake.
939
1791
 
940
1792
It was created by $as_me, which was
941
 
generated by GNU Autoconf 2.59.  Invocation command line was
 
1793
generated by GNU Autoconf 2.65.  Invocation command line was
942
1794
 
943
1795
  $ $0 $@
944
1796
 
945
1797
_ACEOF
 
1798
exec 5>>config.log
946
1799
{
947
1800
cat <<_ASUNAME
948
1801
## --------- ##
961
1814
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
962
1815
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
963
1816
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
964
 
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
 
1817
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
965
1818
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
966
1819
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
967
1820
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
973
1826
do
974
1827
  IFS=$as_save_IFS
975
1828
  test -z "$as_dir" && as_dir=.
976
 
  echo "PATH: $as_dir"
977
 
done
 
1829
    $as_echo "PATH: $as_dir"
 
1830
  done
 
1831
IFS=$as_save_IFS
978
1832
 
979
1833
} >&5
980
1834
 
996
1850
ac_configure_args=
997
1851
ac_configure_args0=
998
1852
ac_configure_args1=
999
 
ac_sep=
1000
1853
ac_must_keep_next=false
1001
1854
for ac_pass in 1 2
1002
1855
do
1007
1860
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1008
1861
    | -silent | --silent | --silen | --sile | --sil)
1009
1862
      continue ;;
1010
 
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1011
 
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1863
    *\'*)
 
1864
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1012
1865
    esac
1013
1866
    case $ac_pass in
1014
 
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
 
1867
    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1015
1868
    2)
1016
 
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
 
1869
      as_fn_append ac_configure_args1 " '$ac_arg'"
1017
1870
      if test $ac_must_keep_next = true; then
1018
1871
        ac_must_keep_next=false # Got value, back to normal.
1019
1872
      else
1029
1882
          -* ) ac_must_keep_next=true ;;
1030
1883
        esac
1031
1884
      fi
1032
 
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1033
 
      # Get rid of the leading space.
1034
 
      ac_sep=" "
 
1885
      as_fn_append ac_configure_args " '$ac_arg'"
1035
1886
      ;;
1036
1887
    esac
1037
1888
  done
1038
1889
done
1039
 
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1040
 
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
 
1890
{ ac_configure_args0=; unset ac_configure_args0;}
 
1891
{ ac_configure_args1=; unset ac_configure_args1;}
1041
1892
 
1042
1893
# When interrupted or exit'd, cleanup temporary files, and complete
1043
1894
# config.log.  We remove comments because anyway the quotes in there
1044
1895
# would cause problems or look ugly.
1045
 
# WARNING: Be sure not to use single quotes in there, as some shells,
1046
 
# such as our DU 5.0 friend, will then `close' the trap.
 
1896
# WARNING: Use '\'' to represent an apostrophe within the trap.
 
1897
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1047
1898
trap 'exit_status=$?
1048
1899
  # Save into config.log some information that might help in debugging.
1049
1900
  {
1056
1907
_ASBOX
1057
1908
    echo
1058
1909
    # The following way of writing the cache mishandles newlines in values,
1059
 
{
 
1910
(
 
1911
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
 
1912
    eval ac_val=\$$ac_var
 
1913
    case $ac_val in #(
 
1914
    *${as_nl}*)
 
1915
      case $ac_var in #(
 
1916
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
 
1917
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
 
1918
      esac
 
1919
      case $ac_var in #(
 
1920
      _ | IFS | as_nl) ;; #(
 
1921
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 
1922
      *) { eval $ac_var=; unset $ac_var;} ;;
 
1923
      esac ;;
 
1924
    esac
 
1925
  done
1060
1926
  (set) 2>&1 |
1061
 
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1062
 
    *ac_space=\ *)
 
1927
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
 
1928
    *${as_nl}ac_space=\ *)
1063
1929
      sed -n \
1064
 
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1065
 
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1066
 
      ;;
 
1930
        "s/'\''/'\''\\\\'\'''\''/g;
 
1931
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
 
1932
      ;; #(
1067
1933
    *)
1068
 
      sed -n \
1069
 
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
1934
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1070
1935
      ;;
1071
 
    esac;
1072
 
}
 
1936
    esac |
 
1937
    sort
 
1938
)
1073
1939
    echo
1074
1940
 
1075
1941
    cat <<\_ASBOX
1080
1946
    echo
1081
1947
    for ac_var in $ac_subst_vars
1082
1948
    do
1083
 
      eval ac_val=$`echo $ac_var`
1084
 
      echo "$ac_var='"'"'$ac_val'"'"'"
 
1949
      eval ac_val=\$$ac_var
 
1950
      case $ac_val in
 
1951
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
1952
      esac
 
1953
      $as_echo "$ac_var='\''$ac_val'\''"
1085
1954
    done | sort
1086
1955
    echo
1087
1956
 
1088
1957
    if test -n "$ac_subst_files"; then
1089
1958
      cat <<\_ASBOX
1090
 
## ------------- ##
1091
 
## Output files. ##
1092
 
## ------------- ##
 
1959
## ------------------- ##
 
1960
## File substitutions. ##
 
1961
## ------------------- ##
1093
1962
_ASBOX
1094
1963
      echo
1095
1964
      for ac_var in $ac_subst_files
1096
1965
      do
1097
 
        eval ac_val=$`echo $ac_var`
1098
 
        echo "$ac_var='"'"'$ac_val'"'"'"
 
1966
        eval ac_val=\$$ac_var
 
1967
        case $ac_val in
 
1968
        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
1969
        esac
 
1970
        $as_echo "$ac_var='\''$ac_val'\''"
1099
1971
      done | sort
1100
1972
      echo
1101
1973
    fi
1107
1979
## ----------- ##
1108
1980
_ASBOX
1109
1981
      echo
1110
 
      sed "/^$/d" confdefs.h | sort
 
1982
      cat confdefs.h
1111
1983
      echo
1112
1984
    fi
1113
1985
    test "$ac_signal" != 0 &&
1114
 
      echo "$as_me: caught signal $ac_signal"
1115
 
    echo "$as_me: exit $exit_status"
 
1986
      $as_echo "$as_me: caught signal $ac_signal"
 
1987
    $as_echo "$as_me: exit $exit_status"
1116
1988
  } >&5
1117
 
  rm -f core *.core &&
1118
 
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
 
1989
  rm -f core *.core core.conftest.* &&
 
1990
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1119
1991
    exit $exit_status
1120
 
     ' 0
 
1992
' 0
1121
1993
for ac_signal in 1 2 13 15; do
1122
 
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
 
1994
  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1123
1995
done
1124
1996
ac_signal=0
1125
1997
 
1126
1998
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1127
 
rm -rf conftest* confdefs.h
1128
 
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1129
 
echo >confdefs.h
 
1999
rm -f -r conftest* confdefs.h
 
2000
 
 
2001
$as_echo "/* confdefs.h */" > confdefs.h
1130
2002
 
1131
2003
# Predefined preprocessor variables.
1132
2004
 
1134
2006
#define PACKAGE_NAME "$PACKAGE_NAME"
1135
2007
_ACEOF
1136
2008
 
1137
 
 
1138
2009
cat >>confdefs.h <<_ACEOF
1139
2010
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1140
2011
_ACEOF
1141
2012
 
1142
 
 
1143
2013
cat >>confdefs.h <<_ACEOF
1144
2014
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1145
2015
_ACEOF
1146
2016
 
1147
 
 
1148
2017
cat >>confdefs.h <<_ACEOF
1149
2018
#define PACKAGE_STRING "$PACKAGE_STRING"
1150
2019
_ACEOF
1151
2020
 
1152
 
 
1153
2021
cat >>confdefs.h <<_ACEOF
1154
2022
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1155
2023
_ACEOF
1156
2024
 
 
2025
cat >>confdefs.h <<_ACEOF
 
2026
#define PACKAGE_URL "$PACKAGE_URL"
 
2027
_ACEOF
 
2028
 
1157
2029
 
1158
2030
# Let the site file select an alternate cache file if it wants to.
1159
 
# Prefer explicitly selected file to automatically selected ones.
1160
 
if test -z "$CONFIG_SITE"; then
1161
 
  if test "x$prefix" != xNONE; then
1162
 
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1163
 
  else
1164
 
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1165
 
  fi
 
2031
# Prefer an explicitly selected file to automatically selected ones.
 
2032
ac_site_file1=NONE
 
2033
ac_site_file2=NONE
 
2034
if test -n "$CONFIG_SITE"; then
 
2035
  ac_site_file1=$CONFIG_SITE
 
2036
elif test "x$prefix" != xNONE; then
 
2037
  ac_site_file1=$prefix/share/config.site
 
2038
  ac_site_file2=$prefix/etc/config.site
 
2039
else
 
2040
  ac_site_file1=$ac_default_prefix/share/config.site
 
2041
  ac_site_file2=$ac_default_prefix/etc/config.site
1166
2042
fi
1167
 
for ac_site_file in $CONFIG_SITE; do
1168
 
  if test -r "$ac_site_file"; then
1169
 
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1170
 
echo "$as_me: loading site script $ac_site_file" >&6;}
 
2043
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
 
2044
do
 
2045
  test "x$ac_site_file" = xNONE && continue
 
2046
  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
 
2047
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
 
2048
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1171
2049
    sed 's/^/| /' "$ac_site_file" >&5
1172
2050
    . "$ac_site_file"
1173
2051
  fi
1174
2052
done
1175
2053
 
1176
2054
if test -r "$cache_file"; then
1177
 
  # Some versions of bash will fail to source /dev/null (special
1178
 
  # files actually), so we avoid doing that.
1179
 
  if test -f "$cache_file"; then
1180
 
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1181
 
echo "$as_me: loading cache $cache_file" >&6;}
 
2055
  # Some versions of bash will fail to source /dev/null (special files
 
2056
  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
 
2057
  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
 
2058
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
 
2059
$as_echo "$as_me: loading cache $cache_file" >&6;}
1182
2060
    case $cache_file in
1183
 
      [\\/]* | ?:[\\/]* ) . $cache_file;;
1184
 
      *)                      . ./$cache_file;;
 
2061
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
 
2062
      *)                      . "./$cache_file";;
1185
2063
    esac
1186
2064
  fi
1187
2065
else
1188
 
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1189
 
echo "$as_me: creating cache $cache_file" >&6;}
 
2066
  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
 
2067
$as_echo "$as_me: creating cache $cache_file" >&6;}
1190
2068
  >$cache_file
1191
2069
fi
1192
2070
 
1193
2071
# Check that the precious variables saved in the cache have kept the same
1194
2072
# value.
1195
2073
ac_cache_corrupted=false
1196
 
for ac_var in `(set) 2>&1 |
1197
 
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
 
2074
for ac_var in $ac_precious_vars; do
1198
2075
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1199
2076
  eval ac_new_set=\$ac_env_${ac_var}_set
1200
 
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1201
 
  eval ac_new_val="\$ac_env_${ac_var}_value"
 
2077
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
 
2078
  eval ac_new_val=\$ac_env_${ac_var}_value
1202
2079
  case $ac_old_set,$ac_new_set in
1203
2080
    set,)
1204
 
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1205
 
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
2081
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
2082
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1206
2083
      ac_cache_corrupted=: ;;
1207
2084
    ,set)
1208
 
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1209
 
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
2085
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
 
2086
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1210
2087
      ac_cache_corrupted=: ;;
1211
2088
    ,);;
1212
2089
    *)
1213
2090
      if test "x$ac_old_val" != "x$ac_new_val"; then
1214
 
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1215
 
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1216
 
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1217
 
echo "$as_me:   former value:  $ac_old_val" >&2;}
1218
 
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1219
 
echo "$as_me:   current value: $ac_new_val" >&2;}
1220
 
        ac_cache_corrupted=:
 
2091
        # differences in whitespace do not lead to failure.
 
2092
        ac_old_val_w=`echo x $ac_old_val`
 
2093
        ac_new_val_w=`echo x $ac_new_val`
 
2094
        if test "$ac_old_val_w" != "$ac_new_val_w"; then
 
2095
          { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
 
2096
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
2097
          ac_cache_corrupted=:
 
2098
        else
 
2099
          { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
 
2100
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
 
2101
          eval $ac_var=\$ac_old_val
 
2102
        fi
 
2103
        { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
 
2104
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
 
2105
        { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
 
2106
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1221
2107
      fi;;
1222
2108
  esac
1223
2109
  # Pass precious variables to config.status.
1224
2110
  if test "$ac_new_set" = set; then
1225
2111
    case $ac_new_val in
1226
 
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1227
 
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
2112
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1228
2113
    *) ac_arg=$ac_var=$ac_new_val ;;
1229
2114
    esac
1230
2115
    case " $ac_configure_args " in
1231
2116
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1232
 
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
 
2117
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1233
2118
    esac
1234
2119
  fi
1235
2120
done
1236
2121
if $ac_cache_corrupted; then
1237
 
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1238
 
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1239
 
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1240
 
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1241
 
   { (exit 1); exit 1; }; }
 
2122
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
2123
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2124
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
 
2125
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
2126
  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1242
2127
fi
 
2128
## -------------------- ##
 
2129
## Main body of script. ##
 
2130
## -------------------- ##
1243
2131
 
1244
2132
ac_ext=c
1245
2133
ac_cpp='$CPP $CPPFLAGS'
1249
2137
 
1250
2138
 
1251
2139
 
1252
 
 
1253
 
 
1254
 
 
1255
 
 
1256
 
 
1257
 
 
1258
 
 
1259
 
 
1260
 
 
1261
 
 
1262
 
 
1263
 
 
1264
 
 
1265
 
 
1266
 
 
1267
 
 
1268
 
 
1269
 
          ac_config_headers="$ac_config_headers config.h"
 
2140
ac_config_headers="$ac_config_headers config.h"
1270
2141
 
1271
2142
 
1272
2143
VERSION=2.2.2
1280
2151
CXXFLAGS="${CXXFLAGS:=}"
1281
2152
LDFLAGS="${LDFLAGS:=}"
1282
2153
 
1283
 
OPTIM="-O"
1284
 
 
1285
 
 
1286
 
 
1287
 
# Check whether --with-ansi or --without-ansi was given.
1288
 
if test "${with_ansi+set}" = set; then
1289
 
  withval="$with_ansi"
1290
 
  use_ansi="$withval"
 
2154
OPTIM=""
 
2155
 
 
2156
 
 
2157
 
 
2158
# Check whether --with-ansi was given.
 
2159
if test "${with_ansi+set}" = set; then :
 
2160
  withval=$with_ansi; use_ansi="$withval"
1291
2161
else
1292
2162
  use_ansi="no"
1293
 
fi;
1294
 
 
1295
 
# Check whether --enable-debug or --disable-debug was given.
1296
 
if test "${enable_debug+set}" = set; then
1297
 
  enableval="$enable_debug"
1298
 
  if eval "test x$enable_debug = xyes"; then
 
2163
fi
 
2164
 
 
2165
 
 
2166
 
 
2167
# Check whether --with-archflags was given.
 
2168
if test "${with_archflags+set}" = set; then :
 
2169
  withval=$with_archflags; ARCHFLAGS="$withval"
 
2170
else
 
2171
  ARCHFLAGS=""
 
2172
fi
 
2173
 
 
2174
 
 
2175
 
 
2176
# Check whether --enable-debug was given.
 
2177
if test "${enable_debug+set}" = set; then :
 
2178
  enableval=$enable_debug; if eval "test x$enable_debug = xyes"; then
1299
2179
        OPTIM="-g"
1300
 
else
1301
 
        LDFLAGS="$LDFLAGS -s"
1302
 
fi
1303
 
fi;
1304
 
 
1305
 
 
1306
 
# Check whether --with-docdir or --without-docdir was given.
1307
 
if test "${with_docdir+set}" = set; then
1308
 
  withval="$with_docdir"
1309
 
  docdir="$withval"
 
2180
fi
 
2181
fi
 
2182
 
 
2183
 
 
2184
 
 
2185
# Check whether --with-docdir was given.
 
2186
if test "${with_docdir+set}" = set; then :
 
2187
  withval=$with_docdir; docdir="$withval"
1310
2188
else
1311
2189
  docdir="NONE"
1312
 
fi;
1313
 
 
1314
 
 
1315
 
 
1316
 
 
1317
 
# Check whether --with-vsnprintf or --without-vsnprintf was given.
1318
 
if test "${with_vsnprintf+set}" = set; then
1319
 
  withval="$with_vsnprintf"
1320
 
  use_vsnprintf="$withval"
 
2190
fi
 
2191
 
 
2192
 
 
2193
 
 
2194
 
 
2195
 
 
2196
# Check whether --with-vsnprintf was given.
 
2197
if test "${with_vsnprintf+set}" = set; then :
 
2198
  withval=$with_vsnprintf; use_vsnprintf="$withval"
1321
2199
else
1322
2200
  use_vsnprintf="no"
1323
 
fi;
 
2201
fi
 
2202
 
1324
2203
 
1325
2204
uname=`uname`
1326
2205
uversion=`uname -r | sed -e '1,$s/[^0-9]//g'`
1336
2215
if test -n "$ac_tool_prefix"; then
1337
2216
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1338
2217
set dummy ${ac_tool_prefix}gcc; ac_word=$2
1339
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1340
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1341
 
if test "${ac_cv_prog_CC+set}" = set; then
1342
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2218
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2219
$as_echo_n "checking for $ac_word... " >&6; }
 
2220
if test "${ac_cv_prog_CC+set}" = set; then :
 
2221
  $as_echo_n "(cached) " >&6
1343
2222
else
1344
2223
  if test -n "$CC"; then
1345
2224
  ac_cv_prog_CC="$CC" # Let the user override the test.
1349
2228
do
1350
2229
  IFS=$as_save_IFS
1351
2230
  test -z "$as_dir" && as_dir=.
1352
 
  for ac_exec_ext in '' $ac_executable_extensions; do
1353
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2231
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2232
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1354
2233
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1355
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2234
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1356
2235
    break 2
1357
2236
  fi
1358
2237
done
1359
 
done
 
2238
  done
 
2239
IFS=$as_save_IFS
1360
2240
 
1361
2241
fi
1362
2242
fi
1363
2243
CC=$ac_cv_prog_CC
1364
2244
if test -n "$CC"; then
1365
 
  echo "$as_me:$LINENO: result: $CC" >&5
1366
 
echo "${ECHO_T}$CC" >&6
 
2245
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
2246
$as_echo "$CC" >&6; }
1367
2247
else
1368
 
  echo "$as_me:$LINENO: result: no" >&5
1369
 
echo "${ECHO_T}no" >&6
 
2248
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2249
$as_echo "no" >&6; }
1370
2250
fi
 
2251
 
1371
2252
 
1372
2253
fi
1373
2254
if test -z "$ac_cv_prog_CC"; then
1374
2255
  ac_ct_CC=$CC
1375
2256
  # Extract the first word of "gcc", so it can be a program name with args.
1376
2257
set dummy gcc; ac_word=$2
1377
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1378
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1379
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1380
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2258
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2259
$as_echo_n "checking for $ac_word... " >&6; }
 
2260
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
 
2261
  $as_echo_n "(cached) " >&6
1381
2262
else
1382
2263
  if test -n "$ac_ct_CC"; then
1383
2264
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1387
2268
do
1388
2269
  IFS=$as_save_IFS
1389
2270
  test -z "$as_dir" && as_dir=.
1390
 
  for ac_exec_ext in '' $ac_executable_extensions; do
1391
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2271
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2272
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1392
2273
    ac_cv_prog_ac_ct_CC="gcc"
1393
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2274
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1394
2275
    break 2
1395
2276
  fi
1396
2277
done
1397
 
done
 
2278
  done
 
2279
IFS=$as_save_IFS
1398
2280
 
1399
2281
fi
1400
2282
fi
1401
2283
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1402
2284
if test -n "$ac_ct_CC"; then
1403
 
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1404
 
echo "${ECHO_T}$ac_ct_CC" >&6
 
2285
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
2286
$as_echo "$ac_ct_CC" >&6; }
1405
2287
else
1406
 
  echo "$as_me:$LINENO: result: no" >&5
1407
 
echo "${ECHO_T}no" >&6
 
2288
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2289
$as_echo "no" >&6; }
1408
2290
fi
1409
2291
 
1410
 
  CC=$ac_ct_CC
 
2292
  if test "x$ac_ct_CC" = x; then
 
2293
    CC=""
 
2294
  else
 
2295
    case $cross_compiling:$ac_tool_warned in
 
2296
yes:)
 
2297
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
2298
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
2299
ac_tool_warned=yes ;;
 
2300
esac
 
2301
    CC=$ac_ct_CC
 
2302
  fi
1411
2303
else
1412
2304
  CC="$ac_cv_prog_CC"
1413
2305
fi
1414
2306
 
1415
2307
if test -z "$CC"; then
1416
 
  if test -n "$ac_tool_prefix"; then
1417
 
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
2308
          if test -n "$ac_tool_prefix"; then
 
2309
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1418
2310
set dummy ${ac_tool_prefix}cc; ac_word=$2
1419
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1420
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1421
 
if test "${ac_cv_prog_CC+set}" = set; then
1422
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2311
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2312
$as_echo_n "checking for $ac_word... " >&6; }
 
2313
if test "${ac_cv_prog_CC+set}" = set; then :
 
2314
  $as_echo_n "(cached) " >&6
1423
2315
else
1424
2316
  if test -n "$CC"; then
1425
2317
  ac_cv_prog_CC="$CC" # Let the user override the test.
1429
2321
do
1430
2322
  IFS=$as_save_IFS
1431
2323
  test -z "$as_dir" && as_dir=.
1432
 
  for ac_exec_ext in '' $ac_executable_extensions; do
1433
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2324
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2325
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1434
2326
    ac_cv_prog_CC="${ac_tool_prefix}cc"
1435
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2327
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1436
2328
    break 2
1437
2329
  fi
1438
2330
done
1439
 
done
 
2331
  done
 
2332
IFS=$as_save_IFS
1440
2333
 
1441
2334
fi
1442
2335
fi
1443
2336
CC=$ac_cv_prog_CC
1444
2337
if test -n "$CC"; then
1445
 
  echo "$as_me:$LINENO: result: $CC" >&5
1446
 
echo "${ECHO_T}$CC" >&6
1447
 
else
1448
 
  echo "$as_me:$LINENO: result: no" >&5
1449
 
echo "${ECHO_T}no" >&6
1450
 
fi
1451
 
 
1452
 
fi
1453
 
if test -z "$ac_cv_prog_CC"; then
1454
 
  ac_ct_CC=$CC
1455
 
  # Extract the first word of "cc", so it can be a program name with args.
1456
 
set dummy cc; ac_word=$2
1457
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1458
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1459
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1460
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1461
 
else
1462
 
  if test -n "$ac_ct_CC"; then
1463
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1464
 
else
1465
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1466
 
for as_dir in $PATH
1467
 
do
1468
 
  IFS=$as_save_IFS
1469
 
  test -z "$as_dir" && as_dir=.
1470
 
  for ac_exec_ext in '' $ac_executable_extensions; do
1471
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1472
 
    ac_cv_prog_ac_ct_CC="cc"
1473
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1474
 
    break 2
 
2338
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
2339
$as_echo "$CC" >&6; }
 
2340
else
 
2341
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2342
$as_echo "no" >&6; }
 
2343
fi
 
2344
 
 
2345
 
1475
2346
  fi
1476
 
done
1477
 
done
1478
 
 
1479
 
fi
1480
 
fi
1481
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1482
 
if test -n "$ac_ct_CC"; then
1483
 
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1484
 
echo "${ECHO_T}$ac_ct_CC" >&6
1485
 
else
1486
 
  echo "$as_me:$LINENO: result: no" >&5
1487
 
echo "${ECHO_T}no" >&6
1488
 
fi
1489
 
 
1490
 
  CC=$ac_ct_CC
1491
 
else
1492
 
  CC="$ac_cv_prog_CC"
1493
 
fi
1494
 
 
1495
2347
fi
1496
2348
if test -z "$CC"; then
1497
2349
  # Extract the first word of "cc", so it can be a program name with args.
1498
2350
set dummy cc; ac_word=$2
1499
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1500
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1501
 
if test "${ac_cv_prog_CC+set}" = set; then
1502
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2351
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2352
$as_echo_n "checking for $ac_word... " >&6; }
 
2353
if test "${ac_cv_prog_CC+set}" = set; then :
 
2354
  $as_echo_n "(cached) " >&6
1503
2355
else
1504
2356
  if test -n "$CC"; then
1505
2357
  ac_cv_prog_CC="$CC" # Let the user override the test.
1510
2362
do
1511
2363
  IFS=$as_save_IFS
1512
2364
  test -z "$as_dir" && as_dir=.
1513
 
  for ac_exec_ext in '' $ac_executable_extensions; do
1514
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2365
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2366
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1515
2367
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1516
2368
       ac_prog_rejected=yes
1517
2369
       continue
1518
2370
     fi
1519
2371
    ac_cv_prog_CC="cc"
1520
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2372
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1521
2373
    break 2
1522
2374
  fi
1523
2375
done
1524
 
done
 
2376
  done
 
2377
IFS=$as_save_IFS
1525
2378
 
1526
2379
if test $ac_prog_rejected = yes; then
1527
2380
  # We found a bogon in the path, so make sure we never use it.
1539
2392
fi
1540
2393
CC=$ac_cv_prog_CC
1541
2394
if test -n "$CC"; then
1542
 
  echo "$as_me:$LINENO: result: $CC" >&5
1543
 
echo "${ECHO_T}$CC" >&6
 
2395
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
2396
$as_echo "$CC" >&6; }
1544
2397
else
1545
 
  echo "$as_me:$LINENO: result: no" >&5
1546
 
echo "${ECHO_T}no" >&6
 
2398
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2399
$as_echo "no" >&6; }
1547
2400
fi
 
2401
 
1548
2402
 
1549
2403
fi
1550
2404
if test -z "$CC"; then
1551
2405
  if test -n "$ac_tool_prefix"; then
1552
 
  for ac_prog in cl
 
2406
  for ac_prog in cl.exe
1553
2407
  do
1554
2408
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1555
2409
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1556
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1557
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1558
 
if test "${ac_cv_prog_CC+set}" = set; then
1559
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2410
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2411
$as_echo_n "checking for $ac_word... " >&6; }
 
2412
if test "${ac_cv_prog_CC+set}" = set; then :
 
2413
  $as_echo_n "(cached) " >&6
1560
2414
else
1561
2415
  if test -n "$CC"; then
1562
2416
  ac_cv_prog_CC="$CC" # Let the user override the test.
1566
2420
do
1567
2421
  IFS=$as_save_IFS
1568
2422
  test -z "$as_dir" && as_dir=.
1569
 
  for ac_exec_ext in '' $ac_executable_extensions; do
1570
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2423
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2424
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1571
2425
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1572
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2426
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1573
2427
    break 2
1574
2428
  fi
1575
2429
done
1576
 
done
 
2430
  done
 
2431
IFS=$as_save_IFS
1577
2432
 
1578
2433
fi
1579
2434
fi
1580
2435
CC=$ac_cv_prog_CC
1581
2436
if test -n "$CC"; then
1582
 
  echo "$as_me:$LINENO: result: $CC" >&5
1583
 
echo "${ECHO_T}$CC" >&6
 
2437
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
2438
$as_echo "$CC" >&6; }
1584
2439
else
1585
 
  echo "$as_me:$LINENO: result: no" >&5
1586
 
echo "${ECHO_T}no" >&6
 
2440
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2441
$as_echo "no" >&6; }
1587
2442
fi
1588
2443
 
 
2444
 
1589
2445
    test -n "$CC" && break
1590
2446
  done
1591
2447
fi
1592
2448
if test -z "$CC"; then
1593
2449
  ac_ct_CC=$CC
1594
 
  for ac_prog in cl
 
2450
  for ac_prog in cl.exe
1595
2451
do
1596
2452
  # Extract the first word of "$ac_prog", so it can be a program name with args.
1597
2453
set dummy $ac_prog; ac_word=$2
1598
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1599
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1600
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1601
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2454
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2455
$as_echo_n "checking for $ac_word... " >&6; }
 
2456
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
 
2457
  $as_echo_n "(cached) " >&6
1602
2458
else
1603
2459
  if test -n "$ac_ct_CC"; then
1604
2460
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1608
2464
do
1609
2465
  IFS=$as_save_IFS
1610
2466
  test -z "$as_dir" && as_dir=.
1611
 
  for ac_exec_ext in '' $ac_executable_extensions; do
1612
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2467
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2468
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1613
2469
    ac_cv_prog_ac_ct_CC="$ac_prog"
1614
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2470
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1615
2471
    break 2
1616
2472
  fi
1617
2473
done
1618
 
done
 
2474
  done
 
2475
IFS=$as_save_IFS
1619
2476
 
1620
2477
fi
1621
2478
fi
1622
2479
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1623
2480
if test -n "$ac_ct_CC"; then
1624
 
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1625
 
echo "${ECHO_T}$ac_ct_CC" >&6
 
2481
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
2482
$as_echo "$ac_ct_CC" >&6; }
1626
2483
else
1627
 
  echo "$as_me:$LINENO: result: no" >&5
1628
 
echo "${ECHO_T}no" >&6
 
2484
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2485
$as_echo "no" >&6; }
1629
2486
fi
1630
2487
 
 
2488
 
1631
2489
  test -n "$ac_ct_CC" && break
1632
2490
done
1633
2491
 
1634
 
  CC=$ac_ct_CC
1635
 
fi
1636
 
 
1637
 
fi
1638
 
 
1639
 
 
1640
 
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1641
 
See \`config.log' for more details." >&5
1642
 
echo "$as_me: error: no acceptable C compiler found in \$PATH
1643
 
See \`config.log' for more details." >&2;}
1644
 
   { (exit 1); exit 1; }; }
 
2492
  if test "x$ac_ct_CC" = x; then
 
2493
    CC=""
 
2494
  else
 
2495
    case $cross_compiling:$ac_tool_warned in
 
2496
yes:)
 
2497
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
2498
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
2499
ac_tool_warned=yes ;;
 
2500
esac
 
2501
    CC=$ac_ct_CC
 
2502
  fi
 
2503
fi
 
2504
 
 
2505
fi
 
2506
 
 
2507
 
 
2508
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
2509
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2510
as_fn_error "no acceptable C compiler found in \$PATH
 
2511
See \`config.log' for more details." "$LINENO" 5; }
1645
2512
 
1646
2513
# Provide some information about the compiler.
1647
 
echo "$as_me:$LINENO:" \
1648
 
     "checking for C compiler version" >&5
1649
 
ac_compiler=`set X $ac_compile; echo $2`
1650
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1651
 
  (eval $ac_compiler --version </dev/null >&5) 2>&5
1652
 
  ac_status=$?
1653
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1654
 
  (exit $ac_status); }
1655
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1656
 
  (eval $ac_compiler -v </dev/null >&5) 2>&5
1657
 
  ac_status=$?
1658
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1659
 
  (exit $ac_status); }
1660
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1661
 
  (eval $ac_compiler -V </dev/null >&5) 2>&5
1662
 
  ac_status=$?
1663
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1664
 
  (exit $ac_status); }
 
2514
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
 
2515
set X $ac_compile
 
2516
ac_compiler=$2
 
2517
for ac_option in --version -v -V -qversion; do
 
2518
  { { ac_try="$ac_compiler $ac_option >&5"
 
2519
case "(($ac_try" in
 
2520
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2521
  *) ac_try_echo=$ac_try;;
 
2522
esac
 
2523
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
2524
$as_echo "$ac_try_echo"; } >&5
 
2525
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
 
2526
  ac_status=$?
 
2527
  if test -s conftest.err; then
 
2528
    sed '10a\
 
2529
... rest of stderr output deleted ...
 
2530
         10q' conftest.err >conftest.er1
 
2531
    cat conftest.er1 >&5
 
2532
  fi
 
2533
  rm -f conftest.er1 conftest.err
 
2534
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
2535
  test $ac_status = 0; }
 
2536
done
1665
2537
 
1666
 
cat >conftest.$ac_ext <<_ACEOF
1667
 
/* confdefs.h.  */
1668
 
_ACEOF
1669
 
cat confdefs.h >>conftest.$ac_ext
1670
 
cat >>conftest.$ac_ext <<_ACEOF
 
2538
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1671
2539
/* end confdefs.h.  */
1672
2540
 
1673
2541
int
1679
2547
}
1680
2548
_ACEOF
1681
2549
ac_clean_files_save=$ac_clean_files
1682
 
ac_clean_files="$ac_clean_files a.out a.exe b.out"
 
2550
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
1683
2551
# Try to create an executable without -o first, disregard a.out.
1684
2552
# It will help us diagnose broken compilers, and finding out an intuition
1685
2553
# of exeext.
1686
 
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1687
 
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1688
 
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1689
 
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1690
 
  (eval $ac_link_default) 2>&5
 
2554
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
 
2555
$as_echo_n "checking whether the C compiler works... " >&6; }
 
2556
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
2557
 
 
2558
# The possible output files:
 
2559
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
 
2560
 
 
2561
ac_rmfiles=
 
2562
for ac_file in $ac_files
 
2563
do
 
2564
  case $ac_file in
 
2565
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 
2566
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
 
2567
  esac
 
2568
done
 
2569
rm -f $ac_rmfiles
 
2570
 
 
2571
if { { ac_try="$ac_link_default"
 
2572
case "(($ac_try" in
 
2573
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2574
  *) ac_try_echo=$ac_try;;
 
2575
esac
 
2576
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
2577
$as_echo "$ac_try_echo"; } >&5
 
2578
  (eval "$ac_link_default") 2>&5
1691
2579
  ac_status=$?
1692
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1693
 
  (exit $ac_status); }; then
1694
 
  # Find the output, starting from the most likely.  This scheme is
1695
 
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1696
 
# resort.
1697
 
 
1698
 
# Be careful to initialize this variable, since it used to be cached.
1699
 
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1700
 
ac_cv_exeext=
1701
 
# b.out is created by i960 compilers.
1702
 
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
 
2580
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
2581
  test $ac_status = 0; }; then :
 
2582
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
 
2583
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
 
2584
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
 
2585
# so that the user can short-circuit this test for compilers unknown to
 
2586
# Autoconf.
 
2587
for ac_file in $ac_files ''
1703
2588
do
1704
2589
  test -f "$ac_file" || continue
1705
2590
  case $ac_file in
1706
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1707
 
        ;;
1708
 
    conftest.$ac_ext )
1709
 
        # This is the source file.
 
2591
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
1710
2592
        ;;
1711
2593
    [ab].out )
1712
2594
        # We found the default executable, but exeext='' is most
1713
2595
        # certainly right.
1714
2596
        break;;
1715
2597
    *.* )
1716
 
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1717
 
        # FIXME: I believe we export ac_cv_exeext for Libtool,
1718
 
        # but it would be cool to find out if it's true.  Does anybody
1719
 
        # maintain Libtool? --akim.
1720
 
        export ac_cv_exeext
 
2598
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
 
2599
        then :; else
 
2600
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2601
        fi
 
2602
        # We set ac_cv_exeext here because the later test for it is not
 
2603
        # safe: cross compilers may not add the suffix if given an `-o'
 
2604
        # argument, so we may need to know it at that point already.
 
2605
        # Even if this section looks crufty: it has the advantage of
 
2606
        # actually working.
1721
2607
        break;;
1722
2608
    * )
1723
2609
        break;;
1724
2610
  esac
1725
2611
done
 
2612
test "$ac_cv_exeext" = no && ac_cv_exeext=
 
2613
 
1726
2614
else
1727
 
  echo "$as_me: failed program was:" >&5
 
2615
  ac_file=''
 
2616
fi
 
2617
if test -z "$ac_file"; then :
 
2618
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2619
$as_echo "no" >&6; }
 
2620
$as_echo "$as_me: failed program was:" >&5
1728
2621
sed 's/^/| /' conftest.$ac_ext >&5
1729
2622
 
1730
 
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1731
 
See \`config.log' for more details." >&5
1732
 
echo "$as_me: error: C compiler cannot create executables
1733
 
See \`config.log' for more details." >&2;}
1734
 
   { (exit 77); exit 77; }; }
 
2623
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
2624
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2625
{ as_fn_set_status 77
 
2626
as_fn_error "C compiler cannot create executables
 
2627
See \`config.log' for more details." "$LINENO" 5; }; }
 
2628
else
 
2629
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
2630
$as_echo "yes" >&6; }
1735
2631
fi
1736
 
 
 
2632
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
 
2633
$as_echo_n "checking for C compiler default output file name... " >&6; }
 
2634
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
 
2635
$as_echo "$ac_file" >&6; }
1737
2636
ac_exeext=$ac_cv_exeext
1738
 
echo "$as_me:$LINENO: result: $ac_file" >&5
1739
 
echo "${ECHO_T}$ac_file" >&6
1740
 
 
1741
 
# Check the compiler produces executables we can run.  If not, either
1742
 
# the compiler is broken, or we cross compile.
1743
 
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1744
 
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1745
 
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1746
 
# If not cross compiling, check that we can run a simple program.
1747
 
if test "$cross_compiling" != yes; then
1748
 
  if { ac_try='./$ac_file'
1749
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1750
 
  (eval $ac_try) 2>&5
1751
 
  ac_status=$?
1752
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1753
 
  (exit $ac_status); }; }; then
1754
 
    cross_compiling=no
1755
 
  else
1756
 
    if test "$cross_compiling" = maybe; then
1757
 
        cross_compiling=yes
1758
 
    else
1759
 
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1760
 
If you meant to cross compile, use \`--host'.
1761
 
See \`config.log' for more details." >&5
1762
 
echo "$as_me: error: cannot run C compiled programs.
1763
 
If you meant to cross compile, use \`--host'.
1764
 
See \`config.log' for more details." >&2;}
1765
 
   { (exit 1); exit 1; }; }
1766
 
    fi
1767
 
  fi
1768
 
fi
1769
 
echo "$as_me:$LINENO: result: yes" >&5
1770
 
echo "${ECHO_T}yes" >&6
1771
 
 
1772
 
rm -f a.out a.exe conftest$ac_cv_exeext b.out
 
2637
 
 
2638
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
1773
2639
ac_clean_files=$ac_clean_files_save
1774
 
# Check the compiler produces executables we can run.  If not, either
1775
 
# the compiler is broken, or we cross compile.
1776
 
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1777
 
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1778
 
echo "$as_me:$LINENO: result: $cross_compiling" >&5
1779
 
echo "${ECHO_T}$cross_compiling" >&6
1780
 
 
1781
 
echo "$as_me:$LINENO: checking for suffix of executables" >&5
1782
 
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1783
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1784
 
  (eval $ac_link) 2>&5
 
2640
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
 
2641
$as_echo_n "checking for suffix of executables... " >&6; }
 
2642
if { { ac_try="$ac_link"
 
2643
case "(($ac_try" in
 
2644
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2645
  *) ac_try_echo=$ac_try;;
 
2646
esac
 
2647
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
2648
$as_echo "$ac_try_echo"; } >&5
 
2649
  (eval "$ac_link") 2>&5
1785
2650
  ac_status=$?
1786
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1787
 
  (exit $ac_status); }; then
 
2651
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
2652
  test $ac_status = 0; }; then :
1788
2653
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
1789
2654
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1790
2655
# work properly (i.e., refer to `conftest.exe'), while it won't with
1792
2657
for ac_file in conftest.exe conftest conftest.*; do
1793
2658
  test -f "$ac_file" || continue
1794
2659
  case $ac_file in
1795
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
 
2660
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
1796
2661
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1797
 
          export ac_cv_exeext
1798
2662
          break;;
1799
2663
    * ) break;;
1800
2664
  esac
1801
2665
done
1802
2666
else
1803
 
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1804
 
See \`config.log' for more details." >&5
1805
 
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1806
 
See \`config.log' for more details." >&2;}
1807
 
   { (exit 1); exit 1; }; }
 
2667
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
2668
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2669
as_fn_error "cannot compute suffix of executables: cannot compile and link
 
2670
See \`config.log' for more details." "$LINENO" 5; }
1808
2671
fi
1809
 
 
1810
 
rm -f conftest$ac_cv_exeext
1811
 
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1812
 
echo "${ECHO_T}$ac_cv_exeext" >&6
 
2672
rm -f conftest conftest$ac_cv_exeext
 
2673
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
 
2674
$as_echo "$ac_cv_exeext" >&6; }
1813
2675
 
1814
2676
rm -f conftest.$ac_ext
1815
2677
EXEEXT=$ac_cv_exeext
1816
2678
ac_exeext=$EXEEXT
1817
 
echo "$as_me:$LINENO: checking for suffix of object files" >&5
1818
 
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1819
 
if test "${ac_cv_objext+set}" = set; then
1820
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2679
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2680
/* end confdefs.h.  */
 
2681
#include <stdio.h>
 
2682
int
 
2683
main ()
 
2684
{
 
2685
FILE *f = fopen ("conftest.out", "w");
 
2686
 return ferror (f) || fclose (f) != 0;
 
2687
 
 
2688
  ;
 
2689
  return 0;
 
2690
}
 
2691
_ACEOF
 
2692
ac_clean_files="$ac_clean_files conftest.out"
 
2693
# Check that the compiler produces executables we can run.  If not, either
 
2694
# the compiler is broken, or we cross compile.
 
2695
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
 
2696
$as_echo_n "checking whether we are cross compiling... " >&6; }
 
2697
if test "$cross_compiling" != yes; then
 
2698
  { { ac_try="$ac_link"
 
2699
case "(($ac_try" in
 
2700
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2701
  *) ac_try_echo=$ac_try;;
 
2702
esac
 
2703
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
2704
$as_echo "$ac_try_echo"; } >&5
 
2705
  (eval "$ac_link") 2>&5
 
2706
  ac_status=$?
 
2707
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
2708
  test $ac_status = 0; }
 
2709
  if { ac_try='./conftest$ac_cv_exeext'
 
2710
  { { case "(($ac_try" in
 
2711
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2712
  *) ac_try_echo=$ac_try;;
 
2713
esac
 
2714
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
2715
$as_echo "$ac_try_echo"; } >&5
 
2716
  (eval "$ac_try") 2>&5
 
2717
  ac_status=$?
 
2718
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
2719
  test $ac_status = 0; }; }; then
 
2720
    cross_compiling=no
 
2721
  else
 
2722
    if test "$cross_compiling" = maybe; then
 
2723
        cross_compiling=yes
 
2724
    else
 
2725
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
2726
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2727
as_fn_error "cannot run C compiled programs.
 
2728
If you meant to cross compile, use \`--host'.
 
2729
See \`config.log' for more details." "$LINENO" 5; }
 
2730
    fi
 
2731
  fi
 
2732
fi
 
2733
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
 
2734
$as_echo "$cross_compiling" >&6; }
 
2735
 
 
2736
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
 
2737
ac_clean_files=$ac_clean_files_save
 
2738
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
 
2739
$as_echo_n "checking for suffix of object files... " >&6; }
 
2740
if test "${ac_cv_objext+set}" = set; then :
 
2741
  $as_echo_n "(cached) " >&6
1821
2742
else
1822
 
  cat >conftest.$ac_ext <<_ACEOF
1823
 
/* confdefs.h.  */
1824
 
_ACEOF
1825
 
cat confdefs.h >>conftest.$ac_ext
1826
 
cat >>conftest.$ac_ext <<_ACEOF
 
2743
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1827
2744
/* end confdefs.h.  */
1828
2745
 
1829
2746
int
1835
2752
}
1836
2753
_ACEOF
1837
2754
rm -f conftest.o conftest.obj
1838
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1839
 
  (eval $ac_compile) 2>&5
 
2755
if { { ac_try="$ac_compile"
 
2756
case "(($ac_try" in
 
2757
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2758
  *) ac_try_echo=$ac_try;;
 
2759
esac
 
2760
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
2761
$as_echo "$ac_try_echo"; } >&5
 
2762
  (eval "$ac_compile") 2>&5
1840
2763
  ac_status=$?
1841
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1842
 
  (exit $ac_status); }; then
1843
 
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
 
2764
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
2765
  test $ac_status = 0; }; then :
 
2766
  for ac_file in conftest.o conftest.obj conftest.*; do
 
2767
  test -f "$ac_file" || continue;
1844
2768
  case $ac_file in
1845
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
 
2769
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
1846
2770
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1847
2771
       break;;
1848
2772
  esac
1849
2773
done
1850
2774
else
1851
 
  echo "$as_me: failed program was:" >&5
 
2775
  $as_echo "$as_me: failed program was:" >&5
1852
2776
sed 's/^/| /' conftest.$ac_ext >&5
1853
2777
 
1854
 
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1855
 
See \`config.log' for more details." >&5
1856
 
echo "$as_me: error: cannot compute suffix of object files: cannot compile
1857
 
See \`config.log' for more details." >&2;}
1858
 
   { (exit 1); exit 1; }; }
 
2778
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
2779
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2780
as_fn_error "cannot compute suffix of object files: cannot compile
 
2781
See \`config.log' for more details." "$LINENO" 5; }
1859
2782
fi
1860
 
 
1861
2783
rm -f conftest.$ac_cv_objext conftest.$ac_ext
1862
2784
fi
1863
 
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1864
 
echo "${ECHO_T}$ac_cv_objext" >&6
 
2785
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
 
2786
$as_echo "$ac_cv_objext" >&6; }
1865
2787
OBJEXT=$ac_cv_objext
1866
2788
ac_objext=$OBJEXT
1867
 
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1868
 
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1869
 
if test "${ac_cv_c_compiler_gnu+set}" = set; then
1870
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2789
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
 
2790
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
 
2791
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
 
2792
  $as_echo_n "(cached) " >&6
1871
2793
else
1872
 
  cat >conftest.$ac_ext <<_ACEOF
1873
 
/* confdefs.h.  */
1874
 
_ACEOF
1875
 
cat confdefs.h >>conftest.$ac_ext
1876
 
cat >>conftest.$ac_ext <<_ACEOF
 
2794
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1877
2795
/* end confdefs.h.  */
1878
2796
 
1879
2797
int
1887
2805
  return 0;
1888
2806
}
1889
2807
_ACEOF
1890
 
rm -f conftest.$ac_objext
1891
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1892
 
  (eval $ac_compile) 2>conftest.er1
1893
 
  ac_status=$?
1894
 
  grep -v '^ *+' conftest.er1 >conftest.err
1895
 
  rm -f conftest.er1
1896
 
  cat conftest.err >&5
1897
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1898
 
  (exit $ac_status); } &&
1899
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
1900
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1901
 
  (eval $ac_try) 2>&5
1902
 
  ac_status=$?
1903
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1904
 
  (exit $ac_status); }; } &&
1905
 
         { ac_try='test -s conftest.$ac_objext'
1906
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1907
 
  (eval $ac_try) 2>&5
1908
 
  ac_status=$?
1909
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1910
 
  (exit $ac_status); }; }; then
 
2808
if ac_fn_c_try_compile "$LINENO"; then :
1911
2809
  ac_compiler_gnu=yes
1912
2810
else
1913
 
  echo "$as_me: failed program was:" >&5
1914
 
sed 's/^/| /' conftest.$ac_ext >&5
1915
 
 
1916
 
ac_compiler_gnu=no
 
2811
  ac_compiler_gnu=no
1917
2812
fi
1918
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2813
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1919
2814
ac_cv_c_compiler_gnu=$ac_compiler_gnu
1920
2815
 
1921
2816
fi
1922
 
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1923
 
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1924
 
GCC=`test $ac_compiler_gnu = yes && echo yes`
 
2817
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
 
2818
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
 
2819
if test $ac_compiler_gnu = yes; then
 
2820
  GCC=yes
 
2821
else
 
2822
  GCC=
 
2823
fi
1925
2824
ac_test_CFLAGS=${CFLAGS+set}
1926
2825
ac_save_CFLAGS=$CFLAGS
1927
 
CFLAGS="-g"
1928
 
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1929
 
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1930
 
if test "${ac_cv_prog_cc_g+set}" = set; then
1931
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1932
 
else
1933
 
  cat >conftest.$ac_ext <<_ACEOF
1934
 
/* confdefs.h.  */
1935
 
_ACEOF
1936
 
cat confdefs.h >>conftest.$ac_ext
1937
 
cat >>conftest.$ac_ext <<_ACEOF
1938
 
/* end confdefs.h.  */
1939
 
 
1940
 
int
1941
 
main ()
1942
 
{
1943
 
 
1944
 
  ;
1945
 
  return 0;
1946
 
}
1947
 
_ACEOF
1948
 
rm -f conftest.$ac_objext
1949
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1950
 
  (eval $ac_compile) 2>conftest.er1
1951
 
  ac_status=$?
1952
 
  grep -v '^ *+' conftest.er1 >conftest.err
1953
 
  rm -f conftest.er1
1954
 
  cat conftest.err >&5
1955
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1956
 
  (exit $ac_status); } &&
1957
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
1958
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1959
 
  (eval $ac_try) 2>&5
1960
 
  ac_status=$?
1961
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1962
 
  (exit $ac_status); }; } &&
1963
 
         { ac_try='test -s conftest.$ac_objext'
1964
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1965
 
  (eval $ac_try) 2>&5
1966
 
  ac_status=$?
1967
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1968
 
  (exit $ac_status); }; }; then
1969
 
  ac_cv_prog_cc_g=yes
1970
 
else
1971
 
  echo "$as_me: failed program was:" >&5
1972
 
sed 's/^/| /' conftest.$ac_ext >&5
1973
 
 
1974
 
ac_cv_prog_cc_g=no
1975
 
fi
1976
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1977
 
fi
1978
 
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1979
 
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
 
2826
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
 
2827
$as_echo_n "checking whether $CC accepts -g... " >&6; }
 
2828
if test "${ac_cv_prog_cc_g+set}" = set; then :
 
2829
  $as_echo_n "(cached) " >&6
 
2830
else
 
2831
  ac_save_c_werror_flag=$ac_c_werror_flag
 
2832
   ac_c_werror_flag=yes
 
2833
   ac_cv_prog_cc_g=no
 
2834
   CFLAGS="-g"
 
2835
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2836
/* end confdefs.h.  */
 
2837
 
 
2838
int
 
2839
main ()
 
2840
{
 
2841
 
 
2842
  ;
 
2843
  return 0;
 
2844
}
 
2845
_ACEOF
 
2846
if ac_fn_c_try_compile "$LINENO"; then :
 
2847
  ac_cv_prog_cc_g=yes
 
2848
else
 
2849
  CFLAGS=""
 
2850
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2851
/* end confdefs.h.  */
 
2852
 
 
2853
int
 
2854
main ()
 
2855
{
 
2856
 
 
2857
  ;
 
2858
  return 0;
 
2859
}
 
2860
_ACEOF
 
2861
if ac_fn_c_try_compile "$LINENO"; then :
 
2862
 
 
2863
else
 
2864
  ac_c_werror_flag=$ac_save_c_werror_flag
 
2865
         CFLAGS="-g"
 
2866
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2867
/* end confdefs.h.  */
 
2868
 
 
2869
int
 
2870
main ()
 
2871
{
 
2872
 
 
2873
  ;
 
2874
  return 0;
 
2875
}
 
2876
_ACEOF
 
2877
if ac_fn_c_try_compile "$LINENO"; then :
 
2878
  ac_cv_prog_cc_g=yes
 
2879
fi
 
2880
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2881
fi
 
2882
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2883
fi
 
2884
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2885
   ac_c_werror_flag=$ac_save_c_werror_flag
 
2886
fi
 
2887
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
 
2888
$as_echo "$ac_cv_prog_cc_g" >&6; }
1980
2889
if test "$ac_test_CFLAGS" = set; then
1981
2890
  CFLAGS=$ac_save_CFLAGS
1982
2891
elif test $ac_cv_prog_cc_g = yes; then
1992
2901
    CFLAGS=
1993
2902
  fi
1994
2903
fi
1995
 
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
1996
 
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1997
 
if test "${ac_cv_prog_cc_stdc+set}" = set; then
1998
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2904
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
 
2905
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
 
2906
if test "${ac_cv_prog_cc_c89+set}" = set; then :
 
2907
  $as_echo_n "(cached) " >&6
1999
2908
else
2000
 
  ac_cv_prog_cc_stdc=no
 
2909
  ac_cv_prog_cc_c89=no
2001
2910
ac_save_CC=$CC
2002
 
cat >conftest.$ac_ext <<_ACEOF
2003
 
/* confdefs.h.  */
2004
 
_ACEOF
2005
 
cat confdefs.h >>conftest.$ac_ext
2006
 
cat >>conftest.$ac_ext <<_ACEOF
 
2911
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2007
2912
/* end confdefs.h.  */
2008
2913
#include <stdarg.h>
2009
2914
#include <stdio.h>
2031
2936
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2032
2937
   function prototypes and stuff, but not '\xHH' hex character constants.
2033
2938
   These don't provoke an error unfortunately, instead are silently treated
2034
 
   as 'x'.  The following induces an error, until -std1 is added to get
 
2939
   as 'x'.  The following induces an error, until -std is added to get
2035
2940
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2036
2941
   array size at least.  It's necessary to write '\x00'==0 to get something
2037
 
   that's true only with -std1.  */
 
2942
   that's true only with -std.  */
2038
2943
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2039
2944
 
 
2945
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 
2946
   inside strings and character constants.  */
 
2947
#define FOO(x) 'x'
 
2948
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 
2949
 
2040
2950
int test (int i, double x);
2041
2951
struct s1 {int (*f) (int a);};
2042
2952
struct s2 {int (*f) (double a);};
2051
2961
  return 0;
2052
2962
}
2053
2963
_ACEOF
2054
 
# Don't try gcc -ansi; that turns off useful extensions and
2055
 
# breaks some systems' header files.
2056
 
# AIX                   -qlanglvl=ansi
2057
 
# Ultrix and OSF/1      -std1
2058
 
# HP-UX 10.20 and later -Ae
2059
 
# HP-UX older versions  -Aa -D_HPUX_SOURCE
2060
 
# SVR4                  -Xc -D__EXTENSIONS__
2061
 
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
2964
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 
2965
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2062
2966
do
2063
2967
  CC="$ac_save_CC $ac_arg"
2064
 
  rm -f conftest.$ac_objext
2065
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2066
 
  (eval $ac_compile) 2>conftest.er1
2067
 
  ac_status=$?
2068
 
  grep -v '^ *+' conftest.er1 >conftest.err
2069
 
  rm -f conftest.er1
2070
 
  cat conftest.err >&5
2071
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2072
 
  (exit $ac_status); } &&
2073
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2074
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2075
 
  (eval $ac_try) 2>&5
2076
 
  ac_status=$?
2077
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2078
 
  (exit $ac_status); }; } &&
2079
 
         { ac_try='test -s conftest.$ac_objext'
2080
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2081
 
  (eval $ac_try) 2>&5
2082
 
  ac_status=$?
2083
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2084
 
  (exit $ac_status); }; }; then
2085
 
  ac_cv_prog_cc_stdc=$ac_arg
2086
 
break
2087
 
else
2088
 
  echo "$as_me: failed program was:" >&5
2089
 
sed 's/^/| /' conftest.$ac_ext >&5
2090
 
 
 
2968
  if ac_fn_c_try_compile "$LINENO"; then :
 
2969
  ac_cv_prog_cc_c89=$ac_arg
2091
2970
fi
2092
 
rm -f conftest.err conftest.$ac_objext
 
2971
rm -f core conftest.err conftest.$ac_objext
 
2972
  test "x$ac_cv_prog_cc_c89" != "xno" && break
2093
2973
done
2094
 
rm -f conftest.$ac_ext conftest.$ac_objext
 
2974
rm -f conftest.$ac_ext
2095
2975
CC=$ac_save_CC
2096
2976
 
2097
2977
fi
2098
 
 
2099
 
case "x$ac_cv_prog_cc_stdc" in
2100
 
  x|xno)
2101
 
    echo "$as_me:$LINENO: result: none needed" >&5
2102
 
echo "${ECHO_T}none needed" >&6 ;;
 
2978
# AC_CACHE_VAL
 
2979
case "x$ac_cv_prog_cc_c89" in
 
2980
  x)
 
2981
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
 
2982
$as_echo "none needed" >&6; } ;;
 
2983
  xno)
 
2984
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
 
2985
$as_echo "unsupported" >&6; } ;;
2103
2986
  *)
2104
 
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2105
 
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2106
 
    CC="$CC $ac_cv_prog_cc_stdc" ;;
 
2987
    CC="$CC $ac_cv_prog_cc_c89"
 
2988
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
 
2989
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2107
2990
esac
2108
 
 
2109
 
# Some people use a C++ compiler to compile C.  Since we use `exit',
2110
 
# in C++ we need to declare it.  In case someone uses the same compiler
2111
 
# for both compiling C and C++ we need to have the C++ compiler decide
2112
 
# the declaration of exit, since it's the most demanding environment.
2113
 
cat >conftest.$ac_ext <<_ACEOF
2114
 
#ifndef __cplusplus
2115
 
  choke me
2116
 
#endif
2117
 
_ACEOF
2118
 
rm -f conftest.$ac_objext
2119
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2120
 
  (eval $ac_compile) 2>conftest.er1
2121
 
  ac_status=$?
2122
 
  grep -v '^ *+' conftest.er1 >conftest.err
2123
 
  rm -f conftest.er1
2124
 
  cat conftest.err >&5
2125
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2126
 
  (exit $ac_status); } &&
2127
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2128
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2129
 
  (eval $ac_try) 2>&5
2130
 
  ac_status=$?
2131
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2132
 
  (exit $ac_status); }; } &&
2133
 
         { ac_try='test -s conftest.$ac_objext'
2134
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2135
 
  (eval $ac_try) 2>&5
2136
 
  ac_status=$?
2137
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2138
 
  (exit $ac_status); }; }; then
2139
 
  for ac_declaration in \
2140
 
   '' \
2141
 
   'extern "C" void std::exit (int) throw (); using std::exit;' \
2142
 
   'extern "C" void std::exit (int); using std::exit;' \
2143
 
   'extern "C" void exit (int) throw ();' \
2144
 
   'extern "C" void exit (int);' \
2145
 
   'void exit (int);'
2146
 
do
2147
 
  cat >conftest.$ac_ext <<_ACEOF
2148
 
/* confdefs.h.  */
2149
 
_ACEOF
2150
 
cat confdefs.h >>conftest.$ac_ext
2151
 
cat >>conftest.$ac_ext <<_ACEOF
2152
 
/* end confdefs.h.  */
2153
 
$ac_declaration
2154
 
#include <stdlib.h>
2155
 
int
2156
 
main ()
2157
 
{
2158
 
exit (42);
2159
 
  ;
2160
 
  return 0;
2161
 
}
2162
 
_ACEOF
2163
 
rm -f conftest.$ac_objext
2164
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2165
 
  (eval $ac_compile) 2>conftest.er1
2166
 
  ac_status=$?
2167
 
  grep -v '^ *+' conftest.er1 >conftest.err
2168
 
  rm -f conftest.er1
2169
 
  cat conftest.err >&5
2170
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2171
 
  (exit $ac_status); } &&
2172
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2173
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2174
 
  (eval $ac_try) 2>&5
2175
 
  ac_status=$?
2176
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2177
 
  (exit $ac_status); }; } &&
2178
 
         { ac_try='test -s conftest.$ac_objext'
2179
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2180
 
  (eval $ac_try) 2>&5
2181
 
  ac_status=$?
2182
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2183
 
  (exit $ac_status); }; }; then
2184
 
  :
2185
 
else
2186
 
  echo "$as_me: failed program was:" >&5
2187
 
sed 's/^/| /' conftest.$ac_ext >&5
2188
 
 
2189
 
continue
2190
 
fi
2191
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2192
 
  cat >conftest.$ac_ext <<_ACEOF
2193
 
/* confdefs.h.  */
2194
 
_ACEOF
2195
 
cat confdefs.h >>conftest.$ac_ext
2196
 
cat >>conftest.$ac_ext <<_ACEOF
2197
 
/* end confdefs.h.  */
2198
 
$ac_declaration
2199
 
int
2200
 
main ()
2201
 
{
2202
 
exit (42);
2203
 
  ;
2204
 
  return 0;
2205
 
}
2206
 
_ACEOF
2207
 
rm -f conftest.$ac_objext
2208
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2209
 
  (eval $ac_compile) 2>conftest.er1
2210
 
  ac_status=$?
2211
 
  grep -v '^ *+' conftest.er1 >conftest.err
2212
 
  rm -f conftest.er1
2213
 
  cat conftest.err >&5
2214
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2215
 
  (exit $ac_status); } &&
2216
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2217
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2218
 
  (eval $ac_try) 2>&5
2219
 
  ac_status=$?
2220
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2221
 
  (exit $ac_status); }; } &&
2222
 
         { ac_try='test -s conftest.$ac_objext'
2223
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2224
 
  (eval $ac_try) 2>&5
2225
 
  ac_status=$?
2226
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2227
 
  (exit $ac_status); }; }; then
2228
 
  break
2229
 
else
2230
 
  echo "$as_me: failed program was:" >&5
2231
 
sed 's/^/| /' conftest.$ac_ext >&5
2232
 
 
2233
 
fi
2234
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2235
 
done
2236
 
rm -f conftest*
2237
 
if test -n "$ac_declaration"; then
2238
 
  echo '#ifdef __cplusplus' >>confdefs.h
2239
 
  echo $ac_declaration      >>confdefs.h
2240
 
  echo '#endif'             >>confdefs.h
2241
 
fi
2242
 
 
2243
 
else
2244
 
  echo "$as_me: failed program was:" >&5
2245
 
sed 's/^/| /' conftest.$ac_ext >&5
2246
 
 
2247
 
fi
2248
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2991
if test "x$ac_cv_prog_cc_c89" != xno; then :
 
2992
 
 
2993
fi
 
2994
 
2249
2995
ac_ext=c
2250
2996
ac_cpp='$CPP $CPPFLAGS'
2251
2997
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2252
2998
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2253
2999
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2254
3000
 
2255
 
ac_ext=cc
 
3001
ac_ext=cpp
2256
3002
ac_cpp='$CXXCPP $CPPFLAGS'
2257
3003
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2258
3004
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2259
3005
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2260
 
if test -n "$ac_tool_prefix"; then
2261
 
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
 
3006
if test -z "$CXX"; then
 
3007
  if test -n "$CCC"; then
 
3008
    CXX=$CCC
 
3009
  else
 
3010
    if test -n "$ac_tool_prefix"; then
 
3011
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2262
3012
  do
2263
3013
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2264
3014
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2265
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2266
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2267
 
if test "${ac_cv_prog_CXX+set}" = set; then
2268
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3015
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3016
$as_echo_n "checking for $ac_word... " >&6; }
 
3017
if test "${ac_cv_prog_CXX+set}" = set; then :
 
3018
  $as_echo_n "(cached) " >&6
2269
3019
else
2270
3020
  if test -n "$CXX"; then
2271
3021
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
2275
3025
do
2276
3026
  IFS=$as_save_IFS
2277
3027
  test -z "$as_dir" && as_dir=.
2278
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2279
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3028
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3029
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2280
3030
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2281
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3031
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2282
3032
    break 2
2283
3033
  fi
2284
3034
done
2285
 
done
 
3035
  done
 
3036
IFS=$as_save_IFS
2286
3037
 
2287
3038
fi
2288
3039
fi
2289
3040
CXX=$ac_cv_prog_CXX
2290
3041
if test -n "$CXX"; then
2291
 
  echo "$as_me:$LINENO: result: $CXX" >&5
2292
 
echo "${ECHO_T}$CXX" >&6
 
3042
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
 
3043
$as_echo "$CXX" >&6; }
2293
3044
else
2294
 
  echo "$as_me:$LINENO: result: no" >&5
2295
 
echo "${ECHO_T}no" >&6
 
3045
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3046
$as_echo "no" >&6; }
2296
3047
fi
2297
3048
 
 
3049
 
2298
3050
    test -n "$CXX" && break
2299
3051
  done
2300
3052
fi
2301
3053
if test -z "$CXX"; then
2302
3054
  ac_ct_CXX=$CXX
2303
 
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
 
3055
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2304
3056
do
2305
3057
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2306
3058
set dummy $ac_prog; ac_word=$2
2307
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2308
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2309
 
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2310
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3059
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3060
$as_echo_n "checking for $ac_word... " >&6; }
 
3061
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
 
3062
  $as_echo_n "(cached) " >&6
2311
3063
else
2312
3064
  if test -n "$ac_ct_CXX"; then
2313
3065
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2317
3069
do
2318
3070
  IFS=$as_save_IFS
2319
3071
  test -z "$as_dir" && as_dir=.
2320
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2321
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3072
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3073
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2322
3074
    ac_cv_prog_ac_ct_CXX="$ac_prog"
2323
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3075
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2324
3076
    break 2
2325
3077
  fi
2326
3078
done
2327
 
done
 
3079
  done
 
3080
IFS=$as_save_IFS
2328
3081
 
2329
3082
fi
2330
3083
fi
2331
3084
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2332
3085
if test -n "$ac_ct_CXX"; then
2333
 
  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2334
 
echo "${ECHO_T}$ac_ct_CXX" >&6
 
3086
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
 
3087
$as_echo "$ac_ct_CXX" >&6; }
2335
3088
else
2336
 
  echo "$as_me:$LINENO: result: no" >&5
2337
 
echo "${ECHO_T}no" >&6
 
3089
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3090
$as_echo "no" >&6; }
2338
3091
fi
2339
3092
 
 
3093
 
2340
3094
  test -n "$ac_ct_CXX" && break
2341
3095
done
2342
 
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2343
 
 
2344
 
  CXX=$ac_ct_CXX
2345
 
fi
2346
 
 
2347
 
 
 
3096
 
 
3097
  if test "x$ac_ct_CXX" = x; then
 
3098
    CXX="g++"
 
3099
  else
 
3100
    case $cross_compiling:$ac_tool_warned in
 
3101
yes:)
 
3102
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
3103
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
3104
ac_tool_warned=yes ;;
 
3105
esac
 
3106
    CXX=$ac_ct_CXX
 
3107
  fi
 
3108
fi
 
3109
 
 
3110
  fi
 
3111
fi
2348
3112
# Provide some information about the compiler.
2349
 
echo "$as_me:$LINENO:" \
2350
 
     "checking for C++ compiler version" >&5
2351
 
ac_compiler=`set X $ac_compile; echo $2`
2352
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2353
 
  (eval $ac_compiler --version </dev/null >&5) 2>&5
2354
 
  ac_status=$?
2355
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2356
 
  (exit $ac_status); }
2357
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2358
 
  (eval $ac_compiler -v </dev/null >&5) 2>&5
2359
 
  ac_status=$?
2360
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2361
 
  (exit $ac_status); }
2362
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2363
 
  (eval $ac_compiler -V </dev/null >&5) 2>&5
2364
 
  ac_status=$?
2365
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2366
 
  (exit $ac_status); }
 
3113
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
 
3114
set X $ac_compile
 
3115
ac_compiler=$2
 
3116
for ac_option in --version -v -V -qversion; do
 
3117
  { { ac_try="$ac_compiler $ac_option >&5"
 
3118
case "(($ac_try" in
 
3119
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3120
  *) ac_try_echo=$ac_try;;
 
3121
esac
 
3122
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3123
$as_echo "$ac_try_echo"; } >&5
 
3124
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
 
3125
  ac_status=$?
 
3126
  if test -s conftest.err; then
 
3127
    sed '10a\
 
3128
... rest of stderr output deleted ...
 
3129
         10q' conftest.err >conftest.er1
 
3130
    cat conftest.er1 >&5
 
3131
  fi
 
3132
  rm -f conftest.er1 conftest.err
 
3133
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3134
  test $ac_status = 0; }
 
3135
done
2367
3136
 
2368
 
echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2369
 
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2370
 
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2371
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3137
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
 
3138
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
 
3139
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
 
3140
  $as_echo_n "(cached) " >&6
2372
3141
else
2373
 
  cat >conftest.$ac_ext <<_ACEOF
2374
 
/* confdefs.h.  */
2375
 
_ACEOF
2376
 
cat confdefs.h >>conftest.$ac_ext
2377
 
cat >>conftest.$ac_ext <<_ACEOF
 
3142
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2378
3143
/* end confdefs.h.  */
2379
3144
 
2380
3145
int
2388
3153
  return 0;
2389
3154
}
2390
3155
_ACEOF
2391
 
rm -f conftest.$ac_objext
2392
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2393
 
  (eval $ac_compile) 2>conftest.er1
2394
 
  ac_status=$?
2395
 
  grep -v '^ *+' conftest.er1 >conftest.err
2396
 
  rm -f conftest.er1
2397
 
  cat conftest.err >&5
2398
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399
 
  (exit $ac_status); } &&
2400
 
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
2401
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2402
 
  (eval $ac_try) 2>&5
2403
 
  ac_status=$?
2404
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2405
 
  (exit $ac_status); }; } &&
2406
 
         { ac_try='test -s conftest.$ac_objext'
2407
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2408
 
  (eval $ac_try) 2>&5
2409
 
  ac_status=$?
2410
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411
 
  (exit $ac_status); }; }; then
 
3156
if ac_fn_cxx_try_compile "$LINENO"; then :
2412
3157
  ac_compiler_gnu=yes
2413
3158
else
2414
 
  echo "$as_me: failed program was:" >&5
2415
 
sed 's/^/| /' conftest.$ac_ext >&5
2416
 
 
2417
 
ac_compiler_gnu=no
 
3159
  ac_compiler_gnu=no
2418
3160
fi
2419
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3161
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2420
3162
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2421
3163
 
2422
3164
fi
2423
 
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2424
 
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2425
 
GXX=`test $ac_compiler_gnu = yes && echo yes`
 
3165
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
 
3166
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
 
3167
if test $ac_compiler_gnu = yes; then
 
3168
  GXX=yes
 
3169
else
 
3170
  GXX=
 
3171
fi
2426
3172
ac_test_CXXFLAGS=${CXXFLAGS+set}
2427
3173
ac_save_CXXFLAGS=$CXXFLAGS
2428
 
CXXFLAGS="-g"
2429
 
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2430
 
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2431
 
if test "${ac_cv_prog_cxx_g+set}" = set; then
2432
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2433
 
else
2434
 
  cat >conftest.$ac_ext <<_ACEOF
2435
 
/* confdefs.h.  */
2436
 
_ACEOF
2437
 
cat confdefs.h >>conftest.$ac_ext
2438
 
cat >>conftest.$ac_ext <<_ACEOF
2439
 
/* end confdefs.h.  */
2440
 
 
2441
 
int
2442
 
main ()
2443
 
{
2444
 
 
2445
 
  ;
2446
 
  return 0;
2447
 
}
2448
 
_ACEOF
2449
 
rm -f conftest.$ac_objext
2450
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2451
 
  (eval $ac_compile) 2>conftest.er1
2452
 
  ac_status=$?
2453
 
  grep -v '^ *+' conftest.er1 >conftest.err
2454
 
  rm -f conftest.er1
2455
 
  cat conftest.err >&5
2456
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2457
 
  (exit $ac_status); } &&
2458
 
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
2459
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2460
 
  (eval $ac_try) 2>&5
2461
 
  ac_status=$?
2462
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2463
 
  (exit $ac_status); }; } &&
2464
 
         { ac_try='test -s conftest.$ac_objext'
2465
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2466
 
  (eval $ac_try) 2>&5
2467
 
  ac_status=$?
2468
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469
 
  (exit $ac_status); }; }; then
2470
 
  ac_cv_prog_cxx_g=yes
2471
 
else
2472
 
  echo "$as_me: failed program was:" >&5
2473
 
sed 's/^/| /' conftest.$ac_ext >&5
2474
 
 
2475
 
ac_cv_prog_cxx_g=no
2476
 
fi
2477
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2478
 
fi
2479
 
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2480
 
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
 
3174
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
 
3175
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
 
3176
if test "${ac_cv_prog_cxx_g+set}" = set; then :
 
3177
  $as_echo_n "(cached) " >&6
 
3178
else
 
3179
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
 
3180
   ac_cxx_werror_flag=yes
 
3181
   ac_cv_prog_cxx_g=no
 
3182
   CXXFLAGS="-g"
 
3183
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3184
/* end confdefs.h.  */
 
3185
 
 
3186
int
 
3187
main ()
 
3188
{
 
3189
 
 
3190
  ;
 
3191
  return 0;
 
3192
}
 
3193
_ACEOF
 
3194
if ac_fn_cxx_try_compile "$LINENO"; then :
 
3195
  ac_cv_prog_cxx_g=yes
 
3196
else
 
3197
  CXXFLAGS=""
 
3198
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3199
/* end confdefs.h.  */
 
3200
 
 
3201
int
 
3202
main ()
 
3203
{
 
3204
 
 
3205
  ;
 
3206
  return 0;
 
3207
}
 
3208
_ACEOF
 
3209
if ac_fn_cxx_try_compile "$LINENO"; then :
 
3210
 
 
3211
else
 
3212
  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
3213
         CXXFLAGS="-g"
 
3214
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3215
/* end confdefs.h.  */
 
3216
 
 
3217
int
 
3218
main ()
 
3219
{
 
3220
 
 
3221
  ;
 
3222
  return 0;
 
3223
}
 
3224
_ACEOF
 
3225
if ac_fn_cxx_try_compile "$LINENO"; then :
 
3226
  ac_cv_prog_cxx_g=yes
 
3227
fi
 
3228
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3229
fi
 
3230
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3231
fi
 
3232
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3233
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
3234
fi
 
3235
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
 
3236
$as_echo "$ac_cv_prog_cxx_g" >&6; }
2481
3237
if test "$ac_test_CXXFLAGS" = set; then
2482
3238
  CXXFLAGS=$ac_save_CXXFLAGS
2483
3239
elif test $ac_cv_prog_cxx_g = yes; then
2493
3249
    CXXFLAGS=
2494
3250
  fi
2495
3251
fi
2496
 
for ac_declaration in \
2497
 
   '' \
2498
 
   'extern "C" void std::exit (int) throw (); using std::exit;' \
2499
 
   'extern "C" void std::exit (int); using std::exit;' \
2500
 
   'extern "C" void exit (int) throw ();' \
2501
 
   'extern "C" void exit (int);' \
2502
 
   'void exit (int);'
2503
 
do
2504
 
  cat >conftest.$ac_ext <<_ACEOF
2505
 
/* confdefs.h.  */
2506
 
_ACEOF
2507
 
cat confdefs.h >>conftest.$ac_ext
2508
 
cat >>conftest.$ac_ext <<_ACEOF
2509
 
/* end confdefs.h.  */
2510
 
$ac_declaration
2511
 
#include <stdlib.h>
2512
 
int
2513
 
main ()
2514
 
{
2515
 
exit (42);
2516
 
  ;
2517
 
  return 0;
2518
 
}
2519
 
_ACEOF
2520
 
rm -f conftest.$ac_objext
2521
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2522
 
  (eval $ac_compile) 2>conftest.er1
2523
 
  ac_status=$?
2524
 
  grep -v '^ *+' conftest.er1 >conftest.err
2525
 
  rm -f conftest.er1
2526
 
  cat conftest.err >&5
2527
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2528
 
  (exit $ac_status); } &&
2529
 
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
2530
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2531
 
  (eval $ac_try) 2>&5
2532
 
  ac_status=$?
2533
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534
 
  (exit $ac_status); }; } &&
2535
 
         { ac_try='test -s conftest.$ac_objext'
2536
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2537
 
  (eval $ac_try) 2>&5
2538
 
  ac_status=$?
2539
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2540
 
  (exit $ac_status); }; }; then
2541
 
  :
2542
 
else
2543
 
  echo "$as_me: failed program was:" >&5
2544
 
sed 's/^/| /' conftest.$ac_ext >&5
2545
 
 
2546
 
continue
2547
 
fi
2548
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2549
 
  cat >conftest.$ac_ext <<_ACEOF
2550
 
/* confdefs.h.  */
2551
 
_ACEOF
2552
 
cat confdefs.h >>conftest.$ac_ext
2553
 
cat >>conftest.$ac_ext <<_ACEOF
2554
 
/* end confdefs.h.  */
2555
 
$ac_declaration
2556
 
int
2557
 
main ()
2558
 
{
2559
 
exit (42);
2560
 
  ;
2561
 
  return 0;
2562
 
}
2563
 
_ACEOF
2564
 
rm -f conftest.$ac_objext
2565
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2566
 
  (eval $ac_compile) 2>conftest.er1
2567
 
  ac_status=$?
2568
 
  grep -v '^ *+' conftest.er1 >conftest.err
2569
 
  rm -f conftest.er1
2570
 
  cat conftest.err >&5
2571
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572
 
  (exit $ac_status); } &&
2573
 
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
2574
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2575
 
  (eval $ac_try) 2>&5
2576
 
  ac_status=$?
2577
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2578
 
  (exit $ac_status); }; } &&
2579
 
         { ac_try='test -s conftest.$ac_objext'
2580
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2581
 
  (eval $ac_try) 2>&5
2582
 
  ac_status=$?
2583
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2584
 
  (exit $ac_status); }; }; then
2585
 
  break
2586
 
else
2587
 
  echo "$as_me: failed program was:" >&5
2588
 
sed 's/^/| /' conftest.$ac_ext >&5
2589
 
 
2590
 
fi
2591
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2592
 
done
2593
 
rm -f conftest*
2594
 
if test -n "$ac_declaration"; then
2595
 
  echo '#ifdef __cplusplus' >>confdefs.h
2596
 
  echo $ac_declaration      >>confdefs.h
2597
 
  echo '#endif'             >>confdefs.h
2598
 
fi
2599
 
 
2600
3252
ac_ext=c
2601
3253
ac_cpp='$CPP $CPPFLAGS'
2602
3254
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2604
3256
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2605
3257
 
2606
3258
ac_aux_dir=
2607
 
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2608
 
  if test -f $ac_dir/install-sh; then
2609
 
    ac_aux_dir=$ac_dir
2610
 
    ac_install_sh="$ac_aux_dir/install-sh -c"
2611
 
    break
2612
 
  elif test -f $ac_dir/install.sh; then
2613
 
    ac_aux_dir=$ac_dir
2614
 
    ac_install_sh="$ac_aux_dir/install.sh -c"
2615
 
    break
2616
 
  elif test -f $ac_dir/shtool; then
2617
 
    ac_aux_dir=$ac_dir
2618
 
    ac_install_sh="$ac_aux_dir/shtool install -c"
2619
 
    break
2620
 
  fi
 
3259
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
 
3260
  for ac_t in install-sh install.sh shtool; do
 
3261
    if test -f "$ac_dir/$ac_t"; then
 
3262
      ac_aux_dir=$ac_dir
 
3263
      ac_install_sh="$ac_aux_dir/$ac_t -c"
 
3264
      break 2
 
3265
    fi
 
3266
  done
2621
3267
done
2622
3268
if test -z "$ac_aux_dir"; then
2623
 
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2624
 
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2625
 
   { (exit 1); exit 1; }; }
 
3269
  as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2626
3270
fi
2627
 
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2628
 
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2629
 
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
 
3271
 
 
3272
# These three variables are undocumented and unsupported,
 
3273
# and are intended to be withdrawn in a future Autoconf release.
 
3274
# They can cause serious problems if a builder's source tree is in a directory
 
3275
# whose full name contains unusual characters.
 
3276
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
 
3277
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
 
3278
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
 
3279
 
2630
3280
 
2631
3281
# Find a good install program.  We prefer a C program (faster),
2632
3282
# so one script is as good as another.  But avoid the broken or
2641
3291
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2642
3292
# OS/2's system install, which has a completely different semantic
2643
3293
# ./install, which can be erroneously created by make from ./install.sh.
2644
 
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2645
 
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
 
3294
# Reject install programs that cannot install multiple files.
 
3295
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
 
3296
$as_echo_n "checking for a BSD-compatible install... " >&6; }
2646
3297
if test -z "$INSTALL"; then
2647
 
if test "${ac_cv_path_install+set}" = set; then
2648
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3298
if test "${ac_cv_path_install+set}" = set; then :
 
3299
  $as_echo_n "(cached) " >&6
2649
3300
else
2650
3301
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2651
3302
for as_dir in $PATH
2652
3303
do
2653
3304
  IFS=$as_save_IFS
2654
3305
  test -z "$as_dir" && as_dir=.
2655
 
  # Account for people who put trailing slashes in PATH elements.
2656
 
case $as_dir/ in
2657
 
  ./ | .// | /cC/* | \
 
3306
    # Account for people who put trailing slashes in PATH elements.
 
3307
case $as_dir/ in #((
 
3308
  ./ | .// | /[cC]/* | \
2658
3309
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2659
 
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
3310
  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2660
3311
  /usr/ucb/* ) ;;
2661
3312
  *)
2662
3313
    # OSF1 and SCO ODT 3.0 have their own names for install.
2664
3315
    # by default.
2665
3316
    for ac_prog in ginstall scoinst install; do
2666
3317
      for ac_exec_ext in '' $ac_executable_extensions; do
2667
 
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
 
3318
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2668
3319
          if test $ac_prog = install &&
2669
3320
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2670
3321
            # AIX install.  It has an incompatible calling convention.
2674
3325
            # program-specific install script used by HP pwplus--don't use.
2675
3326
            :
2676
3327
          else
2677
 
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2678
 
            break 3
 
3328
            rm -rf conftest.one conftest.two conftest.dir
 
3329
            echo one > conftest.one
 
3330
            echo two > conftest.two
 
3331
            mkdir conftest.dir
 
3332
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
 
3333
              test -s conftest.one && test -s conftest.two &&
 
3334
              test -s conftest.dir/conftest.one &&
 
3335
              test -s conftest.dir/conftest.two
 
3336
            then
 
3337
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
3338
              break 3
 
3339
            fi
2679
3340
          fi
2680
3341
        fi
2681
3342
      done
2682
3343
    done
2683
3344
    ;;
2684
3345
esac
2685
 
done
2686
 
 
 
3346
 
 
3347
  done
 
3348
IFS=$as_save_IFS
 
3349
 
 
3350
rm -rf conftest.one conftest.two conftest.dir
2687
3351
 
2688
3352
fi
2689
3353
  if test "${ac_cv_path_install+set}" = set; then
2690
3354
    INSTALL=$ac_cv_path_install
2691
3355
  else
2692
 
    # As a last resort, use the slow shell script.  We don't cache a
2693
 
    # path for INSTALL within a source directory, because that will
 
3356
    # As a last resort, use the slow shell script.  Don't cache a
 
3357
    # value for INSTALL within a source directory, because that will
2694
3358
    # break other packages using the cache if that directory is
2695
 
    # removed, or if the path is relative.
 
3359
    # removed, or if the value is a relative name.
2696
3360
    INSTALL=$ac_install_sh
2697
3361
  fi
2698
3362
fi
2699
 
echo "$as_me:$LINENO: result: $INSTALL" >&5
2700
 
echo "${ECHO_T}$INSTALL" >&6
 
3363
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
 
3364
$as_echo "$INSTALL" >&6; }
2701
3365
 
2702
3366
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2703
3367
# It thinks the first close brace ends the variable substitution.
2714
3378
if test -n "$ac_tool_prefix"; then
2715
3379
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2716
3380
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2717
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2718
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2719
 
if test "${ac_cv_prog_RANLIB+set}" = set; then
2720
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3381
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3382
$as_echo_n "checking for $ac_word... " >&6; }
 
3383
if test "${ac_cv_prog_RANLIB+set}" = set; then :
 
3384
  $as_echo_n "(cached) " >&6
2721
3385
else
2722
3386
  if test -n "$RANLIB"; then
2723
3387
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2727
3391
do
2728
3392
  IFS=$as_save_IFS
2729
3393
  test -z "$as_dir" && as_dir=.
2730
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2731
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3394
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3395
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2732
3396
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2733
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3397
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2734
3398
    break 2
2735
3399
  fi
2736
3400
done
2737
 
done
 
3401
  done
 
3402
IFS=$as_save_IFS
2738
3403
 
2739
3404
fi
2740
3405
fi
2741
3406
RANLIB=$ac_cv_prog_RANLIB
2742
3407
if test -n "$RANLIB"; then
2743
 
  echo "$as_me:$LINENO: result: $RANLIB" >&5
2744
 
echo "${ECHO_T}$RANLIB" >&6
 
3408
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
 
3409
$as_echo "$RANLIB" >&6; }
2745
3410
else
2746
 
  echo "$as_me:$LINENO: result: no" >&5
2747
 
echo "${ECHO_T}no" >&6
 
3411
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3412
$as_echo "no" >&6; }
2748
3413
fi
 
3414
 
2749
3415
 
2750
3416
fi
2751
3417
if test -z "$ac_cv_prog_RANLIB"; then
2752
3418
  ac_ct_RANLIB=$RANLIB
2753
3419
  # Extract the first word of "ranlib", so it can be a program name with args.
2754
3420
set dummy ranlib; ac_word=$2
2755
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2756
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2757
 
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2758
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3421
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3422
$as_echo_n "checking for $ac_word... " >&6; }
 
3423
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
 
3424
  $as_echo_n "(cached) " >&6
2759
3425
else
2760
3426
  if test -n "$ac_ct_RANLIB"; then
2761
3427
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2765
3431
do
2766
3432
  IFS=$as_save_IFS
2767
3433
  test -z "$as_dir" && as_dir=.
2768
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2769
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3434
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3435
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2770
3436
    ac_cv_prog_ac_ct_RANLIB="ranlib"
2771
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3437
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2772
3438
    break 2
2773
3439
  fi
2774
3440
done
2775
 
done
 
3441
  done
 
3442
IFS=$as_save_IFS
2776
3443
 
2777
 
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2778
3444
fi
2779
3445
fi
2780
3446
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2781
3447
if test -n "$ac_ct_RANLIB"; then
2782
 
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2783
 
echo "${ECHO_T}$ac_ct_RANLIB" >&6
 
3448
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
 
3449
$as_echo "$ac_ct_RANLIB" >&6; }
2784
3450
else
2785
 
  echo "$as_me:$LINENO: result: no" >&5
2786
 
echo "${ECHO_T}no" >&6
 
3451
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3452
$as_echo "no" >&6; }
2787
3453
fi
2788
3454
 
2789
 
  RANLIB=$ac_ct_RANLIB
 
3455
  if test "x$ac_ct_RANLIB" = x; then
 
3456
    RANLIB=":"
 
3457
  else
 
3458
    case $cross_compiling:$ac_tool_warned in
 
3459
yes:)
 
3460
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
3461
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
3462
ac_tool_warned=yes ;;
 
3463
esac
 
3464
    RANLIB=$ac_ct_RANLIB
 
3465
  fi
2790
3466
else
2791
3467
  RANLIB="$ac_cv_prog_RANLIB"
2792
3468
fi
2793
3469
 
2794
 
# Extract the first word of "ar", so it can be a program name with args.
2795
 
set dummy ar; ac_word=$2
2796
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2797
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2798
 
if test "${ac_cv_path_AR+set}" = set; then
2799
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3470
for ac_prog in ar gar
 
3471
do
 
3472
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
3473
set dummy $ac_prog; ac_word=$2
 
3474
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3475
$as_echo_n "checking for $ac_word... " >&6; }
 
3476
if test "${ac_cv_path_AR+set}" = set; then :
 
3477
  $as_echo_n "(cached) " >&6
2800
3478
else
2801
3479
  case $AR in
2802
3480
  [\\/]* | ?:[\\/]*)
2808
3486
do
2809
3487
  IFS=$as_save_IFS
2810
3488
  test -z "$as_dir" && as_dir=.
2811
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2812
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3489
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3490
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2813
3491
    ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
2814
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3492
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2815
3493
    break 2
2816
3494
  fi
2817
3495
done
2818
 
done
 
3496
  done
 
3497
IFS=$as_save_IFS
2819
3498
 
2820
3499
  ;;
2821
3500
esac
2822
3501
fi
2823
3502
AR=$ac_cv_path_AR
2824
 
 
2825
3503
if test -n "$AR"; then
2826
 
  echo "$as_me:$LINENO: result: $AR" >&5
2827
 
echo "${ECHO_T}$AR" >&6
 
3504
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
 
3505
$as_echo "$AR" >&6; }
2828
3506
else
2829
 
  echo "$as_me:$LINENO: result: no" >&5
2830
 
echo "${ECHO_T}no" >&6
 
3507
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3508
$as_echo "no" >&6; }
2831
3509
fi
2832
3510
 
 
3511
 
 
3512
  test -n "$AR" && break
 
3513
done
 
3514
 
2833
3515
# Extract the first word of "cp", so it can be a program name with args.
2834
3516
set dummy cp; ac_word=$2
2835
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2836
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2837
 
if test "${ac_cv_path_CP+set}" = set; then
2838
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3517
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3518
$as_echo_n "checking for $ac_word... " >&6; }
 
3519
if test "${ac_cv_path_CP+set}" = set; then :
 
3520
  $as_echo_n "(cached) " >&6
2839
3521
else
2840
3522
  case $CP in
2841
3523
  [\\/]* | ?:[\\/]*)
2847
3529
do
2848
3530
  IFS=$as_save_IFS
2849
3531
  test -z "$as_dir" && as_dir=.
2850
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2851
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3532
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3533
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2852
3534
    ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
2853
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3535
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2854
3536
    break 2
2855
3537
  fi
2856
3538
done
2857
 
done
 
3539
  done
 
3540
IFS=$as_save_IFS
2858
3541
 
2859
3542
  ;;
2860
3543
esac
2861
3544
fi
2862
3545
CP=$ac_cv_path_CP
2863
 
 
2864
3546
if test -n "$CP"; then
2865
 
  echo "$as_me:$LINENO: result: $CP" >&5
2866
 
echo "${ECHO_T}$CP" >&6
 
3547
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
 
3548
$as_echo "$CP" >&6; }
2867
3549
else
2868
 
  echo "$as_me:$LINENO: result: no" >&5
2869
 
echo "${ECHO_T}no" >&6
 
3550
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3551
$as_echo "no" >&6; }
2870
3552
fi
2871
3553
 
 
3554
 
2872
3555
# Extract the first word of "ln", so it can be a program name with args.
2873
3556
set dummy ln; ac_word=$2
2874
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2875
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2876
 
if test "${ac_cv_path_LN+set}" = set; then
2877
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3557
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3558
$as_echo_n "checking for $ac_word... " >&6; }
 
3559
if test "${ac_cv_path_LN+set}" = set; then :
 
3560
  $as_echo_n "(cached) " >&6
2878
3561
else
2879
3562
  case $LN in
2880
3563
  [\\/]* | ?:[\\/]*)
2886
3569
do
2887
3570
  IFS=$as_save_IFS
2888
3571
  test -z "$as_dir" && as_dir=.
2889
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2890
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3572
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3573
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2891
3574
    ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
2892
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3575
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2893
3576
    break 2
2894
3577
  fi
2895
3578
done
2896
 
done
 
3579
  done
 
3580
IFS=$as_save_IFS
2897
3581
 
2898
3582
  ;;
2899
3583
esac
2900
3584
fi
2901
3585
LN=$ac_cv_path_LN
2902
 
 
2903
3586
if test -n "$LN"; then
2904
 
  echo "$as_me:$LINENO: result: $LN" >&5
2905
 
echo "${ECHO_T}$LN" >&6
 
3587
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
 
3588
$as_echo "$LN" >&6; }
2906
3589
else
2907
 
  echo "$as_me:$LINENO: result: no" >&5
2908
 
echo "${ECHO_T}no" >&6
 
3590
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3591
$as_echo "no" >&6; }
2909
3592
fi
2910
3593
 
 
3594
 
2911
3595
# Extract the first word of "mkdir", so it can be a program name with args.
2912
3596
set dummy mkdir; ac_word=$2
2913
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2914
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2915
 
if test "${ac_cv_path_MKDIR+set}" = set; then
2916
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3597
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3598
$as_echo_n "checking for $ac_word... " >&6; }
 
3599
if test "${ac_cv_path_MKDIR+set}" = set; then :
 
3600
  $as_echo_n "(cached) " >&6
2917
3601
else
2918
3602
  case $MKDIR in
2919
3603
  [\\/]* | ?:[\\/]*)
2925
3609
do
2926
3610
  IFS=$as_save_IFS
2927
3611
  test -z "$as_dir" && as_dir=.
2928
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2929
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3612
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3613
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2930
3614
    ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
2931
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3615
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2932
3616
    break 2
2933
3617
  fi
2934
3618
done
2935
 
done
 
3619
  done
 
3620
IFS=$as_save_IFS
2936
3621
 
2937
3622
  ;;
2938
3623
esac
2939
3624
fi
2940
3625
MKDIR=$ac_cv_path_MKDIR
2941
 
 
2942
3626
if test -n "$MKDIR"; then
2943
 
  echo "$as_me:$LINENO: result: $MKDIR" >&5
2944
 
echo "${ECHO_T}$MKDIR" >&6
2945
 
else
2946
 
  echo "$as_me:$LINENO: result: no" >&5
2947
 
echo "${ECHO_T}no" >&6
2948
 
fi
2949
 
 
2950
 
# Extract the first word of "nroff", so it can be a program name with args.
2951
 
set dummy nroff; ac_word=$2
2952
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2953
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2954
 
if test "${ac_cv_path_NROFF+set}" = set; then
2955
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2956
 
else
2957
 
  case $NROFF in
2958
 
  [\\/]* | ?:[\\/]*)
2959
 
  ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
2960
 
  ;;
2961
 
  *)
2962
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2963
 
for as_dir in $PATH
2964
 
do
2965
 
  IFS=$as_save_IFS
2966
 
  test -z "$as_dir" && as_dir=.
2967
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2968
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2969
 
    ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
2970
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2971
 
    break 2
2972
 
  fi
2973
 
done
2974
 
done
2975
 
 
2976
 
  ;;
2977
 
esac
2978
 
fi
2979
 
NROFF=$ac_cv_path_NROFF
2980
 
 
2981
 
if test -n "$NROFF"; then
2982
 
  echo "$as_me:$LINENO: result: $NROFF" >&5
2983
 
echo "${ECHO_T}$NROFF" >&6
2984
 
else
2985
 
  echo "$as_me:$LINENO: result: no" >&5
2986
 
echo "${ECHO_T}no" >&6
2987
 
fi
2988
 
 
2989
 
if test x$NROFF = x; then
2990
 
        # Extract the first word of "groff", so it can be a program name with args.
2991
 
set dummy groff; ac_word=$2
2992
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2993
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2994
 
if test "${ac_cv_path_GROFF+set}" = set; then
2995
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2996
 
else
2997
 
  case $GROFF in
2998
 
  [\\/]* | ?:[\\/]*)
2999
 
  ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
3000
 
  ;;
3001
 
  *)
3002
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3003
 
for as_dir in $PATH
3004
 
do
3005
 
  IFS=$as_save_IFS
3006
 
  test -z "$as_dir" && as_dir=.
3007
 
  for ac_exec_ext in '' $ac_executable_extensions; do
3008
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3009
 
    ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
3010
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3011
 
    break 2
3012
 
  fi
3013
 
done
3014
 
done
3015
 
 
3016
 
  ;;
3017
 
esac
3018
 
fi
3019
 
GROFF=$ac_cv_path_GROFF
3020
 
 
3021
 
if test -n "$GROFF"; then
3022
 
  echo "$as_me:$LINENO: result: $GROFF" >&5
3023
 
echo "${ECHO_T}$GROFF" >&6
3024
 
else
3025
 
  echo "$as_me:$LINENO: result: no" >&5
3026
 
echo "${ECHO_T}no" >&6
3027
 
fi
3028
 
 
3029
 
        if test x$GROFF = x; then
3030
 
                NROFF="echo"
3031
 
        else
3032
 
                NROFF="$GROFF -T ascii"
3033
 
        fi
3034
 
fi
 
3627
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
 
3628
$as_echo "$MKDIR" >&6; }
 
3629
else
 
3630
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3631
$as_echo "no" >&6; }
 
3632
fi
 
3633
 
 
3634
 
3035
3635
# Extract the first word of "rm", so it can be a program name with args.
3036
3636
set dummy rm; ac_word=$2
3037
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
3038
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3039
 
if test "${ac_cv_path_RM+set}" = set; then
3040
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3637
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3638
$as_echo_n "checking for $ac_word... " >&6; }
 
3639
if test "${ac_cv_path_RM+set}" = set; then :
 
3640
  $as_echo_n "(cached) " >&6
3041
3641
else
3042
3642
  case $RM in
3043
3643
  [\\/]* | ?:[\\/]*)
3049
3649
do
3050
3650
  IFS=$as_save_IFS
3051
3651
  test -z "$as_dir" && as_dir=.
3052
 
  for ac_exec_ext in '' $ac_executable_extensions; do
3053
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3652
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3653
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3054
3654
    ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3055
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3655
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3056
3656
    break 2
3057
3657
  fi
3058
3658
done
3059
 
done
 
3659
  done
 
3660
IFS=$as_save_IFS
3060
3661
 
3061
3662
  ;;
3062
3663
esac
3063
3664
fi
3064
3665
RM=$ac_cv_path_RM
3065
 
 
3066
3666
if test -n "$RM"; then
3067
 
  echo "$as_me:$LINENO: result: $RM" >&5
3068
 
echo "${ECHO_T}$RM" >&6
 
3667
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
 
3668
$as_echo "$RM" >&6; }
3069
3669
else
3070
 
  echo "$as_me:$LINENO: result: no" >&5
3071
 
echo "${ECHO_T}no" >&6
3072
 
fi
3073
 
 
 
3670
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3671
$as_echo "no" >&6; }
 
3672
fi
 
3673
 
 
3674
 
 
3675
if test -z $AR ; then
 
3676
        as_fn_error "'ar' binary is mandatory.  Please either install the 'ar' binary or provide the path to configure with --with-ar=/path/to/ar" "$LINENO" 5
 
3677
fi
3074
3678
 
3075
3679
case "$uname" in
3076
3680
        Darwin* | *BSD*)
3083
3687
 
3084
3688
 
3085
3689
 
 
3690
 
 
3691
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
 
3692
$as_echo_n "checking for inline... " >&6; }
 
3693
if test "${ac_cv_c_inline+set}" = set; then :
 
3694
  $as_echo_n "(cached) " >&6
 
3695
else
 
3696
  ac_cv_c_inline=no
 
3697
for ac_kw in inline __inline__ __inline; do
 
3698
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3699
/* end confdefs.h.  */
 
3700
#ifndef __cplusplus
 
3701
typedef int foo_t;
 
3702
static $ac_kw foo_t static_foo () {return 0; }
 
3703
$ac_kw foo_t foo () {return 0; }
 
3704
#endif
 
3705
 
 
3706
_ACEOF
 
3707
if ac_fn_c_try_compile "$LINENO"; then :
 
3708
  ac_cv_c_inline=$ac_kw
 
3709
fi
 
3710
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3711
  test "$ac_cv_c_inline" != no && break
 
3712
done
 
3713
 
 
3714
fi
 
3715
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
 
3716
$as_echo "$ac_cv_c_inline" >&6; }
 
3717
 
 
3718
case $ac_cv_c_inline in
 
3719
  inline | yes) ;;
 
3720
  *)
 
3721
    case $ac_cv_c_inline in
 
3722
      no) ac_val=;;
 
3723
      *) ac_val=$ac_cv_c_inline;;
 
3724
    esac
 
3725
    cat >>confdefs.h <<_ACEOF
 
3726
#ifndef __cplusplus
 
3727
#define inline $ac_val
 
3728
#endif
 
3729
_ACEOF
 
3730
    ;;
 
3731
esac
 
3732
 
 
3733
 
3086
3734
if test "x$use_ansi" != xyes; then
3087
 
 
3088
 
 
3089
 
for ac_func in strdup
3090
 
do
3091
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3092
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
3093
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3094
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
3095
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3096
 
else
3097
 
  cat >conftest.$ac_ext <<_ACEOF
3098
 
/* confdefs.h.  */
3099
 
_ACEOF
3100
 
cat confdefs.h >>conftest.$ac_ext
3101
 
cat >>conftest.$ac_ext <<_ACEOF
3102
 
/* end confdefs.h.  */
3103
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3104
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3105
 
#define $ac_func innocuous_$ac_func
3106
 
 
3107
 
/* System header to define __stub macros and hopefully few prototypes,
3108
 
    which can conflict with char $ac_func (); below.
3109
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3110
 
    <limits.h> exists even on freestanding compilers.  */
3111
 
 
3112
 
#ifdef __STDC__
3113
 
# include <limits.h>
3114
 
#else
3115
 
# include <assert.h>
3116
 
#endif
3117
 
 
3118
 
#undef $ac_func
3119
 
 
3120
 
/* Override any gcc2 internal prototype to avoid an error.  */
3121
 
#ifdef __cplusplus
3122
 
extern "C"
3123
 
{
3124
 
#endif
3125
 
/* We use char because int might match the return type of a gcc2
3126
 
   builtin and then its argument prototype would still apply.  */
3127
 
char $ac_func ();
3128
 
/* The GNU C library defines this for functions which it implements
3129
 
    to always fail with ENOSYS.  Some functions are actually named
3130
 
    something starting with __ and the normal name is an alias.  */
3131
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3132
 
choke me
3133
 
#else
3134
 
char (*f) () = $ac_func;
3135
 
#endif
3136
 
#ifdef __cplusplus
3137
 
}
3138
 
#endif
3139
 
 
3140
 
int
3141
 
main ()
3142
 
{
3143
 
return f != $ac_func;
3144
 
  ;
3145
 
  return 0;
3146
 
}
3147
 
_ACEOF
3148
 
rm -f conftest.$ac_objext conftest$ac_exeext
3149
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3150
 
  (eval $ac_link) 2>conftest.er1
3151
 
  ac_status=$?
3152
 
  grep -v '^ *+' conftest.er1 >conftest.err
3153
 
  rm -f conftest.er1
3154
 
  cat conftest.err >&5
3155
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3156
 
  (exit $ac_status); } &&
3157
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3158
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3159
 
  (eval $ac_try) 2>&5
3160
 
  ac_status=$?
3161
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3162
 
  (exit $ac_status); }; } &&
3163
 
         { ac_try='test -s conftest$ac_exeext'
3164
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3165
 
  (eval $ac_try) 2>&5
3166
 
  ac_status=$?
3167
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168
 
  (exit $ac_status); }; }; then
3169
 
  eval "$as_ac_var=yes"
3170
 
else
3171
 
  echo "$as_me: failed program was:" >&5
3172
 
sed 's/^/| /' conftest.$ac_ext >&5
3173
 
 
3174
 
eval "$as_ac_var=no"
3175
 
fi
3176
 
rm -f conftest.err conftest.$ac_objext \
3177
 
      conftest$ac_exeext conftest.$ac_ext
3178
 
fi
3179
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3180
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3181
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
3735
        for ac_func in strdup
 
3736
do :
 
3737
  ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
 
3738
if test "x$ac_cv_func_strdup" = x""yes; then :
3182
3739
  cat >>confdefs.h <<_ACEOF
3183
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
3740
#define HAVE_STRDUP 1
3184
3741
_ACEOF
3185
3742
 
3186
3743
fi
3189
3746
fi
3190
3747
 
3191
3748
if test "x$use_vsnprintf" != xyes; then
3192
 
 
3193
 
for ac_func in vsnprintf
3194
 
do
3195
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3196
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
3197
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3198
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
3199
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3200
 
else
3201
 
  cat >conftest.$ac_ext <<_ACEOF
3202
 
/* confdefs.h.  */
3203
 
_ACEOF
3204
 
cat confdefs.h >>conftest.$ac_ext
3205
 
cat >>conftest.$ac_ext <<_ACEOF
3206
 
/* end confdefs.h.  */
3207
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3208
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3209
 
#define $ac_func innocuous_$ac_func
3210
 
 
3211
 
/* System header to define __stub macros and hopefully few prototypes,
3212
 
    which can conflict with char $ac_func (); below.
3213
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3214
 
    <limits.h> exists even on freestanding compilers.  */
3215
 
 
3216
 
#ifdef __STDC__
3217
 
# include <limits.h>
3218
 
#else
3219
 
# include <assert.h>
3220
 
#endif
3221
 
 
3222
 
#undef $ac_func
3223
 
 
3224
 
/* Override any gcc2 internal prototype to avoid an error.  */
3225
 
#ifdef __cplusplus
3226
 
extern "C"
3227
 
{
3228
 
#endif
3229
 
/* We use char because int might match the return type of a gcc2
3230
 
   builtin and then its argument prototype would still apply.  */
3231
 
char $ac_func ();
3232
 
/* The GNU C library defines this for functions which it implements
3233
 
    to always fail with ENOSYS.  Some functions are actually named
3234
 
    something starting with __ and the normal name is an alias.  */
3235
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3236
 
choke me
3237
 
#else
3238
 
char (*f) () = $ac_func;
3239
 
#endif
3240
 
#ifdef __cplusplus
3241
 
}
3242
 
#endif
3243
 
 
3244
 
int
3245
 
main ()
3246
 
{
3247
 
return f != $ac_func;
3248
 
  ;
3249
 
  return 0;
3250
 
}
3251
 
_ACEOF
3252
 
rm -f conftest.$ac_objext conftest$ac_exeext
3253
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3254
 
  (eval $ac_link) 2>conftest.er1
3255
 
  ac_status=$?
3256
 
  grep -v '^ *+' conftest.er1 >conftest.err
3257
 
  rm -f conftest.er1
3258
 
  cat conftest.err >&5
3259
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3260
 
  (exit $ac_status); } &&
3261
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3262
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3263
 
  (eval $ac_try) 2>&5
3264
 
  ac_status=$?
3265
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3266
 
  (exit $ac_status); }; } &&
3267
 
         { ac_try='test -s conftest$ac_exeext'
3268
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3269
 
  (eval $ac_try) 2>&5
3270
 
  ac_status=$?
3271
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3272
 
  (exit $ac_status); }; }; then
3273
 
  eval "$as_ac_var=yes"
3274
 
else
3275
 
  echo "$as_me: failed program was:" >&5
3276
 
sed 's/^/| /' conftest.$ac_ext >&5
3277
 
 
3278
 
eval "$as_ac_var=no"
3279
 
fi
3280
 
rm -f conftest.err conftest.$ac_objext \
3281
 
      conftest$ac_exeext conftest.$ac_ext
3282
 
fi
3283
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3284
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3285
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
3286
 
  cat >>confdefs.h <<_ACEOF
3287
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3288
 
_ACEOF
3289
 
 
3290
 
fi
3291
 
done
3292
 
 
3293
 
fi
 
3749
        for ac_func in snprintf vsnprintf
 
3750
do :
 
3751
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
3752
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
 
3753
eval as_val=\$$as_ac_var
 
3754
   if test "x$as_val" = x""yes; then :
 
3755
  cat >>confdefs.h <<_ACEOF
 
3756
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
3757
_ACEOF
 
3758
 
 
3759
fi
 
3760
done
 
3761
 
 
3762
fi
 
3763
 
 
3764
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
 
3765
$as_echo_n "checking for long long int... " >&6; }
 
3766
if test "${ac_cv_c_long_long+set}" = set; then :
 
3767
  $as_echo_n "(cached) " >&6
 
3768
else
 
3769
  if test "$GCC" = yes; then
 
3770
                ac_cv_c_long_long=yes
 
3771
        else
 
3772
                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3773
/* end confdefs.h.  */
 
3774
 
 
3775
int
 
3776
main ()
 
3777
{
 
3778
long long int i;
 
3779
  ;
 
3780
  return 0;
 
3781
}
 
3782
_ACEOF
 
3783
if ac_fn_c_try_compile "$LINENO"; then :
 
3784
  ac_cv_c_long_long=yes
 
3785
else
 
3786
  ac_cv_c_long_long=no
 
3787
fi
 
3788
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3789
        fi
 
3790
fi
 
3791
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_long_long" >&5
 
3792
$as_echo "$ac_cv_c_long_long" >&6; }
 
3793
 
 
3794
if test $ac_cv_c_long_long = yes; then
 
3795
        $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
 
3796
 
 
3797
fi
 
3798
 
 
3799
# Check whether --enable-threads was given.
 
3800
if test "${enable_threads+set}" = set; then :
 
3801
  enableval=$enable_threads;
 
3802
fi
 
3803
 
 
3804
 
 
3805
have_pthread=no
 
3806
PTHREAD_FLAGS=""
 
3807
PTHREAD_LIBS=""
 
3808
 
 
3809
if test "x$enable_threads" != xno; then
 
3810
        ac_ext=c
 
3811
ac_cpp='$CPP $CPPFLAGS'
 
3812
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3813
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3814
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3815
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
 
3816
$as_echo_n "checking how to run the C preprocessor... " >&6; }
 
3817
# On Suns, sometimes $CPP names a directory.
 
3818
if test -n "$CPP" && test -d "$CPP"; then
 
3819
  CPP=
 
3820
fi
 
3821
if test -z "$CPP"; then
 
3822
  if test "${ac_cv_prog_CPP+set}" = set; then :
 
3823
  $as_echo_n "(cached) " >&6
 
3824
else
 
3825
      # Double quotes because CPP needs to be expanded
 
3826
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
3827
    do
 
3828
      ac_preproc_ok=false
 
3829
for ac_c_preproc_warn_flag in '' yes
 
3830
do
 
3831
  # Use a header file that comes with gcc, so configuring glibc
 
3832
  # with a fresh cross-compiler works.
 
3833
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
3834
  # <limits.h> exists even on freestanding compilers.
 
3835
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
3836
  # not just through cpp. "Syntax error" is here to catch this case.
 
3837
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3838
/* end confdefs.h.  */
 
3839
#ifdef __STDC__
 
3840
# include <limits.h>
 
3841
#else
 
3842
# include <assert.h>
 
3843
#endif
 
3844
                     Syntax error
 
3845
_ACEOF
 
3846
if ac_fn_c_try_cpp "$LINENO"; then :
 
3847
 
 
3848
else
 
3849
  # Broken: fails on valid input.
 
3850
continue
 
3851
fi
 
3852
rm -f conftest.err conftest.$ac_ext
 
3853
 
 
3854
  # OK, works on sane cases.  Now check whether nonexistent headers
 
3855
  # can be detected and how.
 
3856
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3857
/* end confdefs.h.  */
 
3858
#include <ac_nonexistent.h>
 
3859
_ACEOF
 
3860
if ac_fn_c_try_cpp "$LINENO"; then :
 
3861
  # Broken: success on invalid input.
 
3862
continue
 
3863
else
 
3864
  # Passes both tests.
 
3865
ac_preproc_ok=:
 
3866
break
 
3867
fi
 
3868
rm -f conftest.err conftest.$ac_ext
 
3869
 
 
3870
done
 
3871
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
3872
rm -f conftest.err conftest.$ac_ext
 
3873
if $ac_preproc_ok; then :
 
3874
  break
 
3875
fi
 
3876
 
 
3877
    done
 
3878
    ac_cv_prog_CPP=$CPP
 
3879
 
 
3880
fi
 
3881
  CPP=$ac_cv_prog_CPP
 
3882
else
 
3883
  ac_cv_prog_CPP=$CPP
 
3884
fi
 
3885
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
 
3886
$as_echo "$CPP" >&6; }
 
3887
ac_preproc_ok=false
 
3888
for ac_c_preproc_warn_flag in '' yes
 
3889
do
 
3890
  # Use a header file that comes with gcc, so configuring glibc
 
3891
  # with a fresh cross-compiler works.
 
3892
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
3893
  # <limits.h> exists even on freestanding compilers.
 
3894
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
3895
  # not just through cpp. "Syntax error" is here to catch this case.
 
3896
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3897
/* end confdefs.h.  */
 
3898
#ifdef __STDC__
 
3899
# include <limits.h>
 
3900
#else
 
3901
# include <assert.h>
 
3902
#endif
 
3903
                     Syntax error
 
3904
_ACEOF
 
3905
if ac_fn_c_try_cpp "$LINENO"; then :
 
3906
 
 
3907
else
 
3908
  # Broken: fails on valid input.
 
3909
continue
 
3910
fi
 
3911
rm -f conftest.err conftest.$ac_ext
 
3912
 
 
3913
  # OK, works on sane cases.  Now check whether nonexistent headers
 
3914
  # can be detected and how.
 
3915
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3916
/* end confdefs.h.  */
 
3917
#include <ac_nonexistent.h>
 
3918
_ACEOF
 
3919
if ac_fn_c_try_cpp "$LINENO"; then :
 
3920
  # Broken: success on invalid input.
 
3921
continue
 
3922
else
 
3923
  # Passes both tests.
 
3924
ac_preproc_ok=:
 
3925
break
 
3926
fi
 
3927
rm -f conftest.err conftest.$ac_ext
 
3928
 
 
3929
done
 
3930
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
3931
rm -f conftest.err conftest.$ac_ext
 
3932
if $ac_preproc_ok; then :
 
3933
 
 
3934
else
 
3935
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3936
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3937
as_fn_error "C preprocessor \"$CPP\" fails sanity check
 
3938
See \`config.log' for more details." "$LINENO" 5; }
 
3939
fi
 
3940
 
 
3941
ac_ext=c
 
3942
ac_cpp='$CPP $CPPFLAGS'
 
3943
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3944
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3945
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3946
 
 
3947
 
 
3948
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
 
3949
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
 
3950
if test "${ac_cv_path_GREP+set}" = set; then :
 
3951
  $as_echo_n "(cached) " >&6
 
3952
else
 
3953
  if test -z "$GREP"; then
 
3954
  ac_path_GREP_found=false
 
3955
  # Loop through the user's path and test for each of PROGNAME-LIST
 
3956
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3957
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
3958
do
 
3959
  IFS=$as_save_IFS
 
3960
  test -z "$as_dir" && as_dir=.
 
3961
    for ac_prog in grep ggrep; do
 
3962
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3963
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
 
3964
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
 
3965
# Check for GNU ac_path_GREP and select it if it is found.
 
3966
  # Check for GNU $ac_path_GREP
 
3967
case `"$ac_path_GREP" --version 2>&1` in
 
3968
*GNU*)
 
3969
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
 
3970
*)
 
3971
  ac_count=0
 
3972
  $as_echo_n 0123456789 >"conftest.in"
 
3973
  while :
 
3974
  do
 
3975
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
3976
    mv "conftest.tmp" "conftest.in"
 
3977
    cp "conftest.in" "conftest.nl"
 
3978
    $as_echo 'GREP' >> "conftest.nl"
 
3979
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
3980
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
3981
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
3982
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
 
3983
      # Best one so far, save it but keep looking for a better one
 
3984
      ac_cv_path_GREP="$ac_path_GREP"
 
3985
      ac_path_GREP_max=$ac_count
 
3986
    fi
 
3987
    # 10*(2^10) chars as input seems more than enough
 
3988
    test $ac_count -gt 10 && break
 
3989
  done
 
3990
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
3991
esac
 
3992
 
 
3993
      $ac_path_GREP_found && break 3
 
3994
    done
 
3995
  done
 
3996
  done
 
3997
IFS=$as_save_IFS
 
3998
  if test -z "$ac_cv_path_GREP"; then
 
3999
    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
4000
  fi
 
4001
else
 
4002
  ac_cv_path_GREP=$GREP
 
4003
fi
 
4004
 
 
4005
fi
 
4006
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
 
4007
$as_echo "$ac_cv_path_GREP" >&6; }
 
4008
 GREP="$ac_cv_path_GREP"
 
4009
 
 
4010
 
 
4011
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
 
4012
$as_echo_n "checking for egrep... " >&6; }
 
4013
if test "${ac_cv_path_EGREP+set}" = set; then :
 
4014
  $as_echo_n "(cached) " >&6
 
4015
else
 
4016
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
 
4017
   then ac_cv_path_EGREP="$GREP -E"
 
4018
   else
 
4019
     if test -z "$EGREP"; then
 
4020
  ac_path_EGREP_found=false
 
4021
  # Loop through the user's path and test for each of PROGNAME-LIST
 
4022
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4023
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
4024
do
 
4025
  IFS=$as_save_IFS
 
4026
  test -z "$as_dir" && as_dir=.
 
4027
    for ac_prog in egrep; do
 
4028
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4029
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
 
4030
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
 
4031
# Check for GNU ac_path_EGREP and select it if it is found.
 
4032
  # Check for GNU $ac_path_EGREP
 
4033
case `"$ac_path_EGREP" --version 2>&1` in
 
4034
*GNU*)
 
4035
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
 
4036
*)
 
4037
  ac_count=0
 
4038
  $as_echo_n 0123456789 >"conftest.in"
 
4039
  while :
 
4040
  do
 
4041
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4042
    mv "conftest.tmp" "conftest.in"
 
4043
    cp "conftest.in" "conftest.nl"
 
4044
    $as_echo 'EGREP' >> "conftest.nl"
 
4045
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4046
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4047
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
4048
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
 
4049
      # Best one so far, save it but keep looking for a better one
 
4050
      ac_cv_path_EGREP="$ac_path_EGREP"
 
4051
      ac_path_EGREP_max=$ac_count
 
4052
    fi
 
4053
    # 10*(2^10) chars as input seems more than enough
 
4054
    test $ac_count -gt 10 && break
 
4055
  done
 
4056
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4057
esac
 
4058
 
 
4059
      $ac_path_EGREP_found && break 3
 
4060
    done
 
4061
  done
 
4062
  done
 
4063
IFS=$as_save_IFS
 
4064
  if test -z "$ac_cv_path_EGREP"; then
 
4065
    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
4066
  fi
 
4067
else
 
4068
  ac_cv_path_EGREP=$EGREP
 
4069
fi
 
4070
 
 
4071
   fi
 
4072
fi
 
4073
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
 
4074
$as_echo "$ac_cv_path_EGREP" >&6; }
 
4075
 EGREP="$ac_cv_path_EGREP"
 
4076
 
 
4077
 
 
4078
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
 
4079
$as_echo_n "checking for ANSI C header files... " >&6; }
 
4080
if test "${ac_cv_header_stdc+set}" = set; then :
 
4081
  $as_echo_n "(cached) " >&6
 
4082
else
 
4083
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4084
/* end confdefs.h.  */
 
4085
#include <stdlib.h>
 
4086
#include <stdarg.h>
 
4087
#include <string.h>
 
4088
#include <float.h>
 
4089
 
 
4090
int
 
4091
main ()
 
4092
{
 
4093
 
 
4094
  ;
 
4095
  return 0;
 
4096
}
 
4097
_ACEOF
 
4098
if ac_fn_c_try_compile "$LINENO"; then :
 
4099
  ac_cv_header_stdc=yes
 
4100
else
 
4101
  ac_cv_header_stdc=no
 
4102
fi
 
4103
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4104
 
 
4105
if test $ac_cv_header_stdc = yes; then
 
4106
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
4107
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4108
/* end confdefs.h.  */
 
4109
#include <string.h>
 
4110
 
 
4111
_ACEOF
 
4112
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
4113
  $EGREP "memchr" >/dev/null 2>&1; then :
 
4114
 
 
4115
else
 
4116
  ac_cv_header_stdc=no
 
4117
fi
 
4118
rm -f conftest*
 
4119
 
 
4120
fi
 
4121
 
 
4122
if test $ac_cv_header_stdc = yes; then
 
4123
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
4124
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4125
/* end confdefs.h.  */
 
4126
#include <stdlib.h>
 
4127
 
 
4128
_ACEOF
 
4129
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
4130
  $EGREP "free" >/dev/null 2>&1; then :
 
4131
 
 
4132
else
 
4133
  ac_cv_header_stdc=no
 
4134
fi
 
4135
rm -f conftest*
 
4136
 
 
4137
fi
 
4138
 
 
4139
if test $ac_cv_header_stdc = yes; then
 
4140
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
4141
  if test "$cross_compiling" = yes; then :
 
4142
  :
 
4143
else
 
4144
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4145
/* end confdefs.h.  */
 
4146
#include <ctype.h>
 
4147
#include <stdlib.h>
 
4148
#if ((' ' & 0x0FF) == 0x020)
 
4149
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
4150
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
4151
#else
 
4152
# define ISLOWER(c) \
 
4153
                   (('a' <= (c) && (c) <= 'i') \
 
4154
                     || ('j' <= (c) && (c) <= 'r') \
 
4155
                     || ('s' <= (c) && (c) <= 'z'))
 
4156
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
4157
#endif
 
4158
 
 
4159
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
4160
int
 
4161
main ()
 
4162
{
 
4163
  int i;
 
4164
  for (i = 0; i < 256; i++)
 
4165
    if (XOR (islower (i), ISLOWER (i))
 
4166
        || toupper (i) != TOUPPER (i))
 
4167
      return 2;
 
4168
  return 0;
 
4169
}
 
4170
_ACEOF
 
4171
if ac_fn_c_try_run "$LINENO"; then :
 
4172
 
 
4173
else
 
4174
  ac_cv_header_stdc=no
 
4175
fi
 
4176
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
4177
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
4178
fi
 
4179
 
 
4180
fi
 
4181
fi
 
4182
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
 
4183
$as_echo "$ac_cv_header_stdc" >&6; }
 
4184
if test $ac_cv_header_stdc = yes; then
 
4185
 
 
4186
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
 
4187
 
 
4188
fi
 
4189
 
 
4190
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
4191
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
4192
                  inttypes.h stdint.h unistd.h
 
4193
do :
 
4194
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
4195
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
 
4196
"
 
4197
eval as_val=\$$as_ac_Header
 
4198
   if test "x$as_val" = x""yes; then :
 
4199
  cat >>confdefs.h <<_ACEOF
 
4200
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
4201
_ACEOF
 
4202
 
 
4203
fi
 
4204
 
 
4205
done
 
4206
 
 
4207
 
 
4208
ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
 
4209
if test "x$ac_cv_header_pthread_h" = x""yes; then :
 
4210
  $as_echo "#define HAVE_PTHREAD_H 1" >>confdefs.h
 
4211
 
 
4212
fi
 
4213
 
 
4214
 
 
4215
 
 
4216
        if test x$ac_cv_header_pthread_h = xyes; then
 
4217
                                for flag in -lpthreads -lpthread -pthread; do
 
4218
                        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create using $flag" >&5
 
4219
$as_echo_n "checking for pthread_create using $flag... " >&6; }
 
4220
                        SAVELIBS="$LIBS"
 
4221
                        LIBS="$flag $LIBS"
 
4222
                        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4223
/* end confdefs.h.  */
 
4224
#include <pthread.h>
 
4225
int
 
4226
main ()
 
4227
{
 
4228
pthread_create(0, 0, 0, 0);
 
4229
  ;
 
4230
  return 0;
 
4231
}
 
4232
_ACEOF
 
4233
if ac_fn_c_try_link "$LINENO"; then :
 
4234
  have_pthread=yes
 
4235
fi
 
4236
rm -f core conftest.err conftest.$ac_objext \
 
4237
    conftest$ac_exeext conftest.$ac_ext
 
4238
                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread" >&5
 
4239
$as_echo "$have_pthread" >&6; }
 
4240
                        LIBS="$SAVELIBS"
 
4241
 
 
4242
                        if test $have_pthread = yes; then
 
4243
                                PTHREAD_FLAGS="-D_THREAD_SAFE -D_REENTRANT"
 
4244
                                PTHREAD_LIBS="$flag"
 
4245
 
 
4246
                                # Solaris requires -D_POSIX_PTHREAD_SEMANTICS to
 
4247
                                # be POSIX-compliant... :(
 
4248
                                if test $uname = SunOS; then
 
4249
                                        PTHREAD_FLAGS="$PTHREAD_FLAGS -D_POSIX_PTHREAD_SEMANTICS"
 
4250
                                fi
 
4251
                                break
 
4252
                        fi
 
4253
                done
 
4254
        fi
 
4255
fi
 
4256
 
 
4257
 
 
4258
 
3294
4259
 
3295
4260
DSO="${DSO:=:}"
3296
4261
DSOFLAGS="${DSOFLAGS:=}"
3297
4262
 
3298
 
# Check whether --enable-shared or --disable-shared was given.
3299
 
if test "${enable_shared+set}" = set; then
3300
 
  enableval="$enable_shared"
 
4263
# Check whether --enable-shared was given.
 
4264
if test "${enable_shared+set}" = set; then :
 
4265
  enableval=$enable_shared;
 
4266
fi
3301
4267
 
3302
 
fi;
3303
4268
 
3304
4269
if test x$enable_shared = xyes; then
3305
 
        echo "$as_me:$LINENO: checking for shared library support" >&5
3306
 
echo $ECHO_N "checking for shared library support... $ECHO_C" >&6
 
4270
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library support" >&5
 
4271
$as_echo_n "checking for shared library support... " >&6; }
3307
4272
        PICFLAG=1
3308
4273
 
3309
4274
        case "$uname" in
3310
4275
                SunOS* | UNIX_S*)
3311
 
                        echo "$as_me:$LINENO: result: yes" >&5
3312
 
echo "${ECHO_T}yes" >&6
3313
 
                        LIBMXML="libmxml.so.1.0"
 
4276
                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
4277
$as_echo "yes" >&6; }
 
4278
                        LIBMXML="libmxml.so.1.4"
3314
4279
                        DSO="\$(CC)"
3315
4280
                        DSOFLAGS="$DSOFLAGS -Wl,-h,libmxml.so.1 -G -R\$(libdir) \$(OPTIM)"
3316
4281
                        LDFLAGS="$LDFLAGS -R\$(libdir)"
3317
4282
                        ;;
3318
4283
 
3319
4284
                HP-UX*)
3320
 
                        echo "$as_me:$LINENO: result: yes" >&5
3321
 
echo "${ECHO_T}yes" >&6
 
4285
                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
4286
$as_echo "yes" >&6; }
3322
4287
                        LIBMXML="libmxml.sl.1"
3323
4288
                        DSO="ld"
3324
4289
                        DSOFLAGS="$DSOFLAGS -b -z +h libmxml.sl.1 +s +b \$(libdir)"
3326
4291
                        ;;
3327
4292
 
3328
4293
                IRIX)
3329
 
                        echo "$as_me:$LINENO: result: yes" >&5
3330
 
echo "${ECHO_T}yes" >&6
3331
 
                        LIBMXML="libmxml.so.1.0"
 
4294
                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
4295
$as_echo "yes" >&6; }
 
4296
                        LIBMXML="libmxml.so.1.4"
3332
4297
                        DSO="\$(CC)"
3333
4298
                        DSOFLAGS="$DSOFLAGS -Wl,-rpath,\$(libdir),-set_version,sgi1.0,-soname,libmxml.so.1 -shared \$(OPTIM)"
3334
4299
                        ;;
3335
4300
 
3336
4301
                OSF1* | Linux | GNU)
3337
 
                        echo "$as_me:$LINENO: result: yes" >&5
3338
 
echo "${ECHO_T}yes" >&6
3339
 
                        LIBMXML="libmxml.so.1.0"
 
4302
                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
4303
$as_echo "yes" >&6; }
 
4304
                        LIBMXML="libmxml.so.1.4"
3340
4305
                        DSO="\$(CC)"
3341
4306
                        DSOFLAGS="$DSOFLAGS -Wl,-soname,libmxml.so.1,-rpath,\$(libdir) -shared \$(OPTIM)"
3342
4307
                        LDFLAGS="$LDFLAGS -Wl,-rpath,\$(libdir)"
3343
4308
                        ;;
3344
4309
 
3345
4310
                *BSD*)
3346
 
                        echo "$as_me:$LINENO: result: yes" >&5
3347
 
echo "${ECHO_T}yes" >&6
3348
 
                        LIBMXML="libmxml.so.1.0"
 
4311
                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
4312
$as_echo "yes" >&6; }
 
4313
                        LIBMXML="libmxml.so.1.4"
3349
4314
                        DSO="\$(CC)"
3350
4315
                        DSOFLAGS="$DSOFLAGS -Wl,-soname,libmxml.so.1,-R\$(libdir) -shared \$(OPTIM)"
3351
4316
                        LDFLAGS="$LDFLAGS -Wl,-R\$(libdir)"
3352
4317
                        ;;
3353
4318
 
3354
4319
                Darwin*)
3355
 
                        echo "$as_me:$LINENO: result: yes" >&5
3356
 
echo "${ECHO_T}yes" >&6
 
4320
                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
4321
$as_echo "yes" >&6; }
3357
4322
                        LIBMXML="libmxml.1.dylib"
3358
4323
                        DSO="\$(CC)"
3359
4324
                        DSOFLAGS="$DSOFLAGS \$(RC_CFLAGS) -dynamiclib -lc"
3360
4325
                        ;;
3361
4326
 
3362
4327
                *)
3363
 
                        echo "$as_me:$LINENO: result: no" >&5
3364
 
echo "${ECHO_T}no" >&6
3365
 
                        { echo "$as_me:$LINENO: WARNING: shared libraries not supported on this platform." >&5
3366
 
echo "$as_me: WARNING: shared libraries not supported on this platform." >&2;}
 
4328
                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4329
$as_echo "no" >&6; }
 
4330
                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: shared libraries not supported on this platform." >&5
 
4331
$as_echo "$as_me: WARNING: shared libraries not supported on this platform." >&2;}
3367
4332
                        PICFLAG=0
3368
4333
                        LIBMXML="libmxml.a"
3369
4334
                        ;;
3381
4346
if test -n "$GCC"; then
3382
4347
        CFLAGS="-Wall $CFLAGS"
3383
4348
 
 
4349
        if test "x$OPTIM" = x; then
 
4350
                OPTIM="-Os -g"
 
4351
        fi
 
4352
 
3384
4353
        if test "x$use_ansi" = xyes; then
3385
4354
                CFLAGS="-ansi -pedantic $CFLAGS"
3386
4355
        fi
3392
4361
        case $uname in
3393
4362
                HP-UX*)
3394
4363
                        CFLAGS="-Ae $CFLAGS"
 
4364
 
 
4365
                        if test "x$OPTIM" = x; then
 
4366
                                OPTIM="-O"
 
4367
                        fi
 
4368
 
3395
4369
                        OPTIM="+DAportable $OPTIM"
3396
4370
 
3397
4371
                        if test $PICFLAG = 1; then
3400
4374
                        ;;
3401
4375
 
3402
4376
                UNIX_SVR* | SunOS*)
 
4377
                        if test "x$OPTIM" = x; then
 
4378
                                OPTIM="-O"
 
4379
                        fi
 
4380
 
3403
4381
                        if test $PICFLAG = 1; then
3404
4382
                                OPTIM="-KPIC $OPTIM"
3405
4383
                        fi
3406
4384
                        ;;
 
4385
 
 
4386
                *)
 
4387
                        if test "x$OPTIM" = x; then
 
4388
                                OPTIM="-O"
 
4389
                        fi
 
4390
                        ;;
3407
4391
        esac
3408
4392
fi
3409
4393
 
3436
4420
        esac
3437
4421
fi
3438
4422
 
3439
 
case "$uname" in
3440
 
        *BSD* | Darwin*)
3441
 
                # *BSD
3442
 
                CAT1EXT="0"
3443
 
                MAN1EXT="1"
3444
 
                CAT3EXT="0"
3445
 
                MAN3EXT="3"
3446
 
                ;;
3447
 
        *)
3448
 
                # All others
3449
 
                CAT1EXT="1"
3450
 
                MAN1EXT="1"
3451
 
                CAT3EXT="3"
3452
 
                MAN3EXT="3"
3453
 
                ;;
3454
 
esac
3455
 
 
3456
 
 
3457
 
 
3458
 
 
3459
 
 
3460
 
 
3461
4423
if test "$includedir" != /usr/include; then
3462
4424
        PC_CFLAGS="-I$includedir"
3463
4425
else
3473
4435
 
3474
4436
 
3475
4437
 
3476
 
                              ac_config_files="$ac_config_files Makefile mxml.list mxml.pc"
 
4438
ac_config_files="$ac_config_files Makefile mxml.list mxml.pc"
 
4439
 
3477
4440
cat >confcache <<\_ACEOF
3478
4441
# This file is a shell script that caches the results of configure
3479
4442
# tests run on this system so they can be shared between configure
3492
4455
 
3493
4456
# The following way of writing the cache mishandles newlines in values,
3494
4457
# but we know of no workaround that is simple, portable, and efficient.
3495
 
# So, don't put newlines in cache variables' values.
 
4458
# So, we kill variables containing newlines.
3496
4459
# Ultrix sh set writes to stderr and can't be redirected directly,
3497
4460
# and sets the high bit in the cache file unless we assign to the vars.
3498
 
{
 
4461
(
 
4462
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
 
4463
    eval ac_val=\$$ac_var
 
4464
    case $ac_val in #(
 
4465
    *${as_nl}*)
 
4466
      case $ac_var in #(
 
4467
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
 
4468
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
 
4469
      esac
 
4470
      case $ac_var in #(
 
4471
      _ | IFS | as_nl) ;; #(
 
4472
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 
4473
      *) { eval $ac_var=; unset $ac_var;} ;;
 
4474
      esac ;;
 
4475
    esac
 
4476
  done
 
4477
 
3499
4478
  (set) 2>&1 |
3500
 
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
3501
 
    *ac_space=\ *)
3502
 
      # `set' does not quote correctly, so add quotes (double-quote
3503
 
      # substitution turns \\\\ into \\, and sed turns \\ into \).
 
4479
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
 
4480
    *${as_nl}ac_space=\ *)
 
4481
      # `set' does not quote correctly, so add quotes: double-quote
 
4482
      # substitution turns \\\\ into \\, and sed turns \\ into \.
3504
4483
      sed -n \
3505
4484
        "s/'/'\\\\''/g;
3506
4485
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3507
 
      ;;
 
4486
      ;; #(
3508
4487
    *)
3509
4488
      # `set' quotes correctly as required by POSIX, so do not add quotes.
3510
 
      sed -n \
3511
 
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
4489
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3512
4490
      ;;
3513
 
    esac;
3514
 
} |
 
4491
    esac |
 
4492
    sort
 
4493
) |
3515
4494
  sed '
 
4495
     /^ac_cv_env_/b end
3516
4496
     t clear
3517
 
     : clear
 
4497
     :clear
3518
4498
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3519
4499
     t end
3520
 
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3521
 
     : end' >>confcache
3522
 
if diff $cache_file confcache >/dev/null 2>&1; then :; else
3523
 
  if test -w $cache_file; then
3524
 
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
 
4500
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
4501
     :end' >>confcache
 
4502
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
 
4503
  if test -w "$cache_file"; then
 
4504
    test "x$cache_file" != "x/dev/null" &&
 
4505
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
 
4506
$as_echo "$as_me: updating cache $cache_file" >&6;}
3525
4507
    cat confcache >$cache_file
3526
4508
  else
3527
 
    echo "not updating unwritable cache $cache_file"
 
4509
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
 
4510
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
3528
4511
  fi
3529
4512
fi
3530
4513
rm -f confcache
3533
4516
# Let make expand exec_prefix.
3534
4517
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3535
4518
 
3536
 
# VPATH may cause trouble with some makes, so we remove $(srcdir),
3537
 
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
3538
 
# trailing colons and then remove the whole line if VPATH becomes empty
3539
 
# (actually we leave an empty line to preserve line numbers).
3540
 
if test "x$srcdir" = x.; then
3541
 
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
3542
 
s/:*\$(srcdir):*/:/;
3543
 
s/:*\${srcdir}:*/:/;
3544
 
s/:*@srcdir@:*/:/;
3545
 
s/^\([^=]*=[     ]*\):*/\1/;
3546
 
s/:*$//;
3547
 
s/^[^=]*=[       ]*$//;
3548
 
}'
3549
 
fi
3550
 
 
3551
4519
DEFS=-DHAVE_CONFIG_H
3552
4520
 
3553
4521
ac_libobjs=
3554
4522
ac_ltlibobjs=
3555
4523
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3556
4524
  # 1. Remove the extension, and $U if already installed.
3557
 
  ac_i=`echo "$ac_i" |
3558
 
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
3559
 
  # 2. Add them.
3560
 
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
3561
 
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
 
4525
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
 
4526
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
 
4527
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
 
4528
  #    will be set to the directory where LIBOBJS objects are built.
 
4529
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
 
4530
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
3562
4531
done
3563
4532
LIBOBJS=$ac_libobjs
3564
4533
 
3567
4536
 
3568
4537
 
3569
4538
: ${CONFIG_STATUS=./config.status}
 
4539
ac_write_fail=0
3570
4540
ac_clean_files_save=$ac_clean_files
3571
4541
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3572
 
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
3573
 
echo "$as_me: creating $CONFIG_STATUS" >&6;}
3574
 
cat >$CONFIG_STATUS <<_ACEOF
 
4542
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
 
4543
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
4544
as_write_fail=0
 
4545
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
3575
4546
#! $SHELL
3576
4547
# Generated by $as_me.
3577
4548
# Run this file to recreate the current configuration.
3581
4552
debug=false
3582
4553
ac_cs_recheck=false
3583
4554
ac_cs_silent=false
 
4555
 
3584
4556
SHELL=\${CONFIG_SHELL-$SHELL}
3585
 
_ACEOF
3586
 
 
3587
 
cat >>$CONFIG_STATUS <<\_ACEOF
3588
 
## --------------------- ##
3589
 
## M4sh Initialization.  ##
3590
 
## --------------------- ##
3591
 
 
3592
 
# Be Bourne compatible
3593
 
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
4557
export SHELL
 
4558
_ASEOF
 
4559
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
 
4560
## -------------------- ##
 
4561
## M4sh Initialization. ##
 
4562
## -------------------- ##
 
4563
 
 
4564
# Be more Bourne compatible
 
4565
DUALCASE=1; export DUALCASE # for MKS sh
 
4566
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
3594
4567
  emulate sh
3595
4568
  NULLCMD=:
3596
 
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
4569
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
3597
4570
  # is contrary to our usage.  Disable this feature.
3598
4571
  alias -g '${1+"$@"}'='"$@"'
3599
 
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
3600
 
  set -o posix
3601
 
fi
3602
 
DUALCASE=1; export DUALCASE # for MKS sh
3603
 
 
3604
 
# Support unset when possible.
3605
 
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3606
 
  as_unset=unset
3607
 
else
3608
 
  as_unset=false
3609
 
fi
3610
 
 
3611
 
 
3612
 
# Work around bugs in pre-3.0 UWIN ksh.
3613
 
$as_unset ENV MAIL MAILPATH
 
4572
  setopt NO_GLOB_SUBST
 
4573
else
 
4574
  case `(set -o) 2>/dev/null` in #(
 
4575
  *posix*) :
 
4576
    set -o posix ;; #(
 
4577
  *) :
 
4578
     ;;
 
4579
esac
 
4580
fi
 
4581
 
 
4582
 
 
4583
as_nl='
 
4584
'
 
4585
export as_nl
 
4586
# Printing a long string crashes Solaris 7 /usr/bin/printf.
 
4587
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
4588
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
 
4589
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
 
4590
# Prefer a ksh shell builtin over an external printf program on Solaris,
 
4591
# but without wasting forks for bash or zsh.
 
4592
if test -z "$BASH_VERSION$ZSH_VERSION" \
 
4593
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
 
4594
  as_echo='print -r --'
 
4595
  as_echo_n='print -rn --'
 
4596
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
 
4597
  as_echo='printf %s\n'
 
4598
  as_echo_n='printf %s'
 
4599
else
 
4600
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
 
4601
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
 
4602
    as_echo_n='/usr/ucb/echo -n'
 
4603
  else
 
4604
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
 
4605
    as_echo_n_body='eval
 
4606
      arg=$1;
 
4607
      case $arg in #(
 
4608
      *"$as_nl"*)
 
4609
        expr "X$arg" : "X\\(.*\\)$as_nl";
 
4610
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
 
4611
      esac;
 
4612
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
 
4613
    '
 
4614
    export as_echo_n_body
 
4615
    as_echo_n='sh -c $as_echo_n_body as_echo'
 
4616
  fi
 
4617
  export as_echo_body
 
4618
  as_echo='sh -c $as_echo_body as_echo'
 
4619
fi
 
4620
 
 
4621
# The user is always right.
 
4622
if test "${PATH_SEPARATOR+set}" != set; then
 
4623
  PATH_SEPARATOR=:
 
4624
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
 
4625
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
 
4626
      PATH_SEPARATOR=';'
 
4627
  }
 
4628
fi
 
4629
 
 
4630
 
 
4631
# IFS
 
4632
# We need space, tab and new line, in precisely that order.  Quoting is
 
4633
# there to prevent editors from complaining about space-tab.
 
4634
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
4635
# splitting by setting IFS to empty value.)
 
4636
IFS=" ""        $as_nl"
 
4637
 
 
4638
# Find who we are.  Look in the path if we contain no directory separator.
 
4639
case $0 in #((
 
4640
  *[\\/]* ) as_myself=$0 ;;
 
4641
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4642
for as_dir in $PATH
 
4643
do
 
4644
  IFS=$as_save_IFS
 
4645
  test -z "$as_dir" && as_dir=.
 
4646
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
4647
  done
 
4648
IFS=$as_save_IFS
 
4649
 
 
4650
     ;;
 
4651
esac
 
4652
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
4653
# in which case we are not to be found in the path.
 
4654
if test "x$as_myself" = x; then
 
4655
  as_myself=$0
 
4656
fi
 
4657
if test ! -f "$as_myself"; then
 
4658
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
4659
  exit 1
 
4660
fi
 
4661
 
 
4662
# Unset variables that we do not need and which cause bugs (e.g. in
 
4663
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
 
4664
# suppresses any "Segmentation fault" message there.  '((' could
 
4665
# trigger a bug in pdksh 5.2.14.
 
4666
for as_var in BASH_ENV ENV MAIL MAILPATH
 
4667
do eval test x\${$as_var+set} = xset \
 
4668
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
 
4669
done
3614
4670
PS1='$ '
3615
4671
PS2='> '
3616
4672
PS4='+ '
3617
4673
 
3618
4674
# NLS nuisances.
3619
 
for as_var in \
3620
 
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
3621
 
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
3622
 
  LC_TELEPHONE LC_TIME
3623
 
do
3624
 
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
3625
 
    eval $as_var=C; export $as_var
3626
 
  else
3627
 
    $as_unset $as_var
 
4675
LC_ALL=C
 
4676
export LC_ALL
 
4677
LANGUAGE=C
 
4678
export LANGUAGE
 
4679
 
 
4680
# CDPATH.
 
4681
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
4682
 
 
4683
 
 
4684
# as_fn_error ERROR [LINENO LOG_FD]
 
4685
# ---------------------------------
 
4686
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
 
4687
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
 
4688
# script with status $?, using 1 if that was 0.
 
4689
as_fn_error ()
 
4690
{
 
4691
  as_status=$?; test $as_status -eq 0 && as_status=1
 
4692
  if test "$3"; then
 
4693
    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
4694
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
3628
4695
  fi
3629
 
done
3630
 
 
3631
 
# Required to use basename.
3632
 
if expr a : '\(a\)' >/dev/null 2>&1; then
 
4696
  $as_echo "$as_me: error: $1" >&2
 
4697
  as_fn_exit $as_status
 
4698
} # as_fn_error
 
4699
 
 
4700
 
 
4701
# as_fn_set_status STATUS
 
4702
# -----------------------
 
4703
# Set $? to STATUS, without forking.
 
4704
as_fn_set_status ()
 
4705
{
 
4706
  return $1
 
4707
} # as_fn_set_status
 
4708
 
 
4709
# as_fn_exit STATUS
 
4710
# -----------------
 
4711
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
 
4712
as_fn_exit ()
 
4713
{
 
4714
  set +e
 
4715
  as_fn_set_status $1
 
4716
  exit $1
 
4717
} # as_fn_exit
 
4718
 
 
4719
# as_fn_unset VAR
 
4720
# ---------------
 
4721
# Portably unset VAR.
 
4722
as_fn_unset ()
 
4723
{
 
4724
  { eval $1=; unset $1;}
 
4725
}
 
4726
as_unset=as_fn_unset
 
4727
# as_fn_append VAR VALUE
 
4728
# ----------------------
 
4729
# Append the text in VALUE to the end of the definition contained in VAR. Take
 
4730
# advantage of any shell optimizations that allow amortized linear growth over
 
4731
# repeated appends, instead of the typical quadratic growth present in naive
 
4732
# implementations.
 
4733
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
 
4734
  eval 'as_fn_append ()
 
4735
  {
 
4736
    eval $1+=\$2
 
4737
  }'
 
4738
else
 
4739
  as_fn_append ()
 
4740
  {
 
4741
    eval $1=\$$1\$2
 
4742
  }
 
4743
fi # as_fn_append
 
4744
 
 
4745
# as_fn_arith ARG...
 
4746
# ------------------
 
4747
# Perform arithmetic evaluation on the ARGs, and store the result in the
 
4748
# global $as_val. Take advantage of shells that can avoid forks. The arguments
 
4749
# must be portable across $(()) and expr.
 
4750
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
 
4751
  eval 'as_fn_arith ()
 
4752
  {
 
4753
    as_val=$(( $* ))
 
4754
  }'
 
4755
else
 
4756
  as_fn_arith ()
 
4757
  {
 
4758
    as_val=`expr "$@" || test $? -eq 1`
 
4759
  }
 
4760
fi # as_fn_arith
 
4761
 
 
4762
 
 
4763
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
4764
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
3633
4765
  as_expr=expr
3634
4766
else
3635
4767
  as_expr=false
3636
4768
fi
3637
4769
 
3638
 
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
4770
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
3639
4771
  as_basename=basename
3640
4772
else
3641
4773
  as_basename=false
3642
4774
fi
3643
4775
 
 
4776
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
4777
  as_dirname=dirname
 
4778
else
 
4779
  as_dirname=false
 
4780
fi
3644
4781
 
3645
 
# Name of the executable.
3646
 
as_me=`$as_basename "$0" ||
 
4782
as_me=`$as_basename -- "$0" ||
3647
4783
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3648
4784
         X"$0" : 'X\(//\)$' \| \
3649
 
         X"$0" : 'X\(/\)$' \| \
3650
 
         .     : '\(.\)' 2>/dev/null ||
3651
 
echo X/"$0" |
3652
 
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
3653
 
          /^X\/\(\/\/\)$/{ s//\1/; q; }
3654
 
          /^X\/\(\/\).*/{ s//\1/; q; }
3655
 
          s/.*/./; q'`
3656
 
 
3657
 
 
3658
 
# PATH needs CR, and LINENO needs CR and PATH.
 
4785
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
4786
$as_echo X/"$0" |
 
4787
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
4788
            s//\1/
 
4789
            q
 
4790
          }
 
4791
          /^X\/\(\/\/\)$/{
 
4792
            s//\1/
 
4793
            q
 
4794
          }
 
4795
          /^X\/\(\/\).*/{
 
4796
            s//\1/
 
4797
            q
 
4798
          }
 
4799
          s/.*/./; q'`
 
4800
 
3659
4801
# Avoid depending upon Character Ranges.
3660
4802
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3661
4803
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3663
4805
as_cr_digits='0123456789'
3664
4806
as_cr_alnum=$as_cr_Letters$as_cr_digits
3665
4807
 
3666
 
# The user is always right.
3667
 
if test "${PATH_SEPARATOR+set}" != set; then
3668
 
  echo "#! /bin/sh" >conf$$.sh
3669
 
  echo  "exit 0"   >>conf$$.sh
3670
 
  chmod +x conf$$.sh
3671
 
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3672
 
    PATH_SEPARATOR=';'
3673
 
  else
3674
 
    PATH_SEPARATOR=:
3675
 
  fi
3676
 
  rm -f conf$$.sh
3677
 
fi
3678
 
 
3679
 
 
3680
 
  as_lineno_1=$LINENO
3681
 
  as_lineno_2=$LINENO
3682
 
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3683
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
3684
 
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
3685
 
  # Find who we are.  Look in the path if we contain no path at all
3686
 
  # relative or not.
3687
 
  case $0 in
3688
 
    *[\\/]* ) as_myself=$0 ;;
3689
 
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3690
 
for as_dir in $PATH
3691
 
do
3692
 
  IFS=$as_save_IFS
3693
 
  test -z "$as_dir" && as_dir=.
3694
 
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3695
 
done
3696
 
 
3697
 
       ;;
3698
 
  esac
3699
 
  # We did not find ourselves, most probably we were run as `sh COMMAND'
3700
 
  # in which case we are not to be found in the path.
3701
 
  if test "x$as_myself" = x; then
3702
 
    as_myself=$0
3703
 
  fi
3704
 
  if test ! -f "$as_myself"; then
3705
 
    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
3706
 
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
3707
 
   { (exit 1); exit 1; }; }
3708
 
  fi
3709
 
  case $CONFIG_SHELL in
3710
 
  '')
3711
 
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3712
 
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
3713
 
do
3714
 
  IFS=$as_save_IFS
3715
 
  test -z "$as_dir" && as_dir=.
3716
 
  for as_base in sh bash ksh sh5; do
3717
 
         case $as_dir in
3718
 
         /*)
3719
 
           if ("$as_dir/$as_base" -c '
3720
 
  as_lineno_1=$LINENO
3721
 
  as_lineno_2=$LINENO
3722
 
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3723
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
3724
 
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
3725
 
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
3726
 
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
3727
 
             CONFIG_SHELL=$as_dir/$as_base
3728
 
             export CONFIG_SHELL
3729
 
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
3730
 
           fi;;
3731
 
         esac
3732
 
       done
3733
 
done
3734
 
;;
3735
 
  esac
3736
 
 
3737
 
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
3738
 
  # uniformly replaced by the line number.  The first 'sed' inserts a
3739
 
  # line-number line before each line; the second 'sed' does the real
3740
 
  # work.  The second script uses 'N' to pair each line-number line
3741
 
  # with the numbered line, and appends trailing '-' during
3742
 
  # substitution so that $LINENO is not a special case at line end.
3743
 
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
3744
 
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
3745
 
  sed '=' <$as_myself |
3746
 
    sed '
3747
 
      N
3748
 
      s,$,-,
3749
 
      : loop
3750
 
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
3751
 
      t loop
3752
 
      s,-$,,
3753
 
      s,^['$as_cr_digits']*\n,,
3754
 
    ' >$as_me.lineno &&
3755
 
  chmod +x $as_me.lineno ||
3756
 
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
3757
 
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
3758
 
   { (exit 1); exit 1; }; }
3759
 
 
3760
 
  # Don't try to exec as it changes $[0], causing all sort of problems
3761
 
  # (the dirname of $[0] is not the place where we might find the
3762
 
  # original and so on.  Autoconf is especially sensible to this).
3763
 
  . ./$as_me.lineno
3764
 
  # Exit status is that of the last command.
3765
 
  exit
3766
 
}
3767
 
 
3768
 
 
3769
 
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
3770
 
  *c*,-n*) ECHO_N= ECHO_C='
3771
 
' ECHO_T='      ' ;;
3772
 
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
3773
 
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
4808
ECHO_C= ECHO_N= ECHO_T=
 
4809
case `echo -n x` in #(((((
 
4810
-n*)
 
4811
  case `echo 'xy\c'` in
 
4812
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
4813
  xy)  ECHO_C='\c';;
 
4814
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
 
4815
       ECHO_T=' ';;
 
4816
  esac;;
 
4817
*)
 
4818
  ECHO_N='-n';;
3774
4819
esac
3775
4820
 
3776
 
if expr a : '\(a\)' >/dev/null 2>&1; then
3777
 
  as_expr=expr
 
4821
rm -f conf$$ conf$$.exe conf$$.file
 
4822
if test -d conf$$.dir; then
 
4823
  rm -f conf$$.dir/conf$$.file
3778
4824
else
3779
 
  as_expr=false
 
4825
  rm -f conf$$.dir
 
4826
  mkdir conf$$.dir 2>/dev/null
3780
4827
fi
3781
 
 
3782
 
rm -f conf$$ conf$$.exe conf$$.file
3783
 
echo >conf$$.file
3784
 
if ln -s conf$$.file conf$$ 2>/dev/null; then
3785
 
  # We could just check for DJGPP; but this test a) works b) is more generic
3786
 
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
3787
 
  if test -f conf$$.exe; then
3788
 
    # Don't use ln at all; we don't have any links
 
4828
if (echo >conf$$.file) 2>/dev/null; then
 
4829
  if ln -s conf$$.file conf$$ 2>/dev/null; then
 
4830
    as_ln_s='ln -s'
 
4831
    # ... but there are two gotchas:
 
4832
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
4833
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
4834
    # In both cases, we have to default to `cp -p'.
 
4835
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
4836
      as_ln_s='cp -p'
 
4837
  elif ln conf$$.file conf$$ 2>/dev/null; then
 
4838
    as_ln_s=ln
 
4839
  else
3789
4840
    as_ln_s='cp -p'
3790
 
  else
3791
 
    as_ln_s='ln -s'
3792
4841
  fi
3793
 
elif ln conf$$.file conf$$ 2>/dev/null; then
3794
 
  as_ln_s=ln
3795
4842
else
3796
4843
  as_ln_s='cp -p'
3797
4844
fi
3798
 
rm -f conf$$ conf$$.exe conf$$.file
3799
 
 
 
4845
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
4846
rmdir conf$$.dir 2>/dev/null
 
4847
 
 
4848
 
 
4849
# as_fn_mkdir_p
 
4850
# -------------
 
4851
# Create "$as_dir" as a directory, including parents if necessary.
 
4852
as_fn_mkdir_p ()
 
4853
{
 
4854
 
 
4855
  case $as_dir in #(
 
4856
  -*) as_dir=./$as_dir;;
 
4857
  esac
 
4858
  test -d "$as_dir" || eval $as_mkdir_p || {
 
4859
    as_dirs=
 
4860
    while :; do
 
4861
      case $as_dir in #(
 
4862
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 
4863
      *) as_qdir=$as_dir;;
 
4864
      esac
 
4865
      as_dirs="'$as_qdir' $as_dirs"
 
4866
      as_dir=`$as_dirname -- "$as_dir" ||
 
4867
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
4868
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
4869
         X"$as_dir" : 'X\(//\)$' \| \
 
4870
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
4871
$as_echo X"$as_dir" |
 
4872
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
4873
            s//\1/
 
4874
            q
 
4875
          }
 
4876
          /^X\(\/\/\)[^/].*/{
 
4877
            s//\1/
 
4878
            q
 
4879
          }
 
4880
          /^X\(\/\/\)$/{
 
4881
            s//\1/
 
4882
            q
 
4883
          }
 
4884
          /^X\(\/\).*/{
 
4885
            s//\1/
 
4886
            q
 
4887
          }
 
4888
          s/.*/./; q'`
 
4889
      test -d "$as_dir" && break
 
4890
    done
 
4891
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
4892
  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
 
4893
 
 
4894
 
 
4895
} # as_fn_mkdir_p
3800
4896
if mkdir -p . 2>/dev/null; then
3801
 
  as_mkdir_p=:
 
4897
  as_mkdir_p='mkdir -p "$as_dir"'
3802
4898
else
3803
4899
  test -d ./-p && rmdir ./-p
3804
4900
  as_mkdir_p=false
3805
4901
fi
3806
4902
 
3807
 
as_executable_p="test -f"
 
4903
if test -x / >/dev/null 2>&1; then
 
4904
  as_test_x='test -x'
 
4905
else
 
4906
  if ls -dL / >/dev/null 2>&1; then
 
4907
    as_ls_L_option=L
 
4908
  else
 
4909
    as_ls_L_option=
 
4910
  fi
 
4911
  as_test_x='
 
4912
    eval sh -c '\''
 
4913
      if test -d "$1"; then
 
4914
        test -d "$1/.";
 
4915
      else
 
4916
        case $1 in #(
 
4917
        -*)set "./$1";;
 
4918
        esac;
 
4919
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
 
4920
        ???[sx]*):;;*)false;;esac;fi
 
4921
    '\'' sh
 
4922
  '
 
4923
fi
 
4924
as_executable_p=$as_test_x
3808
4925
 
3809
4926
# Sed expression to map a string onto a valid CPP name.
3810
4927
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
3813
4930
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
3814
4931
 
3815
4932
 
3816
 
# IFS
3817
 
# We need space, tab and new line, in precisely that order.
3818
 
as_nl='
3819
 
'
3820
 
IFS="   $as_nl"
3821
 
 
3822
 
# CDPATH.
3823
 
$as_unset CDPATH
3824
 
 
3825
4933
exec 6>&1
 
4934
## ----------------------------------- ##
 
4935
## Main body of $CONFIG_STATUS script. ##
 
4936
## ----------------------------------- ##
 
4937
_ASEOF
 
4938
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
3826
4939
 
3827
 
# Open the log real soon, to keep \$[0] and so on meaningful, and to
 
4940
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
4941
# Save the log message, to keep $0 and so on meaningful, and to
3828
4942
# report actual input values of CONFIG_FILES etc. instead of their
3829
 
# values after options handling.  Logging --version etc. is OK.
3830
 
exec 5>>config.log
3831
 
{
3832
 
  echo
3833
 
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
3834
 
## Running $as_me. ##
3835
 
_ASBOX
3836
 
} >&5
3837
 
cat >&5 <<_CSEOF
3838
 
 
 
4943
# values after options handling.
 
4944
ac_log="
3839
4945
This file was extended by $as_me, which was
3840
 
generated by GNU Autoconf 2.59.  Invocation command line was
 
4946
generated by GNU Autoconf 2.65.  Invocation command line was
3841
4947
 
3842
4948
  CONFIG_FILES    = $CONFIG_FILES
3843
4949
  CONFIG_HEADERS  = $CONFIG_HEADERS
3845
4951
  CONFIG_COMMANDS = $CONFIG_COMMANDS
3846
4952
  $ $0 $@
3847
4953
 
3848
 
_CSEOF
3849
 
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
3850
 
echo >&5
 
4954
on `(hostname || uname -n) 2>/dev/null | sed 1q`
 
4955
"
 
4956
 
3851
4957
_ACEOF
3852
4958
 
 
4959
case $ac_config_files in *"
 
4960
"*) set x $ac_config_files; shift; ac_config_files=$*;;
 
4961
esac
 
4962
 
 
4963
case $ac_config_headers in *"
 
4964
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
 
4965
esac
 
4966
 
 
4967
 
 
4968
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3853
4969
# Files that config.status was made for.
3854
 
if test -n "$ac_config_files"; then
3855
 
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
3856
 
fi
3857
 
 
3858
 
if test -n "$ac_config_headers"; then
3859
 
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
3860
 
fi
3861
 
 
3862
 
if test -n "$ac_config_links"; then
3863
 
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
3864
 
fi
3865
 
 
3866
 
if test -n "$ac_config_commands"; then
3867
 
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
3868
 
fi
3869
 
 
3870
 
cat >>$CONFIG_STATUS <<\_ACEOF
3871
 
 
 
4970
config_files="$ac_config_files"
 
4971
config_headers="$ac_config_headers"
 
4972
 
 
4973
_ACEOF
 
4974
 
 
4975
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3872
4976
ac_cs_usage="\
3873
 
\`$as_me' instantiates files from templates according to the
3874
 
current configuration.
 
4977
\`$as_me' instantiates files and other configuration actions
 
4978
from templates according to the current configuration.  Unless the files
 
4979
and actions are specified as TAGs, all are instantiated by default.
3875
4980
 
3876
 
Usage: $0 [OPTIONS] [FILE]...
 
4981
Usage: $0 [OPTION]... [TAG]...
3877
4982
 
3878
4983
  -h, --help       print this help, then exit
3879
 
  -V, --version    print version number, then exit
3880
 
  -q, --quiet      do not print progress messages
 
4984
  -V, --version    print version number and configuration settings, then exit
 
4985
      --config     print configuration, then exit
 
4986
  -q, --quiet, --silent
 
4987
                   do not print progress messages
3881
4988
  -d, --debug      don't remove temporary files
3882
4989
      --recheck    update $as_me by reconfiguring in the same conditions
3883
 
  --file=FILE[:TEMPLATE]
3884
 
                   instantiate the configuration file FILE
3885
 
  --header=FILE[:TEMPLATE]
3886
 
                   instantiate the configuration header FILE
 
4990
      --file=FILE[:TEMPLATE]
 
4991
                   instantiate the configuration file FILE
 
4992
      --header=FILE[:TEMPLATE]
 
4993
                   instantiate the configuration header FILE
3887
4994
 
3888
4995
Configuration files:
3889
4996
$config_files
3891
4998
Configuration headers:
3892
4999
$config_headers
3893
5000
 
3894
 
Report bugs to <bug-autoconf@gnu.org>."
 
5001
Report bugs to the package provider."
 
5002
 
3895
5003
_ACEOF
3896
 
 
3897
 
cat >>$CONFIG_STATUS <<_ACEOF
 
5004
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
5005
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
3898
5006
ac_cs_version="\\
3899
5007
config.status
3900
 
configured by $0, generated by GNU Autoconf 2.59,
3901
 
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
 
5008
configured by $0, generated by GNU Autoconf 2.65,
 
5009
  with options \\"\$ac_cs_config\\"
3902
5010
 
3903
 
Copyright (C) 2003 Free Software Foundation, Inc.
 
5011
Copyright (C) 2009 Free Software Foundation, Inc.
3904
5012
This config.status script is free software; the Free Software Foundation
3905
5013
gives unlimited permission to copy, distribute and modify it."
3906
 
srcdir=$srcdir
3907
 
INSTALL="$INSTALL"
 
5014
 
 
5015
ac_pwd='$ac_pwd'
 
5016
srcdir='$srcdir'
 
5017
INSTALL='$INSTALL'
 
5018
test -n "\$AWK" || AWK=awk
3908
5019
_ACEOF
3909
5020
 
3910
 
cat >>$CONFIG_STATUS <<\_ACEOF
3911
 
# If no file are specified by the user, then we need to provide default
3912
 
# value.  By we need to know if files were specified by the user.
 
5021
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
5022
# The default lists apply if the user does not specify any file.
3913
5023
ac_need_defaults=:
3914
5024
while test $# != 0
3915
5025
do
3916
5026
  case $1 in
3917
5027
  --*=*)
3918
 
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
3919
 
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
 
5028
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
 
5029
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
3920
5030
    ac_shift=:
3921
5031
    ;;
3922
 
  -*)
 
5032
  *)
3923
5033
    ac_option=$1
3924
5034
    ac_optarg=$2
3925
5035
    ac_shift=shift
3926
5036
    ;;
3927
 
  *) # This is not an option, so the user has probably given explicit
3928
 
     # arguments.
3929
 
     ac_option=$1
3930
 
     ac_need_defaults=false;;
3931
5037
  esac
3932
5038
 
3933
5039
  case $ac_option in
3934
5040
  # Handling of the options.
3935
 
_ACEOF
3936
 
cat >>$CONFIG_STATUS <<\_ACEOF
3937
5041
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3938
5042
    ac_cs_recheck=: ;;
3939
 
  --version | --vers* | -V )
3940
 
    echo "$ac_cs_version"; exit 0 ;;
 
5043
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
 
5044
    $as_echo "$ac_cs_version"; exit ;;
 
5045
  --config | --confi | --conf | --con | --co | --c )
 
5046
    $as_echo "$ac_cs_config"; exit ;;
 
5047
  --debug | --debu | --deb | --de | --d | -d )
 
5048
    debug=: ;;
 
5049
  --file | --fil | --fi | --f )
 
5050
    $ac_shift
 
5051
    case $ac_optarg in
 
5052
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
5053
    esac
 
5054
    as_fn_append CONFIG_FILES " '$ac_optarg'"
 
5055
    ac_need_defaults=false;;
 
5056
  --header | --heade | --head | --hea )
 
5057
    $ac_shift
 
5058
    case $ac_optarg in
 
5059
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
5060
    esac
 
5061
    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
 
5062
    ac_need_defaults=false;;
3941
5063
  --he | --h)
3942
5064
    # Conflict between --help and --header
3943
 
    { { echo "$as_me:$LINENO: error: ambiguous option: $1
3944
 
Try \`$0 --help' for more information." >&5
3945
 
echo "$as_me: error: ambiguous option: $1
3946
 
Try \`$0 --help' for more information." >&2;}
3947
 
   { (exit 1); exit 1; }; };;
 
5065
    as_fn_error "ambiguous option: \`$1'
 
5066
Try \`$0 --help' for more information.";;
3948
5067
  --help | --hel | -h )
3949
 
    echo "$ac_cs_usage"; exit 0 ;;
3950
 
  --debug | --d* | -d )
3951
 
    debug=: ;;
3952
 
  --file | --fil | --fi | --f )
3953
 
    $ac_shift
3954
 
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
3955
 
    ac_need_defaults=false;;
3956
 
  --header | --heade | --head | --hea )
3957
 
    $ac_shift
3958
 
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
3959
 
    ac_need_defaults=false;;
 
5068
    $as_echo "$ac_cs_usage"; exit ;;
3960
5069
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3961
5070
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
3962
5071
    ac_cs_silent=: ;;
3963
5072
 
3964
5073
  # This is an error.
3965
 
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
3966
 
Try \`$0 --help' for more information." >&5
3967
 
echo "$as_me: error: unrecognized option: $1
3968
 
Try \`$0 --help' for more information." >&2;}
3969
 
   { (exit 1); exit 1; }; } ;;
 
5074
  -*) as_fn_error "unrecognized option: \`$1'
 
5075
Try \`$0 --help' for more information." ;;
3970
5076
 
3971
 
  *) ac_config_targets="$ac_config_targets $1" ;;
 
5077
  *) as_fn_append ac_config_targets " $1"
 
5078
     ac_need_defaults=false ;;
3972
5079
 
3973
5080
  esac
3974
5081
  shift
3982
5089
fi
3983
5090
 
3984
5091
_ACEOF
3985
 
cat >>$CONFIG_STATUS <<_ACEOF
 
5092
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3986
5093
if \$ac_cs_recheck; then
3987
 
  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
3988
 
  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
5094
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
5095
  shift
 
5096
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
 
5097
  CONFIG_SHELL='$SHELL'
 
5098
  export CONFIG_SHELL
 
5099
  exec "\$@"
3989
5100
fi
3990
5101
 
3991
5102
_ACEOF
3992
 
 
3993
 
 
3994
 
 
3995
 
 
3996
 
 
3997
 
cat >>$CONFIG_STATUS <<\_ACEOF
 
5103
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
5104
exec 5>>config.log
 
5105
{
 
5106
  echo
 
5107
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
5108
## Running $as_me. ##
 
5109
_ASBOX
 
5110
  $as_echo "$ac_log"
 
5111
} >&5
 
5112
 
 
5113
_ACEOF
 
5114
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
5115
_ACEOF
 
5116
 
 
5117
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
5118
 
 
5119
# Handling of arguments.
3998
5120
for ac_config_target in $ac_config_targets
3999
5121
do
4000
 
  case "$ac_config_target" in
4001
 
  # Handling of arguments.
4002
 
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4003
 
  "mxml.list" ) CONFIG_FILES="$CONFIG_FILES mxml.list" ;;
4004
 
  "mxml.pc" ) CONFIG_FILES="$CONFIG_FILES mxml.pc" ;;
4005
 
  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
4006
 
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
4007
 
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4008
 
   { (exit 1); exit 1; }; };;
 
5122
  case $ac_config_target in
 
5123
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
 
5124
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
5125
    "mxml.list") CONFIG_FILES="$CONFIG_FILES mxml.list" ;;
 
5126
    "mxml.pc") CONFIG_FILES="$CONFIG_FILES mxml.pc" ;;
 
5127
 
 
5128
  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
4009
5129
  esac
4010
5130
done
4011
5131
 
 
5132
 
4012
5133
# If the user did not use the arguments to specify the items to instantiate,
4013
5134
# then the envvar interface is used.  Set only those that are not.
4014
5135
# We use the long form for the default assignment because of an extremely
4019
5140
fi
4020
5141
 
4021
5142
# Have a temporary directory for convenience.  Make it in the build tree
4022
 
# simply because there is no reason to put it here, and in addition,
 
5143
# simply because there is no reason against having it here, and in addition,
4023
5144
# creating and moving files from /tmp can sometimes cause problems.
4024
 
# Create a temporary directory, and hook for its removal unless debugging.
 
5145
# Hook for its removal unless debugging.
 
5146
# Note that there is a small window in which the directory will not be cleaned:
 
5147
# after its creation but before its name has been assigned to `$tmp'.
4025
5148
$debug ||
4026
5149
{
4027
 
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4028
 
  trap '{ (exit 1); exit 1; }' 1 2 13 15
 
5150
  tmp=
 
5151
  trap 'exit_status=$?
 
5152
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
 
5153
' 0
 
5154
  trap 'as_fn_exit 1' 1 2 13 15
4029
5155
}
4030
 
 
4031
5156
# Create a (secure) tmp directory for tmp files.
4032
5157
 
4033
5158
{
4034
 
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
 
5159
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
4035
5160
  test -n "$tmp" && test -d "$tmp"
4036
5161
}  ||
4037
5162
{
4038
 
  tmp=./confstat$$-$RANDOM
4039
 
  (umask 077 && mkdir $tmp)
4040
 
} ||
 
5163
  tmp=./conf$$-$RANDOM
 
5164
  (umask 077 && mkdir "$tmp")
 
5165
} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
 
5166
 
 
5167
# Set up the scripts for CONFIG_FILES section.
 
5168
# No need to generate them if there are no CONFIG_FILES.
 
5169
# This happens for instance with `./config.status config.h'.
 
5170
if test -n "$CONFIG_FILES"; then
 
5171
 
 
5172
 
 
5173
ac_cr=`echo X | tr X '\015'`
 
5174
# On cygwin, bash can eat \r inside `` if the user requested igncr.
 
5175
# But we know of no other shell where ac_cr would be empty at this
 
5176
# point, so we can use a bashism as a fallback.
 
5177
if test "x$ac_cr" = x; then
 
5178
  eval ac_cr=\$\'\\r\'
 
5179
fi
 
5180
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
 
5181
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
 
5182
  ac_cs_awk_cr='\r'
 
5183
else
 
5184
  ac_cs_awk_cr=$ac_cr
 
5185
fi
 
5186
 
 
5187
echo 'BEGIN {' >"$tmp/subs1.awk" &&
 
5188
_ACEOF
 
5189
 
 
5190
 
4041
5191
{
4042
 
   echo "$me: cannot create a temporary directory in ." >&2
4043
 
   { (exit 1); exit 1; }
4044
 
}
4045
 
 
4046
 
_ACEOF
4047
 
 
4048
 
cat >>$CONFIG_STATUS <<_ACEOF
4049
 
 
4050
 
#
4051
 
# CONFIG_FILES section.
4052
 
#
4053
 
 
4054
 
# No need to generate the scripts if there are no CONFIG_FILES.
4055
 
# This happens for instance when ./config.status config.h
4056
 
if test -n "\$CONFIG_FILES"; then
4057
 
  # Protect against being on the right side of a sed subst in config.status.
4058
 
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
4059
 
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
4060
 
s,@SHELL@,$SHELL,;t t
4061
 
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
4062
 
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
4063
 
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
4064
 
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
4065
 
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
4066
 
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
4067
 
s,@exec_prefix@,$exec_prefix,;t t
4068
 
s,@prefix@,$prefix,;t t
4069
 
s,@program_transform_name@,$program_transform_name,;t t
4070
 
s,@bindir@,$bindir,;t t
4071
 
s,@sbindir@,$sbindir,;t t
4072
 
s,@libexecdir@,$libexecdir,;t t
4073
 
s,@datadir@,$datadir,;t t
4074
 
s,@sysconfdir@,$sysconfdir,;t t
4075
 
s,@sharedstatedir@,$sharedstatedir,;t t
4076
 
s,@localstatedir@,$localstatedir,;t t
4077
 
s,@libdir@,$libdir,;t t
4078
 
s,@includedir@,$includedir,;t t
4079
 
s,@oldincludedir@,$oldincludedir,;t t
4080
 
s,@infodir@,$infodir,;t t
4081
 
s,@mandir@,$mandir,;t t
4082
 
s,@build_alias@,$build_alias,;t t
4083
 
s,@host_alias@,$host_alias,;t t
4084
 
s,@target_alias@,$target_alias,;t t
4085
 
s,@DEFS@,$DEFS,;t t
4086
 
s,@ECHO_C@,$ECHO_C,;t t
4087
 
s,@ECHO_N@,$ECHO_N,;t t
4088
 
s,@ECHO_T@,$ECHO_T,;t t
4089
 
s,@LIBS@,$LIBS,;t t
4090
 
s,@VERSION@,$VERSION,;t t
4091
 
s,@LDFLAGS@,$LDFLAGS,;t t
4092
 
s,@OPTIM@,$OPTIM,;t t
4093
 
s,@docdir@,$docdir,;t t
4094
 
s,@CC@,$CC,;t t
4095
 
s,@CFLAGS@,$CFLAGS,;t t
4096
 
s,@CPPFLAGS@,$CPPFLAGS,;t t
4097
 
s,@ac_ct_CC@,$ac_ct_CC,;t t
4098
 
s,@EXEEXT@,$EXEEXT,;t t
4099
 
s,@OBJEXT@,$OBJEXT,;t t
4100
 
s,@CXX@,$CXX,;t t
4101
 
s,@CXXFLAGS@,$CXXFLAGS,;t t
4102
 
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
4103
 
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
4104
 
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
4105
 
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
4106
 
s,@RANLIB@,$RANLIB,;t t
4107
 
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
4108
 
s,@AR@,$AR,;t t
4109
 
s,@CP@,$CP,;t t
4110
 
s,@LN@,$LN,;t t
4111
 
s,@MKDIR@,$MKDIR,;t t
4112
 
s,@NROFF@,$NROFF,;t t
4113
 
s,@GROFF@,$GROFF,;t t
4114
 
s,@RM@,$RM,;t t
4115
 
s,@ARFLAGS@,$ARFLAGS,;t t
4116
 
s,@DSO@,$DSO,;t t
4117
 
s,@DSOFLAGS@,$DSOFLAGS,;t t
4118
 
s,@LIBMXML@,$LIBMXML,;t t
4119
 
s,@PICFLAG@,$PICFLAG,;t t
4120
 
s,@CAT1EXT@,$CAT1EXT,;t t
4121
 
s,@CAT3EXT@,$CAT3EXT,;t t
4122
 
s,@MAN1EXT@,$MAN1EXT,;t t
4123
 
s,@MAN3EXT@,$MAN3EXT,;t t
4124
 
s,@PC_CFLAGS@,$PC_CFLAGS,;t t
4125
 
s,@PC_LIBS@,$PC_LIBS,;t t
4126
 
s,@LIBOBJS@,$LIBOBJS,;t t
4127
 
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
4128
 
CEOF
4129
 
 
4130
 
_ACEOF
4131
 
 
4132
 
  cat >>$CONFIG_STATUS <<\_ACEOF
4133
 
  # Split the substitutions into bite-sized pieces for seds with
4134
 
  # small command number limits, like on Digital OSF/1 and HP-UX.
4135
 
  ac_max_sed_lines=48
4136
 
  ac_sed_frag=1 # Number of current file.
4137
 
  ac_beg=1 # First line for current file.
4138
 
  ac_end=$ac_max_sed_lines # Line after last line for current file.
4139
 
  ac_more_lines=:
4140
 
  ac_sed_cmds=
4141
 
  while $ac_more_lines; do
4142
 
    if test $ac_beg -gt 1; then
4143
 
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4144
 
    else
4145
 
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4146
 
    fi
4147
 
    if test ! -s $tmp/subs.frag; then
4148
 
      ac_more_lines=false
4149
 
    else
4150
 
      # The purpose of the label and of the branching condition is to
4151
 
      # speed up the sed processing (if there are no `@' at all, there
4152
 
      # is no need to browse any of the substitutions).
4153
 
      # These are the two extra sed commands mentioned above.
4154
 
      (echo ':t
4155
 
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
4156
 
      if test -z "$ac_sed_cmds"; then
4157
 
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
4158
 
      else
4159
 
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
4160
 
      fi
4161
 
      ac_sed_frag=`expr $ac_sed_frag + 1`
4162
 
      ac_beg=$ac_end
4163
 
      ac_end=`expr $ac_end + $ac_max_sed_lines`
4164
 
    fi
4165
 
  done
4166
 
  if test -z "$ac_sed_cmds"; then
4167
 
    ac_sed_cmds=cat
 
5192
  echo "cat >conf$$subs.awk <<_ACEOF" &&
 
5193
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
 
5194
  echo "_ACEOF"
 
5195
} >conf$$subs.sh ||
 
5196
  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
 
5197
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
 
5198
ac_delim='%!_!# '
 
5199
for ac_last_try in false false false false false :; do
 
5200
  . ./conf$$subs.sh ||
 
5201
    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
 
5202
 
 
5203
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
 
5204
  if test $ac_delim_n = $ac_delim_num; then
 
5205
    break
 
5206
  elif $ac_last_try; then
 
5207
    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
 
5208
  else
 
5209
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
4168
5210
  fi
 
5211
done
 
5212
rm -f conf$$subs.sh
 
5213
 
 
5214
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
5215
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
 
5216
_ACEOF
 
5217
sed -n '
 
5218
h
 
5219
s/^/S["/; s/!.*/"]=/
 
5220
p
 
5221
g
 
5222
s/^[^!]*!//
 
5223
:repl
 
5224
t repl
 
5225
s/'"$ac_delim"'$//
 
5226
t delim
 
5227
:nl
 
5228
h
 
5229
s/\(.\{148\}\)..*/\1/
 
5230
t more1
 
5231
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
 
5232
p
 
5233
n
 
5234
b repl
 
5235
:more1
 
5236
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 
5237
p
 
5238
g
 
5239
s/.\{148\}//
 
5240
t nl
 
5241
:delim
 
5242
h
 
5243
s/\(.\{148\}\)..*/\1/
 
5244
t more2
 
5245
s/["\\]/\\&/g; s/^/"/; s/$/"/
 
5246
p
 
5247
b
 
5248
:more2
 
5249
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 
5250
p
 
5251
g
 
5252
s/.\{148\}//
 
5253
t delim
 
5254
' <conf$$subs.awk | sed '
 
5255
/^[^""]/{
 
5256
  N
 
5257
  s/\n//
 
5258
}
 
5259
' >>$CONFIG_STATUS || ac_write_fail=1
 
5260
rm -f conf$$subs.awk
 
5261
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
5262
_ACAWK
 
5263
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
 
5264
  for (key in S) S_is_set[key] = 1
 
5265
  FS = ""
 
5266
 
 
5267
}
 
5268
{
 
5269
  line = $ 0
 
5270
  nfields = split(line, field, "@")
 
5271
  substed = 0
 
5272
  len = length(field[1])
 
5273
  for (i = 2; i < nfields; i++) {
 
5274
    key = field[i]
 
5275
    keylen = length(key)
 
5276
    if (S_is_set[key]) {
 
5277
      value = S[key]
 
5278
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
 
5279
      len += length(value) + length(field[++i])
 
5280
      substed = 1
 
5281
    } else
 
5282
      len += 1 + keylen
 
5283
  }
 
5284
 
 
5285
  print line
 
5286
}
 
5287
 
 
5288
_ACAWK
 
5289
_ACEOF
 
5290
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
5291
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
 
5292
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
 
5293
else
 
5294
  cat
 
5295
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
 
5296
  || as_fn_error "could not setup config files machinery" "$LINENO" 5
 
5297
_ACEOF
 
5298
 
 
5299
# VPATH may cause trouble with some makes, so we remove $(srcdir),
 
5300
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 
5301
# trailing colons and then remove the whole line if VPATH becomes empty
 
5302
# (actually we leave an empty line to preserve line numbers).
 
5303
if test "x$srcdir" = x.; then
 
5304
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
 
5305
s/:*\$(srcdir):*/:/
 
5306
s/:*\${srcdir}:*/:/
 
5307
s/:*@srcdir@:*/:/
 
5308
s/^\([^=]*=[     ]*\):*/\1/
 
5309
s/:*$//
 
5310
s/^[^=]*=[       ]*$//
 
5311
}'
 
5312
fi
 
5313
 
 
5314
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4169
5315
fi # test -n "$CONFIG_FILES"
4170
5316
 
4171
 
_ACEOF
4172
 
cat >>$CONFIG_STATUS <<\_ACEOF
4173
 
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
4174
 
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4175
 
  case $ac_file in
4176
 
  - | *:- | *:-:* ) # input from stdin
4177
 
        cat >$tmp/stdin
4178
 
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4179
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4180
 
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4181
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4182
 
  * )   ac_file_in=$ac_file.in ;;
4183
 
  esac
4184
 
 
4185
 
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
4186
 
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
5317
# Set up the scripts for CONFIG_HEADERS section.
 
5318
# No need to generate them if there are no CONFIG_HEADERS.
 
5319
# This happens for instance with `./config.status Makefile'.
 
5320
if test -n "$CONFIG_HEADERS"; then
 
5321
cat >"$tmp/defines.awk" <<\_ACAWK ||
 
5322
BEGIN {
 
5323
_ACEOF
 
5324
 
 
5325
# Transform confdefs.h into an awk script `defines.awk', embedded as
 
5326
# here-document in config.status, that substitutes the proper values into
 
5327
# config.h.in to produce config.h.
 
5328
 
 
5329
# Create a delimiter string that does not exist in confdefs.h, to ease
 
5330
# handling of long lines.
 
5331
ac_delim='%!_!# '
 
5332
for ac_last_try in false false :; do
 
5333
  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
 
5334
  if test -z "$ac_t"; then
 
5335
    break
 
5336
  elif $ac_last_try; then
 
5337
    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
 
5338
  else
 
5339
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
5340
  fi
 
5341
done
 
5342
 
 
5343
# For the awk script, D is an array of macro values keyed by name,
 
5344
# likewise P contains macro parameters if any.  Preserve backslash
 
5345
# newline sequences.
 
5346
 
 
5347
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
 
5348
sed -n '
 
5349
s/.\{148\}/&'"$ac_delim"'/g
 
5350
t rset
 
5351
:rset
 
5352
s/^[     ]*#[    ]*define[       ][      ]*/ /
 
5353
t def
 
5354
d
 
5355
:def
 
5356
s/\\$//
 
5357
t bsnl
 
5358
s/["\\]/\\&/g
 
5359
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
 
5360
D["\1"]=" \3"/p
 
5361
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
 
5362
d
 
5363
:bsnl
 
5364
s/["\\]/\\&/g
 
5365
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
 
5366
D["\1"]=" \3\\\\\\n"\\/p
 
5367
t cont
 
5368
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
 
5369
t cont
 
5370
d
 
5371
:cont
 
5372
n
 
5373
s/.\{148\}/&'"$ac_delim"'/g
 
5374
t clear
 
5375
:clear
 
5376
s/\\$//
 
5377
t bsnlc
 
5378
s/["\\]/\\&/g; s/^/"/; s/$/"/p
 
5379
d
 
5380
:bsnlc
 
5381
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
 
5382
b cont
 
5383
' <confdefs.h | sed '
 
5384
s/'"$ac_delim"'/"\\\
 
5385
"/g' >>$CONFIG_STATUS || ac_write_fail=1
 
5386
 
 
5387
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
5388
  for (key in D) D_is_set[key] = 1
 
5389
  FS = ""
 
5390
}
 
5391
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
 
5392
  line = \$ 0
 
5393
  split(line, arg, " ")
 
5394
  if (arg[1] == "#") {
 
5395
    defundef = arg[2]
 
5396
    mac1 = arg[3]
 
5397
  } else {
 
5398
    defundef = substr(arg[1], 2)
 
5399
    mac1 = arg[2]
 
5400
  }
 
5401
  split(mac1, mac2, "(") #)
 
5402
  macro = mac2[1]
 
5403
  prefix = substr(line, 1, index(line, defundef) - 1)
 
5404
  if (D_is_set[macro]) {
 
5405
    # Preserve the white space surrounding the "#".
 
5406
    print prefix "define", macro P[macro] D[macro]
 
5407
    next
 
5408
  } else {
 
5409
    # Replace #undef with comments.  This is necessary, for example,
 
5410
    # in the case of _POSIX_SOURCE, which is predefined and required
 
5411
    # on some systems where configure will not decide to define it.
 
5412
    if (defundef == "undef") {
 
5413
      print "/*", prefix defundef, macro, "*/"
 
5414
      next
 
5415
    }
 
5416
  }
 
5417
}
 
5418
{ print }
 
5419
_ACAWK
 
5420
_ACEOF
 
5421
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
5422
  as_fn_error "could not setup config headers machinery" "$LINENO" 5
 
5423
fi # test -n "$CONFIG_HEADERS"
 
5424
 
 
5425
 
 
5426
eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
 
5427
shift
 
5428
for ac_tag
 
5429
do
 
5430
  case $ac_tag in
 
5431
  :[FHLC]) ac_mode=$ac_tag; continue;;
 
5432
  esac
 
5433
  case $ac_mode$ac_tag in
 
5434
  :[FHL]*:*);;
 
5435
  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
 
5436
  :[FH]-) ac_tag=-:-;;
 
5437
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
 
5438
  esac
 
5439
  ac_save_IFS=$IFS
 
5440
  IFS=:
 
5441
  set x $ac_tag
 
5442
  IFS=$ac_save_IFS
 
5443
  shift
 
5444
  ac_file=$1
 
5445
  shift
 
5446
 
 
5447
  case $ac_mode in
 
5448
  :L) ac_source=$1;;
 
5449
  :[FH])
 
5450
    ac_file_inputs=
 
5451
    for ac_f
 
5452
    do
 
5453
      case $ac_f in
 
5454
      -) ac_f="$tmp/stdin";;
 
5455
      *) # Look for the file first in the build tree, then in the source tree
 
5456
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
 
5457
         # because $ac_f cannot contain `:'.
 
5458
         test -f "$ac_f" ||
 
5459
           case $ac_f in
 
5460
           [\\/$]*) false;;
 
5461
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
 
5462
           esac ||
 
5463
           as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
 
5464
      esac
 
5465
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
 
5466
      as_fn_append ac_file_inputs " '$ac_f'"
 
5467
    done
 
5468
 
 
5469
    # Let's still pretend it is `configure' which instantiates (i.e., don't
 
5470
    # use $as_me), people would be surprised to read:
 
5471
    #    /* config.h.  Generated by config.status.  */
 
5472
    configure_input='Generated from '`
 
5473
          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
 
5474
        `' by configure.'
 
5475
    if test x"$ac_file" != x-; then
 
5476
      configure_input="$ac_file.  $configure_input"
 
5477
      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
 
5478
$as_echo "$as_me: creating $ac_file" >&6;}
 
5479
    fi
 
5480
    # Neutralize special characters interpreted by sed in replacement strings.
 
5481
    case $configure_input in #(
 
5482
    *\&* | *\|* | *\\* )
 
5483
       ac_sed_conf_input=`$as_echo "$configure_input" |
 
5484
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
 
5485
    *) ac_sed_conf_input=$configure_input;;
 
5486
    esac
 
5487
 
 
5488
    case $ac_tag in
 
5489
    *:-:* | *:-) cat >"$tmp/stdin" \
 
5490
      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
 
5491
    esac
 
5492
    ;;
 
5493
  esac
 
5494
 
 
5495
  ac_dir=`$as_dirname -- "$ac_file" ||
4187
5496
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4188
5497
         X"$ac_file" : 'X\(//\)[^/]' \| \
4189
5498
         X"$ac_file" : 'X\(//\)$' \| \
4190
 
         X"$ac_file" : 'X\(/\)' \| \
4191
 
         .     : '\(.\)' 2>/dev/null ||
4192
 
echo X"$ac_file" |
4193
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4194
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4195
 
          /^X\(\/\/\)$/{ s//\1/; q; }
4196
 
          /^X\(\/\).*/{ s//\1/; q; }
4197
 
          s/.*/./; q'`
4198
 
  { if $as_mkdir_p; then
4199
 
    mkdir -p "$ac_dir"
4200
 
  else
4201
 
    as_dir="$ac_dir"
4202
 
    as_dirs=
4203
 
    while test ! -d "$as_dir"; do
4204
 
      as_dirs="$as_dir $as_dirs"
4205
 
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
4206
 
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4207
 
         X"$as_dir" : 'X\(//\)[^/]' \| \
4208
 
         X"$as_dir" : 'X\(//\)$' \| \
4209
 
         X"$as_dir" : 'X\(/\)' \| \
4210
 
         .     : '\(.\)' 2>/dev/null ||
4211
 
echo X"$as_dir" |
4212
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4213
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4214
 
          /^X\(\/\/\)$/{ s//\1/; q; }
4215
 
          /^X\(\/\).*/{ s//\1/; q; }
4216
 
          s/.*/./; q'`
4217
 
    done
4218
 
    test ! -n "$as_dirs" || mkdir $as_dirs
4219
 
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4220
 
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4221
 
   { (exit 1); exit 1; }; }; }
4222
 
 
 
5499
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
 
5500
$as_echo X"$ac_file" |
 
5501
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
5502
            s//\1/
 
5503
            q
 
5504
          }
 
5505
          /^X\(\/\/\)[^/].*/{
 
5506
            s//\1/
 
5507
            q
 
5508
          }
 
5509
          /^X\(\/\/\)$/{
 
5510
            s//\1/
 
5511
            q
 
5512
          }
 
5513
          /^X\(\/\).*/{
 
5514
            s//\1/
 
5515
            q
 
5516
          }
 
5517
          s/.*/./; q'`
 
5518
  as_dir="$ac_dir"; as_fn_mkdir_p
4223
5519
  ac_builddir=.
4224
5520
 
4225
 
if test "$ac_dir" != .; then
4226
 
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4227
 
  # A "../" for each directory in $ac_dir_suffix.
4228
 
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4229
 
else
4230
 
  ac_dir_suffix= ac_top_builddir=
4231
 
fi
 
5521
case "$ac_dir" in
 
5522
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
5523
*)
 
5524
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 
5525
  # A ".." for each directory in $ac_dir_suffix.
 
5526
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 
5527
  case $ac_top_builddir_sub in
 
5528
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
5529
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
5530
  esac ;;
 
5531
esac
 
5532
ac_abs_top_builddir=$ac_pwd
 
5533
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
5534
# for backward compatibility:
 
5535
ac_top_builddir=$ac_top_build_prefix
4232
5536
 
4233
5537
case $srcdir in
4234
 
  .)  # No --srcdir option.  We are building in place.
 
5538
  .)  # We are building in place.
4235
5539
    ac_srcdir=.
4236
 
    if test -z "$ac_top_builddir"; then
4237
 
       ac_top_srcdir=.
4238
 
    else
4239
 
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4240
 
    fi ;;
4241
 
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
5540
    ac_top_srcdir=$ac_top_builddir_sub
 
5541
    ac_abs_top_srcdir=$ac_pwd ;;
 
5542
  [\\/]* | ?:[\\/]* )  # Absolute name.
4242
5543
    ac_srcdir=$srcdir$ac_dir_suffix;
4243
 
    ac_top_srcdir=$srcdir ;;
4244
 
  *) # Relative path.
4245
 
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4246
 
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
4247
 
esac
4248
 
 
4249
 
# Do not use `cd foo && pwd` to compute absolute paths, because
4250
 
# the directories may not exist.
4251
 
case `pwd` in
4252
 
.) ac_abs_builddir="$ac_dir";;
4253
 
*)
4254
 
  case "$ac_dir" in
4255
 
  .) ac_abs_builddir=`pwd`;;
4256
 
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
4257
 
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
4258
 
  esac;;
4259
 
esac
4260
 
case $ac_abs_builddir in
4261
 
.) ac_abs_top_builddir=${ac_top_builddir}.;;
4262
 
*)
4263
 
  case ${ac_top_builddir}. in
4264
 
  .) ac_abs_top_builddir=$ac_abs_builddir;;
4265
 
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
4266
 
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
4267
 
  esac;;
4268
 
esac
4269
 
case $ac_abs_builddir in
4270
 
.) ac_abs_srcdir=$ac_srcdir;;
4271
 
*)
4272
 
  case $ac_srcdir in
4273
 
  .) ac_abs_srcdir=$ac_abs_builddir;;
4274
 
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
4275
 
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
4276
 
  esac;;
4277
 
esac
4278
 
case $ac_abs_builddir in
4279
 
.) ac_abs_top_srcdir=$ac_top_srcdir;;
4280
 
*)
4281
 
  case $ac_top_srcdir in
4282
 
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
4283
 
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
4284
 
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
4285
 
  esac;;
4286
 
esac
4287
 
 
 
5544
    ac_top_srcdir=$srcdir
 
5545
    ac_abs_top_srcdir=$srcdir ;;
 
5546
  *) # Relative name.
 
5547
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
5548
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
5549
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
5550
esac
 
5551
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
5552
 
 
5553
 
 
5554
  case $ac_mode in
 
5555
  :F)
 
5556
  #
 
5557
  # CONFIG_FILE
 
5558
  #
4288
5559
 
4289
5560
  case $INSTALL in
4290
5561
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
4291
 
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
 
5562
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
4292
5563
  esac
4293
 
 
4294
 
  # Let's still pretend it is `configure' which instantiates (i.e., don't
4295
 
  # use $as_me), people would be surprised to read:
4296
 
  #    /* config.h.  Generated by config.status.  */
4297
 
  if test x"$ac_file" = x-; then
4298
 
    configure_input=
4299
 
  else
4300
 
    configure_input="$ac_file.  "
4301
 
  fi
4302
 
  configure_input=$configure_input"Generated from `echo $ac_file_in |
4303
 
                                     sed 's,.*/,,'` by configure."
4304
 
 
4305
 
  # First look for the input files in the build tree, otherwise in the
4306
 
  # src tree.
4307
 
  ac_file_inputs=`IFS=:
4308
 
    for f in $ac_file_in; do
4309
 
      case $f in
4310
 
      -) echo $tmp/stdin ;;
4311
 
      [\\/$]*)
4312
 
         # Absolute (can't be DOS-style, as IFS=:)
4313
 
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4314
 
echo "$as_me: error: cannot find input file: $f" >&2;}
4315
 
   { (exit 1); exit 1; }; }
4316
 
         echo "$f";;
4317
 
      *) # Relative
4318
 
         if test -f "$f"; then
4319
 
           # Build tree
4320
 
           echo "$f"
4321
 
         elif test -f "$srcdir/$f"; then
4322
 
           # Source tree
4323
 
           echo "$srcdir/$f"
4324
 
         else
4325
 
           # /dev/null tree
4326
 
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4327
 
echo "$as_me: error: cannot find input file: $f" >&2;}
4328
 
   { (exit 1); exit 1; }; }
4329
 
         fi;;
4330
 
      esac
4331
 
    done` || { (exit 1); exit 1; }
4332
 
 
4333
 
  if test x"$ac_file" != x-; then
4334
 
    { echo "$as_me:$LINENO: creating $ac_file" >&5
4335
 
echo "$as_me: creating $ac_file" >&6;}
4336
 
    rm -f "$ac_file"
4337
 
  fi
4338
 
_ACEOF
4339
 
cat >>$CONFIG_STATUS <<_ACEOF
4340
 
  sed "$ac_vpsub
 
5564
_ACEOF
 
5565
 
 
5566
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
5567
# If the template does not know about datarootdir, expand it.
 
5568
# FIXME: This hack should be removed a few years after 2.60.
 
5569
ac_datarootdir_hack=; ac_datarootdir_seen=
 
5570
ac_sed_dataroot='
 
5571
/datarootdir/ {
 
5572
  p
 
5573
  q
 
5574
}
 
5575
/@datadir@/p
 
5576
/@docdir@/p
 
5577
/@infodir@/p
 
5578
/@localedir@/p
 
5579
/@mandir@/p'
 
5580
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
 
5581
*datarootdir*) ac_datarootdir_seen=yes;;
 
5582
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
 
5583
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
 
5584
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
 
5585
_ACEOF
 
5586
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
5587
  ac_datarootdir_hack='
 
5588
  s&@datadir@&$datadir&g
 
5589
  s&@docdir@&$docdir&g
 
5590
  s&@infodir@&$infodir&g
 
5591
  s&@localedir@&$localedir&g
 
5592
  s&@mandir@&$mandir&g
 
5593
  s&\\\${datarootdir}&$datarootdir&g' ;;
 
5594
esac
 
5595
_ACEOF
 
5596
 
 
5597
# Neutralize VPATH when `$srcdir' = `.'.
 
5598
# Shell code in configure.ac might set extrasub.
 
5599
# FIXME: do we really want to maintain this feature?
 
5600
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
5601
ac_sed_extra="$ac_vpsub
4341
5602
$extrasub
4342
5603
_ACEOF
4343
 
cat >>$CONFIG_STATUS <<\_ACEOF
 
5604
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4344
5605
:t
4345
5606
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4346
 
s,@configure_input@,$configure_input,;t t
4347
 
s,@srcdir@,$ac_srcdir,;t t
4348
 
s,@abs_srcdir@,$ac_abs_srcdir,;t t
4349
 
s,@top_srcdir@,$ac_top_srcdir,;t t
4350
 
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
4351
 
s,@builddir@,$ac_builddir,;t t
4352
 
s,@abs_builddir@,$ac_abs_builddir,;t t
4353
 
s,@top_builddir@,$ac_top_builddir,;t t
4354
 
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
4355
 
s,@INSTALL@,$ac_INSTALL,;t t
4356
 
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
4357
 
  rm -f $tmp/stdin
4358
 
  if test x"$ac_file" != x-; then
4359
 
    mv $tmp/out $ac_file
4360
 
  else
4361
 
    cat $tmp/out
4362
 
    rm -f $tmp/out
4363
 
  fi
4364
 
 
4365
 
done
4366
 
_ACEOF
4367
 
cat >>$CONFIG_STATUS <<\_ACEOF
4368
 
 
4369
 
#
4370
 
# CONFIG_HEADER section.
4371
 
#
4372
 
 
4373
 
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4374
 
# NAME is the cpp macro being defined and VALUE is the value it is being given.
4375
 
#
4376
 
# ac_d sets the value in "#define NAME VALUE" lines.
4377
 
ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
4378
 
ac_dB='[         ].*$,\1#\2'
4379
 
ac_dC=' '
4380
 
ac_dD=',;t'
4381
 
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4382
 
ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
4383
 
ac_uB='$,\1#\2define\3'
4384
 
ac_uC=' '
4385
 
ac_uD=',;t'
4386
 
 
4387
 
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
4388
 
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
5607
s|@configure_input@|$ac_sed_conf_input|;t t
 
5608
s&@top_builddir@&$ac_top_builddir_sub&;t t
 
5609
s&@top_build_prefix@&$ac_top_build_prefix&;t t
 
5610
s&@srcdir@&$ac_srcdir&;t t
 
5611
s&@abs_srcdir@&$ac_abs_srcdir&;t t
 
5612
s&@top_srcdir@&$ac_top_srcdir&;t t
 
5613
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
 
5614
s&@builddir@&$ac_builddir&;t t
 
5615
s&@abs_builddir@&$ac_abs_builddir&;t t
 
5616
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
 
5617
s&@INSTALL@&$ac_INSTALL&;t t
 
5618
$ac_datarootdir_hack
 
5619
"
 
5620
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
 
5621
  || as_fn_error "could not create $ac_file" "$LINENO" 5
 
5622
 
 
5623
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
 
5624
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
 
5625
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
 
5626
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
5627
which seems to be undefined.  Please make sure it is defined." >&5
 
5628
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
5629
which seems to be undefined.  Please make sure it is defined." >&2;}
 
5630
 
 
5631
  rm -f "$tmp/stdin"
4389
5632
  case $ac_file in
4390
 
  - | *:- | *:-:* ) # input from stdin
4391
 
        cat >$tmp/stdin
4392
 
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4393
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4394
 
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4395
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4396
 
  * )   ac_file_in=$ac_file.in ;;
4397
 
  esac
4398
 
 
4399
 
  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
4400
 
echo "$as_me: creating $ac_file" >&6;}
4401
 
 
4402
 
  # First look for the input files in the build tree, otherwise in the
4403
 
  # src tree.
4404
 
  ac_file_inputs=`IFS=:
4405
 
    for f in $ac_file_in; do
4406
 
      case $f in
4407
 
      -) echo $tmp/stdin ;;
4408
 
      [\\/$]*)
4409
 
         # Absolute (can't be DOS-style, as IFS=:)
4410
 
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4411
 
echo "$as_me: error: cannot find input file: $f" >&2;}
4412
 
   { (exit 1); exit 1; }; }
4413
 
         # Do quote $f, to prevent DOS paths from being IFS'd.
4414
 
         echo "$f";;
4415
 
      *) # Relative
4416
 
         if test -f "$f"; then
4417
 
           # Build tree
4418
 
           echo "$f"
4419
 
         elif test -f "$srcdir/$f"; then
4420
 
           # Source tree
4421
 
           echo "$srcdir/$f"
4422
 
         else
4423
 
           # /dev/null tree
4424
 
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4425
 
echo "$as_me: error: cannot find input file: $f" >&2;}
4426
 
   { (exit 1); exit 1; }; }
4427
 
         fi;;
4428
 
      esac
4429
 
    done` || { (exit 1); exit 1; }
4430
 
  # Remove the trailing spaces.
4431
 
  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
4432
 
 
4433
 
_ACEOF
4434
 
 
4435
 
# Transform confdefs.h into two sed scripts, `conftest.defines' and
4436
 
# `conftest.undefs', that substitutes the proper values into
4437
 
# config.h.in to produce config.h.  The first handles `#define'
4438
 
# templates, and the second `#undef' templates.
4439
 
# And first: Protect against being on the right side of a sed subst in
4440
 
# config.status.  Protect against being in an unquoted here document
4441
 
# in config.status.
4442
 
rm -f conftest.defines conftest.undefs
4443
 
# Using a here document instead of a string reduces the quoting nightmare.
4444
 
# Putting comments in sed scripts is not portable.
4445
 
#
4446
 
# `end' is used to avoid that the second main sed command (meant for
4447
 
# 0-ary CPP macros) applies to n-ary macro definitions.
4448
 
# See the Autoconf documentation for `clear'.
4449
 
cat >confdef2sed.sed <<\_ACEOF
4450
 
s/[\\&,]/\\&/g
4451
 
s,[\\$`],\\&,g
4452
 
t clear
4453
 
: clear
4454
 
s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
4455
 
t end
4456
 
s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
4457
 
: end
4458
 
_ACEOF
4459
 
# If some macros were called several times there might be several times
4460
 
# the same #defines, which is useless.  Nevertheless, we may not want to
4461
 
# sort them, since we want the *last* AC-DEFINE to be honored.
4462
 
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
4463
 
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
4464
 
rm -f confdef2sed.sed
4465
 
 
4466
 
# This sed command replaces #undef with comments.  This is necessary, for
4467
 
# example, in the case of _POSIX_SOURCE, which is predefined and required
4468
 
# on some systems where configure will not decide to define it.
4469
 
cat >>conftest.undefs <<\_ACEOF
4470
 
s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
4471
 
_ACEOF
4472
 
 
4473
 
# Break up conftest.defines because some shells have a limit on the size
4474
 
# of here documents, and old seds have small limits too (100 cmds).
4475
 
echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
4476
 
echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
4477
 
echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
4478
 
echo '  :' >>$CONFIG_STATUS
4479
 
rm -f conftest.tail
4480
 
while grep . conftest.defines >/dev/null
4481
 
do
4482
 
  # Write a limited-size here document to $tmp/defines.sed.
4483
 
  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
4484
 
  # Speed up: don't consider the non `#define' lines.
4485
 
  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
4486
 
  # Work around the forget-to-reset-the-flag bug.
4487
 
  echo 't clr' >>$CONFIG_STATUS
4488
 
  echo ': clr' >>$CONFIG_STATUS
4489
 
  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
4490
 
  echo 'CEOF
4491
 
  sed -f $tmp/defines.sed $tmp/in >$tmp/out
4492
 
  rm -f $tmp/in
4493
 
  mv $tmp/out $tmp/in
4494
 
' >>$CONFIG_STATUS
4495
 
  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
4496
 
  rm -f conftest.defines
4497
 
  mv conftest.tail conftest.defines
4498
 
done
4499
 
rm -f conftest.defines
4500
 
echo '  fi # grep' >>$CONFIG_STATUS
4501
 
echo >>$CONFIG_STATUS
4502
 
 
4503
 
# Break up conftest.undefs because some shells have a limit on the size
4504
 
# of here documents, and old seds have small limits too (100 cmds).
4505
 
echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
4506
 
rm -f conftest.tail
4507
 
while grep . conftest.undefs >/dev/null
4508
 
do
4509
 
  # Write a limited-size here document to $tmp/undefs.sed.
4510
 
  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
4511
 
  # Speed up: don't consider the non `#undef'
4512
 
  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
4513
 
  # Work around the forget-to-reset-the-flag bug.
4514
 
  echo 't clr' >>$CONFIG_STATUS
4515
 
  echo ': clr' >>$CONFIG_STATUS
4516
 
  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
4517
 
  echo 'CEOF
4518
 
  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
4519
 
  rm -f $tmp/in
4520
 
  mv $tmp/out $tmp/in
4521
 
' >>$CONFIG_STATUS
4522
 
  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
4523
 
  rm -f conftest.undefs
4524
 
  mv conftest.tail conftest.undefs
4525
 
done
4526
 
rm -f conftest.undefs
4527
 
 
4528
 
cat >>$CONFIG_STATUS <<\_ACEOF
4529
 
  # Let's still pretend it is `configure' which instantiates (i.e., don't
4530
 
  # use $as_me), people would be surprised to read:
4531
 
  #    /* config.h.  Generated by config.status.  */
4532
 
  if test x"$ac_file" = x-; then
4533
 
    echo "/* Generated by configure.  */" >$tmp/config.h
4534
 
  else
4535
 
    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
4536
 
  fi
4537
 
  cat $tmp/in >>$tmp/config.h
4538
 
  rm -f $tmp/in
 
5633
  -) cat "$tmp/out" && rm -f "$tmp/out";;
 
5634
  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
 
5635
  esac \
 
5636
  || as_fn_error "could not create $ac_file" "$LINENO" 5
 
5637
 ;;
 
5638
  :H)
 
5639
  #
 
5640
  # CONFIG_HEADER
 
5641
  #
4539
5642
  if test x"$ac_file" != x-; then
4540
 
    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
4541
 
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
4542
 
echo "$as_me: $ac_file is unchanged" >&6;}
 
5643
    {
 
5644
      $as_echo "/* $configure_input  */" \
 
5645
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
 
5646
    } >"$tmp/config.h" \
 
5647
      || as_fn_error "could not create $ac_file" "$LINENO" 5
 
5648
    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
 
5649
      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
 
5650
$as_echo "$as_me: $ac_file is unchanged" >&6;}
4543
5651
    else
4544
 
      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4545
 
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4546
 
         X"$ac_file" : 'X\(//\)[^/]' \| \
4547
 
         X"$ac_file" : 'X\(//\)$' \| \
4548
 
         X"$ac_file" : 'X\(/\)' \| \
4549
 
         .     : '\(.\)' 2>/dev/null ||
4550
 
echo X"$ac_file" |
4551
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4552
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4553
 
          /^X\(\/\/\)$/{ s//\1/; q; }
4554
 
          /^X\(\/\).*/{ s//\1/; q; }
4555
 
          s/.*/./; q'`
4556
 
      { if $as_mkdir_p; then
4557
 
    mkdir -p "$ac_dir"
4558
 
  else
4559
 
    as_dir="$ac_dir"
4560
 
    as_dirs=
4561
 
    while test ! -d "$as_dir"; do
4562
 
      as_dirs="$as_dir $as_dirs"
4563
 
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
4564
 
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4565
 
         X"$as_dir" : 'X\(//\)[^/]' \| \
4566
 
         X"$as_dir" : 'X\(//\)$' \| \
4567
 
         X"$as_dir" : 'X\(/\)' \| \
4568
 
         .     : '\(.\)' 2>/dev/null ||
4569
 
echo X"$as_dir" |
4570
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4571
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4572
 
          /^X\(\/\/\)$/{ s//\1/; q; }
4573
 
          /^X\(\/\).*/{ s//\1/; q; }
4574
 
          s/.*/./; q'`
4575
 
    done
4576
 
    test ! -n "$as_dirs" || mkdir $as_dirs
4577
 
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4578
 
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4579
 
   { (exit 1); exit 1; }; }; }
4580
 
 
4581
 
      rm -f $ac_file
4582
 
      mv $tmp/config.h $ac_file
 
5652
      rm -f "$ac_file"
 
5653
      mv "$tmp/config.h" "$ac_file" \
 
5654
        || as_fn_error "could not create $ac_file" "$LINENO" 5
4583
5655
    fi
4584
5656
  else
4585
 
    cat $tmp/config.h
4586
 
    rm -f $tmp/config.h
 
5657
    $as_echo "/* $configure_input  */" \
 
5658
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
 
5659
      || as_fn_error "could not create -" "$LINENO" 5
4587
5660
  fi
4588
 
done
4589
 
_ACEOF
4590
 
 
4591
 
cat >>$CONFIG_STATUS <<\_ACEOF
4592
 
 
4593
 
{ (exit 0); exit 0; }
4594
 
_ACEOF
4595
 
chmod +x $CONFIG_STATUS
 
5661
 ;;
 
5662
 
 
5663
 
 
5664
  esac
 
5665
 
 
5666
done # for ac_tag
 
5667
 
 
5668
 
 
5669
as_fn_exit 0
 
5670
_ACEOF
4596
5671
ac_clean_files=$ac_clean_files_save
4597
5672
 
 
5673
test $ac_write_fail = 0 ||
 
5674
  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
 
5675
 
4598
5676
 
4599
5677
# configure is writing to config.log, and then calls config.status.
4600
5678
# config.status does its own redirection, appending to config.log.
4614
5692
  exec 5>>config.log
4615
5693
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4616
5694
  # would make configure fail if this is the last instruction.
4617
 
  $ac_cs_success || { (exit 1); exit 1; }
 
5695
  $ac_cs_success || as_fn_exit $?
 
5696
fi
 
5697
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
 
5698
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
 
5699
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
4618
5700
fi
4619
5701
 
4620
5702