~jr/ubuntu/oneiric/apt/bzr-get-rename

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Matt Zimmerman
  • Date: 2005-03-07 20:08:33 UTC
  • Revision ID: james.westby@ubuntu.com-20050307200833-0lxdgg2cb4oculdv
Tags: 0.6.35
* Merge apt--mvo--0 (incorporates 0.6.34ubuntu1):
  - Implement MaxSize and MaxAge in apt.cron.daily, to prevent the cache
    from growing too large (Ubuntu #6761)
  - some comments about the pkgAcqMetaSig::Custom600Headers() added
  - use gpg --with-colons
  - commented the ftp no_proxy unseting in methods/ftp.cc
  - added support for "Acquire::gpgv::options" in methods/gpgv.cc
* Merge bubulle@debian.org--2005/apt--main--0
  - Make capitalization more consistent
  - Un-fuzzy translations resulting from capitalization changes
  - Italian translation update

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
 
 
3
2
# Guess values for system-dependent variables and create Makefiles.
4
 
# Generated automatically using autoconf version 2.13 
5
 
# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
 
3
# Generated by GNU Autoconf 2.59.
6
4
#
 
5
# Copyright (C) 2003 Free Software Foundation, Inc.
7
6
# This configure script is free software; the Free Software Foundation
8
7
# gives unlimited permission to copy, distribute and modify it.
9
 
 
10
 
# Defaults:
11
 
ac_help=
 
8
## --------------------- ##
 
9
## M4sh Initialization.  ##
 
10
## --------------------- ##
 
11
 
 
12
# Be Bourne compatible
 
13
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
14
  emulate sh
 
15
  NULLCMD=:
 
16
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
17
  # is contrary to our usage.  Disable this feature.
 
18
  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
 
34
PS1='$ '
 
35
PS2='> '
 
36
PS4='+ '
 
37
 
 
38
# 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
 
43
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
 
46
  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
 
53
  as_expr=expr
 
54
else
 
55
  as_expr=false
 
56
fi
 
57
 
 
58
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
59
  as_basename=basename
 
60
else
 
61
  as_basename=false
 
62
fi
 
63
 
 
64
 
 
65
# Name of the executable.
 
66
as_me=`$as_basename "$0" ||
 
67
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
68
         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.
 
79
# Avoid depending upon Character Ranges.
 
80
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
81
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
82
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
83
as_cr_digits='0123456789'
 
84
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
85
 
 
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 |
 
165
    sed '
 
166
      N
 
167
      s,$,-,
 
168
      : loop
 
169
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
170
      t loop
 
171
      s,-$,,
 
172
      s,^['$as_cr_digits']*\n,,
 
173
    ' >$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; }; }
 
177
 
 
178
  # Don't try to exec as it changes $[0], causing all sort of problems
 
179
  # (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
 
182
  # Exit status is that of the last command.
 
183
  exit
 
184
}
 
185
 
 
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= ;;
 
192
esac
 
193
 
 
194
if expr a : '\(a\)' >/dev/null 2>&1; then
 
195
  as_expr=expr
 
196
else
 
197
  as_expr=false
 
198
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
 
207
    as_ln_s='cp -p'
 
208
  else
 
209
    as_ln_s='ln -s'
 
210
  fi
 
211
elif ln conf$$.file conf$$ 2>/dev/null; then
 
212
  as_ln_s=ln
 
213
else
 
214
  as_ln_s='cp -p'
 
215
fi
 
216
rm -f conf$$ conf$$.exe conf$$.file
 
217
 
 
218
if mkdir -p . 2>/dev/null; then
 
219
  as_mkdir_p=:
 
220
else
 
221
  test -d ./-p && rmdir ./-p
 
222
  as_mkdir_p=false
 
223
fi
 
224
 
 
225
as_executable_p="test -f"
 
226
 
 
227
# Sed expression to map a string onto a valid CPP name.
 
228
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
229
 
 
230
# Sed expression to map a string onto a valid variable name.
 
231
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
232
 
 
233
 
 
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
 
 
243
 
 
244
# Name of the host.
 
245
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
 
246
# so uname gets run too.
 
247
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 
248
 
 
249
exec 6>&1
 
250
 
 
251
#
 
252
# Initializations.
 
253
#
12
254
ac_default_prefix=/usr/local
13
 
# Any additions from configure.in:
14
 
ac_help="$ac_help
15
 
  --with-cpus             The number of cpus to be used for building(see --with-procs, default 1)"
16
 
ac_help="$ac_help
17
 
  --with-getconf          Enable automagical buildtime configuration"
18
 
ac_help="$ac_help
19
 
  --with-proc-multiply    Multiply this * number of cpus for parallel making(default 2)."
20
 
ac_help="$ac_help
21
 
  --with-procs            The number of processes to run in parallel during make(num_cpus * multiplier)."
 
255
ac_config_libobj_dir=.
 
256
cross_compiling=no
 
257
subdirs=
 
258
MFLAGS=
 
259
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
 
 
267
# Identity of this package.
 
268
PACKAGE_NAME=
 
269
PACKAGE_TARNAME=
 
270
PACKAGE_VERSION=
 
271
PACKAGE_STRING=
 
272
PACKAGE_BUGREPORT=
 
273
 
 
274
ac_unique_file="configure.in"
 
275
# Factoring default headers for most tests.
 
276
ac_includes_default="\
 
277
#include <stdio.h>
 
278
#if HAVE_SYS_TYPES_H
 
279
# include <sys/types.h>
 
280
#endif
 
281
#if HAVE_SYS_STAT_H
 
282
# include <sys/stat.h>
 
283
#endif
 
284
#if STDC_HEADERS
 
285
# include <stdlib.h>
 
286
# include <stddef.h>
 
287
#else
 
288
# if HAVE_STDLIB_H
 
289
#  include <stdlib.h>
 
290
# endif
 
291
#endif
 
292
#if HAVE_STRING_H
 
293
# if !STDC_HEADERS && HAVE_MEMORY_H
 
294
#  include <memory.h>
 
295
# endif
 
296
# include <string.h>
 
297
#endif
 
298
#if HAVE_STRINGS_H
 
299
# include <strings.h>
 
300
#endif
 
301
#if HAVE_INTTYPES_H
 
302
# include <inttypes.h>
 
303
#else
 
304
# if HAVE_STDINT_H
 
305
#  include <stdint.h>
 
306
# endif
 
307
#endif
 
308
#if HAVE_UNISTD_H
 
309
# include <unistd.h>
 
310
#endif"
 
311
 
 
312
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 PACKAGE build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP RANLIB ac_ct_RANLIB AR ac_ct_AR SOCKETLIBS PTHREADLIB EGREP BDBLIB HAVE_STATVFS HAVE_TIMEGM HAVE_C9X NEED_SOCKLEN_T_DEFINE DEBIANDOC_HTML DEBIANDOC_TEXT DOCBOOK2MAN XMLTO GETCONF NUM_CPUS PROC_MULTIPLY NUM_PROCS GLIBC_VER LIBSTDCPP_VER GCC3DEP SET_MAKE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE LIBICONV LTLIBICONV INTLLIBS LIBINTL LTLIBINTL POSUB BASH LIBOBJS LTLIBOBJS'
 
313
ac_subst_files=''
22
314
 
23
315
# Initialize some variables set by options.
 
316
ac_init_help=
 
317
ac_init_version=false
24
318
# The variables have the same names as the options, with
25
319
# dashes changed to underlines.
26
 
build=NONE
27
 
cache_file=./config.cache
 
320
cache_file=/dev/null
28
321
exec_prefix=NONE
29
 
host=NONE
30
322
no_create=
31
 
nonopt=NONE
32
323
no_recursion=
33
324
prefix=NONE
34
325
program_prefix=NONE
37
328
silent=
38
329
site=
39
330
srcdir=
40
 
target=NONE
41
331
verbose=
42
332
x_includes=NONE
43
333
x_libraries=NONE
 
334
 
 
335
# Installation directory options.
 
336
# These are left unexpanded so users can "make install exec_prefix=/foo"
 
337
# and all the variables that are supposed to be based on exec_prefix
 
338
# by default will actually change.
 
339
# Use braces instead of parens because sh, perl, etc. also accept them.
44
340
bindir='${exec_prefix}/bin'
45
341
sbindir='${exec_prefix}/sbin'
46
342
libexecdir='${exec_prefix}/libexec'
54
350
infodir='${prefix}/info'
55
351
mandir='${prefix}/man'
56
352
 
57
 
# Initialize some other variables.
58
 
subdirs=
59
 
MFLAGS= MAKEFLAGS=
60
 
SHELL=${CONFIG_SHELL-/bin/sh}
61
 
# Maximum number of lines to put in a shell here document.
62
 
ac_max_here_lines=12
63
 
 
64
353
ac_prev=
65
354
for ac_option
66
355
do
67
 
 
68
356
  # If the previous option needs an argument, assign it.
69
357
  if test -n "$ac_prev"; then
70
358
    eval "$ac_prev=\$ac_option"
72
360
    continue
73
361
  fi
74
362
 
75
 
  case "$ac_option" in
76
 
  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
77
 
  *) ac_optarg= ;;
78
 
  esac
 
363
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
79
364
 
80
365
  # Accept the important Cygnus configure options, so we can diagnose typos.
81
366
 
82
 
  case "$ac_option" in
 
367
  case $ac_option in
83
368
 
84
369
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
85
370
    ac_prev=bindir ;;
86
371
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
87
 
    bindir="$ac_optarg" ;;
 
372
    bindir=$ac_optarg ;;
88
373
 
89
374
  -build | --build | --buil | --bui | --bu)
90
 
    ac_prev=build ;;
 
375
    ac_prev=build_alias ;;
91
376
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
92
 
    build="$ac_optarg" ;;
 
377
    build_alias=$ac_optarg ;;
93
378
 
94
379
  -cache-file | --cache-file | --cache-fil | --cache-fi \
95
380
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
96
381
    ac_prev=cache_file ;;
97
382
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
98
383
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
99
 
    cache_file="$ac_optarg" ;;
 
384
    cache_file=$ac_optarg ;;
 
385
 
 
386
  --config-cache | -C)
 
387
    cache_file=config.cache ;;
100
388
 
101
389
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
102
390
    ac_prev=datadir ;;
103
391
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
104
392
  | --da=*)
105
 
    datadir="$ac_optarg" ;;
 
393
    datadir=$ac_optarg ;;
106
394
 
107
395
  -disable-* | --disable-*)
108
 
    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
 
396
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
109
397
    # Reject names that are not valid shell variable names.
110
 
    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
111
 
      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
112
 
    fi
113
 
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
114
 
    eval "enable_${ac_feature}=no" ;;
 
398
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
399
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
400
   { (exit 1); exit 1; }; }
 
401
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
 
402
    eval "enable_$ac_feature=no" ;;
115
403
 
116
404
  -enable-* | --enable-*)
117
 
    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
 
405
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
118
406
    # Reject names that are not valid shell variable names.
119
 
    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
120
 
      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
121
 
    fi
122
 
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
123
 
    case "$ac_option" in
124
 
      *=*) ;;
 
407
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
408
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
409
   { (exit 1); exit 1; }; }
 
410
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
 
411
    case $ac_option in
 
412
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
125
413
      *) ac_optarg=yes ;;
126
414
    esac
127
 
    eval "enable_${ac_feature}='$ac_optarg'" ;;
 
415
    eval "enable_$ac_feature='$ac_optarg'" ;;
128
416
 
129
417
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
130
418
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
133
421
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
134
422
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
135
423
  | --exec=* | --exe=* | --ex=*)
136
 
    exec_prefix="$ac_optarg" ;;
 
424
    exec_prefix=$ac_optarg ;;
137
425
 
138
426
  -gas | --gas | --ga | --g)
139
427
    # Obsolete; use --with-gas.
140
428
    with_gas=yes ;;
141
429
 
142
 
  -help | --help | --hel | --he)
143
 
    # Omit some internal or obsolete options to make the list less imposing.
144
 
    # This message is too long to be a string in the A/UX 3.1 sh.
145
 
    cat << EOF
146
 
Usage: configure [options] [host]
147
 
Options: [defaults in brackets after descriptions]
148
 
Configuration:
149
 
  --cache-file=FILE       cache test results in FILE
150
 
  --help                  print this message
151
 
  --no-create             do not create output files
152
 
  --quiet, --silent       do not print \`checking...' messages
153
 
  --version               print the version of autoconf that created configure
154
 
Directory and file names:
155
 
  --prefix=PREFIX         install architecture-independent files in PREFIX
156
 
                          [$ac_default_prefix]
157
 
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
158
 
                          [same as prefix]
159
 
  --bindir=DIR            user executables in DIR [EPREFIX/bin]
160
 
  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
161
 
  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
162
 
  --datadir=DIR           read-only architecture-independent data in DIR
163
 
                          [PREFIX/share]
164
 
  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
165
 
  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
166
 
                          [PREFIX/com]
167
 
  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
168
 
  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
169
 
  --includedir=DIR        C header files in DIR [PREFIX/include]
170
 
  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
171
 
  --infodir=DIR           info documentation in DIR [PREFIX/info]
172
 
  --mandir=DIR            man documentation in DIR [PREFIX/man]
173
 
  --srcdir=DIR            find the sources in DIR [configure dir or ..]
174
 
  --program-prefix=PREFIX prepend PREFIX to installed program names
175
 
  --program-suffix=SUFFIX append SUFFIX to installed program names
176
 
  --program-transform-name=PROGRAM
177
 
                          run sed PROGRAM on installed program names
178
 
EOF
179
 
    cat << EOF
180
 
Host type:
181
 
  --build=BUILD           configure for building on BUILD [BUILD=HOST]
182
 
  --host=HOST             configure for HOST [guessed]
183
 
  --target=TARGET         configure for TARGET [TARGET=HOST]
184
 
Features and packages:
185
 
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
186
 
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
187
 
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
188
 
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
189
 
  --x-includes=DIR        X include files are in DIR
190
 
  --x-libraries=DIR       X library files are in DIR
191
 
EOF
192
 
    if test -n "$ac_help"; then
193
 
      echo "--enable and --with options recognized:$ac_help"
194
 
    fi
195
 
    exit 0 ;;
 
430
  -help | --help | --hel | --he | -h)
 
431
    ac_init_help=long ;;
 
432
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 
433
    ac_init_help=recursive ;;
 
434
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 
435
    ac_init_help=short ;;
196
436
 
197
437
  -host | --host | --hos | --ho)
198
 
    ac_prev=host ;;
 
438
    ac_prev=host_alias ;;
199
439
  -host=* | --host=* | --hos=* | --ho=*)
200
 
    host="$ac_optarg" ;;
 
440
    host_alias=$ac_optarg ;;
201
441
 
202
442
  -includedir | --includedir | --includedi | --included | --include \
203
443
  | --includ | --inclu | --incl | --inc)
204
444
    ac_prev=includedir ;;
205
445
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
206
446
  | --includ=* | --inclu=* | --incl=* | --inc=*)
207
 
    includedir="$ac_optarg" ;;
 
447
    includedir=$ac_optarg ;;
208
448
 
209
449
  -infodir | --infodir | --infodi | --infod | --info | --inf)
210
450
    ac_prev=infodir ;;
211
451
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
212
 
    infodir="$ac_optarg" ;;
 
452
    infodir=$ac_optarg ;;
213
453
 
214
454
  -libdir | --libdir | --libdi | --libd)
215
455
    ac_prev=libdir ;;
216
456
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
217
 
    libdir="$ac_optarg" ;;
 
457
    libdir=$ac_optarg ;;
218
458
 
219
459
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
220
460
  | --libexe | --libex | --libe)
221
461
    ac_prev=libexecdir ;;
222
462
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
223
463
  | --libexe=* | --libex=* | --libe=*)
224
 
    libexecdir="$ac_optarg" ;;
 
464
    libexecdir=$ac_optarg ;;
225
465
 
226
466
  -localstatedir | --localstatedir | --localstatedi | --localstated \
227
467
  | --localstate | --localstat | --localsta | --localst \
230
470
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
231
471
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
232
472
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
233
 
    localstatedir="$ac_optarg" ;;
 
473
    localstatedir=$ac_optarg ;;
234
474
 
235
475
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
236
476
    ac_prev=mandir ;;
237
477
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
238
 
    mandir="$ac_optarg" ;;
 
478
    mandir=$ac_optarg ;;
239
479
 
240
480
  -nfp | --nfp | --nf)
241
481
    # Obsolete; use --without-fp.
242
482
    with_fp=no ;;
243
483
 
244
484
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
245
 
  | --no-cr | --no-c)
 
485
  | --no-cr | --no-c | -n)
246
486
    no_create=yes ;;
247
487
 
248
488
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
256
496
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
257
497
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
258
498
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
259
 
    oldincludedir="$ac_optarg" ;;
 
499
    oldincludedir=$ac_optarg ;;
260
500
 
261
501
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
262
502
    ac_prev=prefix ;;
263
503
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
264
 
    prefix="$ac_optarg" ;;
 
504
    prefix=$ac_optarg ;;
265
505
 
266
506
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
267
507
  | --program-pre | --program-pr | --program-p)
268
508
    ac_prev=program_prefix ;;
269
509
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
270
510
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
271
 
    program_prefix="$ac_optarg" ;;
 
511
    program_prefix=$ac_optarg ;;
272
512
 
273
513
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
274
514
  | --program-suf | --program-su | --program-s)
275
515
    ac_prev=program_suffix ;;
276
516
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
277
517
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
278
 
    program_suffix="$ac_optarg" ;;
 
518
    program_suffix=$ac_optarg ;;
279
519
 
280
520
  -program-transform-name | --program-transform-name \
281
521
  | --program-transform-nam | --program-transform-na \
292
532
  | --program-transfo=* | --program-transf=* \
293
533
  | --program-trans=* | --program-tran=* \
294
534
  | --progr-tra=* | --program-tr=* | --program-t=*)
295
 
    program_transform_name="$ac_optarg" ;;
 
535
    program_transform_name=$ac_optarg ;;
296
536
 
297
537
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
298
538
  | -silent | --silent | --silen | --sile | --sil)
302
542
    ac_prev=sbindir ;;
303
543
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
304
544
  | --sbi=* | --sb=*)
305
 
    sbindir="$ac_optarg" ;;
 
545
    sbindir=$ac_optarg ;;
306
546
 
307
547
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
308
548
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
313
553
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
314
554
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
315
555
  | --sha=* | --sh=*)
316
 
    sharedstatedir="$ac_optarg" ;;
 
556
    sharedstatedir=$ac_optarg ;;
317
557
 
318
558
  -site | --site | --sit)
319
559
    ac_prev=site ;;
320
560
  -site=* | --site=* | --sit=*)
321
 
    site="$ac_optarg" ;;
 
561
    site=$ac_optarg ;;
322
562
 
323
563
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
324
564
    ac_prev=srcdir ;;
325
565
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
326
 
    srcdir="$ac_optarg" ;;
 
566
    srcdir=$ac_optarg ;;
327
567
 
328
568
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
329
569
  | --syscon | --sysco | --sysc | --sys | --sy)
330
570
    ac_prev=sysconfdir ;;
331
571
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
332
572
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
333
 
    sysconfdir="$ac_optarg" ;;
 
573
    sysconfdir=$ac_optarg ;;
334
574
 
335
575
  -target | --target | --targe | --targ | --tar | --ta | --t)
336
 
    ac_prev=target ;;
 
576
    ac_prev=target_alias ;;
337
577
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
338
 
    target="$ac_optarg" ;;
 
578
    target_alias=$ac_optarg ;;
339
579
 
340
580
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
341
581
    verbose=yes ;;
342
582
 
343
 
  -version | --version | --versio | --versi | --vers)
344
 
    echo "configure generated by autoconf version 2.13"
345
 
    exit 0 ;;
 
583
  -version | --version | --versio | --versi | --vers | -V)
 
584
    ac_init_version=: ;;
346
585
 
347
586
  -with-* | --with-*)
348
 
    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
 
587
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
349
588
    # Reject names that are not valid shell variable names.
350
 
    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
351
 
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
352
 
    fi
 
589
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
590
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
591
   { (exit 1); exit 1; }; }
353
592
    ac_package=`echo $ac_package| sed 's/-/_/g'`
354
 
    case "$ac_option" in
355
 
      *=*) ;;
 
593
    case $ac_option in
 
594
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
356
595
      *) ac_optarg=yes ;;
357
596
    esac
358
 
    eval "with_${ac_package}='$ac_optarg'" ;;
 
597
    eval "with_$ac_package='$ac_optarg'" ;;
359
598
 
360
599
  -without-* | --without-*)
361
 
    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
 
600
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
362
601
    # Reject names that are not valid shell variable names.
363
 
    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
364
 
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
365
 
    fi
366
 
    ac_package=`echo $ac_package| sed 's/-/_/g'`
367
 
    eval "with_${ac_package}=no" ;;
 
602
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
603
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
604
   { (exit 1); exit 1; }; }
 
605
    ac_package=`echo $ac_package | sed 's/-/_/g'`
 
606
    eval "with_$ac_package=no" ;;
368
607
 
369
608
  --x)
370
609
    # Obsolete; use --with-x.
375
614
    ac_prev=x_includes ;;
376
615
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
377
616
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
378
 
    x_includes="$ac_optarg" ;;
 
617
    x_includes=$ac_optarg ;;
379
618
 
380
619
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
381
620
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
382
621
    ac_prev=x_libraries ;;
383
622
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
384
623
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
385
 
    x_libraries="$ac_optarg" ;;
 
624
    x_libraries=$ac_optarg ;;
386
625
 
387
 
  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
 
626
  -*) { echo "$as_me: error: unrecognized option: $ac_option
 
627
Try \`$0 --help' for more information." >&2
 
628
   { (exit 1); exit 1; }; }
388
629
    ;;
389
630
 
 
631
  *=*)
 
632
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 
633
    # Reject names that are not valid shell variable names.
 
634
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
 
635
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
 
636
   { (exit 1); exit 1; }; }
 
637
    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
 
638
    eval "$ac_envvar='$ac_optarg'"
 
639
    export $ac_envvar ;;
 
640
 
390
641
  *)
391
 
    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
392
 
      echo "configure: warning: $ac_option: invalid host type" 1>&2
393
 
    fi
394
 
    if test "x$nonopt" != xNONE; then
395
 
      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
396
 
    fi
397
 
    nonopt="$ac_option"
 
642
    # FIXME: should be removed in autoconf 3.0.
 
643
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
644
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
645
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
646
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
398
647
    ;;
399
648
 
400
649
  esac
401
650
done
402
651
 
403
652
if test -n "$ac_prev"; then
404
 
  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
405
 
fi
406
 
 
407
 
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
408
 
 
409
 
# File descriptor usage:
410
 
# 0 standard input
411
 
# 1 file creation
412
 
# 2 errors and warnings
413
 
# 3 some systems may open it to /dev/tty
414
 
# 4 used on the Kubota Titan
415
 
# 6 checking for... messages and results
416
 
# 5 compiler messages saved in config.log
417
 
if test "$silent" = yes; then
418
 
  exec 6>/dev/null
419
 
else
420
 
  exec 6>&1
421
 
fi
422
 
exec 5>./config.log
423
 
 
424
 
echo "\
425
 
This file contains any messages produced by compilers while
426
 
running configure, to aid debugging if configure makes a mistake.
427
 
" 1>&5
428
 
 
429
 
# Strip out --no-create and --no-recursion so they do not pile up.
430
 
# Also quote any args containing shell metacharacters.
431
 
ac_configure_args=
432
 
for ac_arg
433
 
do
434
 
  case "$ac_arg" in
435
 
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
436
 
  | --no-cr | --no-c) ;;
437
 
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
438
 
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
439
 
  *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
440
 
  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
441
 
  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
442
 
  esac
443
 
done
444
 
 
445
 
# NLS nuisances.
446
 
# Only set these to C if already set.  These must not be set unconditionally
447
 
# because not all systems understand e.g. LANG=C (notably SCO).
448
 
# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
449
 
# Non-C LC_CTYPE values break the ctype check.
450
 
if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
451
 
if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
452
 
if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
453
 
if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
454
 
 
455
 
# confdefs.h avoids OS command line length limits that DEFS can exceed.
456
 
rm -rf conftest* confdefs.h
457
 
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
458
 
echo > confdefs.h
459
 
 
460
 
# A filename unique to this package, relative to the directory that
461
 
# configure is in, which we can look for to find out if srcdir is correct.
462
 
ac_unique_file=configure.in
 
653
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 
654
  { echo "$as_me: error: missing argument to $ac_option" >&2
 
655
   { (exit 1); exit 1; }; }
 
656
fi
 
657
 
 
658
# Be sure to have absolute paths.
 
659
for ac_var in exec_prefix prefix
 
660
do
 
661
  eval ac_val=$`echo $ac_var`
 
662
  case $ac_val in
 
663
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
 
664
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
665
   { (exit 1); exit 1; }; };;
 
666
  esac
 
667
done
 
668
 
 
669
# Be sure to have absolute paths.
 
670
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
 
671
              localstatedir libdir includedir oldincludedir infodir mandir
 
672
do
 
673
  eval ac_val=$`echo $ac_var`
 
674
  case $ac_val in
 
675
    [\\/$]* | ?:[\\/]* ) ;;
 
676
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
677
   { (exit 1); exit 1; }; };;
 
678
  esac
 
679
done
 
680
 
 
681
# There might be people who depend on the old broken behavior: `$host'
 
682
# used to hold the argument of --host etc.
 
683
# FIXME: To remove some day.
 
684
build=$build_alias
 
685
host=$host_alias
 
686
target=$target_alias
 
687
 
 
688
# FIXME: To remove some day.
 
689
if test "x$host_alias" != x; then
 
690
  if test "x$build_alias" = x; then
 
691
    cross_compiling=maybe
 
692
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
 
693
    If a cross compiler is detected then cross compile mode will be used." >&2
 
694
  elif test "x$build_alias" != "x$host_alias"; then
 
695
    cross_compiling=yes
 
696
  fi
 
697
fi
 
698
 
 
699
ac_tool_prefix=
 
700
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
701
 
 
702
test "$silent" = yes && exec 6>/dev/null
 
703
 
463
704
 
464
705
# Find the source files, if location was not specified.
465
706
if test -z "$srcdir"; then
466
707
  ac_srcdir_defaulted=yes
467
708
  # Try the directory containing this script, then its parent.
468
 
  ac_prog=$0
469
 
  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
470
 
  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
 
709
  ac_confdir=`(dirname "$0") 2>/dev/null ||
 
710
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
711
         X"$0" : 'X\(//\)[^/]' \| \
 
712
         X"$0" : 'X\(//\)$' \| \
 
713
         X"$0" : 'X\(/\)' \| \
 
714
         .     : '\(.\)' 2>/dev/null ||
 
715
echo X"$0" |
 
716
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
717
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
718
          /^X\(\/\/\)$/{ s//\1/; q; }
 
719
          /^X\(\/\).*/{ s//\1/; q; }
 
720
          s/.*/./; q'`
471
721
  srcdir=$ac_confdir
472
722
  if test ! -r $srcdir/$ac_unique_file; then
473
723
    srcdir=..
477
727
fi
478
728
if test ! -r $srcdir/$ac_unique_file; then
479
729
  if test "$ac_srcdir_defaulted" = yes; then
480
 
    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
 
730
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
 
731
   { (exit 1); exit 1; }; }
481
732
  else
482
 
    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
 
733
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
 
734
   { (exit 1); exit 1; }; }
483
735
  fi
484
736
fi
485
 
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
486
 
 
 
737
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
 
738
  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
 
739
   { (exit 1); exit 1; }; }
 
740
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
 
741
ac_env_build_alias_set=${build_alias+set}
 
742
ac_env_build_alias_value=$build_alias
 
743
ac_cv_env_build_alias_set=${build_alias+set}
 
744
ac_cv_env_build_alias_value=$build_alias
 
745
ac_env_host_alias_set=${host_alias+set}
 
746
ac_env_host_alias_value=$host_alias
 
747
ac_cv_env_host_alias_set=${host_alias+set}
 
748
ac_cv_env_host_alias_value=$host_alias
 
749
ac_env_target_alias_set=${target_alias+set}
 
750
ac_env_target_alias_value=$target_alias
 
751
ac_cv_env_target_alias_set=${target_alias+set}
 
752
ac_cv_env_target_alias_value=$target_alias
 
753
ac_env_CC_set=${CC+set}
 
754
ac_env_CC_value=$CC
 
755
ac_cv_env_CC_set=${CC+set}
 
756
ac_cv_env_CC_value=$CC
 
757
ac_env_CFLAGS_set=${CFLAGS+set}
 
758
ac_env_CFLAGS_value=$CFLAGS
 
759
ac_cv_env_CFLAGS_set=${CFLAGS+set}
 
760
ac_cv_env_CFLAGS_value=$CFLAGS
 
761
ac_env_LDFLAGS_set=${LDFLAGS+set}
 
762
ac_env_LDFLAGS_value=$LDFLAGS
 
763
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
 
764
ac_cv_env_LDFLAGS_value=$LDFLAGS
 
765
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
 
766
ac_env_CPPFLAGS_value=$CPPFLAGS
 
767
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
 
768
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
 
769
ac_env_CXX_set=${CXX+set}
 
770
ac_env_CXX_value=$CXX
 
771
ac_cv_env_CXX_set=${CXX+set}
 
772
ac_cv_env_CXX_value=$CXX
 
773
ac_env_CXXFLAGS_set=${CXXFLAGS+set}
 
774
ac_env_CXXFLAGS_value=$CXXFLAGS
 
775
ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
 
776
ac_cv_env_CXXFLAGS_value=$CXXFLAGS
 
777
ac_env_CPP_set=${CPP+set}
 
778
ac_env_CPP_value=$CPP
 
779
ac_cv_env_CPP_set=${CPP+set}
 
780
ac_cv_env_CPP_value=$CPP
 
781
 
 
782
#
 
783
# Report the --help message.
 
784
#
 
785
if test "$ac_init_help" = "long"; then
 
786
  # Omit some internal or obsolete options to make the list less imposing.
 
787
  # This message is too long to be a string in the A/UX 3.1 sh.
 
788
  cat <<_ACEOF
 
789
\`configure' configures this package to adapt to many kinds of systems.
 
790
 
 
791
Usage: $0 [OPTION]... [VAR=VALUE]...
 
792
 
 
793
To assign environment variables (e.g., CC, CFLAGS...), specify them as
 
794
VAR=VALUE.  See below for descriptions of some of the useful variables.
 
795
 
 
796
Defaults for the options are specified in brackets.
 
797
 
 
798
Configuration:
 
799
  -h, --help              display this help and exit
 
800
      --help=short        display options specific to this package
 
801
      --help=recursive    display the short help of all the included packages
 
802
  -V, --version           display version information and exit
 
803
  -q, --quiet, --silent   do not print \`checking...' messages
 
804
      --cache-file=FILE   cache test results in FILE [disabled]
 
805
  -C, --config-cache      alias for \`--cache-file=config.cache'
 
806
  -n, --no-create         do not create output files
 
807
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 
808
 
 
809
_ACEOF
 
810
 
 
811
  cat <<_ACEOF
 
812
Installation directories:
 
813
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
814
                          [$ac_default_prefix]
 
815
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
816
                          [PREFIX]
 
817
 
 
818
By default, \`make install' will install all the files in
 
819
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 
820
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 
821
for instance \`--prefix=\$HOME'.
 
822
 
 
823
For better control, use the options below.
 
824
 
 
825
Fine tuning of the installation directories:
 
826
  --bindir=DIR           user executables [EPREFIX/bin]
 
827
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
 
828
  --libexecdir=DIR       program executables [EPREFIX/libexec]
 
829
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
 
830
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
 
831
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
 
832
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
 
833
  --libdir=DIR           object code libraries [EPREFIX/lib]
 
834
  --includedir=DIR       C header files [PREFIX/include]
 
835
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
 
836
  --infodir=DIR          info documentation [PREFIX/info]
 
837
  --mandir=DIR           man documentation [PREFIX/man]
 
838
_ACEOF
 
839
 
 
840
  cat <<\_ACEOF
 
841
 
 
842
System types:
 
843
  --build=BUILD     configure for building on BUILD [guessed]
 
844
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
 
845
  --target=TARGET   configure for building compilers for TARGET [HOST]
 
846
_ACEOF
 
847
fi
 
848
 
 
849
if test -n "$ac_init_help"; then
 
850
 
 
851
  cat <<\_ACEOF
 
852
 
 
853
Optional Features:
 
854
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
855
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
856
  --disable-nls           do not use Native Language Support
 
857
  --disable-rpath         do not hardcode runtime library paths
 
858
 
 
859
Optional Packages:
 
860
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
861
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
862
  --with-cpus             The number of cpus to be used for building(see --with-procs, default 1)
 
863
  --with-getconf          Enable automagical buildtime configuration
 
864
  --with-proc-multiply    Multiply this * number of cpus for parallel making(default 2).
 
865
  --with-procs            The number of processes to run in parallel during make(num_cpus * multiplier).
 
866
  --with-gnu-ld           assume the C compiler uses GNU ld default=no
 
867
  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
 
868
  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
 
869
  --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
 
870
  --without-libintl-prefix     don't search for libintl in includedir and libdir
 
871
 
 
872
Some influential environment variables:
 
873
  CC          C compiler command
 
874
  CFLAGS      C compiler flags
 
875
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
876
              nonstandard directory <lib dir>
 
877
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
 
878
              headers in a nonstandard directory <include dir>
 
879
  CXX         C++ compiler command
 
880
  CXXFLAGS    C++ compiler flags
 
881
  CPP         C preprocessor
 
882
 
 
883
Use these variables to override the choices made by `configure' or to help
 
884
it to find libraries and programs with nonstandard names/locations.
 
885
 
 
886
_ACEOF
 
887
fi
 
888
 
 
889
if test "$ac_init_help" = "recursive"; then
 
890
  # If there are subdirs, report their specific --help.
 
891
  ac_popdir=`pwd`
 
892
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
893
    test -d $ac_dir || continue
 
894
    ac_builddir=.
 
895
 
 
896
if test "$ac_dir" != .; then
 
897
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
898
  # A "../" for each directory in $ac_dir_suffix.
 
899
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
900
else
 
901
  ac_dir_suffix= ac_top_builddir=
 
902
fi
 
903
 
 
904
case $srcdir in
 
905
  .)  # No --srcdir option.  We are building in place.
 
906
    ac_srcdir=.
 
907
    if test -z "$ac_top_builddir"; then
 
908
       ac_top_srcdir=.
 
909
    else
 
910
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
911
    fi ;;
 
912
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
913
    ac_srcdir=$srcdir$ac_dir_suffix;
 
914
    ac_top_srcdir=$srcdir ;;
 
915
  *) # Relative path.
 
916
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
917
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
918
esac
 
919
 
 
920
# Do not use `cd foo && pwd` to compute absolute paths, because
 
921
# the directories may not exist.
 
922
case `pwd` in
 
923
.) ac_abs_builddir="$ac_dir";;
 
924
*)
 
925
  case "$ac_dir" in
 
926
  .) ac_abs_builddir=`pwd`;;
 
927
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
928
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
929
  esac;;
 
930
esac
 
931
case $ac_abs_builddir in
 
932
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
933
*)
 
934
  case ${ac_top_builddir}. in
 
935
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
936
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
937
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
938
  esac;;
 
939
esac
 
940
case $ac_abs_builddir in
 
941
.) ac_abs_srcdir=$ac_srcdir;;
 
942
*)
 
943
  case $ac_srcdir in
 
944
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
945
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
946
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
947
  esac;;
 
948
esac
 
949
case $ac_abs_builddir in
 
950
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
951
*)
 
952
  case $ac_top_srcdir in
 
953
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
954
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
955
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
956
  esac;;
 
957
esac
 
958
 
 
959
    cd $ac_dir
 
960
    # Check for guested configure; otherwise get Cygnus style configure.
 
961
    if test -f $ac_srcdir/configure.gnu; then
 
962
      echo
 
963
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
 
964
    elif test -f $ac_srcdir/configure; then
 
965
      echo
 
966
      $SHELL $ac_srcdir/configure  --help=recursive
 
967
    elif test -f $ac_srcdir/configure.ac ||
 
968
           test -f $ac_srcdir/configure.in; then
 
969
      echo
 
970
      $ac_configure --help
 
971
    else
 
972
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
973
    fi
 
974
    cd "$ac_popdir"
 
975
  done
 
976
fi
 
977
 
 
978
test -n "$ac_init_help" && exit 0
 
979
if $ac_init_version; then
 
980
  cat <<\_ACEOF
 
981
 
 
982
Copyright (C) 2003 Free Software Foundation, Inc.
 
983
This configure script is free software; the Free Software Foundation
 
984
gives unlimited permission to copy, distribute and modify it.
 
985
_ACEOF
 
986
  exit 0
 
987
fi
 
988
exec 5>config.log
 
989
cat >&5 <<_ACEOF
 
990
This file contains any messages produced by compilers while
 
991
running configure, to aid debugging if configure makes a mistake.
 
992
 
 
993
It was created by $as_me, which was
 
994
generated by GNU Autoconf 2.59.  Invocation command line was
 
995
 
 
996
  $ $0 $@
 
997
 
 
998
_ACEOF
 
999
{
 
1000
cat <<_ASUNAME
 
1001
## --------- ##
 
1002
## Platform. ##
 
1003
## --------- ##
 
1004
 
 
1005
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
1006
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
1007
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
1008
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
1009
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
1010
 
 
1011
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
1012
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
1013
 
 
1014
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
1015
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
1016
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
1017
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
 
1018
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
1019
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
1020
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
1021
 
 
1022
_ASUNAME
 
1023
 
 
1024
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1025
for as_dir in $PATH
 
1026
do
 
1027
  IFS=$as_save_IFS
 
1028
  test -z "$as_dir" && as_dir=.
 
1029
  echo "PATH: $as_dir"
 
1030
done
 
1031
 
 
1032
} >&5
 
1033
 
 
1034
cat >&5 <<_ACEOF
 
1035
 
 
1036
 
 
1037
## ----------- ##
 
1038
## Core tests. ##
 
1039
## ----------- ##
 
1040
 
 
1041
_ACEOF
 
1042
 
 
1043
 
 
1044
# Keep a trace of the command line.
 
1045
# Strip out --no-create and --no-recursion so they do not pile up.
 
1046
# Strip out --silent because we don't want to record it for future runs.
 
1047
# Also quote any args containing shell meta-characters.
 
1048
# Make two passes to allow for proper duplicate-argument suppression.
 
1049
ac_configure_args=
 
1050
ac_configure_args0=
 
1051
ac_configure_args1=
 
1052
ac_sep=
 
1053
ac_must_keep_next=false
 
1054
for ac_pass in 1 2
 
1055
do
 
1056
  for ac_arg
 
1057
  do
 
1058
    case $ac_arg in
 
1059
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
1060
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1061
    | -silent | --silent | --silen | --sile | --sil)
 
1062
      continue ;;
 
1063
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1064
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1065
    esac
 
1066
    case $ac_pass in
 
1067
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
 
1068
    2)
 
1069
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
 
1070
      if test $ac_must_keep_next = true; then
 
1071
        ac_must_keep_next=false # Got value, back to normal.
 
1072
      else
 
1073
        case $ac_arg in
 
1074
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
1075
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
1076
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
1077
          | -with-* | --with-* | -without-* | --without-* | --x)
 
1078
            case "$ac_configure_args0 " in
 
1079
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
1080
            esac
 
1081
            ;;
 
1082
          -* ) ac_must_keep_next=true ;;
 
1083
        esac
 
1084
      fi
 
1085
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
 
1086
      # Get rid of the leading space.
 
1087
      ac_sep=" "
 
1088
      ;;
 
1089
    esac
 
1090
  done
 
1091
done
 
1092
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
 
1093
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
 
1094
 
 
1095
# When interrupted or exit'd, cleanup temporary files, and complete
 
1096
# config.log.  We remove comments because anyway the quotes in there
 
1097
# would cause problems or look ugly.
 
1098
# WARNING: Be sure not to use single quotes in there, as some shells,
 
1099
# such as our DU 5.0 friend, will then `close' the trap.
 
1100
trap 'exit_status=$?
 
1101
  # Save into config.log some information that might help in debugging.
 
1102
  {
 
1103
    echo
 
1104
 
 
1105
    cat <<\_ASBOX
 
1106
## ---------------- ##
 
1107
## Cache variables. ##
 
1108
## ---------------- ##
 
1109
_ASBOX
 
1110
    echo
 
1111
    # The following way of writing the cache mishandles newlines in values,
 
1112
{
 
1113
  (set) 2>&1 |
 
1114
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
 
1115
    *ac_space=\ *)
 
1116
      sed -n \
 
1117
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
 
1118
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
 
1119
      ;;
 
1120
    *)
 
1121
      sed -n \
 
1122
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
1123
      ;;
 
1124
    esac;
 
1125
}
 
1126
    echo
 
1127
 
 
1128
    cat <<\_ASBOX
 
1129
## ----------------- ##
 
1130
## Output variables. ##
 
1131
## ----------------- ##
 
1132
_ASBOX
 
1133
    echo
 
1134
    for ac_var in $ac_subst_vars
 
1135
    do
 
1136
      eval ac_val=$`echo $ac_var`
 
1137
      echo "$ac_var='"'"'$ac_val'"'"'"
 
1138
    done | sort
 
1139
    echo
 
1140
 
 
1141
    if test -n "$ac_subst_files"; then
 
1142
      cat <<\_ASBOX
 
1143
## ------------- ##
 
1144
## Output files. ##
 
1145
## ------------- ##
 
1146
_ASBOX
 
1147
      echo
 
1148
      for ac_var in $ac_subst_files
 
1149
      do
 
1150
        eval ac_val=$`echo $ac_var`
 
1151
        echo "$ac_var='"'"'$ac_val'"'"'"
 
1152
      done | sort
 
1153
      echo
 
1154
    fi
 
1155
 
 
1156
    if test -s confdefs.h; then
 
1157
      cat <<\_ASBOX
 
1158
## ----------- ##
 
1159
## confdefs.h. ##
 
1160
## ----------- ##
 
1161
_ASBOX
 
1162
      echo
 
1163
      sed "/^$/d" confdefs.h | sort
 
1164
      echo
 
1165
    fi
 
1166
    test "$ac_signal" != 0 &&
 
1167
      echo "$as_me: caught signal $ac_signal"
 
1168
    echo "$as_me: exit $exit_status"
 
1169
  } >&5
 
1170
  rm -f core *.core &&
 
1171
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
 
1172
    exit $exit_status
 
1173
     ' 0
 
1174
for ac_signal in 1 2 13 15; do
 
1175
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
 
1176
done
 
1177
ac_signal=0
 
1178
 
 
1179
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
1180
rm -rf conftest* confdefs.h
 
1181
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
 
1182
echo >confdefs.h
 
1183
 
 
1184
# Predefined preprocessor variables.
 
1185
 
 
1186
cat >>confdefs.h <<_ACEOF
 
1187
#define PACKAGE_NAME "$PACKAGE_NAME"
 
1188
_ACEOF
 
1189
 
 
1190
 
 
1191
cat >>confdefs.h <<_ACEOF
 
1192
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
1193
_ACEOF
 
1194
 
 
1195
 
 
1196
cat >>confdefs.h <<_ACEOF
 
1197
#define PACKAGE_VERSION "$PACKAGE_VERSION"
 
1198
_ACEOF
 
1199
 
 
1200
 
 
1201
cat >>confdefs.h <<_ACEOF
 
1202
#define PACKAGE_STRING "$PACKAGE_STRING"
 
1203
_ACEOF
 
1204
 
 
1205
 
 
1206
cat >>confdefs.h <<_ACEOF
 
1207
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
1208
_ACEOF
 
1209
 
 
1210
 
 
1211
# Let the site file select an alternate cache file if it wants to.
487
1212
# Prefer explicitly selected file to automatically selected ones.
488
1213
if test -z "$CONFIG_SITE"; then
489
1214
  if test "x$prefix" != xNONE; then
494
1219
fi
495
1220
for ac_site_file in $CONFIG_SITE; do
496
1221
  if test -r "$ac_site_file"; then
497
 
    echo "loading site script $ac_site_file"
 
1222
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
 
1223
echo "$as_me: loading site script $ac_site_file" >&6;}
 
1224
    sed 's/^/| /' "$ac_site_file" >&5
498
1225
    . "$ac_site_file"
499
1226
  fi
500
1227
done
501
1228
 
502
1229
if test -r "$cache_file"; then
503
 
  echo "loading cache $cache_file"
504
 
  . $cache_file
 
1230
  # Some versions of bash will fail to source /dev/null (special
 
1231
  # files actually), so we avoid doing that.
 
1232
  if test -f "$cache_file"; then
 
1233
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
 
1234
echo "$as_me: loading cache $cache_file" >&6;}
 
1235
    case $cache_file in
 
1236
      [\\/]* | ?:[\\/]* ) . $cache_file;;
 
1237
      *)                      . ./$cache_file;;
 
1238
    esac
 
1239
  fi
505
1240
else
506
 
  echo "creating cache $cache_file"
507
 
  > $cache_file
 
1241
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
 
1242
echo "$as_me: creating cache $cache_file" >&6;}
 
1243
  >$cache_file
 
1244
fi
 
1245
 
 
1246
# Check that the precious variables saved in the cache have kept the same
 
1247
# value.
 
1248
ac_cache_corrupted=false
 
1249
for ac_var in `(set) 2>&1 |
 
1250
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
 
1251
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
1252
  eval ac_new_set=\$ac_env_${ac_var}_set
 
1253
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
 
1254
  eval ac_new_val="\$ac_env_${ac_var}_value"
 
1255
  case $ac_old_set,$ac_new_set in
 
1256
    set,)
 
1257
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
1258
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
1259
      ac_cache_corrupted=: ;;
 
1260
    ,set)
 
1261
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
 
1262
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
1263
      ac_cache_corrupted=: ;;
 
1264
    ,);;
 
1265
    *)
 
1266
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
1267
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
 
1268
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
1269
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
 
1270
echo "$as_me:   former value:  $ac_old_val" >&2;}
 
1271
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
 
1272
echo "$as_me:   current value: $ac_new_val" >&2;}
 
1273
        ac_cache_corrupted=:
 
1274
      fi;;
 
1275
  esac
 
1276
  # Pass precious variables to config.status.
 
1277
  if test "$ac_new_set" = set; then
 
1278
    case $ac_new_val in
 
1279
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1280
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1281
    *) ac_arg=$ac_var=$ac_new_val ;;
 
1282
    esac
 
1283
    case " $ac_configure_args " in
 
1284
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
1285
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
 
1286
    esac
 
1287
  fi
 
1288
done
 
1289
if $ac_cache_corrupted; then
 
1290
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
 
1291
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
1292
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
 
1293
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
 
1294
   { (exit 1); exit 1; }; }
508
1295
fi
509
1296
 
510
1297
ac_ext=c
511
 
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
512
1298
ac_cpp='$CPP $CPPFLAGS'
513
 
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
514
 
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
515
 
cross_compiling=$ac_cv_prog_cc_cross
516
 
 
517
 
ac_exeext=
518
 
ac_objext=o
519
 
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
520
 
  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
521
 
  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
522
 
    ac_n= ac_c='
523
 
' ac_t='        '
524
 
  else
525
 
    ac_n=-n ac_c= ac_t=
526
 
  fi
527
 
else
528
 
  ac_n= ac_c='\c' ac_t=
529
 
fi
 
1299
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
1300
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
1301
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
1302
 
 
1303
 
 
1304
 
 
1305
 
 
1306
 
 
1307
 
 
1308
 
 
1309
 
 
1310
 
 
1311
 
 
1312
 
 
1313
 
 
1314
 
 
1315
 
 
1316
 
 
1317
 
 
1318
 
530
1319
 
531
1320
 
532
1321
ac_aux_dir=
539
1328
    ac_aux_dir=$ac_dir
540
1329
    ac_install_sh="$ac_aux_dir/install.sh -c"
541
1330
    break
 
1331
  elif test -f $ac_dir/shtool; then
 
1332
    ac_aux_dir=$ac_dir
 
1333
    ac_install_sh="$ac_aux_dir/shtool install -c"
 
1334
    break
542
1335
  fi
543
1336
done
544
1337
if test -z "$ac_aux_dir"; then
545
 
  { echo "configure: error: can not find install-sh or install.sh in buildlib $srcdir/buildlib" 1>&2; exit 1; }
546
 
fi
547
 
ac_config_guess=$ac_aux_dir/config.guess
548
 
ac_config_sub=$ac_aux_dir/config.sub
549
 
ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
550
 
 
551
 
 
552
 
 
553
 
cat >> confdefs.h <<EOF
554
 
#define VERSION "0.5.4"
555
 
EOF
556
 
 
557
 
cat >> confdefs.h <<EOF
558
 
#define PACKAGE "apt"
559
 
EOF
560
 
 
561
 
 
562
 
 
563
 
# Do some error checking and defaulting for the host and target type.
564
 
# The inputs are:
565
 
#    configure --host=HOST --target=TARGET --build=BUILD NONOPT
566
 
#
567
 
# The rules are:
568
 
# 1. You are not allowed to specify --host, --target, and nonopt at the
569
 
#    same time.
570
 
# 2. Host defaults to nonopt.
571
 
# 3. If nonopt is not specified, then host defaults to the current host,
572
 
#    as determined by config.guess.
573
 
# 4. Target and build default to nonopt.
574
 
# 5. If nonopt is not specified, then target and build default to host.
 
1338
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in buildlib $srcdir/buildlib" >&5
 
1339
echo "$as_me: error: cannot find install-sh or install.sh in buildlib $srcdir/buildlib" >&2;}
 
1340
   { (exit 1); exit 1; }; }
 
1341
fi
 
1342
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
 
1343
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
 
1344
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
 
1345
 
 
1346
                    ac_config_headers="$ac_config_headers include/config.h:buildlib/config.h.in include/apti18n.h:buildlib/apti18n.h.in"
 
1347
 
 
1348
 
 
1349
cat >>confdefs.h <<_ACEOF
 
1350
#define VERSION "0.6.35"
 
1351
_ACEOF
 
1352
 
 
1353
PACKAGE="apt"
 
1354
cat >>confdefs.h <<_ACEOF
 
1355
#define PACKAGE "$PACKAGE"
 
1356
_ACEOF
 
1357
 
 
1358
 
 
1359
 
 
1360
# Make sure we can run config.sub.
 
1361
$ac_config_sub sun4 >/dev/null 2>&1 ||
 
1362
  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
 
1363
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
 
1364
   { (exit 1); exit 1; }; }
 
1365
 
 
1366
echo "$as_me:$LINENO: checking build system type" >&5
 
1367
echo $ECHO_N "checking build system type... $ECHO_C" >&6
 
1368
if test "${ac_cv_build+set}" = set; then
 
1369
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1370
else
 
1371
  ac_cv_build_alias=$build_alias
 
1372
test -z "$ac_cv_build_alias" &&
 
1373
  ac_cv_build_alias=`$ac_config_guess`
 
1374
test -z "$ac_cv_build_alias" &&
 
1375
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
 
1376
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
 
1377
   { (exit 1); exit 1; }; }
 
1378
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
 
1379
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
 
1380
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
 
1381
   { (exit 1); exit 1; }; }
 
1382
 
 
1383
fi
 
1384
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
 
1385
echo "${ECHO_T}$ac_cv_build" >&6
 
1386
build=$ac_cv_build
 
1387
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
1388
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
1389
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
1390
 
 
1391
 
 
1392
echo "$as_me:$LINENO: checking host system type" >&5
 
1393
echo $ECHO_N "checking host system type... $ECHO_C" >&6
 
1394
if test "${ac_cv_host+set}" = set; then
 
1395
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1396
else
 
1397
  ac_cv_host_alias=$host_alias
 
1398
test -z "$ac_cv_host_alias" &&
 
1399
  ac_cv_host_alias=$ac_cv_build_alias
 
1400
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
 
1401
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
 
1402
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
 
1403
   { (exit 1); exit 1; }; }
 
1404
 
 
1405
fi
 
1406
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
 
1407
echo "${ECHO_T}$ac_cv_host" >&6
 
1408
host=$ac_cv_host
 
1409
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
1410
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
1411
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
1412
 
 
1413
 
 
1414
echo "$as_me:$LINENO: checking target system type" >&5
 
1415
echo $ECHO_N "checking target system type... $ECHO_C" >&6
 
1416
if test "${ac_cv_target+set}" = set; then
 
1417
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1418
else
 
1419
  ac_cv_target_alias=$target_alias
 
1420
test "x$ac_cv_target_alias" = "x" &&
 
1421
  ac_cv_target_alias=$ac_cv_host_alias
 
1422
ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
 
1423
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
 
1424
echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
 
1425
   { (exit 1); exit 1; }; }
 
1426
 
 
1427
fi
 
1428
echo "$as_me:$LINENO: result: $ac_cv_target" >&5
 
1429
echo "${ECHO_T}$ac_cv_target" >&6
 
1430
target=$ac_cv_target
 
1431
target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
1432
target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
1433
target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
1434
 
575
1435
 
576
1436
# The aliases save the names the user supplied, while $host etc.
577
1437
# will get canonicalized.
578
 
case $host---$target---$nonopt in
579
 
NONE---*---* | *---NONE---* | *---*---NONE) ;;
580
 
*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
581
 
esac
582
 
 
583
 
 
584
 
# Make sure we can run config.sub.
585
 
if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
586
 
else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
587
 
fi
588
 
 
589
 
echo $ac_n "checking host system type""... $ac_c" 1>&6
590
 
echo "configure:591: checking host system type" >&5
591
 
 
592
 
host_alias=$host
593
 
case "$host_alias" in
594
 
NONE)
595
 
  case $nonopt in
596
 
  NONE)
597
 
    if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
598
 
    else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
599
 
    fi ;;
600
 
  *) host_alias=$nonopt ;;
601
 
  esac ;;
602
 
esac
603
 
 
604
 
host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
605
 
host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
606
 
host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
607
 
host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
608
 
echo "$ac_t""$host" 1>&6
609
 
 
610
 
echo $ac_n "checking target system type""... $ac_c" 1>&6
611
 
echo "configure:612: checking target system type" >&5
612
 
 
613
 
target_alias=$target
614
 
case "$target_alias" in
615
 
NONE)
616
 
  case $nonopt in
617
 
  NONE) target_alias=$host_alias ;;
618
 
  *) target_alias=$nonopt ;;
619
 
  esac ;;
620
 
esac
621
 
 
622
 
target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
623
 
target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
624
 
target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
625
 
target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
626
 
echo "$ac_t""$target" 1>&6
627
 
 
628
 
echo $ac_n "checking build system type""... $ac_c" 1>&6
629
 
echo "configure:630: checking build system type" >&5
630
 
 
631
 
build_alias=$build
632
 
case "$build_alias" in
633
 
NONE)
634
 
  case $nonopt in
635
 
  NONE) build_alias=$host_alias ;;
636
 
  *) build_alias=$nonopt ;;
637
 
  esac ;;
638
 
esac
639
 
 
640
 
build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
641
 
build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
642
 
build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
643
 
build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
644
 
echo "$ac_t""$build" 1>&6
645
 
 
646
 
test "$host_alias" != "$target_alias" &&
 
1438
test -n "$target_alias" &&
647
1439
  test "$program_prefix$program_suffix$program_transform_name" = \
648
1440
    NONENONEs,x,x, &&
649
1441
  program_prefix=${target_alias}-
650
1442
 
651
1443
 
652
 
if test $host != $build; then
653
 
  ac_tool_prefix=${host_alias}-
654
 
else
655
 
  ac_tool_prefix=
656
 
fi
657
 
 
658
 
# Extract the first word of "gcc", so it can be a program name with args.
 
1444
ac_ext=c
 
1445
ac_cpp='$CPP $CPPFLAGS'
 
1446
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
1447
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
1448
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
1449
if test -n "$ac_tool_prefix"; then
 
1450
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
1451
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
1452
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1453
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1454
if test "${ac_cv_prog_CC+set}" = set; then
 
1455
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1456
else
 
1457
  if test -n "$CC"; then
 
1458
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
1459
else
 
1460
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1461
for as_dir in $PATH
 
1462
do
 
1463
  IFS=$as_save_IFS
 
1464
  test -z "$as_dir" && as_dir=.
 
1465
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1466
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1467
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
1468
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1469
    break 2
 
1470
  fi
 
1471
done
 
1472
done
 
1473
 
 
1474
fi
 
1475
fi
 
1476
CC=$ac_cv_prog_CC
 
1477
if test -n "$CC"; then
 
1478
  echo "$as_me:$LINENO: result: $CC" >&5
 
1479
echo "${ECHO_T}$CC" >&6
 
1480
else
 
1481
  echo "$as_me:$LINENO: result: no" >&5
 
1482
echo "${ECHO_T}no" >&6
 
1483
fi
 
1484
 
 
1485
fi
 
1486
if test -z "$ac_cv_prog_CC"; then
 
1487
  ac_ct_CC=$CC
 
1488
  # Extract the first word of "gcc", so it can be a program name with args.
659
1489
set dummy gcc; ac_word=$2
660
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
661
 
echo "configure:662: checking for $ac_word" >&5
662
 
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
663
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
1490
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1491
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1492
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
1493
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1494
else
 
1495
  if test -n "$ac_ct_CC"; then
 
1496
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
1497
else
 
1498
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1499
for as_dir in $PATH
 
1500
do
 
1501
  IFS=$as_save_IFS
 
1502
  test -z "$as_dir" && as_dir=.
 
1503
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1504
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1505
    ac_cv_prog_ac_ct_CC="gcc"
 
1506
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1507
    break 2
 
1508
  fi
 
1509
done
 
1510
done
 
1511
 
 
1512
fi
 
1513
fi
 
1514
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
1515
if test -n "$ac_ct_CC"; then
 
1516
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
1517
echo "${ECHO_T}$ac_ct_CC" >&6
 
1518
else
 
1519
  echo "$as_me:$LINENO: result: no" >&5
 
1520
echo "${ECHO_T}no" >&6
 
1521
fi
 
1522
 
 
1523
  CC=$ac_ct_CC
 
1524
else
 
1525
  CC="$ac_cv_prog_CC"
 
1526
fi
 
1527
 
 
1528
if test -z "$CC"; then
 
1529
  if test -n "$ac_tool_prefix"; then
 
1530
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
1531
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
1532
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1533
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1534
if test "${ac_cv_prog_CC+set}" = set; then
 
1535
  echo $ECHO_N "(cached) $ECHO_C" >&6
664
1536
else
665
1537
  if test -n "$CC"; then
666
1538
  ac_cv_prog_CC="$CC" # Let the user override the test.
667
1539
else
668
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
669
 
  ac_dummy="$PATH"
670
 
  for ac_dir in $ac_dummy; do
671
 
    test -z "$ac_dir" && ac_dir=.
672
 
    if test -f $ac_dir/$ac_word; then
673
 
      ac_cv_prog_CC="gcc"
674
 
      break
675
 
    fi
676
 
  done
677
 
  IFS="$ac_save_ifs"
678
 
fi
679
 
fi
680
 
CC="$ac_cv_prog_CC"
 
1540
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1541
for as_dir in $PATH
 
1542
do
 
1543
  IFS=$as_save_IFS
 
1544
  test -z "$as_dir" && as_dir=.
 
1545
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1546
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1547
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
1548
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1549
    break 2
 
1550
  fi
 
1551
done
 
1552
done
 
1553
 
 
1554
fi
 
1555
fi
 
1556
CC=$ac_cv_prog_CC
681
1557
if test -n "$CC"; then
682
 
  echo "$ac_t""$CC" 1>&6
683
 
else
684
 
  echo "$ac_t""no" 1>&6
685
 
fi
686
 
 
 
1558
  echo "$as_me:$LINENO: result: $CC" >&5
 
1559
echo "${ECHO_T}$CC" >&6
 
1560
else
 
1561
  echo "$as_me:$LINENO: result: no" >&5
 
1562
echo "${ECHO_T}no" >&6
 
1563
fi
 
1564
 
 
1565
fi
 
1566
if test -z "$ac_cv_prog_CC"; then
 
1567
  ac_ct_CC=$CC
 
1568
  # Extract the first word of "cc", so it can be a program name with args.
 
1569
set dummy cc; ac_word=$2
 
1570
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1571
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1572
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
1573
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1574
else
 
1575
  if test -n "$ac_ct_CC"; then
 
1576
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
1577
else
 
1578
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1579
for as_dir in $PATH
 
1580
do
 
1581
  IFS=$as_save_IFS
 
1582
  test -z "$as_dir" && as_dir=.
 
1583
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1584
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1585
    ac_cv_prog_ac_ct_CC="cc"
 
1586
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1587
    break 2
 
1588
  fi
 
1589
done
 
1590
done
 
1591
 
 
1592
fi
 
1593
fi
 
1594
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
1595
if test -n "$ac_ct_CC"; then
 
1596
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
1597
echo "${ECHO_T}$ac_ct_CC" >&6
 
1598
else
 
1599
  echo "$as_me:$LINENO: result: no" >&5
 
1600
echo "${ECHO_T}no" >&6
 
1601
fi
 
1602
 
 
1603
  CC=$ac_ct_CC
 
1604
else
 
1605
  CC="$ac_cv_prog_CC"
 
1606
fi
 
1607
 
 
1608
fi
687
1609
if test -z "$CC"; then
688
1610
  # Extract the first word of "cc", so it can be a program name with args.
689
1611
set dummy cc; ac_word=$2
690
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
691
 
echo "configure:692: checking for $ac_word" >&5
692
 
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
693
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
1612
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1613
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1614
if test "${ac_cv_prog_CC+set}" = set; then
 
1615
  echo $ECHO_N "(cached) $ECHO_C" >&6
694
1616
else
695
1617
  if test -n "$CC"; then
696
1618
  ac_cv_prog_CC="$CC" # Let the user override the test.
697
1619
else
698
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
699
1620
  ac_prog_rejected=no
700
 
  ac_dummy="$PATH"
701
 
  for ac_dir in $ac_dummy; do
702
 
    test -z "$ac_dir" && ac_dir=.
703
 
    if test -f $ac_dir/$ac_word; then
704
 
      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
705
 
        ac_prog_rejected=yes
706
 
        continue
707
 
      fi
708
 
      ac_cv_prog_CC="cc"
709
 
      break
710
 
    fi
711
 
  done
712
 
  IFS="$ac_save_ifs"
 
1621
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1622
for as_dir in $PATH
 
1623
do
 
1624
  IFS=$as_save_IFS
 
1625
  test -z "$as_dir" && as_dir=.
 
1626
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1627
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1628
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
1629
       ac_prog_rejected=yes
 
1630
       continue
 
1631
     fi
 
1632
    ac_cv_prog_CC="cc"
 
1633
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1634
    break 2
 
1635
  fi
 
1636
done
 
1637
done
 
1638
 
713
1639
if test $ac_prog_rejected = yes; then
714
1640
  # We found a bogon in the path, so make sure we never use it.
715
1641
  set dummy $ac_cv_prog_CC
716
1642
  shift
717
 
  if test $# -gt 0; then
 
1643
  if test $# != 0; then
718
1644
    # We chose a different compiler from the bogus one.
719
1645
    # However, it has the same basename, so the bogon will be chosen
720
1646
    # first if we set CC to just the basename; use the full file name.
721
1647
    shift
722
 
    set dummy "$ac_dir/$ac_word" "$@"
723
 
    shift
724
 
    ac_cv_prog_CC="$@"
 
1648
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
725
1649
  fi
726
1650
fi
727
1651
fi
728
1652
fi
729
 
CC="$ac_cv_prog_CC"
 
1653
CC=$ac_cv_prog_CC
730
1654
if test -n "$CC"; then
731
 
  echo "$ac_t""$CC" 1>&6
 
1655
  echo "$as_me:$LINENO: result: $CC" >&5
 
1656
echo "${ECHO_T}$CC" >&6
732
1657
else
733
 
  echo "$ac_t""no" 1>&6
 
1658
  echo "$as_me:$LINENO: result: no" >&5
 
1659
echo "${ECHO_T}no" >&6
734
1660
fi
735
1661
 
736
 
  if test -z "$CC"; then
737
 
    case "`uname -s`" in
738
 
    *win32* | *WIN32*)
739
 
      # Extract the first word of "cl", so it can be a program name with args.
740
 
set dummy cl; ac_word=$2
741
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
742
 
echo "configure:743: checking for $ac_word" >&5
743
 
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
744
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
1662
fi
 
1663
if test -z "$CC"; then
 
1664
  if test -n "$ac_tool_prefix"; then
 
1665
  for ac_prog in cl
 
1666
  do
 
1667
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
1668
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
1669
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1670
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1671
if test "${ac_cv_prog_CC+set}" = set; then
 
1672
  echo $ECHO_N "(cached) $ECHO_C" >&6
745
1673
else
746
1674
  if test -n "$CC"; then
747
1675
  ac_cv_prog_CC="$CC" # Let the user override the test.
748
1676
else
749
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
750
 
  ac_dummy="$PATH"
751
 
  for ac_dir in $ac_dummy; do
752
 
    test -z "$ac_dir" && ac_dir=.
753
 
    if test -f $ac_dir/$ac_word; then
754
 
      ac_cv_prog_CC="cl"
755
 
      break
756
 
    fi
 
1677
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1678
for as_dir in $PATH
 
1679
do
 
1680
  IFS=$as_save_IFS
 
1681
  test -z "$as_dir" && as_dir=.
 
1682
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1683
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1684
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
1685
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1686
    break 2
 
1687
  fi
 
1688
done
 
1689
done
 
1690
 
 
1691
fi
 
1692
fi
 
1693
CC=$ac_cv_prog_CC
 
1694
if test -n "$CC"; then
 
1695
  echo "$as_me:$LINENO: result: $CC" >&5
 
1696
echo "${ECHO_T}$CC" >&6
 
1697
else
 
1698
  echo "$as_me:$LINENO: result: no" >&5
 
1699
echo "${ECHO_T}no" >&6
 
1700
fi
 
1701
 
 
1702
    test -n "$CC" && break
757
1703
  done
758
 
  IFS="$ac_save_ifs"
759
 
fi
760
 
fi
761
 
CC="$ac_cv_prog_CC"
762
 
if test -n "$CC"; then
763
 
  echo "$ac_t""$CC" 1>&6
764
 
else
765
 
  echo "$ac_t""no" 1>&6
766
 
fi
767
 
 ;;
768
 
    esac
 
1704
fi
 
1705
if test -z "$CC"; then
 
1706
  ac_ct_CC=$CC
 
1707
  for ac_prog in cl
 
1708
do
 
1709
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
1710
set dummy $ac_prog; ac_word=$2
 
1711
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1712
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1713
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
1714
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1715
else
 
1716
  if test -n "$ac_ct_CC"; then
 
1717
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
1718
else
 
1719
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1720
for as_dir in $PATH
 
1721
do
 
1722
  IFS=$as_save_IFS
 
1723
  test -z "$as_dir" && as_dir=.
 
1724
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1725
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1726
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
1727
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1728
    break 2
769
1729
  fi
770
 
  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
771
 
fi
772
 
 
773
 
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
774
 
echo "configure:775: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
775
 
 
776
 
ac_ext=c
777
 
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
778
 
ac_cpp='$CPP $CPPFLAGS'
779
 
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
780
 
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
781
 
cross_compiling=$ac_cv_prog_cc_cross
782
 
 
783
 
cat > conftest.$ac_ext << EOF
784
 
 
785
 
#line 786 "configure"
786
 
#include "confdefs.h"
787
 
 
788
 
main(){return(0);}
789
 
EOF
790
 
if { (eval echo configure:791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
791
 
  ac_cv_prog_cc_works=yes
792
 
  # If we can't run a trivial program, we are probably using a cross compiler.
793
 
  if (./conftest; exit) 2>/dev/null; then
794
 
    ac_cv_prog_cc_cross=no
 
1730
done
 
1731
done
 
1732
 
 
1733
fi
 
1734
fi
 
1735
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
1736
if test -n "$ac_ct_CC"; then
 
1737
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
1738
echo "${ECHO_T}$ac_ct_CC" >&6
 
1739
else
 
1740
  echo "$as_me:$LINENO: result: no" >&5
 
1741
echo "${ECHO_T}no" >&6
 
1742
fi
 
1743
 
 
1744
  test -n "$ac_ct_CC" && break
 
1745
done
 
1746
 
 
1747
  CC=$ac_ct_CC
 
1748
fi
 
1749
 
 
1750
fi
 
1751
 
 
1752
 
 
1753
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
 
1754
See \`config.log' for more details." >&5
 
1755
echo "$as_me: error: no acceptable C compiler found in \$PATH
 
1756
See \`config.log' for more details." >&2;}
 
1757
   { (exit 1); exit 1; }; }
 
1758
 
 
1759
# Provide some information about the compiler.
 
1760
echo "$as_me:$LINENO:" \
 
1761
     "checking for C compiler version" >&5
 
1762
ac_compiler=`set X $ac_compile; echo $2`
 
1763
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
1764
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
1765
  ac_status=$?
 
1766
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
1767
  (exit $ac_status); }
 
1768
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
1769
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
1770
  ac_status=$?
 
1771
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
1772
  (exit $ac_status); }
 
1773
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
1774
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
1775
  ac_status=$?
 
1776
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
1777
  (exit $ac_status); }
 
1778
 
 
1779
cat >conftest.$ac_ext <<_ACEOF
 
1780
/* confdefs.h.  */
 
1781
_ACEOF
 
1782
cat confdefs.h >>conftest.$ac_ext
 
1783
cat >>conftest.$ac_ext <<_ACEOF
 
1784
/* end confdefs.h.  */
 
1785
 
 
1786
int
 
1787
main ()
 
1788
{
 
1789
 
 
1790
  ;
 
1791
  return 0;
 
1792
}
 
1793
_ACEOF
 
1794
ac_clean_files_save=$ac_clean_files
 
1795
ac_clean_files="$ac_clean_files a.out a.exe b.out"
 
1796
# Try to create an executable without -o first, disregard a.out.
 
1797
# It will help us diagnose broken compilers, and finding out an intuition
 
1798
# of exeext.
 
1799
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
 
1800
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
 
1801
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
1802
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
 
1803
  (eval $ac_link_default) 2>&5
 
1804
  ac_status=$?
 
1805
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
1806
  (exit $ac_status); }; then
 
1807
  # Find the output, starting from the most likely.  This scheme is
 
1808
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
 
1809
# resort.
 
1810
 
 
1811
# Be careful to initialize this variable, since it used to be cached.
 
1812
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
 
1813
ac_cv_exeext=
 
1814
# b.out is created by i960 compilers.
 
1815
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
 
1816
do
 
1817
  test -f "$ac_file" || continue
 
1818
  case $ac_file in
 
1819
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
 
1820
        ;;
 
1821
    conftest.$ac_ext )
 
1822
        # This is the source file.
 
1823
        ;;
 
1824
    [ab].out )
 
1825
        # We found the default executable, but exeext='' is most
 
1826
        # certainly right.
 
1827
        break;;
 
1828
    *.* )
 
1829
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
1830
        # FIXME: I believe we export ac_cv_exeext for Libtool,
 
1831
        # but it would be cool to find out if it's true.  Does anybody
 
1832
        # maintain Libtool? --akim.
 
1833
        export ac_cv_exeext
 
1834
        break;;
 
1835
    * )
 
1836
        break;;
 
1837
  esac
 
1838
done
 
1839
else
 
1840
  echo "$as_me: failed program was:" >&5
 
1841
sed 's/^/| /' conftest.$ac_ext >&5
 
1842
 
 
1843
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
 
1844
See \`config.log' for more details." >&5
 
1845
echo "$as_me: error: C compiler cannot create executables
 
1846
See \`config.log' for more details." >&2;}
 
1847
   { (exit 77); exit 77; }; }
 
1848
fi
 
1849
 
 
1850
ac_exeext=$ac_cv_exeext
 
1851
echo "$as_me:$LINENO: result: $ac_file" >&5
 
1852
echo "${ECHO_T}$ac_file" >&6
 
1853
 
 
1854
# Check the compiler produces executables we can run.  If not, either
 
1855
# the compiler is broken, or we cross compile.
 
1856
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
 
1857
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
 
1858
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
 
1859
# If not cross compiling, check that we can run a simple program.
 
1860
if test "$cross_compiling" != yes; then
 
1861
  if { ac_try='./$ac_file'
 
1862
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
1863
  (eval $ac_try) 2>&5
 
1864
  ac_status=$?
 
1865
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
1866
  (exit $ac_status); }; }; then
 
1867
    cross_compiling=no
795
1868
  else
796
 
    ac_cv_prog_cc_cross=yes
 
1869
    if test "$cross_compiling" = maybe; then
 
1870
        cross_compiling=yes
 
1871
    else
 
1872
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
 
1873
If you meant to cross compile, use \`--host'.
 
1874
See \`config.log' for more details." >&5
 
1875
echo "$as_me: error: cannot run C compiled programs.
 
1876
If you meant to cross compile, use \`--host'.
 
1877
See \`config.log' for more details." >&2;}
 
1878
   { (exit 1); exit 1; }; }
 
1879
    fi
797
1880
  fi
798
 
else
799
 
  echo "configure: failed program was:" >&5
800
 
  cat conftest.$ac_ext >&5
801
 
  ac_cv_prog_cc_works=no
802
 
fi
803
 
rm -fr conftest*
804
 
ac_ext=c
805
 
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
806
 
ac_cpp='$CPP $CPPFLAGS'
807
 
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
808
 
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
809
 
cross_compiling=$ac_cv_prog_cc_cross
810
 
 
811
 
echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
812
 
if test $ac_cv_prog_cc_works = no; then
813
 
  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
814
 
fi
815
 
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
816
 
echo "configure:817: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
817
 
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
818
 
cross_compiling=$ac_cv_prog_cc_cross
819
 
 
820
 
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
821
 
echo "configure:822: checking whether we are using GNU C" >&5
822
 
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
823
 
  echo $ac_n "(cached) $ac_c" 1>&6
824
 
else
825
 
  cat > conftest.c <<EOF
826
 
#ifdef __GNUC__
827
 
  yes;
 
1881
fi
 
1882
echo "$as_me:$LINENO: result: yes" >&5
 
1883
echo "${ECHO_T}yes" >&6
 
1884
 
 
1885
rm -f a.out a.exe conftest$ac_cv_exeext b.out
 
1886
ac_clean_files=$ac_clean_files_save
 
1887
# Check the compiler produces executables we can run.  If not, either
 
1888
# the compiler is broken, or we cross compile.
 
1889
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
 
1890
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
 
1891
echo "$as_me:$LINENO: result: $cross_compiling" >&5
 
1892
echo "${ECHO_T}$cross_compiling" >&6
 
1893
 
 
1894
echo "$as_me:$LINENO: checking for suffix of executables" >&5
 
1895
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
 
1896
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
1897
  (eval $ac_link) 2>&5
 
1898
  ac_status=$?
 
1899
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
1900
  (exit $ac_status); }; then
 
1901
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
1902
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
1903
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
1904
# `rm'.
 
1905
for ac_file in conftest.exe conftest conftest.*; do
 
1906
  test -f "$ac_file" || continue
 
1907
  case $ac_file in
 
1908
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
 
1909
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
1910
          export ac_cv_exeext
 
1911
          break;;
 
1912
    * ) break;;
 
1913
  esac
 
1914
done
 
1915
else
 
1916
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
 
1917
See \`config.log' for more details." >&5
 
1918
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
 
1919
See \`config.log' for more details." >&2;}
 
1920
   { (exit 1); exit 1; }; }
 
1921
fi
 
1922
 
 
1923
rm -f conftest$ac_cv_exeext
 
1924
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
 
1925
echo "${ECHO_T}$ac_cv_exeext" >&6
 
1926
 
 
1927
rm -f conftest.$ac_ext
 
1928
EXEEXT=$ac_cv_exeext
 
1929
ac_exeext=$EXEEXT
 
1930
echo "$as_me:$LINENO: checking for suffix of object files" >&5
 
1931
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
 
1932
if test "${ac_cv_objext+set}" = set; then
 
1933
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1934
else
 
1935
  cat >conftest.$ac_ext <<_ACEOF
 
1936
/* confdefs.h.  */
 
1937
_ACEOF
 
1938
cat confdefs.h >>conftest.$ac_ext
 
1939
cat >>conftest.$ac_ext <<_ACEOF
 
1940
/* end confdefs.h.  */
 
1941
 
 
1942
int
 
1943
main ()
 
1944
{
 
1945
 
 
1946
  ;
 
1947
  return 0;
 
1948
}
 
1949
_ACEOF
 
1950
rm -f conftest.o conftest.obj
 
1951
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
1952
  (eval $ac_compile) 2>&5
 
1953
  ac_status=$?
 
1954
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
1955
  (exit $ac_status); }; then
 
1956
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
 
1957
  case $ac_file in
 
1958
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
 
1959
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
1960
       break;;
 
1961
  esac
 
1962
done
 
1963
else
 
1964
  echo "$as_me: failed program was:" >&5
 
1965
sed 's/^/| /' conftest.$ac_ext >&5
 
1966
 
 
1967
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
 
1968
See \`config.log' for more details." >&5
 
1969
echo "$as_me: error: cannot compute suffix of object files: cannot compile
 
1970
See \`config.log' for more details." >&2;}
 
1971
   { (exit 1); exit 1; }; }
 
1972
fi
 
1973
 
 
1974
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
1975
fi
 
1976
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
 
1977
echo "${ECHO_T}$ac_cv_objext" >&6
 
1978
OBJEXT=$ac_cv_objext
 
1979
ac_objext=$OBJEXT
 
1980
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
1981
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
 
1982
if test "${ac_cv_c_compiler_gnu+set}" = set; then
 
1983
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1984
else
 
1985
  cat >conftest.$ac_ext <<_ACEOF
 
1986
/* confdefs.h.  */
 
1987
_ACEOF
 
1988
cat confdefs.h >>conftest.$ac_ext
 
1989
cat >>conftest.$ac_ext <<_ACEOF
 
1990
/* end confdefs.h.  */
 
1991
 
 
1992
int
 
1993
main ()
 
1994
{
 
1995
#ifndef __GNUC__
 
1996
       choke me
828
1997
#endif
829
 
EOF
830
 
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:831: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
831
 
  ac_cv_prog_gcc=yes
832
 
else
833
 
  ac_cv_prog_gcc=no
834
 
fi
835
 
fi
836
 
 
837
 
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
838
 
 
839
 
if test $ac_cv_prog_gcc = yes; then
840
 
  GCC=yes
841
 
else
842
 
  GCC=
843
 
fi
844
 
 
845
 
ac_test_CFLAGS="${CFLAGS+set}"
846
 
ac_save_CFLAGS="$CFLAGS"
847
 
CFLAGS=
848
 
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
849
 
echo "configure:850: checking whether ${CC-cc} accepts -g" >&5
850
 
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
851
 
  echo $ac_n "(cached) $ac_c" 1>&6
852
 
else
853
 
  echo 'void f(){}' > conftest.c
854
 
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
 
1998
 
 
1999
  ;
 
2000
  return 0;
 
2001
}
 
2002
_ACEOF
 
2003
rm -f conftest.$ac_objext
 
2004
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2005
  (eval $ac_compile) 2>conftest.er1
 
2006
  ac_status=$?
 
2007
  grep -v '^ *+' conftest.er1 >conftest.err
 
2008
  rm -f conftest.er1
 
2009
  cat conftest.err >&5
 
2010
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2011
  (exit $ac_status); } &&
 
2012
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2013
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2014
  (eval $ac_try) 2>&5
 
2015
  ac_status=$?
 
2016
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2017
  (exit $ac_status); }; } &&
 
2018
         { ac_try='test -s conftest.$ac_objext'
 
2019
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2020
  (eval $ac_try) 2>&5
 
2021
  ac_status=$?
 
2022
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2023
  (exit $ac_status); }; }; then
 
2024
  ac_compiler_gnu=yes
 
2025
else
 
2026
  echo "$as_me: failed program was:" >&5
 
2027
sed 's/^/| /' conftest.$ac_ext >&5
 
2028
 
 
2029
ac_compiler_gnu=no
 
2030
fi
 
2031
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2032
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
2033
 
 
2034
fi
 
2035
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
2036
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
 
2037
GCC=`test $ac_compiler_gnu = yes && echo yes`
 
2038
ac_test_CFLAGS=${CFLAGS+set}
 
2039
ac_save_CFLAGS=$CFLAGS
 
2040
CFLAGS="-g"
 
2041
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
2042
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
 
2043
if test "${ac_cv_prog_cc_g+set}" = set; then
 
2044
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2045
else
 
2046
  cat >conftest.$ac_ext <<_ACEOF
 
2047
/* confdefs.h.  */
 
2048
_ACEOF
 
2049
cat confdefs.h >>conftest.$ac_ext
 
2050
cat >>conftest.$ac_ext <<_ACEOF
 
2051
/* end confdefs.h.  */
 
2052
 
 
2053
int
 
2054
main ()
 
2055
{
 
2056
 
 
2057
  ;
 
2058
  return 0;
 
2059
}
 
2060
_ACEOF
 
2061
rm -f conftest.$ac_objext
 
2062
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2063
  (eval $ac_compile) 2>conftest.er1
 
2064
  ac_status=$?
 
2065
  grep -v '^ *+' conftest.er1 >conftest.err
 
2066
  rm -f conftest.er1
 
2067
  cat conftest.err >&5
 
2068
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2069
  (exit $ac_status); } &&
 
2070
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2071
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2072
  (eval $ac_try) 2>&5
 
2073
  ac_status=$?
 
2074
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2075
  (exit $ac_status); }; } &&
 
2076
         { ac_try='test -s conftest.$ac_objext'
 
2077
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2078
  (eval $ac_try) 2>&5
 
2079
  ac_status=$?
 
2080
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2081
  (exit $ac_status); }; }; then
855
2082
  ac_cv_prog_cc_g=yes
856
2083
else
857
 
  ac_cv_prog_cc_g=no
858
 
fi
859
 
rm -f conftest*
860
 
 
861
 
fi
862
 
 
863
 
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
 
2084
  echo "$as_me: failed program was:" >&5
 
2085
sed 's/^/| /' conftest.$ac_ext >&5
 
2086
 
 
2087
ac_cv_prog_cc_g=no
 
2088
fi
 
2089
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2090
fi
 
2091
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
2092
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
864
2093
if test "$ac_test_CFLAGS" = set; then
865
 
  CFLAGS="$ac_save_CFLAGS"
 
2094
  CFLAGS=$ac_save_CFLAGS
866
2095
elif test $ac_cv_prog_cc_g = yes; then
867
2096
  if test "$GCC" = yes; then
868
2097
    CFLAGS="-g -O2"
876
2105
    CFLAGS=
877
2106
  fi
878
2107
fi
879
 
 
880
 
echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
881
 
echo "configure:882: checking for POSIXized ISC" >&5
882
 
if test -d /etc/conf/kconfig.d &&
883
 
  grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
884
 
then
885
 
  echo "$ac_t""yes" 1>&6
886
 
  ISC=yes # If later tests want to check for ISC.
887
 
  cat >> confdefs.h <<\EOF
888
 
#define _POSIX_SOURCE 1
889
 
EOF
890
 
 
891
 
  if test "$GCC" = yes; then
892
 
    CC="$CC -posix"
893
 
  else
894
 
    CC="$CC -Xp"
895
 
  fi
896
 
else
897
 
  echo "$ac_t""no" 1>&6
898
 
  ISC=
899
 
fi
900
 
 
901
 
 
902
 
for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
903
 
do
904
 
# Extract the first word of "$ac_prog", so it can be a program name with args.
905
 
set dummy $ac_prog; ac_word=$2
906
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
907
 
echo "configure:908: checking for $ac_word" >&5
908
 
if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
909
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
2108
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
 
2109
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
 
2110
if test "${ac_cv_prog_cc_stdc+set}" = set; then
 
2111
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2112
else
 
2113
  ac_cv_prog_cc_stdc=no
 
2114
ac_save_CC=$CC
 
2115
cat >conftest.$ac_ext <<_ACEOF
 
2116
/* confdefs.h.  */
 
2117
_ACEOF
 
2118
cat confdefs.h >>conftest.$ac_ext
 
2119
cat >>conftest.$ac_ext <<_ACEOF
 
2120
/* end confdefs.h.  */
 
2121
#include <stdarg.h>
 
2122
#include <stdio.h>
 
2123
#include <sys/types.h>
 
2124
#include <sys/stat.h>
 
2125
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
2126
struct buf { int x; };
 
2127
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
2128
static char *e (p, i)
 
2129
     char **p;
 
2130
     int i;
 
2131
{
 
2132
  return p[i];
 
2133
}
 
2134
static char *f (char * (*g) (char **, int), char **p, ...)
 
2135
{
 
2136
  char *s;
 
2137
  va_list v;
 
2138
  va_start (v,p);
 
2139
  s = g (p, va_arg (v,int));
 
2140
  va_end (v);
 
2141
  return s;
 
2142
}
 
2143
 
 
2144
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
2145
   function prototypes and stuff, but not '\xHH' hex character constants.
 
2146
   These don't provoke an error unfortunately, instead are silently treated
 
2147
   as 'x'.  The following induces an error, until -std1 is added to get
 
2148
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
2149
   array size at least.  It's necessary to write '\x00'==0 to get something
 
2150
   that's true only with -std1.  */
 
2151
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
2152
 
 
2153
int test (int i, double x);
 
2154
struct s1 {int (*f) (int a);};
 
2155
struct s2 {int (*f) (double a);};
 
2156
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
2157
int argc;
 
2158
char **argv;
 
2159
int
 
2160
main ()
 
2161
{
 
2162
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
2163
  ;
 
2164
  return 0;
 
2165
}
 
2166
_ACEOF
 
2167
# Don't try gcc -ansi; that turns off useful extensions and
 
2168
# breaks some systems' header files.
 
2169
# AIX                   -qlanglvl=ansi
 
2170
# Ultrix and OSF/1      -std1
 
2171
# HP-UX 10.20 and later -Ae
 
2172
# HP-UX older versions  -Aa -D_HPUX_SOURCE
 
2173
# SVR4                  -Xc -D__EXTENSIONS__
 
2174
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
2175
do
 
2176
  CC="$ac_save_CC $ac_arg"
 
2177
  rm -f conftest.$ac_objext
 
2178
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2179
  (eval $ac_compile) 2>conftest.er1
 
2180
  ac_status=$?
 
2181
  grep -v '^ *+' conftest.er1 >conftest.err
 
2182
  rm -f conftest.er1
 
2183
  cat conftest.err >&5
 
2184
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2185
  (exit $ac_status); } &&
 
2186
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2187
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2188
  (eval $ac_try) 2>&5
 
2189
  ac_status=$?
 
2190
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2191
  (exit $ac_status); }; } &&
 
2192
         { ac_try='test -s conftest.$ac_objext'
 
2193
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2194
  (eval $ac_try) 2>&5
 
2195
  ac_status=$?
 
2196
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2197
  (exit $ac_status); }; }; then
 
2198
  ac_cv_prog_cc_stdc=$ac_arg
 
2199
break
 
2200
else
 
2201
  echo "$as_me: failed program was:" >&5
 
2202
sed 's/^/| /' conftest.$ac_ext >&5
 
2203
 
 
2204
fi
 
2205
rm -f conftest.err conftest.$ac_objext
 
2206
done
 
2207
rm -f conftest.$ac_ext conftest.$ac_objext
 
2208
CC=$ac_save_CC
 
2209
 
 
2210
fi
 
2211
 
 
2212
case "x$ac_cv_prog_cc_stdc" in
 
2213
  x|xno)
 
2214
    echo "$as_me:$LINENO: result: none needed" >&5
 
2215
echo "${ECHO_T}none needed" >&6 ;;
 
2216
  *)
 
2217
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
 
2218
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
 
2219
    CC="$CC $ac_cv_prog_cc_stdc" ;;
 
2220
esac
 
2221
 
 
2222
# Some people use a C++ compiler to compile C.  Since we use `exit',
 
2223
# in C++ we need to declare it.  In case someone uses the same compiler
 
2224
# for both compiling C and C++ we need to have the C++ compiler decide
 
2225
# the declaration of exit, since it's the most demanding environment.
 
2226
cat >conftest.$ac_ext <<_ACEOF
 
2227
#ifndef __cplusplus
 
2228
  choke me
 
2229
#endif
 
2230
_ACEOF
 
2231
rm -f conftest.$ac_objext
 
2232
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2233
  (eval $ac_compile) 2>conftest.er1
 
2234
  ac_status=$?
 
2235
  grep -v '^ *+' conftest.er1 >conftest.err
 
2236
  rm -f conftest.er1
 
2237
  cat conftest.err >&5
 
2238
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2239
  (exit $ac_status); } &&
 
2240
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2241
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2242
  (eval $ac_try) 2>&5
 
2243
  ac_status=$?
 
2244
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2245
  (exit $ac_status); }; } &&
 
2246
         { ac_try='test -s conftest.$ac_objext'
 
2247
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2248
  (eval $ac_try) 2>&5
 
2249
  ac_status=$?
 
2250
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2251
  (exit $ac_status); }; }; then
 
2252
  for ac_declaration in \
 
2253
   '' \
 
2254
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
2255
   'extern "C" void std::exit (int); using std::exit;' \
 
2256
   'extern "C" void exit (int) throw ();' \
 
2257
   'extern "C" void exit (int);' \
 
2258
   'void exit (int);'
 
2259
do
 
2260
  cat >conftest.$ac_ext <<_ACEOF
 
2261
/* confdefs.h.  */
 
2262
_ACEOF
 
2263
cat confdefs.h >>conftest.$ac_ext
 
2264
cat >>conftest.$ac_ext <<_ACEOF
 
2265
/* end confdefs.h.  */
 
2266
$ac_declaration
 
2267
#include <stdlib.h>
 
2268
int
 
2269
main ()
 
2270
{
 
2271
exit (42);
 
2272
  ;
 
2273
  return 0;
 
2274
}
 
2275
_ACEOF
 
2276
rm -f conftest.$ac_objext
 
2277
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2278
  (eval $ac_compile) 2>conftest.er1
 
2279
  ac_status=$?
 
2280
  grep -v '^ *+' conftest.er1 >conftest.err
 
2281
  rm -f conftest.er1
 
2282
  cat conftest.err >&5
 
2283
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2284
  (exit $ac_status); } &&
 
2285
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2286
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2287
  (eval $ac_try) 2>&5
 
2288
  ac_status=$?
 
2289
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2290
  (exit $ac_status); }; } &&
 
2291
         { ac_try='test -s conftest.$ac_objext'
 
2292
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2293
  (eval $ac_try) 2>&5
 
2294
  ac_status=$?
 
2295
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2296
  (exit $ac_status); }; }; then
 
2297
  :
 
2298
else
 
2299
  echo "$as_me: failed program was:" >&5
 
2300
sed 's/^/| /' conftest.$ac_ext >&5
 
2301
 
 
2302
continue
 
2303
fi
 
2304
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2305
  cat >conftest.$ac_ext <<_ACEOF
 
2306
/* confdefs.h.  */
 
2307
_ACEOF
 
2308
cat confdefs.h >>conftest.$ac_ext
 
2309
cat >>conftest.$ac_ext <<_ACEOF
 
2310
/* end confdefs.h.  */
 
2311
$ac_declaration
 
2312
int
 
2313
main ()
 
2314
{
 
2315
exit (42);
 
2316
  ;
 
2317
  return 0;
 
2318
}
 
2319
_ACEOF
 
2320
rm -f conftest.$ac_objext
 
2321
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2322
  (eval $ac_compile) 2>conftest.er1
 
2323
  ac_status=$?
 
2324
  grep -v '^ *+' conftest.er1 >conftest.err
 
2325
  rm -f conftest.er1
 
2326
  cat conftest.err >&5
 
2327
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2328
  (exit $ac_status); } &&
 
2329
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2330
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2331
  (eval $ac_try) 2>&5
 
2332
  ac_status=$?
 
2333
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2334
  (exit $ac_status); }; } &&
 
2335
         { ac_try='test -s conftest.$ac_objext'
 
2336
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2337
  (eval $ac_try) 2>&5
 
2338
  ac_status=$?
 
2339
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2340
  (exit $ac_status); }; }; then
 
2341
  break
 
2342
else
 
2343
  echo "$as_me: failed program was:" >&5
 
2344
sed 's/^/| /' conftest.$ac_ext >&5
 
2345
 
 
2346
fi
 
2347
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2348
done
 
2349
rm -f conftest*
 
2350
if test -n "$ac_declaration"; then
 
2351
  echo '#ifdef __cplusplus' >>confdefs.h
 
2352
  echo $ac_declaration      >>confdefs.h
 
2353
  echo '#endif'             >>confdefs.h
 
2354
fi
 
2355
 
 
2356
else
 
2357
  echo "$as_me: failed program was:" >&5
 
2358
sed 's/^/| /' conftest.$ac_ext >&5
 
2359
 
 
2360
fi
 
2361
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2362
ac_ext=c
 
2363
ac_cpp='$CPP $CPPFLAGS'
 
2364
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2365
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2366
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2367
 
 
2368
 
 
2369
 
 
2370
        echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
 
2371
echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
 
2372
if test "${ac_cv_lib_cposix_strerror+set}" = set; then
 
2373
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2374
else
 
2375
  ac_check_lib_save_LIBS=$LIBS
 
2376
LIBS="-lcposix  $LIBS"
 
2377
cat >conftest.$ac_ext <<_ACEOF
 
2378
/* confdefs.h.  */
 
2379
_ACEOF
 
2380
cat confdefs.h >>conftest.$ac_ext
 
2381
cat >>conftest.$ac_ext <<_ACEOF
 
2382
/* end confdefs.h.  */
 
2383
 
 
2384
/* Override any gcc2 internal prototype to avoid an error.  */
 
2385
#ifdef __cplusplus
 
2386
extern "C"
 
2387
#endif
 
2388
/* We use char because int might match the return type of a gcc2
 
2389
   builtin and then its argument prototype would still apply.  */
 
2390
char strerror ();
 
2391
int
 
2392
main ()
 
2393
{
 
2394
strerror ();
 
2395
  ;
 
2396
  return 0;
 
2397
}
 
2398
_ACEOF
 
2399
rm -f conftest.$ac_objext conftest$ac_exeext
 
2400
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
2401
  (eval $ac_link) 2>conftest.er1
 
2402
  ac_status=$?
 
2403
  grep -v '^ *+' conftest.er1 >conftest.err
 
2404
  rm -f conftest.er1
 
2405
  cat conftest.err >&5
 
2406
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2407
  (exit $ac_status); } &&
 
2408
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2409
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2410
  (eval $ac_try) 2>&5
 
2411
  ac_status=$?
 
2412
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2413
  (exit $ac_status); }; } &&
 
2414
         { ac_try='test -s conftest$ac_exeext'
 
2415
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2416
  (eval $ac_try) 2>&5
 
2417
  ac_status=$?
 
2418
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2419
  (exit $ac_status); }; }; then
 
2420
  ac_cv_lib_cposix_strerror=yes
 
2421
else
 
2422
  echo "$as_me: failed program was:" >&5
 
2423
sed 's/^/| /' conftest.$ac_ext >&5
 
2424
 
 
2425
ac_cv_lib_cposix_strerror=no
 
2426
fi
 
2427
rm -f conftest.err conftest.$ac_objext \
 
2428
      conftest$ac_exeext conftest.$ac_ext
 
2429
LIBS=$ac_check_lib_save_LIBS
 
2430
fi
 
2431
echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
 
2432
echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
 
2433
if test $ac_cv_lib_cposix_strerror = yes; then
 
2434
  LIBS="$LIBS -lcposix"
 
2435
fi
 
2436
 
 
2437
 
 
2438
 
 
2439
 
 
2440
ac_ext=cc
 
2441
ac_cpp='$CXXCPP $CPPFLAGS'
 
2442
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2443
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2444
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
2445
if test -n "$ac_tool_prefix"; then
 
2446
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
 
2447
  do
 
2448
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
2449
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
2450
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2451
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2452
if test "${ac_cv_prog_CXX+set}" = set; then
 
2453
  echo $ECHO_N "(cached) $ECHO_C" >&6
910
2454
else
911
2455
  if test -n "$CXX"; then
912
2456
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
913
2457
else
914
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
915
 
  ac_dummy="$PATH"
916
 
  for ac_dir in $ac_dummy; do
917
 
    test -z "$ac_dir" && ac_dir=.
918
 
    if test -f $ac_dir/$ac_word; then
919
 
      ac_cv_prog_CXX="$ac_prog"
920
 
      break
921
 
    fi
922
 
  done
923
 
  IFS="$ac_save_ifs"
924
 
fi
925
 
fi
926
 
CXX="$ac_cv_prog_CXX"
 
2458
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2459
for as_dir in $PATH
 
2460
do
 
2461
  IFS=$as_save_IFS
 
2462
  test -z "$as_dir" && as_dir=.
 
2463
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2464
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2465
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
 
2466
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2467
    break 2
 
2468
  fi
 
2469
done
 
2470
done
 
2471
 
 
2472
fi
 
2473
fi
 
2474
CXX=$ac_cv_prog_CXX
927
2475
if test -n "$CXX"; then
928
 
  echo "$ac_t""$CXX" 1>&6
929
 
else
930
 
  echo "$ac_t""no" 1>&6
931
 
fi
932
 
 
933
 
test -n "$CXX" && break
934
 
done
935
 
test -n "$CXX" || CXX="gcc"
936
 
 
937
 
 
938
 
echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
939
 
echo "configure:940: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
940
 
 
941
 
ac_ext=C
942
 
# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
943
 
ac_cpp='$CXXCPP $CPPFLAGS'
944
 
ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
945
 
ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
946
 
cross_compiling=$ac_cv_prog_cxx_cross
947
 
 
948
 
cat > conftest.$ac_ext << EOF
949
 
 
950
 
#line 951 "configure"
951
 
#include "confdefs.h"
952
 
 
953
 
int main(){return(0);}
954
 
EOF
955
 
if { (eval echo configure:956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
956
 
  ac_cv_prog_cxx_works=yes
957
 
  # If we can't run a trivial program, we are probably using a cross compiler.
958
 
  if (./conftest; exit) 2>/dev/null; then
959
 
    ac_cv_prog_cxx_cross=no
960
 
  else
961
 
    ac_cv_prog_cxx_cross=yes
 
2476
  echo "$as_me:$LINENO: result: $CXX" >&5
 
2477
echo "${ECHO_T}$CXX" >&6
 
2478
else
 
2479
  echo "$as_me:$LINENO: result: no" >&5
 
2480
echo "${ECHO_T}no" >&6
 
2481
fi
 
2482
 
 
2483
    test -n "$CXX" && break
 
2484
  done
 
2485
fi
 
2486
if test -z "$CXX"; then
 
2487
  ac_ct_CXX=$CXX
 
2488
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
 
2489
do
 
2490
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2491
set dummy $ac_prog; ac_word=$2
 
2492
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2493
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2494
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
 
2495
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2496
else
 
2497
  if test -n "$ac_ct_CXX"; then
 
2498
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
 
2499
else
 
2500
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2501
for as_dir in $PATH
 
2502
do
 
2503
  IFS=$as_save_IFS
 
2504
  test -z "$as_dir" && as_dir=.
 
2505
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2506
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2507
    ac_cv_prog_ac_ct_CXX="$ac_prog"
 
2508
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2509
    break 2
962
2510
  fi
963
 
else
964
 
  echo "configure: failed program was:" >&5
965
 
  cat conftest.$ac_ext >&5
966
 
  ac_cv_prog_cxx_works=no
967
 
fi
968
 
rm -fr conftest*
969
 
ac_ext=c
970
 
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
971
 
ac_cpp='$CPP $CPPFLAGS'
972
 
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
973
 
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
974
 
cross_compiling=$ac_cv_prog_cc_cross
975
 
 
976
 
echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
977
 
if test $ac_cv_prog_cxx_works = no; then
978
 
  { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
979
 
fi
980
 
echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
981
 
echo "configure:982: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
982
 
echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
983
 
cross_compiling=$ac_cv_prog_cxx_cross
984
 
 
985
 
echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
986
 
echo "configure:987: checking whether we are using GNU C++" >&5
987
 
if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
988
 
  echo $ac_n "(cached) $ac_c" 1>&6
989
 
else
990
 
  cat > conftest.C <<EOF
991
 
#ifdef __GNUC__
992
 
  yes;
 
2511
done
 
2512
done
 
2513
 
 
2514
fi
 
2515
fi
 
2516
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
 
2517
if test -n "$ac_ct_CXX"; then
 
2518
  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
 
2519
echo "${ECHO_T}$ac_ct_CXX" >&6
 
2520
else
 
2521
  echo "$as_me:$LINENO: result: no" >&5
 
2522
echo "${ECHO_T}no" >&6
 
2523
fi
 
2524
 
 
2525
  test -n "$ac_ct_CXX" && break
 
2526
done
 
2527
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
 
2528
 
 
2529
  CXX=$ac_ct_CXX
 
2530
fi
 
2531
 
 
2532
 
 
2533
# Provide some information about the compiler.
 
2534
echo "$as_me:$LINENO:" \
 
2535
     "checking for C++ compiler version" >&5
 
2536
ac_compiler=`set X $ac_compile; echo $2`
 
2537
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
2538
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
2539
  ac_status=$?
 
2540
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2541
  (exit $ac_status); }
 
2542
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
2543
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
2544
  ac_status=$?
 
2545
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2546
  (exit $ac_status); }
 
2547
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
2548
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
2549
  ac_status=$?
 
2550
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2551
  (exit $ac_status); }
 
2552
 
 
2553
echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
 
2554
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
 
2555
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
 
2556
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2557
else
 
2558
  cat >conftest.$ac_ext <<_ACEOF
 
2559
/* confdefs.h.  */
 
2560
_ACEOF
 
2561
cat confdefs.h >>conftest.$ac_ext
 
2562
cat >>conftest.$ac_ext <<_ACEOF
 
2563
/* end confdefs.h.  */
 
2564
 
 
2565
int
 
2566
main ()
 
2567
{
 
2568
#ifndef __GNUC__
 
2569
       choke me
993
2570
#endif
994
 
EOF
995
 
if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:996: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
996
 
  ac_cv_prog_gxx=yes
997
 
else
998
 
  ac_cv_prog_gxx=no
999
 
fi
1000
 
fi
1001
 
 
1002
 
echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1003
 
 
1004
 
if test $ac_cv_prog_gxx = yes; then
1005
 
  GXX=yes
1006
 
else
1007
 
  GXX=
1008
 
fi
1009
 
 
1010
 
ac_test_CXXFLAGS="${CXXFLAGS+set}"
1011
 
ac_save_CXXFLAGS="$CXXFLAGS"
1012
 
CXXFLAGS=
1013
 
echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1014
 
echo "configure:1015: checking whether ${CXX-g++} accepts -g" >&5
1015
 
if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1016
 
  echo $ac_n "(cached) $ac_c" 1>&6
1017
 
else
1018
 
  echo 'void f(){}' > conftest.cc
1019
 
if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
 
2571
 
 
2572
  ;
 
2573
  return 0;
 
2574
}
 
2575
_ACEOF
 
2576
rm -f conftest.$ac_objext
 
2577
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2578
  (eval $ac_compile) 2>conftest.er1
 
2579
  ac_status=$?
 
2580
  grep -v '^ *+' conftest.er1 >conftest.err
 
2581
  rm -f conftest.er1
 
2582
  cat conftest.err >&5
 
2583
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2584
  (exit $ac_status); } &&
 
2585
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
2586
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2587
  (eval $ac_try) 2>&5
 
2588
  ac_status=$?
 
2589
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2590
  (exit $ac_status); }; } &&
 
2591
         { ac_try='test -s conftest.$ac_objext'
 
2592
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2593
  (eval $ac_try) 2>&5
 
2594
  ac_status=$?
 
2595
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2596
  (exit $ac_status); }; }; then
 
2597
  ac_compiler_gnu=yes
 
2598
else
 
2599
  echo "$as_me: failed program was:" >&5
 
2600
sed 's/^/| /' conftest.$ac_ext >&5
 
2601
 
 
2602
ac_compiler_gnu=no
 
2603
fi
 
2604
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2605
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
 
2606
 
 
2607
fi
 
2608
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
 
2609
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
 
2610
GXX=`test $ac_compiler_gnu = yes && echo yes`
 
2611
ac_test_CXXFLAGS=${CXXFLAGS+set}
 
2612
ac_save_CXXFLAGS=$CXXFLAGS
 
2613
CXXFLAGS="-g"
 
2614
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
 
2615
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
 
2616
if test "${ac_cv_prog_cxx_g+set}" = set; then
 
2617
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2618
else
 
2619
  cat >conftest.$ac_ext <<_ACEOF
 
2620
/* confdefs.h.  */
 
2621
_ACEOF
 
2622
cat confdefs.h >>conftest.$ac_ext
 
2623
cat >>conftest.$ac_ext <<_ACEOF
 
2624
/* end confdefs.h.  */
 
2625
 
 
2626
int
 
2627
main ()
 
2628
{
 
2629
 
 
2630
  ;
 
2631
  return 0;
 
2632
}
 
2633
_ACEOF
 
2634
rm -f conftest.$ac_objext
 
2635
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2636
  (eval $ac_compile) 2>conftest.er1
 
2637
  ac_status=$?
 
2638
  grep -v '^ *+' conftest.er1 >conftest.err
 
2639
  rm -f conftest.er1
 
2640
  cat conftest.err >&5
 
2641
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2642
  (exit $ac_status); } &&
 
2643
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
2644
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2645
  (eval $ac_try) 2>&5
 
2646
  ac_status=$?
 
2647
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2648
  (exit $ac_status); }; } &&
 
2649
         { ac_try='test -s conftest.$ac_objext'
 
2650
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2651
  (eval $ac_try) 2>&5
 
2652
  ac_status=$?
 
2653
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2654
  (exit $ac_status); }; }; then
1020
2655
  ac_cv_prog_cxx_g=yes
1021
2656
else
1022
 
  ac_cv_prog_cxx_g=no
1023
 
fi
1024
 
rm -f conftest*
1025
 
 
1026
 
fi
1027
 
 
1028
 
echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
 
2657
  echo "$as_me: failed program was:" >&5
 
2658
sed 's/^/| /' conftest.$ac_ext >&5
 
2659
 
 
2660
ac_cv_prog_cxx_g=no
 
2661
fi
 
2662
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2663
fi
 
2664
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
 
2665
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
1029
2666
if test "$ac_test_CXXFLAGS" = set; then
1030
 
  CXXFLAGS="$ac_save_CXXFLAGS"
 
2667
  CXXFLAGS=$ac_save_CXXFLAGS
1031
2668
elif test $ac_cv_prog_cxx_g = yes; then
1032
2669
  if test "$GXX" = yes; then
1033
2670
    CXXFLAGS="-g -O2"
1041
2678
    CXXFLAGS=
1042
2679
  fi
1043
2680
fi
1044
 
 
1045
 
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1046
 
echo "configure:1047: checking how to run the C preprocessor" >&5
 
2681
for ac_declaration in \
 
2682
   '' \
 
2683
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
2684
   'extern "C" void std::exit (int); using std::exit;' \
 
2685
   'extern "C" void exit (int) throw ();' \
 
2686
   'extern "C" void exit (int);' \
 
2687
   'void exit (int);'
 
2688
do
 
2689
  cat >conftest.$ac_ext <<_ACEOF
 
2690
/* confdefs.h.  */
 
2691
_ACEOF
 
2692
cat confdefs.h >>conftest.$ac_ext
 
2693
cat >>conftest.$ac_ext <<_ACEOF
 
2694
/* end confdefs.h.  */
 
2695
$ac_declaration
 
2696
#include <stdlib.h>
 
2697
int
 
2698
main ()
 
2699
{
 
2700
exit (42);
 
2701
  ;
 
2702
  return 0;
 
2703
}
 
2704
_ACEOF
 
2705
rm -f conftest.$ac_objext
 
2706
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2707
  (eval $ac_compile) 2>conftest.er1
 
2708
  ac_status=$?
 
2709
  grep -v '^ *+' conftest.er1 >conftest.err
 
2710
  rm -f conftest.er1
 
2711
  cat conftest.err >&5
 
2712
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2713
  (exit $ac_status); } &&
 
2714
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
2715
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2716
  (eval $ac_try) 2>&5
 
2717
  ac_status=$?
 
2718
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2719
  (exit $ac_status); }; } &&
 
2720
         { ac_try='test -s conftest.$ac_objext'
 
2721
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2722
  (eval $ac_try) 2>&5
 
2723
  ac_status=$?
 
2724
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2725
  (exit $ac_status); }; }; then
 
2726
  :
 
2727
else
 
2728
  echo "$as_me: failed program was:" >&5
 
2729
sed 's/^/| /' conftest.$ac_ext >&5
 
2730
 
 
2731
continue
 
2732
fi
 
2733
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2734
  cat >conftest.$ac_ext <<_ACEOF
 
2735
/* confdefs.h.  */
 
2736
_ACEOF
 
2737
cat confdefs.h >>conftest.$ac_ext
 
2738
cat >>conftest.$ac_ext <<_ACEOF
 
2739
/* end confdefs.h.  */
 
2740
$ac_declaration
 
2741
int
 
2742
main ()
 
2743
{
 
2744
exit (42);
 
2745
  ;
 
2746
  return 0;
 
2747
}
 
2748
_ACEOF
 
2749
rm -f conftest.$ac_objext
 
2750
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2751
  (eval $ac_compile) 2>conftest.er1
 
2752
  ac_status=$?
 
2753
  grep -v '^ *+' conftest.er1 >conftest.err
 
2754
  rm -f conftest.er1
 
2755
  cat conftest.err >&5
 
2756
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2757
  (exit $ac_status); } &&
 
2758
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
2759
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2760
  (eval $ac_try) 2>&5
 
2761
  ac_status=$?
 
2762
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2763
  (exit $ac_status); }; } &&
 
2764
         { ac_try='test -s conftest.$ac_objext'
 
2765
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2766
  (eval $ac_try) 2>&5
 
2767
  ac_status=$?
 
2768
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2769
  (exit $ac_status); }; }; then
 
2770
  break
 
2771
else
 
2772
  echo "$as_me: failed program was:" >&5
 
2773
sed 's/^/| /' conftest.$ac_ext >&5
 
2774
 
 
2775
fi
 
2776
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2777
done
 
2778
rm -f conftest*
 
2779
if test -n "$ac_declaration"; then
 
2780
  echo '#ifdef __cplusplus' >>confdefs.h
 
2781
  echo $ac_declaration      >>confdefs.h
 
2782
  echo '#endif'             >>confdefs.h
 
2783
fi
 
2784
 
 
2785
ac_ext=c
 
2786
ac_cpp='$CPP $CPPFLAGS'
 
2787
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2788
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2789
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2790
 
 
2791
ac_ext=c
 
2792
ac_cpp='$CPP $CPPFLAGS'
 
2793
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2794
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2795
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2796
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
 
2797
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
1047
2798
# On Suns, sometimes $CPP names a directory.
1048
2799
if test -n "$CPP" && test -d "$CPP"; then
1049
2800
  CPP=
1050
2801
fi
1051
2802
if test -z "$CPP"; then
1052
 
if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1053
 
  echo $ac_n "(cached) $ac_c" 1>&6
1054
 
else
1055
 
    # This must be in double quotes, not single quotes, because CPP may get
1056
 
  # substituted into the Makefile and "${CC-cc}" will confuse make.
1057
 
  CPP="${CC-cc} -E"
1058
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
1059
 
  # not just through cpp.
1060
 
  cat > conftest.$ac_ext <<EOF
1061
 
#line 1062 "configure"
1062
 
#include "confdefs.h"
1063
 
#include <assert.h>
1064
 
Syntax Error
1065
 
EOF
1066
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1067
 
{ (eval echo configure:1068: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1068
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1069
 
if test -z "$ac_err"; then
1070
 
  :
1071
 
else
1072
 
  echo "$ac_err" >&5
1073
 
  echo "configure: failed program was:" >&5
1074
 
  cat conftest.$ac_ext >&5
1075
 
  rm -rf conftest*
1076
 
  CPP="${CC-cc} -E -traditional-cpp"
1077
 
  cat > conftest.$ac_ext <<EOF
1078
 
#line 1079 "configure"
1079
 
#include "confdefs.h"
1080
 
#include <assert.h>
1081
 
Syntax Error
1082
 
EOF
1083
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1084
 
{ (eval echo configure:1085: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1085
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1086
 
if test -z "$ac_err"; then
1087
 
  :
1088
 
else
1089
 
  echo "$ac_err" >&5
1090
 
  echo "configure: failed program was:" >&5
1091
 
  cat conftest.$ac_ext >&5
1092
 
  rm -rf conftest*
1093
 
  CPP="${CC-cc} -nologo -E"
1094
 
  cat > conftest.$ac_ext <<EOF
1095
 
#line 1096 "configure"
1096
 
#include "confdefs.h"
1097
 
#include <assert.h>
1098
 
Syntax Error
1099
 
EOF
1100
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1101
 
{ (eval echo configure:1102: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1102
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1103
 
if test -z "$ac_err"; then
1104
 
  :
1105
 
else
1106
 
  echo "$ac_err" >&5
1107
 
  echo "configure: failed program was:" >&5
1108
 
  cat conftest.$ac_ext >&5
1109
 
  rm -rf conftest*
1110
 
  CPP=/lib/cpp
1111
 
fi
1112
 
rm -f conftest*
1113
 
fi
1114
 
rm -f conftest*
1115
 
fi
1116
 
rm -f conftest*
1117
 
  ac_cv_prog_CPP="$CPP"
1118
 
fi
1119
 
  CPP="$ac_cv_prog_CPP"
1120
 
else
1121
 
  ac_cv_prog_CPP="$CPP"
1122
 
fi
1123
 
echo "$ac_t""$CPP" 1>&6
1124
 
 
1125
 
# Extract the first word of "ranlib", so it can be a program name with args.
1126
 
set dummy ranlib; ac_word=$2
1127
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1128
 
echo "configure:1129: checking for $ac_word" >&5
1129
 
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1130
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
2803
  if test "${ac_cv_prog_CPP+set}" = set; then
 
2804
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2805
else
 
2806
      # Double quotes because CPP needs to be expanded
 
2807
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
2808
    do
 
2809
      ac_preproc_ok=false
 
2810
for ac_c_preproc_warn_flag in '' yes
 
2811
do
 
2812
  # Use a header file that comes with gcc, so configuring glibc
 
2813
  # with a fresh cross-compiler works.
 
2814
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
2815
  # <limits.h> exists even on freestanding compilers.
 
2816
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
2817
  # not just through cpp. "Syntax error" is here to catch this case.
 
2818
  cat >conftest.$ac_ext <<_ACEOF
 
2819
/* confdefs.h.  */
 
2820
_ACEOF
 
2821
cat confdefs.h >>conftest.$ac_ext
 
2822
cat >>conftest.$ac_ext <<_ACEOF
 
2823
/* end confdefs.h.  */
 
2824
#ifdef __STDC__
 
2825
# include <limits.h>
 
2826
#else
 
2827
# include <assert.h>
 
2828
#endif
 
2829
                     Syntax error
 
2830
_ACEOF
 
2831
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
2832
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
2833
  ac_status=$?
 
2834
  grep -v '^ *+' conftest.er1 >conftest.err
 
2835
  rm -f conftest.er1
 
2836
  cat conftest.err >&5
 
2837
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2838
  (exit $ac_status); } >/dev/null; then
 
2839
  if test -s conftest.err; then
 
2840
    ac_cpp_err=$ac_c_preproc_warn_flag
 
2841
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
2842
  else
 
2843
    ac_cpp_err=
 
2844
  fi
 
2845
else
 
2846
  ac_cpp_err=yes
 
2847
fi
 
2848
if test -z "$ac_cpp_err"; then
 
2849
  :
 
2850
else
 
2851
  echo "$as_me: failed program was:" >&5
 
2852
sed 's/^/| /' conftest.$ac_ext >&5
 
2853
 
 
2854
  # Broken: fails on valid input.
 
2855
continue
 
2856
fi
 
2857
rm -f conftest.err conftest.$ac_ext
 
2858
 
 
2859
  # OK, works on sane cases.  Now check whether non-existent headers
 
2860
  # can be detected and how.
 
2861
  cat >conftest.$ac_ext <<_ACEOF
 
2862
/* confdefs.h.  */
 
2863
_ACEOF
 
2864
cat confdefs.h >>conftest.$ac_ext
 
2865
cat >>conftest.$ac_ext <<_ACEOF
 
2866
/* end confdefs.h.  */
 
2867
#include <ac_nonexistent.h>
 
2868
_ACEOF
 
2869
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
2870
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
2871
  ac_status=$?
 
2872
  grep -v '^ *+' conftest.er1 >conftest.err
 
2873
  rm -f conftest.er1
 
2874
  cat conftest.err >&5
 
2875
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2876
  (exit $ac_status); } >/dev/null; then
 
2877
  if test -s conftest.err; then
 
2878
    ac_cpp_err=$ac_c_preproc_warn_flag
 
2879
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
2880
  else
 
2881
    ac_cpp_err=
 
2882
  fi
 
2883
else
 
2884
  ac_cpp_err=yes
 
2885
fi
 
2886
if test -z "$ac_cpp_err"; then
 
2887
  # Broken: success on invalid input.
 
2888
continue
 
2889
else
 
2890
  echo "$as_me: failed program was:" >&5
 
2891
sed 's/^/| /' conftest.$ac_ext >&5
 
2892
 
 
2893
  # Passes both tests.
 
2894
ac_preproc_ok=:
 
2895
break
 
2896
fi
 
2897
rm -f conftest.err conftest.$ac_ext
 
2898
 
 
2899
done
 
2900
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
2901
rm -f conftest.err conftest.$ac_ext
 
2902
if $ac_preproc_ok; then
 
2903
  break
 
2904
fi
 
2905
 
 
2906
    done
 
2907
    ac_cv_prog_CPP=$CPP
 
2908
 
 
2909
fi
 
2910
  CPP=$ac_cv_prog_CPP
 
2911
else
 
2912
  ac_cv_prog_CPP=$CPP
 
2913
fi
 
2914
echo "$as_me:$LINENO: result: $CPP" >&5
 
2915
echo "${ECHO_T}$CPP" >&6
 
2916
ac_preproc_ok=false
 
2917
for ac_c_preproc_warn_flag in '' yes
 
2918
do
 
2919
  # Use a header file that comes with gcc, so configuring glibc
 
2920
  # with a fresh cross-compiler works.
 
2921
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
2922
  # <limits.h> exists even on freestanding compilers.
 
2923
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
2924
  # not just through cpp. "Syntax error" is here to catch this case.
 
2925
  cat >conftest.$ac_ext <<_ACEOF
 
2926
/* confdefs.h.  */
 
2927
_ACEOF
 
2928
cat confdefs.h >>conftest.$ac_ext
 
2929
cat >>conftest.$ac_ext <<_ACEOF
 
2930
/* end confdefs.h.  */
 
2931
#ifdef __STDC__
 
2932
# include <limits.h>
 
2933
#else
 
2934
# include <assert.h>
 
2935
#endif
 
2936
                     Syntax error
 
2937
_ACEOF
 
2938
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
2939
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
2940
  ac_status=$?
 
2941
  grep -v '^ *+' conftest.er1 >conftest.err
 
2942
  rm -f conftest.er1
 
2943
  cat conftest.err >&5
 
2944
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2945
  (exit $ac_status); } >/dev/null; then
 
2946
  if test -s conftest.err; then
 
2947
    ac_cpp_err=$ac_c_preproc_warn_flag
 
2948
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
2949
  else
 
2950
    ac_cpp_err=
 
2951
  fi
 
2952
else
 
2953
  ac_cpp_err=yes
 
2954
fi
 
2955
if test -z "$ac_cpp_err"; then
 
2956
  :
 
2957
else
 
2958
  echo "$as_me: failed program was:" >&5
 
2959
sed 's/^/| /' conftest.$ac_ext >&5
 
2960
 
 
2961
  # Broken: fails on valid input.
 
2962
continue
 
2963
fi
 
2964
rm -f conftest.err conftest.$ac_ext
 
2965
 
 
2966
  # OK, works on sane cases.  Now check whether non-existent headers
 
2967
  # can be detected and how.
 
2968
  cat >conftest.$ac_ext <<_ACEOF
 
2969
/* confdefs.h.  */
 
2970
_ACEOF
 
2971
cat confdefs.h >>conftest.$ac_ext
 
2972
cat >>conftest.$ac_ext <<_ACEOF
 
2973
/* end confdefs.h.  */
 
2974
#include <ac_nonexistent.h>
 
2975
_ACEOF
 
2976
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
2977
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
2978
  ac_status=$?
 
2979
  grep -v '^ *+' conftest.er1 >conftest.err
 
2980
  rm -f conftest.er1
 
2981
  cat conftest.err >&5
 
2982
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2983
  (exit $ac_status); } >/dev/null; then
 
2984
  if test -s conftest.err; then
 
2985
    ac_cpp_err=$ac_c_preproc_warn_flag
 
2986
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
2987
  else
 
2988
    ac_cpp_err=
 
2989
  fi
 
2990
else
 
2991
  ac_cpp_err=yes
 
2992
fi
 
2993
if test -z "$ac_cpp_err"; then
 
2994
  # Broken: success on invalid input.
 
2995
continue
 
2996
else
 
2997
  echo "$as_me: failed program was:" >&5
 
2998
sed 's/^/| /' conftest.$ac_ext >&5
 
2999
 
 
3000
  # Passes both tests.
 
3001
ac_preproc_ok=:
 
3002
break
 
3003
fi
 
3004
rm -f conftest.err conftest.$ac_ext
 
3005
 
 
3006
done
 
3007
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
3008
rm -f conftest.err conftest.$ac_ext
 
3009
if $ac_preproc_ok; then
 
3010
  :
 
3011
else
 
3012
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
 
3013
See \`config.log' for more details." >&5
 
3014
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
 
3015
See \`config.log' for more details." >&2;}
 
3016
   { (exit 1); exit 1; }; }
 
3017
fi
 
3018
 
 
3019
ac_ext=c
 
3020
ac_cpp='$CPP $CPPFLAGS'
 
3021
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3022
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3023
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3024
 
 
3025
if test -n "$ac_tool_prefix"; then
 
3026
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
3027
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
3028
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3029
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3030
if test "${ac_cv_prog_RANLIB+set}" = set; then
 
3031
  echo $ECHO_N "(cached) $ECHO_C" >&6
1131
3032
else
1132
3033
  if test -n "$RANLIB"; then
1133
3034
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1134
3035
else
1135
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1136
 
  ac_dummy="$PATH"
1137
 
  for ac_dir in $ac_dummy; do
1138
 
    test -z "$ac_dir" && ac_dir=.
1139
 
    if test -f $ac_dir/$ac_word; then
1140
 
      ac_cv_prog_RANLIB="ranlib"
1141
 
      break
1142
 
    fi
1143
 
  done
1144
 
  IFS="$ac_save_ifs"
1145
 
  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1146
 
fi
1147
 
fi
1148
 
RANLIB="$ac_cv_prog_RANLIB"
 
3036
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3037
for as_dir in $PATH
 
3038
do
 
3039
  IFS=$as_save_IFS
 
3040
  test -z "$as_dir" && as_dir=.
 
3041
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3042
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3043
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
3044
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3045
    break 2
 
3046
  fi
 
3047
done
 
3048
done
 
3049
 
 
3050
fi
 
3051
fi
 
3052
RANLIB=$ac_cv_prog_RANLIB
1149
3053
if test -n "$RANLIB"; then
1150
 
  echo "$ac_t""$RANLIB" 1>&6
1151
 
else
1152
 
  echo "$ac_t""no" 1>&6
1153
 
fi
1154
 
 
1155
 
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 
3054
  echo "$as_me:$LINENO: result: $RANLIB" >&5
 
3055
echo "${ECHO_T}$RANLIB" >&6
 
3056
else
 
3057
  echo "$as_me:$LINENO: result: no" >&5
 
3058
echo "${ECHO_T}no" >&6
 
3059
fi
 
3060
 
 
3061
fi
 
3062
if test -z "$ac_cv_prog_RANLIB"; then
 
3063
  ac_ct_RANLIB=$RANLIB
 
3064
  # Extract the first word of "ranlib", so it can be a program name with args.
 
3065
set dummy ranlib; ac_word=$2
 
3066
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3067
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3068
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
 
3069
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3070
else
 
3071
  if test -n "$ac_ct_RANLIB"; then
 
3072
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
3073
else
 
3074
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3075
for as_dir in $PATH
 
3076
do
 
3077
  IFS=$as_save_IFS
 
3078
  test -z "$as_dir" && as_dir=.
 
3079
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3080
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3081
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
3082
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3083
    break 2
 
3084
  fi
 
3085
done
 
3086
done
 
3087
 
 
3088
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
 
3089
fi
 
3090
fi
 
3091
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
3092
if test -n "$ac_ct_RANLIB"; then
 
3093
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
 
3094
echo "${ECHO_T}$ac_ct_RANLIB" >&6
 
3095
else
 
3096
  echo "$as_me:$LINENO: result: no" >&5
 
3097
echo "${ECHO_T}no" >&6
 
3098
fi
 
3099
 
 
3100
  RANLIB=$ac_ct_RANLIB
 
3101
else
 
3102
  RANLIB="$ac_cv_prog_RANLIB"
 
3103
fi
 
3104
 
 
3105
if test -n "$ac_tool_prefix"; then
 
3106
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1156
3107
set dummy ${ac_tool_prefix}ar; ac_word=$2
1157
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1158
 
echo "configure:1159: checking for $ac_word" >&5
1159
 
if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1160
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
3108
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3109
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3110
if test "${ac_cv_prog_AR+set}" = set; then
 
3111
  echo $ECHO_N "(cached) $ECHO_C" >&6
1161
3112
else
1162
3113
  if test -n "$AR"; then
1163
3114
  ac_cv_prog_AR="$AR" # Let the user override the test.
1164
3115
else
1165
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1166
 
  ac_dummy="$PATH"
1167
 
  for ac_dir in $ac_dummy; do
1168
 
    test -z "$ac_dir" && ac_dir=.
1169
 
    if test -f $ac_dir/$ac_word; then
1170
 
      ac_cv_prog_AR="${ac_tool_prefix}ar"
1171
 
      break
1172
 
    fi
1173
 
  done
1174
 
  IFS="$ac_save_ifs"
1175
 
fi
1176
 
fi
1177
 
AR="$ac_cv_prog_AR"
 
3116
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3117
for as_dir in $PATH
 
3118
do
 
3119
  IFS=$as_save_IFS
 
3120
  test -z "$as_dir" && as_dir=.
 
3121
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3122
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3123
    ac_cv_prog_AR="${ac_tool_prefix}ar"
 
3124
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3125
    break 2
 
3126
  fi
 
3127
done
 
3128
done
 
3129
 
 
3130
fi
 
3131
fi
 
3132
AR=$ac_cv_prog_AR
1178
3133
if test -n "$AR"; then
1179
 
  echo "$ac_t""$AR" 1>&6
 
3134
  echo "$as_me:$LINENO: result: $AR" >&5
 
3135
echo "${ECHO_T}$AR" >&6
1180
3136
else
1181
 
  echo "$ac_t""no" 1>&6
1182
 
fi
1183
 
 
1184
 
 
 
3137
  echo "$as_me:$LINENO: result: no" >&5
 
3138
echo "${ECHO_T}no" >&6
 
3139
fi
 
3140
 
 
3141
fi
1185
3142
if test -z "$ac_cv_prog_AR"; then
1186
 
if test -n "$ac_tool_prefix"; then
 
3143
  ac_ct_AR=$AR
1187
3144
  # Extract the first word of "ar", so it can be a program name with args.
1188
3145
set dummy ar; ac_word=$2
1189
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1190
 
echo "configure:1191: checking for $ac_word" >&5
1191
 
if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1192
 
  echo $ac_n "(cached) $ac_c" 1>&6
1193
 
else
1194
 
  if test -n "$AR"; then
1195
 
  ac_cv_prog_AR="$AR" # Let the user override the test.
1196
 
else
1197
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1198
 
  ac_dummy="$PATH"
1199
 
  for ac_dir in $ac_dummy; do
1200
 
    test -z "$ac_dir" && ac_dir=.
1201
 
    if test -f $ac_dir/$ac_word; then
1202
 
      ac_cv_prog_AR="ar"
1203
 
      break
1204
 
    fi
1205
 
  done
1206
 
  IFS="$ac_save_ifs"
1207
 
  test -z "$ac_cv_prog_AR" && ac_cv_prog_AR=""ar""
1208
 
fi
1209
 
fi
1210
 
AR="$ac_cv_prog_AR"
1211
 
if test -n "$AR"; then
1212
 
  echo "$ac_t""$AR" 1>&6
1213
 
else
1214
 
  echo "$ac_t""no" 1>&6
1215
 
fi
1216
 
 
1217
 
else
1218
 
  AR=""ar""
1219
 
fi
 
3146
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3147
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3148
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
 
3149
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3150
else
 
3151
  if test -n "$ac_ct_AR"; then
 
3152
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 
3153
else
 
3154
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3155
for as_dir in $PATH
 
3156
do
 
3157
  IFS=$as_save_IFS
 
3158
  test -z "$as_dir" && as_dir=.
 
3159
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3160
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3161
    ac_cv_prog_ac_ct_AR="ar"
 
3162
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3163
    break 2
 
3164
  fi
 
3165
done
 
3166
done
 
3167
 
 
3168
  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR=""ar""
 
3169
fi
 
3170
fi
 
3171
ac_ct_AR=$ac_cv_prog_ac_ct_AR
 
3172
if test -n "$ac_ct_AR"; then
 
3173
  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
 
3174
echo "${ECHO_T}$ac_ct_AR" >&6
 
3175
else
 
3176
  echo "$as_me:$LINENO: result: no" >&5
 
3177
echo "${ECHO_T}no" >&6
 
3178
fi
 
3179
 
 
3180
  AR=$ac_ct_AR
 
3181
else
 
3182
  AR="$ac_cv_prog_AR"
1220
3183
fi
1221
3184
 
1222
3185
 
1223
3186
SAVE_LIBS="$LIBS"
1224
3187
LIBS=""
1225
 
 
1226
 
echo $ac_n "checking for library containing gethostbyname""... $ac_c" 1>&6
1227
 
echo "configure:1228: checking for library containing gethostbyname" >&5
1228
 
if eval "test \"`echo '$''{'ac_cv_search_gethostbyname'+set}'`\" = set"; then
1229
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
3188
echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
 
3189
echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
 
3190
if test "${ac_cv_search_gethostbyname+set}" = set; then
 
3191
  echo $ECHO_N "(cached) $ECHO_C" >&6
1230
3192
else
1231
 
  ac_func_search_save_LIBS="$LIBS"
1232
 
ac_cv_search_gethostbyname="no"
1233
 
cat > conftest.$ac_ext <<EOF
1234
 
#line 1235 "configure"
1235
 
#include "confdefs.h"
 
3193
  ac_func_search_save_LIBS=$LIBS
 
3194
ac_cv_search_gethostbyname=no
 
3195
cat >conftest.$ac_ext <<_ACEOF
 
3196
/* confdefs.h.  */
 
3197
_ACEOF
 
3198
cat confdefs.h >>conftest.$ac_ext
 
3199
cat >>conftest.$ac_ext <<_ACEOF
 
3200
/* end confdefs.h.  */
 
3201
 
1236
3202
/* Override any gcc2 internal prototype to avoid an error.  */
 
3203
#ifdef __cplusplus
 
3204
extern "C"
 
3205
#endif
1237
3206
/* We use char because int might match the return type of a gcc2
1238
 
    builtin and then its argument prototype would still apply.  */
1239
 
char gethostbyname();
1240
 
 
1241
 
int main() {
1242
 
gethostbyname()
1243
 
; return 0; }
1244
 
EOF
1245
 
if { (eval echo configure:1246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1246
 
  rm -rf conftest*
 
3207
   builtin and then its argument prototype would still apply.  */
 
3208
char gethostbyname ();
 
3209
int
 
3210
main ()
 
3211
{
 
3212
gethostbyname ();
 
3213
  ;
 
3214
  return 0;
 
3215
}
 
3216
_ACEOF
 
3217
rm -f conftest.$ac_objext conftest$ac_exeext
 
3218
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3219
  (eval $ac_link) 2>conftest.er1
 
3220
  ac_status=$?
 
3221
  grep -v '^ *+' conftest.er1 >conftest.err
 
3222
  rm -f conftest.er1
 
3223
  cat conftest.err >&5
 
3224
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3225
  (exit $ac_status); } &&
 
3226
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3227
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3228
  (eval $ac_try) 2>&5
 
3229
  ac_status=$?
 
3230
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3231
  (exit $ac_status); }; } &&
 
3232
         { ac_try='test -s conftest$ac_exeext'
 
3233
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3234
  (eval $ac_try) 2>&5
 
3235
  ac_status=$?
 
3236
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3237
  (exit $ac_status); }; }; then
1247
3238
  ac_cv_search_gethostbyname="none required"
1248
3239
else
1249
 
  echo "configure: failed program was:" >&5
1250
 
  cat conftest.$ac_ext >&5
 
3240
  echo "$as_me: failed program was:" >&5
 
3241
sed 's/^/| /' conftest.$ac_ext >&5
 
3242
 
1251
3243
fi
1252
 
rm -f conftest*
1253
 
test "$ac_cv_search_gethostbyname" = "no" && for i in nsl; do
1254
 
LIBS="-l$i  $ac_func_search_save_LIBS"
1255
 
cat > conftest.$ac_ext <<EOF
1256
 
#line 1257 "configure"
1257
 
#include "confdefs.h"
 
3244
rm -f conftest.err conftest.$ac_objext \
 
3245
      conftest$ac_exeext conftest.$ac_ext
 
3246
if test "$ac_cv_search_gethostbyname" = no; then
 
3247
  for ac_lib in nsl; do
 
3248
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
3249
    cat >conftest.$ac_ext <<_ACEOF
 
3250
/* confdefs.h.  */
 
3251
_ACEOF
 
3252
cat confdefs.h >>conftest.$ac_ext
 
3253
cat >>conftest.$ac_ext <<_ACEOF
 
3254
/* end confdefs.h.  */
 
3255
 
1258
3256
/* Override any gcc2 internal prototype to avoid an error.  */
 
3257
#ifdef __cplusplus
 
3258
extern "C"
 
3259
#endif
1259
3260
/* We use char because int might match the return type of a gcc2
1260
 
    builtin and then its argument prototype would still apply.  */
1261
 
char gethostbyname();
1262
 
 
1263
 
int main() {
1264
 
gethostbyname()
1265
 
; return 0; }
1266
 
EOF
1267
 
if { (eval echo configure:1268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1268
 
  rm -rf conftest*
1269
 
  ac_cv_search_gethostbyname="-l$i"
 
3261
   builtin and then its argument prototype would still apply.  */
 
3262
char gethostbyname ();
 
3263
int
 
3264
main ()
 
3265
{
 
3266
gethostbyname ();
 
3267
  ;
 
3268
  return 0;
 
3269
}
 
3270
_ACEOF
 
3271
rm -f conftest.$ac_objext conftest$ac_exeext
 
3272
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3273
  (eval $ac_link) 2>conftest.er1
 
3274
  ac_status=$?
 
3275
  grep -v '^ *+' conftest.er1 >conftest.err
 
3276
  rm -f conftest.er1
 
3277
  cat conftest.err >&5
 
3278
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3279
  (exit $ac_status); } &&
 
3280
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3281
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3282
  (eval $ac_try) 2>&5
 
3283
  ac_status=$?
 
3284
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3285
  (exit $ac_status); }; } &&
 
3286
         { ac_try='test -s conftest$ac_exeext'
 
3287
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3288
  (eval $ac_try) 2>&5
 
3289
  ac_status=$?
 
3290
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3291
  (exit $ac_status); }; }; then
 
3292
  ac_cv_search_gethostbyname="-l$ac_lib"
1270
3293
break
1271
3294
else
1272
 
  echo "configure: failed program was:" >&5
1273
 
  cat conftest.$ac_ext >&5
1274
 
fi
1275
 
rm -f conftest*
1276
 
done
1277
 
LIBS="$ac_func_search_save_LIBS"
1278
 
fi
 
3295
  echo "$as_me: failed program was:" >&5
 
3296
sed 's/^/| /' conftest.$ac_ext >&5
1279
3297
 
1280
 
echo "$ac_t""$ac_cv_search_gethostbyname" 1>&6
1281
 
if test "$ac_cv_search_gethostbyname" != "no"; then
 
3298
fi
 
3299
rm -f conftest.err conftest.$ac_objext \
 
3300
      conftest$ac_exeext conftest.$ac_ext
 
3301
  done
 
3302
fi
 
3303
LIBS=$ac_func_search_save_LIBS
 
3304
fi
 
3305
echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
 
3306
echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
 
3307
if test "$ac_cv_search_gethostbyname" != no; then
1282
3308
  test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
1283
 
  
1284
 
else :
1285
 
  
 
3309
 
1286
3310
fi
1287
3311
 
1288
 
echo $ac_n "checking for library containing connect""... $ac_c" 1>&6
1289
 
echo "configure:1290: checking for library containing connect" >&5
1290
 
if eval "test \"`echo '$''{'ac_cv_search_connect'+set}'`\" = set"; then
1291
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
3312
echo "$as_me:$LINENO: checking for library containing connect" >&5
 
3313
echo $ECHO_N "checking for library containing connect... $ECHO_C" >&6
 
3314
if test "${ac_cv_search_connect+set}" = set; then
 
3315
  echo $ECHO_N "(cached) $ECHO_C" >&6
1292
3316
else
1293
 
  ac_func_search_save_LIBS="$LIBS"
1294
 
ac_cv_search_connect="no"
1295
 
cat > conftest.$ac_ext <<EOF
1296
 
#line 1297 "configure"
1297
 
#include "confdefs.h"
 
3317
  ac_func_search_save_LIBS=$LIBS
 
3318
ac_cv_search_connect=no
 
3319
cat >conftest.$ac_ext <<_ACEOF
 
3320
/* confdefs.h.  */
 
3321
_ACEOF
 
3322
cat confdefs.h >>conftest.$ac_ext
 
3323
cat >>conftest.$ac_ext <<_ACEOF
 
3324
/* end confdefs.h.  */
 
3325
 
1298
3326
/* Override any gcc2 internal prototype to avoid an error.  */
 
3327
#ifdef __cplusplus
 
3328
extern "C"
 
3329
#endif
1299
3330
/* We use char because int might match the return type of a gcc2
1300
 
    builtin and then its argument prototype would still apply.  */
1301
 
char connect();
1302
 
 
1303
 
int main() {
1304
 
connect()
1305
 
; return 0; }
1306
 
EOF
1307
 
if { (eval echo configure:1308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1308
 
  rm -rf conftest*
 
3331
   builtin and then its argument prototype would still apply.  */
 
3332
char connect ();
 
3333
int
 
3334
main ()
 
3335
{
 
3336
connect ();
 
3337
  ;
 
3338
  return 0;
 
3339
}
 
3340
_ACEOF
 
3341
rm -f conftest.$ac_objext conftest$ac_exeext
 
3342
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3343
  (eval $ac_link) 2>conftest.er1
 
3344
  ac_status=$?
 
3345
  grep -v '^ *+' conftest.er1 >conftest.err
 
3346
  rm -f conftest.er1
 
3347
  cat conftest.err >&5
 
3348
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3349
  (exit $ac_status); } &&
 
3350
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3351
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3352
  (eval $ac_try) 2>&5
 
3353
  ac_status=$?
 
3354
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3355
  (exit $ac_status); }; } &&
 
3356
         { ac_try='test -s conftest$ac_exeext'
 
3357
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3358
  (eval $ac_try) 2>&5
 
3359
  ac_status=$?
 
3360
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3361
  (exit $ac_status); }; }; then
1309
3362
  ac_cv_search_connect="none required"
1310
3363
else
1311
 
  echo "configure: failed program was:" >&5
1312
 
  cat conftest.$ac_ext >&5
 
3364
  echo "$as_me: failed program was:" >&5
 
3365
sed 's/^/| /' conftest.$ac_ext >&5
 
3366
 
1313
3367
fi
1314
 
rm -f conftest*
1315
 
test "$ac_cv_search_connect" = "no" && for i in socket; do
1316
 
LIBS="-l$i  $ac_func_search_save_LIBS"
1317
 
cat > conftest.$ac_ext <<EOF
1318
 
#line 1319 "configure"
1319
 
#include "confdefs.h"
 
3368
rm -f conftest.err conftest.$ac_objext \
 
3369
      conftest$ac_exeext conftest.$ac_ext
 
3370
if test "$ac_cv_search_connect" = no; then
 
3371
  for ac_lib in socket; do
 
3372
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
3373
    cat >conftest.$ac_ext <<_ACEOF
 
3374
/* confdefs.h.  */
 
3375
_ACEOF
 
3376
cat confdefs.h >>conftest.$ac_ext
 
3377
cat >>conftest.$ac_ext <<_ACEOF
 
3378
/* end confdefs.h.  */
 
3379
 
1320
3380
/* Override any gcc2 internal prototype to avoid an error.  */
 
3381
#ifdef __cplusplus
 
3382
extern "C"
 
3383
#endif
1321
3384
/* We use char because int might match the return type of a gcc2
1322
 
    builtin and then its argument prototype would still apply.  */
1323
 
char connect();
1324
 
 
1325
 
int main() {
1326
 
connect()
1327
 
; return 0; }
1328
 
EOF
1329
 
if { (eval echo configure:1330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1330
 
  rm -rf conftest*
1331
 
  ac_cv_search_connect="-l$i"
 
3385
   builtin and then its argument prototype would still apply.  */
 
3386
char connect ();
 
3387
int
 
3388
main ()
 
3389
{
 
3390
connect ();
 
3391
  ;
 
3392
  return 0;
 
3393
}
 
3394
_ACEOF
 
3395
rm -f conftest.$ac_objext conftest$ac_exeext
 
3396
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3397
  (eval $ac_link) 2>conftest.er1
 
3398
  ac_status=$?
 
3399
  grep -v '^ *+' conftest.er1 >conftest.err
 
3400
  rm -f conftest.er1
 
3401
  cat conftest.err >&5
 
3402
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3403
  (exit $ac_status); } &&
 
3404
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3405
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3406
  (eval $ac_try) 2>&5
 
3407
  ac_status=$?
 
3408
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3409
  (exit $ac_status); }; } &&
 
3410
         { ac_try='test -s conftest$ac_exeext'
 
3411
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3412
  (eval $ac_try) 2>&5
 
3413
  ac_status=$?
 
3414
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3415
  (exit $ac_status); }; }; then
 
3416
  ac_cv_search_connect="-l$ac_lib"
1332
3417
break
1333
3418
else
1334
 
  echo "configure: failed program was:" >&5
1335
 
  cat conftest.$ac_ext >&5
1336
 
fi
1337
 
rm -f conftest*
1338
 
done
1339
 
LIBS="$ac_func_search_save_LIBS"
1340
 
fi
 
3419
  echo "$as_me: failed program was:" >&5
 
3420
sed 's/^/| /' conftest.$ac_ext >&5
1341
3421
 
1342
 
echo "$ac_t""$ac_cv_search_connect" 1>&6
1343
 
if test "$ac_cv_search_connect" != "no"; then
 
3422
fi
 
3423
rm -f conftest.err conftest.$ac_objext \
 
3424
      conftest$ac_exeext conftest.$ac_ext
 
3425
  done
 
3426
fi
 
3427
LIBS=$ac_func_search_save_LIBS
 
3428
fi
 
3429
echo "$as_me:$LINENO: result: $ac_cv_search_connect" >&5
 
3430
echo "${ECHO_T}$ac_cv_search_connect" >&6
 
3431
if test "$ac_cv_search_connect" != no; then
1344
3432
  test "$ac_cv_search_connect" = "none required" || LIBS="$ac_cv_search_connect $LIBS"
1345
 
  
1346
 
else :
1347
 
  
 
3433
 
1348
3434
fi
 
3435
 
1349
3436
SOCKETLIBS="$LIBS"
1350
3437
 
1351
3438
LIBS="$SAVE_LIBS"
1352
 
 
1353
 
 
1354
 
 
1355
 
ac_safe=`echo "db2/db.h" | sed 'y%./+-%__p_%'`
1356
 
echo $ac_n "checking for db2/db.h""... $ac_c" 1>&6
1357
 
echo "configure:1358: checking for db2/db.h" >&5
1358
 
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1359
 
  echo $ac_n "(cached) $ac_c" 1>&6
1360
 
else
1361
 
  cat > conftest.$ac_ext <<EOF
1362
 
#line 1363 "configure"
1363
 
#include "confdefs.h"
1364
 
#include <db2/db.h>
1365
 
EOF
1366
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1367
 
{ (eval echo configure:1368: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1368
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1369
 
if test -z "$ac_err"; then
1370
 
  rm -rf conftest*
1371
 
  eval "ac_cv_header_$ac_safe=yes"
1372
 
else
1373
 
  echo "$ac_err" >&5
1374
 
  echo "configure: failed program was:" >&5
1375
 
  cat conftest.$ac_ext >&5
1376
 
  rm -rf conftest*
1377
 
  eval "ac_cv_header_$ac_safe=no"
1378
 
fi
1379
 
rm -f conftest*
1380
 
fi
1381
 
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1382
 
  echo "$ac_t""yes" 1>&6
1383
 
  echo $ac_n "checking for db_open in -ldb2""... $ac_c" 1>&6
1384
 
echo "configure:1385: checking for db_open in -ldb2" >&5
1385
 
ac_lib_var=`echo db2'_'db_open | sed 'y%./+-%__p_%'`
1386
 
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1387
 
  echo $ac_n "(cached) $ac_c" 1>&6
1388
 
else
1389
 
  ac_save_LIBS="$LIBS"
1390
 
LIBS="-ldb2  $LIBS"
1391
 
cat > conftest.$ac_ext <<EOF
1392
 
#line 1393 "configure"
1393
 
#include "confdefs.h"
1394
 
/* Override any gcc2 internal prototype to avoid an error.  */
1395
 
/* We use char because int might match the return type of a gcc2
1396
 
    builtin and then its argument prototype would still apply.  */
1397
 
char db_open();
1398
 
 
1399
 
int main() {
1400
 
db_open()
1401
 
; return 0; }
1402
 
EOF
1403
 
if { (eval echo configure:1404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1404
 
  rm -rf conftest*
1405
 
  eval "ac_cv_lib_$ac_lib_var=yes"
1406
 
else
1407
 
  echo "configure: failed program was:" >&5
1408
 
  cat conftest.$ac_ext >&5
1409
 
  rm -rf conftest*
1410
 
  eval "ac_cv_lib_$ac_lib_var=no"
1411
 
fi
1412
 
rm -f conftest*
1413
 
LIBS="$ac_save_LIBS"
1414
 
 
1415
 
fi
1416
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1417
 
  echo "$ac_t""yes" 1>&6
1418
 
  cat >> confdefs.h <<\EOF
1419
 
#define HAVE_DB2 1
1420
 
EOF
1421
 
 DB2LIB="-ldb2"
1422
 
else
1423
 
  echo "$ac_t""no" 1>&6
1424
 
fi
1425
 
 
1426
 
else
1427
 
  echo "$ac_t""no" 1>&6
1428
 
fi
1429
 
 
1430
 
 
1431
 
 
1432
 
echo $ac_n "checking system architecture""... $ac_c" 1>&6
1433
 
echo "configure:1434: checking system architecture" >&5
 
3439
 
 
3440
 
 
3441
 
 
3442
saveLIBS="$LIBS"
 
3443
LIBS="$LIBS -ldb"
 
3444
 
 
3445
 
 
3446
echo "$as_me:$LINENO: checking for egrep" >&5
 
3447
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
 
3448
if test "${ac_cv_prog_egrep+set}" = set; then
 
3449
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3450
else
 
3451
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
 
3452
    then ac_cv_prog_egrep='grep -E'
 
3453
    else ac_cv_prog_egrep='egrep'
 
3454
    fi
 
3455
fi
 
3456
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
 
3457
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
 
3458
 EGREP=$ac_cv_prog_egrep
 
3459
 
 
3460
 
 
3461
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
3462
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
 
3463
if test "${ac_cv_header_stdc+set}" = set; then
 
3464
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3465
else
 
3466
  cat >conftest.$ac_ext <<_ACEOF
 
3467
/* confdefs.h.  */
 
3468
_ACEOF
 
3469
cat confdefs.h >>conftest.$ac_ext
 
3470
cat >>conftest.$ac_ext <<_ACEOF
 
3471
/* end confdefs.h.  */
 
3472
#include <stdlib.h>
 
3473
#include <stdarg.h>
 
3474
#include <string.h>
 
3475
#include <float.h>
 
3476
 
 
3477
int
 
3478
main ()
 
3479
{
 
3480
 
 
3481
  ;
 
3482
  return 0;
 
3483
}
 
3484
_ACEOF
 
3485
rm -f conftest.$ac_objext
 
3486
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3487
  (eval $ac_compile) 2>conftest.er1
 
3488
  ac_status=$?
 
3489
  grep -v '^ *+' conftest.er1 >conftest.err
 
3490
  rm -f conftest.er1
 
3491
  cat conftest.err >&5
 
3492
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3493
  (exit $ac_status); } &&
 
3494
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3495
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3496
  (eval $ac_try) 2>&5
 
3497
  ac_status=$?
 
3498
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3499
  (exit $ac_status); }; } &&
 
3500
         { ac_try='test -s conftest.$ac_objext'
 
3501
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3502
  (eval $ac_try) 2>&5
 
3503
  ac_status=$?
 
3504
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3505
  (exit $ac_status); }; }; then
 
3506
  ac_cv_header_stdc=yes
 
3507
else
 
3508
  echo "$as_me: failed program was:" >&5
 
3509
sed 's/^/| /' conftest.$ac_ext >&5
 
3510
 
 
3511
ac_cv_header_stdc=no
 
3512
fi
 
3513
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3514
 
 
3515
if test $ac_cv_header_stdc = yes; then
 
3516
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
3517
  cat >conftest.$ac_ext <<_ACEOF
 
3518
/* confdefs.h.  */
 
3519
_ACEOF
 
3520
cat confdefs.h >>conftest.$ac_ext
 
3521
cat >>conftest.$ac_ext <<_ACEOF
 
3522
/* end confdefs.h.  */
 
3523
#include <string.h>
 
3524
 
 
3525
_ACEOF
 
3526
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
3527
  $EGREP "memchr" >/dev/null 2>&1; then
 
3528
  :
 
3529
else
 
3530
  ac_cv_header_stdc=no
 
3531
fi
 
3532
rm -f conftest*
 
3533
 
 
3534
fi
 
3535
 
 
3536
if test $ac_cv_header_stdc = yes; then
 
3537
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
3538
  cat >conftest.$ac_ext <<_ACEOF
 
3539
/* confdefs.h.  */
 
3540
_ACEOF
 
3541
cat confdefs.h >>conftest.$ac_ext
 
3542
cat >>conftest.$ac_ext <<_ACEOF
 
3543
/* end confdefs.h.  */
 
3544
#include <stdlib.h>
 
3545
 
 
3546
_ACEOF
 
3547
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
3548
  $EGREP "free" >/dev/null 2>&1; then
 
3549
  :
 
3550
else
 
3551
  ac_cv_header_stdc=no
 
3552
fi
 
3553
rm -f conftest*
 
3554
 
 
3555
fi
 
3556
 
 
3557
if test $ac_cv_header_stdc = yes; then
 
3558
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
3559
  if test "$cross_compiling" = yes; then
 
3560
  :
 
3561
else
 
3562
  cat >conftest.$ac_ext <<_ACEOF
 
3563
/* confdefs.h.  */
 
3564
_ACEOF
 
3565
cat confdefs.h >>conftest.$ac_ext
 
3566
cat >>conftest.$ac_ext <<_ACEOF
 
3567
/* end confdefs.h.  */
 
3568
#include <ctype.h>
 
3569
#if ((' ' & 0x0FF) == 0x020)
 
3570
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
3571
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
3572
#else
 
3573
# define ISLOWER(c) \
 
3574
                   (('a' <= (c) && (c) <= 'i') \
 
3575
                     || ('j' <= (c) && (c) <= 'r') \
 
3576
                     || ('s' <= (c) && (c) <= 'z'))
 
3577
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
3578
#endif
 
3579
 
 
3580
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
3581
int
 
3582
main ()
 
3583
{
 
3584
  int i;
 
3585
  for (i = 0; i < 256; i++)
 
3586
    if (XOR (islower (i), ISLOWER (i))
 
3587
        || toupper (i) != TOUPPER (i))
 
3588
      exit(2);
 
3589
  exit (0);
 
3590
}
 
3591
_ACEOF
 
3592
rm -f conftest$ac_exeext
 
3593
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3594
  (eval $ac_link) 2>&5
 
3595
  ac_status=$?
 
3596
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3597
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
3598
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3599
  (eval $ac_try) 2>&5
 
3600
  ac_status=$?
 
3601
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3602
  (exit $ac_status); }; }; then
 
3603
  :
 
3604
else
 
3605
  echo "$as_me: program exited with status $ac_status" >&5
 
3606
echo "$as_me: failed program was:" >&5
 
3607
sed 's/^/| /' conftest.$ac_ext >&5
 
3608
 
 
3609
( exit $ac_status )
 
3610
ac_cv_header_stdc=no
 
3611
fi
 
3612
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
3613
fi
 
3614
fi
 
3615
fi
 
3616
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
3617
echo "${ECHO_T}$ac_cv_header_stdc" >&6
 
3618
if test $ac_cv_header_stdc = yes; then
 
3619
 
 
3620
cat >>confdefs.h <<\_ACEOF
 
3621
#define STDC_HEADERS 1
 
3622
_ACEOF
 
3623
 
 
3624
fi
 
3625
 
 
3626
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
3627
 
 
3628
 
 
3629
 
 
3630
 
 
3631
 
 
3632
 
 
3633
 
 
3634
 
 
3635
 
 
3636
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
3637
                  inttypes.h stdint.h unistd.h
 
3638
do
 
3639
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
3640
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
3641
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
3642
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
3643
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3644
else
 
3645
  cat >conftest.$ac_ext <<_ACEOF
 
3646
/* confdefs.h.  */
 
3647
_ACEOF
 
3648
cat confdefs.h >>conftest.$ac_ext
 
3649
cat >>conftest.$ac_ext <<_ACEOF
 
3650
/* end confdefs.h.  */
 
3651
$ac_includes_default
 
3652
 
 
3653
#include <$ac_header>
 
3654
_ACEOF
 
3655
rm -f conftest.$ac_objext
 
3656
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3657
  (eval $ac_compile) 2>conftest.er1
 
3658
  ac_status=$?
 
3659
  grep -v '^ *+' conftest.er1 >conftest.err
 
3660
  rm -f conftest.er1
 
3661
  cat conftest.err >&5
 
3662
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3663
  (exit $ac_status); } &&
 
3664
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3665
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3666
  (eval $ac_try) 2>&5
 
3667
  ac_status=$?
 
3668
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3669
  (exit $ac_status); }; } &&
 
3670
         { ac_try='test -s conftest.$ac_objext'
 
3671
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3672
  (eval $ac_try) 2>&5
 
3673
  ac_status=$?
 
3674
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3675
  (exit $ac_status); }; }; then
 
3676
  eval "$as_ac_Header=yes"
 
3677
else
 
3678
  echo "$as_me: failed program was:" >&5
 
3679
sed 's/^/| /' conftest.$ac_ext >&5
 
3680
 
 
3681
eval "$as_ac_Header=no"
 
3682
fi
 
3683
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3684
fi
 
3685
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
3686
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
3687
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
3688
  cat >>confdefs.h <<_ACEOF
 
3689
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
3690
_ACEOF
 
3691
 
 
3692
fi
 
3693
 
 
3694
done
 
3695
 
 
3696
 
 
3697
if test "${ac_cv_header_db_h+set}" = set; then
 
3698
  echo "$as_me:$LINENO: checking for db.h" >&5
 
3699
echo $ECHO_N "checking for db.h... $ECHO_C" >&6
 
3700
if test "${ac_cv_header_db_h+set}" = set; then
 
3701
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3702
fi
 
3703
echo "$as_me:$LINENO: result: $ac_cv_header_db_h" >&5
 
3704
echo "${ECHO_T}$ac_cv_header_db_h" >&6
 
3705
else
 
3706
  # Is the header compilable?
 
3707
echo "$as_me:$LINENO: checking db.h usability" >&5
 
3708
echo $ECHO_N "checking db.h usability... $ECHO_C" >&6
 
3709
cat >conftest.$ac_ext <<_ACEOF
 
3710
/* confdefs.h.  */
 
3711
_ACEOF
 
3712
cat confdefs.h >>conftest.$ac_ext
 
3713
cat >>conftest.$ac_ext <<_ACEOF
 
3714
/* end confdefs.h.  */
 
3715
$ac_includes_default
 
3716
#include <db.h>
 
3717
_ACEOF
 
3718
rm -f conftest.$ac_objext
 
3719
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3720
  (eval $ac_compile) 2>conftest.er1
 
3721
  ac_status=$?
 
3722
  grep -v '^ *+' conftest.er1 >conftest.err
 
3723
  rm -f conftest.er1
 
3724
  cat conftest.err >&5
 
3725
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3726
  (exit $ac_status); } &&
 
3727
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3728
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3729
  (eval $ac_try) 2>&5
 
3730
  ac_status=$?
 
3731
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3732
  (exit $ac_status); }; } &&
 
3733
         { ac_try='test -s conftest.$ac_objext'
 
3734
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3735
  (eval $ac_try) 2>&5
 
3736
  ac_status=$?
 
3737
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3738
  (exit $ac_status); }; }; then
 
3739
  ac_header_compiler=yes
 
3740
else
 
3741
  echo "$as_me: failed program was:" >&5
 
3742
sed 's/^/| /' conftest.$ac_ext >&5
 
3743
 
 
3744
ac_header_compiler=no
 
3745
fi
 
3746
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3747
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
3748
echo "${ECHO_T}$ac_header_compiler" >&6
 
3749
 
 
3750
# Is the header present?
 
3751
echo "$as_me:$LINENO: checking db.h presence" >&5
 
3752
echo $ECHO_N "checking db.h presence... $ECHO_C" >&6
 
3753
cat >conftest.$ac_ext <<_ACEOF
 
3754
/* confdefs.h.  */
 
3755
_ACEOF
 
3756
cat confdefs.h >>conftest.$ac_ext
 
3757
cat >>conftest.$ac_ext <<_ACEOF
 
3758
/* end confdefs.h.  */
 
3759
#include <db.h>
 
3760
_ACEOF
 
3761
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3762
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3763
  ac_status=$?
 
3764
  grep -v '^ *+' conftest.er1 >conftest.err
 
3765
  rm -f conftest.er1
 
3766
  cat conftest.err >&5
 
3767
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3768
  (exit $ac_status); } >/dev/null; then
 
3769
  if test -s conftest.err; then
 
3770
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3771
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
3772
  else
 
3773
    ac_cpp_err=
 
3774
  fi
 
3775
else
 
3776
  ac_cpp_err=yes
 
3777
fi
 
3778
if test -z "$ac_cpp_err"; then
 
3779
  ac_header_preproc=yes
 
3780
else
 
3781
  echo "$as_me: failed program was:" >&5
 
3782
sed 's/^/| /' conftest.$ac_ext >&5
 
3783
 
 
3784
  ac_header_preproc=no
 
3785
fi
 
3786
rm -f conftest.err conftest.$ac_ext
 
3787
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
3788
echo "${ECHO_T}$ac_header_preproc" >&6
 
3789
 
 
3790
# So?  What about this header?
 
3791
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
3792
  yes:no: )
 
3793
    { echo "$as_me:$LINENO: WARNING: db.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
3794
echo "$as_me: WARNING: db.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
3795
    { echo "$as_me:$LINENO: WARNING: db.h: proceeding with the compiler's result" >&5
 
3796
echo "$as_me: WARNING: db.h: proceeding with the compiler's result" >&2;}
 
3797
    ac_header_preproc=yes
 
3798
    ;;
 
3799
  no:yes:* )
 
3800
    { echo "$as_me:$LINENO: WARNING: db.h: present but cannot be compiled" >&5
 
3801
echo "$as_me: WARNING: db.h: present but cannot be compiled" >&2;}
 
3802
    { echo "$as_me:$LINENO: WARNING: db.h:     check for missing prerequisite headers?" >&5
 
3803
echo "$as_me: WARNING: db.h:     check for missing prerequisite headers?" >&2;}
 
3804
    { echo "$as_me:$LINENO: WARNING: db.h: see the Autoconf documentation" >&5
 
3805
echo "$as_me: WARNING: db.h: see the Autoconf documentation" >&2;}
 
3806
    { echo "$as_me:$LINENO: WARNING: db.h:     section \"Present But Cannot Be Compiled\"" >&5
 
3807
echo "$as_me: WARNING: db.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
3808
    { echo "$as_me:$LINENO: WARNING: db.h: proceeding with the preprocessor's result" >&5
 
3809
echo "$as_me: WARNING: db.h: proceeding with the preprocessor's result" >&2;}
 
3810
    { echo "$as_me:$LINENO: WARNING: db.h: in the future, the compiler will take precedence" >&5
 
3811
echo "$as_me: WARNING: db.h: in the future, the compiler will take precedence" >&2;}
 
3812
    (
 
3813
      cat <<\_ASBOX
 
3814
## ------------------------------------------ ##
 
3815
## Report this to the AC_PACKAGE_NAME lists.  ##
 
3816
## ------------------------------------------ ##
 
3817
_ASBOX
 
3818
    ) |
 
3819
      sed "s/^/$as_me: WARNING:     /" >&2
 
3820
    ;;
 
3821
esac
 
3822
echo "$as_me:$LINENO: checking for db.h" >&5
 
3823
echo $ECHO_N "checking for db.h... $ECHO_C" >&6
 
3824
if test "${ac_cv_header_db_h+set}" = set; then
 
3825
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3826
else
 
3827
  ac_cv_header_db_h=$ac_header_preproc
 
3828
fi
 
3829
echo "$as_me:$LINENO: result: $ac_cv_header_db_h" >&5
 
3830
echo "${ECHO_T}$ac_cv_header_db_h" >&6
 
3831
 
 
3832
fi
 
3833
if test $ac_cv_header_db_h = yes; then
 
3834
  echo "$as_me:$LINENO: checking if we can link against BerkeleyDB" >&5
 
3835
echo $ECHO_N "checking if we can link against BerkeleyDB... $ECHO_C" >&6
 
3836
      cat >conftest.$ac_ext <<_ACEOF
 
3837
/* confdefs.h.  */
 
3838
_ACEOF
 
3839
cat confdefs.h >>conftest.$ac_ext
 
3840
cat >>conftest.$ac_ext <<_ACEOF
 
3841
/* end confdefs.h.  */
 
3842
#include <db.h>
 
3843
int
 
3844
main ()
 
3845
{
 
3846
int r, s, t; db_version(&r, &s, &t);
 
3847
 
 
3848
  ;
 
3849
  return 0;
 
3850
}
 
3851
_ACEOF
 
3852
rm -f conftest.$ac_objext conftest$ac_exeext
 
3853
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3854
  (eval $ac_link) 2>conftest.er1
 
3855
  ac_status=$?
 
3856
  grep -v '^ *+' conftest.er1 >conftest.err
 
3857
  rm -f conftest.er1
 
3858
  cat conftest.err >&5
 
3859
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3860
  (exit $ac_status); } &&
 
3861
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3862
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3863
  (eval $ac_try) 2>&5
 
3864
  ac_status=$?
 
3865
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3866
  (exit $ac_status); }; } &&
 
3867
         { ac_try='test -s conftest$ac_exeext'
 
3868
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3869
  (eval $ac_try) 2>&5
 
3870
  ac_status=$?
 
3871
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3872
  (exit $ac_status); }; }; then
 
3873
  cat >>confdefs.h <<\_ACEOF
 
3874
#define HAVE_BDB 1
 
3875
_ACEOF
 
3876
 
 
3877
       BDBLIB="-ldb"
 
3878
       echo "$as_me:$LINENO: result: yes" >&5
 
3879
echo "${ECHO_T}yes" >&6
 
3880
else
 
3881
  echo "$as_me: failed program was:" >&5
 
3882
sed 's/^/| /' conftest.$ac_ext >&5
 
3883
 
 
3884
BDBLIB=""
 
3885
       echo "$as_me:$LINENO: result: no" >&5
 
3886
echo "${ECHO_T}no" >&6
 
3887
 
 
3888
fi
 
3889
rm -f conftest.err conftest.$ac_objext \
 
3890
      conftest$ac_exeext conftest.$ac_ext
 
3891
 
 
3892
fi
 
3893
 
 
3894
 
 
3895
 
 
3896
LIBS="$saveLIBS"
 
3897
 
 
3898
 
 
3899
 
 
3900
echo "$as_me:$LINENO: checking system architecture" >&5
 
3901
echo $ECHO_N "checking system architecture... $ECHO_C" >&6
1434
3902
archset="`awk \" ! /^#|^\\\$/ { if(match(\\\"$target_cpu\\\",\\\"^\\\"\\\$1\\\"\\\$\\\")) {print \\\$2; exit}}\" $srcdir/buildlib/archtable`"
1435
3903
if test "x$archset" = "x"; then
1436
 
  { echo "configure: error: failed: use --host=" 1>&2; exit 1; }
 
3904
  { { echo "$as_me:$LINENO: error: failed: use --host= or check buildlib/archtable" >&5
 
3905
echo "$as_me: error: failed: use --host= or check buildlib/archtable" >&2;}
 
3906
   { (exit 1); exit 1; }; }
1437
3907
fi
1438
 
echo "$ac_t""$archset" 1>&6
1439
 
cat >> confdefs.h <<EOF
 
3908
echo "$as_me:$LINENO: result: $archset" >&5
 
3909
echo "${ECHO_T}$archset" >&6
 
3910
cat >>confdefs.h <<_ACEOF
1440
3911
#define COMMON_CPU "$archset"
1441
 
EOF
1442
 
 
1443
 
 
1444
 
echo $ac_n "checking system OS""... $ac_c" 1>&6
1445
 
echo "configure:1446: checking system OS" >&5
 
3912
_ACEOF
 
3913
 
 
3914
 
 
3915
echo "$as_me:$LINENO: checking system OS" >&5
 
3916
echo $ECHO_N "checking system OS... $ECHO_C" >&6
1446
3917
osset="`awk \" ! /^#|^\\\$/ {if (match(\\\"$target_vendor-$target_os\\\",\\\$1)) {print \\\$2; exit}}\" $srcdir/buildlib/ostable`"
1447
 
echo "$ac_t""$osset" 1>&6
1448
 
cat >> confdefs.h <<EOF
 
3918
echo "$as_me:$LINENO: result: $osset" >&5
 
3919
echo "${ECHO_T}$osset" >&6
 
3920
cat >>confdefs.h <<_ACEOF
1449
3921
#define COMMON_OS "$osset"
1450
 
EOF
1451
 
 
1452
 
 
1453
 
echo $ac_n "checking for C99 integer types""... $ac_c" 1>&6
1454
 
echo "configure:1455: checking for C99 integer types" >&5
1455
 
if eval "test \"`echo '$''{'c9x_ints'+set}'`\" = set"; then
1456
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
3922
_ACEOF
 
3923
 
 
3924
 
 
3925
echo "$as_me:$LINENO: checking for C99 integer types" >&5
 
3926
echo $ECHO_N "checking for C99 integer types... $ECHO_C" >&6
 
3927
if test "${c9x_ints+set}" = set; then
 
3928
  echo $ECHO_N "(cached) $ECHO_C" >&6
1457
3929
else
1458
 
  
1459
 
    cat > conftest.$ac_ext <<EOF
1460
 
#line 1461 "configure"
1461
 
#include "confdefs.h"
 
3930
 
 
3931
    cat >conftest.$ac_ext <<_ACEOF
 
3932
/* confdefs.h.  */
 
3933
_ACEOF
 
3934
cat confdefs.h >>conftest.$ac_ext
 
3935
cat >>conftest.$ac_ext <<_ACEOF
 
3936
/* end confdefs.h.  */
1462
3937
#include <inttypes.h>
1463
 
int main() {
 
3938
int
 
3939
main ()
 
3940
{
1464
3941
uint8_t Foo1;uint16_t Foo2;uint32_t Foo3;
1465
 
; return 0; }
1466
 
EOF
1467
 
if { (eval echo configure:1468: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1468
 
  rm -rf conftest*
 
3942
  ;
 
3943
  return 0;
 
3944
}
 
3945
_ACEOF
 
3946
rm -f conftest.$ac_objext
 
3947
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3948
  (eval $ac_compile) 2>conftest.er1
 
3949
  ac_status=$?
 
3950
  grep -v '^ *+' conftest.er1 >conftest.err
 
3951
  rm -f conftest.er1
 
3952
  cat conftest.err >&5
 
3953
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3954
  (exit $ac_status); } &&
 
3955
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3956
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3957
  (eval $ac_try) 2>&5
 
3958
  ac_status=$?
 
3959
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3960
  (exit $ac_status); }; } &&
 
3961
         { ac_try='test -s conftest.$ac_objext'
 
3962
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3963
  (eval $ac_try) 2>&5
 
3964
  ac_status=$?
 
3965
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3966
  (exit $ac_status); }; }; then
1469
3967
  c9x_ints=yes
1470
3968
else
1471
 
  echo "configure: failed program was:" >&5
1472
 
  cat conftest.$ac_ext >&5
1473
 
  rm -rf conftest*
1474
 
  c9x_ints=no
1475
 
fi
1476
 
rm -f conftest*
1477
 
fi
1478
 
 
1479
 
echo "$ac_t""$c9x_ints" 1>&6
1480
 
 
1481
 
echo $ac_n "checking for statvfs""... $ac_c" 1>&6
1482
 
echo "configure:1483: checking for statvfs" >&5
1483
 
if eval "test \"`echo '$''{'ac_cv_func_statvfs'+set}'`\" = set"; then
1484
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
3969
  echo "$as_me: failed program was:" >&5
 
3970
sed 's/^/| /' conftest.$ac_ext >&5
 
3971
 
 
3972
c9x_ints=no
 
3973
fi
 
3974
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3975
fi
 
3976
echo "$as_me:$LINENO: result: $c9x_ints" >&5
 
3977
echo "${ECHO_T}$c9x_ints" >&6
 
3978
 
 
3979
echo "$as_me:$LINENO: checking for statvfs" >&5
 
3980
echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
 
3981
if test "${ac_cv_func_statvfs+set}" = set; then
 
3982
  echo $ECHO_N "(cached) $ECHO_C" >&6
1485
3983
else
1486
 
  cat > conftest.$ac_ext <<EOF
1487
 
#line 1488 "configure"
1488
 
#include "confdefs.h"
 
3984
  cat >conftest.$ac_ext <<_ACEOF
 
3985
/* confdefs.h.  */
 
3986
_ACEOF
 
3987
cat confdefs.h >>conftest.$ac_ext
 
3988
cat >>conftest.$ac_ext <<_ACEOF
 
3989
/* end confdefs.h.  */
 
3990
/* Define statvfs to an innocuous variant, in case <limits.h> declares statvfs.
 
3991
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
3992
#define statvfs innocuous_statvfs
 
3993
 
1489
3994
/* System header to define __stub macros and hopefully few prototypes,
1490
 
    which can conflict with char statvfs(); below.  */
1491
 
#include <assert.h>
 
3995
    which can conflict with char statvfs (); below.
 
3996
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
3997
    <limits.h> exists even on freestanding compilers.  */
 
3998
 
 
3999
#ifdef __STDC__
 
4000
# include <limits.h>
 
4001
#else
 
4002
# include <assert.h>
 
4003
#endif
 
4004
 
 
4005
#undef statvfs
 
4006
 
1492
4007
/* Override any gcc2 internal prototype to avoid an error.  */
 
4008
#ifdef __cplusplus
 
4009
extern "C"
 
4010
{
 
4011
#endif
1493
4012
/* We use char because int might match the return type of a gcc2
1494
 
    builtin and then its argument prototype would still apply.  */
1495
 
char statvfs();
1496
 
 
1497
 
int main() {
1498
 
 
 
4013
   builtin and then its argument prototype would still apply.  */
 
4014
char statvfs ();
1499
4015
/* The GNU C library defines this for functions which it implements
1500
4016
    to always fail with ENOSYS.  Some functions are actually named
1501
4017
    something starting with __ and the normal name is an alias.  */
1502
4018
#if defined (__stub_statvfs) || defined (__stub___statvfs)
1503
4019
choke me
1504
4020
#else
1505
 
statvfs();
 
4021
char (*f) () = statvfs;
 
4022
#endif
 
4023
#ifdef __cplusplus
 
4024
}
1506
4025
#endif
1507
4026
 
1508
 
; return 0; }
1509
 
EOF
1510
 
if { (eval echo configure:1511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1511
 
  rm -rf conftest*
1512
 
  eval "ac_cv_func_statvfs=yes"
 
4027
int
 
4028
main ()
 
4029
{
 
4030
return f != statvfs;
 
4031
  ;
 
4032
  return 0;
 
4033
}
 
4034
_ACEOF
 
4035
rm -f conftest.$ac_objext conftest$ac_exeext
 
4036
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4037
  (eval $ac_link) 2>conftest.er1
 
4038
  ac_status=$?
 
4039
  grep -v '^ *+' conftest.er1 >conftest.err
 
4040
  rm -f conftest.er1
 
4041
  cat conftest.err >&5
 
4042
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4043
  (exit $ac_status); } &&
 
4044
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4045
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4046
  (eval $ac_try) 2>&5
 
4047
  ac_status=$?
 
4048
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4049
  (exit $ac_status); }; } &&
 
4050
         { ac_try='test -s conftest$ac_exeext'
 
4051
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4052
  (eval $ac_try) 2>&5
 
4053
  ac_status=$?
 
4054
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4055
  (exit $ac_status); }; }; then
 
4056
  ac_cv_func_statvfs=yes
1513
4057
else
1514
 
  echo "configure: failed program was:" >&5
1515
 
  cat conftest.$ac_ext >&5
1516
 
  rm -rf conftest*
1517
 
  eval "ac_cv_func_statvfs=no"
1518
 
fi
1519
 
rm -f conftest*
1520
 
fi
 
4058
  echo "$as_me: failed program was:" >&5
 
4059
sed 's/^/| /' conftest.$ac_ext >&5
1521
4060
 
1522
 
if eval "test \"`echo '$ac_cv_func_'statvfs`\" = yes"; then
1523
 
  echo "$ac_t""yes" 1>&6
 
4061
ac_cv_func_statvfs=no
 
4062
fi
 
4063
rm -f conftest.err conftest.$ac_objext \
 
4064
      conftest$ac_exeext conftest.$ac_ext
 
4065
fi
 
4066
echo "$as_me:$LINENO: result: $ac_cv_func_statvfs" >&5
 
4067
echo "${ECHO_T}$ac_cv_func_statvfs" >&6
 
4068
if test $ac_cv_func_statvfs = yes; then
1524
4069
  HAVE_STATVFS=yes
1525
 
else
1526
 
  echo "$ac_t""no" 1>&6
1527
4070
fi
1528
4071
 
1529
4072
 
1530
4073
 
1531
4074
if test x"$HAVE_STATVFS" != x"yes"; then
1532
 
   cat > conftest.$ac_ext <<EOF
1533
 
#line 1534 "configure"
1534
 
#include "confdefs.h"
 
4075
   cat >conftest.$ac_ext <<_ACEOF
 
4076
/* confdefs.h.  */
 
4077
_ACEOF
 
4078
cat confdefs.h >>conftest.$ac_ext
 
4079
cat >>conftest.$ac_ext <<_ACEOF
 
4080
/* end confdefs.h.  */
1535
4081
#include <sys/vfs.h>
1536
 
EOF
 
4082
 
 
4083
_ACEOF
1537
4084
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1538
 
  egrep "statfs" >/dev/null 2>&1; then
1539
 
  rm -rf conftest*
1540
 
  cat >> confdefs.h <<\EOF
 
4085
  $EGREP "statfs" >/dev/null 2>&1; then
 
4086
  cat >>confdefs.h <<\_ACEOF
1541
4087
#define HAVE_VFS_H 1
1542
 
EOF
 
4088
_ACEOF
1543
4089
 
1544
4090
else
1545
 
  rm -rf conftest*
1546
 
  
1547
 
   cat > conftest.$ac_ext <<EOF
1548
 
#line 1549 "configure"
1549
 
#include "confdefs.h"
 
4091
 
 
4092
   cat >conftest.$ac_ext <<_ACEOF
 
4093
/* confdefs.h.  */
 
4094
_ACEOF
 
4095
cat confdefs.h >>conftest.$ac_ext
 
4096
cat >>conftest.$ac_ext <<_ACEOF
 
4097
/* end confdefs.h.  */
1550
4098
#include <sys/mount.h>
1551
 
EOF
 
4099
 
 
4100
_ACEOF
1552
4101
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1553
 
  egrep "statfs" >/dev/null 2>&1; then
1554
 
  rm -rf conftest*
1555
 
  cat >> confdefs.h <<\EOF
 
4102
  $EGREP "statfs" >/dev/null 2>&1; then
 
4103
  cat >>confdefs.h <<\_ACEOF
1556
4104
#define HAVE_MOUNT_H 1
1557
 
EOF
1558
 
 
1559
 
else
1560
 
  rm -rf conftest*
1561
 
  { echo "configure: error: failed: Need statvfs" 1>&2; exit 1; }
1562
 
fi
1563
 
rm -f conftest*
1564
 
 
1565
 
   
1566
 
fi
1567
 
rm -f conftest*
1568
 
 
1569
 
fi
 
4105
_ACEOF
 
4106
 
 
4107
else
 
4108
  { { echo "$as_me:$LINENO: error: failed: Need statvfs" >&5
 
4109
echo "$as_me: error: failed: Need statvfs" >&2;}
 
4110
   { (exit 1); exit 1; }; }
 
4111
fi
 
4112
rm -f conftest*
 
4113
 
 
4114
 
 
4115
fi
 
4116
rm -f conftest*
 
4117
 
 
4118
fi
 
4119
 
 
4120
echo "$as_me:$LINENO: checking for timegm" >&5
 
4121
echo $ECHO_N "checking for timegm... $ECHO_C" >&6
 
4122
if test "${ac_cv_func_timegm+set}" = set; then
 
4123
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4124
else
 
4125
  cat >conftest.$ac_ext <<_ACEOF
 
4126
/* confdefs.h.  */
 
4127
_ACEOF
 
4128
cat confdefs.h >>conftest.$ac_ext
 
4129
cat >>conftest.$ac_ext <<_ACEOF
 
4130
/* end confdefs.h.  */
 
4131
/* Define timegm to an innocuous variant, in case <limits.h> declares timegm.
 
4132
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
4133
#define timegm innocuous_timegm
 
4134
 
 
4135
/* System header to define __stub macros and hopefully few prototypes,
 
4136
    which can conflict with char timegm (); below.
 
4137
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4138
    <limits.h> exists even on freestanding compilers.  */
 
4139
 
 
4140
#ifdef __STDC__
 
4141
# include <limits.h>
 
4142
#else
 
4143
# include <assert.h>
 
4144
#endif
 
4145
 
 
4146
#undef timegm
 
4147
 
 
4148
/* Override any gcc2 internal prototype to avoid an error.  */
 
4149
#ifdef __cplusplus
 
4150
extern "C"
 
4151
{
 
4152
#endif
 
4153
/* We use char because int might match the return type of a gcc2
 
4154
   builtin and then its argument prototype would still apply.  */
 
4155
char timegm ();
 
4156
/* The GNU C library defines this for functions which it implements
 
4157
    to always fail with ENOSYS.  Some functions are actually named
 
4158
    something starting with __ and the normal name is an alias.  */
 
4159
#if defined (__stub_timegm) || defined (__stub___timegm)
 
4160
choke me
 
4161
#else
 
4162
char (*f) () = timegm;
 
4163
#endif
 
4164
#ifdef __cplusplus
 
4165
}
 
4166
#endif
 
4167
 
 
4168
int
 
4169
main ()
 
4170
{
 
4171
return f != timegm;
 
4172
  ;
 
4173
  return 0;
 
4174
}
 
4175
_ACEOF
 
4176
rm -f conftest.$ac_objext conftest$ac_exeext
 
4177
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4178
  (eval $ac_link) 2>conftest.er1
 
4179
  ac_status=$?
 
4180
  grep -v '^ *+' conftest.er1 >conftest.err
 
4181
  rm -f conftest.er1
 
4182
  cat conftest.err >&5
 
4183
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4184
  (exit $ac_status); } &&
 
4185
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4186
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4187
  (eval $ac_try) 2>&5
 
4188
  ac_status=$?
 
4189
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4190
  (exit $ac_status); }; } &&
 
4191
         { ac_try='test -s conftest$ac_exeext'
 
4192
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4193
  (eval $ac_try) 2>&5
 
4194
  ac_status=$?
 
4195
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4196
  (exit $ac_status); }; }; then
 
4197
  ac_cv_func_timegm=yes
 
4198
else
 
4199
  echo "$as_me: failed program was:" >&5
 
4200
sed 's/^/| /' conftest.$ac_ext >&5
 
4201
 
 
4202
ac_cv_func_timegm=no
 
4203
fi
 
4204
rm -f conftest.err conftest.$ac_objext \
 
4205
      conftest$ac_exeext conftest.$ac_ext
 
4206
fi
 
4207
echo "$as_me:$LINENO: result: $ac_cv_func_timegm" >&5
 
4208
echo "${ECHO_T}$ac_cv_func_timegm" >&6
 
4209
if test $ac_cv_func_timegm = yes; then
 
4210
  cat >>confdefs.h <<\_ACEOF
 
4211
#define HAVE_TIMEGM 1
 
4212
_ACEOF
 
4213
 
 
4214
fi
 
4215
 
 
4216
 
1570
4217
 
1571
4218
 
1572
4219
archline="`awk \" ! /^#|^\\\$/ {if (match(\\\"$archset\\\",\\\$1)) {print; exit}}\" $srcdir/buildlib/sizetable | cut -f 2- -d ' '`"
1573
4220
if test "x$archline" != "x"; then
1574
 
   
 
4221
 
1575
4222
   set $archline
1576
4223
   if test "$1" = "little"; then
1577
4224
      ac_cv_c_bigendian=no
1585
4232
fi
1586
4233
 
1587
4234
if test "$cross_compiling" = "yes" -a "x$archline" = "x"; then
1588
 
  { echo "configure: error: When cross compiling" 1>&2; exit 1; }
 
4235
  { { echo "$as_me:$LINENO: error: When cross compiling" >&5
 
4236
echo "$as_me: error: When cross compiling" >&2;}
 
4237
   { (exit architecture must be present in sizetable); exit architecture must be present in sizetable; }; }
1589
4238
fi
1590
 
echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
1591
 
echo "configure:1592: checking whether byte ordering is bigendian" >&5
1592
 
if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
1593
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
4239
echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
 
4240
echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
 
4241
if test "${ac_cv_c_bigendian+set}" = set; then
 
4242
  echo $ECHO_N "(cached) $ECHO_C" >&6
1594
4243
else
1595
 
  ac_cv_c_bigendian=unknown
1596
 
# See if sys/param.h defines the BYTE_ORDER macro.
1597
 
cat > conftest.$ac_ext <<EOF
1598
 
#line 1599 "configure"
1599
 
#include "confdefs.h"
 
4244
  # See if sys/param.h defines the BYTE_ORDER macro.
 
4245
cat >conftest.$ac_ext <<_ACEOF
 
4246
/* confdefs.h.  */
 
4247
_ACEOF
 
4248
cat confdefs.h >>conftest.$ac_ext
 
4249
cat >>conftest.$ac_ext <<_ACEOF
 
4250
/* end confdefs.h.  */
1600
4251
#include <sys/types.h>
1601
4252
#include <sys/param.h>
1602
 
int main() {
1603
4253
 
 
4254
int
 
4255
main ()
 
4256
{
1604
4257
#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
1605
4258
 bogus endian macros
1606
4259
#endif
1607
 
; return 0; }
1608
 
EOF
1609
 
if { (eval echo configure:1610: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1610
 
  rm -rf conftest*
 
4260
 
 
4261
  ;
 
4262
  return 0;
 
4263
}
 
4264
_ACEOF
 
4265
rm -f conftest.$ac_objext
 
4266
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4267
  (eval $ac_compile) 2>conftest.er1
 
4268
  ac_status=$?
 
4269
  grep -v '^ *+' conftest.er1 >conftest.err
 
4270
  rm -f conftest.er1
 
4271
  cat conftest.err >&5
 
4272
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4273
  (exit $ac_status); } &&
 
4274
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4275
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4276
  (eval $ac_try) 2>&5
 
4277
  ac_status=$?
 
4278
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4279
  (exit $ac_status); }; } &&
 
4280
         { ac_try='test -s conftest.$ac_objext'
 
4281
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4282
  (eval $ac_try) 2>&5
 
4283
  ac_status=$?
 
4284
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4285
  (exit $ac_status); }; }; then
1611
4286
  # It does; now see whether it defined to BIG_ENDIAN or not.
1612
 
cat > conftest.$ac_ext <<EOF
1613
 
#line 1614 "configure"
1614
 
#include "confdefs.h"
 
4287
cat >conftest.$ac_ext <<_ACEOF
 
4288
/* confdefs.h.  */
 
4289
_ACEOF
 
4290
cat confdefs.h >>conftest.$ac_ext
 
4291
cat >>conftest.$ac_ext <<_ACEOF
 
4292
/* end confdefs.h.  */
1615
4293
#include <sys/types.h>
1616
4294
#include <sys/param.h>
1617
 
int main() {
1618
4295
 
 
4296
int
 
4297
main ()
 
4298
{
1619
4299
#if BYTE_ORDER != BIG_ENDIAN
1620
4300
 not big endian
1621
4301
#endif
1622
 
; return 0; }
1623
 
EOF
1624
 
if { (eval echo configure:1625: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1625
 
  rm -rf conftest*
 
4302
 
 
4303
  ;
 
4304
  return 0;
 
4305
}
 
4306
_ACEOF
 
4307
rm -f conftest.$ac_objext
 
4308
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4309
  (eval $ac_compile) 2>conftest.er1
 
4310
  ac_status=$?
 
4311
  grep -v '^ *+' conftest.er1 >conftest.err
 
4312
  rm -f conftest.er1
 
4313
  cat conftest.err >&5
 
4314
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4315
  (exit $ac_status); } &&
 
4316
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4317
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4318
  (eval $ac_try) 2>&5
 
4319
  ac_status=$?
 
4320
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4321
  (exit $ac_status); }; } &&
 
4322
         { ac_try='test -s conftest.$ac_objext'
 
4323
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4324
  (eval $ac_try) 2>&5
 
4325
  ac_status=$?
 
4326
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4327
  (exit $ac_status); }; }; then
1626
4328
  ac_cv_c_bigendian=yes
1627
4329
else
1628
 
  echo "configure: failed program was:" >&5
1629
 
  cat conftest.$ac_ext >&5
1630
 
  rm -rf conftest*
1631
 
  ac_cv_c_bigendian=no
 
4330
  echo "$as_me: failed program was:" >&5
 
4331
sed 's/^/| /' conftest.$ac_ext >&5
 
4332
 
 
4333
ac_cv_c_bigendian=no
1632
4334
fi
1633
 
rm -f conftest*
 
4335
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1634
4336
else
1635
 
  echo "configure: failed program was:" >&5
1636
 
  cat conftest.$ac_ext >&5
1637
 
fi
1638
 
rm -f conftest*
1639
 
if test $ac_cv_c_bigendian = unknown; then
 
4337
  echo "$as_me: failed program was:" >&5
 
4338
sed 's/^/| /' conftest.$ac_ext >&5
 
4339
 
 
4340
# It does not; compile a test program.
1640
4341
if test "$cross_compiling" = yes; then
1641
 
    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1642
 
else
1643
 
  cat > conftest.$ac_ext <<EOF
1644
 
#line 1645 "configure"
1645
 
#include "confdefs.h"
1646
 
main () {
 
4342
  # try to guess the endianness by grepping values into an object file
 
4343
  ac_cv_c_bigendian=unknown
 
4344
  cat >conftest.$ac_ext <<_ACEOF
 
4345
/* confdefs.h.  */
 
4346
_ACEOF
 
4347
cat confdefs.h >>conftest.$ac_ext
 
4348
cat >>conftest.$ac_ext <<_ACEOF
 
4349
/* end confdefs.h.  */
 
4350
short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
 
4351
short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
 
4352
void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
 
4353
short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
 
4354
short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
 
4355
void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
 
4356
int
 
4357
main ()
 
4358
{
 
4359
 _ascii (); _ebcdic ();
 
4360
  ;
 
4361
  return 0;
 
4362
}
 
4363
_ACEOF
 
4364
rm -f conftest.$ac_objext
 
4365
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4366
  (eval $ac_compile) 2>conftest.er1
 
4367
  ac_status=$?
 
4368
  grep -v '^ *+' conftest.er1 >conftest.err
 
4369
  rm -f conftest.er1
 
4370
  cat conftest.err >&5
 
4371
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4372
  (exit $ac_status); } &&
 
4373
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4374
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4375
  (eval $ac_try) 2>&5
 
4376
  ac_status=$?
 
4377
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4378
  (exit $ac_status); }; } &&
 
4379
         { ac_try='test -s conftest.$ac_objext'
 
4380
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4381
  (eval $ac_try) 2>&5
 
4382
  ac_status=$?
 
4383
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4384
  (exit $ac_status); }; }; then
 
4385
  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
 
4386
  ac_cv_c_bigendian=yes
 
4387
fi
 
4388
if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
 
4389
  if test "$ac_cv_c_bigendian" = unknown; then
 
4390
    ac_cv_c_bigendian=no
 
4391
  else
 
4392
    # finding both strings is unlikely to happen, but who knows?
 
4393
    ac_cv_c_bigendian=unknown
 
4394
  fi
 
4395
fi
 
4396
else
 
4397
  echo "$as_me: failed program was:" >&5
 
4398
sed 's/^/| /' conftest.$ac_ext >&5
 
4399
 
 
4400
fi
 
4401
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4402
else
 
4403
  cat >conftest.$ac_ext <<_ACEOF
 
4404
/* confdefs.h.  */
 
4405
_ACEOF
 
4406
cat confdefs.h >>conftest.$ac_ext
 
4407
cat >>conftest.$ac_ext <<_ACEOF
 
4408
/* end confdefs.h.  */
 
4409
int
 
4410
main ()
 
4411
{
1647
4412
  /* Are we little or big endian?  From Harbison&Steele.  */
1648
4413
  union
1649
4414
  {
1653
4418
  u.l = 1;
1654
4419
  exit (u.c[sizeof (long) - 1] == 1);
1655
4420
}
1656
 
EOF
1657
 
if { (eval echo configure:1658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1658
 
then
 
4421
_ACEOF
 
4422
rm -f conftest$ac_exeext
 
4423
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4424
  (eval $ac_link) 2>&5
 
4425
  ac_status=$?
 
4426
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4427
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
4428
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4429
  (eval $ac_try) 2>&5
 
4430
  ac_status=$?
 
4431
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4432
  (exit $ac_status); }; }; then
1659
4433
  ac_cv_c_bigendian=no
1660
4434
else
1661
 
  echo "configure: failed program was:" >&5
1662
 
  cat conftest.$ac_ext >&5
1663
 
  rm -fr conftest*
1664
 
  ac_cv_c_bigendian=yes
1665
 
fi
1666
 
rm -fr conftest*
1667
 
fi
1668
 
 
1669
 
fi
1670
 
fi
1671
 
 
1672
 
echo "$ac_t""$ac_cv_c_bigendian" 1>&6
1673
 
if test $ac_cv_c_bigendian = yes; then
1674
 
  cat >> confdefs.h <<\EOF
 
4435
  echo "$as_me: program exited with status $ac_status" >&5
 
4436
echo "$as_me: failed program was:" >&5
 
4437
sed 's/^/| /' conftest.$ac_ext >&5
 
4438
 
 
4439
( exit $ac_status )
 
4440
ac_cv_c_bigendian=yes
 
4441
fi
 
4442
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
4443
fi
 
4444
fi
 
4445
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4446
fi
 
4447
echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
 
4448
echo "${ECHO_T}$ac_cv_c_bigendian" >&6
 
4449
case $ac_cv_c_bigendian in
 
4450
  yes)
 
4451
 
 
4452
cat >>confdefs.h <<\_ACEOF
1675
4453
#define WORDS_BIGENDIAN 1
1676
 
EOF
1677
 
 
1678
 
fi
1679
 
 
1680
 
   
 
4454
_ACEOF
 
4455
 ;;
 
4456
  no)
 
4457
     ;;
 
4458
  *)
 
4459
    { { echo "$as_me:$LINENO: error: unknown endianness
 
4460
presetting ac_cv_c_bigendian=no (or yes) will help" >&5
 
4461
echo "$as_me: error: unknown endianness
 
4462
presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
 
4463
   { (exit 1); exit 1; }; } ;;
 
4464
esac
 
4465
 
 
4466
 
1681
4467
HAVE_C9X=yes
1682
4468
if test x"$c9x_ints" = x"no"; then
1683
 
   echo $ac_n "checking size of char""... $ac_c" 1>&6
1684
 
echo "configure:1685: checking size of char" >&5
1685
 
if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
1686
 
  echo $ac_n "(cached) $ac_c" 1>&6
1687
 
else
1688
 
  if test "$cross_compiling" = yes; then
1689
 
  ac_cv_sizeof_char=$size_char
1690
 
else
1691
 
  cat > conftest.$ac_ext <<EOF
1692
 
#line 1693 "configure"
1693
 
#include "confdefs.h"
 
4469
   echo "$as_me:$LINENO: checking for char" >&5
 
4470
echo $ECHO_N "checking for char... $ECHO_C" >&6
 
4471
if test "${ac_cv_type_char+set}" = set; then
 
4472
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4473
else
 
4474
  cat >conftest.$ac_ext <<_ACEOF
 
4475
/* confdefs.h.  */
 
4476
_ACEOF
 
4477
cat confdefs.h >>conftest.$ac_ext
 
4478
cat >>conftest.$ac_ext <<_ACEOF
 
4479
/* end confdefs.h.  */
 
4480
$ac_includes_default
 
4481
int
 
4482
main ()
 
4483
{
 
4484
if ((char *) 0)
 
4485
  return 0;
 
4486
if (sizeof (char))
 
4487
  return 0;
 
4488
  ;
 
4489
  return 0;
 
4490
}
 
4491
_ACEOF
 
4492
rm -f conftest.$ac_objext
 
4493
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4494
  (eval $ac_compile) 2>conftest.er1
 
4495
  ac_status=$?
 
4496
  grep -v '^ *+' conftest.er1 >conftest.err
 
4497
  rm -f conftest.er1
 
4498
  cat conftest.err >&5
 
4499
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4500
  (exit $ac_status); } &&
 
4501
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4502
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4503
  (eval $ac_try) 2>&5
 
4504
  ac_status=$?
 
4505
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4506
  (exit $ac_status); }; } &&
 
4507
         { ac_try='test -s conftest.$ac_objext'
 
4508
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4509
  (eval $ac_try) 2>&5
 
4510
  ac_status=$?
 
4511
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4512
  (exit $ac_status); }; }; then
 
4513
  ac_cv_type_char=yes
 
4514
else
 
4515
  echo "$as_me: failed program was:" >&5
 
4516
sed 's/^/| /' conftest.$ac_ext >&5
 
4517
 
 
4518
ac_cv_type_char=no
 
4519
fi
 
4520
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4521
fi
 
4522
echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
 
4523
echo "${ECHO_T}$ac_cv_type_char" >&6
 
4524
 
 
4525
echo "$as_me:$LINENO: checking size of char" >&5
 
4526
echo $ECHO_N "checking size of char... $ECHO_C" >&6
 
4527
if test "${ac_cv_sizeof_char+set}" = set; then
 
4528
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4529
else
 
4530
  if test "$ac_cv_type_char" = yes; then
 
4531
  # The cast to unsigned long works around a bug in the HP C Compiler
 
4532
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
4533
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
4534
  # This bug is HP SR number 8606223364.
 
4535
  if test "$cross_compiling" = yes; then
 
4536
  # Depending upon the size, compute the lo and hi bounds.
 
4537
cat >conftest.$ac_ext <<_ACEOF
 
4538
/* confdefs.h.  */
 
4539
_ACEOF
 
4540
cat confdefs.h >>conftest.$ac_ext
 
4541
cat >>conftest.$ac_ext <<_ACEOF
 
4542
/* end confdefs.h.  */
 
4543
$ac_includes_default
 
4544
int
 
4545
main ()
 
4546
{
 
4547
static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
 
4548
test_array [0] = 0
 
4549
 
 
4550
  ;
 
4551
  return 0;
 
4552
}
 
4553
_ACEOF
 
4554
rm -f conftest.$ac_objext
 
4555
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4556
  (eval $ac_compile) 2>conftest.er1
 
4557
  ac_status=$?
 
4558
  grep -v '^ *+' conftest.er1 >conftest.err
 
4559
  rm -f conftest.er1
 
4560
  cat conftest.err >&5
 
4561
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4562
  (exit $ac_status); } &&
 
4563
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4564
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4565
  (eval $ac_try) 2>&5
 
4566
  ac_status=$?
 
4567
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4568
  (exit $ac_status); }; } &&
 
4569
         { ac_try='test -s conftest.$ac_objext'
 
4570
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4571
  (eval $ac_try) 2>&5
 
4572
  ac_status=$?
 
4573
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4574
  (exit $ac_status); }; }; then
 
4575
  ac_lo=0 ac_mid=0
 
4576
  while :; do
 
4577
    cat >conftest.$ac_ext <<_ACEOF
 
4578
/* confdefs.h.  */
 
4579
_ACEOF
 
4580
cat confdefs.h >>conftest.$ac_ext
 
4581
cat >>conftest.$ac_ext <<_ACEOF
 
4582
/* end confdefs.h.  */
 
4583
$ac_includes_default
 
4584
int
 
4585
main ()
 
4586
{
 
4587
static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
 
4588
test_array [0] = 0
 
4589
 
 
4590
  ;
 
4591
  return 0;
 
4592
}
 
4593
_ACEOF
 
4594
rm -f conftest.$ac_objext
 
4595
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4596
  (eval $ac_compile) 2>conftest.er1
 
4597
  ac_status=$?
 
4598
  grep -v '^ *+' conftest.er1 >conftest.err
 
4599
  rm -f conftest.er1
 
4600
  cat conftest.err >&5
 
4601
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4602
  (exit $ac_status); } &&
 
4603
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4604
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4605
  (eval $ac_try) 2>&5
 
4606
  ac_status=$?
 
4607
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4608
  (exit $ac_status); }; } &&
 
4609
         { ac_try='test -s conftest.$ac_objext'
 
4610
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4611
  (eval $ac_try) 2>&5
 
4612
  ac_status=$?
 
4613
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4614
  (exit $ac_status); }; }; then
 
4615
  ac_hi=$ac_mid; break
 
4616
else
 
4617
  echo "$as_me: failed program was:" >&5
 
4618
sed 's/^/| /' conftest.$ac_ext >&5
 
4619
 
 
4620
ac_lo=`expr $ac_mid + 1`
 
4621
                    if test $ac_lo -le $ac_mid; then
 
4622
                      ac_lo= ac_hi=
 
4623
                      break
 
4624
                    fi
 
4625
                    ac_mid=`expr 2 '*' $ac_mid + 1`
 
4626
fi
 
4627
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4628
  done
 
4629
else
 
4630
  echo "$as_me: failed program was:" >&5
 
4631
sed 's/^/| /' conftest.$ac_ext >&5
 
4632
 
 
4633
cat >conftest.$ac_ext <<_ACEOF
 
4634
/* confdefs.h.  */
 
4635
_ACEOF
 
4636
cat confdefs.h >>conftest.$ac_ext
 
4637
cat >>conftest.$ac_ext <<_ACEOF
 
4638
/* end confdefs.h.  */
 
4639
$ac_includes_default
 
4640
int
 
4641
main ()
 
4642
{
 
4643
static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
 
4644
test_array [0] = 0
 
4645
 
 
4646
  ;
 
4647
  return 0;
 
4648
}
 
4649
_ACEOF
 
4650
rm -f conftest.$ac_objext
 
4651
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4652
  (eval $ac_compile) 2>conftest.er1
 
4653
  ac_status=$?
 
4654
  grep -v '^ *+' conftest.er1 >conftest.err
 
4655
  rm -f conftest.er1
 
4656
  cat conftest.err >&5
 
4657
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4658
  (exit $ac_status); } &&
 
4659
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4660
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4661
  (eval $ac_try) 2>&5
 
4662
  ac_status=$?
 
4663
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4664
  (exit $ac_status); }; } &&
 
4665
         { ac_try='test -s conftest.$ac_objext'
 
4666
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4667
  (eval $ac_try) 2>&5
 
4668
  ac_status=$?
 
4669
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4670
  (exit $ac_status); }; }; then
 
4671
  ac_hi=-1 ac_mid=-1
 
4672
  while :; do
 
4673
    cat >conftest.$ac_ext <<_ACEOF
 
4674
/* confdefs.h.  */
 
4675
_ACEOF
 
4676
cat confdefs.h >>conftest.$ac_ext
 
4677
cat >>conftest.$ac_ext <<_ACEOF
 
4678
/* end confdefs.h.  */
 
4679
$ac_includes_default
 
4680
int
 
4681
main ()
 
4682
{
 
4683
static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
 
4684
test_array [0] = 0
 
4685
 
 
4686
  ;
 
4687
  return 0;
 
4688
}
 
4689
_ACEOF
 
4690
rm -f conftest.$ac_objext
 
4691
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4692
  (eval $ac_compile) 2>conftest.er1
 
4693
  ac_status=$?
 
4694
  grep -v '^ *+' conftest.er1 >conftest.err
 
4695
  rm -f conftest.er1
 
4696
  cat conftest.err >&5
 
4697
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4698
  (exit $ac_status); } &&
 
4699
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4700
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4701
  (eval $ac_try) 2>&5
 
4702
  ac_status=$?
 
4703
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4704
  (exit $ac_status); }; } &&
 
4705
         { ac_try='test -s conftest.$ac_objext'
 
4706
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4707
  (eval $ac_try) 2>&5
 
4708
  ac_status=$?
 
4709
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4710
  (exit $ac_status); }; }; then
 
4711
  ac_lo=$ac_mid; break
 
4712
else
 
4713
  echo "$as_me: failed program was:" >&5
 
4714
sed 's/^/| /' conftest.$ac_ext >&5
 
4715
 
 
4716
ac_hi=`expr '(' $ac_mid ')' - 1`
 
4717
                       if test $ac_mid -le $ac_hi; then
 
4718
                         ac_lo= ac_hi=
 
4719
                         break
 
4720
                       fi
 
4721
                       ac_mid=`expr 2 '*' $ac_mid`
 
4722
fi
 
4723
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4724
  done
 
4725
else
 
4726
  echo "$as_me: failed program was:" >&5
 
4727
sed 's/^/| /' conftest.$ac_ext >&5
 
4728
 
 
4729
ac_lo= ac_hi=
 
4730
fi
 
4731
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4732
fi
 
4733
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4734
# Binary search between lo and hi bounds.
 
4735
while test "x$ac_lo" != "x$ac_hi"; do
 
4736
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
4737
  cat >conftest.$ac_ext <<_ACEOF
 
4738
/* confdefs.h.  */
 
4739
_ACEOF
 
4740
cat confdefs.h >>conftest.$ac_ext
 
4741
cat >>conftest.$ac_ext <<_ACEOF
 
4742
/* end confdefs.h.  */
 
4743
$ac_includes_default
 
4744
int
 
4745
main ()
 
4746
{
 
4747
static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
 
4748
test_array [0] = 0
 
4749
 
 
4750
  ;
 
4751
  return 0;
 
4752
}
 
4753
_ACEOF
 
4754
rm -f conftest.$ac_objext
 
4755
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4756
  (eval $ac_compile) 2>conftest.er1
 
4757
  ac_status=$?
 
4758
  grep -v '^ *+' conftest.er1 >conftest.err
 
4759
  rm -f conftest.er1
 
4760
  cat conftest.err >&5
 
4761
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4762
  (exit $ac_status); } &&
 
4763
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4764
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4765
  (eval $ac_try) 2>&5
 
4766
  ac_status=$?
 
4767
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4768
  (exit $ac_status); }; } &&
 
4769
         { ac_try='test -s conftest.$ac_objext'
 
4770
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4771
  (eval $ac_try) 2>&5
 
4772
  ac_status=$?
 
4773
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4774
  (exit $ac_status); }; }; then
 
4775
  ac_hi=$ac_mid
 
4776
else
 
4777
  echo "$as_me: failed program was:" >&5
 
4778
sed 's/^/| /' conftest.$ac_ext >&5
 
4779
 
 
4780
ac_lo=`expr '(' $ac_mid ')' + 1`
 
4781
fi
 
4782
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4783
done
 
4784
case $ac_lo in
 
4785
?*) ac_cv_sizeof_char=$ac_lo;;
 
4786
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
 
4787
See \`config.log' for more details." >&5
 
4788
echo "$as_me: error: cannot compute sizeof (char), 77
 
4789
See \`config.log' for more details." >&2;}
 
4790
   { (exit 1); exit 1; }; } ;;
 
4791
esac
 
4792
else
 
4793
  if test "$cross_compiling" = yes; then
 
4794
  { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
 
4795
echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
 
4796
   { (exit 1); exit 1; }; }
 
4797
else
 
4798
  cat >conftest.$ac_ext <<_ACEOF
 
4799
/* confdefs.h.  */
 
4800
_ACEOF
 
4801
cat confdefs.h >>conftest.$ac_ext
 
4802
cat >>conftest.$ac_ext <<_ACEOF
 
4803
/* end confdefs.h.  */
 
4804
$ac_includes_default
 
4805
long longval () { return (long) (sizeof (char)); }
 
4806
unsigned long ulongval () { return (long) (sizeof (char)); }
1694
4807
#include <stdio.h>
1695
 
#include <sys/types.h>
1696
 
main()
 
4808
#include <stdlib.h>
 
4809
int
 
4810
main ()
1697
4811
{
1698
 
  FILE *f=fopen("conftestval", "w");
1699
 
  if (!f) exit(1);
1700
 
  fprintf(f, "%d\n", sizeof(char));
1701
 
  exit(0);
 
4812
 
 
4813
  FILE *f = fopen ("conftest.val", "w");
 
4814
  if (! f)
 
4815
    exit (1);
 
4816
  if (((long) (sizeof (char))) < 0)
 
4817
    {
 
4818
      long i = longval ();
 
4819
      if (i != ((long) (sizeof (char))))
 
4820
        exit (1);
 
4821
      fprintf (f, "%ld\n", i);
 
4822
    }
 
4823
  else
 
4824
    {
 
4825
      unsigned long i = ulongval ();
 
4826
      if (i != ((long) (sizeof (char))))
 
4827
        exit (1);
 
4828
      fprintf (f, "%lu\n", i);
 
4829
    }
 
4830
  exit (ferror (f) || fclose (f) != 0);
 
4831
 
 
4832
  ;
 
4833
  return 0;
1702
4834
}
1703
 
EOF
1704
 
if { (eval echo configure:1705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1705
 
then
1706
 
  ac_cv_sizeof_char=`cat conftestval`
1707
 
else
1708
 
  echo "configure: failed program was:" >&5
1709
 
  cat conftest.$ac_ext >&5
1710
 
  rm -fr conftest*
 
4835
_ACEOF
 
4836
rm -f conftest$ac_exeext
 
4837
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4838
  (eval $ac_link) 2>&5
 
4839
  ac_status=$?
 
4840
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4841
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
4842
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4843
  (eval $ac_try) 2>&5
 
4844
  ac_status=$?
 
4845
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4846
  (exit $ac_status); }; }; then
 
4847
  ac_cv_sizeof_char=`cat conftest.val`
 
4848
else
 
4849
  echo "$as_me: program exited with status $ac_status" >&5
 
4850
echo "$as_me: failed program was:" >&5
 
4851
sed 's/^/| /' conftest.$ac_ext >&5
 
4852
 
 
4853
( exit $ac_status )
 
4854
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
 
4855
See \`config.log' for more details." >&5
 
4856
echo "$as_me: error: cannot compute sizeof (char), 77
 
4857
See \`config.log' for more details." >&2;}
 
4858
   { (exit 1); exit 1; }; }
 
4859
fi
 
4860
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
4861
fi
 
4862
fi
 
4863
rm -f conftest.val
 
4864
else
1711
4865
  ac_cv_sizeof_char=0
1712
4866
fi
1713
 
rm -fr conftest*
1714
 
fi
1715
 
 
1716
 
fi
1717
 
echo "$ac_t""$ac_cv_sizeof_char" 1>&6
1718
 
cat >> confdefs.h <<EOF
 
4867
fi
 
4868
echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
 
4869
echo "${ECHO_T}$ac_cv_sizeof_char" >&6
 
4870
cat >>confdefs.h <<_ACEOF
1719
4871
#define SIZEOF_CHAR $ac_cv_sizeof_char
1720
 
EOF
1721
 
 
1722
 
 
1723
 
   echo $ac_n "checking size of int""... $ac_c" 1>&6
1724
 
echo "configure:1725: checking size of int" >&5
1725
 
if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
1726
 
  echo $ac_n "(cached) $ac_c" 1>&6
1727
 
else
1728
 
  if test "$cross_compiling" = yes; then
1729
 
  ac_cv_sizeof_int=$size_int
1730
 
else
1731
 
  cat > conftest.$ac_ext <<EOF
1732
 
#line 1733 "configure"
1733
 
#include "confdefs.h"
 
4872
_ACEOF
 
4873
 
 
4874
 
 
4875
   echo "$as_me:$LINENO: checking for int" >&5
 
4876
echo $ECHO_N "checking for int... $ECHO_C" >&6
 
4877
if test "${ac_cv_type_int+set}" = set; then
 
4878
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4879
else
 
4880
  cat >conftest.$ac_ext <<_ACEOF
 
4881
/* confdefs.h.  */
 
4882
_ACEOF
 
4883
cat confdefs.h >>conftest.$ac_ext
 
4884
cat >>conftest.$ac_ext <<_ACEOF
 
4885
/* end confdefs.h.  */
 
4886
$ac_includes_default
 
4887
int
 
4888
main ()
 
4889
{
 
4890
if ((int *) 0)
 
4891
  return 0;
 
4892
if (sizeof (int))
 
4893
  return 0;
 
4894
  ;
 
4895
  return 0;
 
4896
}
 
4897
_ACEOF
 
4898
rm -f conftest.$ac_objext
 
4899
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4900
  (eval $ac_compile) 2>conftest.er1
 
4901
  ac_status=$?
 
4902
  grep -v '^ *+' conftest.er1 >conftest.err
 
4903
  rm -f conftest.er1
 
4904
  cat conftest.err >&5
 
4905
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4906
  (exit $ac_status); } &&
 
4907
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4908
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4909
  (eval $ac_try) 2>&5
 
4910
  ac_status=$?
 
4911
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4912
  (exit $ac_status); }; } &&
 
4913
         { ac_try='test -s conftest.$ac_objext'
 
4914
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4915
  (eval $ac_try) 2>&5
 
4916
  ac_status=$?
 
4917
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4918
  (exit $ac_status); }; }; then
 
4919
  ac_cv_type_int=yes
 
4920
else
 
4921
  echo "$as_me: failed program was:" >&5
 
4922
sed 's/^/| /' conftest.$ac_ext >&5
 
4923
 
 
4924
ac_cv_type_int=no
 
4925
fi
 
4926
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4927
fi
 
4928
echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
 
4929
echo "${ECHO_T}$ac_cv_type_int" >&6
 
4930
 
 
4931
echo "$as_me:$LINENO: checking size of int" >&5
 
4932
echo $ECHO_N "checking size of int... $ECHO_C" >&6
 
4933
if test "${ac_cv_sizeof_int+set}" = set; then
 
4934
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4935
else
 
4936
  if test "$ac_cv_type_int" = yes; then
 
4937
  # The cast to unsigned long works around a bug in the HP C Compiler
 
4938
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
4939
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
4940
  # This bug is HP SR number 8606223364.
 
4941
  if test "$cross_compiling" = yes; then
 
4942
  # Depending upon the size, compute the lo and hi bounds.
 
4943
cat >conftest.$ac_ext <<_ACEOF
 
4944
/* confdefs.h.  */
 
4945
_ACEOF
 
4946
cat confdefs.h >>conftest.$ac_ext
 
4947
cat >>conftest.$ac_ext <<_ACEOF
 
4948
/* end confdefs.h.  */
 
4949
$ac_includes_default
 
4950
int
 
4951
main ()
 
4952
{
 
4953
static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
 
4954
test_array [0] = 0
 
4955
 
 
4956
  ;
 
4957
  return 0;
 
4958
}
 
4959
_ACEOF
 
4960
rm -f conftest.$ac_objext
 
4961
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4962
  (eval $ac_compile) 2>conftest.er1
 
4963
  ac_status=$?
 
4964
  grep -v '^ *+' conftest.er1 >conftest.err
 
4965
  rm -f conftest.er1
 
4966
  cat conftest.err >&5
 
4967
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4968
  (exit $ac_status); } &&
 
4969
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4970
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4971
  (eval $ac_try) 2>&5
 
4972
  ac_status=$?
 
4973
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4974
  (exit $ac_status); }; } &&
 
4975
         { ac_try='test -s conftest.$ac_objext'
 
4976
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4977
  (eval $ac_try) 2>&5
 
4978
  ac_status=$?
 
4979
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4980
  (exit $ac_status); }; }; then
 
4981
  ac_lo=0 ac_mid=0
 
4982
  while :; do
 
4983
    cat >conftest.$ac_ext <<_ACEOF
 
4984
/* confdefs.h.  */
 
4985
_ACEOF
 
4986
cat confdefs.h >>conftest.$ac_ext
 
4987
cat >>conftest.$ac_ext <<_ACEOF
 
4988
/* end confdefs.h.  */
 
4989
$ac_includes_default
 
4990
int
 
4991
main ()
 
4992
{
 
4993
static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
 
4994
test_array [0] = 0
 
4995
 
 
4996
  ;
 
4997
  return 0;
 
4998
}
 
4999
_ACEOF
 
5000
rm -f conftest.$ac_objext
 
5001
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5002
  (eval $ac_compile) 2>conftest.er1
 
5003
  ac_status=$?
 
5004
  grep -v '^ *+' conftest.er1 >conftest.err
 
5005
  rm -f conftest.er1
 
5006
  cat conftest.err >&5
 
5007
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5008
  (exit $ac_status); } &&
 
5009
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
5010
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5011
  (eval $ac_try) 2>&5
 
5012
  ac_status=$?
 
5013
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5014
  (exit $ac_status); }; } &&
 
5015
         { ac_try='test -s conftest.$ac_objext'
 
5016
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5017
  (eval $ac_try) 2>&5
 
5018
  ac_status=$?
 
5019
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5020
  (exit $ac_status); }; }; then
 
5021
  ac_hi=$ac_mid; break
 
5022
else
 
5023
  echo "$as_me: failed program was:" >&5
 
5024
sed 's/^/| /' conftest.$ac_ext >&5
 
5025
 
 
5026
ac_lo=`expr $ac_mid + 1`
 
5027
                    if test $ac_lo -le $ac_mid; then
 
5028
                      ac_lo= ac_hi=
 
5029
                      break
 
5030
                    fi
 
5031
                    ac_mid=`expr 2 '*' $ac_mid + 1`
 
5032
fi
 
5033
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5034
  done
 
5035
else
 
5036
  echo "$as_me: failed program was:" >&5
 
5037
sed 's/^/| /' conftest.$ac_ext >&5
 
5038
 
 
5039
cat >conftest.$ac_ext <<_ACEOF
 
5040
/* confdefs.h.  */
 
5041
_ACEOF
 
5042
cat confdefs.h >>conftest.$ac_ext
 
5043
cat >>conftest.$ac_ext <<_ACEOF
 
5044
/* end confdefs.h.  */
 
5045
$ac_includes_default
 
5046
int
 
5047
main ()
 
5048
{
 
5049
static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
 
5050
test_array [0] = 0
 
5051
 
 
5052
  ;
 
5053
  return 0;
 
5054
}
 
5055
_ACEOF
 
5056
rm -f conftest.$ac_objext
 
5057
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5058
  (eval $ac_compile) 2>conftest.er1
 
5059
  ac_status=$?
 
5060
  grep -v '^ *+' conftest.er1 >conftest.err
 
5061
  rm -f conftest.er1
 
5062
  cat conftest.err >&5
 
5063
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5064
  (exit $ac_status); } &&
 
5065
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
5066
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5067
  (eval $ac_try) 2>&5
 
5068
  ac_status=$?
 
5069
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5070
  (exit $ac_status); }; } &&
 
5071
         { ac_try='test -s conftest.$ac_objext'
 
5072
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5073
  (eval $ac_try) 2>&5
 
5074
  ac_status=$?
 
5075
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5076
  (exit $ac_status); }; }; then
 
5077
  ac_hi=-1 ac_mid=-1
 
5078
  while :; do
 
5079
    cat >conftest.$ac_ext <<_ACEOF
 
5080
/* confdefs.h.  */
 
5081
_ACEOF
 
5082
cat confdefs.h >>conftest.$ac_ext
 
5083
cat >>conftest.$ac_ext <<_ACEOF
 
5084
/* end confdefs.h.  */
 
5085
$ac_includes_default
 
5086
int
 
5087
main ()
 
5088
{
 
5089
static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
 
5090
test_array [0] = 0
 
5091
 
 
5092
  ;
 
5093
  return 0;
 
5094
}
 
5095
_ACEOF
 
5096
rm -f conftest.$ac_objext
 
5097
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5098
  (eval $ac_compile) 2>conftest.er1
 
5099
  ac_status=$?
 
5100
  grep -v '^ *+' conftest.er1 >conftest.err
 
5101
  rm -f conftest.er1
 
5102
  cat conftest.err >&5
 
5103
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5104
  (exit $ac_status); } &&
 
5105
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
5106
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5107
  (eval $ac_try) 2>&5
 
5108
  ac_status=$?
 
5109
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5110
  (exit $ac_status); }; } &&
 
5111
         { ac_try='test -s conftest.$ac_objext'
 
5112
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5113
  (eval $ac_try) 2>&5
 
5114
  ac_status=$?
 
5115
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5116
  (exit $ac_status); }; }; then
 
5117
  ac_lo=$ac_mid; break
 
5118
else
 
5119
  echo "$as_me: failed program was:" >&5
 
5120
sed 's/^/| /' conftest.$ac_ext >&5
 
5121
 
 
5122
ac_hi=`expr '(' $ac_mid ')' - 1`
 
5123
                       if test $ac_mid -le $ac_hi; then
 
5124
                         ac_lo= ac_hi=
 
5125
                         break
 
5126
                       fi
 
5127
                       ac_mid=`expr 2 '*' $ac_mid`
 
5128
fi
 
5129
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5130
  done
 
5131
else
 
5132
  echo "$as_me: failed program was:" >&5
 
5133
sed 's/^/| /' conftest.$ac_ext >&5
 
5134
 
 
5135
ac_lo= ac_hi=
 
5136
fi
 
5137
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5138
fi
 
5139
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5140
# Binary search between lo and hi bounds.
 
5141
while test "x$ac_lo" != "x$ac_hi"; do
 
5142
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
5143
  cat >conftest.$ac_ext <<_ACEOF
 
5144
/* confdefs.h.  */
 
5145
_ACEOF
 
5146
cat confdefs.h >>conftest.$ac_ext
 
5147
cat >>conftest.$ac_ext <<_ACEOF
 
5148
/* end confdefs.h.  */
 
5149
$ac_includes_default
 
5150
int
 
5151
main ()
 
5152
{
 
5153
static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
 
5154
test_array [0] = 0
 
5155
 
 
5156
  ;
 
5157
  return 0;
 
5158
}
 
5159
_ACEOF
 
5160
rm -f conftest.$ac_objext
 
5161
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5162
  (eval $ac_compile) 2>conftest.er1
 
5163
  ac_status=$?
 
5164
  grep -v '^ *+' conftest.er1 >conftest.err
 
5165
  rm -f conftest.er1
 
5166
  cat conftest.err >&5
 
5167
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5168
  (exit $ac_status); } &&
 
5169
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
5170
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5171
  (eval $ac_try) 2>&5
 
5172
  ac_status=$?
 
5173
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5174
  (exit $ac_status); }; } &&
 
5175
         { ac_try='test -s conftest.$ac_objext'
 
5176
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5177
  (eval $ac_try) 2>&5
 
5178
  ac_status=$?
 
5179
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5180
  (exit $ac_status); }; }; then
 
5181
  ac_hi=$ac_mid
 
5182
else
 
5183
  echo "$as_me: failed program was:" >&5
 
5184
sed 's/^/| /' conftest.$ac_ext >&5
 
5185
 
 
5186
ac_lo=`expr '(' $ac_mid ')' + 1`
 
5187
fi
 
5188
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5189
done
 
5190
case $ac_lo in
 
5191
?*) ac_cv_sizeof_int=$ac_lo;;
 
5192
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
 
5193
See \`config.log' for more details." >&5
 
5194
echo "$as_me: error: cannot compute sizeof (int), 77
 
5195
See \`config.log' for more details." >&2;}
 
5196
   { (exit 1); exit 1; }; } ;;
 
5197
esac
 
5198
else
 
5199
  if test "$cross_compiling" = yes; then
 
5200
  { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
 
5201
echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
 
5202
   { (exit 1); exit 1; }; }
 
5203
else
 
5204
  cat >conftest.$ac_ext <<_ACEOF
 
5205
/* confdefs.h.  */
 
5206
_ACEOF
 
5207
cat confdefs.h >>conftest.$ac_ext
 
5208
cat >>conftest.$ac_ext <<_ACEOF
 
5209
/* end confdefs.h.  */
 
5210
$ac_includes_default
 
5211
long longval () { return (long) (sizeof (int)); }
 
5212
unsigned long ulongval () { return (long) (sizeof (int)); }
1734
5213
#include <stdio.h>
1735
 
#include <sys/types.h>
1736
 
main()
 
5214
#include <stdlib.h>
 
5215
int
 
5216
main ()
1737
5217
{
1738
 
  FILE *f=fopen("conftestval", "w");
1739
 
  if (!f) exit(1);
1740
 
  fprintf(f, "%d\n", sizeof(int));
1741
 
  exit(0);
 
5218
 
 
5219
  FILE *f = fopen ("conftest.val", "w");
 
5220
  if (! f)
 
5221
    exit (1);
 
5222
  if (((long) (sizeof (int))) < 0)
 
5223
    {
 
5224
      long i = longval ();
 
5225
      if (i != ((long) (sizeof (int))))
 
5226
        exit (1);
 
5227
      fprintf (f, "%ld\n", i);
 
5228
    }
 
5229
  else
 
5230
    {
 
5231
      unsigned long i = ulongval ();
 
5232
      if (i != ((long) (sizeof (int))))
 
5233
        exit (1);
 
5234
      fprintf (f, "%lu\n", i);
 
5235
    }
 
5236
  exit (ferror (f) || fclose (f) != 0);
 
5237
 
 
5238
  ;
 
5239
  return 0;
1742
5240
}
1743
 
EOF
1744
 
if { (eval echo configure:1745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1745
 
then
1746
 
  ac_cv_sizeof_int=`cat conftestval`
1747
 
else
1748
 
  echo "configure: failed program was:" >&5
1749
 
  cat conftest.$ac_ext >&5
1750
 
  rm -fr conftest*
 
5241
_ACEOF
 
5242
rm -f conftest$ac_exeext
 
5243
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5244
  (eval $ac_link) 2>&5
 
5245
  ac_status=$?
 
5246
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5247
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
5248
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5249
  (eval $ac_try) 2>&5
 
5250
  ac_status=$?
 
5251
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5252
  (exit $ac_status); }; }; then
 
5253
  ac_cv_sizeof_int=`cat conftest.val`
 
5254
else
 
5255
  echo "$as_me: program exited with status $ac_status" >&5
 
5256
echo "$as_me: failed program was:" >&5
 
5257
sed 's/^/| /' conftest.$ac_ext >&5
 
5258
 
 
5259
( exit $ac_status )
 
5260
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
 
5261
See \`config.log' for more details." >&5
 
5262
echo "$as_me: error: cannot compute sizeof (int), 77
 
5263
See \`config.log' for more details." >&2;}
 
5264
   { (exit 1); exit 1; }; }
 
5265
fi
 
5266
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
5267
fi
 
5268
fi
 
5269
rm -f conftest.val
 
5270
else
1751
5271
  ac_cv_sizeof_int=0
1752
5272
fi
1753
 
rm -fr conftest*
1754
 
fi
1755
 
 
1756
 
fi
1757
 
echo "$ac_t""$ac_cv_sizeof_int" 1>&6
1758
 
cat >> confdefs.h <<EOF
 
5273
fi
 
5274
echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
 
5275
echo "${ECHO_T}$ac_cv_sizeof_int" >&6
 
5276
cat >>confdefs.h <<_ACEOF
1759
5277
#define SIZEOF_INT $ac_cv_sizeof_int
1760
 
EOF
1761
 
 
1762
 
 
1763
 
   echo $ac_n "checking size of short""... $ac_c" 1>&6
1764
 
echo "configure:1765: checking size of short" >&5
1765
 
if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
1766
 
  echo $ac_n "(cached) $ac_c" 1>&6
1767
 
else
1768
 
  if test "$cross_compiling" = yes; then
1769
 
  ac_cv_sizeof_short=$size_short
1770
 
else
1771
 
  cat > conftest.$ac_ext <<EOF
1772
 
#line 1773 "configure"
1773
 
#include "confdefs.h"
 
5278
_ACEOF
 
5279
 
 
5280
 
 
5281
   echo "$as_me:$LINENO: checking for short" >&5
 
5282
echo $ECHO_N "checking for short... $ECHO_C" >&6
 
5283
if test "${ac_cv_type_short+set}" = set; then
 
5284
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5285
else
 
5286
  cat >conftest.$ac_ext <<_ACEOF
 
5287
/* confdefs.h.  */
 
5288
_ACEOF
 
5289
cat confdefs.h >>conftest.$ac_ext
 
5290
cat >>conftest.$ac_ext <<_ACEOF
 
5291
/* end confdefs.h.  */
 
5292
$ac_includes_default
 
5293
int
 
5294
main ()
 
5295
{
 
5296
if ((short *) 0)
 
5297
  return 0;
 
5298
if (sizeof (short))
 
5299
  return 0;
 
5300
  ;
 
5301
  return 0;
 
5302
}
 
5303
_ACEOF
 
5304
rm -f conftest.$ac_objext
 
5305
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5306
  (eval $ac_compile) 2>conftest.er1
 
5307
  ac_status=$?
 
5308
  grep -v '^ *+' conftest.er1 >conftest.err
 
5309
  rm -f conftest.er1
 
5310
  cat conftest.err >&5
 
5311
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5312
  (exit $ac_status); } &&
 
5313
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
5314
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5315
  (eval $ac_try) 2>&5
 
5316
  ac_status=$?
 
5317
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5318
  (exit $ac_status); }; } &&
 
5319
         { ac_try='test -s conftest.$ac_objext'
 
5320
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5321
  (eval $ac_try) 2>&5
 
5322
  ac_status=$?
 
5323
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5324
  (exit $ac_status); }; }; then
 
5325
  ac_cv_type_short=yes
 
5326
else
 
5327
  echo "$as_me: failed program was:" >&5
 
5328
sed 's/^/| /' conftest.$ac_ext >&5
 
5329
 
 
5330
ac_cv_type_short=no
 
5331
fi
 
5332
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5333
fi
 
5334
echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
 
5335
echo "${ECHO_T}$ac_cv_type_short" >&6
 
5336
 
 
5337
echo "$as_me:$LINENO: checking size of short" >&5
 
5338
echo $ECHO_N "checking size of short... $ECHO_C" >&6
 
5339
if test "${ac_cv_sizeof_short+set}" = set; then
 
5340
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5341
else
 
5342
  if test "$ac_cv_type_short" = yes; then
 
5343
  # The cast to unsigned long works around a bug in the HP C Compiler
 
5344
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
5345
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
5346
  # This bug is HP SR number 8606223364.
 
5347
  if test "$cross_compiling" = yes; then
 
5348
  # Depending upon the size, compute the lo and hi bounds.
 
5349
cat >conftest.$ac_ext <<_ACEOF
 
5350
/* confdefs.h.  */
 
5351
_ACEOF
 
5352
cat confdefs.h >>conftest.$ac_ext
 
5353
cat >>conftest.$ac_ext <<_ACEOF
 
5354
/* end confdefs.h.  */
 
5355
$ac_includes_default
 
5356
int
 
5357
main ()
 
5358
{
 
5359
static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
 
5360
test_array [0] = 0
 
5361
 
 
5362
  ;
 
5363
  return 0;
 
5364
}
 
5365
_ACEOF
 
5366
rm -f conftest.$ac_objext
 
5367
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5368
  (eval $ac_compile) 2>conftest.er1
 
5369
  ac_status=$?
 
5370
  grep -v '^ *+' conftest.er1 >conftest.err
 
5371
  rm -f conftest.er1
 
5372
  cat conftest.err >&5
 
5373
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5374
  (exit $ac_status); } &&
 
5375
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
5376
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5377
  (eval $ac_try) 2>&5
 
5378
  ac_status=$?
 
5379
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5380
  (exit $ac_status); }; } &&
 
5381
         { ac_try='test -s conftest.$ac_objext'
 
5382
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5383
  (eval $ac_try) 2>&5
 
5384
  ac_status=$?
 
5385
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5386
  (exit $ac_status); }; }; then
 
5387
  ac_lo=0 ac_mid=0
 
5388
  while :; do
 
5389
    cat >conftest.$ac_ext <<_ACEOF
 
5390
/* confdefs.h.  */
 
5391
_ACEOF
 
5392
cat confdefs.h >>conftest.$ac_ext
 
5393
cat >>conftest.$ac_ext <<_ACEOF
 
5394
/* end confdefs.h.  */
 
5395
$ac_includes_default
 
5396
int
 
5397
main ()
 
5398
{
 
5399
static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
 
5400
test_array [0] = 0
 
5401
 
 
5402
  ;
 
5403
  return 0;
 
5404
}
 
5405
_ACEOF
 
5406
rm -f conftest.$ac_objext
 
5407
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5408
  (eval $ac_compile) 2>conftest.er1
 
5409
  ac_status=$?
 
5410
  grep -v '^ *+' conftest.er1 >conftest.err
 
5411
  rm -f conftest.er1
 
5412
  cat conftest.err >&5
 
5413
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5414
  (exit $ac_status); } &&
 
5415
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
5416
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5417
  (eval $ac_try) 2>&5
 
5418
  ac_status=$?
 
5419
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5420
  (exit $ac_status); }; } &&
 
5421
         { ac_try='test -s conftest.$ac_objext'
 
5422
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5423
  (eval $ac_try) 2>&5
 
5424
  ac_status=$?
 
5425
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5426
  (exit $ac_status); }; }; then
 
5427
  ac_hi=$ac_mid; break
 
5428
else
 
5429
  echo "$as_me: failed program was:" >&5
 
5430
sed 's/^/| /' conftest.$ac_ext >&5
 
5431
 
 
5432
ac_lo=`expr $ac_mid + 1`
 
5433
                    if test $ac_lo -le $ac_mid; then
 
5434
                      ac_lo= ac_hi=
 
5435
                      break
 
5436
                    fi
 
5437
                    ac_mid=`expr 2 '*' $ac_mid + 1`
 
5438
fi
 
5439
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5440
  done
 
5441
else
 
5442
  echo "$as_me: failed program was:" >&5
 
5443
sed 's/^/| /' conftest.$ac_ext >&5
 
5444
 
 
5445
cat >conftest.$ac_ext <<_ACEOF
 
5446
/* confdefs.h.  */
 
5447
_ACEOF
 
5448
cat confdefs.h >>conftest.$ac_ext
 
5449
cat >>conftest.$ac_ext <<_ACEOF
 
5450
/* end confdefs.h.  */
 
5451
$ac_includes_default
 
5452
int
 
5453
main ()
 
5454
{
 
5455
static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
 
5456
test_array [0] = 0
 
5457
 
 
5458
  ;
 
5459
  return 0;
 
5460
}
 
5461
_ACEOF
 
5462
rm -f conftest.$ac_objext
 
5463
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5464
  (eval $ac_compile) 2>conftest.er1
 
5465
  ac_status=$?
 
5466
  grep -v '^ *+' conftest.er1 >conftest.err
 
5467
  rm -f conftest.er1
 
5468
  cat conftest.err >&5
 
5469
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5470
  (exit $ac_status); } &&
 
5471
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
5472
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5473
  (eval $ac_try) 2>&5
 
5474
  ac_status=$?
 
5475
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5476
  (exit $ac_status); }; } &&
 
5477
         { ac_try='test -s conftest.$ac_objext'
 
5478
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5479
  (eval $ac_try) 2>&5
 
5480
  ac_status=$?
 
5481
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5482
  (exit $ac_status); }; }; then
 
5483
  ac_hi=-1 ac_mid=-1
 
5484
  while :; do
 
5485
    cat >conftest.$ac_ext <<_ACEOF
 
5486
/* confdefs.h.  */
 
5487
_ACEOF
 
5488
cat confdefs.h >>conftest.$ac_ext
 
5489
cat >>conftest.$ac_ext <<_ACEOF
 
5490
/* end confdefs.h.  */
 
5491
$ac_includes_default
 
5492
int
 
5493
main ()
 
5494
{
 
5495
static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
 
5496
test_array [0] = 0
 
5497
 
 
5498
  ;
 
5499
  return 0;
 
5500
}
 
5501
_ACEOF
 
5502
rm -f conftest.$ac_objext
 
5503
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5504
  (eval $ac_compile) 2>conftest.er1
 
5505
  ac_status=$?
 
5506
  grep -v '^ *+' conftest.er1 >conftest.err
 
5507
  rm -f conftest.er1
 
5508
  cat conftest.err >&5
 
5509
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5510
  (exit $ac_status); } &&
 
5511
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
5512
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5513
  (eval $ac_try) 2>&5
 
5514
  ac_status=$?
 
5515
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5516
  (exit $ac_status); }; } &&
 
5517
         { ac_try='test -s conftest.$ac_objext'
 
5518
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5519
  (eval $ac_try) 2>&5
 
5520
  ac_status=$?
 
5521
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5522
  (exit $ac_status); }; }; then
 
5523
  ac_lo=$ac_mid; break
 
5524
else
 
5525
  echo "$as_me: failed program was:" >&5
 
5526
sed 's/^/| /' conftest.$ac_ext >&5
 
5527
 
 
5528
ac_hi=`expr '(' $ac_mid ')' - 1`
 
5529
                       if test $ac_mid -le $ac_hi; then
 
5530
                         ac_lo= ac_hi=
 
5531
                         break
 
5532
                       fi
 
5533
                       ac_mid=`expr 2 '*' $ac_mid`
 
5534
fi
 
5535
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5536
  done
 
5537
else
 
5538
  echo "$as_me: failed program was:" >&5
 
5539
sed 's/^/| /' conftest.$ac_ext >&5
 
5540
 
 
5541
ac_lo= ac_hi=
 
5542
fi
 
5543
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5544
fi
 
5545
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5546
# Binary search between lo and hi bounds.
 
5547
while test "x$ac_lo" != "x$ac_hi"; do
 
5548
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
5549
  cat >conftest.$ac_ext <<_ACEOF
 
5550
/* confdefs.h.  */
 
5551
_ACEOF
 
5552
cat confdefs.h >>conftest.$ac_ext
 
5553
cat >>conftest.$ac_ext <<_ACEOF
 
5554
/* end confdefs.h.  */
 
5555
$ac_includes_default
 
5556
int
 
5557
main ()
 
5558
{
 
5559
static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
 
5560
test_array [0] = 0
 
5561
 
 
5562
  ;
 
5563
  return 0;
 
5564
}
 
5565
_ACEOF
 
5566
rm -f conftest.$ac_objext
 
5567
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5568
  (eval $ac_compile) 2>conftest.er1
 
5569
  ac_status=$?
 
5570
  grep -v '^ *+' conftest.er1 >conftest.err
 
5571
  rm -f conftest.er1
 
5572
  cat conftest.err >&5
 
5573
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5574
  (exit $ac_status); } &&
 
5575
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
5576
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5577
  (eval $ac_try) 2>&5
 
5578
  ac_status=$?
 
5579
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5580
  (exit $ac_status); }; } &&
 
5581
         { ac_try='test -s conftest.$ac_objext'
 
5582
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5583
  (eval $ac_try) 2>&5
 
5584
  ac_status=$?
 
5585
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5586
  (exit $ac_status); }; }; then
 
5587
  ac_hi=$ac_mid
 
5588
else
 
5589
  echo "$as_me: failed program was:" >&5
 
5590
sed 's/^/| /' conftest.$ac_ext >&5
 
5591
 
 
5592
ac_lo=`expr '(' $ac_mid ')' + 1`
 
5593
fi
 
5594
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5595
done
 
5596
case $ac_lo in
 
5597
?*) ac_cv_sizeof_short=$ac_lo;;
 
5598
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
 
5599
See \`config.log' for more details." >&5
 
5600
echo "$as_me: error: cannot compute sizeof (short), 77
 
5601
See \`config.log' for more details." >&2;}
 
5602
   { (exit 1); exit 1; }; } ;;
 
5603
esac
 
5604
else
 
5605
  if test "$cross_compiling" = yes; then
 
5606
  { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
 
5607
echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
 
5608
   { (exit 1); exit 1; }; }
 
5609
else
 
5610
  cat >conftest.$ac_ext <<_ACEOF
 
5611
/* confdefs.h.  */
 
5612
_ACEOF
 
5613
cat confdefs.h >>conftest.$ac_ext
 
5614
cat >>conftest.$ac_ext <<_ACEOF
 
5615
/* end confdefs.h.  */
 
5616
$ac_includes_default
 
5617
long longval () { return (long) (sizeof (short)); }
 
5618
unsigned long ulongval () { return (long) (sizeof (short)); }
1774
5619
#include <stdio.h>
1775
 
#include <sys/types.h>
1776
 
main()
 
5620
#include <stdlib.h>
 
5621
int
 
5622
main ()
1777
5623
{
1778
 
  FILE *f=fopen("conftestval", "w");
1779
 
  if (!f) exit(1);
1780
 
  fprintf(f, "%d\n", sizeof(short));
1781
 
  exit(0);
 
5624
 
 
5625
  FILE *f = fopen ("conftest.val", "w");
 
5626
  if (! f)
 
5627
    exit (1);
 
5628
  if (((long) (sizeof (short))) < 0)
 
5629
    {
 
5630
      long i = longval ();
 
5631
      if (i != ((long) (sizeof (short))))
 
5632
        exit (1);
 
5633
      fprintf (f, "%ld\n", i);
 
5634
    }
 
5635
  else
 
5636
    {
 
5637
      unsigned long i = ulongval ();
 
5638
      if (i != ((long) (sizeof (short))))
 
5639
        exit (1);
 
5640
      fprintf (f, "%lu\n", i);
 
5641
    }
 
5642
  exit (ferror (f) || fclose (f) != 0);
 
5643
 
 
5644
  ;
 
5645
  return 0;
1782
5646
}
1783
 
EOF
1784
 
if { (eval echo configure:1785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1785
 
then
1786
 
  ac_cv_sizeof_short=`cat conftestval`
1787
 
else
1788
 
  echo "configure: failed program was:" >&5
1789
 
  cat conftest.$ac_ext >&5
1790
 
  rm -fr conftest*
 
5647
_ACEOF
 
5648
rm -f conftest$ac_exeext
 
5649
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5650
  (eval $ac_link) 2>&5
 
5651
  ac_status=$?
 
5652
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5653
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
5654
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5655
  (eval $ac_try) 2>&5
 
5656
  ac_status=$?
 
5657
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5658
  (exit $ac_status); }; }; then
 
5659
  ac_cv_sizeof_short=`cat conftest.val`
 
5660
else
 
5661
  echo "$as_me: program exited with status $ac_status" >&5
 
5662
echo "$as_me: failed program was:" >&5
 
5663
sed 's/^/| /' conftest.$ac_ext >&5
 
5664
 
 
5665
( exit $ac_status )
 
5666
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
 
5667
See \`config.log' for more details." >&5
 
5668
echo "$as_me: error: cannot compute sizeof (short), 77
 
5669
See \`config.log' for more details." >&2;}
 
5670
   { (exit 1); exit 1; }; }
 
5671
fi
 
5672
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
5673
fi
 
5674
fi
 
5675
rm -f conftest.val
 
5676
else
1791
5677
  ac_cv_sizeof_short=0
1792
5678
fi
1793
 
rm -fr conftest*
1794
 
fi
1795
 
 
1796
 
fi
1797
 
echo "$ac_t""$ac_cv_sizeof_short" 1>&6
1798
 
cat >> confdefs.h <<EOF
 
5679
fi
 
5680
echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
 
5681
echo "${ECHO_T}$ac_cv_sizeof_short" >&6
 
5682
cat >>confdefs.h <<_ACEOF
1799
5683
#define SIZEOF_SHORT $ac_cv_sizeof_short
1800
 
EOF
1801
 
 
1802
 
 
1803
 
   echo $ac_n "checking size of long""... $ac_c" 1>&6
1804
 
echo "configure:1805: checking size of long" >&5
1805
 
if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
1806
 
  echo $ac_n "(cached) $ac_c" 1>&6
1807
 
else
1808
 
  if test "$cross_compiling" = yes; then
1809
 
  ac_cv_sizeof_long=$size_long
1810
 
else
1811
 
  cat > conftest.$ac_ext <<EOF
1812
 
#line 1813 "configure"
1813
 
#include "confdefs.h"
 
5684
_ACEOF
 
5685
 
 
5686
 
 
5687
   echo "$as_me:$LINENO: checking for long" >&5
 
5688
echo $ECHO_N "checking for long... $ECHO_C" >&6
 
5689
if test "${ac_cv_type_long+set}" = set; then
 
5690
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5691
else
 
5692
  cat >conftest.$ac_ext <<_ACEOF
 
5693
/* confdefs.h.  */
 
5694
_ACEOF
 
5695
cat confdefs.h >>conftest.$ac_ext
 
5696
cat >>conftest.$ac_ext <<_ACEOF
 
5697
/* end confdefs.h.  */
 
5698
$ac_includes_default
 
5699
int
 
5700
main ()
 
5701
{
 
5702
if ((long *) 0)
 
5703
  return 0;
 
5704
if (sizeof (long))
 
5705
  return 0;
 
5706
  ;
 
5707
  return 0;
 
5708
}
 
5709
_ACEOF
 
5710
rm -f conftest.$ac_objext
 
5711
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5712
  (eval $ac_compile) 2>conftest.er1
 
5713
  ac_status=$?
 
5714
  grep -v '^ *+' conftest.er1 >conftest.err
 
5715
  rm -f conftest.er1
 
5716
  cat conftest.err >&5
 
5717
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5718
  (exit $ac_status); } &&
 
5719
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
5720
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5721
  (eval $ac_try) 2>&5
 
5722
  ac_status=$?
 
5723
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5724
  (exit $ac_status); }; } &&
 
5725
         { ac_try='test -s conftest.$ac_objext'
 
5726
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5727
  (eval $ac_try) 2>&5
 
5728
  ac_status=$?
 
5729
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5730
  (exit $ac_status); }; }; then
 
5731
  ac_cv_type_long=yes
 
5732
else
 
5733
  echo "$as_me: failed program was:" >&5
 
5734
sed 's/^/| /' conftest.$ac_ext >&5
 
5735
 
 
5736
ac_cv_type_long=no
 
5737
fi
 
5738
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5739
fi
 
5740
echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
 
5741
echo "${ECHO_T}$ac_cv_type_long" >&6
 
5742
 
 
5743
echo "$as_me:$LINENO: checking size of long" >&5
 
5744
echo $ECHO_N "checking size of long... $ECHO_C" >&6
 
5745
if test "${ac_cv_sizeof_long+set}" = set; then
 
5746
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5747
else
 
5748
  if test "$ac_cv_type_long" = yes; then
 
5749
  # The cast to unsigned long works around a bug in the HP C Compiler
 
5750
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
5751
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
5752
  # This bug is HP SR number 8606223364.
 
5753
  if test "$cross_compiling" = yes; then
 
5754
  # Depending upon the size, compute the lo and hi bounds.
 
5755
cat >conftest.$ac_ext <<_ACEOF
 
5756
/* confdefs.h.  */
 
5757
_ACEOF
 
5758
cat confdefs.h >>conftest.$ac_ext
 
5759
cat >>conftest.$ac_ext <<_ACEOF
 
5760
/* end confdefs.h.  */
 
5761
$ac_includes_default
 
5762
int
 
5763
main ()
 
5764
{
 
5765
static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
 
5766
test_array [0] = 0
 
5767
 
 
5768
  ;
 
5769
  return 0;
 
5770
}
 
5771
_ACEOF
 
5772
rm -f conftest.$ac_objext
 
5773
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5774
  (eval $ac_compile) 2>conftest.er1
 
5775
  ac_status=$?
 
5776
  grep -v '^ *+' conftest.er1 >conftest.err
 
5777
  rm -f conftest.er1
 
5778
  cat conftest.err >&5
 
5779
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5780
  (exit $ac_status); } &&
 
5781
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
5782
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5783
  (eval $ac_try) 2>&5
 
5784
  ac_status=$?
 
5785
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5786
  (exit $ac_status); }; } &&
 
5787
         { ac_try='test -s conftest.$ac_objext'
 
5788
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5789
  (eval $ac_try) 2>&5
 
5790
  ac_status=$?
 
5791
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5792
  (exit $ac_status); }; }; then
 
5793
  ac_lo=0 ac_mid=0
 
5794
  while :; do
 
5795
    cat >conftest.$ac_ext <<_ACEOF
 
5796
/* confdefs.h.  */
 
5797
_ACEOF
 
5798
cat confdefs.h >>conftest.$ac_ext
 
5799
cat >>conftest.$ac_ext <<_ACEOF
 
5800
/* end confdefs.h.  */
 
5801
$ac_includes_default
 
5802
int
 
5803
main ()
 
5804
{
 
5805
static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
 
5806
test_array [0] = 0
 
5807
 
 
5808
  ;
 
5809
  return 0;
 
5810
}
 
5811
_ACEOF
 
5812
rm -f conftest.$ac_objext
 
5813
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5814
  (eval $ac_compile) 2>conftest.er1
 
5815
  ac_status=$?
 
5816
  grep -v '^ *+' conftest.er1 >conftest.err
 
5817
  rm -f conftest.er1
 
5818
  cat conftest.err >&5
 
5819
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5820
  (exit $ac_status); } &&
 
5821
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
5822
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5823
  (eval $ac_try) 2>&5
 
5824
  ac_status=$?
 
5825
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5826
  (exit $ac_status); }; } &&
 
5827
         { ac_try='test -s conftest.$ac_objext'
 
5828
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5829
  (eval $ac_try) 2>&5
 
5830
  ac_status=$?
 
5831
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5832
  (exit $ac_status); }; }; then
 
5833
  ac_hi=$ac_mid; break
 
5834
else
 
5835
  echo "$as_me: failed program was:" >&5
 
5836
sed 's/^/| /' conftest.$ac_ext >&5
 
5837
 
 
5838
ac_lo=`expr $ac_mid + 1`
 
5839
                    if test $ac_lo -le $ac_mid; then
 
5840
                      ac_lo= ac_hi=
 
5841
                      break
 
5842
                    fi
 
5843
                    ac_mid=`expr 2 '*' $ac_mid + 1`
 
5844
fi
 
5845
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5846
  done
 
5847
else
 
5848
  echo "$as_me: failed program was:" >&5
 
5849
sed 's/^/| /' conftest.$ac_ext >&5
 
5850
 
 
5851
cat >conftest.$ac_ext <<_ACEOF
 
5852
/* confdefs.h.  */
 
5853
_ACEOF
 
5854
cat confdefs.h >>conftest.$ac_ext
 
5855
cat >>conftest.$ac_ext <<_ACEOF
 
5856
/* end confdefs.h.  */
 
5857
$ac_includes_default
 
5858
int
 
5859
main ()
 
5860
{
 
5861
static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
 
5862
test_array [0] = 0
 
5863
 
 
5864
  ;
 
5865
  return 0;
 
5866
}
 
5867
_ACEOF
 
5868
rm -f conftest.$ac_objext
 
5869
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5870
  (eval $ac_compile) 2>conftest.er1
 
5871
  ac_status=$?
 
5872
  grep -v '^ *+' conftest.er1 >conftest.err
 
5873
  rm -f conftest.er1
 
5874
  cat conftest.err >&5
 
5875
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5876
  (exit $ac_status); } &&
 
5877
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
5878
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5879
  (eval $ac_try) 2>&5
 
5880
  ac_status=$?
 
5881
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5882
  (exit $ac_status); }; } &&
 
5883
         { ac_try='test -s conftest.$ac_objext'
 
5884
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5885
  (eval $ac_try) 2>&5
 
5886
  ac_status=$?
 
5887
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5888
  (exit $ac_status); }; }; then
 
5889
  ac_hi=-1 ac_mid=-1
 
5890
  while :; do
 
5891
    cat >conftest.$ac_ext <<_ACEOF
 
5892
/* confdefs.h.  */
 
5893
_ACEOF
 
5894
cat confdefs.h >>conftest.$ac_ext
 
5895
cat >>conftest.$ac_ext <<_ACEOF
 
5896
/* end confdefs.h.  */
 
5897
$ac_includes_default
 
5898
int
 
5899
main ()
 
5900
{
 
5901
static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
 
5902
test_array [0] = 0
 
5903
 
 
5904
  ;
 
5905
  return 0;
 
5906
}
 
5907
_ACEOF
 
5908
rm -f conftest.$ac_objext
 
5909
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5910
  (eval $ac_compile) 2>conftest.er1
 
5911
  ac_status=$?
 
5912
  grep -v '^ *+' conftest.er1 >conftest.err
 
5913
  rm -f conftest.er1
 
5914
  cat conftest.err >&5
 
5915
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5916
  (exit $ac_status); } &&
 
5917
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
5918
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5919
  (eval $ac_try) 2>&5
 
5920
  ac_status=$?
 
5921
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5922
  (exit $ac_status); }; } &&
 
5923
         { ac_try='test -s conftest.$ac_objext'
 
5924
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5925
  (eval $ac_try) 2>&5
 
5926
  ac_status=$?
 
5927
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5928
  (exit $ac_status); }; }; then
 
5929
  ac_lo=$ac_mid; break
 
5930
else
 
5931
  echo "$as_me: failed program was:" >&5
 
5932
sed 's/^/| /' conftest.$ac_ext >&5
 
5933
 
 
5934
ac_hi=`expr '(' $ac_mid ')' - 1`
 
5935
                       if test $ac_mid -le $ac_hi; then
 
5936
                         ac_lo= ac_hi=
 
5937
                         break
 
5938
                       fi
 
5939
                       ac_mid=`expr 2 '*' $ac_mid`
 
5940
fi
 
5941
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5942
  done
 
5943
else
 
5944
  echo "$as_me: failed program was:" >&5
 
5945
sed 's/^/| /' conftest.$ac_ext >&5
 
5946
 
 
5947
ac_lo= ac_hi=
 
5948
fi
 
5949
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5950
fi
 
5951
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5952
# Binary search between lo and hi bounds.
 
5953
while test "x$ac_lo" != "x$ac_hi"; do
 
5954
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
5955
  cat >conftest.$ac_ext <<_ACEOF
 
5956
/* confdefs.h.  */
 
5957
_ACEOF
 
5958
cat confdefs.h >>conftest.$ac_ext
 
5959
cat >>conftest.$ac_ext <<_ACEOF
 
5960
/* end confdefs.h.  */
 
5961
$ac_includes_default
 
5962
int
 
5963
main ()
 
5964
{
 
5965
static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
 
5966
test_array [0] = 0
 
5967
 
 
5968
  ;
 
5969
  return 0;
 
5970
}
 
5971
_ACEOF
 
5972
rm -f conftest.$ac_objext
 
5973
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5974
  (eval $ac_compile) 2>conftest.er1
 
5975
  ac_status=$?
 
5976
  grep -v '^ *+' conftest.er1 >conftest.err
 
5977
  rm -f conftest.er1
 
5978
  cat conftest.err >&5
 
5979
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5980
  (exit $ac_status); } &&
 
5981
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
5982
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5983
  (eval $ac_try) 2>&5
 
5984
  ac_status=$?
 
5985
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5986
  (exit $ac_status); }; } &&
 
5987
         { ac_try='test -s conftest.$ac_objext'
 
5988
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5989
  (eval $ac_try) 2>&5
 
5990
  ac_status=$?
 
5991
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5992
  (exit $ac_status); }; }; then
 
5993
  ac_hi=$ac_mid
 
5994
else
 
5995
  echo "$as_me: failed program was:" >&5
 
5996
sed 's/^/| /' conftest.$ac_ext >&5
 
5997
 
 
5998
ac_lo=`expr '(' $ac_mid ')' + 1`
 
5999
fi
 
6000
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
6001
done
 
6002
case $ac_lo in
 
6003
?*) ac_cv_sizeof_long=$ac_lo;;
 
6004
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
 
6005
See \`config.log' for more details." >&5
 
6006
echo "$as_me: error: cannot compute sizeof (long), 77
 
6007
See \`config.log' for more details." >&2;}
 
6008
   { (exit 1); exit 1; }; } ;;
 
6009
esac
 
6010
else
 
6011
  if test "$cross_compiling" = yes; then
 
6012
  { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
 
6013
echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
 
6014
   { (exit 1); exit 1; }; }
 
6015
else
 
6016
  cat >conftest.$ac_ext <<_ACEOF
 
6017
/* confdefs.h.  */
 
6018
_ACEOF
 
6019
cat confdefs.h >>conftest.$ac_ext
 
6020
cat >>conftest.$ac_ext <<_ACEOF
 
6021
/* end confdefs.h.  */
 
6022
$ac_includes_default
 
6023
long longval () { return (long) (sizeof (long)); }
 
6024
unsigned long ulongval () { return (long) (sizeof (long)); }
1814
6025
#include <stdio.h>
1815
 
#include <sys/types.h>
1816
 
main()
 
6026
#include <stdlib.h>
 
6027
int
 
6028
main ()
1817
6029
{
1818
 
  FILE *f=fopen("conftestval", "w");
1819
 
  if (!f) exit(1);
1820
 
  fprintf(f, "%d\n", sizeof(long));
1821
 
  exit(0);
 
6030
 
 
6031
  FILE *f = fopen ("conftest.val", "w");
 
6032
  if (! f)
 
6033
    exit (1);
 
6034
  if (((long) (sizeof (long))) < 0)
 
6035
    {
 
6036
      long i = longval ();
 
6037
      if (i != ((long) (sizeof (long))))
 
6038
        exit (1);
 
6039
      fprintf (f, "%ld\n", i);
 
6040
    }
 
6041
  else
 
6042
    {
 
6043
      unsigned long i = ulongval ();
 
6044
      if (i != ((long) (sizeof (long))))
 
6045
        exit (1);
 
6046
      fprintf (f, "%lu\n", i);
 
6047
    }
 
6048
  exit (ferror (f) || fclose (f) != 0);
 
6049
 
 
6050
  ;
 
6051
  return 0;
1822
6052
}
1823
 
EOF
1824
 
if { (eval echo configure:1825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1825
 
then
1826
 
  ac_cv_sizeof_long=`cat conftestval`
1827
 
else
1828
 
  echo "configure: failed program was:" >&5
1829
 
  cat conftest.$ac_ext >&5
1830
 
  rm -fr conftest*
 
6053
_ACEOF
 
6054
rm -f conftest$ac_exeext
 
6055
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6056
  (eval $ac_link) 2>&5
 
6057
  ac_status=$?
 
6058
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6059
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
6060
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6061
  (eval $ac_try) 2>&5
 
6062
  ac_status=$?
 
6063
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6064
  (exit $ac_status); }; }; then
 
6065
  ac_cv_sizeof_long=`cat conftest.val`
 
6066
else
 
6067
  echo "$as_me: program exited with status $ac_status" >&5
 
6068
echo "$as_me: failed program was:" >&5
 
6069
sed 's/^/| /' conftest.$ac_ext >&5
 
6070
 
 
6071
( exit $ac_status )
 
6072
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
 
6073
See \`config.log' for more details." >&5
 
6074
echo "$as_me: error: cannot compute sizeof (long), 77
 
6075
See \`config.log' for more details." >&2;}
 
6076
   { (exit 1); exit 1; }; }
 
6077
fi
 
6078
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
6079
fi
 
6080
fi
 
6081
rm -f conftest.val
 
6082
else
1831
6083
  ac_cv_sizeof_long=0
1832
6084
fi
1833
 
rm -fr conftest*
1834
 
fi
1835
 
 
1836
 
fi
1837
 
echo "$ac_t""$ac_cv_sizeof_long" 1>&6
1838
 
cat >> confdefs.h <<EOF
 
6085
fi
 
6086
echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
 
6087
echo "${ECHO_T}$ac_cv_sizeof_long" >&6
 
6088
cat >>confdefs.h <<_ACEOF
1839
6089
#define SIZEOF_LONG $ac_cv_sizeof_long
1840
 
EOF
1841
 
 
1842
 
 
1843
 
  
 
6090
_ACEOF
 
6091
 
 
6092
 
 
6093
 
1844
6094
   HAVE_C9X=
1845
 
   
 
6095
 
1846
6096
fi
1847
6097
 
1848
 
echo $ac_n "checking for missing socklen_t""... $ac_c" 1>&6
1849
 
echo "configure:1850: checking for missing socklen_t" >&5
1850
 
cat > conftest.$ac_ext <<EOF
1851
 
#line 1852 "configure"
1852
 
#include "confdefs.h"
 
6098
echo "$as_me:$LINENO: checking for missing socklen_t" >&5
 
6099
echo $ECHO_N "checking for missing socklen_t... $ECHO_C" >&6
 
6100
cat >conftest.$ac_ext <<_ACEOF
 
6101
/* confdefs.h.  */
 
6102
_ACEOF
 
6103
cat confdefs.h >>conftest.$ac_ext
 
6104
cat >>conftest.$ac_ext <<_ACEOF
 
6105
/* end confdefs.h.  */
1853
6106
#include <sys/socket.h>
1854
 
EOF
 
6107
 
 
6108
_ACEOF
1855
6109
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1856
 
  egrep "socklen_t" >/dev/null 2>&1; then
1857
 
  rm -rf conftest*
1858
 
  echo "$ac_t""no" 1>&6
 
6110
  $EGREP "socklen_t" >/dev/null 2>&1; then
 
6111
  echo "$as_me:$LINENO: result: no" >&5
 
6112
echo "${ECHO_T}no" >&6
1859
6113
else
1860
 
  rm -rf conftest*
1861
 
  
1862
 
        cat >> confdefs.h <<\EOF
 
6114
 
 
6115
        cat >>confdefs.h <<\_ACEOF
1863
6116
#define NEED_SOCKLEN_T_DEFINE 1
1864
 
EOF
 
6117
_ACEOF
1865
6118
 
1866
6119
        NEED_SOCKLEN_T_DEFINE=yes
1867
 
        echo "$ac_t""missing." 1>&6
 
6120
        echo "$as_me:$LINENO: result: missing." >&5
 
6121
echo "${ECHO_T}missing." >&6
1868
6122
fi
1869
6123
rm -f conftest*
1870
6124
 
1871
6125
 
1872
6126
 
1873
 
echo $ac_n "checking for h_errno""... $ac_c" 1>&6
1874
 
echo "configure:1875: checking for h_errno" >&5
1875
 
cat > conftest.$ac_ext <<EOF
1876
 
#line 1877 "configure"
1877
 
#include "confdefs.h"
 
6127
echo "$as_me:$LINENO: checking for h_errno" >&5
 
6128
echo $ECHO_N "checking for h_errno... $ECHO_C" >&6
 
6129
cat >conftest.$ac_ext <<_ACEOF
 
6130
/* confdefs.h.  */
 
6131
_ACEOF
 
6132
cat confdefs.h >>conftest.$ac_ext
 
6133
cat >>conftest.$ac_ext <<_ACEOF
 
6134
/* end confdefs.h.  */
1878
6135
#include <netdb.h>
1879
 
EOF
 
6136
 
 
6137
_ACEOF
1880
6138
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1881
 
  egrep "h_errno" >/dev/null 2>&1; then
1882
 
  rm -rf conftest*
1883
 
  echo "$ac_t""normal" 1>&6
 
6139
  $EGREP "h_errno" >/dev/null 2>&1; then
 
6140
  echo "$as_me:$LINENO: result: normal" >&5
 
6141
echo "${ECHO_T}normal" >&6
1884
6142
else
1885
 
  rm -rf conftest*
1886
6143
  CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED"
1887
 
    cat > conftest.$ac_ext <<EOF
1888
 
#line 1889 "configure"
1889
 
#include "confdefs.h"
 
6144
    cat >conftest.$ac_ext <<_ACEOF
 
6145
/* confdefs.h.  */
 
6146
_ACEOF
 
6147
cat confdefs.h >>conftest.$ac_ext
 
6148
cat >>conftest.$ac_ext <<_ACEOF
 
6149
/* end confdefs.h.  */
1890
6150
#include <netdb.h>
1891
 
EOF
 
6151
 
 
6152
_ACEOF
1892
6153
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1893
 
  egrep "h_errno" >/dev/null 2>&1; then
1894
 
  rm -rf conftest*
1895
 
  echo "$ac_t""needs _XOPEN_SOURCE_EXTENDED" 1>&6
 
6154
  $EGREP "h_errno" >/dev/null 2>&1; then
 
6155
  echo "$as_me:$LINENO: result: needs _XOPEN_SOURCE_EXTENDED" >&5
 
6156
echo "${ECHO_T}needs _XOPEN_SOURCE_EXTENDED" >&6
1896
6157
else
1897
 
  rm -rf conftest*
1898
 
  { echo "configure: error: "not found."" 1>&2; exit 1; }
 
6158
  { { echo "$as_me:$LINENO: error: \"not found.\"" >&5
 
6159
echo "$as_me: error: \"not found.\"" >&2;}
 
6160
   { (exit 1); exit 1; }; }
1899
6161
fi
1900
6162
rm -f conftest*
1901
6163
 
1902
 
   
 
6164
 
1903
6165
fi
1904
6166
rm -f conftest*
1905
6167
 
1906
6168
 
1907
6169
# Extract the first word of "debiandoc2html", so it can be a program name with args.
1908
6170
set dummy debiandoc2html; ac_word=$2
1909
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1910
 
echo "configure:1911: checking for $ac_word" >&5
1911
 
if eval "test \"`echo '$''{'ac_cv_path_DEBIANDOC_HTML'+set}'`\" = set"; then
1912
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
6171
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6172
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6173
if test "${ac_cv_path_DEBIANDOC_HTML+set}" = set; then
 
6174
  echo $ECHO_N "(cached) $ECHO_C" >&6
1913
6175
else
1914
 
  case "$DEBIANDOC_HTML" in
1915
 
  /*)
 
6176
  case $DEBIANDOC_HTML in
 
6177
  [\\/]* | ?:[\\/]*)
1916
6178
  ac_cv_path_DEBIANDOC_HTML="$DEBIANDOC_HTML" # Let the user override the test with a path.
1917
6179
  ;;
1918
 
  ?:/*)                  
1919
 
  ac_cv_path_DEBIANDOC_HTML="$DEBIANDOC_HTML" # Let the user override the test with a dos path.
1920
 
  ;;
1921
6180
  *)
1922
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1923
 
  ac_dummy="$PATH"
1924
 
  for ac_dir in $ac_dummy; do 
1925
 
    test -z "$ac_dir" && ac_dir=.
1926
 
    if test -f $ac_dir/$ac_word; then
1927
 
      ac_cv_path_DEBIANDOC_HTML="$ac_dir/$ac_word"
1928
 
      break
1929
 
    fi
1930
 
  done
1931
 
  IFS="$ac_save_ifs"
 
6181
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6182
for as_dir in $PATH
 
6183
do
 
6184
  IFS=$as_save_IFS
 
6185
  test -z "$as_dir" && as_dir=.
 
6186
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6187
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6188
    ac_cv_path_DEBIANDOC_HTML="$as_dir/$ac_word$ac_exec_ext"
 
6189
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6190
    break 2
 
6191
  fi
 
6192
done
 
6193
done
 
6194
 
1932
6195
  ;;
1933
6196
esac
1934
6197
fi
1935
 
DEBIANDOC_HTML="$ac_cv_path_DEBIANDOC_HTML"
 
6198
DEBIANDOC_HTML=$ac_cv_path_DEBIANDOC_HTML
 
6199
 
1936
6200
if test -n "$DEBIANDOC_HTML"; then
1937
 
  echo "$ac_t""$DEBIANDOC_HTML" 1>&6
 
6201
  echo "$as_me:$LINENO: result: $DEBIANDOC_HTML" >&5
 
6202
echo "${ECHO_T}$DEBIANDOC_HTML" >&6
1938
6203
else
1939
 
  echo "$ac_t""no" 1>&6
 
6204
  echo "$as_me:$LINENO: result: no" >&5
 
6205
echo "${ECHO_T}no" >&6
1940
6206
fi
1941
6207
 
1942
6208
# Extract the first word of "debiandoc2text", so it can be a program name with args.
1943
6209
set dummy debiandoc2text; ac_word=$2
1944
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1945
 
echo "configure:1946: checking for $ac_word" >&5
1946
 
if eval "test \"`echo '$''{'ac_cv_path_DEBIANDOC_TEXT'+set}'`\" = set"; then
1947
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
6210
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6211
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6212
if test "${ac_cv_path_DEBIANDOC_TEXT+set}" = set; then
 
6213
  echo $ECHO_N "(cached) $ECHO_C" >&6
1948
6214
else
1949
 
  case "$DEBIANDOC_TEXT" in
1950
 
  /*)
 
6215
  case $DEBIANDOC_TEXT in
 
6216
  [\\/]* | ?:[\\/]*)
1951
6217
  ac_cv_path_DEBIANDOC_TEXT="$DEBIANDOC_TEXT" # Let the user override the test with a path.
1952
6218
  ;;
1953
 
  ?:/*)                  
1954
 
  ac_cv_path_DEBIANDOC_TEXT="$DEBIANDOC_TEXT" # Let the user override the test with a dos path.
1955
 
  ;;
1956
6219
  *)
1957
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1958
 
  ac_dummy="$PATH"
1959
 
  for ac_dir in $ac_dummy; do 
1960
 
    test -z "$ac_dir" && ac_dir=.
1961
 
    if test -f $ac_dir/$ac_word; then
1962
 
      ac_cv_path_DEBIANDOC_TEXT="$ac_dir/$ac_word"
1963
 
      break
1964
 
    fi
1965
 
  done
1966
 
  IFS="$ac_save_ifs"
 
6220
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6221
for as_dir in $PATH
 
6222
do
 
6223
  IFS=$as_save_IFS
 
6224
  test -z "$as_dir" && as_dir=.
 
6225
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6226
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6227
    ac_cv_path_DEBIANDOC_TEXT="$as_dir/$ac_word$ac_exec_ext"
 
6228
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6229
    break 2
 
6230
  fi
 
6231
done
 
6232
done
 
6233
 
1967
6234
  ;;
1968
6235
esac
1969
6236
fi
1970
 
DEBIANDOC_TEXT="$ac_cv_path_DEBIANDOC_TEXT"
 
6237
DEBIANDOC_TEXT=$ac_cv_path_DEBIANDOC_TEXT
 
6238
 
1971
6239
if test -n "$DEBIANDOC_TEXT"; then
1972
 
  echo "$ac_t""$DEBIANDOC_TEXT" 1>&6
1973
 
else
1974
 
  echo "$ac_t""no" 1>&6
1975
 
fi
1976
 
 
1977
 
 
1978
 
# Extract the first word of "nsgmls", so it can be a program name with args.
1979
 
set dummy nsgmls; ac_word=$2
1980
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1981
 
echo "configure:1982: checking for $ac_word" >&5
1982
 
if eval "test \"`echo '$''{'ac_cv_path_NSGMLS'+set}'`\" = set"; then
1983
 
  echo $ac_n "(cached) $ac_c" 1>&6
1984
 
else
1985
 
  case "$NSGMLS" in
1986
 
  /*)
1987
 
  ac_cv_path_NSGMLS="$NSGMLS" # Let the user override the test with a path.
1988
 
  ;;
1989
 
  ?:/*)                  
1990
 
  ac_cv_path_NSGMLS="$NSGMLS" # Let the user override the test with a dos path.
1991
 
  ;;
1992
 
  *)
1993
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1994
 
  ac_dummy="$PATH"
1995
 
  for ac_dir in $ac_dummy; do 
1996
 
    test -z "$ac_dir" && ac_dir=.
1997
 
    if test -f $ac_dir/$ac_word; then
1998
 
      ac_cv_path_NSGMLS="$ac_dir/$ac_word"
1999
 
      break
2000
 
    fi
2001
 
  done
2002
 
  IFS="$ac_save_ifs"
2003
 
  ;;
2004
 
esac
2005
 
fi
2006
 
NSGMLS="$ac_cv_path_NSGMLS"
2007
 
if test -n "$NSGMLS"; then
2008
 
  echo "$ac_t""$NSGMLS" 1>&6
2009
 
else
2010
 
  echo "$ac_t""no" 1>&6
2011
 
fi
2012
 
 
2013
 
# Extract the first word of "sgmlspl", so it can be a program name with args.
2014
 
set dummy sgmlspl; ac_word=$2
2015
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2016
 
echo "configure:2017: checking for $ac_word" >&5
2017
 
if eval "test \"`echo '$''{'ac_cv_path_SGMLSPL'+set}'`\" = set"; then
2018
 
  echo $ac_n "(cached) $ac_c" 1>&6
2019
 
else
2020
 
  case "$SGMLSPL" in
2021
 
  /*)
2022
 
  ac_cv_path_SGMLSPL="$SGMLSPL" # Let the user override the test with a path.
2023
 
  ;;
2024
 
  ?:/*)                  
2025
 
  ac_cv_path_SGMLSPL="$SGMLSPL" # Let the user override the test with a dos path.
2026
 
  ;;
2027
 
  *)
2028
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2029
 
  ac_dummy="$PATH"
2030
 
  for ac_dir in $ac_dummy; do 
2031
 
    test -z "$ac_dir" && ac_dir=.
2032
 
    if test -f $ac_dir/$ac_word; then
2033
 
      ac_cv_path_SGMLSPL="$ac_dir/$ac_word"
2034
 
      break
2035
 
    fi
2036
 
  done
2037
 
  IFS="$ac_save_ifs"
2038
 
  ;;
2039
 
esac
2040
 
fi
2041
 
SGMLSPL="$ac_cv_path_SGMLSPL"
2042
 
if test -n "$SGMLSPL"; then
2043
 
  echo "$ac_t""$SGMLSPL" 1>&6
2044
 
else
2045
 
  echo "$ac_t""no" 1>&6
2046
 
fi
 
6240
  echo "$as_me:$LINENO: result: $DEBIANDOC_TEXT" >&5
 
6241
echo "${ECHO_T}$DEBIANDOC_TEXT" >&6
 
6242
else
 
6243
  echo "$as_me:$LINENO: result: no" >&5
 
6244
echo "${ECHO_T}no" >&6
 
6245
fi
 
6246
 
 
6247
 
 
6248
# Extract the first word of "docbook2man", so it can be a program name with args.
 
6249
set dummy docbook2man; ac_word=$2
 
6250
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6251
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6252
if test "${ac_cv_path_DOCBOOK2MAN+set}" = set; then
 
6253
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6254
else
 
6255
  case $DOCBOOK2MAN in
 
6256
  [\\/]* | ?:[\\/]*)
 
6257
  ac_cv_path_DOCBOOK2MAN="$DOCBOOK2MAN" # Let the user override the test with a path.
 
6258
  ;;
 
6259
  *)
 
6260
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6261
for as_dir in $PATH
 
6262
do
 
6263
  IFS=$as_save_IFS
 
6264
  test -z "$as_dir" && as_dir=.
 
6265
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6266
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6267
    ac_cv_path_DOCBOOK2MAN="$as_dir/$ac_word$ac_exec_ext"
 
6268
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6269
    break 2
 
6270
  fi
 
6271
done
 
6272
done
 
6273
 
 
6274
  ;;
 
6275
esac
 
6276
fi
 
6277
DOCBOOK2MAN=$ac_cv_path_DOCBOOK2MAN
 
6278
 
 
6279
if test -n "$DOCBOOK2MAN"; then
 
6280
  echo "$as_me:$LINENO: result: $DOCBOOK2MAN" >&5
 
6281
echo "${ECHO_T}$DOCBOOK2MAN" >&6
 
6282
else
 
6283
  echo "$as_me:$LINENO: result: no" >&5
 
6284
echo "${ECHO_T}no" >&6
 
6285
fi
 
6286
 
 
6287
 
 
6288
# Extract the first word of "xmlto", so it can be a program name with args.
 
6289
set dummy xmlto; ac_word=$2
 
6290
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6291
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6292
if test "${ac_cv_path_XMLTO+set}" = set; then
 
6293
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6294
else
 
6295
  case $XMLTO in
 
6296
  [\\/]* | ?:[\\/]*)
 
6297
  ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
 
6298
  ;;
 
6299
  *)
 
6300
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6301
for as_dir in $PATH
 
6302
do
 
6303
  IFS=$as_save_IFS
 
6304
  test -z "$as_dir" && as_dir=.
 
6305
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6306
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6307
    ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
 
6308
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6309
    break 2
 
6310
  fi
 
6311
done
 
6312
done
 
6313
 
 
6314
  ;;
 
6315
esac
 
6316
fi
 
6317
XMLTO=$ac_cv_path_XMLTO
 
6318
 
 
6319
if test -n "$XMLTO"; then
 
6320
  echo "$as_me:$LINENO: result: $XMLTO" >&5
 
6321
echo "${ECHO_T}$XMLTO" >&6
 
6322
else
 
6323
  echo "$as_me:$LINENO: result: no" >&5
 
6324
echo "${ECHO_T}no" >&6
 
6325
fi
 
6326
 
 
6327
 
 
6328
# Extract the first word of "xmlto", so it can be a program name with args.
 
6329
set dummy xmlto; ac_word=$2
 
6330
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6331
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6332
if test "${ac_cv_path_XMLTO+set}" = set; then
 
6333
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6334
else
 
6335
  case $XMLTO in
 
6336
  [\\/]* | ?:[\\/]*)
 
6337
  ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
 
6338
  ;;
 
6339
  *)
 
6340
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6341
for as_dir in $PATH
 
6342
do
 
6343
  IFS=$as_save_IFS
 
6344
  test -z "$as_dir" && as_dir=.
 
6345
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6346
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6347
    ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
 
6348
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6349
    break 2
 
6350
  fi
 
6351
done
 
6352
done
 
6353
 
 
6354
  ;;
 
6355
esac
 
6356
fi
 
6357
XMLTO=$ac_cv_path_XMLTO
 
6358
 
 
6359
if test -n "$XMLTO"; then
 
6360
  echo "$as_me:$LINENO: result: $XMLTO" >&5
 
6361
echo "${ECHO_T}$XMLTO" >&6
 
6362
else
 
6363
  echo "$as_me:$LINENO: result: no" >&5
 
6364
echo "${ECHO_T}no" >&6
 
6365
fi
 
6366
 
2047
6367
 
2048
6368
 
2049
6369
 
2053
6373
  if test "$withval" = "yes"; then
2054
6374
                        # Extract the first word of "getconf", so it can be a program name with args.
2055
6375
set dummy getconf; ac_word=$2
2056
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2057
 
echo "configure:2058: checking for $ac_word" >&5
2058
 
if eval "test \"`echo '$''{'ac_cv_path_GETCONF'+set}'`\" = set"; then
2059
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
6376
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6377
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6378
if test "${ac_cv_path_GETCONF+set}" = set; then
 
6379
  echo $ECHO_N "(cached) $ECHO_C" >&6
2060
6380
else
2061
 
  case "$GETCONF" in
2062
 
  /*)
 
6381
  case $GETCONF in
 
6382
  [\\/]* | ?:[\\/]*)
2063
6383
  ac_cv_path_GETCONF="$GETCONF" # Let the user override the test with a path.
2064
6384
  ;;
2065
 
  ?:/*)                  
2066
 
  ac_cv_path_GETCONF="$GETCONF" # Let the user override the test with a dos path.
2067
 
  ;;
2068
6385
  *)
2069
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2070
 
  ac_dummy="$PATH"
2071
 
  for ac_dir in $ac_dummy; do 
2072
 
    test -z "$ac_dir" && ac_dir=.
2073
 
    if test -f $ac_dir/$ac_word; then
2074
 
      ac_cv_path_GETCONF="$ac_dir/$ac_word"
2075
 
      break
2076
 
    fi
2077
 
  done
2078
 
  IFS="$ac_save_ifs"
 
6386
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6387
for as_dir in $PATH
 
6388
do
 
6389
  IFS=$as_save_IFS
 
6390
  test -z "$as_dir" && as_dir=.
 
6391
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6392
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6393
    ac_cv_path_GETCONF="$as_dir/$ac_word$ac_exec_ext"
 
6394
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6395
    break 2
 
6396
  fi
 
6397
done
 
6398
done
 
6399
 
2079
6400
  ;;
2080
6401
esac
2081
6402
fi
2082
 
GETCONF="$ac_cv_path_GETCONF"
 
6403
GETCONF=$ac_cv_path_GETCONF
 
6404
 
2083
6405
if test -n "$GETCONF"; then
2084
 
  echo "$ac_t""$GETCONF" 1>&6
 
6406
  echo "$as_me:$LINENO: result: $GETCONF" >&5
 
6407
echo "${ECHO_T}$GETCONF" >&6
2085
6408
else
2086
 
  echo "$ac_t""no" 1>&6
 
6409
  echo "$as_me:$LINENO: result: no" >&5
 
6410
echo "${ECHO_T}no" >&6
2087
6411
fi
2088
6412
 
2089
 
                elif test ! "$withval" = "no";then 
2090
 
                        echo $ac_n "checking getconf""... $ac_c" 1>&6
2091
 
echo "configure:2092: checking getconf" >&5
2092
 
                        echo "$ac_t""$withval" 1>&6
 
6413
                elif test ! "$withval" = "no";then
 
6414
                        echo "$as_me:$LINENO: checking getconf" >&5
 
6415
echo $ECHO_N "checking getconf... $ECHO_C" >&6
 
6416
                        echo "$as_me:$LINENO: result: $withval" >&5
 
6417
echo "${ECHO_T}$withval" >&6
2093
6418
                        GETCONF=$withval
2094
6419
                fi
2095
6420
else
2096
6421
  # Extract the first word of "getconf", so it can be a program name with args.
2097
6422
set dummy getconf; ac_word=$2
2098
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2099
 
echo "configure:2100: checking for $ac_word" >&5
2100
 
if eval "test \"`echo '$''{'ac_cv_path_GETCONF'+set}'`\" = set"; then
2101
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
6423
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6424
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6425
if test "${ac_cv_path_GETCONF+set}" = set; then
 
6426
  echo $ECHO_N "(cached) $ECHO_C" >&6
2102
6427
else
2103
 
  case "$GETCONF" in
2104
 
  /*)
 
6428
  case $GETCONF in
 
6429
  [\\/]* | ?:[\\/]*)
2105
6430
  ac_cv_path_GETCONF="$GETCONF" # Let the user override the test with a path.
2106
6431
  ;;
2107
 
  ?:/*)                  
2108
 
  ac_cv_path_GETCONF="$GETCONF" # Let the user override the test with a dos path.
2109
 
  ;;
2110
6432
  *)
2111
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2112
 
  ac_dummy="$PATH"
2113
 
  for ac_dir in $ac_dummy; do 
2114
 
    test -z "$ac_dir" && ac_dir=.
2115
 
    if test -f $ac_dir/$ac_word; then
2116
 
      ac_cv_path_GETCONF="$ac_dir/$ac_word"
2117
 
      break
2118
 
    fi
2119
 
  done
2120
 
  IFS="$ac_save_ifs"
 
6433
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6434
for as_dir in $PATH
 
6435
do
 
6436
  IFS=$as_save_IFS
 
6437
  test -z "$as_dir" && as_dir=.
 
6438
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6439
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6440
    ac_cv_path_GETCONF="$as_dir/$ac_word$ac_exec_ext"
 
6441
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6442
    break 2
 
6443
  fi
 
6444
done
 
6445
done
 
6446
 
2121
6447
  ;;
2122
6448
esac
2123
6449
fi
2124
 
GETCONF="$ac_cv_path_GETCONF"
 
6450
GETCONF=$ac_cv_path_GETCONF
 
6451
 
2125
6452
if test -n "$GETCONF"; then
2126
 
  echo "$ac_t""$GETCONF" 1>&6
 
6453
  echo "$as_me:$LINENO: result: $GETCONF" >&5
 
6454
echo "${ECHO_T}$GETCONF" >&6
2127
6455
else
2128
 
  echo "$ac_t""no" 1>&6
2129
 
fi
2130
 
 
2131
 
        
2132
 
fi
2133
 
 
2134
 
        
2135
 
 
2136
 
echo $ac_n "checking number of cpus""... $ac_c" 1>&6
2137
 
echo "configure:2138: checking number of cpus" >&5
2138
 
        # Check whether --with-cpus or --without-cpus was given.
 
6456
  echo "$as_me:$LINENO: result: no" >&5
 
6457
echo "${ECHO_T}no" >&6
 
6458
fi
 
6459
 
 
6460
 
 
6461
fi;
 
6462
 
 
6463
 
 
6464
echo "$as_me:$LINENO: checking number of cpus" >&5
 
6465
echo $ECHO_N "checking number of cpus... $ECHO_C" >&6
 
6466
 
 
6467
# Check whether --with-cpus or --without-cpus was given.
2139
6468
if test "${with_cpus+set}" = set; then
2140
6469
  withval="$with_cpus"
2141
 
  
 
6470
 
2142
6471
                if test "$withval" = "yes"; then
2143
 
                        
 
6472
 
2144
6473
        if test ! -z "$GETCONF";then
2145
6474
                old_args="$@"
2146
6475
                set -- SC_NPROCESSORS_ONLN _NPROCESSORS_ONLN
2159
6488
                        NUM_CPUS=1
2160
6489
                fi
2161
6490
else
2162
 
  
 
6491
 
2163
6492
        if test ! -z "$GETCONF";then
2164
6493
                old_args="$@"
2165
6494
                set -- SC_NPROCESSORS_ONLN _NPROCESSORS_ONLN
2172
6501
                eval NUM_CPUS="1"
2173
6502
        fi
2174
6503
 
2175
 
        
2176
 
fi
2177
6504
 
 
6505
fi;
2178
6506
        ah_NUM_CPUS_msg="$NUM_CPUS"
2179
6507
        if test "$NUM_CPUS" = "0"; then
2180
6508
                # broken getconf, time to bitch.
2186
6514
        else
2187
6515
                default_PROC_MULTIPLY=2
2188
6516
        fi
2189
 
        echo "$ac_t""$ah_NUM_CPUS_msg" 1>&6
2190
 
        
2191
 
 
2192
 
 
2193
 
        echo $ac_n "checking processor multiplier""... $ac_c" 1>&6
2194
 
echo "configure:2195: checking processor multiplier" >&5
2195
 
        # Check whether --with-proc-multiply or --without-proc-multiply was given.
 
6517
        echo "$as_me:$LINENO: result: $ah_NUM_CPUS_msg" >&5
 
6518
echo "${ECHO_T}$ah_NUM_CPUS_msg" >&6
 
6519
 
 
6520
 
 
6521
 
 
6522
        echo "$as_me:$LINENO: checking processor multiplier" >&5
 
6523
echo $ECHO_N "checking processor multiplier... $ECHO_C" >&6
 
6524
 
 
6525
# Check whether --with-proc-multiply or --without-proc-multiply was given.
2196
6526
if test "${with_proc_multiply+set}" = set; then
2197
6527
  withval="$with_proc_multiply"
2198
6528
  if test "$withval" = "yes"; then
2202
6532
                fi
2203
6533
else
2204
6534
  PROC_MULTIPLY=$default_PROC_MULTIPLY
2205
 
        
2206
 
fi
2207
 
 
2208
 
        echo "$ac_t""$PROC_MULTIPLY" 1>&6
2209
 
        
2210
 
 
2211
 
 
2212
 
        
2213
 
        echo $ac_n "checking number of processes to run during make""... $ac_c" 1>&6
2214
 
echo "configure:2215: checking number of processes to run during make" >&5
2215
 
        # Check whether --with-procs or --without-procs was given.
 
6535
 
 
6536
fi;
 
6537
        echo "$as_me:$LINENO: result: $PROC_MULTIPLY" >&5
 
6538
echo "${ECHO_T}$PROC_MULTIPLY" >&6
 
6539
 
 
6540
 
 
6541
 
 
6542
 
 
6543
        echo "$as_me:$LINENO: checking number of processes to run during make" >&5
 
6544
echo $ECHO_N "checking number of processes to run during make... $ECHO_C" >&6
 
6545
 
 
6546
# Check whether --with-procs or --without-procs was given.
2216
6547
if test "${with_procs+set}" = set; then
2217
6548
  withval="$with_procs"
2218
6549
  if test "$withval" = "yes"; then
2222
6553
                fi
2223
6554
else
2224
6555
  NUM_PROCS=`expr $NUM_CPUS \* $PROC_MULTIPLY`
2225
 
        
2226
 
fi
2227
 
 
2228
 
        echo "$ac_t""$NUM_PROCS" 1>&6
2229
 
        
2230
 
 
2231
 
echo $ac_n "checking glibc version""... $ac_c" 1>&6
2232
 
echo "configure:2233: checking glibc version" >&5
2233
 
        dummy=if$$
 
6556
 
 
6557
fi;
 
6558
        echo "$as_me:$LINENO: result: $NUM_PROCS" >&5
 
6559
echo "${ECHO_T}$NUM_PROCS" >&6
 
6560
 
 
6561
 
 
6562
echo "$as_me:$LINENO: checking glibc version" >&5
 
6563
echo $ECHO_N "checking glibc version... $ECHO_C" >&6
 
6564
        if test "${ac_cv_glibc_ver+set}" = set; then
 
6565
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6566
else
 
6567
  dummy=if$$
2234
6568
        cat <<_GLIBC_>$dummy.c
2235
6569
#include <features.h>
2236
6570
#include <stdio.h>
2240
6574
        ${CC-cc} $dummy.c -o $dummy > /dev/null 2>&1
2241
6575
        if test "$?" = 0; then
2242
6576
                GLIBC_VER=`./$dummy`
2243
 
                echo "$ac_t""$GLIBC_VER" 1>&6
2244
 
                GLIBC_VER="-$GLIBC_VER"
 
6577
                echo "$as_me:$LINENO: result: $GLIBC_VER" >&5
 
6578
echo "${ECHO_T}$GLIBC_VER" >&6
 
6579
                ac_cv_glibc_ver=$GLIBC_VER
2245
6580
        else
2246
 
                echo "configure: warning: cannot determine GNU C library minor version number" 1>&2
 
6581
                { echo "$as_me:$LINENO: WARNING: cannot determine GNU C library minor version number" >&5
 
6582
echo "$as_me: WARNING: cannot determine GNU C library minor version number" >&2;}
2247
6583
        fi
2248
6584
        rm -f $dummy $dummy.c
2249
 
        
2250
 
 
2251
 
echo $ac_n "checking libstdc++ version""... $ac_c" 1>&6
2252
 
echo "configure:2253: checking libstdc++ version" >&5
 
6585
 
 
6586
fi
 
6587
 
 
6588
        GLIBC_VER="-$ac_cv_glibc_ver"
 
6589
 
 
6590
 
 
6591
echo "$as_me:$LINENO: checking libstdc++ version" >&5
 
6592
echo $ECHO_N "checking libstdc++ version... $ECHO_C" >&6
2253
6593
        dummy=if$$
2254
6594
        cat <<_LIBSTDCPP_>$dummy.cc
2255
6595
#include <features.h>
2266
6606
        rm -f $dummy $dummy.cc
2267
6607
 
2268
6608
        if test -z "$LIBSTDCPP_VER"; then
2269
 
                echo "configure: warning: cannot determine standard C++ library version number" 1>&2
 
6609
                { echo "$as_me:$LINENO: WARNING: cannot determine standard C++ library version number" >&5
 
6610
echo "$as_me: WARNING: cannot determine standard C++ library version number" >&2;}
2270
6611
        else
2271
 
                echo "$ac_t""$LIBSTDCPP_VER" 1>&6
 
6612
                echo "$as_me:$LINENO: result: $LIBSTDCPP_VER" >&5
 
6613
echo "${ECHO_T}$LIBSTDCPP_VER" >&6
2272
6614
                LIBSTDCPP_VER="-$LIBSTDCPP_VER"
2273
6615
        fi
2274
 
        
2275
 
 
2276
 
 
2277
 
        echo $ac_n "checking if $CXX -MD works""... $ac_c" 1>&6
2278
 
echo "configure:2279: checking if $CXX -MD works" >&5
 
6616
 
 
6617
 
 
6618
 
 
6619
        echo "$as_me:$LINENO: checking if $CXX -MD works" >&5
 
6620
echo $ECHO_N "checking if $CXX -MD works... $ECHO_C" >&6
2279
6621
        touch gcc3dep.cc
2280
6622
        ${CXX-c++} -MD -o gcc3dep_test.o -c gcc3dep.cc
2281
6623
        rm -f gcc3dep.cc gcc3dep_test.o
2288
6630
                GCC_MD=output
2289
6631
                GCC3DEP=yes
2290
6632
        else
2291
 
                { echo "configure: error: no" 1>&2; exit 1; }
2292
 
        fi
2293
 
        echo "$ac_t""yes, for $GCC_MD" 1>&6
2294
 
        
2295
 
 
2296
 
 
2297
 
trap '' 1 2 15
2298
 
cat > confcache <<\EOF
 
6633
                { { echo "$as_me:$LINENO: error: no" >&5
 
6634
echo "$as_me: error: no" >&2;}
 
6635
   { (exit 1); exit 1; }; }
 
6636
        fi
 
6637
        echo "$as_me:$LINENO: result: yes, for $GCC_MD" >&5
 
6638
echo "${ECHO_T}yes, for $GCC_MD" >&6
 
6639
 
 
6640
 
 
6641
 
 
6642
ALL_LINGUAS="da de en_GB es fr hu it nl no_NO pl pt_BR ru sv zh_TW"
 
6643
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
6644
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
 
6645
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
 
6646
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
 
6647
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6648
else
 
6649
  cat >conftest.make <<\_ACEOF
 
6650
all:
 
6651
        @echo 'ac_maketemp="$(MAKE)"'
 
6652
_ACEOF
 
6653
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
6654
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
 
6655
if test -n "$ac_maketemp"; then
 
6656
  eval ac_cv_prog_make_${ac_make}_set=yes
 
6657
else
 
6658
  eval ac_cv_prog_make_${ac_make}_set=no
 
6659
fi
 
6660
rm -f conftest.make
 
6661
fi
 
6662
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
 
6663
  echo "$as_me:$LINENO: result: yes" >&5
 
6664
echo "${ECHO_T}yes" >&6
 
6665
  SET_MAKE=
 
6666
else
 
6667
  echo "$as_me:$LINENO: result: no" >&5
 
6668
echo "${ECHO_T}no" >&6
 
6669
  SET_MAKE="MAKE=${MAKE-make}"
 
6670
fi
 
6671
 
 
6672
# Find a good install program.  We prefer a C program (faster),
 
6673
# so one script is as good as another.  But avoid the broken or
 
6674
# incompatible versions:
 
6675
# SysV /etc/install, /usr/sbin/install
 
6676
# SunOS /usr/etc/install
 
6677
# IRIX /sbin/install
 
6678
# AIX /bin/install
 
6679
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
6680
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
6681
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
6682
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
6683
# OS/2's system install, which has a completely different semantic
 
6684
# ./install, which can be erroneously created by make from ./install.sh.
 
6685
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
6686
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
 
6687
if test -z "$INSTALL"; then
 
6688
if test "${ac_cv_path_install+set}" = set; then
 
6689
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6690
else
 
6691
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6692
for as_dir in $PATH
 
6693
do
 
6694
  IFS=$as_save_IFS
 
6695
  test -z "$as_dir" && as_dir=.
 
6696
  # Account for people who put trailing slashes in PATH elements.
 
6697
case $as_dir/ in
 
6698
  ./ | .// | /cC/* | \
 
6699
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
6700
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
6701
  /usr/ucb/* ) ;;
 
6702
  *)
 
6703
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
6704
    # Don't use installbsd from OSF since it installs stuff as root
 
6705
    # by default.
 
6706
    for ac_prog in ginstall scoinst install; do
 
6707
      for ac_exec_ext in '' $ac_executable_extensions; do
 
6708
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
 
6709
          if test $ac_prog = install &&
 
6710
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
6711
            # AIX install.  It has an incompatible calling convention.
 
6712
            :
 
6713
          elif test $ac_prog = install &&
 
6714
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
6715
            # program-specific install script used by HP pwplus--don't use.
 
6716
            :
 
6717
          else
 
6718
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
6719
            break 3
 
6720
          fi
 
6721
        fi
 
6722
      done
 
6723
    done
 
6724
    ;;
 
6725
esac
 
6726
done
 
6727
 
 
6728
 
 
6729
fi
 
6730
  if test "${ac_cv_path_install+set}" = set; then
 
6731
    INSTALL=$ac_cv_path_install
 
6732
  else
 
6733
    # As a last resort, use the slow shell script.  We don't cache a
 
6734
    # path for INSTALL within a source directory, because that will
 
6735
    # break other packages using the cache if that directory is
 
6736
    # removed, or if the path is relative.
 
6737
    INSTALL=$ac_install_sh
 
6738
  fi
 
6739
fi
 
6740
echo "$as_me:$LINENO: result: $INSTALL" >&5
 
6741
echo "${ECHO_T}$INSTALL" >&6
 
6742
 
 
6743
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
6744
# It thinks the first close brace ends the variable substitution.
 
6745
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
6746
 
 
6747
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
6748
 
 
6749
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
6750
 
 
6751
 
 
6752
        MKINSTALLDIRS=
 
6753
  if test -n "$ac_aux_dir"; then
 
6754
    case "$ac_aux_dir" in
 
6755
      /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
 
6756
      *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
 
6757
    esac
 
6758
  fi
 
6759
  if test -z "$MKINSTALLDIRS"; then
 
6760
    MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
 
6761
  fi
 
6762
 
 
6763
 
 
6764
 
 
6765
  echo "$as_me:$LINENO: checking whether NLS is requested" >&5
 
6766
echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
 
6767
    # Check whether --enable-nls or --disable-nls was given.
 
6768
if test "${enable_nls+set}" = set; then
 
6769
  enableval="$enable_nls"
 
6770
  USE_NLS=$enableval
 
6771
else
 
6772
  USE_NLS=yes
 
6773
fi;
 
6774
  echo "$as_me:$LINENO: result: $USE_NLS" >&5
 
6775
echo "${ECHO_T}$USE_NLS" >&6
 
6776
 
 
6777
 
 
6778
 
 
6779
 
 
6780
 
 
6781
 
 
6782
# Prepare PATH_SEPARATOR.
 
6783
# The user is always right.
 
6784
if test "${PATH_SEPARATOR+set}" != set; then
 
6785
  echo "#! /bin/sh" >conf$$.sh
 
6786
  echo  "exit 0"   >>conf$$.sh
 
6787
  chmod +x conf$$.sh
 
6788
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
6789
    PATH_SEPARATOR=';'
 
6790
  else
 
6791
    PATH_SEPARATOR=:
 
6792
  fi
 
6793
  rm -f conf$$.sh
 
6794
fi
 
6795
 
 
6796
# Find out how to test for executable files. Don't use a zero-byte file,
 
6797
# as systems may use methods other than mode bits to determine executability.
 
6798
cat >conf$$.file <<_ASEOF
 
6799
#! /bin/sh
 
6800
exit 0
 
6801
_ASEOF
 
6802
chmod +x conf$$.file
 
6803
if test -x conf$$.file >/dev/null 2>&1; then
 
6804
  ac_executable_p="test -x"
 
6805
else
 
6806
  ac_executable_p="test -f"
 
6807
fi
 
6808
rm -f conf$$.file
 
6809
 
 
6810
# Extract the first word of "msgfmt", so it can be a program name with args.
 
6811
set dummy msgfmt; ac_word=$2
 
6812
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6813
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6814
if test "${ac_cv_path_MSGFMT+set}" = set; then
 
6815
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6816
else
 
6817
  case "$MSGFMT" in
 
6818
  [\\/]* | ?:[\\/]*)
 
6819
    ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
 
6820
    ;;
 
6821
  *)
 
6822
    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
 
6823
    for ac_dir in $PATH; do
 
6824
      IFS="$ac_save_IFS"
 
6825
      test -z "$ac_dir" && ac_dir=.
 
6826
      for ac_exec_ext in '' $ac_executable_extensions; do
 
6827
        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
 
6828
          if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
 
6829
     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
 
6830
            ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
 
6831
            break 2
 
6832
          fi
 
6833
        fi
 
6834
      done
 
6835
    done
 
6836
    IFS="$ac_save_IFS"
 
6837
  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
 
6838
    ;;
 
6839
esac
 
6840
fi
 
6841
MSGFMT="$ac_cv_path_MSGFMT"
 
6842
if test "$MSGFMT" != ":"; then
 
6843
  echo "$as_me:$LINENO: result: $MSGFMT" >&5
 
6844
echo "${ECHO_T}$MSGFMT" >&6
 
6845
else
 
6846
  echo "$as_me:$LINENO: result: no" >&5
 
6847
echo "${ECHO_T}no" >&6
 
6848
fi
 
6849
 
 
6850
  # Extract the first word of "gmsgfmt", so it can be a program name with args.
 
6851
set dummy gmsgfmt; ac_word=$2
 
6852
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6853
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6854
if test "${ac_cv_path_GMSGFMT+set}" = set; then
 
6855
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6856
else
 
6857
  case $GMSGFMT in
 
6858
  [\\/]* | ?:[\\/]*)
 
6859
  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
 
6860
  ;;
 
6861
  *)
 
6862
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6863
for as_dir in $PATH
 
6864
do
 
6865
  IFS=$as_save_IFS
 
6866
  test -z "$as_dir" && as_dir=.
 
6867
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6868
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6869
    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
 
6870
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6871
    break 2
 
6872
  fi
 
6873
done
 
6874
done
 
6875
 
 
6876
  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
 
6877
  ;;
 
6878
esac
 
6879
fi
 
6880
GMSGFMT=$ac_cv_path_GMSGFMT
 
6881
 
 
6882
if test -n "$GMSGFMT"; then
 
6883
  echo "$as_me:$LINENO: result: $GMSGFMT" >&5
 
6884
echo "${ECHO_T}$GMSGFMT" >&6
 
6885
else
 
6886
  echo "$as_me:$LINENO: result: no" >&5
 
6887
echo "${ECHO_T}no" >&6
 
6888
fi
 
6889
 
 
6890
 
 
6891
 
 
6892
# Prepare PATH_SEPARATOR.
 
6893
# The user is always right.
 
6894
if test "${PATH_SEPARATOR+set}" != set; then
 
6895
  echo "#! /bin/sh" >conf$$.sh
 
6896
  echo  "exit 0"   >>conf$$.sh
 
6897
  chmod +x conf$$.sh
 
6898
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
6899
    PATH_SEPARATOR=';'
 
6900
  else
 
6901
    PATH_SEPARATOR=:
 
6902
  fi
 
6903
  rm -f conf$$.sh
 
6904
fi
 
6905
 
 
6906
# Find out how to test for executable files. Don't use a zero-byte file,
 
6907
# as systems may use methods other than mode bits to determine executability.
 
6908
cat >conf$$.file <<_ASEOF
 
6909
#! /bin/sh
 
6910
exit 0
 
6911
_ASEOF
 
6912
chmod +x conf$$.file
 
6913
if test -x conf$$.file >/dev/null 2>&1; then
 
6914
  ac_executable_p="test -x"
 
6915
else
 
6916
  ac_executable_p="test -f"
 
6917
fi
 
6918
rm -f conf$$.file
 
6919
 
 
6920
# Extract the first word of "xgettext", so it can be a program name with args.
 
6921
set dummy xgettext; ac_word=$2
 
6922
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6923
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6924
if test "${ac_cv_path_XGETTEXT+set}" = set; then
 
6925
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6926
else
 
6927
  case "$XGETTEXT" in
 
6928
  [\\/]* | ?:[\\/]*)
 
6929
    ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
 
6930
    ;;
 
6931
  *)
 
6932
    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
 
6933
    for ac_dir in $PATH; do
 
6934
      IFS="$ac_save_IFS"
 
6935
      test -z "$ac_dir" && ac_dir=.
 
6936
      for ac_exec_ext in '' $ac_executable_extensions; do
 
6937
        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
 
6938
          if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
 
6939
     (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
 
6940
            ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
 
6941
            break 2
 
6942
          fi
 
6943
        fi
 
6944
      done
 
6945
    done
 
6946
    IFS="$ac_save_IFS"
 
6947
  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
 
6948
    ;;
 
6949
esac
 
6950
fi
 
6951
XGETTEXT="$ac_cv_path_XGETTEXT"
 
6952
if test "$XGETTEXT" != ":"; then
 
6953
  echo "$as_me:$LINENO: result: $XGETTEXT" >&5
 
6954
echo "${ECHO_T}$XGETTEXT" >&6
 
6955
else
 
6956
  echo "$as_me:$LINENO: result: no" >&5
 
6957
echo "${ECHO_T}no" >&6
 
6958
fi
 
6959
 
 
6960
    rm -f messages.po
 
6961
 
 
6962
 
 
6963
# Prepare PATH_SEPARATOR.
 
6964
# The user is always right.
 
6965
if test "${PATH_SEPARATOR+set}" != set; then
 
6966
  echo "#! /bin/sh" >conf$$.sh
 
6967
  echo  "exit 0"   >>conf$$.sh
 
6968
  chmod +x conf$$.sh
 
6969
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
6970
    PATH_SEPARATOR=';'
 
6971
  else
 
6972
    PATH_SEPARATOR=:
 
6973
  fi
 
6974
  rm -f conf$$.sh
 
6975
fi
 
6976
 
 
6977
# Find out how to test for executable files. Don't use a zero-byte file,
 
6978
# as systems may use methods other than mode bits to determine executability.
 
6979
cat >conf$$.file <<_ASEOF
 
6980
#! /bin/sh
 
6981
exit 0
 
6982
_ASEOF
 
6983
chmod +x conf$$.file
 
6984
if test -x conf$$.file >/dev/null 2>&1; then
 
6985
  ac_executable_p="test -x"
 
6986
else
 
6987
  ac_executable_p="test -f"
 
6988
fi
 
6989
rm -f conf$$.file
 
6990
 
 
6991
# Extract the first word of "msgmerge", so it can be a program name with args.
 
6992
set dummy msgmerge; ac_word=$2
 
6993
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6994
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6995
if test "${ac_cv_path_MSGMERGE+set}" = set; then
 
6996
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6997
else
 
6998
  case "$MSGMERGE" in
 
6999
  [\\/]* | ?:[\\/]*)
 
7000
    ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
 
7001
    ;;
 
7002
  *)
 
7003
    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
 
7004
    for ac_dir in $PATH; do
 
7005
      IFS="$ac_save_IFS"
 
7006
      test -z "$ac_dir" && ac_dir=.
 
7007
      for ac_exec_ext in '' $ac_executable_extensions; do
 
7008
        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
 
7009
          if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
 
7010
            ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
 
7011
            break 2
 
7012
          fi
 
7013
        fi
 
7014
      done
 
7015
    done
 
7016
    IFS="$ac_save_IFS"
 
7017
  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
 
7018
    ;;
 
7019
esac
 
7020
fi
 
7021
MSGMERGE="$ac_cv_path_MSGMERGE"
 
7022
if test "$MSGMERGE" != ":"; then
 
7023
  echo "$as_me:$LINENO: result: $MSGMERGE" >&5
 
7024
echo "${ECHO_T}$MSGMERGE" >&6
 
7025
else
 
7026
  echo "$as_me:$LINENO: result: no" >&5
 
7027
echo "${ECHO_T}no" >&6
 
7028
fi
 
7029
 
 
7030
 
 
7031
      if test "$GMSGFMT" != ":"; then
 
7032
            if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
 
7033
       (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
 
7034
      : ;
 
7035
    else
 
7036
      GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
 
7037
      echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
 
7038
echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
 
7039
      GMSGFMT=":"
 
7040
    fi
 
7041
  fi
 
7042
 
 
7043
      if test "$XGETTEXT" != ":"; then
 
7044
            if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
 
7045
       (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
 
7046
      : ;
 
7047
    else
 
7048
      echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
 
7049
echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
 
7050
      XGETTEXT=":"
 
7051
    fi
 
7052
        rm -f messages.po
 
7053
  fi
 
7054
 
 
7055
            ac_config_commands="$ac_config_commands default-1"
 
7056
 
 
7057
 
 
7058
 
 
7059
      if test "X$prefix" = "XNONE"; then
 
7060
    acl_final_prefix="$ac_default_prefix"
 
7061
  else
 
7062
    acl_final_prefix="$prefix"
 
7063
  fi
 
7064
  if test "X$exec_prefix" = "XNONE"; then
 
7065
    acl_final_exec_prefix='${prefix}'
 
7066
  else
 
7067
    acl_final_exec_prefix="$exec_prefix"
 
7068
  fi
 
7069
  acl_save_prefix="$prefix"
 
7070
  prefix="$acl_final_prefix"
 
7071
  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
 
7072
  prefix="$acl_save_prefix"
 
7073
 
 
7074
 
 
7075
# Check whether --with-gnu-ld or --without-gnu-ld was given.
 
7076
if test "${with_gnu_ld+set}" = set; then
 
7077
  withval="$with_gnu_ld"
 
7078
  test "$withval" = no || with_gnu_ld=yes
 
7079
else
 
7080
  with_gnu_ld=no
 
7081
fi;
 
7082
# Prepare PATH_SEPARATOR.
 
7083
# The user is always right.
 
7084
if test "${PATH_SEPARATOR+set}" != set; then
 
7085
  echo "#! /bin/sh" >conf$$.sh
 
7086
  echo  "exit 0"   >>conf$$.sh
 
7087
  chmod +x conf$$.sh
 
7088
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
7089
    PATH_SEPARATOR=';'
 
7090
  else
 
7091
    PATH_SEPARATOR=:
 
7092
  fi
 
7093
  rm -f conf$$.sh
 
7094
fi
 
7095
ac_prog=ld
 
7096
if test "$GCC" = yes; then
 
7097
  # Check if gcc -print-prog-name=ld gives a path.
 
7098
  echo "$as_me:$LINENO: checking for ld used by GCC" >&5
 
7099
echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
 
7100
  case $host in
 
7101
  *-*-mingw*)
 
7102
    # gcc leaves a trailing carriage return which upsets mingw
 
7103
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
7104
  *)
 
7105
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
7106
  esac
 
7107
  case $ac_prog in
 
7108
    # Accept absolute paths.
 
7109
    [\\/]* | [A-Za-z]:[\\/]*)
 
7110
      re_direlt='/[^/][^/]*/\.\./'
 
7111
      # Canonicalize the path of ld
 
7112
      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
 
7113
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
7114
        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
 
7115
      done
 
7116
      test -z "$LD" && LD="$ac_prog"
 
7117
      ;;
 
7118
  "")
 
7119
    # If it fails, then pretend we aren't using GCC.
 
7120
    ac_prog=ld
 
7121
    ;;
 
7122
  *)
 
7123
    # If it is relative, then search for the first ld in PATH.
 
7124
    with_gnu_ld=unknown
 
7125
    ;;
 
7126
  esac
 
7127
elif test "$with_gnu_ld" = yes; then
 
7128
  echo "$as_me:$LINENO: checking for GNU ld" >&5
 
7129
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
 
7130
else
 
7131
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
7132
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
 
7133
fi
 
7134
if test "${acl_cv_path_LD+set}" = set; then
 
7135
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7136
else
 
7137
  if test -z "$LD"; then
 
7138
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
 
7139
  for ac_dir in $PATH; do
 
7140
    test -z "$ac_dir" && ac_dir=.
 
7141
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
7142
      acl_cv_path_LD="$ac_dir/$ac_prog"
 
7143
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
7144
      # but apparently some GNU ld's only accept -v.
 
7145
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
7146
      case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
 
7147
      *GNU* | *'with BFD'*)
 
7148
        test "$with_gnu_ld" != no && break ;;
 
7149
      *)
 
7150
        test "$with_gnu_ld" != yes && break ;;
 
7151
      esac
 
7152
    fi
 
7153
  done
 
7154
  IFS="$ac_save_ifs"
 
7155
else
 
7156
  acl_cv_path_LD="$LD" # Let the user override the test with a path.
 
7157
fi
 
7158
fi
 
7159
 
 
7160
LD="$acl_cv_path_LD"
 
7161
if test -n "$LD"; then
 
7162
  echo "$as_me:$LINENO: result: $LD" >&5
 
7163
echo "${ECHO_T}$LD" >&6
 
7164
else
 
7165
  echo "$as_me:$LINENO: result: no" >&5
 
7166
echo "${ECHO_T}no" >&6
 
7167
fi
 
7168
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
7169
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
7170
   { (exit 1); exit 1; }; }
 
7171
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
7172
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
 
7173
if test "${acl_cv_prog_gnu_ld+set}" = set; then
 
7174
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7175
else
 
7176
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
7177
case `$LD -v 2>&1 </dev/null` in
 
7178
*GNU* | *'with BFD'*)
 
7179
  acl_cv_prog_gnu_ld=yes ;;
 
7180
*)
 
7181
  acl_cv_prog_gnu_ld=no ;;
 
7182
esac
 
7183
fi
 
7184
echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
 
7185
echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
 
7186
with_gnu_ld=$acl_cv_prog_gnu_ld
 
7187
 
 
7188
 
 
7189
 
 
7190
                                                echo "$as_me:$LINENO: checking for shared library run path origin" >&5
 
7191
echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
 
7192
if test "${acl_cv_rpath+set}" = set; then
 
7193
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7194
else
 
7195
 
 
7196
    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
 
7197
    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
 
7198
    . ./conftest.sh
 
7199
    rm -f ./conftest.sh
 
7200
    acl_cv_rpath=done
 
7201
 
 
7202
fi
 
7203
echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
 
7204
echo "${ECHO_T}$acl_cv_rpath" >&6
 
7205
  wl="$acl_cv_wl"
 
7206
  libext="$acl_cv_libext"
 
7207
  shlibext="$acl_cv_shlibext"
 
7208
  hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
 
7209
  hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
 
7210
  hardcode_direct="$acl_cv_hardcode_direct"
 
7211
  hardcode_minus_L="$acl_cv_hardcode_minus_L"
 
7212
    # Check whether --enable-rpath or --disable-rpath was given.
 
7213
if test "${enable_rpath+set}" = set; then
 
7214
  enableval="$enable_rpath"
 
7215
  :
 
7216
else
 
7217
  enable_rpath=yes
 
7218
fi;
 
7219
 
 
7220
 
 
7221
 
 
7222
 
 
7223
 
 
7224
 
 
7225
 
 
7226
    use_additional=yes
 
7227
 
 
7228
  acl_save_prefix="$prefix"
 
7229
  prefix="$acl_final_prefix"
 
7230
  acl_save_exec_prefix="$exec_prefix"
 
7231
  exec_prefix="$acl_final_exec_prefix"
 
7232
 
 
7233
    eval additional_includedir=\"$includedir\"
 
7234
    eval additional_libdir=\"$libdir\"
 
7235
 
 
7236
  exec_prefix="$acl_save_exec_prefix"
 
7237
  prefix="$acl_save_prefix"
 
7238
 
 
7239
 
 
7240
# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
 
7241
if test "${with_libiconv_prefix+set}" = set; then
 
7242
  withval="$with_libiconv_prefix"
 
7243
 
 
7244
    if test "X$withval" = "Xno"; then
 
7245
      use_additional=no
 
7246
    else
 
7247
      if test "X$withval" = "X"; then
 
7248
 
 
7249
  acl_save_prefix="$prefix"
 
7250
  prefix="$acl_final_prefix"
 
7251
  acl_save_exec_prefix="$exec_prefix"
 
7252
  exec_prefix="$acl_final_exec_prefix"
 
7253
 
 
7254
          eval additional_includedir=\"$includedir\"
 
7255
          eval additional_libdir=\"$libdir\"
 
7256
 
 
7257
  exec_prefix="$acl_save_exec_prefix"
 
7258
  prefix="$acl_save_prefix"
 
7259
 
 
7260
      else
 
7261
        additional_includedir="$withval/include"
 
7262
        additional_libdir="$withval/lib"
 
7263
      fi
 
7264
    fi
 
7265
 
 
7266
fi;
 
7267
      LIBICONV=
 
7268
  LTLIBICONV=
 
7269
  INCICONV=
 
7270
  rpathdirs=
 
7271
  ltrpathdirs=
 
7272
  names_already_handled=
 
7273
  names_next_round='iconv '
 
7274
  while test -n "$names_next_round"; do
 
7275
    names_this_round="$names_next_round"
 
7276
    names_next_round=
 
7277
    for name in $names_this_round; do
 
7278
      already_handled=
 
7279
      for n in $names_already_handled; do
 
7280
        if test "$n" = "$name"; then
 
7281
          already_handled=yes
 
7282
          break
 
7283
        fi
 
7284
      done
 
7285
      if test -z "$already_handled"; then
 
7286
        names_already_handled="$names_already_handled $name"
 
7287
                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
 
7288
        eval value=\"\$HAVE_LIB$uppername\"
 
7289
        if test -n "$value"; then
 
7290
          if test "$value" = yes; then
 
7291
            eval value=\"\$LIB$uppername\"
 
7292
            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
 
7293
            eval value=\"\$LTLIB$uppername\"
 
7294
            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
 
7295
          else
 
7296
                                    :
 
7297
          fi
 
7298
        else
 
7299
                              found_dir=
 
7300
          found_la=
 
7301
          found_so=
 
7302
          found_a=
 
7303
          if test $use_additional = yes; then
 
7304
            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
 
7305
              found_dir="$additional_libdir"
 
7306
              found_so="$additional_libdir/lib$name.$shlibext"
 
7307
              if test -f "$additional_libdir/lib$name.la"; then
 
7308
                found_la="$additional_libdir/lib$name.la"
 
7309
              fi
 
7310
            else
 
7311
              if test -f "$additional_libdir/lib$name.$libext"; then
 
7312
                found_dir="$additional_libdir"
 
7313
                found_a="$additional_libdir/lib$name.$libext"
 
7314
                if test -f "$additional_libdir/lib$name.la"; then
 
7315
                  found_la="$additional_libdir/lib$name.la"
 
7316
                fi
 
7317
              fi
 
7318
            fi
 
7319
          fi
 
7320
          if test "X$found_dir" = "X"; then
 
7321
            for x in $LDFLAGS $LTLIBICONV; do
 
7322
 
 
7323
  acl_save_prefix="$prefix"
 
7324
  prefix="$acl_final_prefix"
 
7325
  acl_save_exec_prefix="$exec_prefix"
 
7326
  exec_prefix="$acl_final_exec_prefix"
 
7327
  eval x=\"$x\"
 
7328
  exec_prefix="$acl_save_exec_prefix"
 
7329
  prefix="$acl_save_prefix"
 
7330
 
 
7331
              case "$x" in
 
7332
                -L*)
 
7333
                  dir=`echo "X$x" | sed -e 's/^X-L//'`
 
7334
                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
 
7335
                    found_dir="$dir"
 
7336
                    found_so="$dir/lib$name.$shlibext"
 
7337
                    if test -f "$dir/lib$name.la"; then
 
7338
                      found_la="$dir/lib$name.la"
 
7339
                    fi
 
7340
                  else
 
7341
                    if test -f "$dir/lib$name.$libext"; then
 
7342
                      found_dir="$dir"
 
7343
                      found_a="$dir/lib$name.$libext"
 
7344
                      if test -f "$dir/lib$name.la"; then
 
7345
                        found_la="$dir/lib$name.la"
 
7346
                      fi
 
7347
                    fi
 
7348
                  fi
 
7349
                  ;;
 
7350
              esac
 
7351
              if test "X$found_dir" != "X"; then
 
7352
                break
 
7353
              fi
 
7354
            done
 
7355
          fi
 
7356
          if test "X$found_dir" != "X"; then
 
7357
                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
 
7358
            if test "X$found_so" != "X"; then
 
7359
                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
 
7360
                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
 
7361
              else
 
7362
                                                                                haveit=
 
7363
                for x in $ltrpathdirs; do
 
7364
                  if test "X$x" = "X$found_dir"; then
 
7365
                    haveit=yes
 
7366
                    break
 
7367
                  fi
 
7368
                done
 
7369
                if test -z "$haveit"; then
 
7370
                  ltrpathdirs="$ltrpathdirs $found_dir"
 
7371
                fi
 
7372
                                if test "$hardcode_direct" = yes; then
 
7373
                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
 
7374
                else
 
7375
                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
 
7376
                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
 
7377
                                                            haveit=
 
7378
                    for x in $rpathdirs; do
 
7379
                      if test "X$x" = "X$found_dir"; then
 
7380
                        haveit=yes
 
7381
                        break
 
7382
                      fi
 
7383
                    done
 
7384
                    if test -z "$haveit"; then
 
7385
                      rpathdirs="$rpathdirs $found_dir"
 
7386
                    fi
 
7387
                  else
 
7388
                                                                                haveit=
 
7389
                    for x in $LDFLAGS $LIBICONV; do
 
7390
 
 
7391
  acl_save_prefix="$prefix"
 
7392
  prefix="$acl_final_prefix"
 
7393
  acl_save_exec_prefix="$exec_prefix"
 
7394
  exec_prefix="$acl_final_exec_prefix"
 
7395
  eval x=\"$x\"
 
7396
  exec_prefix="$acl_save_exec_prefix"
 
7397
  prefix="$acl_save_prefix"
 
7398
 
 
7399
                      if test "X$x" = "X-L$found_dir"; then
 
7400
                        haveit=yes
 
7401
                        break
 
7402
                      fi
 
7403
                    done
 
7404
                    if test -z "$haveit"; then
 
7405
                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
 
7406
                    fi
 
7407
                    if test "$hardcode_minus_L" != no; then
 
7408
                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
 
7409
                    else
 
7410
                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
 
7411
                    fi
 
7412
                  fi
 
7413
                fi
 
7414
              fi
 
7415
            else
 
7416
              if test "X$found_a" != "X"; then
 
7417
                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
 
7418
              else
 
7419
                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
 
7420
              fi
 
7421
            fi
 
7422
                        additional_includedir=
 
7423
            case "$found_dir" in
 
7424
              */lib | */lib/)
 
7425
                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
 
7426
                additional_includedir="$basedir/include"
 
7427
                ;;
 
7428
            esac
 
7429
            if test "X$additional_includedir" != "X"; then
 
7430
                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
 
7431
                haveit=
 
7432
                if test "X$additional_includedir" = "X/usr/local/include"; then
 
7433
                  if test -n "$GCC"; then
 
7434
                    case $host_os in
 
7435
                      linux*) haveit=yes;;
 
7436
                    esac
 
7437
                  fi
 
7438
                fi
 
7439
                if test -z "$haveit"; then
 
7440
                  for x in $CPPFLAGS $INCICONV; do
 
7441
 
 
7442
  acl_save_prefix="$prefix"
 
7443
  prefix="$acl_final_prefix"
 
7444
  acl_save_exec_prefix="$exec_prefix"
 
7445
  exec_prefix="$acl_final_exec_prefix"
 
7446
  eval x=\"$x\"
 
7447
  exec_prefix="$acl_save_exec_prefix"
 
7448
  prefix="$acl_save_prefix"
 
7449
 
 
7450
                    if test "X$x" = "X-I$additional_includedir"; then
 
7451
                      haveit=yes
 
7452
                      break
 
7453
                    fi
 
7454
                  done
 
7455
                  if test -z "$haveit"; then
 
7456
                    if test -d "$additional_includedir"; then
 
7457
                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
 
7458
                    fi
 
7459
                  fi
 
7460
                fi
 
7461
              fi
 
7462
            fi
 
7463
                        if test -n "$found_la"; then
 
7464
                                                        save_libdir="$libdir"
 
7465
              case "$found_la" in
 
7466
                */* | *\\*) . "$found_la" ;;
 
7467
                *) . "./$found_la" ;;
 
7468
              esac
 
7469
              libdir="$save_libdir"
 
7470
                            for dep in $dependency_libs; do
 
7471
                case "$dep" in
 
7472
                  -L*)
 
7473
                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
 
7474
                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
 
7475
                      haveit=
 
7476
                      if test "X$additional_libdir" = "X/usr/local/lib"; then
 
7477
                        if test -n "$GCC"; then
 
7478
                          case $host_os in
 
7479
                            linux*) haveit=yes;;
 
7480
                          esac
 
7481
                        fi
 
7482
                      fi
 
7483
                      if test -z "$haveit"; then
 
7484
                        haveit=
 
7485
                        for x in $LDFLAGS $LIBICONV; do
 
7486
 
 
7487
  acl_save_prefix="$prefix"
 
7488
  prefix="$acl_final_prefix"
 
7489
  acl_save_exec_prefix="$exec_prefix"
 
7490
  exec_prefix="$acl_final_exec_prefix"
 
7491
  eval x=\"$x\"
 
7492
  exec_prefix="$acl_save_exec_prefix"
 
7493
  prefix="$acl_save_prefix"
 
7494
 
 
7495
                          if test "X$x" = "X-L$additional_libdir"; then
 
7496
                            haveit=yes
 
7497
                            break
 
7498
                          fi
 
7499
                        done
 
7500
                        if test -z "$haveit"; then
 
7501
                          if test -d "$additional_libdir"; then
 
7502
                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
 
7503
                          fi
 
7504
                        fi
 
7505
                        haveit=
 
7506
                        for x in $LDFLAGS $LTLIBICONV; do
 
7507
 
 
7508
  acl_save_prefix="$prefix"
 
7509
  prefix="$acl_final_prefix"
 
7510
  acl_save_exec_prefix="$exec_prefix"
 
7511
  exec_prefix="$acl_final_exec_prefix"
 
7512
  eval x=\"$x\"
 
7513
  exec_prefix="$acl_save_exec_prefix"
 
7514
  prefix="$acl_save_prefix"
 
7515
 
 
7516
                          if test "X$x" = "X-L$additional_libdir"; then
 
7517
                            haveit=yes
 
7518
                            break
 
7519
                          fi
 
7520
                        done
 
7521
                        if test -z "$haveit"; then
 
7522
                          if test -d "$additional_libdir"; then
 
7523
                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
 
7524
                          fi
 
7525
                        fi
 
7526
                      fi
 
7527
                    fi
 
7528
                    ;;
 
7529
                  -R*)
 
7530
                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
 
7531
                    if test "$enable_rpath" != no; then
 
7532
                                                                  haveit=
 
7533
                      for x in $rpathdirs; do
 
7534
                        if test "X$x" = "X$dir"; then
 
7535
                          haveit=yes
 
7536
                          break
 
7537
                        fi
 
7538
                      done
 
7539
                      if test -z "$haveit"; then
 
7540
                        rpathdirs="$rpathdirs $dir"
 
7541
                      fi
 
7542
                                                                  haveit=
 
7543
                      for x in $ltrpathdirs; do
 
7544
                        if test "X$x" = "X$dir"; then
 
7545
                          haveit=yes
 
7546
                          break
 
7547
                        fi
 
7548
                      done
 
7549
                      if test -z "$haveit"; then
 
7550
                        ltrpathdirs="$ltrpathdirs $dir"
 
7551
                      fi
 
7552
                    fi
 
7553
                    ;;
 
7554
                  -l*)
 
7555
                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
 
7556
                    ;;
 
7557
                  *.la)
 
7558
                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
 
7559
                    ;;
 
7560
                  *)
 
7561
                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
 
7562
                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
 
7563
                    ;;
 
7564
                esac
 
7565
              done
 
7566
            fi
 
7567
          else
 
7568
                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
 
7569
            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
 
7570
          fi
 
7571
        fi
 
7572
      fi
 
7573
    done
 
7574
  done
 
7575
  if test "X$rpathdirs" != "X"; then
 
7576
    if test -n "$hardcode_libdir_separator"; then
 
7577
                        alldirs=
 
7578
      for found_dir in $rpathdirs; do
 
7579
        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
 
7580
      done
 
7581
            acl_save_libdir="$libdir"
 
7582
      libdir="$alldirs"
 
7583
      eval flag=\"$hardcode_libdir_flag_spec\"
 
7584
      libdir="$acl_save_libdir"
 
7585
      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
 
7586
    else
 
7587
            for found_dir in $rpathdirs; do
 
7588
        acl_save_libdir="$libdir"
 
7589
        libdir="$found_dir"
 
7590
        eval flag=\"$hardcode_libdir_flag_spec\"
 
7591
        libdir="$acl_save_libdir"
 
7592
        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
 
7593
      done
 
7594
    fi
 
7595
  fi
 
7596
  if test "X$ltrpathdirs" != "X"; then
 
7597
            for found_dir in $ltrpathdirs; do
 
7598
      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
 
7599
    done
 
7600
  fi
 
7601
 
 
7602
 
 
7603
 
 
7604
 
 
7605
 
 
7606
 
 
7607
 
 
7608
 
 
7609
 
 
7610
 
 
7611
 
 
7612
 
 
7613
 
 
7614
 
 
7615
 
 
7616
 
 
7617
 
 
7618
 
 
7619
  echo "$as_me:$LINENO: checking whether NLS is requested" >&5
 
7620
echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
 
7621
    # Check whether --enable-nls or --disable-nls was given.
 
7622
if test "${enable_nls+set}" = set; then
 
7623
  enableval="$enable_nls"
 
7624
  USE_NLS=$enableval
 
7625
else
 
7626
  USE_NLS=yes
 
7627
fi;
 
7628
  echo "$as_me:$LINENO: result: $USE_NLS" >&5
 
7629
echo "${ECHO_T}$USE_NLS" >&6
 
7630
 
 
7631
 
 
7632
 
 
7633
 
 
7634
  LIBINTL=
 
7635
  LTLIBINTL=
 
7636
  POSUB=
 
7637
 
 
7638
    if test "$USE_NLS" = "yes"; then
 
7639
    gt_use_preinstalled_gnugettext=no
 
7640
 
 
7641
 
 
7642
 
 
7643
 
 
7644
 
 
7645
 
 
7646
        echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
 
7647
echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
 
7648
if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
 
7649
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7650
else
 
7651
  cat >conftest.$ac_ext <<_ACEOF
 
7652
/* confdefs.h.  */
 
7653
_ACEOF
 
7654
cat confdefs.h >>conftest.$ac_ext
 
7655
cat >>conftest.$ac_ext <<_ACEOF
 
7656
/* end confdefs.h.  */
 
7657
#include <libintl.h>
 
7658
extern int _nl_msg_cat_cntr;
 
7659
extern int *_nl_domain_bindings;
 
7660
int
 
7661
main ()
 
7662
{
 
7663
bindtextdomain ("", "");
 
7664
return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
 
7665
  ;
 
7666
  return 0;
 
7667
}
 
7668
_ACEOF
 
7669
rm -f conftest.$ac_objext conftest$ac_exeext
 
7670
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7671
  (eval $ac_link) 2>conftest.er1
 
7672
  ac_status=$?
 
7673
  grep -v '^ *+' conftest.er1 >conftest.err
 
7674
  rm -f conftest.er1
 
7675
  cat conftest.err >&5
 
7676
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7677
  (exit $ac_status); } &&
 
7678
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
7679
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7680
  (eval $ac_try) 2>&5
 
7681
  ac_status=$?
 
7682
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7683
  (exit $ac_status); }; } &&
 
7684
         { ac_try='test -s conftest$ac_exeext'
 
7685
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7686
  (eval $ac_try) 2>&5
 
7687
  ac_status=$?
 
7688
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7689
  (exit $ac_status); }; }; then
 
7690
  gt_cv_func_gnugettext1_libc=yes
 
7691
else
 
7692
  echo "$as_me: failed program was:" >&5
 
7693
sed 's/^/| /' conftest.$ac_ext >&5
 
7694
 
 
7695
gt_cv_func_gnugettext1_libc=no
 
7696
fi
 
7697
rm -f conftest.err conftest.$ac_objext \
 
7698
      conftest$ac_exeext conftest.$ac_ext
 
7699
fi
 
7700
echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
 
7701
echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
 
7702
 
 
7703
        if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
 
7704
 
 
7705
 
 
7706
 
 
7707
 
 
7708
 
 
7709
          am_save_CPPFLAGS="$CPPFLAGS"
 
7710
 
 
7711
  for element in $INCICONV; do
 
7712
    haveit=
 
7713
    for x in $CPPFLAGS; do
 
7714
 
 
7715
  acl_save_prefix="$prefix"
 
7716
  prefix="$acl_final_prefix"
 
7717
  acl_save_exec_prefix="$exec_prefix"
 
7718
  exec_prefix="$acl_final_exec_prefix"
 
7719
  eval x=\"$x\"
 
7720
  exec_prefix="$acl_save_exec_prefix"
 
7721
  prefix="$acl_save_prefix"
 
7722
 
 
7723
      if test "X$x" = "X$element"; then
 
7724
        haveit=yes
 
7725
        break
 
7726
      fi
 
7727
    done
 
7728
    if test -z "$haveit"; then
 
7729
      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
 
7730
    fi
 
7731
  done
 
7732
 
 
7733
 
 
7734
  echo "$as_me:$LINENO: checking for iconv" >&5
 
7735
echo $ECHO_N "checking for iconv... $ECHO_C" >&6
 
7736
if test "${am_cv_func_iconv+set}" = set; then
 
7737
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7738
else
 
7739
 
 
7740
    am_cv_func_iconv="no, consider installing GNU libiconv"
 
7741
    am_cv_lib_iconv=no
 
7742
    cat >conftest.$ac_ext <<_ACEOF
 
7743
/* confdefs.h.  */
 
7744
_ACEOF
 
7745
cat confdefs.h >>conftest.$ac_ext
 
7746
cat >>conftest.$ac_ext <<_ACEOF
 
7747
/* end confdefs.h.  */
 
7748
#include <stdlib.h>
 
7749
#include <iconv.h>
 
7750
int
 
7751
main ()
 
7752
{
 
7753
iconv_t cd = iconv_open("","");
 
7754
       iconv(cd,NULL,NULL,NULL,NULL);
 
7755
       iconv_close(cd);
 
7756
  ;
 
7757
  return 0;
 
7758
}
 
7759
_ACEOF
 
7760
rm -f conftest.$ac_objext conftest$ac_exeext
 
7761
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7762
  (eval $ac_link) 2>conftest.er1
 
7763
  ac_status=$?
 
7764
  grep -v '^ *+' conftest.er1 >conftest.err
 
7765
  rm -f conftest.er1
 
7766
  cat conftest.err >&5
 
7767
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7768
  (exit $ac_status); } &&
 
7769
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
7770
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7771
  (eval $ac_try) 2>&5
 
7772
  ac_status=$?
 
7773
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7774
  (exit $ac_status); }; } &&
 
7775
         { ac_try='test -s conftest$ac_exeext'
 
7776
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7777
  (eval $ac_try) 2>&5
 
7778
  ac_status=$?
 
7779
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7780
  (exit $ac_status); }; }; then
 
7781
  am_cv_func_iconv=yes
 
7782
else
 
7783
  echo "$as_me: failed program was:" >&5
 
7784
sed 's/^/| /' conftest.$ac_ext >&5
 
7785
 
 
7786
fi
 
7787
rm -f conftest.err conftest.$ac_objext \
 
7788
      conftest$ac_exeext conftest.$ac_ext
 
7789
    if test "$am_cv_func_iconv" != yes; then
 
7790
      am_save_LIBS="$LIBS"
 
7791
      LIBS="$LIBS $LIBICONV"
 
7792
      cat >conftest.$ac_ext <<_ACEOF
 
7793
/* confdefs.h.  */
 
7794
_ACEOF
 
7795
cat confdefs.h >>conftest.$ac_ext
 
7796
cat >>conftest.$ac_ext <<_ACEOF
 
7797
/* end confdefs.h.  */
 
7798
#include <stdlib.h>
 
7799
#include <iconv.h>
 
7800
int
 
7801
main ()
 
7802
{
 
7803
iconv_t cd = iconv_open("","");
 
7804
         iconv(cd,NULL,NULL,NULL,NULL);
 
7805
         iconv_close(cd);
 
7806
  ;
 
7807
  return 0;
 
7808
}
 
7809
_ACEOF
 
7810
rm -f conftest.$ac_objext conftest$ac_exeext
 
7811
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7812
  (eval $ac_link) 2>conftest.er1
 
7813
  ac_status=$?
 
7814
  grep -v '^ *+' conftest.er1 >conftest.err
 
7815
  rm -f conftest.er1
 
7816
  cat conftest.err >&5
 
7817
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7818
  (exit $ac_status); } &&
 
7819
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
7820
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7821
  (eval $ac_try) 2>&5
 
7822
  ac_status=$?
 
7823
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7824
  (exit $ac_status); }; } &&
 
7825
         { ac_try='test -s conftest$ac_exeext'
 
7826
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7827
  (eval $ac_try) 2>&5
 
7828
  ac_status=$?
 
7829
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7830
  (exit $ac_status); }; }; then
 
7831
  am_cv_lib_iconv=yes
 
7832
        am_cv_func_iconv=yes
 
7833
else
 
7834
  echo "$as_me: failed program was:" >&5
 
7835
sed 's/^/| /' conftest.$ac_ext >&5
 
7836
 
 
7837
fi
 
7838
rm -f conftest.err conftest.$ac_objext \
 
7839
      conftest$ac_exeext conftest.$ac_ext
 
7840
      LIBS="$am_save_LIBS"
 
7841
    fi
 
7842
 
 
7843
fi
 
7844
echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
 
7845
echo "${ECHO_T}$am_cv_func_iconv" >&6
 
7846
  if test "$am_cv_func_iconv" = yes; then
 
7847
 
 
7848
cat >>confdefs.h <<\_ACEOF
 
7849
#define HAVE_ICONV 1
 
7850
_ACEOF
 
7851
 
 
7852
  fi
 
7853
  if test "$am_cv_lib_iconv" = yes; then
 
7854
    echo "$as_me:$LINENO: checking how to link with libiconv" >&5
 
7855
echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
 
7856
    echo "$as_me:$LINENO: result: $LIBICONV" >&5
 
7857
echo "${ECHO_T}$LIBICONV" >&6
 
7858
  else
 
7859
            CPPFLAGS="$am_save_CPPFLAGS"
 
7860
    LIBICONV=
 
7861
    LTLIBICONV=
 
7862
  fi
 
7863
 
 
7864
 
 
7865
 
 
7866
 
 
7867
 
 
7868
 
 
7869
    use_additional=yes
 
7870
 
 
7871
  acl_save_prefix="$prefix"
 
7872
  prefix="$acl_final_prefix"
 
7873
  acl_save_exec_prefix="$exec_prefix"
 
7874
  exec_prefix="$acl_final_exec_prefix"
 
7875
 
 
7876
    eval additional_includedir=\"$includedir\"
 
7877
    eval additional_libdir=\"$libdir\"
 
7878
 
 
7879
  exec_prefix="$acl_save_exec_prefix"
 
7880
  prefix="$acl_save_prefix"
 
7881
 
 
7882
 
 
7883
# Check whether --with-libintl-prefix or --without-libintl-prefix was given.
 
7884
if test "${with_libintl_prefix+set}" = set; then
 
7885
  withval="$with_libintl_prefix"
 
7886
 
 
7887
    if test "X$withval" = "Xno"; then
 
7888
      use_additional=no
 
7889
    else
 
7890
      if test "X$withval" = "X"; then
 
7891
 
 
7892
  acl_save_prefix="$prefix"
 
7893
  prefix="$acl_final_prefix"
 
7894
  acl_save_exec_prefix="$exec_prefix"
 
7895
  exec_prefix="$acl_final_exec_prefix"
 
7896
 
 
7897
          eval additional_includedir=\"$includedir\"
 
7898
          eval additional_libdir=\"$libdir\"
 
7899
 
 
7900
  exec_prefix="$acl_save_exec_prefix"
 
7901
  prefix="$acl_save_prefix"
 
7902
 
 
7903
      else
 
7904
        additional_includedir="$withval/include"
 
7905
        additional_libdir="$withval/lib"
 
7906
      fi
 
7907
    fi
 
7908
 
 
7909
fi;
 
7910
      LIBINTL=
 
7911
  LTLIBINTL=
 
7912
  INCINTL=
 
7913
  rpathdirs=
 
7914
  ltrpathdirs=
 
7915
  names_already_handled=
 
7916
  names_next_round='intl '
 
7917
  while test -n "$names_next_round"; do
 
7918
    names_this_round="$names_next_round"
 
7919
    names_next_round=
 
7920
    for name in $names_this_round; do
 
7921
      already_handled=
 
7922
      for n in $names_already_handled; do
 
7923
        if test "$n" = "$name"; then
 
7924
          already_handled=yes
 
7925
          break
 
7926
        fi
 
7927
      done
 
7928
      if test -z "$already_handled"; then
 
7929
        names_already_handled="$names_already_handled $name"
 
7930
                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
 
7931
        eval value=\"\$HAVE_LIB$uppername\"
 
7932
        if test -n "$value"; then
 
7933
          if test "$value" = yes; then
 
7934
            eval value=\"\$LIB$uppername\"
 
7935
            test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
 
7936
            eval value=\"\$LTLIB$uppername\"
 
7937
            test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
 
7938
          else
 
7939
                                    :
 
7940
          fi
 
7941
        else
 
7942
                              found_dir=
 
7943
          found_la=
 
7944
          found_so=
 
7945
          found_a=
 
7946
          if test $use_additional = yes; then
 
7947
            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
 
7948
              found_dir="$additional_libdir"
 
7949
              found_so="$additional_libdir/lib$name.$shlibext"
 
7950
              if test -f "$additional_libdir/lib$name.la"; then
 
7951
                found_la="$additional_libdir/lib$name.la"
 
7952
              fi
 
7953
            else
 
7954
              if test -f "$additional_libdir/lib$name.$libext"; then
 
7955
                found_dir="$additional_libdir"
 
7956
                found_a="$additional_libdir/lib$name.$libext"
 
7957
                if test -f "$additional_libdir/lib$name.la"; then
 
7958
                  found_la="$additional_libdir/lib$name.la"
 
7959
                fi
 
7960
              fi
 
7961
            fi
 
7962
          fi
 
7963
          if test "X$found_dir" = "X"; then
 
7964
            for x in $LDFLAGS $LTLIBINTL; do
 
7965
 
 
7966
  acl_save_prefix="$prefix"
 
7967
  prefix="$acl_final_prefix"
 
7968
  acl_save_exec_prefix="$exec_prefix"
 
7969
  exec_prefix="$acl_final_exec_prefix"
 
7970
  eval x=\"$x\"
 
7971
  exec_prefix="$acl_save_exec_prefix"
 
7972
  prefix="$acl_save_prefix"
 
7973
 
 
7974
              case "$x" in
 
7975
                -L*)
 
7976
                  dir=`echo "X$x" | sed -e 's/^X-L//'`
 
7977
                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
 
7978
                    found_dir="$dir"
 
7979
                    found_so="$dir/lib$name.$shlibext"
 
7980
                    if test -f "$dir/lib$name.la"; then
 
7981
                      found_la="$dir/lib$name.la"
 
7982
                    fi
 
7983
                  else
 
7984
                    if test -f "$dir/lib$name.$libext"; then
 
7985
                      found_dir="$dir"
 
7986
                      found_a="$dir/lib$name.$libext"
 
7987
                      if test -f "$dir/lib$name.la"; then
 
7988
                        found_la="$dir/lib$name.la"
 
7989
                      fi
 
7990
                    fi
 
7991
                  fi
 
7992
                  ;;
 
7993
              esac
 
7994
              if test "X$found_dir" != "X"; then
 
7995
                break
 
7996
              fi
 
7997
            done
 
7998
          fi
 
7999
          if test "X$found_dir" != "X"; then
 
8000
                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
 
8001
            if test "X$found_so" != "X"; then
 
8002
                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
 
8003
                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
 
8004
              else
 
8005
                                                                                haveit=
 
8006
                for x in $ltrpathdirs; do
 
8007
                  if test "X$x" = "X$found_dir"; then
 
8008
                    haveit=yes
 
8009
                    break
 
8010
                  fi
 
8011
                done
 
8012
                if test -z "$haveit"; then
 
8013
                  ltrpathdirs="$ltrpathdirs $found_dir"
 
8014
                fi
 
8015
                                if test "$hardcode_direct" = yes; then
 
8016
                                                      LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
 
8017
                else
 
8018
                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
 
8019
                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
 
8020
                                                            haveit=
 
8021
                    for x in $rpathdirs; do
 
8022
                      if test "X$x" = "X$found_dir"; then
 
8023
                        haveit=yes
 
8024
                        break
 
8025
                      fi
 
8026
                    done
 
8027
                    if test -z "$haveit"; then
 
8028
                      rpathdirs="$rpathdirs $found_dir"
 
8029
                    fi
 
8030
                  else
 
8031
                                                                                haveit=
 
8032
                    for x in $LDFLAGS $LIBINTL; do
 
8033
 
 
8034
  acl_save_prefix="$prefix"
 
8035
  prefix="$acl_final_prefix"
 
8036
  acl_save_exec_prefix="$exec_prefix"
 
8037
  exec_prefix="$acl_final_exec_prefix"
 
8038
  eval x=\"$x\"
 
8039
  exec_prefix="$acl_save_exec_prefix"
 
8040
  prefix="$acl_save_prefix"
 
8041
 
 
8042
                      if test "X$x" = "X-L$found_dir"; then
 
8043
                        haveit=yes
 
8044
                        break
 
8045
                      fi
 
8046
                    done
 
8047
                    if test -z "$haveit"; then
 
8048
                      LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
 
8049
                    fi
 
8050
                    if test "$hardcode_minus_L" != no; then
 
8051
                                                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
 
8052
                    else
 
8053
                                                                                                                                                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
 
8054
                    fi
 
8055
                  fi
 
8056
                fi
 
8057
              fi
 
8058
            else
 
8059
              if test "X$found_a" != "X"; then
 
8060
                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
 
8061
              else
 
8062
                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
 
8063
              fi
 
8064
            fi
 
8065
                        additional_includedir=
 
8066
            case "$found_dir" in
 
8067
              */lib | */lib/)
 
8068
                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
 
8069
                additional_includedir="$basedir/include"
 
8070
                ;;
 
8071
            esac
 
8072
            if test "X$additional_includedir" != "X"; then
 
8073
                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
 
8074
                haveit=
 
8075
                if test "X$additional_includedir" = "X/usr/local/include"; then
 
8076
                  if test -n "$GCC"; then
 
8077
                    case $host_os in
 
8078
                      linux*) haveit=yes;;
 
8079
                    esac
 
8080
                  fi
 
8081
                fi
 
8082
                if test -z "$haveit"; then
 
8083
                  for x in $CPPFLAGS $INCINTL; do
 
8084
 
 
8085
  acl_save_prefix="$prefix"
 
8086
  prefix="$acl_final_prefix"
 
8087
  acl_save_exec_prefix="$exec_prefix"
 
8088
  exec_prefix="$acl_final_exec_prefix"
 
8089
  eval x=\"$x\"
 
8090
  exec_prefix="$acl_save_exec_prefix"
 
8091
  prefix="$acl_save_prefix"
 
8092
 
 
8093
                    if test "X$x" = "X-I$additional_includedir"; then
 
8094
                      haveit=yes
 
8095
                      break
 
8096
                    fi
 
8097
                  done
 
8098
                  if test -z "$haveit"; then
 
8099
                    if test -d "$additional_includedir"; then
 
8100
                                            INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
 
8101
                    fi
 
8102
                  fi
 
8103
                fi
 
8104
              fi
 
8105
            fi
 
8106
                        if test -n "$found_la"; then
 
8107
                                                        save_libdir="$libdir"
 
8108
              case "$found_la" in
 
8109
                */* | *\\*) . "$found_la" ;;
 
8110
                *) . "./$found_la" ;;
 
8111
              esac
 
8112
              libdir="$save_libdir"
 
8113
                            for dep in $dependency_libs; do
 
8114
                case "$dep" in
 
8115
                  -L*)
 
8116
                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
 
8117
                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
 
8118
                      haveit=
 
8119
                      if test "X$additional_libdir" = "X/usr/local/lib"; then
 
8120
                        if test -n "$GCC"; then
 
8121
                          case $host_os in
 
8122
                            linux*) haveit=yes;;
 
8123
                          esac
 
8124
                        fi
 
8125
                      fi
 
8126
                      if test -z "$haveit"; then
 
8127
                        haveit=
 
8128
                        for x in $LDFLAGS $LIBINTL; do
 
8129
 
 
8130
  acl_save_prefix="$prefix"
 
8131
  prefix="$acl_final_prefix"
 
8132
  acl_save_exec_prefix="$exec_prefix"
 
8133
  exec_prefix="$acl_final_exec_prefix"
 
8134
  eval x=\"$x\"
 
8135
  exec_prefix="$acl_save_exec_prefix"
 
8136
  prefix="$acl_save_prefix"
 
8137
 
 
8138
                          if test "X$x" = "X-L$additional_libdir"; then
 
8139
                            haveit=yes
 
8140
                            break
 
8141
                          fi
 
8142
                        done
 
8143
                        if test -z "$haveit"; then
 
8144
                          if test -d "$additional_libdir"; then
 
8145
                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
 
8146
                          fi
 
8147
                        fi
 
8148
                        haveit=
 
8149
                        for x in $LDFLAGS $LTLIBINTL; do
 
8150
 
 
8151
  acl_save_prefix="$prefix"
 
8152
  prefix="$acl_final_prefix"
 
8153
  acl_save_exec_prefix="$exec_prefix"
 
8154
  exec_prefix="$acl_final_exec_prefix"
 
8155
  eval x=\"$x\"
 
8156
  exec_prefix="$acl_save_exec_prefix"
 
8157
  prefix="$acl_save_prefix"
 
8158
 
 
8159
                          if test "X$x" = "X-L$additional_libdir"; then
 
8160
                            haveit=yes
 
8161
                            break
 
8162
                          fi
 
8163
                        done
 
8164
                        if test -z "$haveit"; then
 
8165
                          if test -d "$additional_libdir"; then
 
8166
                                                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
 
8167
                          fi
 
8168
                        fi
 
8169
                      fi
 
8170
                    fi
 
8171
                    ;;
 
8172
                  -R*)
 
8173
                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
 
8174
                    if test "$enable_rpath" != no; then
 
8175
                                                                  haveit=
 
8176
                      for x in $rpathdirs; do
 
8177
                        if test "X$x" = "X$dir"; then
 
8178
                          haveit=yes
 
8179
                          break
 
8180
                        fi
 
8181
                      done
 
8182
                      if test -z "$haveit"; then
 
8183
                        rpathdirs="$rpathdirs $dir"
 
8184
                      fi
 
8185
                                                                  haveit=
 
8186
                      for x in $ltrpathdirs; do
 
8187
                        if test "X$x" = "X$dir"; then
 
8188
                          haveit=yes
 
8189
                          break
 
8190
                        fi
 
8191
                      done
 
8192
                      if test -z "$haveit"; then
 
8193
                        ltrpathdirs="$ltrpathdirs $dir"
 
8194
                      fi
 
8195
                    fi
 
8196
                    ;;
 
8197
                  -l*)
 
8198
                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
 
8199
                    ;;
 
8200
                  *.la)
 
8201
                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
 
8202
                    ;;
 
8203
                  *)
 
8204
                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
 
8205
                    LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
 
8206
                    ;;
 
8207
                esac
 
8208
              done
 
8209
            fi
 
8210
          else
 
8211
                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
 
8212
            LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
 
8213
          fi
 
8214
        fi
 
8215
      fi
 
8216
    done
 
8217
  done
 
8218
  if test "X$rpathdirs" != "X"; then
 
8219
    if test -n "$hardcode_libdir_separator"; then
 
8220
                        alldirs=
 
8221
      for found_dir in $rpathdirs; do
 
8222
        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
 
8223
      done
 
8224
            acl_save_libdir="$libdir"
 
8225
      libdir="$alldirs"
 
8226
      eval flag=\"$hardcode_libdir_flag_spec\"
 
8227
      libdir="$acl_save_libdir"
 
8228
      LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
 
8229
    else
 
8230
            for found_dir in $rpathdirs; do
 
8231
        acl_save_libdir="$libdir"
 
8232
        libdir="$found_dir"
 
8233
        eval flag=\"$hardcode_libdir_flag_spec\"
 
8234
        libdir="$acl_save_libdir"
 
8235
        LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
 
8236
      done
 
8237
    fi
 
8238
  fi
 
8239
  if test "X$ltrpathdirs" != "X"; then
 
8240
            for found_dir in $ltrpathdirs; do
 
8241
      LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
 
8242
    done
 
8243
  fi
 
8244
 
 
8245
          echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
 
8246
echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
 
8247
if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
 
8248
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8249
else
 
8250
  gt_save_CPPFLAGS="$CPPFLAGS"
 
8251
            CPPFLAGS="$CPPFLAGS $INCINTL"
 
8252
            gt_save_LIBS="$LIBS"
 
8253
            LIBS="$LIBS $LIBINTL"
 
8254
                        cat >conftest.$ac_ext <<_ACEOF
 
8255
/* confdefs.h.  */
 
8256
_ACEOF
 
8257
cat confdefs.h >>conftest.$ac_ext
 
8258
cat >>conftest.$ac_ext <<_ACEOF
 
8259
/* end confdefs.h.  */
 
8260
#include <libintl.h>
 
8261
extern int _nl_msg_cat_cntr;
 
8262
extern
 
8263
#ifdef __cplusplus
 
8264
"C"
 
8265
#endif
 
8266
const char *_nl_expand_alias ();
 
8267
int
 
8268
main ()
 
8269
{
 
8270
bindtextdomain ("", "");
 
8271
return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
 
8272
  ;
 
8273
  return 0;
 
8274
}
 
8275
_ACEOF
 
8276
rm -f conftest.$ac_objext conftest$ac_exeext
 
8277
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8278
  (eval $ac_link) 2>conftest.er1
 
8279
  ac_status=$?
 
8280
  grep -v '^ *+' conftest.er1 >conftest.err
 
8281
  rm -f conftest.er1
 
8282
  cat conftest.err >&5
 
8283
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8284
  (exit $ac_status); } &&
 
8285
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8286
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8287
  (eval $ac_try) 2>&5
 
8288
  ac_status=$?
 
8289
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8290
  (exit $ac_status); }; } &&
 
8291
         { ac_try='test -s conftest$ac_exeext'
 
8292
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8293
  (eval $ac_try) 2>&5
 
8294
  ac_status=$?
 
8295
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8296
  (exit $ac_status); }; }; then
 
8297
  gt_cv_func_gnugettext1_libintl=yes
 
8298
else
 
8299
  echo "$as_me: failed program was:" >&5
 
8300
sed 's/^/| /' conftest.$ac_ext >&5
 
8301
 
 
8302
gt_cv_func_gnugettext1_libintl=no
 
8303
fi
 
8304
rm -f conftest.err conftest.$ac_objext \
 
8305
      conftest$ac_exeext conftest.$ac_ext
 
8306
                        if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
 
8307
              LIBS="$LIBS $LIBICONV"
 
8308
              cat >conftest.$ac_ext <<_ACEOF
 
8309
/* confdefs.h.  */
 
8310
_ACEOF
 
8311
cat confdefs.h >>conftest.$ac_ext
 
8312
cat >>conftest.$ac_ext <<_ACEOF
 
8313
/* end confdefs.h.  */
 
8314
#include <libintl.h>
 
8315
extern int _nl_msg_cat_cntr;
 
8316
extern
 
8317
#ifdef __cplusplus
 
8318
"C"
 
8319
#endif
 
8320
const char *_nl_expand_alias ();
 
8321
int
 
8322
main ()
 
8323
{
 
8324
bindtextdomain ("", "");
 
8325
return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
 
8326
  ;
 
8327
  return 0;
 
8328
}
 
8329
_ACEOF
 
8330
rm -f conftest.$ac_objext conftest$ac_exeext
 
8331
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8332
  (eval $ac_link) 2>conftest.er1
 
8333
  ac_status=$?
 
8334
  grep -v '^ *+' conftest.er1 >conftest.err
 
8335
  rm -f conftest.er1
 
8336
  cat conftest.err >&5
 
8337
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8338
  (exit $ac_status); } &&
 
8339
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8340
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8341
  (eval $ac_try) 2>&5
 
8342
  ac_status=$?
 
8343
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8344
  (exit $ac_status); }; } &&
 
8345
         { ac_try='test -s conftest$ac_exeext'
 
8346
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8347
  (eval $ac_try) 2>&5
 
8348
  ac_status=$?
 
8349
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8350
  (exit $ac_status); }; }; then
 
8351
  LIBINTL="$LIBINTL $LIBICONV"
 
8352
                LTLIBINTL="$LTLIBINTL $LTLIBICONV"
 
8353
                gt_cv_func_gnugettext1_libintl=yes
 
8354
 
 
8355
else
 
8356
  echo "$as_me: failed program was:" >&5
 
8357
sed 's/^/| /' conftest.$ac_ext >&5
 
8358
 
 
8359
fi
 
8360
rm -f conftest.err conftest.$ac_objext \
 
8361
      conftest$ac_exeext conftest.$ac_ext
 
8362
            fi
 
8363
            CPPFLAGS="$gt_save_CPPFLAGS"
 
8364
            LIBS="$gt_save_LIBS"
 
8365
fi
 
8366
echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
 
8367
echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
 
8368
        fi
 
8369
 
 
8370
                                        if test "$gt_cv_func_gnugettext1_libc" = "yes" \
 
8371
           || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
 
8372
                && test "$PACKAGE" != gettext-runtime \
 
8373
                && test "$PACKAGE" != gettext-tools; }; then
 
8374
          gt_use_preinstalled_gnugettext=yes
 
8375
        else
 
8376
                    LIBINTL=
 
8377
          LTLIBINTL=
 
8378
          INCINTL=
 
8379
        fi
 
8380
 
 
8381
 
 
8382
 
 
8383
    if test "$gt_use_preinstalled_gnugettext" = "yes" \
 
8384
       || test "$nls_cv_use_gnu_gettext" = "yes"; then
 
8385
 
 
8386
cat >>confdefs.h <<\_ACEOF
 
8387
#define ENABLE_NLS 1
 
8388
_ACEOF
 
8389
 
 
8390
    else
 
8391
      USE_NLS=no
 
8392
    fi
 
8393
  fi
 
8394
 
 
8395
  echo "$as_me:$LINENO: checking whether to use NLS" >&5
 
8396
echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
 
8397
  echo "$as_me:$LINENO: result: $USE_NLS" >&5
 
8398
echo "${ECHO_T}$USE_NLS" >&6
 
8399
  if test "$USE_NLS" = "yes"; then
 
8400
    echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
 
8401
echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
 
8402
    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
 
8403
      if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
 
8404
        gt_source="external libintl"
 
8405
      else
 
8406
        gt_source="libc"
 
8407
      fi
 
8408
    else
 
8409
      gt_source="included intl directory"
 
8410
    fi
 
8411
    echo "$as_me:$LINENO: result: $gt_source" >&5
 
8412
echo "${ECHO_T}$gt_source" >&6
 
8413
  fi
 
8414
 
 
8415
  if test "$USE_NLS" = "yes"; then
 
8416
 
 
8417
    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
 
8418
      if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
 
8419
        echo "$as_me:$LINENO: checking how to link with libintl" >&5
 
8420
echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
 
8421
        echo "$as_me:$LINENO: result: $LIBINTL" >&5
 
8422
echo "${ECHO_T}$LIBINTL" >&6
 
8423
 
 
8424
  for element in $INCINTL; do
 
8425
    haveit=
 
8426
    for x in $CPPFLAGS; do
 
8427
 
 
8428
  acl_save_prefix="$prefix"
 
8429
  prefix="$acl_final_prefix"
 
8430
  acl_save_exec_prefix="$exec_prefix"
 
8431
  exec_prefix="$acl_final_exec_prefix"
 
8432
  eval x=\"$x\"
 
8433
  exec_prefix="$acl_save_exec_prefix"
 
8434
  prefix="$acl_save_prefix"
 
8435
 
 
8436
      if test "X$x" = "X$element"; then
 
8437
        haveit=yes
 
8438
        break
 
8439
      fi
 
8440
    done
 
8441
    if test -z "$haveit"; then
 
8442
      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
 
8443
    fi
 
8444
  done
 
8445
 
 
8446
      fi
 
8447
 
 
8448
 
 
8449
cat >>confdefs.h <<\_ACEOF
 
8450
#define HAVE_GETTEXT 1
 
8451
_ACEOF
 
8452
 
 
8453
 
 
8454
cat >>confdefs.h <<\_ACEOF
 
8455
#define HAVE_DCGETTEXT 1
 
8456
_ACEOF
 
8457
 
 
8458
    fi
 
8459
 
 
8460
        POSUB=po
 
8461
  fi
 
8462
 
 
8463
 
 
8464
 
 
8465
    INTLLIBS="$LIBINTL"
 
8466
 
 
8467
 
 
8468
 
 
8469
 
 
8470
 
 
8471
 
 
8472
if test x"$USE_NLS" = "xyes"; then
 
8473
   cat >>confdefs.h <<\_ACEOF
 
8474
#define USE_NLS 1
 
8475
_ACEOF
 
8476
 
 
8477
fi
 
8478
 
 
8479
# Extract the first word of "bash", so it can be a program name with args.
 
8480
set dummy bash; ac_word=$2
 
8481
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
8482
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
8483
if test "${ac_cv_path_BASH+set}" = set; then
 
8484
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8485
else
 
8486
  case $BASH in
 
8487
  [\\/]* | ?:[\\/]*)
 
8488
  ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
 
8489
  ;;
 
8490
  *)
 
8491
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8492
for as_dir in $PATH
 
8493
do
 
8494
  IFS=$as_save_IFS
 
8495
  test -z "$as_dir" && as_dir=.
 
8496
  for ac_exec_ext in '' $ac_executable_extensions; do
 
8497
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
8498
    ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
 
8499
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8500
    break 2
 
8501
  fi
 
8502
done
 
8503
done
 
8504
 
 
8505
  ;;
 
8506
esac
 
8507
fi
 
8508
BASH=$ac_cv_path_BASH
 
8509
 
 
8510
if test -n "$BASH"; then
 
8511
  echo "$as_me:$LINENO: result: $BASH" >&5
 
8512
echo "${ECHO_T}$BASH" >&6
 
8513
else
 
8514
  echo "$as_me:$LINENO: result: no" >&5
 
8515
echo "${ECHO_T}no" >&6
 
8516
fi
 
8517
 
 
8518
 
 
8519
                    ac_config_files="$ac_config_files environment.mak:buildlib/environment.mak.in makefile:buildlib/makefile.in"
 
8520
          ac_config_commands="$ac_config_commands default"
 
8521
cat >confcache <<\_ACEOF
2299
8522
# This file is a shell script that caches the results of configure
2300
8523
# tests run on this system so they can be shared between configure
2301
 
# scripts and configure runs.  It is not useful on other systems.
2302
 
# If it contains results you don't want to keep, you may remove or edit it.
2303
 
#
2304
 
# By default, configure uses ./config.cache as the cache file,
2305
 
# creating it if it does not exist already.  You can give configure
2306
 
# the --cache-file=FILE option to use a different cache file; that is
2307
 
# what configure does when it calls configure scripts in
2308
 
# subdirectories, so they share the cache.
2309
 
# Giving --cache-file=/dev/null disables caching, for debugging configure.
2310
 
# config.status only pays attention to the cache file if you give it the
2311
 
# --recheck option to rerun configure.
2312
 
#
2313
 
EOF
 
8524
# scripts and configure runs, see configure's option --config-cache.
 
8525
# It is not useful on other systems.  If it contains results you don't
 
8526
# want to keep, you may remove or edit it.
 
8527
#
 
8528
# config.status only pays attention to the cache file if you give it
 
8529
# the --recheck option to rerun configure.
 
8530
#
 
8531
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
8532
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
8533
# following values.
 
8534
 
 
8535
_ACEOF
 
8536
 
2314
8537
# The following way of writing the cache mishandles newlines in values,
2315
8538
# but we know of no workaround that is simple, portable, and efficient.
2316
8539
# So, don't put newlines in cache variables' values.
2317
8540
# Ultrix sh set writes to stderr and can't be redirected directly,
2318
8541
# and sets the high bit in the cache file unless we assign to the vars.
2319
 
(set) 2>&1 |
2320
 
  case `(ac_space=' '; set | grep ac_space) 2>&1` in
2321
 
  *ac_space=\ *)
2322
 
    # `set' does not quote correctly, so add quotes (double-quote substitution
2323
 
    # turns \\\\ into \\, and sed turns \\ into \).
2324
 
    sed -n \
2325
 
      -e "s/'/'\\\\''/g" \
2326
 
      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2327
 
    ;;
2328
 
  *)
2329
 
    # `set' quotes correctly as required by POSIX, so do not add quotes.
2330
 
    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2331
 
    ;;
2332
 
  esac >> confcache
2333
 
if cmp -s $cache_file confcache; then
2334
 
  :
2335
 
else
 
8542
{
 
8543
  (set) 2>&1 |
 
8544
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
 
8545
    *ac_space=\ *)
 
8546
      # `set' does not quote correctly, so add quotes (double-quote
 
8547
      # substitution turns \\\\ into \\, and sed turns \\ into \).
 
8548
      sed -n \
 
8549
        "s/'/'\\\\''/g;
 
8550
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
8551
      ;;
 
8552
    *)
 
8553
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
8554
      sed -n \
 
8555
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
8556
      ;;
 
8557
    esac;
 
8558
} |
 
8559
  sed '
 
8560
     t clear
 
8561
     : clear
 
8562
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
8563
     t end
 
8564
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
8565
     : end' >>confcache
 
8566
if diff $cache_file confcache >/dev/null 2>&1; then :; else
2336
8567
  if test -w $cache_file; then
2337
 
    echo "updating cache $cache_file"
2338
 
    cat confcache > $cache_file
 
8568
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
 
8569
    cat confcache >$cache_file
2339
8570
  else
2340
8571
    echo "not updating unwritable cache $cache_file"
2341
8572
  fi
2342
8573
fi
2343
8574
rm -f confcache
2344
8575
 
2345
 
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2346
 
 
2347
8576
test "x$prefix" = xNONE && prefix=$ac_default_prefix
2348
8577
# Let make expand exec_prefix.
2349
8578
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2350
8579
 
2351
 
# Any assignment to VPATH causes Sun make to only execute
2352
 
# the first set of double-colon rules, so remove it if not needed.
2353
 
# If there is a colon in the path, we need to keep it.
 
8580
# VPATH may cause trouble with some makes, so we remove $(srcdir),
 
8581
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 
8582
# trailing colons and then remove the whole line if VPATH becomes empty
 
8583
# (actually we leave an empty line to preserve line numbers).
2354
8584
if test "x$srcdir" = x.; then
2355
 
  ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
 
8585
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
 
8586
s/:*\$(srcdir):*/:/;
 
8587
s/:*\${srcdir}:*/:/;
 
8588
s/:*@srcdir@:*/:/;
 
8589
s/^\([^=]*=[     ]*\):*/\1/;
 
8590
s/:*$//;
 
8591
s/^[^=]*=[       ]*$//;
 
8592
}'
2356
8593
fi
2357
8594
 
2358
 
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2359
 
 
2360
8595
DEFS=-DHAVE_CONFIG_H
2361
8596
 
2362
 
# Without the "./", some shells look in PATH for config.status.
 
8597
ac_libobjs=
 
8598
ac_ltlibobjs=
 
8599
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 
8600
  # 1. Remove the extension, and $U if already installed.
 
8601
  ac_i=`echo "$ac_i" |
 
8602
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
 
8603
  # 2. Add them.
 
8604
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
 
8605
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
 
8606
done
 
8607
LIBOBJS=$ac_libobjs
 
8608
 
 
8609
LTLIBOBJS=$ac_ltlibobjs
 
8610
 
 
8611
 
 
8612
 
2363
8613
: ${CONFIG_STATUS=./config.status}
2364
 
 
2365
 
echo creating $CONFIG_STATUS
2366
 
rm -f $CONFIG_STATUS
2367
 
cat > $CONFIG_STATUS <<EOF
2368
 
#! /bin/sh
2369
 
# Generated automatically by configure.
 
8614
ac_clean_files_save=$ac_clean_files
 
8615
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
8616
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
 
8617
echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
8618
cat >$CONFIG_STATUS <<_ACEOF
 
8619
#! $SHELL
 
8620
# Generated by $as_me.
2370
8621
# Run this file to recreate the current configuration.
2371
 
# This directory was configured as follows,
2372
 
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2373
 
#
2374
 
# $0 $ac_configure_args
2375
 
#
2376
8622
# Compiler output produced by configure, useful for debugging
2377
 
# configure, is in ./config.log if it exists.
2378
 
 
2379
 
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2380
 
for ac_option
2381
 
do
2382
 
  case "\$ac_option" in
 
8623
# configure, is in config.log if it exists.
 
8624
 
 
8625
debug=false
 
8626
ac_cs_recheck=false
 
8627
ac_cs_silent=false
 
8628
SHELL=\${CONFIG_SHELL-$SHELL}
 
8629
_ACEOF
 
8630
 
 
8631
cat >>$CONFIG_STATUS <<\_ACEOF
 
8632
## --------------------- ##
 
8633
## M4sh Initialization.  ##
 
8634
## --------------------- ##
 
8635
 
 
8636
# Be Bourne compatible
 
8637
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
8638
  emulate sh
 
8639
  NULLCMD=:
 
8640
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
8641
  # is contrary to our usage.  Disable this feature.
 
8642
  alias -g '${1+"$@"}'='"$@"'
 
8643
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
 
8644
  set -o posix
 
8645
fi
 
8646
DUALCASE=1; export DUALCASE # for MKS sh
 
8647
 
 
8648
# Support unset when possible.
 
8649
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
8650
  as_unset=unset
 
8651
else
 
8652
  as_unset=false
 
8653
fi
 
8654
 
 
8655
 
 
8656
# Work around bugs in pre-3.0 UWIN ksh.
 
8657
$as_unset ENV MAIL MAILPATH
 
8658
PS1='$ '
 
8659
PS2='> '
 
8660
PS4='+ '
 
8661
 
 
8662
# NLS nuisances.
 
8663
for as_var in \
 
8664
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
8665
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
8666
  LC_TELEPHONE LC_TIME
 
8667
do
 
8668
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
8669
    eval $as_var=C; export $as_var
 
8670
  else
 
8671
    $as_unset $as_var
 
8672
  fi
 
8673
done
 
8674
 
 
8675
# Required to use basename.
 
8676
if expr a : '\(a\)' >/dev/null 2>&1; then
 
8677
  as_expr=expr
 
8678
else
 
8679
  as_expr=false
 
8680
fi
 
8681
 
 
8682
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
8683
  as_basename=basename
 
8684
else
 
8685
  as_basename=false
 
8686
fi
 
8687
 
 
8688
 
 
8689
# Name of the executable.
 
8690
as_me=`$as_basename "$0" ||
 
8691
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
8692
         X"$0" : 'X\(//\)$' \| \
 
8693
         X"$0" : 'X\(/\)$' \| \
 
8694
         .     : '\(.\)' 2>/dev/null ||
 
8695
echo X/"$0" |
 
8696
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
 
8697
          /^X\/\(\/\/\)$/{ s//\1/; q; }
 
8698
          /^X\/\(\/\).*/{ s//\1/; q; }
 
8699
          s/.*/./; q'`
 
8700
 
 
8701
 
 
8702
# PATH needs CR, and LINENO needs CR and PATH.
 
8703
# Avoid depending upon Character Ranges.
 
8704
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
8705
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
8706
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
8707
as_cr_digits='0123456789'
 
8708
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
8709
 
 
8710
# The user is always right.
 
8711
if test "${PATH_SEPARATOR+set}" != set; then
 
8712
  echo "#! /bin/sh" >conf$$.sh
 
8713
  echo  "exit 0"   >>conf$$.sh
 
8714
  chmod +x conf$$.sh
 
8715
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
8716
    PATH_SEPARATOR=';'
 
8717
  else
 
8718
    PATH_SEPARATOR=:
 
8719
  fi
 
8720
  rm -f conf$$.sh
 
8721
fi
 
8722
 
 
8723
 
 
8724
  as_lineno_1=$LINENO
 
8725
  as_lineno_2=$LINENO
 
8726
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
8727
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
8728
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
 
8729
  # Find who we are.  Look in the path if we contain no path at all
 
8730
  # relative or not.
 
8731
  case $0 in
 
8732
    *[\\/]* ) as_myself=$0 ;;
 
8733
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8734
for as_dir in $PATH
 
8735
do
 
8736
  IFS=$as_save_IFS
 
8737
  test -z "$as_dir" && as_dir=.
 
8738
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
8739
done
 
8740
 
 
8741
       ;;
 
8742
  esac
 
8743
  # We did not find ourselves, most probably we were run as `sh COMMAND'
 
8744
  # in which case we are not to be found in the path.
 
8745
  if test "x$as_myself" = x; then
 
8746
    as_myself=$0
 
8747
  fi
 
8748
  if test ! -f "$as_myself"; then
 
8749
    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
 
8750
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
 
8751
   { (exit 1); exit 1; }; }
 
8752
  fi
 
8753
  case $CONFIG_SHELL in
 
8754
  '')
 
8755
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8756
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
8757
do
 
8758
  IFS=$as_save_IFS
 
8759
  test -z "$as_dir" && as_dir=.
 
8760
  for as_base in sh bash ksh sh5; do
 
8761
         case $as_dir in
 
8762
         /*)
 
8763
           if ("$as_dir/$as_base" -c '
 
8764
  as_lineno_1=$LINENO
 
8765
  as_lineno_2=$LINENO
 
8766
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
8767
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
8768
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
 
8769
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
 
8770
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
 
8771
             CONFIG_SHELL=$as_dir/$as_base
 
8772
             export CONFIG_SHELL
 
8773
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
 
8774
           fi;;
 
8775
         esac
 
8776
       done
 
8777
done
 
8778
;;
 
8779
  esac
 
8780
 
 
8781
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
8782
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
8783
  # line-number line before each line; the second 'sed' does the real
 
8784
  # work.  The second script uses 'N' to pair each line-number line
 
8785
  # with the numbered line, and appends trailing '-' during
 
8786
  # substitution so that $LINENO is not a special case at line end.
 
8787
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
8788
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
 
8789
  sed '=' <$as_myself |
 
8790
    sed '
 
8791
      N
 
8792
      s,$,-,
 
8793
      : loop
 
8794
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
8795
      t loop
 
8796
      s,-$,,
 
8797
      s,^['$as_cr_digits']*\n,,
 
8798
    ' >$as_me.lineno &&
 
8799
  chmod +x $as_me.lineno ||
 
8800
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
 
8801
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
 
8802
   { (exit 1); exit 1; }; }
 
8803
 
 
8804
  # Don't try to exec as it changes $[0], causing all sort of problems
 
8805
  # (the dirname of $[0] is not the place where we might find the
 
8806
  # original and so on.  Autoconf is especially sensible to this).
 
8807
  . ./$as_me.lineno
 
8808
  # Exit status is that of the last command.
 
8809
  exit
 
8810
}
 
8811
 
 
8812
 
 
8813
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 
8814
  *c*,-n*) ECHO_N= ECHO_C='
 
8815
' ECHO_T='      ' ;;
 
8816
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 
8817
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
8818
esac
 
8819
 
 
8820
if expr a : '\(a\)' >/dev/null 2>&1; then
 
8821
  as_expr=expr
 
8822
else
 
8823
  as_expr=false
 
8824
fi
 
8825
 
 
8826
rm -f conf$$ conf$$.exe conf$$.file
 
8827
echo >conf$$.file
 
8828
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
8829
  # We could just check for DJGPP; but this test a) works b) is more generic
 
8830
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
 
8831
  if test -f conf$$.exe; then
 
8832
    # Don't use ln at all; we don't have any links
 
8833
    as_ln_s='cp -p'
 
8834
  else
 
8835
    as_ln_s='ln -s'
 
8836
  fi
 
8837
elif ln conf$$.file conf$$ 2>/dev/null; then
 
8838
  as_ln_s=ln
 
8839
else
 
8840
  as_ln_s='cp -p'
 
8841
fi
 
8842
rm -f conf$$ conf$$.exe conf$$.file
 
8843
 
 
8844
if mkdir -p . 2>/dev/null; then
 
8845
  as_mkdir_p=:
 
8846
else
 
8847
  test -d ./-p && rmdir ./-p
 
8848
  as_mkdir_p=false
 
8849
fi
 
8850
 
 
8851
as_executable_p="test -f"
 
8852
 
 
8853
# Sed expression to map a string onto a valid CPP name.
 
8854
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
8855
 
 
8856
# Sed expression to map a string onto a valid variable name.
 
8857
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
8858
 
 
8859
 
 
8860
# IFS
 
8861
# We need space, tab and new line, in precisely that order.
 
8862
as_nl='
 
8863
'
 
8864
IFS="   $as_nl"
 
8865
 
 
8866
# CDPATH.
 
8867
$as_unset CDPATH
 
8868
 
 
8869
exec 6>&1
 
8870
 
 
8871
# Open the log real soon, to keep \$[0] and so on meaningful, and to
 
8872
# report actual input values of CONFIG_FILES etc. instead of their
 
8873
# values after options handling.  Logging --version etc. is OK.
 
8874
exec 5>>config.log
 
8875
{
 
8876
  echo
 
8877
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
8878
## Running $as_me. ##
 
8879
_ASBOX
 
8880
} >&5
 
8881
cat >&5 <<_CSEOF
 
8882
 
 
8883
This file was extended by $as_me, which was
 
8884
generated by GNU Autoconf 2.59.  Invocation command line was
 
8885
 
 
8886
  CONFIG_FILES    = $CONFIG_FILES
 
8887
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
8888
  CONFIG_LINKS    = $CONFIG_LINKS
 
8889
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
8890
  $ $0 $@
 
8891
 
 
8892
_CSEOF
 
8893
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
 
8894
echo >&5
 
8895
_ACEOF
 
8896
 
 
8897
# Files that config.status was made for.
 
8898
if test -n "$ac_config_files"; then
 
8899
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
 
8900
fi
 
8901
 
 
8902
if test -n "$ac_config_headers"; then
 
8903
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
 
8904
fi
 
8905
 
 
8906
if test -n "$ac_config_links"; then
 
8907
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
 
8908
fi
 
8909
 
 
8910
if test -n "$ac_config_commands"; then
 
8911
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
 
8912
fi
 
8913
 
 
8914
cat >>$CONFIG_STATUS <<\_ACEOF
 
8915
 
 
8916
ac_cs_usage="\
 
8917
\`$as_me' instantiates files from templates according to the
 
8918
current configuration.
 
8919
 
 
8920
Usage: $0 [OPTIONS] [FILE]...
 
8921
 
 
8922
  -h, --help       print this help, then exit
 
8923
  -V, --version    print version number, then exit
 
8924
  -q, --quiet      do not print progress messages
 
8925
  -d, --debug      don't remove temporary files
 
8926
      --recheck    update $as_me by reconfiguring in the same conditions
 
8927
  --file=FILE[:TEMPLATE]
 
8928
                   instantiate the configuration file FILE
 
8929
  --header=FILE[:TEMPLATE]
 
8930
                   instantiate the configuration header FILE
 
8931
 
 
8932
Configuration files:
 
8933
$config_files
 
8934
 
 
8935
Configuration headers:
 
8936
$config_headers
 
8937
 
 
8938
Configuration commands:
 
8939
$config_commands
 
8940
 
 
8941
Report bugs to <bug-autoconf@gnu.org>."
 
8942
_ACEOF
 
8943
 
 
8944
cat >>$CONFIG_STATUS <<_ACEOF
 
8945
ac_cs_version="\\
 
8946
config.status
 
8947
configured by $0, generated by GNU Autoconf 2.59,
 
8948
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
 
8949
 
 
8950
Copyright (C) 2003 Free Software Foundation, Inc.
 
8951
This config.status script is free software; the Free Software Foundation
 
8952
gives unlimited permission to copy, distribute and modify it."
 
8953
srcdir=$srcdir
 
8954
INSTALL="$INSTALL"
 
8955
_ACEOF
 
8956
 
 
8957
cat >>$CONFIG_STATUS <<\_ACEOF
 
8958
# If no file are specified by the user, then we need to provide default
 
8959
# value.  By we need to know if files were specified by the user.
 
8960
ac_need_defaults=:
 
8961
while test $# != 0
 
8962
do
 
8963
  case $1 in
 
8964
  --*=*)
 
8965
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
 
8966
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
 
8967
    ac_shift=:
 
8968
    ;;
 
8969
  -*)
 
8970
    ac_option=$1
 
8971
    ac_optarg=$2
 
8972
    ac_shift=shift
 
8973
    ;;
 
8974
  *) # This is not an option, so the user has probably given explicit
 
8975
     # arguments.
 
8976
     ac_option=$1
 
8977
     ac_need_defaults=false;;
 
8978
  esac
 
8979
 
 
8980
  case $ac_option in
 
8981
  # Handling of the options.
 
8982
_ACEOF
 
8983
cat >>$CONFIG_STATUS <<\_ACEOF
2383
8984
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2384
 
    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2385
 
    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2386
 
  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2387
 
    echo "$CONFIG_STATUS generated by autoconf version 2.13"
2388
 
    exit 0 ;;
2389
 
  -help | --help | --hel | --he | --h)
2390
 
    echo "\$ac_cs_usage"; exit 0 ;;
2391
 
  *) echo "\$ac_cs_usage"; exit 1 ;;
2392
 
  esac
2393
 
done
2394
 
 
2395
 
ac_given_srcdir=$srcdir
2396
 
 
2397
 
trap 'rm -fr `echo "environment.mak:buildlib/environment.mak.in makefile:buildlib/makefile.in include/config.h:buildlib/config.h.in include/apti18n.h:buildlib/apti18n.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2398
 
EOF
2399
 
cat >> $CONFIG_STATUS <<EOF
2400
 
 
2401
 
# Protect against being on the right side of a sed subst in config.status.
2402
 
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2403
 
 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2404
 
$ac_vpsub
 
8985
    ac_cs_recheck=: ;;
 
8986
  --version | --vers* | -V )
 
8987
    echo "$ac_cs_version"; exit 0 ;;
 
8988
  --he | --h)
 
8989
    # Conflict between --help and --header
 
8990
    { { echo "$as_me:$LINENO: error: ambiguous option: $1
 
8991
Try \`$0 --help' for more information." >&5
 
8992
echo "$as_me: error: ambiguous option: $1
 
8993
Try \`$0 --help' for more information." >&2;}
 
8994
   { (exit 1); exit 1; }; };;
 
8995
  --help | --hel | -h )
 
8996
    echo "$ac_cs_usage"; exit 0 ;;
 
8997
  --debug | --d* | -d )
 
8998
    debug=: ;;
 
8999
  --file | --fil | --fi | --f )
 
9000
    $ac_shift
 
9001
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
 
9002
    ac_need_defaults=false;;
 
9003
  --header | --heade | --head | --hea )
 
9004
    $ac_shift
 
9005
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
 
9006
    ac_need_defaults=false;;
 
9007
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
9008
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
9009
    ac_cs_silent=: ;;
 
9010
 
 
9011
  # This is an error.
 
9012
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
 
9013
Try \`$0 --help' for more information." >&5
 
9014
echo "$as_me: error: unrecognized option: $1
 
9015
Try \`$0 --help' for more information." >&2;}
 
9016
   { (exit 1); exit 1; }; } ;;
 
9017
 
 
9018
  *) ac_config_targets="$ac_config_targets $1" ;;
 
9019
 
 
9020
  esac
 
9021
  shift
 
9022
done
 
9023
 
 
9024
ac_configure_extra_args=
 
9025
 
 
9026
if $ac_cs_silent; then
 
9027
  exec 6>/dev/null
 
9028
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
9029
fi
 
9030
 
 
9031
_ACEOF
 
9032
cat >>$CONFIG_STATUS <<_ACEOF
 
9033
if \$ac_cs_recheck; then
 
9034
  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
 
9035
  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
9036
fi
 
9037
 
 
9038
_ACEOF
 
9039
 
 
9040
cat >>$CONFIG_STATUS <<_ACEOF
 
9041
#
 
9042
# INIT-COMMANDS section.
 
9043
#
 
9044
 
 
9045
# Capture the value of obsolete ALL_LINGUAS because we need it to compute
 
9046
    # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
 
9047
    # from automake.
 
9048
    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
 
9049
    # Capture the value of LINGUAS because we need it to compute CATALOGS.
 
9050
    LINGUAS="${LINGUAS-%UNSET%}"
 
9051
 
 
9052
 
 
9053
_ACEOF
 
9054
 
 
9055
 
 
9056
 
 
9057
cat >>$CONFIG_STATUS <<\_ACEOF
 
9058
for ac_config_target in $ac_config_targets
 
9059
do
 
9060
  case "$ac_config_target" in
 
9061
  # Handling of arguments.
 
9062
  "environment.mak" ) CONFIG_FILES="$CONFIG_FILES environment.mak:buildlib/environment.mak.in" ;;
 
9063
  "makefile" ) CONFIG_FILES="$CONFIG_FILES makefile:buildlib/makefile.in" ;;
 
9064
  "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
 
9065
  "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
 
9066
  "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h:buildlib/config.h.in" ;;
 
9067
  "include/apti18n.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/apti18n.h:buildlib/apti18n.h.in" ;;
 
9068
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
 
9069
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
 
9070
   { (exit 1); exit 1; }; };;
 
9071
  esac
 
9072
done
 
9073
 
 
9074
# If the user did not use the arguments to specify the items to instantiate,
 
9075
# then the envvar interface is used.  Set only those that are not.
 
9076
# We use the long form for the default assignment because of an extremely
 
9077
# bizarre bug on SunOS 4.1.3.
 
9078
if $ac_need_defaults; then
 
9079
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
9080
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 
9081
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
 
9082
fi
 
9083
 
 
9084
# Have a temporary directory for convenience.  Make it in the build tree
 
9085
# simply because there is no reason to put it here, and in addition,
 
9086
# creating and moving files from /tmp can sometimes cause problems.
 
9087
# Create a temporary directory, and hook for its removal unless debugging.
 
9088
$debug ||
 
9089
{
 
9090
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
 
9091
  trap '{ (exit 1); exit 1; }' 1 2 13 15
 
9092
}
 
9093
 
 
9094
# Create a (secure) tmp directory for tmp files.
 
9095
 
 
9096
{
 
9097
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
 
9098
  test -n "$tmp" && test -d "$tmp"
 
9099
}  ||
 
9100
{
 
9101
  tmp=./confstat$$-$RANDOM
 
9102
  (umask 077 && mkdir $tmp)
 
9103
} ||
 
9104
{
 
9105
   echo "$me: cannot create a temporary directory in ." >&2
 
9106
   { (exit 1); exit 1; }
 
9107
}
 
9108
 
 
9109
_ACEOF
 
9110
 
 
9111
cat >>$CONFIG_STATUS <<_ACEOF
 
9112
 
 
9113
#
 
9114
# CONFIG_FILES section.
 
9115
#
 
9116
 
 
9117
# No need to generate the scripts if there are no CONFIG_FILES.
 
9118
# This happens for instance when ./config.status config.h
 
9119
if test -n "\$CONFIG_FILES"; then
 
9120
  # Protect against being on the right side of a sed subst in config.status.
 
9121
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
 
9122
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
 
9123
s,@SHELL@,$SHELL,;t t
 
9124
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
 
9125
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
 
9126
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
 
9127
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
 
9128
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
 
9129
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
 
9130
s,@exec_prefix@,$exec_prefix,;t t
 
9131
s,@prefix@,$prefix,;t t
 
9132
s,@program_transform_name@,$program_transform_name,;t t
 
9133
s,@bindir@,$bindir,;t t
 
9134
s,@sbindir@,$sbindir,;t t
 
9135
s,@libexecdir@,$libexecdir,;t t
 
9136
s,@datadir@,$datadir,;t t
 
9137
s,@sysconfdir@,$sysconfdir,;t t
 
9138
s,@sharedstatedir@,$sharedstatedir,;t t
 
9139
s,@localstatedir@,$localstatedir,;t t
 
9140
s,@libdir@,$libdir,;t t
 
9141
s,@includedir@,$includedir,;t t
 
9142
s,@oldincludedir@,$oldincludedir,;t t
 
9143
s,@infodir@,$infodir,;t t
 
9144
s,@mandir@,$mandir,;t t
 
9145
s,@build_alias@,$build_alias,;t t
 
9146
s,@host_alias@,$host_alias,;t t
 
9147
s,@target_alias@,$target_alias,;t t
 
9148
s,@DEFS@,$DEFS,;t t
 
9149
s,@ECHO_C@,$ECHO_C,;t t
 
9150
s,@ECHO_N@,$ECHO_N,;t t
 
9151
s,@ECHO_T@,$ECHO_T,;t t
 
9152
s,@LIBS@,$LIBS,;t t
 
9153
s,@PACKAGE@,$PACKAGE,;t t
 
9154
s,@build@,$build,;t t
 
9155
s,@build_cpu@,$build_cpu,;t t
 
9156
s,@build_vendor@,$build_vendor,;t t
 
9157
s,@build_os@,$build_os,;t t
 
9158
s,@host@,$host,;t t
 
9159
s,@host_cpu@,$host_cpu,;t t
 
9160
s,@host_vendor@,$host_vendor,;t t
 
9161
s,@host_os@,$host_os,;t t
 
9162
s,@target@,$target,;t t
 
9163
s,@target_cpu@,$target_cpu,;t t
 
9164
s,@target_vendor@,$target_vendor,;t t
 
9165
s,@target_os@,$target_os,;t t
 
9166
s,@CC@,$CC,;t t
 
9167
s,@CFLAGS@,$CFLAGS,;t t
 
9168
s,@LDFLAGS@,$LDFLAGS,;t t
 
9169
s,@CPPFLAGS@,$CPPFLAGS,;t t
 
9170
s,@ac_ct_CC@,$ac_ct_CC,;t t
 
9171
s,@EXEEXT@,$EXEEXT,;t t
 
9172
s,@OBJEXT@,$OBJEXT,;t t
 
9173
s,@CXX@,$CXX,;t t
 
9174
s,@CXXFLAGS@,$CXXFLAGS,;t t
 
9175
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
 
9176
s,@CPP@,$CPP,;t t
 
9177
s,@RANLIB@,$RANLIB,;t t
 
9178
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
 
9179
s,@AR@,$AR,;t t
 
9180
s,@ac_ct_AR@,$ac_ct_AR,;t t
 
9181
s,@SOCKETLIBS@,$SOCKETLIBS,;t t
 
9182
s,@PTHREADLIB@,$PTHREADLIB,;t t
 
9183
s,@EGREP@,$EGREP,;t t
 
9184
s,@BDBLIB@,$BDBLIB,;t t
 
9185
s,@HAVE_STATVFS@,$HAVE_STATVFS,;t t
 
9186
s,@HAVE_TIMEGM@,$HAVE_TIMEGM,;t t
 
9187
s,@HAVE_C9X@,$HAVE_C9X,;t t
 
9188
s,@NEED_SOCKLEN_T_DEFINE@,$NEED_SOCKLEN_T_DEFINE,;t t
 
9189
s,@DEBIANDOC_HTML@,$DEBIANDOC_HTML,;t t
 
9190
s,@DEBIANDOC_TEXT@,$DEBIANDOC_TEXT,;t t
 
9191
s,@DOCBOOK2MAN@,$DOCBOOK2MAN,;t t
 
9192
s,@XMLTO@,$XMLTO,;t t
 
9193
s,@GETCONF@,$GETCONF,;t t
 
9194
s,@NUM_CPUS@,$NUM_CPUS,;t t
 
9195
s,@PROC_MULTIPLY@,$PROC_MULTIPLY,;t t
 
9196
s,@NUM_PROCS@,$NUM_PROCS,;t t
 
9197
s,@GLIBC_VER@,$GLIBC_VER,;t t
 
9198
s,@LIBSTDCPP_VER@,$LIBSTDCPP_VER,;t t
 
9199
s,@GCC3DEP@,$GCC3DEP,;t t
 
9200
s,@SET_MAKE@,$SET_MAKE,;t t
 
9201
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
 
9202
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
 
9203
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
 
9204
s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
 
9205
s,@USE_NLS@,$USE_NLS,;t t
 
9206
s,@MSGFMT@,$MSGFMT,;t t
 
9207
s,@GMSGFMT@,$GMSGFMT,;t t
 
9208
s,@XGETTEXT@,$XGETTEXT,;t t
 
9209
s,@MSGMERGE@,$MSGMERGE,;t t
 
9210
s,@LIBICONV@,$LIBICONV,;t t
 
9211
s,@LTLIBICONV@,$LTLIBICONV,;t t
 
9212
s,@INTLLIBS@,$INTLLIBS,;t t
 
9213
s,@LIBINTL@,$LIBINTL,;t t
 
9214
s,@LTLIBINTL@,$LTLIBINTL,;t t
 
9215
s,@POSUB@,$POSUB,;t t
 
9216
s,@BASH@,$BASH,;t t
 
9217
s,@LIBOBJS@,$LIBOBJS,;t t
 
9218
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
 
9219
CEOF
 
9220
 
 
9221
_ACEOF
 
9222
 
 
9223
  cat >>$CONFIG_STATUS <<\_ACEOF
 
9224
  # Split the substitutions into bite-sized pieces for seds with
 
9225
  # small command number limits, like on Digital OSF/1 and HP-UX.
 
9226
  ac_max_sed_lines=48
 
9227
  ac_sed_frag=1 # Number of current file.
 
9228
  ac_beg=1 # First line for current file.
 
9229
  ac_end=$ac_max_sed_lines # Line after last line for current file.
 
9230
  ac_more_lines=:
 
9231
  ac_sed_cmds=
 
9232
  while $ac_more_lines; do
 
9233
    if test $ac_beg -gt 1; then
 
9234
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
9235
    else
 
9236
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
9237
    fi
 
9238
    if test ! -s $tmp/subs.frag; then
 
9239
      ac_more_lines=false
 
9240
    else
 
9241
      # The purpose of the label and of the branching condition is to
 
9242
      # speed up the sed processing (if there are no `@' at all, there
 
9243
      # is no need to browse any of the substitutions).
 
9244
      # These are the two extra sed commands mentioned above.
 
9245
      (echo ':t
 
9246
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
 
9247
      if test -z "$ac_sed_cmds"; then
 
9248
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
 
9249
      else
 
9250
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
 
9251
      fi
 
9252
      ac_sed_frag=`expr $ac_sed_frag + 1`
 
9253
      ac_beg=$ac_end
 
9254
      ac_end=`expr $ac_end + $ac_max_sed_lines`
 
9255
    fi
 
9256
  done
 
9257
  if test -z "$ac_sed_cmds"; then
 
9258
    ac_sed_cmds=cat
 
9259
  fi
 
9260
fi # test -n "$CONFIG_FILES"
 
9261
 
 
9262
_ACEOF
 
9263
cat >>$CONFIG_STATUS <<\_ACEOF
 
9264
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
 
9265
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
9266
  case $ac_file in
 
9267
  - | *:- | *:-:* ) # input from stdin
 
9268
        cat >$tmp/stdin
 
9269
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
9270
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
9271
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
9272
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
9273
  * )   ac_file_in=$ac_file.in ;;
 
9274
  esac
 
9275
 
 
9276
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
 
9277
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
9278
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
9279
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
9280
         X"$ac_file" : 'X\(//\)$' \| \
 
9281
         X"$ac_file" : 'X\(/\)' \| \
 
9282
         .     : '\(.\)' 2>/dev/null ||
 
9283
echo X"$ac_file" |
 
9284
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
9285
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
9286
          /^X\(\/\/\)$/{ s//\1/; q; }
 
9287
          /^X\(\/\).*/{ s//\1/; q; }
 
9288
          s/.*/./; q'`
 
9289
  { if $as_mkdir_p; then
 
9290
    mkdir -p "$ac_dir"
 
9291
  else
 
9292
    as_dir="$ac_dir"
 
9293
    as_dirs=
 
9294
    while test ! -d "$as_dir"; do
 
9295
      as_dirs="$as_dir $as_dirs"
 
9296
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
9297
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
9298
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
9299
         X"$as_dir" : 'X\(//\)$' \| \
 
9300
         X"$as_dir" : 'X\(/\)' \| \
 
9301
         .     : '\(.\)' 2>/dev/null ||
 
9302
echo X"$as_dir" |
 
9303
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
9304
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
9305
          /^X\(\/\/\)$/{ s//\1/; q; }
 
9306
          /^X\(\/\).*/{ s//\1/; q; }
 
9307
          s/.*/./; q'`
 
9308
    done
 
9309
    test ! -n "$as_dirs" || mkdir $as_dirs
 
9310
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
9311
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
9312
   { (exit 1); exit 1; }; }; }
 
9313
 
 
9314
  ac_builddir=.
 
9315
 
 
9316
if test "$ac_dir" != .; then
 
9317
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
9318
  # A "../" for each directory in $ac_dir_suffix.
 
9319
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
9320
else
 
9321
  ac_dir_suffix= ac_top_builddir=
 
9322
fi
 
9323
 
 
9324
case $srcdir in
 
9325
  .)  # No --srcdir option.  We are building in place.
 
9326
    ac_srcdir=.
 
9327
    if test -z "$ac_top_builddir"; then
 
9328
       ac_top_srcdir=.
 
9329
    else
 
9330
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
9331
    fi ;;
 
9332
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
9333
    ac_srcdir=$srcdir$ac_dir_suffix;
 
9334
    ac_top_srcdir=$srcdir ;;
 
9335
  *) # Relative path.
 
9336
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
9337
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
9338
esac
 
9339
 
 
9340
# Do not use `cd foo && pwd` to compute absolute paths, because
 
9341
# the directories may not exist.
 
9342
case `pwd` in
 
9343
.) ac_abs_builddir="$ac_dir";;
 
9344
*)
 
9345
  case "$ac_dir" in
 
9346
  .) ac_abs_builddir=`pwd`;;
 
9347
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
9348
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
9349
  esac;;
 
9350
esac
 
9351
case $ac_abs_builddir in
 
9352
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
9353
*)
 
9354
  case ${ac_top_builddir}. in
 
9355
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
9356
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
9357
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
9358
  esac;;
 
9359
esac
 
9360
case $ac_abs_builddir in
 
9361
.) ac_abs_srcdir=$ac_srcdir;;
 
9362
*)
 
9363
  case $ac_srcdir in
 
9364
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
9365
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
9366
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
9367
  esac;;
 
9368
esac
 
9369
case $ac_abs_builddir in
 
9370
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
9371
*)
 
9372
  case $ac_top_srcdir in
 
9373
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
9374
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
9375
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
9376
  esac;;
 
9377
esac
 
9378
 
 
9379
 
 
9380
  case $INSTALL in
 
9381
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 
9382
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
 
9383
  esac
 
9384
 
 
9385
  # Let's still pretend it is `configure' which instantiates (i.e., don't
 
9386
  # use $as_me), people would be surprised to read:
 
9387
  #    /* config.h.  Generated by config.status.  */
 
9388
  if test x"$ac_file" = x-; then
 
9389
    configure_input=
 
9390
  else
 
9391
    configure_input="$ac_file.  "
 
9392
  fi
 
9393
  configure_input=$configure_input"Generated from `echo $ac_file_in |
 
9394
                                     sed 's,.*/,,'` by configure."
 
9395
 
 
9396
  # First look for the input files in the build tree, otherwise in the
 
9397
  # src tree.
 
9398
  ac_file_inputs=`IFS=:
 
9399
    for f in $ac_file_in; do
 
9400
      case $f in
 
9401
      -) echo $tmp/stdin ;;
 
9402
      [\\/$]*)
 
9403
         # Absolute (can't be DOS-style, as IFS=:)
 
9404
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
9405
echo "$as_me: error: cannot find input file: $f" >&2;}
 
9406
   { (exit 1); exit 1; }; }
 
9407
         echo "$f";;
 
9408
      *) # Relative
 
9409
         if test -f "$f"; then
 
9410
           # Build tree
 
9411
           echo "$f"
 
9412
         elif test -f "$srcdir/$f"; then
 
9413
           # Source tree
 
9414
           echo "$srcdir/$f"
 
9415
         else
 
9416
           # /dev/null tree
 
9417
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
9418
echo "$as_me: error: cannot find input file: $f" >&2;}
 
9419
   { (exit 1); exit 1; }; }
 
9420
         fi;;
 
9421
      esac
 
9422
    done` || { (exit 1); exit 1; }
 
9423
 
 
9424
  if test x"$ac_file" != x-; then
 
9425
    { echo "$as_me:$LINENO: creating $ac_file" >&5
 
9426
echo "$as_me: creating $ac_file" >&6;}
 
9427
    rm -f "$ac_file"
 
9428
  fi
 
9429
_ACEOF
 
9430
cat >>$CONFIG_STATUS <<_ACEOF
 
9431
  sed "$ac_vpsub
2405
9432
$extrasub
2406
 
s%@SHELL@%$SHELL%g
2407
 
s%@CFLAGS@%$CFLAGS%g
2408
 
s%@CPPFLAGS@%$CPPFLAGS%g
2409
 
s%@CXXFLAGS@%$CXXFLAGS%g
2410
 
s%@FFLAGS@%$FFLAGS%g
2411
 
s%@DEFS@%$DEFS%g
2412
 
s%@LDFLAGS@%$LDFLAGS%g
2413
 
s%@LIBS@%$LIBS%g
2414
 
s%@exec_prefix@%$exec_prefix%g
2415
 
s%@prefix@%$prefix%g
2416
 
s%@program_transform_name@%$program_transform_name%g
2417
 
s%@bindir@%$bindir%g
2418
 
s%@sbindir@%$sbindir%g
2419
 
s%@libexecdir@%$libexecdir%g
2420
 
s%@datadir@%$datadir%g
2421
 
s%@sysconfdir@%$sysconfdir%g
2422
 
s%@sharedstatedir@%$sharedstatedir%g
2423
 
s%@localstatedir@%$localstatedir%g
2424
 
s%@libdir@%$libdir%g
2425
 
s%@includedir@%$includedir%g
2426
 
s%@oldincludedir@%$oldincludedir%g
2427
 
s%@infodir@%$infodir%g
2428
 
s%@mandir@%$mandir%g
2429
 
s%@host@%$host%g
2430
 
s%@host_alias@%$host_alias%g
2431
 
s%@host_cpu@%$host_cpu%g
2432
 
s%@host_vendor@%$host_vendor%g
2433
 
s%@host_os@%$host_os%g
2434
 
s%@target@%$target%g
2435
 
s%@target_alias@%$target_alias%g
2436
 
s%@target_cpu@%$target_cpu%g
2437
 
s%@target_vendor@%$target_vendor%g
2438
 
s%@target_os@%$target_os%g
2439
 
s%@build@%$build%g
2440
 
s%@build_alias@%$build_alias%g
2441
 
s%@build_cpu@%$build_cpu%g
2442
 
s%@build_vendor@%$build_vendor%g
2443
 
s%@build_os@%$build_os%g
2444
 
s%@CC@%$CC%g
2445
 
s%@CXX@%$CXX%g
2446
 
s%@CPP@%$CPP%g
2447
 
s%@RANLIB@%$RANLIB%g
2448
 
s%@AR@%$AR%g
2449
 
s%@SOCKETLIBS@%$SOCKETLIBS%g
2450
 
s%@PTHREADLIB@%$PTHREADLIB%g
2451
 
s%@DB2LIB@%$DB2LIB%g
2452
 
s%@HAVE_STATVFS@%$HAVE_STATVFS%g
2453
 
s%@HAVE_C9X@%$HAVE_C9X%g
2454
 
s%@NEED_SOCKLEN_T_DEFINE@%$NEED_SOCKLEN_T_DEFINE%g
2455
 
s%@DEBIANDOC_HTML@%$DEBIANDOC_HTML%g
2456
 
s%@DEBIANDOC_TEXT@%$DEBIANDOC_TEXT%g
2457
 
s%@NSGMLS@%$NSGMLS%g
2458
 
s%@SGMLSPL@%$SGMLSPL%g
2459
 
s%@GETCONF@%$GETCONF%g
2460
 
s%@NUM_CPUS@%$NUM_CPUS%g
2461
 
s%@PROC_MULTIPLY@%$PROC_MULTIPLY%g
2462
 
s%@NUM_PROCS@%$NUM_PROCS%g
2463
 
s%@GLIBC_VER@%$GLIBC_VER%g
2464
 
s%@LIBSTDCPP_VER@%$LIBSTDCPP_VER%g
2465
 
s%@GCC3DEP@%$GCC3DEP%g
2466
 
 
2467
 
CEOF
2468
 
EOF
2469
 
 
2470
 
cat >> $CONFIG_STATUS <<\EOF
2471
 
 
2472
 
# Split the substitutions into bite-sized pieces for seds with
2473
 
# small command number limits, like on Digital OSF/1 and HP-UX.
2474
 
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2475
 
ac_file=1 # Number of current file.
2476
 
ac_beg=1 # First line for current file.
2477
 
ac_end=$ac_max_sed_cmds # Line after last line for current file.
2478
 
ac_more_lines=:
2479
 
ac_sed_cmds=""
2480
 
while $ac_more_lines; do
2481
 
  if test $ac_beg -gt 1; then
2482
 
    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2483
 
  else
2484
 
    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2485
 
  fi
2486
 
  if test ! -s conftest.s$ac_file; then
2487
 
    ac_more_lines=false
2488
 
    rm -f conftest.s$ac_file
2489
 
  else
2490
 
    if test -z "$ac_sed_cmds"; then
2491
 
      ac_sed_cmds="sed -f conftest.s$ac_file"
2492
 
    else
2493
 
      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2494
 
    fi
2495
 
    ac_file=`expr $ac_file + 1`
2496
 
    ac_beg=$ac_end
2497
 
    ac_end=`expr $ac_end + $ac_max_sed_cmds`
2498
 
  fi
 
9433
_ACEOF
 
9434
cat >>$CONFIG_STATUS <<\_ACEOF
 
9435
:t
 
9436
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
9437
s,@configure_input@,$configure_input,;t t
 
9438
s,@srcdir@,$ac_srcdir,;t t
 
9439
s,@abs_srcdir@,$ac_abs_srcdir,;t t
 
9440
s,@top_srcdir@,$ac_top_srcdir,;t t
 
9441
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
 
9442
s,@builddir@,$ac_builddir,;t t
 
9443
s,@abs_builddir@,$ac_abs_builddir,;t t
 
9444
s,@top_builddir@,$ac_top_builddir,;t t
 
9445
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
 
9446
s,@INSTALL@,$ac_INSTALL,;t t
 
9447
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
 
9448
  rm -f $tmp/stdin
 
9449
  if test x"$ac_file" != x-; then
 
9450
    mv $tmp/out $ac_file
 
9451
  else
 
9452
    cat $tmp/out
 
9453
    rm -f $tmp/out
 
9454
  fi
 
9455
 
2499
9456
done
2500
 
if test -z "$ac_sed_cmds"; then
2501
 
  ac_sed_cmds=cat
2502
 
fi
2503
 
EOF
2504
 
 
2505
 
cat >> $CONFIG_STATUS <<EOF
2506
 
 
2507
 
CONFIG_FILES=\${CONFIG_FILES-"environment.mak:buildlib/environment.mak.in makefile:buildlib/makefile.in"}
2508
 
EOF
2509
 
cat >> $CONFIG_STATUS <<\EOF
2510
 
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2511
 
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2512
 
  case "$ac_file" in
2513
 
  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2514
 
       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2515
 
  *) ac_file_in="${ac_file}.in" ;;
2516
 
  esac
2517
 
 
2518
 
  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2519
 
 
2520
 
  # Remove last slash and all that follows it.  Not all systems have dirname.
2521
 
  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2522
 
  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2523
 
    # The file is in a subdirectory.
2524
 
    test ! -d "$ac_dir" && mkdir "$ac_dir"
2525
 
    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2526
 
    # A "../" for each directory in $ac_dir_suffix.
2527
 
    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2528
 
  else
2529
 
    ac_dir_suffix= ac_dots=
2530
 
  fi
2531
 
 
2532
 
  case "$ac_given_srcdir" in
2533
 
  .)  srcdir=.
2534
 
      if test -z "$ac_dots"; then top_srcdir=.
2535
 
      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2536
 
  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2537
 
  *) # Relative path.
2538
 
    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2539
 
    top_srcdir="$ac_dots$ac_given_srcdir" ;;
2540
 
  esac
2541
 
 
2542
 
 
2543
 
  echo creating "$ac_file"
2544
 
  rm -f "$ac_file"
2545
 
  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2546
 
  case "$ac_file" in
2547
 
  *Makefile*) ac_comsub="1i\\
2548
 
# $configure_input" ;;
2549
 
  *) ac_comsub= ;;
2550
 
  esac
2551
 
 
2552
 
  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2553
 
  sed -e "$ac_comsub
2554
 
s%@configure_input@%$configure_input%g
2555
 
s%@srcdir@%$srcdir%g
2556
 
s%@top_srcdir@%$top_srcdir%g
2557
 
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2558
 
fi; done
2559
 
rm -f conftest.s*
 
9457
_ACEOF
 
9458
cat >>$CONFIG_STATUS <<\_ACEOF
 
9459
 
 
9460
#
 
9461
# CONFIG_HEADER section.
 
9462
#
2560
9463
 
2561
9464
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2562
9465
# NAME is the cpp macro being defined and VALUE is the value it is being given.
2563
9466
#
2564
9467
# ac_d sets the value in "#define NAME VALUE" lines.
2565
 
ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
2566
 
ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
2567
 
ac_dC='\3'
2568
 
ac_dD='%g'
2569
 
# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2570
 
ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
2571
 
ac_uB='\([      ]\)%\1#\2define\3'
 
9468
ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
 
9469
ac_dB='[         ].*$,\1#\2'
 
9470
ac_dC=' '
 
9471
ac_dD=',;t'
 
9472
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
 
9473
ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
 
9474
ac_uB='$,\1#\2define\3'
2572
9475
ac_uC=' '
2573
 
ac_uD='\4%g'
2574
 
# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2575
 
ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
2576
 
ac_eB='$%\1#\2define\3'
2577
 
ac_eC=' '
2578
 
ac_eD='%g'
 
9476
ac_uD=',;t'
2579
9477
 
2580
 
if test "${CONFIG_HEADERS+set}" != set; then
2581
 
EOF
2582
 
cat >> $CONFIG_STATUS <<EOF
2583
 
  CONFIG_HEADERS="include/config.h:buildlib/config.h.in include/apti18n.h:buildlib/apti18n.h.in"
2584
 
EOF
2585
 
cat >> $CONFIG_STATUS <<\EOF
2586
 
fi
2587
 
for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
 
9478
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
2588
9479
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2589
 
  case "$ac_file" in
2590
 
  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2591
 
       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2592
 
  *) ac_file_in="${ac_file}.in" ;;
 
9480
  case $ac_file in
 
9481
  - | *:- | *:-:* ) # input from stdin
 
9482
        cat >$tmp/stdin
 
9483
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
9484
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
9485
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
9486
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
9487
  * )   ac_file_in=$ac_file.in ;;
2593
9488
  esac
2594
9489
 
2595
 
  echo creating $ac_file
2596
 
 
2597
 
  rm -f conftest.frag conftest.in conftest.out
2598
 
  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2599
 
  cat $ac_file_inputs > conftest.in
2600
 
 
2601
 
EOF
2602
 
 
2603
 
# Transform confdefs.h into a sed script conftest.vals that substitutes
2604
 
# the proper values into config.h.in to produce config.h.  And first:
2605
 
# Protect against being on the right side of a sed subst in config.status.
2606
 
# Protect against being in an unquoted here document in config.status.
2607
 
rm -f conftest.vals
2608
 
cat > conftest.hdr <<\EOF
2609
 
s/[\\&%]/\\&/g
2610
 
s%[\\$`]%\\&%g
2611
 
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2612
 
s%ac_d%ac_u%gp
2613
 
s%ac_u%ac_e%gp
2614
 
EOF
2615
 
sed -n -f conftest.hdr confdefs.h > conftest.vals
2616
 
rm -f conftest.hdr
 
9490
  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
 
9491
echo "$as_me: creating $ac_file" >&6;}
 
9492
 
 
9493
  # First look for the input files in the build tree, otherwise in the
 
9494
  # src tree.
 
9495
  ac_file_inputs=`IFS=:
 
9496
    for f in $ac_file_in; do
 
9497
      case $f in
 
9498
      -) echo $tmp/stdin ;;
 
9499
      [\\/$]*)
 
9500
         # Absolute (can't be DOS-style, as IFS=:)
 
9501
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
9502
echo "$as_me: error: cannot find input file: $f" >&2;}
 
9503
   { (exit 1); exit 1; }; }
 
9504
         # Do quote $f, to prevent DOS paths from being IFS'd.
 
9505
         echo "$f";;
 
9506
      *) # Relative
 
9507
         if test -f "$f"; then
 
9508
           # Build tree
 
9509
           echo "$f"
 
9510
         elif test -f "$srcdir/$f"; then
 
9511
           # Source tree
 
9512
           echo "$srcdir/$f"
 
9513
         else
 
9514
           # /dev/null tree
 
9515
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
9516
echo "$as_me: error: cannot find input file: $f" >&2;}
 
9517
   { (exit 1); exit 1; }; }
 
9518
         fi;;
 
9519
      esac
 
9520
    done` || { (exit 1); exit 1; }
 
9521
  # Remove the trailing spaces.
 
9522
  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
 
9523
 
 
9524
_ACEOF
 
9525
 
 
9526
# Transform confdefs.h into two sed scripts, `conftest.defines' and
 
9527
# `conftest.undefs', that substitutes the proper values into
 
9528
# config.h.in to produce config.h.  The first handles `#define'
 
9529
# templates, and the second `#undef' templates.
 
9530
# And first: Protect against being on the right side of a sed subst in
 
9531
# config.status.  Protect against being in an unquoted here document
 
9532
# in config.status.
 
9533
rm -f conftest.defines conftest.undefs
 
9534
# Using a here document instead of a string reduces the quoting nightmare.
 
9535
# Putting comments in sed scripts is not portable.
 
9536
#
 
9537
# `end' is used to avoid that the second main sed command (meant for
 
9538
# 0-ary CPP macros) applies to n-ary macro definitions.
 
9539
# See the Autoconf documentation for `clear'.
 
9540
cat >confdef2sed.sed <<\_ACEOF
 
9541
s/[\\&,]/\\&/g
 
9542
s,[\\$`],\\&,g
 
9543
t clear
 
9544
: clear
 
9545
s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
 
9546
t end
 
9547
s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
 
9548
: end
 
9549
_ACEOF
 
9550
# If some macros were called several times there might be several times
 
9551
# the same #defines, which is useless.  Nevertheless, we may not want to
 
9552
# sort them, since we want the *last* AC-DEFINE to be honored.
 
9553
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
 
9554
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
 
9555
rm -f confdef2sed.sed
2617
9556
 
2618
9557
# This sed command replaces #undef with comments.  This is necessary, for
2619
9558
# example, in the case of _POSIX_SOURCE, which is predefined and required
2620
9559
# on some systems where configure will not decide to define it.
2621
 
cat >> conftest.vals <<\EOF
2622
 
s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2623
 
EOF
2624
 
 
2625
 
# Break up conftest.vals because some shells have a limit on
2626
 
# the size of here documents, and old seds have small limits too.
2627
 
 
2628
 
rm -f conftest.tail
2629
 
while :
2630
 
do
2631
 
  ac_lines=`grep -c . conftest.vals`
2632
 
  # grep -c gives empty output for an empty file on some AIX systems.
2633
 
  if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2634
 
  # Write a limited-size here document to conftest.frag.
2635
 
  echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2636
 
  sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2637
 
  echo 'CEOF
2638
 
  sed -f conftest.frag conftest.in > conftest.out
2639
 
  rm -f conftest.in
2640
 
  mv conftest.out conftest.in
2641
 
' >> $CONFIG_STATUS
2642
 
  sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2643
 
  rm -f conftest.vals
2644
 
  mv conftest.tail conftest.vals
2645
 
done
2646
 
rm -f conftest.vals
2647
 
 
2648
 
cat >> $CONFIG_STATUS <<\EOF
2649
 
  rm -f conftest.frag conftest.h
2650
 
  echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
2651
 
  cat conftest.in >> conftest.h
2652
 
  rm -f conftest.in
2653
 
  if cmp -s $ac_file conftest.h 2>/dev/null; then
2654
 
    echo "$ac_file is unchanged"
2655
 
    rm -f conftest.h
2656
 
  else
2657
 
    # Remove last slash and all that follows it.  Not all systems have dirname.
2658
 
      ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2659
 
      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2660
 
      # The file is in a subdirectory.
2661
 
      test ! -d "$ac_dir" && mkdir "$ac_dir"
 
9560
cat >>conftest.undefs <<\_ACEOF
 
9561
s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
 
9562
_ACEOF
 
9563
 
 
9564
# Break up conftest.defines because some shells have a limit on the size
 
9565
# of here documents, and old seds have small limits too (100 cmds).
 
9566
echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
 
9567
echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
 
9568
echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
 
9569
echo '  :' >>$CONFIG_STATUS
 
9570
rm -f conftest.tail
 
9571
while grep . conftest.defines >/dev/null
 
9572
do
 
9573
  # Write a limited-size here document to $tmp/defines.sed.
 
9574
  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
 
9575
  # Speed up: don't consider the non `#define' lines.
 
9576
  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
 
9577
  # Work around the forget-to-reset-the-flag bug.
 
9578
  echo 't clr' >>$CONFIG_STATUS
 
9579
  echo ': clr' >>$CONFIG_STATUS
 
9580
  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
 
9581
  echo 'CEOF
 
9582
  sed -f $tmp/defines.sed $tmp/in >$tmp/out
 
9583
  rm -f $tmp/in
 
9584
  mv $tmp/out $tmp/in
 
9585
' >>$CONFIG_STATUS
 
9586
  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
 
9587
  rm -f conftest.defines
 
9588
  mv conftest.tail conftest.defines
 
9589
done
 
9590
rm -f conftest.defines
 
9591
echo '  fi # grep' >>$CONFIG_STATUS
 
9592
echo >>$CONFIG_STATUS
 
9593
 
 
9594
# Break up conftest.undefs because some shells have a limit on the size
 
9595
# of here documents, and old seds have small limits too (100 cmds).
 
9596
echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
 
9597
rm -f conftest.tail
 
9598
while grep . conftest.undefs >/dev/null
 
9599
do
 
9600
  # Write a limited-size here document to $tmp/undefs.sed.
 
9601
  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
 
9602
  # Speed up: don't consider the non `#undef'
 
9603
  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
 
9604
  # Work around the forget-to-reset-the-flag bug.
 
9605
  echo 't clr' >>$CONFIG_STATUS
 
9606
  echo ': clr' >>$CONFIG_STATUS
 
9607
  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
 
9608
  echo 'CEOF
 
9609
  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
 
9610
  rm -f $tmp/in
 
9611
  mv $tmp/out $tmp/in
 
9612
' >>$CONFIG_STATUS
 
9613
  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
 
9614
  rm -f conftest.undefs
 
9615
  mv conftest.tail conftest.undefs
 
9616
done
 
9617
rm -f conftest.undefs
 
9618
 
 
9619
cat >>$CONFIG_STATUS <<\_ACEOF
 
9620
  # Let's still pretend it is `configure' which instantiates (i.e., don't
 
9621
  # use $as_me), people would be surprised to read:
 
9622
  #    /* config.h.  Generated by config.status.  */
 
9623
  if test x"$ac_file" = x-; then
 
9624
    echo "/* Generated by configure.  */" >$tmp/config.h
 
9625
  else
 
9626
    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
 
9627
  fi
 
9628
  cat $tmp/in >>$tmp/config.h
 
9629
  rm -f $tmp/in
 
9630
  if test x"$ac_file" != x-; then
 
9631
    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
 
9632
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
 
9633
echo "$as_me: $ac_file is unchanged" >&6;}
 
9634
    else
 
9635
      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
9636
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
9637
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
9638
         X"$ac_file" : 'X\(//\)$' \| \
 
9639
         X"$ac_file" : 'X\(/\)' \| \
 
9640
         .     : '\(.\)' 2>/dev/null ||
 
9641
echo X"$ac_file" |
 
9642
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
9643
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
9644
          /^X\(\/\/\)$/{ s//\1/; q; }
 
9645
          /^X\(\/\).*/{ s//\1/; q; }
 
9646
          s/.*/./; q'`
 
9647
      { if $as_mkdir_p; then
 
9648
    mkdir -p "$ac_dir"
 
9649
  else
 
9650
    as_dir="$ac_dir"
 
9651
    as_dirs=
 
9652
    while test ! -d "$as_dir"; do
 
9653
      as_dirs="$as_dir $as_dirs"
 
9654
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
9655
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
9656
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
9657
         X"$as_dir" : 'X\(//\)$' \| \
 
9658
         X"$as_dir" : 'X\(/\)' \| \
 
9659
         .     : '\(.\)' 2>/dev/null ||
 
9660
echo X"$as_dir" |
 
9661
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
9662
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
9663
          /^X\(\/\/\)$/{ s//\1/; q; }
 
9664
          /^X\(\/\).*/{ s//\1/; q; }
 
9665
          s/.*/./; q'`
 
9666
    done
 
9667
    test ! -n "$as_dirs" || mkdir $as_dirs
 
9668
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
9669
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
9670
   { (exit 1); exit 1; }; }; }
 
9671
 
 
9672
      rm -f $ac_file
 
9673
      mv $tmp/config.h $ac_file
2662
9674
    fi
2663
 
    rm -f $ac_file
2664
 
    mv conftest.h $ac_file
 
9675
  else
 
9676
    cat $tmp/config.h
 
9677
    rm -f $tmp/config.h
2665
9678
  fi
2666
 
fi; done
2667
 
 
2668
 
EOF
2669
 
cat >> $CONFIG_STATUS <<EOF
2670
 
 
2671
 
EOF
2672
 
cat >> $CONFIG_STATUS <<\EOF
2673
 
make -s dirs
2674
 
exit 0
2675
 
EOF
 
9679
done
 
9680
_ACEOF
 
9681
cat >>$CONFIG_STATUS <<\_ACEOF
 
9682
 
 
9683
#
 
9684
# CONFIG_COMMANDS section.
 
9685
#
 
9686
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
 
9687
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
 
9688
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
9689
  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
 
9690
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
9691
         X"$ac_dest" : 'X\(//\)[^/]' \| \
 
9692
         X"$ac_dest" : 'X\(//\)$' \| \
 
9693
         X"$ac_dest" : 'X\(/\)' \| \
 
9694
         .     : '\(.\)' 2>/dev/null ||
 
9695
echo X"$ac_dest" |
 
9696
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
9697
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
9698
          /^X\(\/\/\)$/{ s//\1/; q; }
 
9699
          /^X\(\/\).*/{ s//\1/; q; }
 
9700
          s/.*/./; q'`
 
9701
  { if $as_mkdir_p; then
 
9702
    mkdir -p "$ac_dir"
 
9703
  else
 
9704
    as_dir="$ac_dir"
 
9705
    as_dirs=
 
9706
    while test ! -d "$as_dir"; do
 
9707
      as_dirs="$as_dir $as_dirs"
 
9708
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
9709
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
9710
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
9711
         X"$as_dir" : 'X\(//\)$' \| \
 
9712
         X"$as_dir" : 'X\(/\)' \| \
 
9713
         .     : '\(.\)' 2>/dev/null ||
 
9714
echo X"$as_dir" |
 
9715
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
9716
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
9717
          /^X\(\/\/\)$/{ s//\1/; q; }
 
9718
          /^X\(\/\).*/{ s//\1/; q; }
 
9719
          s/.*/./; q'`
 
9720
    done
 
9721
    test ! -n "$as_dirs" || mkdir $as_dirs
 
9722
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
9723
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
9724
   { (exit 1); exit 1; }; }; }
 
9725
 
 
9726
  ac_builddir=.
 
9727
 
 
9728
if test "$ac_dir" != .; then
 
9729
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
9730
  # A "../" for each directory in $ac_dir_suffix.
 
9731
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
9732
else
 
9733
  ac_dir_suffix= ac_top_builddir=
 
9734
fi
 
9735
 
 
9736
case $srcdir in
 
9737
  .)  # No --srcdir option.  We are building in place.
 
9738
    ac_srcdir=.
 
9739
    if test -z "$ac_top_builddir"; then
 
9740
       ac_top_srcdir=.
 
9741
    else
 
9742
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
9743
    fi ;;
 
9744
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
9745
    ac_srcdir=$srcdir$ac_dir_suffix;
 
9746
    ac_top_srcdir=$srcdir ;;
 
9747
  *) # Relative path.
 
9748
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
9749
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
9750
esac
 
9751
 
 
9752
# Do not use `cd foo && pwd` to compute absolute paths, because
 
9753
# the directories may not exist.
 
9754
case `pwd` in
 
9755
.) ac_abs_builddir="$ac_dir";;
 
9756
*)
 
9757
  case "$ac_dir" in
 
9758
  .) ac_abs_builddir=`pwd`;;
 
9759
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
9760
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
9761
  esac;;
 
9762
esac
 
9763
case $ac_abs_builddir in
 
9764
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
9765
*)
 
9766
  case ${ac_top_builddir}. in
 
9767
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
9768
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
9769
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
9770
  esac;;
 
9771
esac
 
9772
case $ac_abs_builddir in
 
9773
.) ac_abs_srcdir=$ac_srcdir;;
 
9774
*)
 
9775
  case $ac_srcdir in
 
9776
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
9777
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
9778
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
9779
  esac;;
 
9780
esac
 
9781
case $ac_abs_builddir in
 
9782
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
9783
*)
 
9784
  case $ac_top_srcdir in
 
9785
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
9786
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
9787
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
9788
  esac;;
 
9789
esac
 
9790
 
 
9791
 
 
9792
  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
 
9793
echo "$as_me: executing $ac_dest commands" >&6;}
 
9794
  case $ac_dest in
 
9795
    default-1 )
 
9796
    for ac_file in $CONFIG_FILES; do
 
9797
      # Support "outfile[:infile[:infile...]]"
 
9798
      case "$ac_file" in
 
9799
        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
 
9800
      esac
 
9801
      # PO directories have a Makefile.in generated from Makefile.in.in.
 
9802
      case "$ac_file" in */Makefile.in)
 
9803
        # Adjust a relative srcdir.
 
9804
        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
 
9805
        ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
 
9806
        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
 
9807
        # In autoconf-2.13 it is called $ac_given_srcdir.
 
9808
        # In autoconf-2.50 it is called $srcdir.
 
9809
        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
 
9810
        case "$ac_given_srcdir" in
 
9811
          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
 
9812
          /*) top_srcdir="$ac_given_srcdir" ;;
 
9813
          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
 
9814
        esac
 
9815
        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
 
9816
          rm -f "$ac_dir/POTFILES"
 
9817
          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
 
9818
          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
 
9819
          POMAKEFILEDEPS="POTFILES.in"
 
9820
          # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
 
9821
          # on $ac_dir but don't depend on user-specified configuration
 
9822
          # parameters.
 
9823
          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
 
9824
            # The LINGUAS file contains the set of available languages.
 
9825
            if test -n "$OBSOLETE_ALL_LINGUAS"; then
 
9826
              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
 
9827
            fi
 
9828
            ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
 
9829
            # Hide the ALL_LINGUAS assigment from automake.
 
9830
            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
 
9831
            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
 
9832
          else
 
9833
            # The set of available languages was given in configure.in.
 
9834
            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
 
9835
          fi
 
9836
          # Compute POFILES
 
9837
          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
 
9838
          # Compute UPDATEPOFILES
 
9839
          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
 
9840
          # Compute DUMMYPOFILES
 
9841
          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
 
9842
          # Compute GMOFILES
 
9843
          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
 
9844
          case "$ac_given_srcdir" in
 
9845
            .) srcdirpre= ;;
 
9846
            *) srcdirpre='$(srcdir)/' ;;
 
9847
          esac
 
9848
          POFILES=
 
9849
          UPDATEPOFILES=
 
9850
          DUMMYPOFILES=
 
9851
          GMOFILES=
 
9852
          for lang in $ALL_LINGUAS; do
 
9853
            POFILES="$POFILES $srcdirpre$lang.po"
 
9854
            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
 
9855
            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
 
9856
            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
 
9857
          done
 
9858
          # CATALOGS depends on both $ac_dir and the user's LINGUAS
 
9859
          # environment variable.
 
9860
          INST_LINGUAS=
 
9861
          if test -n "$ALL_LINGUAS"; then
 
9862
            for presentlang in $ALL_LINGUAS; do
 
9863
              useit=no
 
9864
              if test "%UNSET%" != "$LINGUAS"; then
 
9865
                desiredlanguages="$LINGUAS"
 
9866
              else
 
9867
                desiredlanguages="$ALL_LINGUAS"
 
9868
              fi
 
9869
              for desiredlang in $desiredlanguages; do
 
9870
                # Use the presentlang catalog if desiredlang is
 
9871
                #   a. equal to presentlang, or
 
9872
                #   b. a variant of presentlang (because in this case,
 
9873
                #      presentlang can be used as a fallback for messages
 
9874
                #      which are not translated in the desiredlang catalog).
 
9875
                case "$desiredlang" in
 
9876
                  "$presentlang"*) useit=yes;;
 
9877
                esac
 
9878
              done
 
9879
              if test $useit = yes; then
 
9880
                INST_LINGUAS="$INST_LINGUAS $presentlang"
 
9881
              fi
 
9882
            done
 
9883
          fi
 
9884
          CATALOGS=
 
9885
          if test -n "$INST_LINGUAS"; then
 
9886
            for lang in $INST_LINGUAS; do
 
9887
              CATALOGS="$CATALOGS $lang.gmo"
 
9888
            done
 
9889
          fi
 
9890
          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
 
9891
          sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
 
9892
          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
 
9893
            if test -f "$f"; then
 
9894
              case "$f" in
 
9895
                *.orig | *.bak | *~) ;;
 
9896
                *) cat "$f" >> "$ac_dir/Makefile" ;;
 
9897
              esac
 
9898
            fi
 
9899
          done
 
9900
        fi
 
9901
        ;;
 
9902
      esac
 
9903
    done ;;
 
9904
    default ) make -s dirs ;;
 
9905
  esac
 
9906
done
 
9907
_ACEOF
 
9908
 
 
9909
cat >>$CONFIG_STATUS <<\_ACEOF
 
9910
 
 
9911
{ (exit 0); exit 0; }
 
9912
_ACEOF
2676
9913
chmod +x $CONFIG_STATUS
2677
 
rm -fr confdefs* $ac_clean_files
2678
 
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
 
9914
ac_clean_files=$ac_clean_files_save
 
9915
 
 
9916
 
 
9917
# configure is writing to config.log, and then calls config.status.
 
9918
# config.status does its own redirection, appending to config.log.
 
9919
# Unfortunately, on DOS this fails, as config.log is still kept open
 
9920
# by configure, so config.status won't be able to write to it; its
 
9921
# output is simply discarded.  So we exec the FD to /dev/null,
 
9922
# effectively closing config.log, so it can be properly (re)opened and
 
9923
# appended to by config.status.  When coming back to configure, we
 
9924
# need to make the FD available again.
 
9925
if test "$no_create" != yes; then
 
9926
  ac_cs_success=:
 
9927
  ac_config_status_args=
 
9928
  test "$silent" = yes &&
 
9929
    ac_config_status_args="$ac_config_status_args --quiet"
 
9930
  exec 5>/dev/null
 
9931
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 
9932
  exec 5>>config.log
 
9933
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
9934
  # would make configure fail if this is the last instruction.
 
9935
  $ac_cs_success || { (exit 1); exit 1; }
 
9936
fi
2679
9937