~ubuntu-branches/ubuntu/saucy/nut/saucy

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Arnaud Quette
  • Date: 2004-05-28 13:10:01 UTC
  • mto: (16.1.1 squeeze)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20040528131001-yj2m9qcez4ya2w14
Tags: upstream-1.4.2
ImportĀ upstreamĀ versionĀ 1.4.2

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.57.
6
4
#
 
5
# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
 
6
# Free Software Foundation, Inc.
7
7
# This configure script is free software; the Free Software Foundation
8
8
# gives unlimited permission to copy, distribute and modify it.
9
 
 
10
 
# Defaults:
11
 
ac_help=
 
9
## --------------------- ##
 
10
## M4sh Initialization.  ##
 
11
## --------------------- ##
 
12
 
 
13
# Be Bourne compatible
 
14
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
15
  emulate sh
 
16
  NULLCMD=:
 
17
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
18
  # is contrary to our usage.  Disable this feature.
 
19
  alias -g '${1+"$@"}'='"$@"'
 
20
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
 
21
  set -o posix
 
22
fi
 
23
 
 
24
# Support unset when possible.
 
25
if (FOO=FOO; unset FOO) >/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 -n "`(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
  as_mkdir_p=false
 
222
fi
 
223
 
 
224
as_executable_p="test -f"
 
225
 
 
226
# Sed expression to map a string onto a valid CPP name.
 
227
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
 
228
 
 
229
# Sed expression to map a string onto a valid variable name.
 
230
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
 
231
 
 
232
 
 
233
# IFS
 
234
# We need space, tab and new line, in precisely that order.
 
235
as_nl='
 
236
'
 
237
IFS="   $as_nl"
 
238
 
 
239
# CDPATH.
 
240
$as_unset CDPATH
 
241
 
 
242
 
 
243
# Name of the host.
 
244
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
 
245
# so uname gets run too.
 
246
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 
247
 
 
248
exec 6>&1
 
249
 
 
250
#
 
251
# Initializations.
 
252
#
12
253
ac_default_prefix=/usr/local
13
 
# Any additions from configure.in:
14
 
ac_help="$ac_help
15
 
 --with-linux-hiddev=PATH       Path to Linux hiddev.h kernel headers"
16
 
ac_help="$ac_help
17
 
 --with-statepath=PATH          Path for ups state files"
18
 
ac_help="$ac_help
19
 
 --with-altpidpath=PATH         Path for driver/upsd .pid files"
20
 
ac_help="$ac_help
21
 
 --with-modelpath=PATH          Path for ups model progs"
22
 
ac_help="$ac_help
23
 
 --with-cgipath=PATH            Path for ups cgi client progs"
24
 
ac_help="$ac_help
25
 
 --with-pidpath=PATH            Path for pid files"
26
 
ac_help="$ac_help
27
 
 --with-port=PORT               Port for network communciations"
28
 
ac_help="$ac_help
29
 
 --with-user=username           User for programs started as root"
30
 
ac_help="$ac_help
31
 
 --with-group=groupname         Group for programs started as root"
32
 
ac_help="$ac_help
33
 
 --with-logfacility=FACILITY    Facility for log messages"
34
 
ac_help="$ac_help
35
 
 --without-shared-memory        Disable shared memory mode"
36
 
ac_help="$ac_help
37
 
 --with-drivers=<driver>[,<driver>,...] Only build/install certain drivers"
 
254
ac_config_libobj_dir=.
 
255
cross_compiling=no
 
256
subdirs=
 
257
MFLAGS=
 
258
MAKEFLAGS=
 
259
SHELL=${CONFIG_SHELL-/bin/sh}
 
260
 
 
261
# Maximum number of lines to put in a shell here document.
 
262
# This variable seems obsolete.  It should probably be removed, and
 
263
# only ac_max_sed_lines should be used.
 
264
: ${ac_max_here_lines=38}
 
265
 
 
266
# Identity of this package.
 
267
PACKAGE_NAME=
 
268
PACKAGE_TARNAME=
 
269
PACKAGE_VERSION=
 
270
PACKAGE_STRING=
 
271
PACKAGE_BUGREPORT=
 
272
 
 
273
ac_unique_file="server/upsd.c"
 
274
ac_default_prefix=/usr/local/ups
 
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 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 CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA EGREP AR RANLIB ac_ct_RANLIB MISC_UPSCLI_OBJ MISC_UPSCLI_LIBOBJ SSL_CFLAGS SSL_LDFLAGS CGI_BUILD_TARGET GD_INCLUDES GD_LIBS NETSNMP_CFLAGS NETSNMP_LIBS LIBUSB_CFLAGS LIBUSB_LIBS DRIVER_BUILD_LIST DRIVER_INSTALL_TARGET STRLCPY LIBOBJ BUILDOBJ NETLIBS SERLIBS STATEPATH DRVPATH CGIPATH RUN_AS_USER LINUX_HIDDEV WORDS_BIGENDIAN LIBOBJS LTLIBOBJS'
 
313
ac_subst_files=''
38
314
 
39
315
# Initialize some variables set by options.
 
316
ac_init_help=
 
317
ac_init_version=false
40
318
# The variables have the same names as the options, with
41
319
# dashes changed to underlines.
42
 
build=NONE
43
 
cache_file=./config.cache
 
320
cache_file=/dev/null
44
321
exec_prefix=NONE
45
 
host=NONE
46
322
no_create=
47
 
nonopt=NONE
48
323
no_recursion=
49
324
prefix=NONE
50
325
program_prefix=NONE
53
328
silent=
54
329
site=
55
330
srcdir=
56
 
target=NONE
57
331
verbose=
58
332
x_includes=NONE
59
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.
60
340
bindir='${exec_prefix}/bin'
61
341
sbindir='${exec_prefix}/sbin'
62
342
libexecdir='${exec_prefix}/libexec'
70
350
infodir='${prefix}/info'
71
351
mandir='${prefix}/man'
72
352
 
73
 
# Initialize some other variables.
74
 
subdirs=
75
 
MFLAGS= MAKEFLAGS=
76
 
SHELL=${CONFIG_SHELL-/bin/sh}
77
 
# Maximum number of lines to put in a shell here document.
78
 
ac_max_here_lines=12
79
 
 
80
353
ac_prev=
81
354
for ac_option
82
355
do
83
 
 
84
356
  # If the previous option needs an argument, assign it.
85
357
  if test -n "$ac_prev"; then
86
358
    eval "$ac_prev=\$ac_option"
88
360
    continue
89
361
  fi
90
362
 
91
 
  case "$ac_option" in
92
 
  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
93
 
  *) ac_optarg= ;;
94
 
  esac
 
363
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
95
364
 
96
365
  # Accept the important Cygnus configure options, so we can diagnose typos.
97
366
 
98
 
  case "$ac_option" in
 
367
  case $ac_option in
99
368
 
100
369
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
101
370
    ac_prev=bindir ;;
102
371
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
103
 
    bindir="$ac_optarg" ;;
 
372
    bindir=$ac_optarg ;;
104
373
 
105
374
  -build | --build | --buil | --bui | --bu)
106
 
    ac_prev=build ;;
 
375
    ac_prev=build_alias ;;
107
376
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
108
 
    build="$ac_optarg" ;;
 
377
    build_alias=$ac_optarg ;;
109
378
 
110
379
  -cache-file | --cache-file | --cache-fil | --cache-fi \
111
380
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
112
381
    ac_prev=cache_file ;;
113
382
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
114
383
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
115
 
    cache_file="$ac_optarg" ;;
 
384
    cache_file=$ac_optarg ;;
 
385
 
 
386
  --config-cache | -C)
 
387
    cache_file=config.cache ;;
116
388
 
117
389
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
118
390
    ac_prev=datadir ;;
119
391
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
120
392
  | --da=*)
121
 
    datadir="$ac_optarg" ;;
 
393
    datadir=$ac_optarg ;;
122
394
 
123
395
  -disable-* | --disable-*)
124
 
    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
 
396
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
125
397
    # Reject names that are not valid shell variable names.
126
 
    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
127
 
      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
128
 
    fi
129
 
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
130
 
    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" ;;
131
403
 
132
404
  -enable-* | --enable-*)
133
 
    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
 
405
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
134
406
    # Reject names that are not valid shell variable names.
135
 
    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
136
 
      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
137
 
    fi
138
 
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
139
 
    case "$ac_option" in
140
 
      *=*) ;;
 
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"`;;
141
413
      *) ac_optarg=yes ;;
142
414
    esac
143
 
    eval "enable_${ac_feature}='$ac_optarg'" ;;
 
415
    eval "enable_$ac_feature='$ac_optarg'" ;;
144
416
 
145
417
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
146
418
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
149
421
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
150
422
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
151
423
  | --exec=* | --exe=* | --ex=*)
152
 
    exec_prefix="$ac_optarg" ;;
 
424
    exec_prefix=$ac_optarg ;;
153
425
 
154
426
  -gas | --gas | --ga | --g)
155
427
    # Obsolete; use --with-gas.
156
428
    with_gas=yes ;;
157
429
 
158
 
  -help | --help | --hel | --he)
159
 
    # Omit some internal or obsolete options to make the list less imposing.
160
 
    # This message is too long to be a string in the A/UX 3.1 sh.
161
 
    cat << EOF
162
 
Usage: configure [options] [host]
163
 
Options: [defaults in brackets after descriptions]
164
 
Configuration:
165
 
  --cache-file=FILE       cache test results in FILE
166
 
  --help                  print this message
167
 
  --no-create             do not create output files
168
 
  --quiet, --silent       do not print \`checking...' messages
169
 
  --version               print the version of autoconf that created configure
170
 
Directory and file names:
171
 
  --prefix=PREFIX         install architecture-independent files in PREFIX
172
 
                          [$ac_default_prefix]
173
 
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
174
 
                          [same as prefix]
175
 
  --bindir=DIR            user executables in DIR [EPREFIX/bin]
176
 
  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
177
 
  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
178
 
  --datadir=DIR           read-only architecture-independent data in DIR
179
 
                          [PREFIX/share]
180
 
  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
181
 
  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
182
 
                          [PREFIX/com]
183
 
  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
184
 
  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
185
 
  --includedir=DIR        C header files in DIR [PREFIX/include]
186
 
  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
187
 
  --infodir=DIR           info documentation in DIR [PREFIX/info]
188
 
  --mandir=DIR            man documentation in DIR [PREFIX/man]
189
 
  --srcdir=DIR            find the sources in DIR [configure dir or ..]
190
 
  --program-prefix=PREFIX prepend PREFIX to installed program names
191
 
  --program-suffix=SUFFIX append SUFFIX to installed program names
192
 
  --program-transform-name=PROGRAM
193
 
                          run sed PROGRAM on installed program names
194
 
EOF
195
 
    cat << EOF
196
 
Host type:
197
 
  --build=BUILD           configure for building on BUILD [BUILD=HOST]
198
 
  --host=HOST             configure for HOST [guessed]
199
 
  --target=TARGET         configure for TARGET [TARGET=HOST]
200
 
Features and packages:
201
 
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
202
 
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
203
 
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
204
 
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
205
 
  --x-includes=DIR        X include files are in DIR
206
 
  --x-libraries=DIR       X library files are in DIR
207
 
EOF
208
 
    if test -n "$ac_help"; then
209
 
      echo "--enable and --with options recognized:$ac_help"
210
 
    fi
211
 
    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 ;;
212
436
 
213
437
  -host | --host | --hos | --ho)
214
 
    ac_prev=host ;;
 
438
    ac_prev=host_alias ;;
215
439
  -host=* | --host=* | --hos=* | --ho=*)
216
 
    host="$ac_optarg" ;;
 
440
    host_alias=$ac_optarg ;;
217
441
 
218
442
  -includedir | --includedir | --includedi | --included | --include \
219
443
  | --includ | --inclu | --incl | --inc)
220
444
    ac_prev=includedir ;;
221
445
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
222
446
  | --includ=* | --inclu=* | --incl=* | --inc=*)
223
 
    includedir="$ac_optarg" ;;
 
447
    includedir=$ac_optarg ;;
224
448
 
225
449
  -infodir | --infodir | --infodi | --infod | --info | --inf)
226
450
    ac_prev=infodir ;;
227
451
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
228
 
    infodir="$ac_optarg" ;;
 
452
    infodir=$ac_optarg ;;
229
453
 
230
454
  -libdir | --libdir | --libdi | --libd)
231
455
    ac_prev=libdir ;;
232
456
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
233
 
    libdir="$ac_optarg" ;;
 
457
    libdir=$ac_optarg ;;
234
458
 
235
459
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
236
460
  | --libexe | --libex | --libe)
237
461
    ac_prev=libexecdir ;;
238
462
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
239
463
  | --libexe=* | --libex=* | --libe=*)
240
 
    libexecdir="$ac_optarg" ;;
 
464
    libexecdir=$ac_optarg ;;
241
465
 
242
466
  -localstatedir | --localstatedir | --localstatedi | --localstated \
243
467
  | --localstate | --localstat | --localsta | --localst \
246
470
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
247
471
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
248
472
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
249
 
    localstatedir="$ac_optarg" ;;
 
473
    localstatedir=$ac_optarg ;;
250
474
 
251
475
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
252
476
    ac_prev=mandir ;;
253
477
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
254
 
    mandir="$ac_optarg" ;;
 
478
    mandir=$ac_optarg ;;
255
479
 
256
480
  -nfp | --nfp | --nf)
257
481
    # Obsolete; use --without-fp.
258
482
    with_fp=no ;;
259
483
 
260
484
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
261
 
  | --no-cr | --no-c)
 
485
  | --no-cr | --no-c | -n)
262
486
    no_create=yes ;;
263
487
 
264
488
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
272
496
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
273
497
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
274
498
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
275
 
    oldincludedir="$ac_optarg" ;;
 
499
    oldincludedir=$ac_optarg ;;
276
500
 
277
501
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
278
502
    ac_prev=prefix ;;
279
503
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
280
 
    prefix="$ac_optarg" ;;
 
504
    prefix=$ac_optarg ;;
281
505
 
282
506
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
283
507
  | --program-pre | --program-pr | --program-p)
284
508
    ac_prev=program_prefix ;;
285
509
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
286
510
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
287
 
    program_prefix="$ac_optarg" ;;
 
511
    program_prefix=$ac_optarg ;;
288
512
 
289
513
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
290
514
  | --program-suf | --program-su | --program-s)
291
515
    ac_prev=program_suffix ;;
292
516
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
293
517
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
294
 
    program_suffix="$ac_optarg" ;;
 
518
    program_suffix=$ac_optarg ;;
295
519
 
296
520
  -program-transform-name | --program-transform-name \
297
521
  | --program-transform-nam | --program-transform-na \
308
532
  | --program-transfo=* | --program-transf=* \
309
533
  | --program-trans=* | --program-tran=* \
310
534
  | --progr-tra=* | --program-tr=* | --program-t=*)
311
 
    program_transform_name="$ac_optarg" ;;
 
535
    program_transform_name=$ac_optarg ;;
312
536
 
313
537
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
314
538
  | -silent | --silent | --silen | --sile | --sil)
318
542
    ac_prev=sbindir ;;
319
543
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
320
544
  | --sbi=* | --sb=*)
321
 
    sbindir="$ac_optarg" ;;
 
545
    sbindir=$ac_optarg ;;
322
546
 
323
547
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
324
548
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
329
553
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
330
554
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
331
555
  | --sha=* | --sh=*)
332
 
    sharedstatedir="$ac_optarg" ;;
 
556
    sharedstatedir=$ac_optarg ;;
333
557
 
334
558
  -site | --site | --sit)
335
559
    ac_prev=site ;;
336
560
  -site=* | --site=* | --sit=*)
337
 
    site="$ac_optarg" ;;
 
561
    site=$ac_optarg ;;
338
562
 
339
563
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
340
564
    ac_prev=srcdir ;;
341
565
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
342
 
    srcdir="$ac_optarg" ;;
 
566
    srcdir=$ac_optarg ;;
343
567
 
344
568
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
345
569
  | --syscon | --sysco | --sysc | --sys | --sy)
346
570
    ac_prev=sysconfdir ;;
347
571
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
348
572
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
349
 
    sysconfdir="$ac_optarg" ;;
 
573
    sysconfdir=$ac_optarg ;;
350
574
 
351
575
  -target | --target | --targe | --targ | --tar | --ta | --t)
352
 
    ac_prev=target ;;
 
576
    ac_prev=target_alias ;;
353
577
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
354
 
    target="$ac_optarg" ;;
 
578
    target_alias=$ac_optarg ;;
355
579
 
356
580
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
357
581
    verbose=yes ;;
358
582
 
359
 
  -version | --version | --versio | --versi | --vers)
360
 
    echo "configure generated by autoconf version 2.13"
361
 
    exit 0 ;;
 
583
  -version | --version | --versio | --versi | --vers | -V)
 
584
    ac_init_version=: ;;
362
585
 
363
586
  -with-* | --with-*)
364
 
    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
 
587
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
365
588
    # Reject names that are not valid shell variable names.
366
 
    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
367
 
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
368
 
    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; }; }
369
592
    ac_package=`echo $ac_package| sed 's/-/_/g'`
370
 
    case "$ac_option" in
371
 
      *=*) ;;
 
593
    case $ac_option in
 
594
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
372
595
      *) ac_optarg=yes ;;
373
596
    esac
374
 
    eval "with_${ac_package}='$ac_optarg'" ;;
 
597
    eval "with_$ac_package='$ac_optarg'" ;;
375
598
 
376
599
  -without-* | --without-*)
377
 
    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
 
600
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
378
601
    # Reject names that are not valid shell variable names.
379
 
    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
380
 
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
381
 
    fi
382
 
    ac_package=`echo $ac_package| sed 's/-/_/g'`
383
 
    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" ;;
384
607
 
385
608
  --x)
386
609
    # Obsolete; use --with-x.
391
614
    ac_prev=x_includes ;;
392
615
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
393
616
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
394
 
    x_includes="$ac_optarg" ;;
 
617
    x_includes=$ac_optarg ;;
395
618
 
396
619
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
397
620
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
398
621
    ac_prev=x_libraries ;;
399
622
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
400
623
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
401
 
    x_libraries="$ac_optarg" ;;
 
624
    x_libraries=$ac_optarg ;;
402
625
 
403
 
  -*) { 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; }; }
404
629
    ;;
405
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
 
406
641
  *)
407
 
    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
408
 
      echo "configure: warning: $ac_option: invalid host type" 1>&2
409
 
    fi
410
 
    if test "x$nonopt" != xNONE; then
411
 
      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
412
 
    fi
413
 
    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}
414
647
    ;;
415
648
 
416
649
  esac
417
650
done
418
651
 
419
652
if test -n "$ac_prev"; then
420
 
  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
421
 
fi
422
 
 
423
 
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
424
 
 
425
 
# File descriptor usage:
426
 
# 0 standard input
427
 
# 1 file creation
428
 
# 2 errors and warnings
429
 
# 3 some systems may open it to /dev/tty
430
 
# 4 used on the Kubota Titan
431
 
# 6 checking for... messages and results
432
 
# 5 compiler messages saved in config.log
433
 
if test "$silent" = yes; then
434
 
  exec 6>/dev/null
435
 
else
436
 
  exec 6>&1
437
 
fi
438
 
exec 5>./config.log
439
 
 
440
 
echo "\
441
 
This file contains any messages produced by compilers while
442
 
running configure, to aid debugging if configure makes a mistake.
443
 
" 1>&5
444
 
 
445
 
# Strip out --no-create and --no-recursion so they do not pile up.
446
 
# Also quote any args containing shell metacharacters.
447
 
ac_configure_args=
448
 
for ac_arg
449
 
do
450
 
  case "$ac_arg" in
451
 
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
452
 
  | --no-cr | --no-c) ;;
453
 
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
454
 
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
455
 
  *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
456
 
  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
457
 
  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
458
 
  esac
459
 
done
460
 
 
461
 
# NLS nuisances.
462
 
# Only set these to C if already set.  These must not be set unconditionally
463
 
# because not all systems understand e.g. LANG=C (notably SCO).
464
 
# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
465
 
# Non-C LC_CTYPE values break the ctype check.
466
 
if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
467
 
if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
468
 
if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
469
 
if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
470
 
 
471
 
# confdefs.h avoids OS command line length limits that DEFS can exceed.
472
 
rm -rf conftest* confdefs.h
473
 
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
474
 
echo > confdefs.h
475
 
 
476
 
# A filename unique to this package, relative to the directory that
477
 
# configure is in, which we can look for to find out if srcdir is correct.
478
 
ac_unique_file=server/upsd.c
 
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
 
479
704
 
480
705
# Find the source files, if location was not specified.
481
706
if test -z "$srcdir"; then
482
707
  ac_srcdir_defaulted=yes
483
708
  # Try the directory containing this script, then its parent.
484
 
  ac_prog=$0
485
 
  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
486
 
  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'`
487
721
  srcdir=$ac_confdir
488
722
  if test ! -r $srcdir/$ac_unique_file; then
489
723
    srcdir=..
493
727
fi
494
728
if test ! -r $srcdir/$ac_unique_file; then
495
729
  if test "$ac_srcdir_defaulted" = yes; then
496
 
    { 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; }; }
497
732
  else
498
 
    { 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; }; }
499
735
  fi
500
736
fi
501
 
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
502
 
 
 
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_CPP_set=${CPP+set}
 
770
ac_env_CPP_value=$CPP
 
771
ac_cv_env_CPP_set=${CPP+set}
 
772
ac_cv_env_CPP_value=$CPP
 
773
 
 
774
#
 
775
# Report the --help message.
 
776
#
 
777
if test "$ac_init_help" = "long"; then
 
778
  # Omit some internal or obsolete options to make the list less imposing.
 
779
  # This message is too long to be a string in the A/UX 3.1 sh.
 
780
  cat <<_ACEOF
 
781
\`configure' configures this package to adapt to many kinds of systems.
 
782
 
 
783
Usage: $0 [OPTION]... [VAR=VALUE]...
 
784
 
 
785
To assign environment variables (e.g., CC, CFLAGS...), specify them as
 
786
VAR=VALUE.  See below for descriptions of some of the useful variables.
 
787
 
 
788
Defaults for the options are specified in brackets.
 
789
 
 
790
Configuration:
 
791
  -h, --help              display this help and exit
 
792
      --help=short        display options specific to this package
 
793
      --help=recursive    display the short help of all the included packages
 
794
  -V, --version           display version information and exit
 
795
  -q, --quiet, --silent   do not print \`checking...' messages
 
796
      --cache-file=FILE   cache test results in FILE [disabled]
 
797
  -C, --config-cache      alias for \`--cache-file=config.cache'
 
798
  -n, --no-create         do not create output files
 
799
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 
800
 
 
801
_ACEOF
 
802
 
 
803
  cat <<_ACEOF
 
804
Installation directories:
 
805
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
806
                          [$ac_default_prefix]
 
807
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
808
                          [PREFIX]
 
809
 
 
810
By default, \`make install' will install all the files in
 
811
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 
812
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 
813
for instance \`--prefix=\$HOME'.
 
814
 
 
815
For better control, use the options below.
 
816
 
 
817
Fine tuning of the installation directories:
 
818
  --bindir=DIR           user executables [EPREFIX/bin]
 
819
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
 
820
  --libexecdir=DIR       program executables [EPREFIX/libexec]
 
821
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
 
822
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
 
823
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
 
824
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
 
825
  --libdir=DIR           object code libraries [EPREFIX/lib]
 
826
  --includedir=DIR       C header files [PREFIX/include]
 
827
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
 
828
  --infodir=DIR          info documentation [PREFIX/info]
 
829
  --mandir=DIR           man documentation [PREFIX/man]
 
830
_ACEOF
 
831
 
 
832
  cat <<\_ACEOF
 
833
 
 
834
System types:
 
835
  --build=BUILD     configure for building on BUILD [guessed]
 
836
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
 
837
  --target=TARGET   configure for building compilers for TARGET [HOST]
 
838
_ACEOF
 
839
fi
 
840
 
 
841
if test -n "$ac_init_help"; then
 
842
 
 
843
  cat <<\_ACEOF
 
844
 
 
845
Optional Features:
 
846
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
847
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
848
  --enable-strip                        Strip debugging symbols from binaries       no
 
849
 
 
850
Optional Packages:
 
851
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
852
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
853
 --with-ssl                     Enable SSL development code         default=no
 
854
 --with-gd-includes             Include flags for the gd library
 
855
 --with-gd-libs                 Linker flags for gd
 
856
 --with-cgi                     Build the CGI programs                      no
 
857
 --with-linux-hiddev=PATH       Linux hiddev.h    /usr/src/linux/include/linux
 
858
 --with-statepath=PATH          Path for ups state files        /var/state/ups
 
859
 --with-altpidpath=PATH         Path for driver/upsd .pid files    (statepath)
 
860
 --with-drvpath=PATH            Path for ups drivers              <prefix>/bin
 
861
 --with-cgipath=PATH            Path for CGI programs         <prefix>/cgi-bin
 
862
 --with-pidpath=PATH            Path for .pid files                   /var/run
 
863
 --with-port=PORT               Port for network communications           3493
 
864
 --with-user=username           User for programs started as root       nobody
 
865
 --with-logfacility=FACILITY    Facility for log messages           LOG_DAEMON
 
866
 --with-drivers=<driver>,<driver>,...   Only use specific drivers        (all)
 
867
 
 
868
Some influential environment variables:
 
869
  CC          C compiler command
 
870
  CFLAGS      C compiler flags
 
871
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
872
              nonstandard directory <lib dir>
 
873
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
 
874
              headers in a nonstandard directory <include dir>
 
875
  CPP         C preprocessor
 
876
 
 
877
Use these variables to override the choices made by `configure' or to help
 
878
it to find libraries and programs with nonstandard names/locations.
 
879
 
 
880
_ACEOF
 
881
fi
 
882
 
 
883
if test "$ac_init_help" = "recursive"; then
 
884
  # If there are subdirs, report their specific --help.
 
885
  ac_popdir=`pwd`
 
886
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
887
    test -d $ac_dir || continue
 
888
    ac_builddir=.
 
889
 
 
890
if test "$ac_dir" != .; then
 
891
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
892
  # A "../" for each directory in $ac_dir_suffix.
 
893
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
894
else
 
895
  ac_dir_suffix= ac_top_builddir=
 
896
fi
 
897
 
 
898
case $srcdir in
 
899
  .)  # No --srcdir option.  We are building in place.
 
900
    ac_srcdir=.
 
901
    if test -z "$ac_top_builddir"; then
 
902
       ac_top_srcdir=.
 
903
    else
 
904
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
905
    fi ;;
 
906
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
907
    ac_srcdir=$srcdir$ac_dir_suffix;
 
908
    ac_top_srcdir=$srcdir ;;
 
909
  *) # Relative path.
 
910
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
911
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
912
esac
 
913
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
 
914
# absolute.
 
915
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
 
916
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
 
917
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
 
918
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
 
919
 
 
920
    cd $ac_dir
 
921
    # Check for guested configure; otherwise get Cygnus style configure.
 
922
    if test -f $ac_srcdir/configure.gnu; then
 
923
      echo
 
924
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
 
925
    elif test -f $ac_srcdir/configure; then
 
926
      echo
 
927
      $SHELL $ac_srcdir/configure  --help=recursive
 
928
    elif test -f $ac_srcdir/configure.ac ||
 
929
           test -f $ac_srcdir/configure.in; then
 
930
      echo
 
931
      $ac_configure --help
 
932
    else
 
933
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
934
    fi
 
935
    cd $ac_popdir
 
936
  done
 
937
fi
 
938
 
 
939
test -n "$ac_init_help" && exit 0
 
940
if $ac_init_version; then
 
941
  cat <<\_ACEOF
 
942
 
 
943
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
 
944
Free Software Foundation, Inc.
 
945
This configure script is free software; the Free Software Foundation
 
946
gives unlimited permission to copy, distribute and modify it.
 
947
_ACEOF
 
948
  exit 0
 
949
fi
 
950
exec 5>config.log
 
951
cat >&5 <<_ACEOF
 
952
This file contains any messages produced by compilers while
 
953
running configure, to aid debugging if configure makes a mistake.
 
954
 
 
955
It was created by $as_me, which was
 
956
generated by GNU Autoconf 2.57.  Invocation command line was
 
957
 
 
958
  $ $0 $@
 
959
 
 
960
_ACEOF
 
961
{
 
962
cat <<_ASUNAME
 
963
## --------- ##
 
964
## Platform. ##
 
965
## --------- ##
 
966
 
 
967
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
968
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
969
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
970
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
971
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
972
 
 
973
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
974
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
975
 
 
976
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
977
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
978
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
979
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
 
980
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
981
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
982
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
983
 
 
984
_ASUNAME
 
985
 
 
986
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
987
for as_dir in $PATH
 
988
do
 
989
  IFS=$as_save_IFS
 
990
  test -z "$as_dir" && as_dir=.
 
991
  echo "PATH: $as_dir"
 
992
done
 
993
 
 
994
} >&5
 
995
 
 
996
cat >&5 <<_ACEOF
 
997
 
 
998
 
 
999
## ----------- ##
 
1000
## Core tests. ##
 
1001
## ----------- ##
 
1002
 
 
1003
_ACEOF
 
1004
 
 
1005
 
 
1006
# Keep a trace of the command line.
 
1007
# Strip out --no-create and --no-recursion so they do not pile up.
 
1008
# Strip out --silent because we don't want to record it for future runs.
 
1009
# Also quote any args containing shell meta-characters.
 
1010
# Make two passes to allow for proper duplicate-argument suppression.
 
1011
ac_configure_args=
 
1012
ac_configure_args0=
 
1013
ac_configure_args1=
 
1014
ac_sep=
 
1015
ac_must_keep_next=false
 
1016
for ac_pass in 1 2
 
1017
do
 
1018
  for ac_arg
 
1019
  do
 
1020
    case $ac_arg in
 
1021
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
1022
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1023
    | -silent | --silent | --silen | --sile | --sil)
 
1024
      continue ;;
 
1025
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1026
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1027
    esac
 
1028
    case $ac_pass in
 
1029
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
 
1030
    2)
 
1031
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
 
1032
      if test $ac_must_keep_next = true; then
 
1033
        ac_must_keep_next=false # Got value, back to normal.
 
1034
      else
 
1035
        case $ac_arg in
 
1036
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
1037
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
1038
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
1039
          | -with-* | --with-* | -without-* | --without-* | --x)
 
1040
            case "$ac_configure_args0 " in
 
1041
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
1042
            esac
 
1043
            ;;
 
1044
          -* ) ac_must_keep_next=true ;;
 
1045
        esac
 
1046
      fi
 
1047
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
 
1048
      # Get rid of the leading space.
 
1049
      ac_sep=" "
 
1050
      ;;
 
1051
    esac
 
1052
  done
 
1053
done
 
1054
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
 
1055
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
 
1056
 
 
1057
# When interrupted or exit'd, cleanup temporary files, and complete
 
1058
# config.log.  We remove comments because anyway the quotes in there
 
1059
# would cause problems or look ugly.
 
1060
# WARNING: Be sure not to use single quotes in there, as some shells,
 
1061
# such as our DU 5.0 friend, will then `close' the trap.
 
1062
trap 'exit_status=$?
 
1063
  # Save into config.log some information that might help in debugging.
 
1064
  {
 
1065
    echo
 
1066
 
 
1067
    cat <<\_ASBOX
 
1068
## ---------------- ##
 
1069
## Cache variables. ##
 
1070
## ---------------- ##
 
1071
_ASBOX
 
1072
    echo
 
1073
    # The following way of writing the cache mishandles newlines in values,
 
1074
{
 
1075
  (set) 2>&1 |
 
1076
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
 
1077
    *ac_space=\ *)
 
1078
      sed -n \
 
1079
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
 
1080
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
 
1081
      ;;
 
1082
    *)
 
1083
      sed -n \
 
1084
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
1085
      ;;
 
1086
    esac;
 
1087
}
 
1088
    echo
 
1089
 
 
1090
    cat <<\_ASBOX
 
1091
## ----------------- ##
 
1092
## Output variables. ##
 
1093
## ----------------- ##
 
1094
_ASBOX
 
1095
    echo
 
1096
    for ac_var in $ac_subst_vars
 
1097
    do
 
1098
      eval ac_val=$`echo $ac_var`
 
1099
      echo "$ac_var='"'"'$ac_val'"'"'"
 
1100
    done | sort
 
1101
    echo
 
1102
 
 
1103
    if test -n "$ac_subst_files"; then
 
1104
      cat <<\_ASBOX
 
1105
## ------------- ##
 
1106
## Output files. ##
 
1107
## ------------- ##
 
1108
_ASBOX
 
1109
      echo
 
1110
      for ac_var in $ac_subst_files
 
1111
      do
 
1112
        eval ac_val=$`echo $ac_var`
 
1113
        echo "$ac_var='"'"'$ac_val'"'"'"
 
1114
      done | sort
 
1115
      echo
 
1116
    fi
 
1117
 
 
1118
    if test -s confdefs.h; then
 
1119
      cat <<\_ASBOX
 
1120
## ----------- ##
 
1121
## confdefs.h. ##
 
1122
## ----------- ##
 
1123
_ASBOX
 
1124
      echo
 
1125
      sed "/^$/d" confdefs.h | sort
 
1126
      echo
 
1127
    fi
 
1128
    test "$ac_signal" != 0 &&
 
1129
      echo "$as_me: caught signal $ac_signal"
 
1130
    echo "$as_me: exit $exit_status"
 
1131
  } >&5
 
1132
  rm -f core core.* *.core &&
 
1133
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
 
1134
    exit $exit_status
 
1135
     ' 0
 
1136
for ac_signal in 1 2 13 15; do
 
1137
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
 
1138
done
 
1139
ac_signal=0
 
1140
 
 
1141
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
1142
rm -rf conftest* confdefs.h
 
1143
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
 
1144
echo >confdefs.h
 
1145
 
 
1146
# Predefined preprocessor variables.
 
1147
 
 
1148
cat >>confdefs.h <<_ACEOF
 
1149
#define PACKAGE_NAME "$PACKAGE_NAME"
 
1150
_ACEOF
 
1151
 
 
1152
 
 
1153
cat >>confdefs.h <<_ACEOF
 
1154
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
1155
_ACEOF
 
1156
 
 
1157
 
 
1158
cat >>confdefs.h <<_ACEOF
 
1159
#define PACKAGE_VERSION "$PACKAGE_VERSION"
 
1160
_ACEOF
 
1161
 
 
1162
 
 
1163
cat >>confdefs.h <<_ACEOF
 
1164
#define PACKAGE_STRING "$PACKAGE_STRING"
 
1165
_ACEOF
 
1166
 
 
1167
 
 
1168
cat >>confdefs.h <<_ACEOF
 
1169
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
1170
_ACEOF
 
1171
 
 
1172
 
 
1173
# Let the site file select an alternate cache file if it wants to.
503
1174
# Prefer explicitly selected file to automatically selected ones.
504
1175
if test -z "$CONFIG_SITE"; then
505
1176
  if test "x$prefix" != xNONE; then
510
1181
fi
511
1182
for ac_site_file in $CONFIG_SITE; do
512
1183
  if test -r "$ac_site_file"; then
513
 
    echo "loading site script $ac_site_file"
 
1184
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
 
1185
echo "$as_me: loading site script $ac_site_file" >&6;}
 
1186
    sed 's/^/| /' "$ac_site_file" >&5
514
1187
    . "$ac_site_file"
515
1188
  fi
516
1189
done
517
1190
 
518
1191
if test -r "$cache_file"; then
519
 
  echo "loading cache $cache_file"
520
 
  . $cache_file
 
1192
  # Some versions of bash will fail to source /dev/null (special
 
1193
  # files actually), so we avoid doing that.
 
1194
  if test -f "$cache_file"; then
 
1195
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
 
1196
echo "$as_me: loading cache $cache_file" >&6;}
 
1197
    case $cache_file in
 
1198
      [\\/]* | ?:[\\/]* ) . $cache_file;;
 
1199
      *)                      . ./$cache_file;;
 
1200
    esac
 
1201
  fi
521
1202
else
522
 
  echo "creating cache $cache_file"
523
 
  > $cache_file
 
1203
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
 
1204
echo "$as_me: creating cache $cache_file" >&6;}
 
1205
  >$cache_file
 
1206
fi
 
1207
 
 
1208
# Check that the precious variables saved in the cache have kept the same
 
1209
# value.
 
1210
ac_cache_corrupted=false
 
1211
for ac_var in `(set) 2>&1 |
 
1212
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
 
1213
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
1214
  eval ac_new_set=\$ac_env_${ac_var}_set
 
1215
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
 
1216
  eval ac_new_val="\$ac_env_${ac_var}_value"
 
1217
  case $ac_old_set,$ac_new_set in
 
1218
    set,)
 
1219
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
1220
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
1221
      ac_cache_corrupted=: ;;
 
1222
    ,set)
 
1223
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
 
1224
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
1225
      ac_cache_corrupted=: ;;
 
1226
    ,);;
 
1227
    *)
 
1228
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
1229
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
 
1230
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
1231
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
 
1232
echo "$as_me:   former value:  $ac_old_val" >&2;}
 
1233
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
 
1234
echo "$as_me:   current value: $ac_new_val" >&2;}
 
1235
        ac_cache_corrupted=:
 
1236
      fi;;
 
1237
  esac
 
1238
  # Pass precious variables to config.status.
 
1239
  if test "$ac_new_set" = set; then
 
1240
    case $ac_new_val in
 
1241
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1242
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1243
    *) ac_arg=$ac_var=$ac_new_val ;;
 
1244
    esac
 
1245
    case " $ac_configure_args " in
 
1246
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
1247
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
 
1248
    esac
 
1249
  fi
 
1250
done
 
1251
if $ac_cache_corrupted; then
 
1252
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
 
1253
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
1254
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
 
1255
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
 
1256
   { (exit 1); exit 1; }; }
524
1257
fi
525
1258
 
526
1259
ac_ext=c
527
 
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
528
1260
ac_cpp='$CPP $CPPFLAGS'
529
 
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
530
 
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
531
 
cross_compiling=$ac_cv_prog_cc_cross
532
 
 
533
 
ac_exeext=
534
 
ac_objext=o
535
 
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
536
 
  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
537
 
  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
538
 
    ac_n= ac_c='
539
 
' ac_t='        '
540
 
  else
541
 
    ac_n=-n ac_c= ac_t=
542
 
  fi
543
 
else
544
 
  ac_n= ac_c='\c' ac_t=
545
 
fi
546
 
 
 
1261
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
1262
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
1263
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
1264
 
 
1265
 
 
1266
 
 
1267
 
 
1268
 
 
1269
 
 
1270
 
 
1271
 
 
1272
 
 
1273
 
 
1274
 
 
1275
 
 
1276
 
 
1277
 
 
1278
 
 
1279
 
 
1280
 
 
1281
 
 
1282
 
 
1283
          ac_config_headers="$ac_config_headers include/config.h"
547
1284
 
548
1285
 
549
1286
 
551
1288
 
552
1289
CFLAGS=${CFLAGS-"-O"}
553
1290
 
 
1291
ac_aux_dir=
 
1292
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
 
1293
  if test -f $ac_dir/install-sh; then
 
1294
    ac_aux_dir=$ac_dir
 
1295
    ac_install_sh="$ac_aux_dir/install-sh -c"
 
1296
    break
 
1297
  elif test -f $ac_dir/install.sh; then
 
1298
    ac_aux_dir=$ac_dir
 
1299
    ac_install_sh="$ac_aux_dir/install.sh -c"
 
1300
    break
 
1301
  elif test -f $ac_dir/shtool; then
 
1302
    ac_aux_dir=$ac_dir
 
1303
    ac_install_sh="$ac_aux_dir/shtool install -c"
 
1304
    break
 
1305
  fi
 
1306
done
 
1307
if test -z "$ac_aux_dir"; then
 
1308
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
 
1309
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
 
1310
   { (exit 1); exit 1; }; }
 
1311
fi
 
1312
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
 
1313
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
 
1314
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
 
1315
 
 
1316
# Make sure we can run config.sub.
 
1317
$ac_config_sub sun4 >/dev/null 2>&1 ||
 
1318
  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
 
1319
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
 
1320
   { (exit 1); exit 1; }; }
 
1321
 
 
1322
echo "$as_me:$LINENO: checking build system type" >&5
 
1323
echo $ECHO_N "checking build system type... $ECHO_C" >&6
 
1324
if test "${ac_cv_build+set}" = set; then
 
1325
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1326
else
 
1327
  ac_cv_build_alias=$build_alias
 
1328
test -z "$ac_cv_build_alias" &&
 
1329
  ac_cv_build_alias=`$ac_config_guess`
 
1330
test -z "$ac_cv_build_alias" &&
 
1331
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
 
1332
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
 
1333
   { (exit 1); exit 1; }; }
 
1334
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
 
1335
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
 
1336
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
 
1337
   { (exit 1); exit 1; }; }
 
1338
 
 
1339
fi
 
1340
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
 
1341
echo "${ECHO_T}$ac_cv_build" >&6
 
1342
build=$ac_cv_build
 
1343
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
1344
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
1345
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
1346
 
 
1347
 
 
1348
echo "$as_me:$LINENO: checking host system type" >&5
 
1349
echo $ECHO_N "checking host system type... $ECHO_C" >&6
 
1350
if test "${ac_cv_host+set}" = set; then
 
1351
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1352
else
 
1353
  ac_cv_host_alias=$host_alias
 
1354
test -z "$ac_cv_host_alias" &&
 
1355
  ac_cv_host_alias=$ac_cv_build_alias
 
1356
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
 
1357
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
 
1358
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
 
1359
   { (exit 1); exit 1; }; }
 
1360
 
 
1361
fi
 
1362
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
 
1363
echo "${ECHO_T}$ac_cv_host" >&6
 
1364
host=$ac_cv_host
 
1365
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
1366
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
1367
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
1368
 
 
1369
 
 
1370
echo "$as_me:$LINENO: checking target system type" >&5
 
1371
echo $ECHO_N "checking target system type... $ECHO_C" >&6
 
1372
if test "${ac_cv_target+set}" = set; then
 
1373
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1374
else
 
1375
  ac_cv_target_alias=$target_alias
 
1376
test "x$ac_cv_target_alias" = "x" &&
 
1377
  ac_cv_target_alias=$ac_cv_host_alias
 
1378
ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
 
1379
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
 
1380
echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
 
1381
   { (exit 1); exit 1; }; }
 
1382
 
 
1383
fi
 
1384
echo "$as_me:$LINENO: result: $ac_cv_target" >&5
 
1385
echo "${ECHO_T}$ac_cv_target" >&6
 
1386
target=$ac_cv_target
 
1387
target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
1388
target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
1389
target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
1390
 
 
1391
 
 
1392
# The aliases save the names the user supplied, while $host etc.
 
1393
# will get canonicalized.
 
1394
test -n "$target_alias" &&
 
1395
  test "$program_prefix$program_suffix$program_transform_name" = \
 
1396
    NONENONEs,x,x, &&
 
1397
  program_prefix=${target_alias}-
 
1398
 
554
1399
 
555
1400
STATEPATH="/var/state/ups"
556
 
MODELPATH="$prefix/bin"
557
 
CGIPATH="$prefix/cgi-bin"
 
1401
 
 
1402
DRVPATH='${prefix}/bin'
 
1403
CGIPATH='${prefix}/cgi-bin'
 
1404
 
558
1405
RUN_AS_USER="nobody"
559
 
RUN_AS_GROUP="nogroup"
560
1406
PIDPATH="/var/run"
561
1407
LIBOBJ=../common/common.o
562
1408
BUILDOBJ=common.o
563
1409
 
564
1410
 
565
 
# Extract the first word of "gcc", so it can be a program name with args.
 
1411
GD_INCLUDES=""
 
1412
GD_LIBS="-L/usr/X11R6/lib -lgd -lpng -lz -ljpeg -lfreetype -lm -lXpm -lX11"
 
1413
 
 
1414
 
 
1415
ac_ext=c
 
1416
ac_cpp='$CPP $CPPFLAGS'
 
1417
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
1418
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
1419
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
1420
if test -n "$ac_tool_prefix"; then
 
1421
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
1422
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
1423
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1424
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1425
if test "${ac_cv_prog_CC+set}" = set; then
 
1426
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1427
else
 
1428
  if test -n "$CC"; then
 
1429
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
1430
else
 
1431
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1432
for as_dir in $PATH
 
1433
do
 
1434
  IFS=$as_save_IFS
 
1435
  test -z "$as_dir" && as_dir=.
 
1436
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1437
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1438
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
1439
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1440
    break 2
 
1441
  fi
 
1442
done
 
1443
done
 
1444
 
 
1445
fi
 
1446
fi
 
1447
CC=$ac_cv_prog_CC
 
1448
if test -n "$CC"; then
 
1449
  echo "$as_me:$LINENO: result: $CC" >&5
 
1450
echo "${ECHO_T}$CC" >&6
 
1451
else
 
1452
  echo "$as_me:$LINENO: result: no" >&5
 
1453
echo "${ECHO_T}no" >&6
 
1454
fi
 
1455
 
 
1456
fi
 
1457
if test -z "$ac_cv_prog_CC"; then
 
1458
  ac_ct_CC=$CC
 
1459
  # Extract the first word of "gcc", so it can be a program name with args.
566
1460
set dummy gcc; ac_word=$2
567
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
568
 
echo "configure:569: checking for $ac_word" >&5
569
 
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
570
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
1461
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1462
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1463
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
1464
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1465
else
 
1466
  if test -n "$ac_ct_CC"; then
 
1467
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
1468
else
 
1469
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1470
for as_dir in $PATH
 
1471
do
 
1472
  IFS=$as_save_IFS
 
1473
  test -z "$as_dir" && as_dir=.
 
1474
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1475
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1476
    ac_cv_prog_ac_ct_CC="gcc"
 
1477
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1478
    break 2
 
1479
  fi
 
1480
done
 
1481
done
 
1482
 
 
1483
fi
 
1484
fi
 
1485
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
1486
if test -n "$ac_ct_CC"; then
 
1487
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
1488
echo "${ECHO_T}$ac_ct_CC" >&6
 
1489
else
 
1490
  echo "$as_me:$LINENO: result: no" >&5
 
1491
echo "${ECHO_T}no" >&6
 
1492
fi
 
1493
 
 
1494
  CC=$ac_ct_CC
 
1495
else
 
1496
  CC="$ac_cv_prog_CC"
 
1497
fi
 
1498
 
 
1499
if test -z "$CC"; then
 
1500
  if test -n "$ac_tool_prefix"; then
 
1501
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
1502
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
1503
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1504
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1505
if test "${ac_cv_prog_CC+set}" = set; then
 
1506
  echo $ECHO_N "(cached) $ECHO_C" >&6
571
1507
else
572
1508
  if test -n "$CC"; then
573
1509
  ac_cv_prog_CC="$CC" # Let the user override the test.
574
1510
else
575
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
576
 
  ac_dummy="$PATH"
577
 
  for ac_dir in $ac_dummy; do
578
 
    test -z "$ac_dir" && ac_dir=.
579
 
    if test -f $ac_dir/$ac_word; then
580
 
      ac_cv_prog_CC="gcc"
581
 
      break
582
 
    fi
583
 
  done
584
 
  IFS="$ac_save_ifs"
585
 
fi
586
 
fi
587
 
CC="$ac_cv_prog_CC"
 
1511
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1512
for as_dir in $PATH
 
1513
do
 
1514
  IFS=$as_save_IFS
 
1515
  test -z "$as_dir" && as_dir=.
 
1516
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1517
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1518
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
1519
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1520
    break 2
 
1521
  fi
 
1522
done
 
1523
done
 
1524
 
 
1525
fi
 
1526
fi
 
1527
CC=$ac_cv_prog_CC
588
1528
if test -n "$CC"; then
589
 
  echo "$ac_t""$CC" 1>&6
590
 
else
591
 
  echo "$ac_t""no" 1>&6
592
 
fi
593
 
 
 
1529
  echo "$as_me:$LINENO: result: $CC" >&5
 
1530
echo "${ECHO_T}$CC" >&6
 
1531
else
 
1532
  echo "$as_me:$LINENO: result: no" >&5
 
1533
echo "${ECHO_T}no" >&6
 
1534
fi
 
1535
 
 
1536
fi
 
1537
if test -z "$ac_cv_prog_CC"; then
 
1538
  ac_ct_CC=$CC
 
1539
  # Extract the first word of "cc", so it can be a program name with args.
 
1540
set dummy cc; ac_word=$2
 
1541
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1542
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1543
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
1544
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1545
else
 
1546
  if test -n "$ac_ct_CC"; then
 
1547
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
1548
else
 
1549
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1550
for as_dir in $PATH
 
1551
do
 
1552
  IFS=$as_save_IFS
 
1553
  test -z "$as_dir" && as_dir=.
 
1554
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1555
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1556
    ac_cv_prog_ac_ct_CC="cc"
 
1557
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1558
    break 2
 
1559
  fi
 
1560
done
 
1561
done
 
1562
 
 
1563
fi
 
1564
fi
 
1565
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
1566
if test -n "$ac_ct_CC"; then
 
1567
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
1568
echo "${ECHO_T}$ac_ct_CC" >&6
 
1569
else
 
1570
  echo "$as_me:$LINENO: result: no" >&5
 
1571
echo "${ECHO_T}no" >&6
 
1572
fi
 
1573
 
 
1574
  CC=$ac_ct_CC
 
1575
else
 
1576
  CC="$ac_cv_prog_CC"
 
1577
fi
 
1578
 
 
1579
fi
594
1580
if test -z "$CC"; then
595
1581
  # Extract the first word of "cc", so it can be a program name with args.
596
1582
set dummy cc; ac_word=$2
597
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
598
 
echo "configure:599: checking for $ac_word" >&5
599
 
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
600
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
1583
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1584
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1585
if test "${ac_cv_prog_CC+set}" = set; then
 
1586
  echo $ECHO_N "(cached) $ECHO_C" >&6
601
1587
else
602
1588
  if test -n "$CC"; then
603
1589
  ac_cv_prog_CC="$CC" # Let the user override the test.
604
1590
else
605
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
606
1591
  ac_prog_rejected=no
607
 
  ac_dummy="$PATH"
608
 
  for ac_dir in $ac_dummy; do
609
 
    test -z "$ac_dir" && ac_dir=.
610
 
    if test -f $ac_dir/$ac_word; then
611
 
      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
612
 
        ac_prog_rejected=yes
613
 
        continue
614
 
      fi
615
 
      ac_cv_prog_CC="cc"
616
 
      break
617
 
    fi
618
 
  done
619
 
  IFS="$ac_save_ifs"
 
1592
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1593
for as_dir in $PATH
 
1594
do
 
1595
  IFS=$as_save_IFS
 
1596
  test -z "$as_dir" && as_dir=.
 
1597
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1598
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1599
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
1600
       ac_prog_rejected=yes
 
1601
       continue
 
1602
     fi
 
1603
    ac_cv_prog_CC="cc"
 
1604
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1605
    break 2
 
1606
  fi
 
1607
done
 
1608
done
 
1609
 
620
1610
if test $ac_prog_rejected = yes; then
621
1611
  # We found a bogon in the path, so make sure we never use it.
622
1612
  set dummy $ac_cv_prog_CC
623
1613
  shift
624
 
  if test $# -gt 0; then
 
1614
  if test $# != 0; then
625
1615
    # We chose a different compiler from the bogus one.
626
1616
    # However, it has the same basename, so the bogon will be chosen
627
1617
    # first if we set CC to just the basename; use the full file name.
628
1618
    shift
629
 
    set dummy "$ac_dir/$ac_word" "$@"
630
 
    shift
631
 
    ac_cv_prog_CC="$@"
 
1619
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
632
1620
  fi
633
1621
fi
634
1622
fi
635
1623
fi
636
 
CC="$ac_cv_prog_CC"
 
1624
CC=$ac_cv_prog_CC
637
1625
if test -n "$CC"; then
638
 
  echo "$ac_t""$CC" 1>&6
 
1626
  echo "$as_me:$LINENO: result: $CC" >&5
 
1627
echo "${ECHO_T}$CC" >&6
639
1628
else
640
 
  echo "$ac_t""no" 1>&6
 
1629
  echo "$as_me:$LINENO: result: no" >&5
 
1630
echo "${ECHO_T}no" >&6
641
1631
fi
642
1632
 
643
 
  if test -z "$CC"; then
644
 
    case "`uname -s`" in
645
 
    *win32* | *WIN32*)
646
 
      # Extract the first word of "cl", so it can be a program name with args.
647
 
set dummy cl; ac_word=$2
648
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
649
 
echo "configure:650: checking for $ac_word" >&5
650
 
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
651
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
1633
fi
 
1634
if test -z "$CC"; then
 
1635
  if test -n "$ac_tool_prefix"; then
 
1636
  for ac_prog in cl
 
1637
  do
 
1638
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
1639
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
1640
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1641
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1642
if test "${ac_cv_prog_CC+set}" = set; then
 
1643
  echo $ECHO_N "(cached) $ECHO_C" >&6
652
1644
else
653
1645
  if test -n "$CC"; then
654
1646
  ac_cv_prog_CC="$CC" # Let the user override the test.
655
1647
else
656
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
657
 
  ac_dummy="$PATH"
658
 
  for ac_dir in $ac_dummy; do
659
 
    test -z "$ac_dir" && ac_dir=.
660
 
    if test -f $ac_dir/$ac_word; then
661
 
      ac_cv_prog_CC="cl"
662
 
      break
663
 
    fi
 
1648
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1649
for as_dir in $PATH
 
1650
do
 
1651
  IFS=$as_save_IFS
 
1652
  test -z "$as_dir" && as_dir=.
 
1653
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1654
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1655
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
1656
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1657
    break 2
 
1658
  fi
 
1659
done
 
1660
done
 
1661
 
 
1662
fi
 
1663
fi
 
1664
CC=$ac_cv_prog_CC
 
1665
if test -n "$CC"; then
 
1666
  echo "$as_me:$LINENO: result: $CC" >&5
 
1667
echo "${ECHO_T}$CC" >&6
 
1668
else
 
1669
  echo "$as_me:$LINENO: result: no" >&5
 
1670
echo "${ECHO_T}no" >&6
 
1671
fi
 
1672
 
 
1673
    test -n "$CC" && break
664
1674
  done
665
 
  IFS="$ac_save_ifs"
666
 
fi
667
 
fi
668
 
CC="$ac_cv_prog_CC"
669
 
if test -n "$CC"; then
670
 
  echo "$ac_t""$CC" 1>&6
671
 
else
672
 
  echo "$ac_t""no" 1>&6
673
 
fi
674
 
 ;;
675
 
    esac
 
1675
fi
 
1676
if test -z "$CC"; then
 
1677
  ac_ct_CC=$CC
 
1678
  for ac_prog in cl
 
1679
do
 
1680
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
1681
set dummy $ac_prog; ac_word=$2
 
1682
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1683
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1684
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
1685
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1686
else
 
1687
  if test -n "$ac_ct_CC"; then
 
1688
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
1689
else
 
1690
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1691
for as_dir in $PATH
 
1692
do
 
1693
  IFS=$as_save_IFS
 
1694
  test -z "$as_dir" && as_dir=.
 
1695
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1696
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1697
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
1698
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1699
    break 2
676
1700
  fi
677
 
  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
678
 
fi
679
 
 
680
 
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
681
 
echo "configure:682: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
682
 
 
683
 
ac_ext=c
684
 
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
685
 
ac_cpp='$CPP $CPPFLAGS'
686
 
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
687
 
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
688
 
cross_compiling=$ac_cv_prog_cc_cross
689
 
 
690
 
cat > conftest.$ac_ext << EOF
691
 
 
692
 
#line 693 "configure"
693
 
#include "confdefs.h"
694
 
 
695
 
main(){return(0);}
696
 
EOF
697
 
if { (eval echo configure:698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698
 
  ac_cv_prog_cc_works=yes
699
 
  # If we can't run a trivial program, we are probably using a cross compiler.
700
 
  if (./conftest; exit) 2>/dev/null; then
701
 
    ac_cv_prog_cc_cross=no
 
1701
done
 
1702
done
 
1703
 
 
1704
fi
 
1705
fi
 
1706
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
1707
if test -n "$ac_ct_CC"; then
 
1708
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
1709
echo "${ECHO_T}$ac_ct_CC" >&6
 
1710
else
 
1711
  echo "$as_me:$LINENO: result: no" >&5
 
1712
echo "${ECHO_T}no" >&6
 
1713
fi
 
1714
 
 
1715
  test -n "$ac_ct_CC" && break
 
1716
done
 
1717
 
 
1718
  CC=$ac_ct_CC
 
1719
fi
 
1720
 
 
1721
fi
 
1722
 
 
1723
 
 
1724
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
 
1725
See \`config.log' for more details." >&5
 
1726
echo "$as_me: error: no acceptable C compiler found in \$PATH
 
1727
See \`config.log' for more details." >&2;}
 
1728
   { (exit 1); exit 1; }; }
 
1729
 
 
1730
# Provide some information about the compiler.
 
1731
echo "$as_me:$LINENO:" \
 
1732
     "checking for C compiler version" >&5
 
1733
ac_compiler=`set X $ac_compile; echo $2`
 
1734
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
1735
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
1736
  ac_status=$?
 
1737
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
1738
  (exit $ac_status); }
 
1739
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
1740
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
1741
  ac_status=$?
 
1742
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
1743
  (exit $ac_status); }
 
1744
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
1745
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
1746
  ac_status=$?
 
1747
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
1748
  (exit $ac_status); }
 
1749
 
 
1750
cat >conftest.$ac_ext <<_ACEOF
 
1751
#line $LINENO "configure"
 
1752
/* confdefs.h.  */
 
1753
_ACEOF
 
1754
cat confdefs.h >>conftest.$ac_ext
 
1755
cat >>conftest.$ac_ext <<_ACEOF
 
1756
/* end confdefs.h.  */
 
1757
 
 
1758
int
 
1759
main ()
 
1760
{
 
1761
 
 
1762
  ;
 
1763
  return 0;
 
1764
}
 
1765
_ACEOF
 
1766
ac_clean_files_save=$ac_clean_files
 
1767
ac_clean_files="$ac_clean_files a.out a.exe b.out"
 
1768
# Try to create an executable without -o first, disregard a.out.
 
1769
# It will help us diagnose broken compilers, and finding out an intuition
 
1770
# of exeext.
 
1771
echo "$as_me:$LINENO: checking for C compiler default output" >&5
 
1772
echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
 
1773
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
1774
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
 
1775
  (eval $ac_link_default) 2>&5
 
1776
  ac_status=$?
 
1777
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
1778
  (exit $ac_status); }; then
 
1779
  # Find the output, starting from the most likely.  This scheme is
 
1780
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
 
1781
# resort.
 
1782
 
 
1783
# Be careful to initialize this variable, since it used to be cached.
 
1784
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
 
1785
ac_cv_exeext=
 
1786
# b.out is created by i960 compilers.
 
1787
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
 
1788
do
 
1789
  test -f "$ac_file" || continue
 
1790
  case $ac_file in
 
1791
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
 
1792
        ;;
 
1793
    conftest.$ac_ext )
 
1794
        # This is the source file.
 
1795
        ;;
 
1796
    [ab].out )
 
1797
        # We found the default executable, but exeext='' is most
 
1798
        # certainly right.
 
1799
        break;;
 
1800
    *.* )
 
1801
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
1802
        # FIXME: I believe we export ac_cv_exeext for Libtool,
 
1803
        # but it would be cool to find out if it's true.  Does anybody
 
1804
        # maintain Libtool? --akim.
 
1805
        export ac_cv_exeext
 
1806
        break;;
 
1807
    * )
 
1808
        break;;
 
1809
  esac
 
1810
done
 
1811
else
 
1812
  echo "$as_me: failed program was:" >&5
 
1813
sed 's/^/| /' conftest.$ac_ext >&5
 
1814
 
 
1815
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
 
1816
See \`config.log' for more details." >&5
 
1817
echo "$as_me: error: C compiler cannot create executables
 
1818
See \`config.log' for more details." >&2;}
 
1819
   { (exit 77); exit 77; }; }
 
1820
fi
 
1821
 
 
1822
ac_exeext=$ac_cv_exeext
 
1823
echo "$as_me:$LINENO: result: $ac_file" >&5
 
1824
echo "${ECHO_T}$ac_file" >&6
 
1825
 
 
1826
# Check the compiler produces executables we can run.  If not, either
 
1827
# the compiler is broken, or we cross compile.
 
1828
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
 
1829
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
 
1830
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
 
1831
# If not cross compiling, check that we can run a simple program.
 
1832
if test "$cross_compiling" != yes; then
 
1833
  if { ac_try='./$ac_file'
 
1834
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
1835
  (eval $ac_try) 2>&5
 
1836
  ac_status=$?
 
1837
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
1838
  (exit $ac_status); }; }; then
 
1839
    cross_compiling=no
702
1840
  else
703
 
    ac_cv_prog_cc_cross=yes
 
1841
    if test "$cross_compiling" = maybe; then
 
1842
        cross_compiling=yes
 
1843
    else
 
1844
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
 
1845
If you meant to cross compile, use \`--host'.
 
1846
See \`config.log' for more details." >&5
 
1847
echo "$as_me: error: cannot run C compiled programs.
 
1848
If you meant to cross compile, use \`--host'.
 
1849
See \`config.log' for more details." >&2;}
 
1850
   { (exit 1); exit 1; }; }
 
1851
    fi
704
1852
  fi
705
 
else
706
 
  echo "configure: failed program was:" >&5
707
 
  cat conftest.$ac_ext >&5
708
 
  ac_cv_prog_cc_works=no
709
 
fi
710
 
rm -fr conftest*
711
 
ac_ext=c
712
 
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
713
 
ac_cpp='$CPP $CPPFLAGS'
714
 
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
715
 
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
716
 
cross_compiling=$ac_cv_prog_cc_cross
717
 
 
718
 
echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
719
 
if test $ac_cv_prog_cc_works = no; then
720
 
  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
721
 
fi
722
 
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
723
 
echo "configure:724: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
724
 
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
725
 
cross_compiling=$ac_cv_prog_cc_cross
726
 
 
727
 
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
728
 
echo "configure:729: checking whether we are using GNU C" >&5
729
 
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
730
 
  echo $ac_n "(cached) $ac_c" 1>&6
731
 
else
732
 
  cat > conftest.c <<EOF
733
 
#ifdef __GNUC__
734
 
  yes;
 
1853
fi
 
1854
echo "$as_me:$LINENO: result: yes" >&5
 
1855
echo "${ECHO_T}yes" >&6
 
1856
 
 
1857
rm -f a.out a.exe conftest$ac_cv_exeext b.out
 
1858
ac_clean_files=$ac_clean_files_save
 
1859
# Check the compiler produces executables we can run.  If not, either
 
1860
# the compiler is broken, or we cross compile.
 
1861
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
 
1862
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
 
1863
echo "$as_me:$LINENO: result: $cross_compiling" >&5
 
1864
echo "${ECHO_T}$cross_compiling" >&6
 
1865
 
 
1866
echo "$as_me:$LINENO: checking for suffix of executables" >&5
 
1867
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
 
1868
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
1869
  (eval $ac_link) 2>&5
 
1870
  ac_status=$?
 
1871
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
1872
  (exit $ac_status); }; then
 
1873
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
1874
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
1875
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
1876
# `rm'.
 
1877
for ac_file in conftest.exe conftest conftest.*; do
 
1878
  test -f "$ac_file" || continue
 
1879
  case $ac_file in
 
1880
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
 
1881
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
1882
          export ac_cv_exeext
 
1883
          break;;
 
1884
    * ) break;;
 
1885
  esac
 
1886
done
 
1887
else
 
1888
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
 
1889
See \`config.log' for more details." >&5
 
1890
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
 
1891
See \`config.log' for more details." >&2;}
 
1892
   { (exit 1); exit 1; }; }
 
1893
fi
 
1894
 
 
1895
rm -f conftest$ac_cv_exeext
 
1896
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
 
1897
echo "${ECHO_T}$ac_cv_exeext" >&6
 
1898
 
 
1899
rm -f conftest.$ac_ext
 
1900
EXEEXT=$ac_cv_exeext
 
1901
ac_exeext=$EXEEXT
 
1902
echo "$as_me:$LINENO: checking for suffix of object files" >&5
 
1903
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
 
1904
if test "${ac_cv_objext+set}" = set; then
 
1905
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1906
else
 
1907
  cat >conftest.$ac_ext <<_ACEOF
 
1908
#line $LINENO "configure"
 
1909
/* confdefs.h.  */
 
1910
_ACEOF
 
1911
cat confdefs.h >>conftest.$ac_ext
 
1912
cat >>conftest.$ac_ext <<_ACEOF
 
1913
/* end confdefs.h.  */
 
1914
 
 
1915
int
 
1916
main ()
 
1917
{
 
1918
 
 
1919
  ;
 
1920
  return 0;
 
1921
}
 
1922
_ACEOF
 
1923
rm -f conftest.o conftest.obj
 
1924
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
1925
  (eval $ac_compile) 2>&5
 
1926
  ac_status=$?
 
1927
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
1928
  (exit $ac_status); }; then
 
1929
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
 
1930
  case $ac_file in
 
1931
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
 
1932
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
1933
       break;;
 
1934
  esac
 
1935
done
 
1936
else
 
1937
  echo "$as_me: failed program was:" >&5
 
1938
sed 's/^/| /' conftest.$ac_ext >&5
 
1939
 
 
1940
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
 
1941
See \`config.log' for more details." >&5
 
1942
echo "$as_me: error: cannot compute suffix of object files: cannot compile
 
1943
See \`config.log' for more details." >&2;}
 
1944
   { (exit 1); exit 1; }; }
 
1945
fi
 
1946
 
 
1947
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
1948
fi
 
1949
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
 
1950
echo "${ECHO_T}$ac_cv_objext" >&6
 
1951
OBJEXT=$ac_cv_objext
 
1952
ac_objext=$OBJEXT
 
1953
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
1954
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
 
1955
if test "${ac_cv_c_compiler_gnu+set}" = set; then
 
1956
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1957
else
 
1958
  cat >conftest.$ac_ext <<_ACEOF
 
1959
#line $LINENO "configure"
 
1960
/* confdefs.h.  */
 
1961
_ACEOF
 
1962
cat confdefs.h >>conftest.$ac_ext
 
1963
cat >>conftest.$ac_ext <<_ACEOF
 
1964
/* end confdefs.h.  */
 
1965
 
 
1966
int
 
1967
main ()
 
1968
{
 
1969
#ifndef __GNUC__
 
1970
       choke me
735
1971
#endif
736
 
EOF
737
 
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:738: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
738
 
  ac_cv_prog_gcc=yes
739
 
else
740
 
  ac_cv_prog_gcc=no
741
 
fi
742
 
fi
743
 
 
744
 
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
745
 
 
746
 
if test $ac_cv_prog_gcc = yes; then
747
 
  GCC=yes
748
 
else
749
 
  GCC=
750
 
fi
751
 
 
752
 
ac_test_CFLAGS="${CFLAGS+set}"
753
 
ac_save_CFLAGS="$CFLAGS"
754
 
CFLAGS=
755
 
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
756
 
echo "configure:757: checking whether ${CC-cc} accepts -g" >&5
757
 
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
758
 
  echo $ac_n "(cached) $ac_c" 1>&6
759
 
else
760
 
  echo 'void f(){}' > conftest.c
761
 
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
 
1972
 
 
1973
  ;
 
1974
  return 0;
 
1975
}
 
1976
_ACEOF
 
1977
rm -f conftest.$ac_objext
 
1978
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
1979
  (eval $ac_compile) 2>&5
 
1980
  ac_status=$?
 
1981
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
1982
  (exit $ac_status); } &&
 
1983
         { ac_try='test -s conftest.$ac_objext'
 
1984
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
1985
  (eval $ac_try) 2>&5
 
1986
  ac_status=$?
 
1987
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
1988
  (exit $ac_status); }; }; then
 
1989
  ac_compiler_gnu=yes
 
1990
else
 
1991
  echo "$as_me: failed program was:" >&5
 
1992
sed 's/^/| /' conftest.$ac_ext >&5
 
1993
 
 
1994
ac_compiler_gnu=no
 
1995
fi
 
1996
rm -f conftest.$ac_objext conftest.$ac_ext
 
1997
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
1998
 
 
1999
fi
 
2000
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
2001
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
 
2002
GCC=`test $ac_compiler_gnu = yes && echo yes`
 
2003
ac_test_CFLAGS=${CFLAGS+set}
 
2004
ac_save_CFLAGS=$CFLAGS
 
2005
CFLAGS="-g"
 
2006
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
2007
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
 
2008
if test "${ac_cv_prog_cc_g+set}" = set; then
 
2009
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2010
else
 
2011
  cat >conftest.$ac_ext <<_ACEOF
 
2012
#line $LINENO "configure"
 
2013
/* confdefs.h.  */
 
2014
_ACEOF
 
2015
cat confdefs.h >>conftest.$ac_ext
 
2016
cat >>conftest.$ac_ext <<_ACEOF
 
2017
/* end confdefs.h.  */
 
2018
 
 
2019
int
 
2020
main ()
 
2021
{
 
2022
 
 
2023
  ;
 
2024
  return 0;
 
2025
}
 
2026
_ACEOF
 
2027
rm -f conftest.$ac_objext
 
2028
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2029
  (eval $ac_compile) 2>&5
 
2030
  ac_status=$?
 
2031
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2032
  (exit $ac_status); } &&
 
2033
         { ac_try='test -s conftest.$ac_objext'
 
2034
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2035
  (eval $ac_try) 2>&5
 
2036
  ac_status=$?
 
2037
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2038
  (exit $ac_status); }; }; then
762
2039
  ac_cv_prog_cc_g=yes
763
2040
else
764
 
  ac_cv_prog_cc_g=no
765
 
fi
766
 
rm -f conftest*
767
 
 
768
 
fi
769
 
 
770
 
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
 
2041
  echo "$as_me: failed program was:" >&5
 
2042
sed 's/^/| /' conftest.$ac_ext >&5
 
2043
 
 
2044
ac_cv_prog_cc_g=no
 
2045
fi
 
2046
rm -f conftest.$ac_objext conftest.$ac_ext
 
2047
fi
 
2048
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
2049
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
771
2050
if test "$ac_test_CFLAGS" = set; then
772
 
  CFLAGS="$ac_save_CFLAGS"
 
2051
  CFLAGS=$ac_save_CFLAGS
773
2052
elif test $ac_cv_prog_cc_g = yes; then
774
2053
  if test "$GCC" = yes; then
775
2054
    CFLAGS="-g -O2"
783
2062
    CFLAGS=
784
2063
  fi
785
2064
fi
786
 
 
787
 
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
788
 
echo "configure:789: checking how to run the C preprocessor" >&5
 
2065
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
 
2066
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
 
2067
if test "${ac_cv_prog_cc_stdc+set}" = set; then
 
2068
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2069
else
 
2070
  ac_cv_prog_cc_stdc=no
 
2071
ac_save_CC=$CC
 
2072
cat >conftest.$ac_ext <<_ACEOF
 
2073
#line $LINENO "configure"
 
2074
/* confdefs.h.  */
 
2075
_ACEOF
 
2076
cat confdefs.h >>conftest.$ac_ext
 
2077
cat >>conftest.$ac_ext <<_ACEOF
 
2078
/* end confdefs.h.  */
 
2079
#include <stdarg.h>
 
2080
#include <stdio.h>
 
2081
#include <sys/types.h>
 
2082
#include <sys/stat.h>
 
2083
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
2084
struct buf { int x; };
 
2085
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
2086
static char *e (p, i)
 
2087
     char **p;
 
2088
     int i;
 
2089
{
 
2090
  return p[i];
 
2091
}
 
2092
static char *f (char * (*g) (char **, int), char **p, ...)
 
2093
{
 
2094
  char *s;
 
2095
  va_list v;
 
2096
  va_start (v,p);
 
2097
  s = g (p, va_arg (v,int));
 
2098
  va_end (v);
 
2099
  return s;
 
2100
}
 
2101
int test (int i, double x);
 
2102
struct s1 {int (*f) (int a);};
 
2103
struct s2 {int (*f) (double a);};
 
2104
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
2105
int argc;
 
2106
char **argv;
 
2107
int
 
2108
main ()
 
2109
{
 
2110
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
2111
  ;
 
2112
  return 0;
 
2113
}
 
2114
_ACEOF
 
2115
# Don't try gcc -ansi; that turns off useful extensions and
 
2116
# breaks some systems' header files.
 
2117
# AIX                   -qlanglvl=ansi
 
2118
# Ultrix and OSF/1      -std1
 
2119
# HP-UX 10.20 and later -Ae
 
2120
# HP-UX older versions  -Aa -D_HPUX_SOURCE
 
2121
# SVR4                  -Xc -D__EXTENSIONS__
 
2122
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
2123
do
 
2124
  CC="$ac_save_CC $ac_arg"
 
2125
  rm -f conftest.$ac_objext
 
2126
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2127
  (eval $ac_compile) 2>&5
 
2128
  ac_status=$?
 
2129
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2130
  (exit $ac_status); } &&
 
2131
         { ac_try='test -s conftest.$ac_objext'
 
2132
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2133
  (eval $ac_try) 2>&5
 
2134
  ac_status=$?
 
2135
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2136
  (exit $ac_status); }; }; then
 
2137
  ac_cv_prog_cc_stdc=$ac_arg
 
2138
break
 
2139
else
 
2140
  echo "$as_me: failed program was:" >&5
 
2141
sed 's/^/| /' conftest.$ac_ext >&5
 
2142
 
 
2143
fi
 
2144
rm -f conftest.$ac_objext
 
2145
done
 
2146
rm -f conftest.$ac_ext conftest.$ac_objext
 
2147
CC=$ac_save_CC
 
2148
 
 
2149
fi
 
2150
 
 
2151
case "x$ac_cv_prog_cc_stdc" in
 
2152
  x|xno)
 
2153
    echo "$as_me:$LINENO: result: none needed" >&5
 
2154
echo "${ECHO_T}none needed" >&6 ;;
 
2155
  *)
 
2156
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
 
2157
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
 
2158
    CC="$CC $ac_cv_prog_cc_stdc" ;;
 
2159
esac
 
2160
 
 
2161
# Some people use a C++ compiler to compile C.  Since we use `exit',
 
2162
# in C++ we need to declare it.  In case someone uses the same compiler
 
2163
# for both compiling C and C++ we need to have the C++ compiler decide
 
2164
# the declaration of exit, since it's the most demanding environment.
 
2165
cat >conftest.$ac_ext <<_ACEOF
 
2166
#ifndef __cplusplus
 
2167
  choke me
 
2168
#endif
 
2169
_ACEOF
 
2170
rm -f conftest.$ac_objext
 
2171
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2172
  (eval $ac_compile) 2>&5
 
2173
  ac_status=$?
 
2174
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2175
  (exit $ac_status); } &&
 
2176
         { ac_try='test -s conftest.$ac_objext'
 
2177
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2178
  (eval $ac_try) 2>&5
 
2179
  ac_status=$?
 
2180
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2181
  (exit $ac_status); }; }; then
 
2182
  for ac_declaration in \
 
2183
   ''\
 
2184
   '#include <stdlib.h>' \
 
2185
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
2186
   'extern "C" void std::exit (int); using std::exit;' \
 
2187
   'extern "C" void exit (int) throw ();' \
 
2188
   'extern "C" void exit (int);' \
 
2189
   'void exit (int);'
 
2190
do
 
2191
  cat >conftest.$ac_ext <<_ACEOF
 
2192
#line $LINENO "configure"
 
2193
/* confdefs.h.  */
 
2194
_ACEOF
 
2195
cat confdefs.h >>conftest.$ac_ext
 
2196
cat >>conftest.$ac_ext <<_ACEOF
 
2197
/* end confdefs.h.  */
 
2198
#include <stdlib.h>
 
2199
$ac_declaration
 
2200
int
 
2201
main ()
 
2202
{
 
2203
exit (42);
 
2204
  ;
 
2205
  return 0;
 
2206
}
 
2207
_ACEOF
 
2208
rm -f conftest.$ac_objext
 
2209
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2210
  (eval $ac_compile) 2>&5
 
2211
  ac_status=$?
 
2212
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2213
  (exit $ac_status); } &&
 
2214
         { ac_try='test -s conftest.$ac_objext'
 
2215
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2216
  (eval $ac_try) 2>&5
 
2217
  ac_status=$?
 
2218
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2219
  (exit $ac_status); }; }; then
 
2220
  :
 
2221
else
 
2222
  echo "$as_me: failed program was:" >&5
 
2223
sed 's/^/| /' conftest.$ac_ext >&5
 
2224
 
 
2225
continue
 
2226
fi
 
2227
rm -f conftest.$ac_objext conftest.$ac_ext
 
2228
  cat >conftest.$ac_ext <<_ACEOF
 
2229
#line $LINENO "configure"
 
2230
/* confdefs.h.  */
 
2231
_ACEOF
 
2232
cat confdefs.h >>conftest.$ac_ext
 
2233
cat >>conftest.$ac_ext <<_ACEOF
 
2234
/* end confdefs.h.  */
 
2235
$ac_declaration
 
2236
int
 
2237
main ()
 
2238
{
 
2239
exit (42);
 
2240
  ;
 
2241
  return 0;
 
2242
}
 
2243
_ACEOF
 
2244
rm -f conftest.$ac_objext
 
2245
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2246
  (eval $ac_compile) 2>&5
 
2247
  ac_status=$?
 
2248
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2249
  (exit $ac_status); } &&
 
2250
         { ac_try='test -s conftest.$ac_objext'
 
2251
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2252
  (eval $ac_try) 2>&5
 
2253
  ac_status=$?
 
2254
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2255
  (exit $ac_status); }; }; then
 
2256
  break
 
2257
else
 
2258
  echo "$as_me: failed program was:" >&5
 
2259
sed 's/^/| /' conftest.$ac_ext >&5
 
2260
 
 
2261
fi
 
2262
rm -f conftest.$ac_objext conftest.$ac_ext
 
2263
done
 
2264
rm -f conftest*
 
2265
if test -n "$ac_declaration"; then
 
2266
  echo '#ifdef __cplusplus' >>confdefs.h
 
2267
  echo $ac_declaration      >>confdefs.h
 
2268
  echo '#endif'             >>confdefs.h
 
2269
fi
 
2270
 
 
2271
else
 
2272
  echo "$as_me: failed program was:" >&5
 
2273
sed 's/^/| /' conftest.$ac_ext >&5
 
2274
 
 
2275
fi
 
2276
rm -f conftest.$ac_objext conftest.$ac_ext
 
2277
ac_ext=c
 
2278
ac_cpp='$CPP $CPPFLAGS'
 
2279
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2280
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2281
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2282
 
 
2283
ac_ext=c
 
2284
ac_cpp='$CPP $CPPFLAGS'
 
2285
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2286
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2287
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2288
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
 
2289
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
789
2290
# On Suns, sometimes $CPP names a directory.
790
2291
if test -n "$CPP" && test -d "$CPP"; then
791
2292
  CPP=
792
2293
fi
793
2294
if test -z "$CPP"; then
794
 
if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
795
 
  echo $ac_n "(cached) $ac_c" 1>&6
796
 
else
797
 
    # This must be in double quotes, not single quotes, because CPP may get
798
 
  # substituted into the Makefile and "${CC-cc}" will confuse make.
799
 
  CPP="${CC-cc} -E"
800
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
801
 
  # not just through cpp.
802
 
  cat > conftest.$ac_ext <<EOF
803
 
#line 804 "configure"
804
 
#include "confdefs.h"
805
 
#include <assert.h>
806
 
Syntax Error
807
 
EOF
808
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
809
 
{ (eval echo configure:810: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
810
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
811
 
if test -z "$ac_err"; then
812
 
  :
813
 
else
814
 
  echo "$ac_err" >&5
815
 
  echo "configure: failed program was:" >&5
816
 
  cat conftest.$ac_ext >&5
817
 
  rm -rf conftest*
818
 
  CPP="${CC-cc} -E -traditional-cpp"
819
 
  cat > conftest.$ac_ext <<EOF
820
 
#line 821 "configure"
821
 
#include "confdefs.h"
822
 
#include <assert.h>
823
 
Syntax Error
824
 
EOF
825
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
826
 
{ (eval echo configure:827: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
827
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
828
 
if test -z "$ac_err"; then
829
 
  :
830
 
else
831
 
  echo "$ac_err" >&5
832
 
  echo "configure: failed program was:" >&5
833
 
  cat conftest.$ac_ext >&5
834
 
  rm -rf conftest*
835
 
  CPP="${CC-cc} -nologo -E"
836
 
  cat > conftest.$ac_ext <<EOF
837
 
#line 838 "configure"
838
 
#include "confdefs.h"
839
 
#include <assert.h>
840
 
Syntax Error
841
 
EOF
842
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
843
 
{ (eval echo configure:844: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
844
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
845
 
if test -z "$ac_err"; then
846
 
  :
847
 
else
848
 
  echo "$ac_err" >&5
849
 
  echo "configure: failed program was:" >&5
850
 
  cat conftest.$ac_ext >&5
851
 
  rm -rf conftest*
852
 
  CPP=/lib/cpp
853
 
fi
854
 
rm -f conftest*
855
 
fi
856
 
rm -f conftest*
857
 
fi
858
 
rm -f conftest*
859
 
  ac_cv_prog_CPP="$CPP"
860
 
fi
861
 
  CPP="$ac_cv_prog_CPP"
862
 
else
863
 
  ac_cv_prog_CPP="$CPP"
864
 
fi
865
 
echo "$ac_t""$CPP" 1>&6
866
 
 
867
 
ac_aux_dir=
868
 
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
869
 
  if test -f $ac_dir/install-sh; then
870
 
    ac_aux_dir=$ac_dir
871
 
    ac_install_sh="$ac_aux_dir/install-sh -c"
872
 
    break
873
 
  elif test -f $ac_dir/install.sh; then
874
 
    ac_aux_dir=$ac_dir
875
 
    ac_install_sh="$ac_aux_dir/install.sh -c"
876
 
    break
877
 
  fi
878
 
done
879
 
if test -z "$ac_aux_dir"; then
880
 
  { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
881
 
fi
882
 
ac_config_guess=$ac_aux_dir/config.guess
883
 
ac_config_sub=$ac_aux_dir/config.sub
884
 
ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
 
2295
  if test "${ac_cv_prog_CPP+set}" = set; then
 
2296
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2297
else
 
2298
      # Double quotes because CPP needs to be expanded
 
2299
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
2300
    do
 
2301
      ac_preproc_ok=false
 
2302
for ac_c_preproc_warn_flag in '' yes
 
2303
do
 
2304
  # Use a header file that comes with gcc, so configuring glibc
 
2305
  # with a fresh cross-compiler works.
 
2306
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
2307
  # <limits.h> exists even on freestanding compilers.
 
2308
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
2309
  # not just through cpp. "Syntax error" is here to catch this case.
 
2310
  cat >conftest.$ac_ext <<_ACEOF
 
2311
#line $LINENO "configure"
 
2312
/* confdefs.h.  */
 
2313
_ACEOF
 
2314
cat confdefs.h >>conftest.$ac_ext
 
2315
cat >>conftest.$ac_ext <<_ACEOF
 
2316
/* end confdefs.h.  */
 
2317
#ifdef __STDC__
 
2318
# include <limits.h>
 
2319
#else
 
2320
# include <assert.h>
 
2321
#endif
 
2322
                     Syntax error
 
2323
_ACEOF
 
2324
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
2325
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
2326
  ac_status=$?
 
2327
  grep -v '^ *+' conftest.er1 >conftest.err
 
2328
  rm -f conftest.er1
 
2329
  cat conftest.err >&5
 
2330
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2331
  (exit $ac_status); } >/dev/null; then
 
2332
  if test -s conftest.err; then
 
2333
    ac_cpp_err=$ac_c_preproc_warn_flag
 
2334
  else
 
2335
    ac_cpp_err=
 
2336
  fi
 
2337
else
 
2338
  ac_cpp_err=yes
 
2339
fi
 
2340
if test -z "$ac_cpp_err"; then
 
2341
  :
 
2342
else
 
2343
  echo "$as_me: failed program was:" >&5
 
2344
sed 's/^/| /' conftest.$ac_ext >&5
 
2345
 
 
2346
  # Broken: fails on valid input.
 
2347
continue
 
2348
fi
 
2349
rm -f conftest.err conftest.$ac_ext
 
2350
 
 
2351
  # OK, works on sane cases.  Now check whether non-existent headers
 
2352
  # can be detected and how.
 
2353
  cat >conftest.$ac_ext <<_ACEOF
 
2354
#line $LINENO "configure"
 
2355
/* confdefs.h.  */
 
2356
_ACEOF
 
2357
cat confdefs.h >>conftest.$ac_ext
 
2358
cat >>conftest.$ac_ext <<_ACEOF
 
2359
/* end confdefs.h.  */
 
2360
#include <ac_nonexistent.h>
 
2361
_ACEOF
 
2362
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
2363
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
2364
  ac_status=$?
 
2365
  grep -v '^ *+' conftest.er1 >conftest.err
 
2366
  rm -f conftest.er1
 
2367
  cat conftest.err >&5
 
2368
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2369
  (exit $ac_status); } >/dev/null; then
 
2370
  if test -s conftest.err; then
 
2371
    ac_cpp_err=$ac_c_preproc_warn_flag
 
2372
  else
 
2373
    ac_cpp_err=
 
2374
  fi
 
2375
else
 
2376
  ac_cpp_err=yes
 
2377
fi
 
2378
if test -z "$ac_cpp_err"; then
 
2379
  # Broken: success on invalid input.
 
2380
continue
 
2381
else
 
2382
  echo "$as_me: failed program was:" >&5
 
2383
sed 's/^/| /' conftest.$ac_ext >&5
 
2384
 
 
2385
  # Passes both tests.
 
2386
ac_preproc_ok=:
 
2387
break
 
2388
fi
 
2389
rm -f conftest.err conftest.$ac_ext
 
2390
 
 
2391
done
 
2392
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
2393
rm -f conftest.err conftest.$ac_ext
 
2394
if $ac_preproc_ok; then
 
2395
  break
 
2396
fi
 
2397
 
 
2398
    done
 
2399
    ac_cv_prog_CPP=$CPP
 
2400
 
 
2401
fi
 
2402
  CPP=$ac_cv_prog_CPP
 
2403
else
 
2404
  ac_cv_prog_CPP=$CPP
 
2405
fi
 
2406
echo "$as_me:$LINENO: result: $CPP" >&5
 
2407
echo "${ECHO_T}$CPP" >&6
 
2408
ac_preproc_ok=false
 
2409
for ac_c_preproc_warn_flag in '' yes
 
2410
do
 
2411
  # Use a header file that comes with gcc, so configuring glibc
 
2412
  # with a fresh cross-compiler works.
 
2413
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
2414
  # <limits.h> exists even on freestanding compilers.
 
2415
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
2416
  # not just through cpp. "Syntax error" is here to catch this case.
 
2417
  cat >conftest.$ac_ext <<_ACEOF
 
2418
#line $LINENO "configure"
 
2419
/* confdefs.h.  */
 
2420
_ACEOF
 
2421
cat confdefs.h >>conftest.$ac_ext
 
2422
cat >>conftest.$ac_ext <<_ACEOF
 
2423
/* end confdefs.h.  */
 
2424
#ifdef __STDC__
 
2425
# include <limits.h>
 
2426
#else
 
2427
# include <assert.h>
 
2428
#endif
 
2429
                     Syntax error
 
2430
_ACEOF
 
2431
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
2432
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
2433
  ac_status=$?
 
2434
  grep -v '^ *+' conftest.er1 >conftest.err
 
2435
  rm -f conftest.er1
 
2436
  cat conftest.err >&5
 
2437
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2438
  (exit $ac_status); } >/dev/null; then
 
2439
  if test -s conftest.err; then
 
2440
    ac_cpp_err=$ac_c_preproc_warn_flag
 
2441
  else
 
2442
    ac_cpp_err=
 
2443
  fi
 
2444
else
 
2445
  ac_cpp_err=yes
 
2446
fi
 
2447
if test -z "$ac_cpp_err"; then
 
2448
  :
 
2449
else
 
2450
  echo "$as_me: failed program was:" >&5
 
2451
sed 's/^/| /' conftest.$ac_ext >&5
 
2452
 
 
2453
  # Broken: fails on valid input.
 
2454
continue
 
2455
fi
 
2456
rm -f conftest.err conftest.$ac_ext
 
2457
 
 
2458
  # OK, works on sane cases.  Now check whether non-existent headers
 
2459
  # can be detected and how.
 
2460
  cat >conftest.$ac_ext <<_ACEOF
 
2461
#line $LINENO "configure"
 
2462
/* confdefs.h.  */
 
2463
_ACEOF
 
2464
cat confdefs.h >>conftest.$ac_ext
 
2465
cat >>conftest.$ac_ext <<_ACEOF
 
2466
/* end confdefs.h.  */
 
2467
#include <ac_nonexistent.h>
 
2468
_ACEOF
 
2469
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
2470
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
2471
  ac_status=$?
 
2472
  grep -v '^ *+' conftest.er1 >conftest.err
 
2473
  rm -f conftest.er1
 
2474
  cat conftest.err >&5
 
2475
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2476
  (exit $ac_status); } >/dev/null; then
 
2477
  if test -s conftest.err; then
 
2478
    ac_cpp_err=$ac_c_preproc_warn_flag
 
2479
  else
 
2480
    ac_cpp_err=
 
2481
  fi
 
2482
else
 
2483
  ac_cpp_err=yes
 
2484
fi
 
2485
if test -z "$ac_cpp_err"; then
 
2486
  # Broken: success on invalid input.
 
2487
continue
 
2488
else
 
2489
  echo "$as_me: failed program was:" >&5
 
2490
sed 's/^/| /' conftest.$ac_ext >&5
 
2491
 
 
2492
  # Passes both tests.
 
2493
ac_preproc_ok=:
 
2494
break
 
2495
fi
 
2496
rm -f conftest.err conftest.$ac_ext
 
2497
 
 
2498
done
 
2499
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
2500
rm -f conftest.err conftest.$ac_ext
 
2501
if $ac_preproc_ok; then
 
2502
  :
 
2503
else
 
2504
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
 
2505
See \`config.log' for more details." >&5
 
2506
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
 
2507
See \`config.log' for more details." >&2;}
 
2508
   { (exit 1); exit 1; }; }
 
2509
fi
 
2510
 
 
2511
ac_ext=c
 
2512
ac_cpp='$CPP $CPPFLAGS'
 
2513
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2514
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2515
ac_compiler_gnu=$ac_cv_c_compiler_gnu
885
2516
 
886
2517
# Find a good install program.  We prefer a C program (faster),
887
2518
# so one script is as good as another.  But avoid the broken or
890
2521
# SunOS /usr/etc/install
891
2522
# IRIX /sbin/install
892
2523
# AIX /bin/install
 
2524
# AmigaOS /C/install, which installs bootblocks on floppy discs
893
2525
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
894
2526
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
895
2527
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
896
2528
# ./install, which can be erroneously created by make from ./install.sh.
897
 
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
898
 
echo "configure:899: checking for a BSD compatible install" >&5
 
2529
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
2530
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
899
2531
if test -z "$INSTALL"; then
900
 
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
901
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
2532
if test "${ac_cv_path_install+set}" = set; then
 
2533
  echo $ECHO_N "(cached) $ECHO_C" >&6
902
2534
else
903
 
    IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
904
 
  for ac_dir in $PATH; do
905
 
    # Account for people who put trailing slashes in PATH elements.
906
 
    case "$ac_dir/" in
907
 
    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
908
 
    *)
909
 
      # OSF1 and SCO ODT 3.0 have their own names for install.
910
 
      # Don't use installbsd from OSF since it installs stuff as root
911
 
      # by default.
912
 
      for ac_prog in ginstall scoinst install; do
913
 
        if test -f $ac_dir/$ac_prog; then
914
 
          if test $ac_prog = install &&
915
 
            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
916
 
            # AIX install.  It has an incompatible calling convention.
917
 
            :
918
 
          else
919
 
            ac_cv_path_install="$ac_dir/$ac_prog -c"
920
 
            break 2
921
 
          fi
922
 
        fi
 
2535
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2536
for as_dir in $PATH
 
2537
do
 
2538
  IFS=$as_save_IFS
 
2539
  test -z "$as_dir" && as_dir=.
 
2540
  # Account for people who put trailing slashes in PATH elements.
 
2541
case $as_dir/ in
 
2542
  ./ | .// | /cC/* | \
 
2543
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
2544
  /usr/ucb/* ) ;;
 
2545
  *)
 
2546
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
2547
    # Don't use installbsd from OSF since it installs stuff as root
 
2548
    # by default.
 
2549
    for ac_prog in ginstall scoinst install; do
 
2550
      for ac_exec_ext in '' $ac_executable_extensions; do
 
2551
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
 
2552
          if test $ac_prog = install &&
 
2553
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
2554
            # AIX install.  It has an incompatible calling convention.
 
2555
            :
 
2556
          elif test $ac_prog = install &&
 
2557
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
2558
            # program-specific install script used by HP pwplus--don't use.
 
2559
            :
 
2560
          else
 
2561
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
2562
            break 3
 
2563
          fi
 
2564
        fi
923
2565
      done
924
 
      ;;
925
 
    esac
926
 
  done
927
 
  IFS="$ac_save_IFS"
 
2566
    done
 
2567
    ;;
 
2568
esac
 
2569
done
 
2570
 
928
2571
 
929
2572
fi
930
2573
  if test "${ac_cv_path_install+set}" = set; then
931
 
    INSTALL="$ac_cv_path_install"
 
2574
    INSTALL=$ac_cv_path_install
932
2575
  else
933
2576
    # As a last resort, use the slow shell script.  We don't cache a
934
2577
    # path for INSTALL within a source directory, because that will
935
2578
    # break other packages using the cache if that directory is
936
2579
    # removed, or if the path is relative.
937
 
    INSTALL="$ac_install_sh"
 
2580
    INSTALL=$ac_install_sh
938
2581
  fi
939
2582
fi
940
 
echo "$ac_t""$INSTALL" 1>&6
 
2583
echo "$as_me:$LINENO: result: $INSTALL" >&5
 
2584
echo "${ECHO_T}$INSTALL" >&6
941
2585
 
942
2586
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
943
2587
# It thinks the first close brace ends the variable substitution.
944
2588
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
945
2589
 
946
 
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
 
2590
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
947
2591
 
948
2592
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
949
2593
 
950
 
for ac_func in flock lockf cfsetispeed tcsendbreak seteuid setsid fcvt fcvtl cfmakeraw mmap msync
951
 
do
952
 
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
953
 
echo "configure:954: checking for $ac_func" >&5
954
 
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
955
 
  echo $ac_n "(cached) $ac_c" 1>&6
956
 
else
957
 
  cat > conftest.$ac_ext <<EOF
958
 
#line 959 "configure"
959
 
#include "confdefs.h"
960
 
/* System header to define __stub macros and hopefully few prototypes,
961
 
    which can conflict with char $ac_func(); below.  */
962
 
#include <assert.h>
963
 
/* Override any gcc2 internal prototype to avoid an error.  */
964
 
/* We use char because int might match the return type of a gcc2
965
 
    builtin and then its argument prototype would still apply.  */
966
 
char $ac_func();
967
 
 
968
 
int main() {
969
 
 
970
 
/* The GNU C library defines this for functions which it implements
971
 
    to always fail with ENOSYS.  Some functions are actually named
972
 
    something starting with __ and the normal name is an alias.  */
973
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
974
 
choke me
975
 
#else
976
 
$ac_func();
977
 
#endif
978
 
 
979
 
; return 0; }
980
 
EOF
981
 
if { (eval echo configure:982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
982
 
  rm -rf conftest*
983
 
  eval "ac_cv_func_$ac_func=yes"
984
 
else
985
 
  echo "configure: failed program was:" >&5
986
 
  cat conftest.$ac_ext >&5
987
 
  rm -rf conftest*
988
 
  eval "ac_cv_func_$ac_func=no"
989
 
fi
990
 
rm -f conftest*
991
 
fi
992
 
 
993
 
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
994
 
  echo "$ac_t""yes" 1>&6
995
 
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
996
 
  cat >> confdefs.h <<EOF
997
 
#define $ac_tr_func 1
998
 
EOF
999
 
 
1000
 
else
1001
 
  echo "$ac_t""no" 1>&6
1002
 
fi
1003
 
done
 
2594
echo "$as_me:$LINENO: checking for egrep" >&5
 
2595
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
 
2596
if test "${ac_cv_prog_egrep+set}" = set; then
 
2597
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2598
else
 
2599
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
 
2600
    then ac_cv_prog_egrep='grep -E'
 
2601
    else ac_cv_prog_egrep='egrep'
 
2602
    fi
 
2603
fi
 
2604
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
 
2605
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
 
2606
 EGREP=$ac_cv_prog_egrep
 
2607
 
 
2608
 
 
2609
# Extract the first word of "ar", so it can be a program name with args.
 
2610
set dummy ar; ac_word=$2
 
2611
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2612
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2613
if test "${ac_cv_path_AR+set}" = set; then
 
2614
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2615
else
 
2616
  case $AR in
 
2617
  [\\/]* | ?:[\\/]*)
 
2618
  ac_cv_path_AR="$AR" # Let the user override the test with a path.
 
2619
  ;;
 
2620
  *)
 
2621
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2622
for as_dir in $PATH
 
2623
do
 
2624
  IFS=$as_save_IFS
 
2625
  test -z "$as_dir" && as_dir=.
 
2626
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2627
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2628
    ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
 
2629
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2630
    break 2
 
2631
  fi
 
2632
done
 
2633
done
 
2634
 
 
2635
  ;;
 
2636
esac
 
2637
fi
 
2638
AR=$ac_cv_path_AR
 
2639
 
 
2640
if test -n "$AR"; then
 
2641
  echo "$as_me:$LINENO: result: $AR" >&5
 
2642
echo "${ECHO_T}$AR" >&6
 
2643
else
 
2644
  echo "$as_me:$LINENO: result: no" >&5
 
2645
echo "${ECHO_T}no" >&6
 
2646
fi
 
2647
 
 
2648
if test -n "$ac_tool_prefix"; then
 
2649
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
2650
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
2651
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2652
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2653
if test "${ac_cv_prog_RANLIB+set}" = set; then
 
2654
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2655
else
 
2656
  if test -n "$RANLIB"; then
 
2657
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
2658
else
 
2659
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2660
for as_dir in $PATH
 
2661
do
 
2662
  IFS=$as_save_IFS
 
2663
  test -z "$as_dir" && as_dir=.
 
2664
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2665
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2666
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
2667
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2668
    break 2
 
2669
  fi
 
2670
done
 
2671
done
 
2672
 
 
2673
fi
 
2674
fi
 
2675
RANLIB=$ac_cv_prog_RANLIB
 
2676
if test -n "$RANLIB"; then
 
2677
  echo "$as_me:$LINENO: result: $RANLIB" >&5
 
2678
echo "${ECHO_T}$RANLIB" >&6
 
2679
else
 
2680
  echo "$as_me:$LINENO: result: no" >&5
 
2681
echo "${ECHO_T}no" >&6
 
2682
fi
 
2683
 
 
2684
fi
 
2685
if test -z "$ac_cv_prog_RANLIB"; then
 
2686
  ac_ct_RANLIB=$RANLIB
 
2687
  # Extract the first word of "ranlib", so it can be a program name with args.
 
2688
set dummy ranlib; ac_word=$2
 
2689
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2690
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2691
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
 
2692
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2693
else
 
2694
  if test -n "$ac_ct_RANLIB"; then
 
2695
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
2696
else
 
2697
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2698
for as_dir in $PATH
 
2699
do
 
2700
  IFS=$as_save_IFS
 
2701
  test -z "$as_dir" && as_dir=.
 
2702
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2703
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2704
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
2705
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2706
    break 2
 
2707
  fi
 
2708
done
 
2709
done
 
2710
 
 
2711
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
 
2712
fi
 
2713
fi
 
2714
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
2715
if test -n "$ac_ct_RANLIB"; then
 
2716
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
 
2717
echo "${ECHO_T}$ac_ct_RANLIB" >&6
 
2718
else
 
2719
  echo "$as_me:$LINENO: result: no" >&5
 
2720
echo "${ECHO_T}no" >&6
 
2721
fi
 
2722
 
 
2723
  RANLIB=$ac_ct_RANLIB
 
2724
else
 
2725
  RANLIB="$ac_cv_prog_RANLIB"
 
2726
fi
 
2727
 
 
2728
 
 
2729
echo "$as_me:$LINENO: checking for inline" >&5
 
2730
echo $ECHO_N "checking for inline... $ECHO_C" >&6
 
2731
if test "${ac_cv_c_inline+set}" = set; then
 
2732
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2733
else
 
2734
  ac_cv_c_inline=no
 
2735
for ac_kw in inline __inline__ __inline; do
 
2736
  cat >conftest.$ac_ext <<_ACEOF
 
2737
#line $LINENO "configure"
 
2738
/* confdefs.h.  */
 
2739
_ACEOF
 
2740
cat confdefs.h >>conftest.$ac_ext
 
2741
cat >>conftest.$ac_ext <<_ACEOF
 
2742
/* end confdefs.h.  */
 
2743
#ifndef __cplusplus
 
2744
typedef int foo_t;
 
2745
static $ac_kw foo_t static_foo () {return 0; }
 
2746
$ac_kw foo_t foo () {return 0; }
 
2747
#endif
 
2748
 
 
2749
_ACEOF
 
2750
rm -f conftest.$ac_objext
 
2751
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2752
  (eval $ac_compile) 2>&5
 
2753
  ac_status=$?
 
2754
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2755
  (exit $ac_status); } &&
 
2756
         { ac_try='test -s conftest.$ac_objext'
 
2757
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2758
  (eval $ac_try) 2>&5
 
2759
  ac_status=$?
 
2760
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2761
  (exit $ac_status); }; }; then
 
2762
  ac_cv_c_inline=$ac_kw; break
 
2763
else
 
2764
  echo "$as_me: failed program was:" >&5
 
2765
sed 's/^/| /' conftest.$ac_ext >&5
 
2766
 
 
2767
fi
 
2768
rm -f conftest.$ac_objext conftest.$ac_ext
 
2769
done
 
2770
 
 
2771
fi
 
2772
echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
 
2773
echo "${ECHO_T}$ac_cv_c_inline" >&6
 
2774
case $ac_cv_c_inline in
 
2775
  inline | yes) ;;
 
2776
  no)
 
2777
cat >>confdefs.h <<\_ACEOF
 
2778
#define inline
 
2779
_ACEOF
 
2780
 ;;
 
2781
  *)  cat >>confdefs.h <<_ACEOF
 
2782
#define inline $ac_cv_c_inline
 
2783
_ACEOF
 
2784
 ;;
 
2785
esac
 
2786
 
 
2787
 
 
2788
 
 
2789
 
 
2790
 
 
2791
for ac_func in flock lockf fcvt fcvtl
 
2792
do
 
2793
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
2794
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
2795
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
2796
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
2797
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2798
else
 
2799
  cat >conftest.$ac_ext <<_ACEOF
 
2800
#line $LINENO "configure"
 
2801
/* confdefs.h.  */
 
2802
_ACEOF
 
2803
cat confdefs.h >>conftest.$ac_ext
 
2804
cat >>conftest.$ac_ext <<_ACEOF
 
2805
/* end confdefs.h.  */
 
2806
/* System header to define __stub macros and hopefully few prototypes,
 
2807
    which can conflict with char $ac_func (); below.
 
2808
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
2809
    <limits.h> exists even on freestanding compilers.  */
 
2810
#ifdef __STDC__
 
2811
# include <limits.h>
 
2812
#else
 
2813
# include <assert.h>
 
2814
#endif
 
2815
/* Override any gcc2 internal prototype to avoid an error.  */
 
2816
#ifdef __cplusplus
 
2817
extern "C"
 
2818
{
 
2819
#endif
 
2820
/* We use char because int might match the return type of a gcc2
 
2821
   builtin and then its argument prototype would still apply.  */
 
2822
char $ac_func ();
 
2823
/* The GNU C library defines this for functions which it implements
 
2824
    to always fail with ENOSYS.  Some functions are actually named
 
2825
    something starting with __ and the normal name is an alias.  */
 
2826
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
2827
choke me
 
2828
#else
 
2829
char (*f) () = $ac_func;
 
2830
#endif
 
2831
#ifdef __cplusplus
 
2832
}
 
2833
#endif
 
2834
 
 
2835
int
 
2836
main ()
 
2837
{
 
2838
return f != $ac_func;
 
2839
  ;
 
2840
  return 0;
 
2841
}
 
2842
_ACEOF
 
2843
rm -f conftest.$ac_objext conftest$ac_exeext
 
2844
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
2845
  (eval $ac_link) 2>&5
 
2846
  ac_status=$?
 
2847
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2848
  (exit $ac_status); } &&
 
2849
         { ac_try='test -s conftest$ac_exeext'
 
2850
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2851
  (eval $ac_try) 2>&5
 
2852
  ac_status=$?
 
2853
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2854
  (exit $ac_status); }; }; then
 
2855
  eval "$as_ac_var=yes"
 
2856
else
 
2857
  echo "$as_me: failed program was:" >&5
 
2858
sed 's/^/| /' conftest.$ac_ext >&5
 
2859
 
 
2860
eval "$as_ac_var=no"
 
2861
fi
 
2862
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
2863
fi
 
2864
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
2865
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
2866
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
2867
  cat >>confdefs.h <<_ACEOF
 
2868
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
2869
_ACEOF
 
2870
 
 
2871
fi
 
2872
done
 
2873
 
 
2874
 
 
2875
 
 
2876
 
 
2877
for ac_func in cfsetispeed tcsendbreak cfmakeraw
 
2878
do
 
2879
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
2880
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
2881
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
2882
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
2883
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2884
else
 
2885
  cat >conftest.$ac_ext <<_ACEOF
 
2886
#line $LINENO "configure"
 
2887
/* confdefs.h.  */
 
2888
_ACEOF
 
2889
cat confdefs.h >>conftest.$ac_ext
 
2890
cat >>conftest.$ac_ext <<_ACEOF
 
2891
/* end confdefs.h.  */
 
2892
/* System header to define __stub macros and hopefully few prototypes,
 
2893
    which can conflict with char $ac_func (); below.
 
2894
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
2895
    <limits.h> exists even on freestanding compilers.  */
 
2896
#ifdef __STDC__
 
2897
# include <limits.h>
 
2898
#else
 
2899
# include <assert.h>
 
2900
#endif
 
2901
/* Override any gcc2 internal prototype to avoid an error.  */
 
2902
#ifdef __cplusplus
 
2903
extern "C"
 
2904
{
 
2905
#endif
 
2906
/* We use char because int might match the return type of a gcc2
 
2907
   builtin and then its argument prototype would still apply.  */
 
2908
char $ac_func ();
 
2909
/* The GNU C library defines this for functions which it implements
 
2910
    to always fail with ENOSYS.  Some functions are actually named
 
2911
    something starting with __ and the normal name is an alias.  */
 
2912
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
2913
choke me
 
2914
#else
 
2915
char (*f) () = $ac_func;
 
2916
#endif
 
2917
#ifdef __cplusplus
 
2918
}
 
2919
#endif
 
2920
 
 
2921
int
 
2922
main ()
 
2923
{
 
2924
return f != $ac_func;
 
2925
  ;
 
2926
  return 0;
 
2927
}
 
2928
_ACEOF
 
2929
rm -f conftest.$ac_objext conftest$ac_exeext
 
2930
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
2931
  (eval $ac_link) 2>&5
 
2932
  ac_status=$?
 
2933
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2934
  (exit $ac_status); } &&
 
2935
         { ac_try='test -s conftest$ac_exeext'
 
2936
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2937
  (eval $ac_try) 2>&5
 
2938
  ac_status=$?
 
2939
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2940
  (exit $ac_status); }; }; then
 
2941
  eval "$as_ac_var=yes"
 
2942
else
 
2943
  echo "$as_me: failed program was:" >&5
 
2944
sed 's/^/| /' conftest.$ac_ext >&5
 
2945
 
 
2946
eval "$as_ac_var=no"
 
2947
fi
 
2948
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
2949
fi
 
2950
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
2951
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
2952
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
2953
  cat >>confdefs.h <<_ACEOF
 
2954
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
2955
_ACEOF
 
2956
 
 
2957
fi
 
2958
done
 
2959
 
 
2960
 
 
2961
 
 
2962
 
 
2963
for ac_func in seteuid setsid getpassphrase
 
2964
do
 
2965
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
2966
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
2967
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
2968
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
2969
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2970
else
 
2971
  cat >conftest.$ac_ext <<_ACEOF
 
2972
#line $LINENO "configure"
 
2973
/* confdefs.h.  */
 
2974
_ACEOF
 
2975
cat confdefs.h >>conftest.$ac_ext
 
2976
cat >>conftest.$ac_ext <<_ACEOF
 
2977
/* end confdefs.h.  */
 
2978
/* System header to define __stub macros and hopefully few prototypes,
 
2979
    which can conflict with char $ac_func (); below.
 
2980
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
2981
    <limits.h> exists even on freestanding compilers.  */
 
2982
#ifdef __STDC__
 
2983
# include <limits.h>
 
2984
#else
 
2985
# include <assert.h>
 
2986
#endif
 
2987
/* Override any gcc2 internal prototype to avoid an error.  */
 
2988
#ifdef __cplusplus
 
2989
extern "C"
 
2990
{
 
2991
#endif
 
2992
/* We use char because int might match the return type of a gcc2
 
2993
   builtin and then its argument prototype would still apply.  */
 
2994
char $ac_func ();
 
2995
/* The GNU C library defines this for functions which it implements
 
2996
    to always fail with ENOSYS.  Some functions are actually named
 
2997
    something starting with __ and the normal name is an alias.  */
 
2998
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
2999
choke me
 
3000
#else
 
3001
char (*f) () = $ac_func;
 
3002
#endif
 
3003
#ifdef __cplusplus
 
3004
}
 
3005
#endif
 
3006
 
 
3007
int
 
3008
main ()
 
3009
{
 
3010
return f != $ac_func;
 
3011
  ;
 
3012
  return 0;
 
3013
}
 
3014
_ACEOF
 
3015
rm -f conftest.$ac_objext conftest$ac_exeext
 
3016
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3017
  (eval $ac_link) 2>&5
 
3018
  ac_status=$?
 
3019
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3020
  (exit $ac_status); } &&
 
3021
         { ac_try='test -s conftest$ac_exeext'
 
3022
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3023
  (eval $ac_try) 2>&5
 
3024
  ac_status=$?
 
3025
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3026
  (exit $ac_status); }; }; then
 
3027
  eval "$as_ac_var=yes"
 
3028
else
 
3029
  echo "$as_me: failed program was:" >&5
 
3030
sed 's/^/| /' conftest.$ac_ext >&5
 
3031
 
 
3032
eval "$as_ac_var=no"
 
3033
fi
 
3034
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
3035
fi
 
3036
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
3037
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
3038
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
3039
  cat >>confdefs.h <<_ACEOF
 
3040
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
3041
_ACEOF
 
3042
 
 
3043
fi
 
3044
done
 
3045
 
 
3046
 
1004
3047
 
1005
3048
 
1006
3049
for ac_func in vsnprintf snprintf
1007
3050
do
1008
 
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1009
 
echo "configure:1010: checking for $ac_func" >&5
1010
 
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1011
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
3051
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
3052
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
3053
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
3054
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
3055
  echo $ECHO_N "(cached) $ECHO_C" >&6
1012
3056
else
1013
 
  cat > conftest.$ac_ext <<EOF
1014
 
#line 1015 "configure"
1015
 
#include "confdefs.h"
 
3057
  cat >conftest.$ac_ext <<_ACEOF
 
3058
#line $LINENO "configure"
 
3059
/* confdefs.h.  */
 
3060
_ACEOF
 
3061
cat confdefs.h >>conftest.$ac_ext
 
3062
cat >>conftest.$ac_ext <<_ACEOF
 
3063
/* end confdefs.h.  */
1016
3064
/* System header to define __stub macros and hopefully few prototypes,
1017
 
    which can conflict with char $ac_func(); below.  */
1018
 
#include <assert.h>
 
3065
    which can conflict with char $ac_func (); below.
 
3066
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
3067
    <limits.h> exists even on freestanding compilers.  */
 
3068
#ifdef __STDC__
 
3069
# include <limits.h>
 
3070
#else
 
3071
# include <assert.h>
 
3072
#endif
1019
3073
/* Override any gcc2 internal prototype to avoid an error.  */
 
3074
#ifdef __cplusplus
 
3075
extern "C"
 
3076
{
 
3077
#endif
1020
3078
/* We use char because int might match the return type of a gcc2
1021
 
    builtin and then its argument prototype would still apply.  */
1022
 
char $ac_func();
1023
 
 
1024
 
int main() {
1025
 
 
 
3079
   builtin and then its argument prototype would still apply.  */
 
3080
char $ac_func ();
1026
3081
/* The GNU C library defines this for functions which it implements
1027
3082
    to always fail with ENOSYS.  Some functions are actually named
1028
3083
    something starting with __ and the normal name is an alias.  */
1029
3084
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1030
3085
choke me
1031
3086
#else
1032
 
$ac_func();
1033
 
#endif
1034
 
 
1035
 
; return 0; }
1036
 
EOF
1037
 
if { (eval echo configure:1038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1038
 
  rm -rf conftest*
1039
 
  eval "ac_cv_func_$ac_func=yes"
1040
 
else
1041
 
  echo "configure: failed program was:" >&5
1042
 
  cat conftest.$ac_ext >&5
1043
 
  rm -rf conftest*
1044
 
  eval "ac_cv_func_$ac_func=no"
1045
 
fi
1046
 
rm -f conftest*
1047
 
fi
1048
 
 
1049
 
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1050
 
  echo "$ac_t""yes" 1>&6
1051
 
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1052
 
  cat >> confdefs.h <<EOF
1053
 
#define $ac_tr_func 1
1054
 
EOF
1055
 
 
1056
 
else
1057
 
  echo "$ac_t""no" 1>&6
1058
 
LIBOBJ="$LIBOBJ ../common/snprintf.o"
 
3087
char (*f) () = $ac_func;
 
3088
#endif
 
3089
#ifdef __cplusplus
 
3090
}
 
3091
#endif
 
3092
 
 
3093
int
 
3094
main ()
 
3095
{
 
3096
return f != $ac_func;
 
3097
  ;
 
3098
  return 0;
 
3099
}
 
3100
_ACEOF
 
3101
rm -f conftest.$ac_objext conftest$ac_exeext
 
3102
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3103
  (eval $ac_link) 2>&5
 
3104
  ac_status=$?
 
3105
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3106
  (exit $ac_status); } &&
 
3107
         { ac_try='test -s conftest$ac_exeext'
 
3108
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3109
  (eval $ac_try) 2>&5
 
3110
  ac_status=$?
 
3111
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3112
  (exit $ac_status); }; }; then
 
3113
  eval "$as_ac_var=yes"
 
3114
else
 
3115
  echo "$as_me: failed program was:" >&5
 
3116
sed 's/^/| /' conftest.$ac_ext >&5
 
3117
 
 
3118
eval "$as_ac_var=no"
 
3119
fi
 
3120
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
3121
fi
 
3122
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
3123
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
3124
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
3125
  cat >>confdefs.h <<_ACEOF
 
3126
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
3127
_ACEOF
 
3128
 
 
3129
else
 
3130
  LIBOBJ="$LIBOBJ ../common/snprintf.o"
1059
3131
        BUILDOBJ="$BUILDOBJ snprintf.o"
1060
3132
 
1061
3133
fi
1062
3134
done
1063
3135
 
 
3136
 
1064
3137
for ac_func in setenv
1065
3138
do
1066
 
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1067
 
echo "configure:1068: checking for $ac_func" >&5
1068
 
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1069
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
3139
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
3140
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
3141
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
3142
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
3143
  echo $ECHO_N "(cached) $ECHO_C" >&6
1070
3144
else
1071
 
  cat > conftest.$ac_ext <<EOF
1072
 
#line 1073 "configure"
1073
 
#include "confdefs.h"
 
3145
  cat >conftest.$ac_ext <<_ACEOF
 
3146
#line $LINENO "configure"
 
3147
/* confdefs.h.  */
 
3148
_ACEOF
 
3149
cat confdefs.h >>conftest.$ac_ext
 
3150
cat >>conftest.$ac_ext <<_ACEOF
 
3151
/* end confdefs.h.  */
1074
3152
/* System header to define __stub macros and hopefully few prototypes,
1075
 
    which can conflict with char $ac_func(); below.  */
1076
 
#include <assert.h>
 
3153
    which can conflict with char $ac_func (); below.
 
3154
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
3155
    <limits.h> exists even on freestanding compilers.  */
 
3156
#ifdef __STDC__
 
3157
# include <limits.h>
 
3158
#else
 
3159
# include <assert.h>
 
3160
#endif
1077
3161
/* Override any gcc2 internal prototype to avoid an error.  */
 
3162
#ifdef __cplusplus
 
3163
extern "C"
 
3164
{
 
3165
#endif
1078
3166
/* We use char because int might match the return type of a gcc2
1079
 
    builtin and then its argument prototype would still apply.  */
1080
 
char $ac_func();
1081
 
 
1082
 
int main() {
1083
 
 
 
3167
   builtin and then its argument prototype would still apply.  */
 
3168
char $ac_func ();
1084
3169
/* The GNU C library defines this for functions which it implements
1085
3170
    to always fail with ENOSYS.  Some functions are actually named
1086
3171
    something starting with __ and the normal name is an alias.  */
1087
3172
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1088
3173
choke me
1089
3174
#else
1090
 
$ac_func();
1091
 
#endif
1092
 
 
1093
 
; return 0; }
1094
 
EOF
1095
 
if { (eval echo configure:1096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1096
 
  rm -rf conftest*
1097
 
  eval "ac_cv_func_$ac_func=yes"
1098
 
else
1099
 
  echo "configure: failed program was:" >&5
1100
 
  cat conftest.$ac_ext >&5
1101
 
  rm -rf conftest*
1102
 
  eval "ac_cv_func_$ac_func=no"
1103
 
fi
1104
 
rm -f conftest*
1105
 
fi
1106
 
 
1107
 
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1108
 
  echo "$ac_t""yes" 1>&6
1109
 
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1110
 
  cat >> confdefs.h <<EOF
1111
 
#define $ac_tr_func 1
1112
 
EOF
1113
 
 
1114
 
else
1115
 
  echo "$ac_t""no" 1>&6
1116
 
LIBOBJ="$LIBOBJ ../common/setenv.o"
 
3175
char (*f) () = $ac_func;
 
3176
#endif
 
3177
#ifdef __cplusplus
 
3178
}
 
3179
#endif
 
3180
 
 
3181
int
 
3182
main ()
 
3183
{
 
3184
return f != $ac_func;
 
3185
  ;
 
3186
  return 0;
 
3187
}
 
3188
_ACEOF
 
3189
rm -f conftest.$ac_objext conftest$ac_exeext
 
3190
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3191
  (eval $ac_link) 2>&5
 
3192
  ac_status=$?
 
3193
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3194
  (exit $ac_status); } &&
 
3195
         { ac_try='test -s conftest$ac_exeext'
 
3196
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3197
  (eval $ac_try) 2>&5
 
3198
  ac_status=$?
 
3199
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3200
  (exit $ac_status); }; }; then
 
3201
  eval "$as_ac_var=yes"
 
3202
else
 
3203
  echo "$as_me: failed program was:" >&5
 
3204
sed 's/^/| /' conftest.$ac_ext >&5
 
3205
 
 
3206
eval "$as_ac_var=no"
 
3207
fi
 
3208
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
3209
fi
 
3210
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
3211
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
3212
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
3213
  cat >>confdefs.h <<_ACEOF
 
3214
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
3215
_ACEOF
 
3216
 
 
3217
else
 
3218
  LIBOBJ="$LIBOBJ ../common/setenv.o"
1117
3219
        BUILDOBJ="$BUILDOBJ setenv.o"
1118
3220
 
1119
3221
fi
1120
3222
done
1121
3223
 
 
3224
 
1122
3225
for ac_func in inet_aton
1123
3226
do
1124
 
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1125
 
echo "configure:1126: checking for $ac_func" >&5
1126
 
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1127
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
3227
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
3228
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
3229
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
3230
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
3231
  echo $ECHO_N "(cached) $ECHO_C" >&6
1128
3232
else
1129
 
  cat > conftest.$ac_ext <<EOF
1130
 
#line 1131 "configure"
1131
 
#include "confdefs.h"
 
3233
  cat >conftest.$ac_ext <<_ACEOF
 
3234
#line $LINENO "configure"
 
3235
/* confdefs.h.  */
 
3236
_ACEOF
 
3237
cat confdefs.h >>conftest.$ac_ext
 
3238
cat >>conftest.$ac_ext <<_ACEOF
 
3239
/* end confdefs.h.  */
1132
3240
/* System header to define __stub macros and hopefully few prototypes,
1133
 
    which can conflict with char $ac_func(); below.  */
1134
 
#include <assert.h>
 
3241
    which can conflict with char $ac_func (); below.
 
3242
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
3243
    <limits.h> exists even on freestanding compilers.  */
 
3244
#ifdef __STDC__
 
3245
# include <limits.h>
 
3246
#else
 
3247
# include <assert.h>
 
3248
#endif
1135
3249
/* Override any gcc2 internal prototype to avoid an error.  */
 
3250
#ifdef __cplusplus
 
3251
extern "C"
 
3252
{
 
3253
#endif
1136
3254
/* We use char because int might match the return type of a gcc2
1137
 
    builtin and then its argument prototype would still apply.  */
1138
 
char $ac_func();
1139
 
 
1140
 
int main() {
1141
 
 
 
3255
   builtin and then its argument prototype would still apply.  */
 
3256
char $ac_func ();
1142
3257
/* The GNU C library defines this for functions which it implements
1143
3258
    to always fail with ENOSYS.  Some functions are actually named
1144
3259
    something starting with __ and the normal name is an alias.  */
1145
3260
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1146
3261
choke me
1147
3262
#else
1148
 
$ac_func();
1149
 
#endif
1150
 
 
1151
 
; return 0; }
1152
 
EOF
1153
 
if { (eval echo configure:1154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1154
 
  rm -rf conftest*
1155
 
  eval "ac_cv_func_$ac_func=yes"
1156
 
else
1157
 
  echo "configure: failed program was:" >&5
1158
 
  cat conftest.$ac_ext >&5
1159
 
  rm -rf conftest*
1160
 
  eval "ac_cv_func_$ac_func=no"
1161
 
fi
1162
 
rm -f conftest*
1163
 
fi
1164
 
 
1165
 
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1166
 
  echo "$ac_t""yes" 1>&6
1167
 
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1168
 
  cat >> confdefs.h <<EOF
1169
 
#define $ac_tr_func 1
1170
 
EOF
1171
 
 
1172
 
else
1173
 
  echo "$ac_t""no" 1>&6
1174
 
LIBOBJ="$LIBOBJ ../common/inet_aton.o"
 
3263
char (*f) () = $ac_func;
 
3264
#endif
 
3265
#ifdef __cplusplus
 
3266
}
 
3267
#endif
 
3268
 
 
3269
int
 
3270
main ()
 
3271
{
 
3272
return f != $ac_func;
 
3273
  ;
 
3274
  return 0;
 
3275
}
 
3276
_ACEOF
 
3277
rm -f conftest.$ac_objext conftest$ac_exeext
 
3278
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3279
  (eval $ac_link) 2>&5
 
3280
  ac_status=$?
 
3281
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3282
  (exit $ac_status); } &&
 
3283
         { ac_try='test -s conftest$ac_exeext'
 
3284
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3285
  (eval $ac_try) 2>&5
 
3286
  ac_status=$?
 
3287
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3288
  (exit $ac_status); }; }; then
 
3289
  eval "$as_ac_var=yes"
 
3290
else
 
3291
  echo "$as_me: failed program was:" >&5
 
3292
sed 's/^/| /' conftest.$ac_ext >&5
 
3293
 
 
3294
eval "$as_ac_var=no"
 
3295
fi
 
3296
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
3297
fi
 
3298
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
3299
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
3300
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
3301
  cat >>confdefs.h <<_ACEOF
 
3302
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
3303
_ACEOF
 
3304
 
 
3305
else
 
3306
  LIBOBJ="$LIBOBJ ../common/inet_aton.o"
1175
3307
        BUILDOBJ="$BUILDOBJ inet_aton.o"
1176
3308
 
1177
3309
fi
1178
3310
done
1179
3311
 
 
3312
 
1180
3313
for ac_func in strerror
1181
3314
do
1182
 
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1183
 
echo "configure:1184: checking for $ac_func" >&5
1184
 
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1185
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
3315
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
3316
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
3317
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
3318
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
3319
  echo $ECHO_N "(cached) $ECHO_C" >&6
1186
3320
else
1187
 
  cat > conftest.$ac_ext <<EOF
1188
 
#line 1189 "configure"
1189
 
#include "confdefs.h"
 
3321
  cat >conftest.$ac_ext <<_ACEOF
 
3322
#line $LINENO "configure"
 
3323
/* confdefs.h.  */
 
3324
_ACEOF
 
3325
cat confdefs.h >>conftest.$ac_ext
 
3326
cat >>conftest.$ac_ext <<_ACEOF
 
3327
/* end confdefs.h.  */
1190
3328
/* System header to define __stub macros and hopefully few prototypes,
1191
 
    which can conflict with char $ac_func(); below.  */
1192
 
#include <assert.h>
 
3329
    which can conflict with char $ac_func (); below.
 
3330
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
3331
    <limits.h> exists even on freestanding compilers.  */
 
3332
#ifdef __STDC__
 
3333
# include <limits.h>
 
3334
#else
 
3335
# include <assert.h>
 
3336
#endif
1193
3337
/* Override any gcc2 internal prototype to avoid an error.  */
 
3338
#ifdef __cplusplus
 
3339
extern "C"
 
3340
{
 
3341
#endif
1194
3342
/* We use char because int might match the return type of a gcc2
1195
 
    builtin and then its argument prototype would still apply.  */
1196
 
char $ac_func();
1197
 
 
1198
 
int main() {
1199
 
 
 
3343
   builtin and then its argument prototype would still apply.  */
 
3344
char $ac_func ();
1200
3345
/* The GNU C library defines this for functions which it implements
1201
3346
    to always fail with ENOSYS.  Some functions are actually named
1202
3347
    something starting with __ and the normal name is an alias.  */
1203
3348
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1204
3349
choke me
1205
3350
#else
1206
 
$ac_func();
1207
 
#endif
1208
 
 
1209
 
; return 0; }
1210
 
EOF
1211
 
if { (eval echo configure:1212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1212
 
  rm -rf conftest*
1213
 
  eval "ac_cv_func_$ac_func=yes"
1214
 
else
1215
 
  echo "configure: failed program was:" >&5
1216
 
  cat conftest.$ac_ext >&5
1217
 
  rm -rf conftest*
1218
 
  eval "ac_cv_func_$ac_func=no"
1219
 
fi
1220
 
rm -f conftest*
1221
 
fi
1222
 
 
1223
 
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1224
 
  echo "$ac_t""yes" 1>&6
1225
 
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1226
 
  cat >> confdefs.h <<EOF
1227
 
#define $ac_tr_func 1
1228
 
EOF
1229
 
 
1230
 
else
1231
 
  echo "$ac_t""no" 1>&6
1232
 
LIBOBJ="$LIBOBJ ../common/strerror.o"
 
3351
char (*f) () = $ac_func;
 
3352
#endif
 
3353
#ifdef __cplusplus
 
3354
}
 
3355
#endif
 
3356
 
 
3357
int
 
3358
main ()
 
3359
{
 
3360
return f != $ac_func;
 
3361
  ;
 
3362
  return 0;
 
3363
}
 
3364
_ACEOF
 
3365
rm -f conftest.$ac_objext conftest$ac_exeext
 
3366
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3367
  (eval $ac_link) 2>&5
 
3368
  ac_status=$?
 
3369
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3370
  (exit $ac_status); } &&
 
3371
         { ac_try='test -s conftest$ac_exeext'
 
3372
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3373
  (eval $ac_try) 2>&5
 
3374
  ac_status=$?
 
3375
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3376
  (exit $ac_status); }; }; then
 
3377
  eval "$as_ac_var=yes"
 
3378
else
 
3379
  echo "$as_me: failed program was:" >&5
 
3380
sed 's/^/| /' conftest.$ac_ext >&5
 
3381
 
 
3382
eval "$as_ac_var=no"
 
3383
fi
 
3384
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
3385
fi
 
3386
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
3387
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
3388
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
3389
  cat >>confdefs.h <<_ACEOF
 
3390
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
3391
_ACEOF
 
3392
 
 
3393
else
 
3394
  LIBOBJ="$LIBOBJ ../common/strerror.o"
1233
3395
        BUILDOBJ="$BUILDOBJ strerror.o"
1234
3396
 
1235
3397
fi
1236
3398
done
1237
3399
 
 
3400
 
1238
3401
for ac_func in strlcpy
1239
3402
do
1240
 
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1241
 
echo "configure:1242: checking for $ac_func" >&5
1242
 
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1243
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
3403
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
3404
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
3405
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
3406
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
3407
  echo $ECHO_N "(cached) $ECHO_C" >&6
1244
3408
else
1245
 
  cat > conftest.$ac_ext <<EOF
1246
 
#line 1247 "configure"
1247
 
#include "confdefs.h"
 
3409
  cat >conftest.$ac_ext <<_ACEOF
 
3410
#line $LINENO "configure"
 
3411
/* confdefs.h.  */
 
3412
_ACEOF
 
3413
cat confdefs.h >>conftest.$ac_ext
 
3414
cat >>conftest.$ac_ext <<_ACEOF
 
3415
/* end confdefs.h.  */
1248
3416
/* System header to define __stub macros and hopefully few prototypes,
1249
 
    which can conflict with char $ac_func(); below.  */
1250
 
#include <assert.h>
 
3417
    which can conflict with char $ac_func (); below.
 
3418
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
3419
    <limits.h> exists even on freestanding compilers.  */
 
3420
#ifdef __STDC__
 
3421
# include <limits.h>
 
3422
#else
 
3423
# include <assert.h>
 
3424
#endif
1251
3425
/* Override any gcc2 internal prototype to avoid an error.  */
 
3426
#ifdef __cplusplus
 
3427
extern "C"
 
3428
{
 
3429
#endif
1252
3430
/* We use char because int might match the return type of a gcc2
1253
 
    builtin and then its argument prototype would still apply.  */
1254
 
char $ac_func();
1255
 
 
1256
 
int main() {
1257
 
 
 
3431
   builtin and then its argument prototype would still apply.  */
 
3432
char $ac_func ();
1258
3433
/* The GNU C library defines this for functions which it implements
1259
3434
    to always fail with ENOSYS.  Some functions are actually named
1260
3435
    something starting with __ and the normal name is an alias.  */
1261
3436
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1262
3437
choke me
1263
3438
#else
1264
 
$ac_func();
1265
 
#endif
1266
 
 
1267
 
; return 0; }
1268
 
EOF
1269
 
if { (eval echo configure:1270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1270
 
  rm -rf conftest*
1271
 
  eval "ac_cv_func_$ac_func=yes"
1272
 
else
1273
 
  echo "configure: failed program was:" >&5
1274
 
  cat conftest.$ac_ext >&5
1275
 
  rm -rf conftest*
1276
 
  eval "ac_cv_func_$ac_func=no"
1277
 
fi
1278
 
rm -f conftest*
1279
 
fi
1280
 
 
1281
 
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1282
 
  echo "$ac_t""yes" 1>&6
1283
 
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1284
 
  cat >> confdefs.h <<EOF
1285
 
#define $ac_tr_func 1
1286
 
EOF
1287
 
 
1288
 
else
1289
 
  echo "$ac_t""no" 1>&6
1290
 
LIBOBJ="$LIBOBJ ../common/strlcpy.o"
 
3439
char (*f) () = $ac_func;
 
3440
#endif
 
3441
#ifdef __cplusplus
 
3442
}
 
3443
#endif
 
3444
 
 
3445
int
 
3446
main ()
 
3447
{
 
3448
return f != $ac_func;
 
3449
  ;
 
3450
  return 0;
 
3451
}
 
3452
_ACEOF
 
3453
rm -f conftest.$ac_objext conftest$ac_exeext
 
3454
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3455
  (eval $ac_link) 2>&5
 
3456
  ac_status=$?
 
3457
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3458
  (exit $ac_status); } &&
 
3459
         { ac_try='test -s conftest$ac_exeext'
 
3460
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3461
  (eval $ac_try) 2>&5
 
3462
  ac_status=$?
 
3463
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3464
  (exit $ac_status); }; }; then
 
3465
  eval "$as_ac_var=yes"
 
3466
else
 
3467
  echo "$as_me: failed program was:" >&5
 
3468
sed 's/^/| /' conftest.$ac_ext >&5
 
3469
 
 
3470
eval "$as_ac_var=no"
 
3471
fi
 
3472
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
3473
fi
 
3474
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
3475
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
3476
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
3477
  cat >>confdefs.h <<_ACEOF
 
3478
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
3479
_ACEOF
 
3480
 
 
3481
else
 
3482
  STRLCPY="../common/strlcpy.o"
1291
3483
        BUILDOBJ="$BUILDOBJ strlcpy.o"
1292
3484
 
1293
3485
fi
1294
3486
done
1295
3487
 
1296
 
for ac_func in strlcat
1297
 
do
1298
 
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1299
 
echo "configure:1300: checking for $ac_func" >&5
1300
 
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1301
 
  echo $ac_n "(cached) $ac_c" 1>&6
1302
 
else
1303
 
  cat > conftest.$ac_ext <<EOF
1304
 
#line 1305 "configure"
1305
 
#include "confdefs.h"
1306
 
/* System header to define __stub macros and hopefully few prototypes,
1307
 
    which can conflict with char $ac_func(); below.  */
1308
 
#include <assert.h>
1309
 
/* Override any gcc2 internal prototype to avoid an error.  */
1310
 
/* We use char because int might match the return type of a gcc2
1311
 
    builtin and then its argument prototype would still apply.  */
1312
 
char $ac_func();
1313
 
 
1314
 
int main() {
1315
 
 
1316
 
/* The GNU C library defines this for functions which it implements
1317
 
    to always fail with ENOSYS.  Some functions are actually named
1318
 
    something starting with __ and the normal name is an alias.  */
1319
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1320
 
choke me
1321
 
#else
1322
 
$ac_func();
1323
 
#endif
1324
 
 
1325
 
; return 0; }
1326
 
EOF
1327
 
if { (eval echo configure:1328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1328
 
  rm -rf conftest*
1329
 
  eval "ac_cv_func_$ac_func=yes"
1330
 
else
1331
 
  echo "configure: failed program was:" >&5
1332
 
  cat conftest.$ac_ext >&5
1333
 
  rm -rf conftest*
1334
 
  eval "ac_cv_func_$ac_func=no"
1335
 
fi
1336
 
rm -f conftest*
1337
 
fi
1338
 
 
1339
 
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1340
 
  echo "$ac_t""yes" 1>&6
1341
 
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1342
 
  cat >> confdefs.h <<EOF
1343
 
#define $ac_tr_func 1
1344
 
EOF
1345
 
 
1346
 
else
1347
 
  echo "$ac_t""no" 1>&6
1348
 
LIBOBJ="$LIBOBJ ../common/strlcat.o"
1349
 
        BUILDOBJ="$BUILDOBJ strlcat.o"
1350
 
 
1351
 
fi
1352
 
done
1353
3488
 
1354
3489
for ac_func in atexit
1355
3490
do
1356
 
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1357
 
echo "configure:1358: checking for $ac_func" >&5
1358
 
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1359
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
3491
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
3492
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
3493
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
3494
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
3495
  echo $ECHO_N "(cached) $ECHO_C" >&6
1360
3496
else
1361
 
  cat > conftest.$ac_ext <<EOF
1362
 
#line 1363 "configure"
1363
 
#include "confdefs.h"
 
3497
  cat >conftest.$ac_ext <<_ACEOF
 
3498
#line $LINENO "configure"
 
3499
/* confdefs.h.  */
 
3500
_ACEOF
 
3501
cat confdefs.h >>conftest.$ac_ext
 
3502
cat >>conftest.$ac_ext <<_ACEOF
 
3503
/* end confdefs.h.  */
1364
3504
/* System header to define __stub macros and hopefully few prototypes,
1365
 
    which can conflict with char $ac_func(); below.  */
1366
 
#include <assert.h>
 
3505
    which can conflict with char $ac_func (); below.
 
3506
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
3507
    <limits.h> exists even on freestanding compilers.  */
 
3508
#ifdef __STDC__
 
3509
# include <limits.h>
 
3510
#else
 
3511
# include <assert.h>
 
3512
#endif
1367
3513
/* Override any gcc2 internal prototype to avoid an error.  */
 
3514
#ifdef __cplusplus
 
3515
extern "C"
 
3516
{
 
3517
#endif
1368
3518
/* We use char because int might match the return type of a gcc2
1369
 
    builtin and then its argument prototype would still apply.  */
1370
 
char $ac_func();
1371
 
 
1372
 
int main() {
1373
 
 
 
3519
   builtin and then its argument prototype would still apply.  */
 
3520
char $ac_func ();
1374
3521
/* The GNU C library defines this for functions which it implements
1375
3522
    to always fail with ENOSYS.  Some functions are actually named
1376
3523
    something starting with __ and the normal name is an alias.  */
1377
3524
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1378
3525
choke me
1379
3526
#else
1380
 
$ac_func();
1381
 
#endif
1382
 
 
1383
 
; return 0; }
1384
 
EOF
1385
 
if { (eval echo configure:1386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1386
 
  rm -rf conftest*
1387
 
  eval "ac_cv_func_$ac_func=yes"
1388
 
else
1389
 
  echo "configure: failed program was:" >&5
1390
 
  cat conftest.$ac_ext >&5
1391
 
  rm -rf conftest*
1392
 
  eval "ac_cv_func_$ac_func=no"
1393
 
fi
1394
 
rm -f conftest*
1395
 
fi
1396
 
 
1397
 
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1398
 
  echo "$ac_t""yes" 1>&6
1399
 
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1400
 
  cat >> confdefs.h <<EOF
1401
 
#define $ac_tr_func 1
1402
 
EOF
1403
 
 
1404
 
else
1405
 
  echo "$ac_t""no" 1>&6
1406
 
LIBOBJ="$LIBOBJ ../common/atexit.o"
 
3527
char (*f) () = $ac_func;
 
3528
#endif
 
3529
#ifdef __cplusplus
 
3530
}
 
3531
#endif
 
3532
 
 
3533
int
 
3534
main ()
 
3535
{
 
3536
return f != $ac_func;
 
3537
  ;
 
3538
  return 0;
 
3539
}
 
3540
_ACEOF
 
3541
rm -f conftest.$ac_objext conftest$ac_exeext
 
3542
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3543
  (eval $ac_link) 2>&5
 
3544
  ac_status=$?
 
3545
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3546
  (exit $ac_status); } &&
 
3547
         { ac_try='test -s conftest$ac_exeext'
 
3548
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3549
  (eval $ac_try) 2>&5
 
3550
  ac_status=$?
 
3551
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3552
  (exit $ac_status); }; }; then
 
3553
  eval "$as_ac_var=yes"
 
3554
else
 
3555
  echo "$as_me: failed program was:" >&5
 
3556
sed 's/^/| /' conftest.$ac_ext >&5
 
3557
 
 
3558
eval "$as_ac_var=no"
 
3559
fi
 
3560
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
3561
fi
 
3562
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
3563
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
3564
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
3565
  cat >>confdefs.h <<_ACEOF
 
3566
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
3567
_ACEOF
 
3568
 
 
3569
else
 
3570
 
 
3571
        LIBOBJ="$LIBOBJ ../common/atexit.o"
1407
3572
        BUILDOBJ="$BUILDOBJ atexit.o"
1408
 
        for ac_func in on_exit
 
3573
 
 
3574
for ac_func in on_exit
1409
3575
do
1410
 
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1411
 
echo "configure:1412: checking for $ac_func" >&5
1412
 
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1413
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
3576
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
3577
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
3578
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
3579
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
3580
  echo $ECHO_N "(cached) $ECHO_C" >&6
1414
3581
else
1415
 
  cat > conftest.$ac_ext <<EOF
1416
 
#line 1417 "configure"
1417
 
#include "confdefs.h"
 
3582
  cat >conftest.$ac_ext <<_ACEOF
 
3583
#line $LINENO "configure"
 
3584
/* confdefs.h.  */
 
3585
_ACEOF
 
3586
cat confdefs.h >>conftest.$ac_ext
 
3587
cat >>conftest.$ac_ext <<_ACEOF
 
3588
/* end confdefs.h.  */
1418
3589
/* System header to define __stub macros and hopefully few prototypes,
1419
 
    which can conflict with char $ac_func(); below.  */
1420
 
#include <assert.h>
 
3590
    which can conflict with char $ac_func (); below.
 
3591
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
3592
    <limits.h> exists even on freestanding compilers.  */
 
3593
#ifdef __STDC__
 
3594
# include <limits.h>
 
3595
#else
 
3596
# include <assert.h>
 
3597
#endif
1421
3598
/* Override any gcc2 internal prototype to avoid an error.  */
 
3599
#ifdef __cplusplus
 
3600
extern "C"
 
3601
{
 
3602
#endif
1422
3603
/* We use char because int might match the return type of a gcc2
1423
 
    builtin and then its argument prototype would still apply.  */
1424
 
char $ac_func();
1425
 
 
1426
 
int main() {
1427
 
 
 
3604
   builtin and then its argument prototype would still apply.  */
 
3605
char $ac_func ();
1428
3606
/* The GNU C library defines this for functions which it implements
1429
3607
    to always fail with ENOSYS.  Some functions are actually named
1430
3608
    something starting with __ and the normal name is an alias.  */
1431
3609
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1432
3610
choke me
1433
3611
#else
1434
 
$ac_func();
1435
 
#endif
1436
 
 
1437
 
; return 0; }
1438
 
EOF
1439
 
if { (eval echo configure:1440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1440
 
  rm -rf conftest*
1441
 
  eval "ac_cv_func_$ac_func=yes"
1442
 
else
1443
 
  echo "configure: failed program was:" >&5
1444
 
  cat conftest.$ac_ext >&5
1445
 
  rm -rf conftest*
1446
 
  eval "ac_cv_func_$ac_func=no"
1447
 
fi
1448
 
rm -f conftest*
1449
 
fi
1450
 
 
1451
 
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1452
 
  echo "$ac_t""yes" 1>&6
1453
 
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1454
 
  cat >> confdefs.h <<EOF
1455
 
#define $ac_tr_func 1
1456
 
EOF
1457
 
 
1458
 
else
1459
 
  echo "$ac_t""no" 1>&6
1460
 
fi
1461
 
done
1462
 
 
1463
 
 
1464
 
fi
1465
 
done
1466
 
 
 
3612
char (*f) () = $ac_func;
 
3613
#endif
 
3614
#ifdef __cplusplus
 
3615
}
 
3616
#endif
 
3617
 
 
3618
int
 
3619
main ()
 
3620
{
 
3621
return f != $ac_func;
 
3622
  ;
 
3623
  return 0;
 
3624
}
 
3625
_ACEOF
 
3626
rm -f conftest.$ac_objext conftest$ac_exeext
 
3627
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3628
  (eval $ac_link) 2>&5
 
3629
  ac_status=$?
 
3630
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3631
  (exit $ac_status); } &&
 
3632
         { ac_try='test -s conftest$ac_exeext'
 
3633
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3634
  (eval $ac_try) 2>&5
 
3635
  ac_status=$?
 
3636
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3637
  (exit $ac_status); }; }; then
 
3638
  eval "$as_ac_var=yes"
 
3639
else
 
3640
  echo "$as_me: failed program was:" >&5
 
3641
sed 's/^/| /' conftest.$ac_ext >&5
 
3642
 
 
3643
eval "$as_ac_var=no"
 
3644
fi
 
3645
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
3646
fi
 
3647
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
3648
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
3649
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
3650
  cat >>confdefs.h <<_ACEOF
 
3651
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
3652
_ACEOF
 
3653
 
 
3654
fi
 
3655
done
 
3656
 
 
3657
 
 
3658
fi
 
3659
done
 
3660
 
 
3661
 
 
3662
if test -z "$AR" ; then
 
3663
        MISC_UPSCLI_OBJ="upsclient.o ../common/parseconf.o"
 
3664
        MISC_UPSCLI_LIBOBJ="upsclient.o parseconf.o"
 
3665
else
 
3666
        MISC_UPSCLI_OBJ="libupsclient.a"
 
3667
        MISC_UPSCLI_LIBOBJ="-lupsclient"
 
3668
fi
1467
3669
 
1468
3670
#
1469
 
# Only use -Wall when compiling with gcc 
 
3671
# Only use -Wall when compiling with gcc
1470
3672
#
1471
3673
if ( test "x$GCC" = "xyes" )
1472
3674
then
1473
3675
  CFLAGS="$CFLAGS -Wall"
1474
 
fi  
 
3676
fi
 
3677
 
 
3678
# Endianness handling, using default behavior
 
3679
# eg defines WORDS_BIGENDIAN if BigEnd,
 
3680
# nothing if LittleEnd, abort otherwise
 
3681
echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
 
3682
echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
 
3683
if test "${ac_cv_c_bigendian+set}" = set; then
 
3684
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3685
else
 
3686
  # See if sys/param.h defines the BYTE_ORDER macro.
 
3687
cat >conftest.$ac_ext <<_ACEOF
 
3688
#line $LINENO "configure"
 
3689
/* confdefs.h.  */
 
3690
_ACEOF
 
3691
cat confdefs.h >>conftest.$ac_ext
 
3692
cat >>conftest.$ac_ext <<_ACEOF
 
3693
/* end confdefs.h.  */
 
3694
#include <sys/types.h>
 
3695
#include <sys/param.h>
 
3696
 
 
3697
int
 
3698
main ()
 
3699
{
 
3700
#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
 
3701
 bogus endian macros
 
3702
#endif
 
3703
 
 
3704
  ;
 
3705
  return 0;
 
3706
}
 
3707
_ACEOF
 
3708
rm -f conftest.$ac_objext
 
3709
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3710
  (eval $ac_compile) 2>&5
 
3711
  ac_status=$?
 
3712
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3713
  (exit $ac_status); } &&
 
3714
         { ac_try='test -s conftest.$ac_objext'
 
3715
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3716
  (eval $ac_try) 2>&5
 
3717
  ac_status=$?
 
3718
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3719
  (exit $ac_status); }; }; then
 
3720
  # It does; now see whether it defined to BIG_ENDIAN or not.
 
3721
cat >conftest.$ac_ext <<_ACEOF
 
3722
#line $LINENO "configure"
 
3723
/* confdefs.h.  */
 
3724
_ACEOF
 
3725
cat confdefs.h >>conftest.$ac_ext
 
3726
cat >>conftest.$ac_ext <<_ACEOF
 
3727
/* end confdefs.h.  */
 
3728
#include <sys/types.h>
 
3729
#include <sys/param.h>
 
3730
 
 
3731
int
 
3732
main ()
 
3733
{
 
3734
#if BYTE_ORDER != BIG_ENDIAN
 
3735
 not big endian
 
3736
#endif
 
3737
 
 
3738
  ;
 
3739
  return 0;
 
3740
}
 
3741
_ACEOF
 
3742
rm -f conftest.$ac_objext
 
3743
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3744
  (eval $ac_compile) 2>&5
 
3745
  ac_status=$?
 
3746
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3747
  (exit $ac_status); } &&
 
3748
         { ac_try='test -s conftest.$ac_objext'
 
3749
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3750
  (eval $ac_try) 2>&5
 
3751
  ac_status=$?
 
3752
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3753
  (exit $ac_status); }; }; then
 
3754
  ac_cv_c_bigendian=yes
 
3755
else
 
3756
  echo "$as_me: failed program was:" >&5
 
3757
sed 's/^/| /' conftest.$ac_ext >&5
 
3758
 
 
3759
ac_cv_c_bigendian=no
 
3760
fi
 
3761
rm -f conftest.$ac_objext conftest.$ac_ext
 
3762
else
 
3763
  echo "$as_me: failed program was:" >&5
 
3764
sed 's/^/| /' conftest.$ac_ext >&5
 
3765
 
 
3766
# It does not; compile a test program.
 
3767
if test "$cross_compiling" = yes; then
 
3768
  # try to guess the endianness by grepping values into an object file
 
3769
  ac_cv_c_bigendian=unknown
 
3770
  cat >conftest.$ac_ext <<_ACEOF
 
3771
#line $LINENO "configure"
 
3772
/* confdefs.h.  */
 
3773
_ACEOF
 
3774
cat confdefs.h >>conftest.$ac_ext
 
3775
cat >>conftest.$ac_ext <<_ACEOF
 
3776
/* end confdefs.h.  */
 
3777
short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
 
3778
short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
 
3779
void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
 
3780
short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
 
3781
short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
 
3782
void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
 
3783
int
 
3784
main ()
 
3785
{
 
3786
 _ascii (); _ebcdic ();
 
3787
  ;
 
3788
  return 0;
 
3789
}
 
3790
_ACEOF
 
3791
rm -f conftest.$ac_objext
 
3792
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3793
  (eval $ac_compile) 2>&5
 
3794
  ac_status=$?
 
3795
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3796
  (exit $ac_status); } &&
 
3797
         { ac_try='test -s conftest.$ac_objext'
 
3798
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3799
  (eval $ac_try) 2>&5
 
3800
  ac_status=$?
 
3801
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3802
  (exit $ac_status); }; }; then
 
3803
  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
 
3804
  ac_cv_c_bigendian=yes
 
3805
fi
 
3806
if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
 
3807
  if test "$ac_cv_c_bigendian" = unknown; then
 
3808
    ac_cv_c_bigendian=no
 
3809
  else
 
3810
    # finding both strings is unlikely to happen, but who knows?
 
3811
    ac_cv_c_bigendian=unknown
 
3812
  fi
 
3813
fi
 
3814
else
 
3815
  echo "$as_me: failed program was:" >&5
 
3816
sed 's/^/| /' conftest.$ac_ext >&5
 
3817
 
 
3818
fi
 
3819
rm -f conftest.$ac_objext conftest.$ac_ext
 
3820
else
 
3821
  cat >conftest.$ac_ext <<_ACEOF
 
3822
#line $LINENO "configure"
 
3823
/* confdefs.h.  */
 
3824
_ACEOF
 
3825
cat confdefs.h >>conftest.$ac_ext
 
3826
cat >>conftest.$ac_ext <<_ACEOF
 
3827
/* end confdefs.h.  */
 
3828
int
 
3829
main ()
 
3830
{
 
3831
  /* Are we little or big endian?  From Harbison&Steele.  */
 
3832
  union
 
3833
  {
 
3834
    long l;
 
3835
    char c[sizeof (long)];
 
3836
  } u;
 
3837
  u.l = 1;
 
3838
  exit (u.c[sizeof (long) - 1] == 1);
 
3839
}
 
3840
_ACEOF
 
3841
rm -f conftest$ac_exeext
 
3842
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3843
  (eval $ac_link) 2>&5
 
3844
  ac_status=$?
 
3845
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3846
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
3847
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3848
  (eval $ac_try) 2>&5
 
3849
  ac_status=$?
 
3850
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3851
  (exit $ac_status); }; }; then
 
3852
  ac_cv_c_bigendian=no
 
3853
else
 
3854
  echo "$as_me: program exited with status $ac_status" >&5
 
3855
echo "$as_me: failed program was:" >&5
 
3856
sed 's/^/| /' conftest.$ac_ext >&5
 
3857
 
 
3858
( exit $ac_status )
 
3859
ac_cv_c_bigendian=yes
 
3860
fi
 
3861
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
3862
fi
 
3863
fi
 
3864
rm -f conftest.$ac_objext conftest.$ac_ext
 
3865
fi
 
3866
echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
 
3867
echo "${ECHO_T}$ac_cv_c_bigendian" >&6
 
3868
case $ac_cv_c_bigendian in
 
3869
  yes)
 
3870
 
 
3871
cat >>confdefs.h <<\_ACEOF
 
3872
#define WORDS_BIGENDIAN 1
 
3873
_ACEOF
 
3874
 ;;
 
3875
  no)
 
3876
     ;;
 
3877
  *)
 
3878
    { { echo "$as_me:$LINENO: error: unknown endianness
 
3879
presetting ac_cv_c_bigendian=no (or yes) will help" >&5
 
3880
echo "$as_me: error: unknown endianness
 
3881
presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
 
3882
   { (exit 1); exit 1; }; } ;;
 
3883
esac
1475
3884
 
1476
3885
 
1477
3886
# optind handling:
1478
3887
# need to check if unistd.h is enough, else try getopt.h, else need decls
1479
 
echo $ac_n "checking for getopt declarations""... $ac_c" 1>&6
1480
 
echo "configure:1481: checking for getopt declarations" >&5
1481
 
cat > conftest.$ac_ext <<EOF
1482
 
#line 1483 "configure"
1483
 
#include "confdefs.h"
 
3888
echo "$as_me:$LINENO: checking for getopt declarations" >&5
 
3889
echo $ECHO_N "checking for getopt declarations... $ECHO_C" >&6
 
3890
cat >conftest.$ac_ext <<_ACEOF
 
3891
#line $LINENO "configure"
 
3892
/* confdefs.h.  */
 
3893
_ACEOF
 
3894
cat confdefs.h >>conftest.$ac_ext
 
3895
cat >>conftest.$ac_ext <<_ACEOF
 
3896
/* end confdefs.h.  */
1484
3897
#include <unistd.h>
1485
 
int main() {
 
3898
int
 
3899
main ()
 
3900
{
1486
3901
int i = optind;
1487
 
; return 0; }
1488
 
EOF
1489
 
if { (eval echo configure:1490: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1490
 
  rm -rf conftest*
 
3902
  ;
 
3903
  return 0;
 
3904
}
 
3905
_ACEOF
 
3906
rm -f conftest.$ac_objext
 
3907
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3908
  (eval $ac_compile) 2>&5
 
3909
  ac_status=$?
 
3910
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3911
  (exit $ac_status); } &&
 
3912
         { ac_try='test -s conftest.$ac_objext'
 
3913
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3914
  (eval $ac_try) 2>&5
 
3915
  ac_status=$?
 
3916
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3917
  (exit $ac_status); }; }; then
1491
3918
  nut_getopt_decl_in_unistd=yes
1492
3919
else
1493
 
  echo "configure: failed program was:" >&5
1494
 
  cat conftest.$ac_ext >&5
1495
 
  rm -rf conftest*
1496
 
  nut_getopt_decl_in_unistd=no
 
3920
  echo "$as_me: failed program was:" >&5
 
3921
sed 's/^/| /' conftest.$ac_ext >&5
 
3922
 
 
3923
nut_getopt_decl_in_unistd=no
1497
3924
fi
1498
 
rm -f conftest*
 
3925
rm -f conftest.$ac_objext conftest.$ac_ext
1499
3926
if test $nut_getopt_decl_in_unistd = yes; then
1500
 
  echo "$ac_t""in unistd.h" 1>&6
1501
 
else
1502
 
  ac_safe=`echo "getopt.h" | sed 'y%./+-%__p_%'`
1503
 
echo $ac_n "checking for getopt.h""... $ac_c" 1>&6
1504
 
echo "configure:1505: checking for getopt.h" >&5
1505
 
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1506
 
  echo $ac_n "(cached) $ac_c" 1>&6
1507
 
else
1508
 
  cat > conftest.$ac_ext <<EOF
1509
 
#line 1510 "configure"
1510
 
#include "confdefs.h"
1511
 
#include <getopt.h>
1512
 
EOF
1513
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1514
 
{ (eval echo configure:1515: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1515
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1516
 
if test -z "$ac_err"; then
1517
 
  rm -rf conftest*
1518
 
  eval "ac_cv_header_$ac_safe=yes"
1519
 
else
1520
 
  echo "$ac_err" >&5
1521
 
  echo "configure: failed program was:" >&5
1522
 
  cat conftest.$ac_ext >&5
1523
 
  rm -rf conftest*
1524
 
  eval "ac_cv_header_$ac_safe=no"
1525
 
fi
1526
 
rm -f conftest*
1527
 
fi
1528
 
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1529
 
  echo "$ac_t""yes" 1>&6
 
3927
  echo "$as_me:$LINENO: result: in unistd.h" >&5
 
3928
echo "${ECHO_T}in unistd.h" >&6
 
3929
else
 
3930
 
 
3931
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
3932
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
 
3933
if test "${ac_cv_header_stdc+set}" = set; then
 
3934
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3935
else
 
3936
  cat >conftest.$ac_ext <<_ACEOF
 
3937
#line $LINENO "configure"
 
3938
/* confdefs.h.  */
 
3939
_ACEOF
 
3940
cat confdefs.h >>conftest.$ac_ext
 
3941
cat >>conftest.$ac_ext <<_ACEOF
 
3942
/* end confdefs.h.  */
 
3943
#include <stdlib.h>
 
3944
#include <stdarg.h>
 
3945
#include <string.h>
 
3946
#include <float.h>
 
3947
 
 
3948
int
 
3949
main ()
 
3950
{
 
3951
 
 
3952
  ;
 
3953
  return 0;
 
3954
}
 
3955
_ACEOF
 
3956
rm -f conftest.$ac_objext
 
3957
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3958
  (eval $ac_compile) 2>&5
 
3959
  ac_status=$?
 
3960
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3961
  (exit $ac_status); } &&
 
3962
         { ac_try='test -s conftest.$ac_objext'
 
3963
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3964
  (eval $ac_try) 2>&5
 
3965
  ac_status=$?
 
3966
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3967
  (exit $ac_status); }; }; then
 
3968
  ac_cv_header_stdc=yes
 
3969
else
 
3970
  echo "$as_me: failed program was:" >&5
 
3971
sed 's/^/| /' conftest.$ac_ext >&5
 
3972
 
 
3973
ac_cv_header_stdc=no
 
3974
fi
 
3975
rm -f conftest.$ac_objext conftest.$ac_ext
 
3976
 
 
3977
if test $ac_cv_header_stdc = yes; then
 
3978
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
3979
  cat >conftest.$ac_ext <<_ACEOF
 
3980
#line $LINENO "configure"
 
3981
/* confdefs.h.  */
 
3982
_ACEOF
 
3983
cat confdefs.h >>conftest.$ac_ext
 
3984
cat >>conftest.$ac_ext <<_ACEOF
 
3985
/* end confdefs.h.  */
 
3986
#include <string.h>
 
3987
 
 
3988
_ACEOF
 
3989
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
3990
  $EGREP "memchr" >/dev/null 2>&1; then
 
3991
  :
 
3992
else
 
3993
  ac_cv_header_stdc=no
 
3994
fi
 
3995
rm -f conftest*
 
3996
 
 
3997
fi
 
3998
 
 
3999
if test $ac_cv_header_stdc = yes; then
 
4000
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
4001
  cat >conftest.$ac_ext <<_ACEOF
 
4002
#line $LINENO "configure"
 
4003
/* confdefs.h.  */
 
4004
_ACEOF
 
4005
cat confdefs.h >>conftest.$ac_ext
 
4006
cat >>conftest.$ac_ext <<_ACEOF
 
4007
/* end confdefs.h.  */
 
4008
#include <stdlib.h>
 
4009
 
 
4010
_ACEOF
 
4011
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
4012
  $EGREP "free" >/dev/null 2>&1; then
 
4013
  :
 
4014
else
 
4015
  ac_cv_header_stdc=no
 
4016
fi
 
4017
rm -f conftest*
 
4018
 
 
4019
fi
 
4020
 
 
4021
if test $ac_cv_header_stdc = yes; then
 
4022
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
4023
  if test "$cross_compiling" = yes; then
 
4024
  :
 
4025
else
 
4026
  cat >conftest.$ac_ext <<_ACEOF
 
4027
#line $LINENO "configure"
 
4028
/* confdefs.h.  */
 
4029
_ACEOF
 
4030
cat confdefs.h >>conftest.$ac_ext
 
4031
cat >>conftest.$ac_ext <<_ACEOF
 
4032
/* end confdefs.h.  */
 
4033
#include <ctype.h>
 
4034
#if ((' ' & 0x0FF) == 0x020)
 
4035
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
4036
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
4037
#else
 
4038
# define ISLOWER(c) \
 
4039
                   (('a' <= (c) && (c) <= 'i') \
 
4040
                     || ('j' <= (c) && (c) <= 'r') \
 
4041
                     || ('s' <= (c) && (c) <= 'z'))
 
4042
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
4043
#endif
 
4044
 
 
4045
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
4046
int
 
4047
main ()
 
4048
{
 
4049
  int i;
 
4050
  for (i = 0; i < 256; i++)
 
4051
    if (XOR (islower (i), ISLOWER (i))
 
4052
        || toupper (i) != TOUPPER (i))
 
4053
      exit(2);
 
4054
  exit (0);
 
4055
}
 
4056
_ACEOF
 
4057
rm -f conftest$ac_exeext
 
4058
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4059
  (eval $ac_link) 2>&5
 
4060
  ac_status=$?
 
4061
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4062
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
4063
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4064
  (eval $ac_try) 2>&5
 
4065
  ac_status=$?
 
4066
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4067
  (exit $ac_status); }; }; then
 
4068
  :
 
4069
else
 
4070
  echo "$as_me: program exited with status $ac_status" >&5
 
4071
echo "$as_me: failed program was:" >&5
 
4072
sed 's/^/| /' conftest.$ac_ext >&5
 
4073
 
 
4074
( exit $ac_status )
 
4075
ac_cv_header_stdc=no
 
4076
fi
 
4077
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
4078
fi
 
4079
fi
 
4080
fi
 
4081
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
4082
echo "${ECHO_T}$ac_cv_header_stdc" >&6
 
4083
if test $ac_cv_header_stdc = yes; then
 
4084
 
 
4085
cat >>confdefs.h <<\_ACEOF
 
4086
#define STDC_HEADERS 1
 
4087
_ACEOF
 
4088
 
 
4089
fi
 
4090
 
 
4091
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
4092
 
 
4093
 
 
4094
 
 
4095
 
 
4096
 
 
4097
 
 
4098
 
 
4099
 
 
4100
 
 
4101
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
4102
                  inttypes.h stdint.h unistd.h
 
4103
do
 
4104
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
4105
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4106
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
4107
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4108
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4109
else
 
4110
  cat >conftest.$ac_ext <<_ACEOF
 
4111
#line $LINENO "configure"
 
4112
/* confdefs.h.  */
 
4113
_ACEOF
 
4114
cat confdefs.h >>conftest.$ac_ext
 
4115
cat >>conftest.$ac_ext <<_ACEOF
 
4116
/* end confdefs.h.  */
 
4117
$ac_includes_default
 
4118
 
 
4119
#include <$ac_header>
 
4120
_ACEOF
 
4121
rm -f conftest.$ac_objext
 
4122
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4123
  (eval $ac_compile) 2>&5
 
4124
  ac_status=$?
 
4125
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4126
  (exit $ac_status); } &&
 
4127
         { ac_try='test -s conftest.$ac_objext'
 
4128
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4129
  (eval $ac_try) 2>&5
 
4130
  ac_status=$?
 
4131
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4132
  (exit $ac_status); }; }; then
 
4133
  eval "$as_ac_Header=yes"
 
4134
else
 
4135
  echo "$as_me: failed program was:" >&5
 
4136
sed 's/^/| /' conftest.$ac_ext >&5
 
4137
 
 
4138
eval "$as_ac_Header=no"
 
4139
fi
 
4140
rm -f conftest.$ac_objext conftest.$ac_ext
 
4141
fi
 
4142
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
4143
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
4144
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
4145
  cat >>confdefs.h <<_ACEOF
 
4146
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
4147
_ACEOF
 
4148
 
 
4149
fi
 
4150
 
 
4151
done
 
4152
 
 
4153
 
 
4154
if test "${ac_cv_header_getopt_h+set}" = set; then
 
4155
  echo "$as_me:$LINENO: checking for getopt.h" >&5
 
4156
echo $ECHO_N "checking for getopt.h... $ECHO_C" >&6
 
4157
if test "${ac_cv_header_getopt_h+set}" = set; then
 
4158
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4159
fi
 
4160
echo "$as_me:$LINENO: result: $ac_cv_header_getopt_h" >&5
 
4161
echo "${ECHO_T}$ac_cv_header_getopt_h" >&6
 
4162
else
 
4163
  # Is the header compilable?
 
4164
echo "$as_me:$LINENO: checking getopt.h usability" >&5
 
4165
echo $ECHO_N "checking getopt.h usability... $ECHO_C" >&6
 
4166
cat >conftest.$ac_ext <<_ACEOF
 
4167
#line $LINENO "configure"
 
4168
/* confdefs.h.  */
 
4169
_ACEOF
 
4170
cat confdefs.h >>conftest.$ac_ext
 
4171
cat >>conftest.$ac_ext <<_ACEOF
 
4172
/* end confdefs.h.  */
 
4173
$ac_includes_default
 
4174
#include <getopt.h>
 
4175
_ACEOF
 
4176
rm -f conftest.$ac_objext
 
4177
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4178
  (eval $ac_compile) 2>&5
 
4179
  ac_status=$?
 
4180
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4181
  (exit $ac_status); } &&
 
4182
         { ac_try='test -s conftest.$ac_objext'
 
4183
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4184
  (eval $ac_try) 2>&5
 
4185
  ac_status=$?
 
4186
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4187
  (exit $ac_status); }; }; then
 
4188
  ac_header_compiler=yes
 
4189
else
 
4190
  echo "$as_me: failed program was:" >&5
 
4191
sed 's/^/| /' conftest.$ac_ext >&5
 
4192
 
 
4193
ac_header_compiler=no
 
4194
fi
 
4195
rm -f conftest.$ac_objext conftest.$ac_ext
 
4196
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
4197
echo "${ECHO_T}$ac_header_compiler" >&6
 
4198
 
 
4199
# Is the header present?
 
4200
echo "$as_me:$LINENO: checking getopt.h presence" >&5
 
4201
echo $ECHO_N "checking getopt.h presence... $ECHO_C" >&6
 
4202
cat >conftest.$ac_ext <<_ACEOF
 
4203
#line $LINENO "configure"
 
4204
/* confdefs.h.  */
 
4205
_ACEOF
 
4206
cat confdefs.h >>conftest.$ac_ext
 
4207
cat >>conftest.$ac_ext <<_ACEOF
 
4208
/* end confdefs.h.  */
 
4209
#include <getopt.h>
 
4210
_ACEOF
 
4211
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4212
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4213
  ac_status=$?
 
4214
  grep -v '^ *+' conftest.er1 >conftest.err
 
4215
  rm -f conftest.er1
 
4216
  cat conftest.err >&5
 
4217
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4218
  (exit $ac_status); } >/dev/null; then
 
4219
  if test -s conftest.err; then
 
4220
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4221
  else
 
4222
    ac_cpp_err=
 
4223
  fi
 
4224
else
 
4225
  ac_cpp_err=yes
 
4226
fi
 
4227
if test -z "$ac_cpp_err"; then
 
4228
  ac_header_preproc=yes
 
4229
else
 
4230
  echo "$as_me: failed program was:" >&5
 
4231
sed 's/^/| /' conftest.$ac_ext >&5
 
4232
 
 
4233
  ac_header_preproc=no
 
4234
fi
 
4235
rm -f conftest.err conftest.$ac_ext
 
4236
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
4237
echo "${ECHO_T}$ac_header_preproc" >&6
 
4238
 
 
4239
# So?  What about this header?
 
4240
case $ac_header_compiler:$ac_header_preproc in
 
4241
  yes:no )
 
4242
    { echo "$as_me:$LINENO: WARNING: getopt.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
4243
echo "$as_me: WARNING: getopt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
4244
    { echo "$as_me:$LINENO: WARNING: getopt.h: proceeding with the preprocessor's result" >&5
 
4245
echo "$as_me: WARNING: getopt.h: proceeding with the preprocessor's result" >&2;}
 
4246
    (
 
4247
      cat <<\_ASBOX
 
4248
## ------------------------------------ ##
 
4249
## Report this to bug-autoconf@gnu.org. ##
 
4250
## ------------------------------------ ##
 
4251
_ASBOX
 
4252
    ) |
 
4253
      sed "s/^/$as_me: WARNING:     /" >&2
 
4254
    ;;
 
4255
  no:yes )
 
4256
    { echo "$as_me:$LINENO: WARNING: getopt.h: present but cannot be compiled" >&5
 
4257
echo "$as_me: WARNING: getopt.h: present but cannot be compiled" >&2;}
 
4258
    { echo "$as_me:$LINENO: WARNING: getopt.h: check for missing prerequisite headers?" >&5
 
4259
echo "$as_me: WARNING: getopt.h: check for missing prerequisite headers?" >&2;}
 
4260
    { echo "$as_me:$LINENO: WARNING: getopt.h: proceeding with the preprocessor's result" >&5
 
4261
echo "$as_me: WARNING: getopt.h: proceeding with the preprocessor's result" >&2;}
 
4262
    (
 
4263
      cat <<\_ASBOX
 
4264
## ------------------------------------ ##
 
4265
## Report this to bug-autoconf@gnu.org. ##
 
4266
## ------------------------------------ ##
 
4267
_ASBOX
 
4268
    ) |
 
4269
      sed "s/^/$as_me: WARNING:     /" >&2
 
4270
    ;;
 
4271
esac
 
4272
echo "$as_me:$LINENO: checking for getopt.h" >&5
 
4273
echo $ECHO_N "checking for getopt.h... $ECHO_C" >&6
 
4274
if test "${ac_cv_header_getopt_h+set}" = set; then
 
4275
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4276
else
 
4277
  ac_cv_header_getopt_h=$ac_header_preproc
 
4278
fi
 
4279
echo "$as_me:$LINENO: result: $ac_cv_header_getopt_h" >&5
 
4280
echo "${ECHO_T}$ac_cv_header_getopt_h" >&6
 
4281
 
 
4282
fi
 
4283
if test $ac_cv_header_getopt_h = yes; then
1530
4284
  have_getopt_h=yes
1531
4285
else
1532
 
  echo "$ac_t""no" 1>&6
1533
 
have_getopt_h=
 
4286
  have_getopt_h=
1534
4287
fi
1535
4288
 
 
4289
 
1536
4290
  if test have_getopt_h = yes; then
1537
 
    cat >> confdefs.h <<\EOF
 
4291
 
 
4292
cat >>confdefs.h <<\_ACEOF
1538
4293
#define NEED_GETOPT_H 1
1539
 
EOF
 
4294
_ACEOF
1540
4295
 
1541
 
    echo "$ac_t""using getopt.h" 1>&6
 
4296
    echo "$as_me:$LINENO: result: using getopt.h" >&5
 
4297
echo "${ECHO_T}using getopt.h" >&6
1542
4298
  else
1543
 
    cat >> confdefs.h <<\EOF
 
4299
 
 
4300
cat >>confdefs.h <<\_ACEOF
1544
4301
#define NEED_GETOPT_DECLS 1
1545
 
EOF
 
4302
_ACEOF
1546
4303
 
1547
 
    echo "$ac_t""using explicit getopt declarations" 1>&6
 
4304
    echo "$as_me:$LINENO: result: using explicit getopt declarations" >&5
 
4305
echo "${ECHO_T}using explicit getopt declarations" >&6
1548
4306
  fi
1549
4307
fi
1550
4308
 
1551
4309
 
1552
4310
# FreeBSD serial locking compatibility - look for uu_lock in libutil.h
1553
4311
 
1554
 
echo $ac_n "checking whether to use uu_lock""... $ac_c" 1>&6
1555
 
echo "configure:1556: checking whether to use uu_lock" >&5
1556
 
cat > conftest.$ac_ext <<EOF
1557
 
#line 1558 "configure"
1558
 
#include "confdefs.h"
 
4312
echo "$as_me:$LINENO: checking whether to use uu_lock" >&5
 
4313
echo $ECHO_N "checking whether to use uu_lock... $ECHO_C" >&6
 
4314
cat >conftest.$ac_ext <<_ACEOF
 
4315
#line $LINENO "configure"
 
4316
/* confdefs.h.  */
 
4317
_ACEOF
 
4318
cat confdefs.h >>conftest.$ac_ext
 
4319
cat >>conftest.$ac_ext <<_ACEOF
 
4320
/* end confdefs.h.  */
1559
4321
#include <libutil.h>
1560
 
EOF
 
4322
 
 
4323
_ACEOF
1561
4324
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1562
 
  egrep "uu_lock" >/dev/null 2>&1; then
1563
 
  rm -rf conftest*
1564
 
  
1565
 
                echo "$ac_t""yes" 1>&6
 
4325
  $EGREP "uu_lock" >/dev/null 2>&1; then
 
4326
 
 
4327
                echo "$as_me:$LINENO: result: yes" >&5
 
4328
echo "${ECHO_T}yes" >&6
1566
4329
                SERLIBS=-lutil
1567
 
                cat >> confdefs.h <<\EOF
 
4330
 
 
4331
cat >>confdefs.h <<\_ACEOF
1568
4332
#define HAVE_UU_LOCK 1
1569
 
EOF
1570
 
  
 
4333
_ACEOF
 
4334
 
1571
4335
 
1572
4336
                # put in some better defaults for FreeBSD
1573
4337
                RUN_AS_USER="uucp"
1574
 
                RUN_AS_GROUP="dialer"
1575
4338
 
1576
4339
else
1577
 
  rm -rf conftest*
1578
 
  
1579
 
                echo "$ac_t""no" 1>&6
 
4340
 
 
4341
                echo "$as_me:$LINENO: result: no" >&5
 
4342
echo "${ECHO_T}no" >&6
1580
4343
                SERLIBS=""
1581
4344
 
1582
4345
fi
1583
4346
rm -f conftest*
1584
 
        
 
4347
 
1585
4348
 
1586
4349
# Solaris compatibility - check for -lnsl and -lsocket if connect() is gone
1587
4350
 
 
4351
 
1588
4352
for ac_func in connect
1589
4353
do
1590
 
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1591
 
echo "configure:1592: checking for $ac_func" >&5
1592
 
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1593
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
4354
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
4355
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
4356
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
4357
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
4358
  echo $ECHO_N "(cached) $ECHO_C" >&6
1594
4359
else
1595
 
  cat > conftest.$ac_ext <<EOF
1596
 
#line 1597 "configure"
1597
 
#include "confdefs.h"
 
4360
  cat >conftest.$ac_ext <<_ACEOF
 
4361
#line $LINENO "configure"
 
4362
/* confdefs.h.  */
 
4363
_ACEOF
 
4364
cat confdefs.h >>conftest.$ac_ext
 
4365
cat >>conftest.$ac_ext <<_ACEOF
 
4366
/* end confdefs.h.  */
1598
4367
/* System header to define __stub macros and hopefully few prototypes,
1599
 
    which can conflict with char $ac_func(); below.  */
1600
 
#include <assert.h>
 
4368
    which can conflict with char $ac_func (); below.
 
4369
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4370
    <limits.h> exists even on freestanding compilers.  */
 
4371
#ifdef __STDC__
 
4372
# include <limits.h>
 
4373
#else
 
4374
# include <assert.h>
 
4375
#endif
1601
4376
/* Override any gcc2 internal prototype to avoid an error.  */
 
4377
#ifdef __cplusplus
 
4378
extern "C"
 
4379
{
 
4380
#endif
1602
4381
/* We use char because int might match the return type of a gcc2
1603
 
    builtin and then its argument prototype would still apply.  */
1604
 
char $ac_func();
1605
 
 
1606
 
int main() {
1607
 
 
 
4382
   builtin and then its argument prototype would still apply.  */
 
4383
char $ac_func ();
1608
4384
/* The GNU C library defines this for functions which it implements
1609
4385
    to always fail with ENOSYS.  Some functions are actually named
1610
4386
    something starting with __ and the normal name is an alias.  */
1611
4387
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1612
4388
choke me
1613
4389
#else
1614
 
$ac_func();
1615
 
#endif
1616
 
 
1617
 
; return 0; }
1618
 
EOF
1619
 
if { (eval echo configure:1620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1620
 
  rm -rf conftest*
1621
 
  eval "ac_cv_func_$ac_func=yes"
1622
 
else
1623
 
  echo "configure: failed program was:" >&5
1624
 
  cat conftest.$ac_ext >&5
1625
 
  rm -rf conftest*
1626
 
  eval "ac_cv_func_$ac_func=no"
1627
 
fi
1628
 
rm -f conftest*
1629
 
fi
1630
 
 
1631
 
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1632
 
  echo "$ac_t""yes" 1>&6
1633
 
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1634
 
  cat >> confdefs.h <<EOF
1635
 
#define $ac_tr_func 1
1636
 
EOF
1637
 
 
1638
 
else
1639
 
  echo "$ac_t""no" 1>&6
 
4390
char (*f) () = $ac_func;
 
4391
#endif
 
4392
#ifdef __cplusplus
 
4393
}
 
4394
#endif
 
4395
 
 
4396
int
 
4397
main ()
 
4398
{
 
4399
return f != $ac_func;
 
4400
  ;
 
4401
  return 0;
 
4402
}
 
4403
_ACEOF
 
4404
rm -f conftest.$ac_objext conftest$ac_exeext
 
4405
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4406
  (eval $ac_link) 2>&5
 
4407
  ac_status=$?
 
4408
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4409
  (exit $ac_status); } &&
 
4410
         { ac_try='test -s conftest$ac_exeext'
 
4411
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4412
  (eval $ac_try) 2>&5
 
4413
  ac_status=$?
 
4414
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4415
  (exit $ac_status); }; }; then
 
4416
  eval "$as_ac_var=yes"
 
4417
else
 
4418
  echo "$as_me: failed program was:" >&5
 
4419
sed 's/^/| /' conftest.$ac_ext >&5
 
4420
 
 
4421
eval "$as_ac_var=no"
 
4422
fi
 
4423
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
4424
fi
 
4425
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
4426
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
4427
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
4428
  cat >>confdefs.h <<_ACEOF
 
4429
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
4430
_ACEOF
 
4431
 
1640
4432
fi
1641
4433
done
1642
4434
 
1643
4435
 
1644
4436
if ( test x"$ac_cv_func_connect" = x"no" ); then
1645
 
        echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
1646
 
echo "configure:1647: checking for printf in -lnsl" >&5
1647
 
ac_lib_var=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
1648
 
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1649
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
4437
        echo "$as_me:$LINENO: checking for printf in -lnsl" >&5
 
4438
echo $ECHO_N "checking for printf in -lnsl... $ECHO_C" >&6
 
4439
if test "${ac_cv_lib_nsl_printf+set}" = set; then
 
4440
  echo $ECHO_N "(cached) $ECHO_C" >&6
1650
4441
else
1651
 
  ac_save_LIBS="$LIBS"
 
4442
  ac_check_lib_save_LIBS=$LIBS
1652
4443
LIBS="-lnsl  $LIBS"
1653
 
cat > conftest.$ac_ext <<EOF
1654
 
#line 1655 "configure"
1655
 
#include "confdefs.h"
 
4444
cat >conftest.$ac_ext <<_ACEOF
 
4445
#line $LINENO "configure"
 
4446
/* confdefs.h.  */
 
4447
_ACEOF
 
4448
cat confdefs.h >>conftest.$ac_ext
 
4449
cat >>conftest.$ac_ext <<_ACEOF
 
4450
/* end confdefs.h.  */
 
4451
 
1656
4452
/* Override any gcc2 internal prototype to avoid an error.  */
 
4453
#ifdef __cplusplus
 
4454
extern "C"
 
4455
#endif
1657
4456
/* We use char because int might match the return type of a gcc2
1658
 
    builtin and then its argument prototype would still apply.  */
1659
 
char printf();
1660
 
 
1661
 
int main() {
1662
 
printf()
1663
 
; return 0; }
1664
 
EOF
1665
 
if { (eval echo configure:1666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1666
 
  rm -rf conftest*
1667
 
  eval "ac_cv_lib_$ac_lib_var=yes"
 
4457
   builtin and then its argument prototype would still apply.  */
 
4458
char printf ();
 
4459
int
 
4460
main ()
 
4461
{
 
4462
printf ();
 
4463
  ;
 
4464
  return 0;
 
4465
}
 
4466
_ACEOF
 
4467
rm -f conftest.$ac_objext conftest$ac_exeext
 
4468
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4469
  (eval $ac_link) 2>&5
 
4470
  ac_status=$?
 
4471
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4472
  (exit $ac_status); } &&
 
4473
         { ac_try='test -s conftest$ac_exeext'
 
4474
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4475
  (eval $ac_try) 2>&5
 
4476
  ac_status=$?
 
4477
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4478
  (exit $ac_status); }; }; then
 
4479
  ac_cv_lib_nsl_printf=yes
1668
4480
else
1669
 
  echo "configure: failed program was:" >&5
1670
 
  cat conftest.$ac_ext >&5
1671
 
  rm -rf conftest*
1672
 
  eval "ac_cv_lib_$ac_lib_var=no"
1673
 
fi
1674
 
rm -f conftest*
1675
 
LIBS="$ac_save_LIBS"
1676
 
 
1677
 
fi
1678
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1679
 
  echo "$ac_t""yes" 1>&6
1680
 
  
 
4481
  echo "$as_me: failed program was:" >&5
 
4482
sed 's/^/| /' conftest.$ac_ext >&5
 
4483
 
 
4484
ac_cv_lib_nsl_printf=no
 
4485
fi
 
4486
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
4487
LIBS=$ac_check_lib_save_LIBS
 
4488
fi
 
4489
echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_printf" >&5
 
4490
echo "${ECHO_T}$ac_cv_lib_nsl_printf" >&6
 
4491
if test $ac_cv_lib_nsl_printf = yes; then
 
4492
 
1681
4493
                NETLIBS="-lnsl"
1682
 
        
1683
 
else
1684
 
  echo "$ac_t""no" 1>&6
 
4494
 
1685
4495
fi
1686
4496
 
1687
4497
 
1688
 
        echo $ac_n "checking for printf in -lsocket""... $ac_c" 1>&6
1689
 
echo "configure:1690: checking for printf in -lsocket" >&5
1690
 
ac_lib_var=`echo socket'_'printf | sed 'y%./+-%__p_%'`
1691
 
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1692
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
4498
        echo "$as_me:$LINENO: checking for printf in -lsocket" >&5
 
4499
echo $ECHO_N "checking for printf in -lsocket... $ECHO_C" >&6
 
4500
if test "${ac_cv_lib_socket_printf+set}" = set; then
 
4501
  echo $ECHO_N "(cached) $ECHO_C" >&6
1693
4502
else
1694
 
  ac_save_LIBS="$LIBS"
 
4503
  ac_check_lib_save_LIBS=$LIBS
1695
4504
LIBS="-lsocket  $LIBS"
1696
 
cat > conftest.$ac_ext <<EOF
1697
 
#line 1698 "configure"
1698
 
#include "confdefs.h"
 
4505
cat >conftest.$ac_ext <<_ACEOF
 
4506
#line $LINENO "configure"
 
4507
/* confdefs.h.  */
 
4508
_ACEOF
 
4509
cat confdefs.h >>conftest.$ac_ext
 
4510
cat >>conftest.$ac_ext <<_ACEOF
 
4511
/* end confdefs.h.  */
 
4512
 
1699
4513
/* Override any gcc2 internal prototype to avoid an error.  */
 
4514
#ifdef __cplusplus
 
4515
extern "C"
 
4516
#endif
1700
4517
/* We use char because int might match the return type of a gcc2
1701
 
    builtin and then its argument prototype would still apply.  */
1702
 
char printf();
1703
 
 
1704
 
int main() {
1705
 
printf()
1706
 
; return 0; }
1707
 
EOF
1708
 
if { (eval echo configure:1709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1709
 
  rm -rf conftest*
1710
 
  eval "ac_cv_lib_$ac_lib_var=yes"
 
4518
   builtin and then its argument prototype would still apply.  */
 
4519
char printf ();
 
4520
int
 
4521
main ()
 
4522
{
 
4523
printf ();
 
4524
  ;
 
4525
  return 0;
 
4526
}
 
4527
_ACEOF
 
4528
rm -f conftest.$ac_objext conftest$ac_exeext
 
4529
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4530
  (eval $ac_link) 2>&5
 
4531
  ac_status=$?
 
4532
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4533
  (exit $ac_status); } &&
 
4534
         { ac_try='test -s conftest$ac_exeext'
 
4535
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4536
  (eval $ac_try) 2>&5
 
4537
  ac_status=$?
 
4538
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4539
  (exit $ac_status); }; }; then
 
4540
  ac_cv_lib_socket_printf=yes
1711
4541
else
1712
 
  echo "configure: failed program was:" >&5
1713
 
  cat conftest.$ac_ext >&5
1714
 
  rm -rf conftest*
1715
 
  eval "ac_cv_lib_$ac_lib_var=no"
1716
 
fi
1717
 
rm -f conftest*
1718
 
LIBS="$ac_save_LIBS"
1719
 
 
1720
 
fi
1721
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1722
 
  echo "$ac_t""yes" 1>&6
1723
 
  
 
4542
  echo "$as_me: failed program was:" >&5
 
4543
sed 's/^/| /' conftest.$ac_ext >&5
 
4544
 
 
4545
ac_cv_lib_socket_printf=no
 
4546
fi
 
4547
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
4548
LIBS=$ac_check_lib_save_LIBS
 
4549
fi
 
4550
echo "$as_me:$LINENO: result: $ac_cv_lib_socket_printf" >&5
 
4551
echo "${ECHO_T}$ac_cv_lib_socket_printf" >&6
 
4552
if test $ac_cv_lib_socket_printf = yes; then
 
4553
 
1724
4554
                NETLIBS="$NETLIBS -lsocket"
1725
 
        
1726
 
else
1727
 
  echo "$ac_t""no" 1>&6
1728
 
fi
1729
 
 
1730
 
fi
1731
 
 
1732
 
echo $ac_n "checking for TT_New_Glyph in -lttf""... $ac_c" 1>&6
1733
 
echo "configure:1734: checking for TT_New_Glyph in -lttf" >&5
1734
 
ac_lib_var=`echo ttf'_'TT_New_Glyph | sed 'y%./+-%__p_%'`
1735
 
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1736
 
  echo $ac_n "(cached) $ac_c" 1>&6
1737
 
else
1738
 
  ac_save_LIBS="$LIBS"
1739
 
LIBS="-lttf  $LIBS"
1740
 
cat > conftest.$ac_ext <<EOF
1741
 
#line 1742 "configure"
1742
 
#include "confdefs.h"
1743
 
/* Override any gcc2 internal prototype to avoid an error.  */
1744
 
/* We use char because int might match the return type of a gcc2
1745
 
    builtin and then its argument prototype would still apply.  */
1746
 
char TT_New_Glyph();
1747
 
 
1748
 
int main() {
1749
 
TT_New_Glyph()
1750
 
; return 0; }
1751
 
EOF
1752
 
if { (eval echo configure:1753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1753
 
  rm -rf conftest*
1754
 
  eval "ac_cv_lib_$ac_lib_var=yes"
1755
 
else
1756
 
  echo "configure: failed program was:" >&5
1757
 
  cat conftest.$ac_ext >&5
1758
 
  rm -rf conftest*
1759
 
  eval "ac_cv_lib_$ac_lib_var=no"
1760
 
fi
1761
 
rm -f conftest*
1762
 
LIBS="$ac_save_LIBS"
1763
 
 
1764
 
fi
1765
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1766
 
  echo "$ac_t""yes" 1>&6
1767
 
   LIBTTF="-lttf"
1768
 
else
1769
 
  echo "$ac_t""no" 1>&6
1770
 
 LIBTTF="" 
1771
 
fi
1772
 
 
1773
 
 
1774
 
echo $ac_n "checking for XBell in -lX11""... $ac_c" 1>&6
1775
 
echo "configure:1776: checking for XBell in -lX11" >&5
1776
 
ac_lib_var=`echo X11'_'XBell | sed 'y%./+-%__p_%'`
1777
 
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1778
 
  echo $ac_n "(cached) $ac_c" 1>&6
1779
 
else
1780
 
  ac_save_LIBS="$LIBS"
1781
 
LIBS="-lX11  $LIBS"
1782
 
cat > conftest.$ac_ext <<EOF
1783
 
#line 1784 "configure"
1784
 
#include "confdefs.h"
1785
 
/* Override any gcc2 internal prototype to avoid an error.  */
1786
 
/* We use char because int might match the return type of a gcc2
1787
 
    builtin and then its argument prototype would still apply.  */
1788
 
char XBell();
1789
 
 
1790
 
int main() {
1791
 
XBell()
1792
 
; return 0; }
1793
 
EOF
1794
 
if { (eval echo configure:1795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1795
 
  rm -rf conftest*
1796
 
  eval "ac_cv_lib_$ac_lib_var=yes"
1797
 
else
1798
 
  echo "configure: failed program was:" >&5
1799
 
  cat conftest.$ac_ext >&5
1800
 
  rm -rf conftest*
1801
 
  eval "ac_cv_lib_$ac_lib_var=no"
1802
 
fi
1803
 
rm -f conftest*
1804
 
LIBS="$ac_save_LIBS"
1805
 
 
1806
 
fi
1807
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1808
 
  echo "$ac_t""yes" 1>&6
1809
 
   LIBX="-lX11" 
1810
 
else
1811
 
  echo "$ac_t""no" 1>&6
1812
 
 
1813
 
               echo "Retrying with -L /usr/X11R6/lib"
1814
 
               unset ac_cv_lib_X11_XBell
1815
 
                echo $ac_n "checking for XBell in -lX11""... $ac_c" 1>&6
1816
 
echo "configure:1817: checking for XBell in -lX11" >&5
1817
 
ac_lib_var=`echo X11'_'XBell | sed 'y%./+-%__p_%'`
1818
 
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1819
 
  echo $ac_n "(cached) $ac_c" 1>&6
1820
 
else
1821
 
  ac_save_LIBS="$LIBS"
1822
 
LIBS="-lX11  -lX11 -L/usr/X11R6/lib  $LIBS"
1823
 
cat > conftest.$ac_ext <<EOF
1824
 
#line 1825 "configure"
1825
 
#include "confdefs.h"
1826
 
/* Override any gcc2 internal prototype to avoid an error.  */
1827
 
/* We use char because int might match the return type of a gcc2
1828
 
    builtin and then its argument prototype would still apply.  */
1829
 
char XBell();
1830
 
 
1831
 
int main() {
1832
 
XBell()
1833
 
; return 0; }
1834
 
EOF
1835
 
if { (eval echo configure:1836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1836
 
  rm -rf conftest*
1837
 
  eval "ac_cv_lib_$ac_lib_var=yes"
1838
 
else
1839
 
  echo "configure: failed program was:" >&5
1840
 
  cat conftest.$ac_ext >&5
1841
 
  rm -rf conftest*
1842
 
  eval "ac_cv_lib_$ac_lib_var=no"
1843
 
fi
1844
 
rm -f conftest*
1845
 
LIBS="$ac_save_LIBS"
1846
 
 
1847
 
fi
1848
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1849
 
  echo "$ac_t""yes" 1>&6
1850
 
   LIBX="-lX11 -L/usr/X11R6/lib" 
1851
 
else
1852
 
  echo "$ac_t""no" 1>&6
1853
 
 LIBX="" 
1854
 
fi
1855
 
 
1856
 
        
1857
 
fi
1858
 
 
1859
 
 
1860
 
 
1861
 
if test "$LIBX" != "" 
1862
 
then
1863
 
 
1864
 
                echo $ac_n "checking for XpmReadFileToXpmImage in -lXpm""... $ac_c" 1>&6
1865
 
echo "configure:1866: checking for XpmReadFileToXpmImage in -lXpm" >&5
1866
 
ac_lib_var=`echo Xpm'_'XpmReadFileToXpmImage | sed 'y%./+-%__p_%'`
1867
 
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1868
 
  echo $ac_n "(cached) $ac_c" 1>&6
1869
 
else
1870
 
  ac_save_LIBS="$LIBS"
1871
 
LIBS="-lXpm  -lXpm  $LIBS"
1872
 
cat > conftest.$ac_ext <<EOF
1873
 
#line 1874 "configure"
1874
 
#include "confdefs.h"
1875
 
/* Override any gcc2 internal prototype to avoid an error.  */
1876
 
/* We use char because int might match the return type of a gcc2
1877
 
    builtin and then its argument prototype would still apply.  */
1878
 
char XpmReadFileToXpmImage();
1879
 
 
1880
 
int main() {
1881
 
XpmReadFileToXpmImage()
1882
 
; return 0; }
1883
 
EOF
1884
 
if { (eval echo configure:1885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1885
 
  rm -rf conftest*
1886
 
  eval "ac_cv_lib_$ac_lib_var=yes"
1887
 
else
1888
 
  echo "configure: failed program was:" >&5
1889
 
  cat conftest.$ac_ext >&5
1890
 
  rm -rf conftest*
1891
 
  eval "ac_cv_lib_$ac_lib_var=no"
1892
 
fi
1893
 
rm -f conftest*
1894
 
LIBS="$ac_save_LIBS"
1895
 
 
1896
 
fi
1897
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1898
 
  echo "$ac_t""yes" 1>&6
1899
 
   LIBXPM="-lXpm"
1900
 
else
1901
 
  echo "$ac_t""no" 1>&6
1902
 
 
1903
 
                        echo "Retrying with $LIBX"
1904
 
                        unset ac_cv_lib_Xpm_XpmReadFileToXpmImage
1905
 
                        echo $ac_n "checking for XpmReadFileToXpmImage in -lXpm""... $ac_c" 1>&6
1906
 
echo "configure:1907: checking for XpmReadFileToXpmImage in -lXpm" >&5
1907
 
ac_lib_var=`echo Xpm'_'XpmReadFileToXpmImage | sed 'y%./+-%__p_%'`
1908
 
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1909
 
  echo $ac_n "(cached) $ac_c" 1>&6
1910
 
else
1911
 
  ac_save_LIBS="$LIBS"
1912
 
LIBS="-lXpm  -lXpm $LIBX  $LIBS"
1913
 
cat > conftest.$ac_ext <<EOF
1914
 
#line 1915 "configure"
1915
 
#include "confdefs.h"
1916
 
/* Override any gcc2 internal prototype to avoid an error.  */
1917
 
/* We use char because int might match the return type of a gcc2
1918
 
    builtin and then its argument prototype would still apply.  */
1919
 
char XpmReadFileToXpmImage();
1920
 
 
1921
 
int main() {
1922
 
XpmReadFileToXpmImage()
1923
 
; return 0; }
1924
 
EOF
1925
 
if { (eval echo configure:1926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1926
 
  rm -rf conftest*
1927
 
  eval "ac_cv_lib_$ac_lib_var=yes"
1928
 
else
1929
 
  echo "configure: failed program was:" >&5
1930
 
  cat conftest.$ac_ext >&5
1931
 
  rm -rf conftest*
1932
 
  eval "ac_cv_lib_$ac_lib_var=no"
1933
 
fi
1934
 
rm -f conftest*
1935
 
LIBS="$ac_save_LIBS"
1936
 
 
1937
 
fi
1938
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1939
 
  echo "$ac_t""yes" 1>&6
1940
 
   LIBXPM="-lXpm $LIBX" 
1941
 
else
1942
 
  echo "$ac_t""no" 1>&6
1943
 
 LIBXPM="" 
1944
 
fi
1945
 
 
1946
 
                
1947
 
fi
1948
 
 
1949
 
fi
1950
 
 
1951
 
echo $ac_n "checking for gdImagePng in -lgd""... $ac_c" 1>&6
1952
 
echo "configure:1953: checking for gdImagePng in -lgd" >&5
1953
 
ac_lib_var=`echo gd'_'gdImagePng | sed 'y%./+-%__p_%'`
1954
 
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1955
 
  echo $ac_n "(cached) $ac_c" 1>&6
1956
 
else
1957
 
  ac_save_LIBS="$LIBS"
1958
 
LIBS="-lgd -lm -lpng -lz $LIBS"
1959
 
cat > conftest.$ac_ext <<EOF
1960
 
#line 1961 "configure"
1961
 
#include "confdefs.h"
1962
 
/* Override any gcc2 internal prototype to avoid an error.  */
1963
 
/* We use char because int might match the return type of a gcc2
1964
 
    builtin and then its argument prototype would still apply.  */
1965
 
char gdImagePng();
1966
 
 
1967
 
int main() {
1968
 
gdImagePng()
1969
 
; return 0; }
1970
 
EOF
1971
 
if { (eval echo configure:1972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1972
 
  rm -rf conftest*
1973
 
  eval "ac_cv_lib_$ac_lib_var=yes"
1974
 
else
1975
 
  echo "configure: failed program was:" >&5
1976
 
  cat conftest.$ac_ext >&5
1977
 
  rm -rf conftest*
1978
 
  eval "ac_cv_lib_$ac_lib_var=no"
1979
 
fi
1980
 
rm -f conftest*
1981
 
LIBS="$ac_save_LIBS"
1982
 
 
1983
 
fi
1984
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1985
 
  echo "$ac_t""yes" 1>&6
1986
 
  
1987
 
        GFXLIBS="-lgd -lpng -lz"
1988
 
 
1989
 
else
1990
 
  echo "$ac_t""no" 1>&6
1991
 
 
1992
 
        echo "Trying again - using -L/usr/local/lib -I/usr/local/include..."
1993
 
        unset ac_cv_lib_gd_gdImagePng
1994
 
        CPPFLAGS="$CPPFLAGS -L/usr/local/lib -I/usr/local/include"
1995
 
        echo $ac_n "checking for gdImagePng in -lgd""... $ac_c" 1>&6
1996
 
echo "configure:1997: checking for gdImagePng in -lgd" >&5
1997
 
ac_lib_var=`echo gd'_'gdImagePng | sed 'y%./+-%__p_%'`
1998
 
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1999
 
  echo $ac_n "(cached) $ac_c" 1>&6
2000
 
else
2001
 
  ac_save_LIBS="$LIBS"
2002
 
LIBS="-lgd -lm -lpng -lz $LIBS"
2003
 
cat > conftest.$ac_ext <<EOF
2004
 
#line 2005 "configure"
2005
 
#include "confdefs.h"
2006
 
/* Override any gcc2 internal prototype to avoid an error.  */
2007
 
/* We use char because int might match the return type of a gcc2
2008
 
    builtin and then its argument prototype would still apply.  */
2009
 
char gdImagePng();
2010
 
 
2011
 
int main() {
2012
 
gdImagePng()
2013
 
; return 0; }
2014
 
EOF
2015
 
if { (eval echo configure:2016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2016
 
  rm -rf conftest*
2017
 
  eval "ac_cv_lib_$ac_lib_var=yes"
2018
 
else
2019
 
  echo "configure: failed program was:" >&5
2020
 
  cat conftest.$ac_ext >&5
2021
 
  rm -rf conftest*
2022
 
  eval "ac_cv_lib_$ac_lib_var=no"
2023
 
fi
2024
 
rm -f conftest*
2025
 
LIBS="$ac_save_LIBS"
2026
 
 
2027
 
fi
2028
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2029
 
  echo "$ac_t""yes" 1>&6
2030
 
  
2031
 
                GFXLIBS="-lgd -lpng -lz -L/usr/local/lib -I/usr/local/include"
2032
 
        
2033
 
else
2034
 
  echo "$ac_t""no" 1>&6
2035
 
fi
2036
 
 
2037
 
 
2038
 
fi
2039
 
 
2040
 
 
2041
 
if test "$LIBTTF" != "" 
2042
 
then
2043
 
 
2044
 
        if test "$GFXLIBS" = "" ; then
2045
 
                echo "Trying again - using $LIBTTF"
2046
 
                unset ac_cv_lib_gd_gdImagePng
2047
 
                echo $ac_n "checking for gdImagePng in -lgd""... $ac_c" 1>&6
2048
 
echo "configure:2049: checking for gdImagePng in -lgd" >&5
2049
 
ac_lib_var=`echo gd'_'gdImagePng | sed 'y%./+-%__p_%'`
2050
 
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2051
 
  echo $ac_n "(cached) $ac_c" 1>&6
2052
 
else
2053
 
  ac_save_LIBS="$LIBS"
2054
 
LIBS="-lgd -lm -lpng -lz $LIBTTF $LIBS"
2055
 
cat > conftest.$ac_ext <<EOF
2056
 
#line 2057 "configure"
2057
 
#include "confdefs.h"
2058
 
/* Override any gcc2 internal prototype to avoid an error.  */
2059
 
/* We use char because int might match the return type of a gcc2
2060
 
    builtin and then its argument prototype would still apply.  */
2061
 
char gdImagePng();
2062
 
 
2063
 
int main() {
2064
 
gdImagePng()
2065
 
; return 0; }
2066
 
EOF
2067
 
if { (eval echo configure:2068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2068
 
  rm -rf conftest*
2069
 
  eval "ac_cv_lib_$ac_lib_var=yes"
2070
 
else
2071
 
  echo "configure: failed program was:" >&5
2072
 
  cat conftest.$ac_ext >&5
2073
 
  rm -rf conftest*
2074
 
  eval "ac_cv_lib_$ac_lib_var=no"
2075
 
fi
2076
 
rm -f conftest*
2077
 
LIBS="$ac_save_LIBS"
2078
 
 
2079
 
fi
2080
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2081
 
  echo "$ac_t""yes" 1>&6
2082
 
  
2083
 
                        GFXLIBS="-lgd -lpng -lz $LIBTTF"
2084
 
                
2085
 
else
2086
 
  echo "$ac_t""no" 1>&6
2087
 
fi
2088
 
 
2089
 
        fi
2090
 
 
2091
 
        if test "$GFXLIBS" = "" ; then
2092
 
                echo "Trying again - using $LIBTTF $LIBXPM"
2093
 
                unset ac_cv_lib_gd_gdImagePng
2094
 
                echo $ac_n "checking for gdImagePng in -lgd""... $ac_c" 1>&6
2095
 
echo "configure:2096: checking for gdImagePng in -lgd" >&5
2096
 
ac_lib_var=`echo gd'_'gdImagePng | sed 'y%./+-%__p_%'`
2097
 
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2098
 
  echo $ac_n "(cached) $ac_c" 1>&6
2099
 
else
2100
 
  ac_save_LIBS="$LIBS"
2101
 
LIBS="-lgd -lm -lpng -lz $LIBTTF $LIBXPM $LIBS"
2102
 
cat > conftest.$ac_ext <<EOF
2103
 
#line 2104 "configure"
2104
 
#include "confdefs.h"
2105
 
/* Override any gcc2 internal prototype to avoid an error.  */
2106
 
/* We use char because int might match the return type of a gcc2
2107
 
    builtin and then its argument prototype would still apply.  */
2108
 
char gdImagePng();
2109
 
 
2110
 
int main() {
2111
 
gdImagePng()
2112
 
; return 0; }
2113
 
EOF
2114
 
if { (eval echo configure:2115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2115
 
  rm -rf conftest*
2116
 
  eval "ac_cv_lib_$ac_lib_var=yes"
2117
 
else
2118
 
  echo "configure: failed program was:" >&5
2119
 
  cat conftest.$ac_ext >&5
2120
 
  rm -rf conftest*
2121
 
  eval "ac_cv_lib_$ac_lib_var=no"
2122
 
fi
2123
 
rm -f conftest*
2124
 
LIBS="$ac_save_LIBS"
2125
 
 
2126
 
fi
2127
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2128
 
  echo "$ac_t""yes" 1>&6
2129
 
  
2130
 
                        GFXLIBS="-lgd -lpng -lz $LIBTTF $LIBXPM"
2131
 
                
2132
 
else
2133
 
  echo "$ac_t""no" 1>&6
2134
 
fi
2135
 
 
2136
 
        fi
2137
 
fi
2138
 
 
2139
 
test "$GFXLIBS" = ""  && echo "** You will not be able to build the CGI programs without gd."
2140
 
test "$GFXLIBS" = ""  && echo "** "
2141
 
test "$GFXLIBS" = ""  && echo "** To get it, visit http://www.boutell.com/gd/"
2142
 
 
2143
 
for ac_hdr in gd.h gd/gd.h sys/modem.h stdarg.h varargs.h sys/shm.h err.h
 
4555
 
 
4556
fi
 
4557
 
 
4558
fi
 
4559
 
 
4560
 
 
4561
 
 
4562
 
 
4563
 
 
4564
for ac_header in sys/modem.h stdarg.h varargs.h sys/termios.h
2144
4565
do
2145
 
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2146
 
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2147
 
echo "configure:2148: checking for $ac_hdr" >&5
2148
 
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2149
 
  echo $ac_n "(cached) $ac_c" 1>&6
2150
 
else
2151
 
  cat > conftest.$ac_ext <<EOF
2152
 
#line 2153 "configure"
2153
 
#include "confdefs.h"
2154
 
#include <$ac_hdr>
2155
 
EOF
2156
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2157
 
{ (eval echo configure:2158: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2158
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2159
 
if test -z "$ac_err"; then
2160
 
  rm -rf conftest*
2161
 
  eval "ac_cv_header_$ac_safe=yes"
2162
 
else
2163
 
  echo "$ac_err" >&5
2164
 
  echo "configure: failed program was:" >&5
2165
 
  cat conftest.$ac_ext >&5
2166
 
  rm -rf conftest*
2167
 
  eval "ac_cv_header_$ac_safe=no"
2168
 
fi
2169
 
rm -f conftest*
2170
 
fi
2171
 
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2172
 
  echo "$ac_t""yes" 1>&6
2173
 
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2174
 
  cat >> confdefs.h <<EOF
2175
 
#define $ac_tr_hdr 1
2176
 
EOF
2177
 
 
2178
 
else
2179
 
  echo "$ac_t""no" 1>&6
2180
 
fi
 
4566
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
4567
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4568
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4569
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
4570
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4571
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4572
fi
 
4573
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
4574
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
4575
else
 
4576
  # Is the header compilable?
 
4577
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
4578
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
4579
cat >conftest.$ac_ext <<_ACEOF
 
4580
#line $LINENO "configure"
 
4581
/* confdefs.h.  */
 
4582
_ACEOF
 
4583
cat confdefs.h >>conftest.$ac_ext
 
4584
cat >>conftest.$ac_ext <<_ACEOF
 
4585
/* end confdefs.h.  */
 
4586
$ac_includes_default
 
4587
#include <$ac_header>
 
4588
_ACEOF
 
4589
rm -f conftest.$ac_objext
 
4590
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4591
  (eval $ac_compile) 2>&5
 
4592
  ac_status=$?
 
4593
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4594
  (exit $ac_status); } &&
 
4595
         { ac_try='test -s conftest.$ac_objext'
 
4596
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4597
  (eval $ac_try) 2>&5
 
4598
  ac_status=$?
 
4599
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4600
  (exit $ac_status); }; }; then
 
4601
  ac_header_compiler=yes
 
4602
else
 
4603
  echo "$as_me: failed program was:" >&5
 
4604
sed 's/^/| /' conftest.$ac_ext >&5
 
4605
 
 
4606
ac_header_compiler=no
 
4607
fi
 
4608
rm -f conftest.$ac_objext conftest.$ac_ext
 
4609
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
4610
echo "${ECHO_T}$ac_header_compiler" >&6
 
4611
 
 
4612
# Is the header present?
 
4613
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
4614
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
4615
cat >conftest.$ac_ext <<_ACEOF
 
4616
#line $LINENO "configure"
 
4617
/* confdefs.h.  */
 
4618
_ACEOF
 
4619
cat confdefs.h >>conftest.$ac_ext
 
4620
cat >>conftest.$ac_ext <<_ACEOF
 
4621
/* end confdefs.h.  */
 
4622
#include <$ac_header>
 
4623
_ACEOF
 
4624
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4625
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4626
  ac_status=$?
 
4627
  grep -v '^ *+' conftest.er1 >conftest.err
 
4628
  rm -f conftest.er1
 
4629
  cat conftest.err >&5
 
4630
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4631
  (exit $ac_status); } >/dev/null; then
 
4632
  if test -s conftest.err; then
 
4633
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4634
  else
 
4635
    ac_cpp_err=
 
4636
  fi
 
4637
else
 
4638
  ac_cpp_err=yes
 
4639
fi
 
4640
if test -z "$ac_cpp_err"; then
 
4641
  ac_header_preproc=yes
 
4642
else
 
4643
  echo "$as_me: failed program was:" >&5
 
4644
sed 's/^/| /' conftest.$ac_ext >&5
 
4645
 
 
4646
  ac_header_preproc=no
 
4647
fi
 
4648
rm -f conftest.err conftest.$ac_ext
 
4649
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
4650
echo "${ECHO_T}$ac_header_preproc" >&6
 
4651
 
 
4652
# So?  What about this header?
 
4653
case $ac_header_compiler:$ac_header_preproc in
 
4654
  yes:no )
 
4655
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
4656
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
4657
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
4658
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
4659
    (
 
4660
      cat <<\_ASBOX
 
4661
## ------------------------------------ ##
 
4662
## Report this to bug-autoconf@gnu.org. ##
 
4663
## ------------------------------------ ##
 
4664
_ASBOX
 
4665
    ) |
 
4666
      sed "s/^/$as_me: WARNING:     /" >&2
 
4667
    ;;
 
4668
  no:yes )
 
4669
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
4670
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
4671
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
 
4672
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
 
4673
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
4674
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
4675
    (
 
4676
      cat <<\_ASBOX
 
4677
## ------------------------------------ ##
 
4678
## Report this to bug-autoconf@gnu.org. ##
 
4679
## ------------------------------------ ##
 
4680
_ASBOX
 
4681
    ) |
 
4682
      sed "s/^/$as_me: WARNING:     /" >&2
 
4683
    ;;
 
4684
esac
 
4685
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4686
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
4687
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4688
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4689
else
 
4690
  eval "$as_ac_Header=$ac_header_preproc"
 
4691
fi
 
4692
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
4693
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
4694
 
 
4695
fi
 
4696
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
4697
  cat >>confdefs.h <<_ACEOF
 
4698
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
4699
_ACEOF
 
4700
 
 
4701
fi
 
4702
 
2181
4703
done
2182
4704
 
2183
4705
 
2184
 
echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2185
 
echo "configure:2186: checking whether time.h and sys/time.h may both be included" >&5
2186
 
if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2187
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
4706
echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
 
4707
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
 
4708
if test "${ac_cv_header_time+set}" = set; then
 
4709
  echo $ECHO_N "(cached) $ECHO_C" >&6
2188
4710
else
2189
 
  cat > conftest.$ac_ext <<EOF
2190
 
#line 2191 "configure"
2191
 
#include "confdefs.h"
 
4711
  cat >conftest.$ac_ext <<_ACEOF
 
4712
#line $LINENO "configure"
 
4713
/* confdefs.h.  */
 
4714
_ACEOF
 
4715
cat confdefs.h >>conftest.$ac_ext
 
4716
cat >>conftest.$ac_ext <<_ACEOF
 
4717
/* end confdefs.h.  */
2192
4718
#include <sys/types.h>
2193
4719
#include <sys/time.h>
2194
4720
#include <time.h>
2195
 
int main() {
2196
 
struct tm *tp;
2197
 
; return 0; }
2198
 
EOF
2199
 
if { (eval echo configure:2200: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2200
 
  rm -rf conftest*
 
4721
 
 
4722
int
 
4723
main ()
 
4724
{
 
4725
if ((struct tm *) 0)
 
4726
return 0;
 
4727
  ;
 
4728
  return 0;
 
4729
}
 
4730
_ACEOF
 
4731
rm -f conftest.$ac_objext
 
4732
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4733
  (eval $ac_compile) 2>&5
 
4734
  ac_status=$?
 
4735
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4736
  (exit $ac_status); } &&
 
4737
         { ac_try='test -s conftest.$ac_objext'
 
4738
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4739
  (eval $ac_try) 2>&5
 
4740
  ac_status=$?
 
4741
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4742
  (exit $ac_status); }; }; then
2201
4743
  ac_cv_header_time=yes
2202
4744
else
2203
 
  echo "configure: failed program was:" >&5
2204
 
  cat conftest.$ac_ext >&5
2205
 
  rm -rf conftest*
2206
 
  ac_cv_header_time=no
2207
 
fi
2208
 
rm -f conftest*
2209
 
fi
 
4745
  echo "$as_me: failed program was:" >&5
 
4746
sed 's/^/| /' conftest.$ac_ext >&5
2210
4747
 
2211
 
echo "$ac_t""$ac_cv_header_time" 1>&6
 
4748
ac_cv_header_time=no
 
4749
fi
 
4750
rm -f conftest.$ac_objext conftest.$ac_ext
 
4751
fi
 
4752
echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
 
4753
echo "${ECHO_T}$ac_cv_header_time" >&6
2212
4754
if test $ac_cv_header_time = yes; then
2213
 
  cat >> confdefs.h <<\EOF
 
4755
 
 
4756
cat >>confdefs.h <<\_ACEOF
2214
4757
#define TIME_WITH_SYS_TIME 1
2215
 
EOF
2216
 
 
2217
 
fi
2218
 
 
2219
 
for ac_hdr in sys/time.h
2220
 
do
2221
 
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2222
 
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2223
 
echo "configure:2224: checking for $ac_hdr" >&5
2224
 
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2225
 
  echo $ac_n "(cached) $ac_c" 1>&6
2226
 
else
2227
 
  cat > conftest.$ac_ext <<EOF
2228
 
#line 2229 "configure"
2229
 
#include "confdefs.h"
2230
 
#include <$ac_hdr>
2231
 
EOF
2232
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2233
 
{ (eval echo configure:2234: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2234
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2235
 
if test -z "$ac_err"; then
2236
 
  rm -rf conftest*
2237
 
  eval "ac_cv_header_$ac_safe=yes"
2238
 
else
2239
 
  echo "$ac_err" >&5
2240
 
  echo "configure: failed program was:" >&5
2241
 
  cat conftest.$ac_ext >&5
2242
 
  rm -rf conftest*
2243
 
  eval "ac_cv_header_$ac_safe=no"
2244
 
fi
2245
 
rm -f conftest*
2246
 
fi
2247
 
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2248
 
  echo "$ac_t""yes" 1>&6
2249
 
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2250
 
  cat >> confdefs.h <<EOF
2251
 
#define $ac_tr_hdr 1
2252
 
EOF
2253
 
 
2254
 
else
2255
 
  echo "$ac_t""no" 1>&6
2256
 
fi
2257
 
done
2258
 
 
2259
 
 
2260
 
if test -n "$LD_LIBRARY_PATH"; then
2261
 
   for ac_prog in mawk gawk nawk awk
2262
 
do
2263
 
# Extract the first word of "$ac_prog", so it can be a program name with args.
2264
 
set dummy $ac_prog; ac_word=$2
2265
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2266
 
echo "configure:2267: checking for $ac_word" >&5
2267
 
if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
2268
 
  echo $ac_n "(cached) $ac_c" 1>&6
2269
 
else
2270
 
  if test -n "$AWK"; then
2271
 
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2272
 
else
2273
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2274
 
  ac_dummy="$PATH"
2275
 
  for ac_dir in $ac_dummy; do
2276
 
    test -z "$ac_dir" && ac_dir=.
2277
 
    if test -f $ac_dir/$ac_word; then
2278
 
      ac_cv_prog_AWK="$ac_prog"
2279
 
      break
2280
 
    fi
2281
 
  done
2282
 
  IFS="$ac_save_ifs"
2283
 
fi
2284
 
fi
2285
 
AWK="$ac_cv_prog_AWK"
2286
 
if test -n "$AWK"; then
2287
 
  echo "$ac_t""$AWK" 1>&6
2288
 
else
2289
 
  echo "$ac_t""no" 1>&6
2290
 
fi
2291
 
 
2292
 
test -n "$AWK" && break
2293
 
done
2294
 
 
2295
 
   for lib in `echo $LD_LIBRARY_PATH | $AWK -F: '{ for (i = NF; i > 0; --i) print $i }' | sort | uniq`; do
2296
 
      if test -f ${lib}/libpng.so; then
2297
 
         echo $ac_n "checking for png_info_init in -lpng""... $ac_c" 1>&6
2298
 
echo "configure:2299: checking for png_info_init in -lpng" >&5
2299
 
ac_lib_var=`echo png'_'png_info_init | sed 'y%./+-%__p_%'`
2300
 
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2301
 
  echo $ac_n "(cached) $ac_c" 1>&6
2302
 
else
2303
 
  ac_save_LIBS="$LIBS"
2304
 
LIBS="-lpng -lm -R${lib} $LIBS"
2305
 
cat > conftest.$ac_ext <<EOF
2306
 
#line 2307 "configure"
2307
 
#include "confdefs.h"
 
4758
_ACEOF
 
4759
 
 
4760
fi
 
4761
 
 
4762
 
 
4763
for ac_header in sys/time.h
 
4764
do
 
4765
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
4766
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4767
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4768
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
4769
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4770
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4771
fi
 
4772
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
4773
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
4774
else
 
4775
  # Is the header compilable?
 
4776
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
4777
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
4778
cat >conftest.$ac_ext <<_ACEOF
 
4779
#line $LINENO "configure"
 
4780
/* confdefs.h.  */
 
4781
_ACEOF
 
4782
cat confdefs.h >>conftest.$ac_ext
 
4783
cat >>conftest.$ac_ext <<_ACEOF
 
4784
/* end confdefs.h.  */
 
4785
$ac_includes_default
 
4786
#include <$ac_header>
 
4787
_ACEOF
 
4788
rm -f conftest.$ac_objext
 
4789
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4790
  (eval $ac_compile) 2>&5
 
4791
  ac_status=$?
 
4792
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4793
  (exit $ac_status); } &&
 
4794
         { ac_try='test -s conftest.$ac_objext'
 
4795
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4796
  (eval $ac_try) 2>&5
 
4797
  ac_status=$?
 
4798
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4799
  (exit $ac_status); }; }; then
 
4800
  ac_header_compiler=yes
 
4801
else
 
4802
  echo "$as_me: failed program was:" >&5
 
4803
sed 's/^/| /' conftest.$ac_ext >&5
 
4804
 
 
4805
ac_header_compiler=no
 
4806
fi
 
4807
rm -f conftest.$ac_objext conftest.$ac_ext
 
4808
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
4809
echo "${ECHO_T}$ac_header_compiler" >&6
 
4810
 
 
4811
# Is the header present?
 
4812
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
4813
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
4814
cat >conftest.$ac_ext <<_ACEOF
 
4815
#line $LINENO "configure"
 
4816
/* confdefs.h.  */
 
4817
_ACEOF
 
4818
cat confdefs.h >>conftest.$ac_ext
 
4819
cat >>conftest.$ac_ext <<_ACEOF
 
4820
/* end confdefs.h.  */
 
4821
#include <$ac_header>
 
4822
_ACEOF
 
4823
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4824
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4825
  ac_status=$?
 
4826
  grep -v '^ *+' conftest.er1 >conftest.err
 
4827
  rm -f conftest.er1
 
4828
  cat conftest.err >&5
 
4829
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4830
  (exit $ac_status); } >/dev/null; then
 
4831
  if test -s conftest.err; then
 
4832
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4833
  else
 
4834
    ac_cpp_err=
 
4835
  fi
 
4836
else
 
4837
  ac_cpp_err=yes
 
4838
fi
 
4839
if test -z "$ac_cpp_err"; then
 
4840
  ac_header_preproc=yes
 
4841
else
 
4842
  echo "$as_me: failed program was:" >&5
 
4843
sed 's/^/| /' conftest.$ac_ext >&5
 
4844
 
 
4845
  ac_header_preproc=no
 
4846
fi
 
4847
rm -f conftest.err conftest.$ac_ext
 
4848
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
4849
echo "${ECHO_T}$ac_header_preproc" >&6
 
4850
 
 
4851
# So?  What about this header?
 
4852
case $ac_header_compiler:$ac_header_preproc in
 
4853
  yes:no )
 
4854
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
4855
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
4856
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
4857
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
4858
    (
 
4859
      cat <<\_ASBOX
 
4860
## ------------------------------------ ##
 
4861
## Report this to bug-autoconf@gnu.org. ##
 
4862
## ------------------------------------ ##
 
4863
_ASBOX
 
4864
    ) |
 
4865
      sed "s/^/$as_me: WARNING:     /" >&2
 
4866
    ;;
 
4867
  no:yes )
 
4868
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
4869
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
4870
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
 
4871
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
 
4872
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
4873
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
4874
    (
 
4875
      cat <<\_ASBOX
 
4876
## ------------------------------------ ##
 
4877
## Report this to bug-autoconf@gnu.org. ##
 
4878
## ------------------------------------ ##
 
4879
_ASBOX
 
4880
    ) |
 
4881
      sed "s/^/$as_me: WARNING:     /" >&2
 
4882
    ;;
 
4883
esac
 
4884
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4885
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
4886
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4887
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4888
else
 
4889
  eval "$as_ac_Header=$ac_header_preproc"
 
4890
fi
 
4891
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
4892
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
4893
 
 
4894
fi
 
4895
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
4896
  cat >>confdefs.h <<_ACEOF
 
4897
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
4898
_ACEOF
 
4899
 
 
4900
fi
 
4901
 
 
4902
done
 
4903
 
 
4904
 
 
4905
 
 
4906
   echo "$as_me:$LINENO: checking for socklen_t" >&5
 
4907
echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
 
4908
if test "${ac_cv_type_socklen_t+set}" = set; then
 
4909
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4910
else
 
4911
  cat >conftest.$ac_ext <<_ACEOF
 
4912
#line $LINENO "configure"
 
4913
/* confdefs.h.  */
 
4914
_ACEOF
 
4915
cat confdefs.h >>conftest.$ac_ext
 
4916
cat >>conftest.$ac_ext <<_ACEOF
 
4917
/* end confdefs.h.  */
 
4918
#include <sys/types.h>
 
4919
#include <sys/socket.h>
 
4920
 
 
4921
int
 
4922
main ()
 
4923
{
 
4924
if ((socklen_t *) 0)
 
4925
  return 0;
 
4926
if (sizeof (socklen_t))
 
4927
  return 0;
 
4928
  ;
 
4929
  return 0;
 
4930
}
 
4931
_ACEOF
 
4932
rm -f conftest.$ac_objext
 
4933
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4934
  (eval $ac_compile) 2>&5
 
4935
  ac_status=$?
 
4936
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4937
  (exit $ac_status); } &&
 
4938
         { ac_try='test -s conftest.$ac_objext'
 
4939
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4940
  (eval $ac_try) 2>&5
 
4941
  ac_status=$?
 
4942
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4943
  (exit $ac_status); }; }; then
 
4944
  ac_cv_type_socklen_t=yes
 
4945
else
 
4946
  echo "$as_me: failed program was:" >&5
 
4947
sed 's/^/| /' conftest.$ac_ext >&5
 
4948
 
 
4949
ac_cv_type_socklen_t=no
 
4950
fi
 
4951
rm -f conftest.$ac_objext conftest.$ac_ext
 
4952
fi
 
4953
echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
 
4954
echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
 
4955
if test $ac_cv_type_socklen_t = yes; then
 
4956
  :
 
4957
else
 
4958
 
 
4959
      echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5
 
4960
echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6
 
4961
      if test "${nut_cv_socklen_t_equiv+set}" = set; then
 
4962
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4963
else
 
4964
 
 
4965
         # Systems have either "struct sockaddr *" or
 
4966
         # "void *" as the second argument to getpeername
 
4967
         nut_cv_socklen_t_equiv=
 
4968
         for arg2 in "struct sockaddr" void; do
 
4969
            for t in int size_t unsigned long "unsigned long"; do
 
4970
               cat >conftest.$ac_ext <<_ACEOF
 
4971
#line $LINENO "configure"
 
4972
/* confdefs.h.  */
 
4973
_ACEOF
 
4974
cat confdefs.h >>conftest.$ac_ext
 
4975
cat >>conftest.$ac_ext <<_ACEOF
 
4976
/* end confdefs.h.  */
 
4977
 
 
4978
#include <sys/types.h>
 
4979
#include <sys/socket.h>
 
4980
 
 
4981
                  int getpeername (int, $arg2 *, $t *);
 
4982
 
 
4983
int
 
4984
main ()
 
4985
{
 
4986
 
 
4987
                  $t len;
 
4988
                  getpeername(0,0,&len);
 
4989
 
 
4990
  ;
 
4991
  return 0;
 
4992
}
 
4993
_ACEOF
 
4994
rm -f conftest.$ac_objext
 
4995
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4996
  (eval $ac_compile) 2>&5
 
4997
  ac_status=$?
 
4998
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4999
  (exit $ac_status); } &&
 
5000
         { ac_try='test -s conftest.$ac_objext'
 
5001
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5002
  (eval $ac_try) 2>&5
 
5003
  ac_status=$?
 
5004
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5005
  (exit $ac_status); }; }; then
 
5006
 
 
5007
                  nut_cv_socklen_t_equiv="$t"
 
5008
                  break
 
5009
 
 
5010
else
 
5011
  echo "$as_me: failed program was:" >&5
 
5012
sed 's/^/| /' conftest.$ac_ext >&5
 
5013
 
 
5014
fi
 
5015
rm -f conftest.$ac_objext conftest.$ac_ext
 
5016
            done
 
5017
         done
 
5018
 
 
5019
         if test "x$nut_cv_socklen_t_equiv" = x; then
 
5020
            { { echo "$as_me:$LINENO: error: Cannot find a type to use in place of socklen_t" >&5
 
5021
echo "$as_me: error: Cannot find a type to use in place of socklen_t" >&2;}
 
5022
   { (exit 1); exit 1; }; }
 
5023
         fi
 
5024
 
 
5025
fi
 
5026
 
 
5027
      echo "$as_me:$LINENO: result: $nut_cv_socklen_t_equiv" >&5
 
5028
echo "${ECHO_T}$nut_cv_socklen_t_equiv" >&6
 
5029
 
 
5030
cat >>confdefs.h <<_ACEOF
 
5031
#define socklen_t $nut_cv_socklen_t_equiv
 
5032
_ACEOF
 
5033
 
 
5034
fi
 
5035
 
 
5036
 
 
5037
 
 
5038
CFLAGS_ORIG=$CFLAGS
 
5039
LDFLAGS_ORIG=$LDFLAGS
 
5040
 
 
5041
echo "$as_me:$LINENO: checking whether to enable SSL development code" >&5
 
5042
echo $ECHO_N "checking whether to enable SSL development code... $ECHO_C" >&6
 
5043
 
 
5044
# Check whether --with-ssl or --without-ssl was given.
 
5045
if test "${with_ssl+set}" = set; then
 
5046
  withval="$with_ssl"
 
5047
        case "$withval" in
 
5048
        yes)
 
5049
                echo "$as_me:$LINENO: result: yes" >&5
 
5050
echo "${ECHO_T}yes" >&6
 
5051
 
 
5052
                SSL_CFLAGS=""
 
5053
                SSL_LDFLAGS="-lssl -lcrypto"
 
5054
 
 
5055
                CFLAGS=$SSL_CFLAGS
 
5056
                LDFLAGS=$SSL_LDFLAGS
 
5057
                cat >conftest.$ac_ext <<_ACEOF
 
5058
#line $LINENO "configure"
 
5059
/* confdefs.h.  */
 
5060
_ACEOF
 
5061
cat confdefs.h >>conftest.$ac_ext
 
5062
cat >>conftest.$ac_ext <<_ACEOF
 
5063
/* end confdefs.h.  */
 
5064
#include <openssl/ssl.h>
 
5065
int
 
5066
main ()
 
5067
{
 
5068
SSL_library_init()
 
5069
  ;
 
5070
  return 0;
 
5071
}
 
5072
_ACEOF
 
5073
rm -f conftest.$ac_objext conftest$ac_exeext
 
5074
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5075
  (eval $ac_link) 2>&5
 
5076
  ac_status=$?
 
5077
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5078
  (exit $ac_status); } &&
 
5079
         { ac_try='test -s conftest$ac_exeext'
 
5080
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5081
  (eval $ac_try) 2>&5
 
5082
  ac_status=$?
 
5083
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5084
  (exit $ac_status); }; }; then
 
5085
  ssl_ok=yes
 
5086
else
 
5087
  echo "$as_me: failed program was:" >&5
 
5088
sed 's/^/| /' conftest.$ac_ext >&5
 
5089
 
 
5090
ssl_ok=no
 
5091
fi
 
5092
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
5093
 
 
5094
                if test "$ssl_ok" != yes; then
 
5095
                        SSL_CFLAGS="-I/usr/local/ssl/include"
 
5096
                        SSL_LDFLAGS="-L/usr/local/ssl/lib -lssl -lcrypto"
 
5097
 
 
5098
                        CFLAGS=$SSL_CFLAGS
 
5099
                        LDFLAGS=$SSL_LDFLAGS
 
5100
                        cat >conftest.$ac_ext <<_ACEOF
 
5101
#line $LINENO "configure"
 
5102
/* confdefs.h.  */
 
5103
_ACEOF
 
5104
cat confdefs.h >>conftest.$ac_ext
 
5105
cat >>conftest.$ac_ext <<_ACEOF
 
5106
/* end confdefs.h.  */
 
5107
#include <openssl/ssl.h>
 
5108
int
 
5109
main ()
 
5110
{
 
5111
SSL_library_init
 
5112
  ;
 
5113
  return 0;
 
5114
}
 
5115
_ACEOF
 
5116
rm -f conftest.$ac_objext conftest$ac_exeext
 
5117
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5118
  (eval $ac_link) 2>&5
 
5119
  ac_status=$?
 
5120
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5121
  (exit $ac_status); } &&
 
5122
         { ac_try='test -s conftest$ac_exeext'
 
5123
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5124
  (eval $ac_try) 2>&5
 
5125
  ac_status=$?
 
5126
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5127
  (exit $ac_status); }; }; then
 
5128
  ssl_ok=yes
 
5129
else
 
5130
  echo "$as_me: failed program was:" >&5
 
5131
sed 's/^/| /' conftest.$ac_ext >&5
 
5132
 
 
5133
ssl_ok=no
 
5134
fi
 
5135
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
5136
                fi
 
5137
 
 
5138
                if test "$ssl_ok" != yes; then
 
5139
                        { { echo "$as_me:$LINENO: error: \"OpenSSL not found\"" >&5
 
5140
echo "$as_me: error: \"OpenSSL not found\"" >&2;}
 
5141
   { (exit 1); exit 1; }; }
 
5142
                fi
 
5143
 
 
5144
 
 
5145
cat >>confdefs.h <<\_ACEOF
 
5146
#define HAVE_SSL 1
 
5147
_ACEOF
 
5148
 
 
5149
                ;;
 
5150
        *)
 
5151
                echo "$as_me:$LINENO: result: no" >&5
 
5152
echo "${ECHO_T}no" >&6
 
5153
                ;;
 
5154
        esac
 
5155
else
 
5156
  echo "$as_me:$LINENO: result: no" >&5
 
5157
echo "${ECHO_T}no" >&6
 
5158
 
 
5159
fi;
 
5160
 
 
5161
CFLAGS=$CFLAGS_ORIG
 
5162
LDFLAGS=$LDFLAGS_ORIG
 
5163
 
 
5164
 
 
5165
echo "$as_me:$LINENO: checking for gd version via gdlib-config" >&5
 
5166
echo $ECHO_N "checking for gd version via gdlib-config... $ECHO_C" >&6
 
5167
 
 
5168
GD_VERSION=`gdlib-config --version 2>/dev/null`
 
5169
if (test "$?" != "0")
 
5170
then
 
5171
        GD_VERSION="unknown"
 
5172
        echo "$as_me:$LINENO: result: not found" >&5
 
5173
echo "${ECHO_T}not found" >&6
 
5174
else
 
5175
        echo "$as_me:$LINENO: result: $GD_VERSION" >&5
 
5176
echo "${ECHO_T}$GD_VERSION" >&6
 
5177
fi
 
5178
 
 
5179
case "$GD_VERSION" in
 
5180
        unknown)
 
5181
                ;;
 
5182
 
 
5183
        2.0.5 | 2.0.6 | 2.0.7)
 
5184
                { echo "$as_me:$LINENO: WARNING: gd $GD_VERSION detected, unable to use gdlib-config script" >&5
 
5185
echo "$as_me: WARNING: gd $GD_VERSION detected, unable to use gdlib-config script" >&2;}
 
5186
                { echo "$as_me:$LINENO: WARNING: If gd detection fails, upgrade gd or use --with-gd-libs" >&5
 
5187
echo "$as_me: WARNING: If gd detection fails, upgrade gd or use --with-gd-libs" >&2;}
 
5188
                ;;
 
5189
 
 
5190
        *)
 
5191
                GD_LIBS="`gdlib-config --ldflags` `gdlib-config --libs` -lgd"
 
5192
                GD_INCLUDES="`gdlib-config --includes`"
 
5193
                ;;
 
5194
        esac
 
5195
 
 
5196
 
 
5197
echo "$as_me:$LINENO: checking for gd include flags" >&5
 
5198
echo $ECHO_N "checking for gd include flags... $ECHO_C" >&6
 
5199
 
 
5200
# Check whether --with-gd-includes or --without-gd-includes was given.
 
5201
if test "${with_gd_includes+set}" = set; then
 
5202
  withval="$with_gd_includes"
 
5203
        case "$withval" in
 
5204
        yes|no)
 
5205
                echo "$as_me:$LINENO: result: using defaults" >&5
 
5206
echo "${ECHO_T}using defaults" >&6
 
5207
                ;;
 
5208
        *)
 
5209
                echo "$as_me:$LINENO: result: using $withval" >&5
 
5210
echo "${ECHO_T}using $withval" >&6
 
5211
                GD_INCLUDES=$withval
 
5212
                ;;
 
5213
        esac
 
5214
else
 
5215
  echo "$as_me:$LINENO: result: using defaults" >&5
 
5216
echo "${ECHO_T}using defaults" >&6
 
5217
 
 
5218
fi;
 
5219
 
 
5220
echo "$as_me:$LINENO: checking for gd library flags" >&5
 
5221
echo $ECHO_N "checking for gd library flags... $ECHO_C" >&6
 
5222
 
 
5223
# Check whether --with-gd-libs or --without-gd-libs was given.
 
5224
if test "${with_gd_libs+set}" = set; then
 
5225
  withval="$with_gd_libs"
 
5226
        case "$withval" in
 
5227
        yes|no)
 
5228
                echo "$as_me:$LINENO: result: using defaults" >&5
 
5229
echo "${ECHO_T}using defaults" >&6
 
5230
                ;;
 
5231
        *)
 
5232
                echo "$as_me:$LINENO: result: using $withval" >&5
 
5233
echo "${ECHO_T}using $withval" >&6
 
5234
                GD_LIBS=$withval
 
5235
                ;;
 
5236
        esac
 
5237
else
 
5238
  echo "$as_me:$LINENO: result: using defaults" >&5
 
5239
echo "${ECHO_T}using defaults" >&6
 
5240
 
 
5241
fi;
 
5242
 
 
5243
echo "$as_me:$LINENO: checking whether to build CGI programs" >&5
 
5244
echo $ECHO_N "checking whether to build CGI programs... $ECHO_C" >&6
 
5245
 
 
5246
# Check whether --with-cgi or --without-cgi was given.
 
5247
if test "${with_cgi+set}" = set; then
 
5248
  withval="$with_cgi"
 
5249
        case "$withval" in
 
5250
        yes)
 
5251
 
 
5252
                echo "$as_me:$LINENO: result: yes" >&5
 
5253
echo "${ECHO_T}yes" >&6
 
5254
                CGI_BUILD_TARGET="build-cgi"
 
5255
 
 
5256
 
 
5257
CFLAGS_ORIG=$CFLAGS
 
5258
CPPFLAGS_ORIG=$CPPFLAGS
 
5259
LDFLAGS_ORIG=$LDFLAGS
 
5260
 
 
5261
                CFLAGS=$GD_INCLUDES
 
5262
                CPPFLAGS=$GD_INCLUDES
 
5263
                LDFLAGS=$GD_LIBS
 
5264
 
 
5265
 
 
5266
for ac_header in gd.h
 
5267
do
 
5268
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
5269
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
5270
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5271
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
5272
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
5273
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5274
fi
 
5275
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
5276
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
5277
else
 
5278
  # Is the header compilable?
 
5279
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
5280
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
5281
cat >conftest.$ac_ext <<_ACEOF
 
5282
#line $LINENO "configure"
 
5283
/* confdefs.h.  */
 
5284
_ACEOF
 
5285
cat confdefs.h >>conftest.$ac_ext
 
5286
cat >>conftest.$ac_ext <<_ACEOF
 
5287
/* end confdefs.h.  */
 
5288
$ac_includes_default
 
5289
#include <$ac_header>
 
5290
_ACEOF
 
5291
rm -f conftest.$ac_objext
 
5292
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5293
  (eval $ac_compile) 2>&5
 
5294
  ac_status=$?
 
5295
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5296
  (exit $ac_status); } &&
 
5297
         { ac_try='test -s conftest.$ac_objext'
 
5298
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5299
  (eval $ac_try) 2>&5
 
5300
  ac_status=$?
 
5301
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5302
  (exit $ac_status); }; }; then
 
5303
  ac_header_compiler=yes
 
5304
else
 
5305
  echo "$as_me: failed program was:" >&5
 
5306
sed 's/^/| /' conftest.$ac_ext >&5
 
5307
 
 
5308
ac_header_compiler=no
 
5309
fi
 
5310
rm -f conftest.$ac_objext conftest.$ac_ext
 
5311
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
5312
echo "${ECHO_T}$ac_header_compiler" >&6
 
5313
 
 
5314
# Is the header present?
 
5315
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
5316
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
5317
cat >conftest.$ac_ext <<_ACEOF
 
5318
#line $LINENO "configure"
 
5319
/* confdefs.h.  */
 
5320
_ACEOF
 
5321
cat confdefs.h >>conftest.$ac_ext
 
5322
cat >>conftest.$ac_ext <<_ACEOF
 
5323
/* end confdefs.h.  */
 
5324
#include <$ac_header>
 
5325
_ACEOF
 
5326
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
5327
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
5328
  ac_status=$?
 
5329
  grep -v '^ *+' conftest.er1 >conftest.err
 
5330
  rm -f conftest.er1
 
5331
  cat conftest.err >&5
 
5332
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5333
  (exit $ac_status); } >/dev/null; then
 
5334
  if test -s conftest.err; then
 
5335
    ac_cpp_err=$ac_c_preproc_warn_flag
 
5336
  else
 
5337
    ac_cpp_err=
 
5338
  fi
 
5339
else
 
5340
  ac_cpp_err=yes
 
5341
fi
 
5342
if test -z "$ac_cpp_err"; then
 
5343
  ac_header_preproc=yes
 
5344
else
 
5345
  echo "$as_me: failed program was:" >&5
 
5346
sed 's/^/| /' conftest.$ac_ext >&5
 
5347
 
 
5348
  ac_header_preproc=no
 
5349
fi
 
5350
rm -f conftest.err conftest.$ac_ext
 
5351
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
5352
echo "${ECHO_T}$ac_header_preproc" >&6
 
5353
 
 
5354
# So?  What about this header?
 
5355
case $ac_header_compiler:$ac_header_preproc in
 
5356
  yes:no )
 
5357
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
5358
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
5359
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
5360
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
5361
    (
 
5362
      cat <<\_ASBOX
 
5363
## ------------------------------------ ##
 
5364
## Report this to bug-autoconf@gnu.org. ##
 
5365
## ------------------------------------ ##
 
5366
_ASBOX
 
5367
    ) |
 
5368
      sed "s/^/$as_me: WARNING:     /" >&2
 
5369
    ;;
 
5370
  no:yes )
 
5371
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
5372
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
5373
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
 
5374
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
 
5375
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
5376
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
5377
    (
 
5378
      cat <<\_ASBOX
 
5379
## ------------------------------------ ##
 
5380
## Report this to bug-autoconf@gnu.org. ##
 
5381
## ------------------------------------ ##
 
5382
_ASBOX
 
5383
    ) |
 
5384
      sed "s/^/$as_me: WARNING:     /" >&2
 
5385
    ;;
 
5386
esac
 
5387
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5388
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
5389
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
5390
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5391
else
 
5392
  eval "$as_ac_Header=$ac_header_preproc"
 
5393
fi
 
5394
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
5395
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
5396
 
 
5397
fi
 
5398
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
5399
  cat >>confdefs.h <<_ACEOF
 
5400
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
5401
_ACEOF
 
5402
 
 
5403
fi
 
5404
 
 
5405
done
 
5406
 
 
5407
                echo "$as_me:$LINENO: checking for gdImagePng in -lgd" >&5
 
5408
echo $ECHO_N "checking for gdImagePng in -lgd... $ECHO_C" >&6
 
5409
if test "${ac_cv_lib_gd_gdImagePng+set}" = set; then
 
5410
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5411
else
 
5412
  ac_check_lib_save_LIBS=$LIBS
 
5413
LIBS="-lgd $GD_LIBS $LIBS"
 
5414
cat >conftest.$ac_ext <<_ACEOF
 
5415
#line $LINENO "configure"
 
5416
/* confdefs.h.  */
 
5417
_ACEOF
 
5418
cat confdefs.h >>conftest.$ac_ext
 
5419
cat >>conftest.$ac_ext <<_ACEOF
 
5420
/* end confdefs.h.  */
 
5421
 
2308
5422
/* Override any gcc2 internal prototype to avoid an error.  */
 
5423
#ifdef __cplusplus
 
5424
extern "C"
 
5425
#endif
2309
5426
/* We use char because int might match the return type of a gcc2
2310
 
    builtin and then its argument prototype would still apply.  */
2311
 
char png_info_init();
2312
 
 
2313
 
int main() {
2314
 
png_info_init()
2315
 
; return 0; }
2316
 
EOF
2317
 
if { (eval echo configure:2318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2318
 
  rm -rf conftest*
2319
 
  eval "ac_cv_lib_$ac_lib_var=yes"
2320
 
else
2321
 
  echo "configure: failed program was:" >&5
2322
 
  cat conftest.$ac_ext >&5
2323
 
  rm -rf conftest*
2324
 
  eval "ac_cv_lib_$ac_lib_var=no"
2325
 
fi
2326
 
rm -f conftest*
2327
 
LIBS="$ac_save_LIBS"
2328
 
 
2329
 
fi
2330
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2331
 
  echo "$ac_t""yes" 1>&6
2332
 
   GFXLIBS="-R${lib} $GFXLIBS"
2333
 
         
2334
 
else
2335
 
  echo "$ac_t""no" 1>&6
2336
 
fi
2337
 
 
2338
 
      fi
2339
 
   done
2340
 
fi
2341
 
 
2342
 
echo $ac_n "checking for Linux hiddev.h""... $ac_c" 1>&6
2343
 
echo "configure:2344: checking for Linux hiddev.h" >&5
 
5427
   builtin and then its argument prototype would still apply.  */
 
5428
char gdImagePng ();
 
5429
int
 
5430
main ()
 
5431
{
 
5432
gdImagePng ();
 
5433
  ;
 
5434
  return 0;
 
5435
}
 
5436
_ACEOF
 
5437
rm -f conftest.$ac_objext conftest$ac_exeext
 
5438
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5439
  (eval $ac_link) 2>&5
 
5440
  ac_status=$?
 
5441
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5442
  (exit $ac_status); } &&
 
5443
         { ac_try='test -s conftest$ac_exeext'
 
5444
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5445
  (eval $ac_try) 2>&5
 
5446
  ac_status=$?
 
5447
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5448
  (exit $ac_status); }; }; then
 
5449
  ac_cv_lib_gd_gdImagePng=yes
 
5450
else
 
5451
  echo "$as_me: failed program was:" >&5
 
5452
sed 's/^/| /' conftest.$ac_ext >&5
 
5453
 
 
5454
ac_cv_lib_gd_gdImagePng=no
 
5455
fi
 
5456
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
5457
LIBS=$ac_check_lib_save_LIBS
 
5458
fi
 
5459
echo "$as_me:$LINENO: result: $ac_cv_lib_gd_gdImagePng" >&5
 
5460
echo "${ECHO_T}$ac_cv_lib_gd_gdImagePng" >&6
 
5461
if test $ac_cv_lib_gd_gdImagePng = yes; then
 
5462
 
 
5463
cat >>confdefs.h <<\_ACEOF
 
5464
#define HAVE_LIBGD 1
 
5465
_ACEOF
 
5466
 
 
5467
else
 
5468
  { echo "$as_me:$LINENO: WARNING: libgd not found - CGI build will fail" >&5
 
5469
echo "$as_me: WARNING: libgd not found - CGI build will fail" >&2;}
 
5470
fi
 
5471
 
 
5472
 
 
5473
CFLAGS=$CFLAGS_ORIG
 
5474
CPPFLAGS=$CPPFLAGS_ORIG
 
5475
LDFLAGS=$LDFLAGS_ORIG
 
5476
 
 
5477
 
 
5478
                ;;
 
5479
        no)
 
5480
                echo "$as_me:$LINENO: result: no" >&5
 
5481
echo "${ECHO_T}no" >&6
 
5482
                CGI_BUILD_TARGET="build-cgi-fake"
 
5483
                ;;
 
5484
        *)
 
5485
                echo "$as_me:$LINENO: result: no" >&5
 
5486
echo "${ECHO_T}no" >&6
 
5487
                CGI_BUILD_TARGET="build-cgi-fake"
 
5488
                ;;
 
5489
        esac
 
5490
else
 
5491
 
 
5492
        echo "$as_me:$LINENO: result: no" >&5
 
5493
echo "${ECHO_T}no" >&6
 
5494
        CGI_BUILD_TARGET="build-cgi-fake"
 
5495
 
 
5496
 
 
5497
fi;
 
5498
 
 
5499
echo "$as_me:$LINENO: checking for Net-SNMP cflags" >&5
 
5500
echo $ECHO_N "checking for Net-SNMP cflags... $ECHO_C" >&6
 
5501
NETSNMP_CFLAGS=`net-snmp-config --cflags 2>/dev/null`
 
5502
 
 
5503
if (test "$?" != "0")
 
5504
then
 
5505
        echo "$as_me:$LINENO: result: not found" >&5
 
5506
echo "${ECHO_T}not found" >&6
 
5507
else
 
5508
        echo "$as_me:$LINENO: result: $NETSNMP_CFLAGS" >&5
 
5509
echo "${ECHO_T}$NETSNMP_CFLAGS" >&6
 
5510
fi
 
5511
 
 
5512
echo "$as_me:$LINENO: checking for Net-SNMP libs" >&5
 
5513
echo $ECHO_N "checking for Net-SNMP libs... $ECHO_C" >&6
 
5514
NETSNMP_LIBS=`net-snmp-config --libs 2>/dev/null`
 
5515
 
 
5516
if (test "$?" != "0")
 
5517
then
 
5518
        echo "$as_me:$LINENO: result: not found" >&5
 
5519
echo "${ECHO_T}not found" >&6
 
5520
else
 
5521
        echo "$as_me:$LINENO: result: $NETSNMP_LIBS" >&5
 
5522
echo "${ECHO_T}$NETSNMP_LIBS" >&6
 
5523
fi
 
5524
 
 
5525
 
 
5526
echo "$as_me:$LINENO: checking for libusb cflags" >&5
 
5527
echo $ECHO_N "checking for libusb cflags... $ECHO_C" >&6
 
5528
LIBUSB_CFLAGS=`libusb-config --cflags 2>/dev/null`
 
5529
 
 
5530
if (test "$?" != "0")
 
5531
then
 
5532
       echo "$as_me:$LINENO: result: not found" >&5
 
5533
echo "${ECHO_T}not found" >&6
 
5534
else
 
5535
       echo "$as_me:$LINENO: result: $LIBUSB_CFLAGS" >&5
 
5536
echo "${ECHO_T}$LIBUSB_CFLAGS" >&6
 
5537
fi
 
5538
 
 
5539
echo "$as_me:$LINENO: checking for libusb libs" >&5
 
5540
echo $ECHO_N "checking for libusb libs... $ECHO_C" >&6
 
5541
LIBUSB_LIBS=`libusb-config --libs 2>/dev/null`
 
5542
 
 
5543
if (test "$?" != "0")
 
5544
then
 
5545
       echo "$as_me:$LINENO: result: not found" >&5
 
5546
echo "${ECHO_T}not found" >&6
 
5547
else
 
5548
       echo "$as_me:$LINENO: result: $LIBUSB_LIBS" >&5
 
5549
echo "${ECHO_T}$LIBUSB_LIBS" >&6
 
5550
fi
 
5551
 
 
5552
echo "$as_me:$LINENO: checking for Linux hiddev.h" >&5
 
5553
echo $ECHO_N "checking for Linux hiddev.h... $ECHO_C" >&6
 
5554
 
2344
5555
# Check whether --with-linux-hiddev or --without-linux-hiddev was given.
2345
5556
if test "${with_linux_hiddev+set}" = set; then
2346
5557
  withval="$with_linux_hiddev"
2348
5559
        yes)
2349
5560
                if (test -f /usr/src/linux/include/linux/hiddev.h)
2350
5561
                then
2351
 
                        echo "$ac_t""using default: /usr/src/linux/include/linux" 1>&6
2352
 
                        cat >> confdefs.h <<EOF
 
5562
                        echo "$as_me:$LINENO: result: using default: /usr/src/linux/include/linux" >&5
 
5563
echo "${ECHO_T}using default: /usr/src/linux/include/linux" >&6
 
5564
 
 
5565
cat >>confdefs.h <<_ACEOF
2353
5566
#define LINUX_HIDDEV "/usr/src/linux/include/linux/hiddev.h"
2354
 
EOF
 
5567
_ACEOF
2355
5568
 
2356
5569
                        LINUX_HIDDEV=/usr/src/linux/include/linux/hiddev.h
2357
5570
                fi
2358
5571
                ;;
2359
5572
        no)
2360
 
                echo "$ac_t""no" 1>&6
 
5573
                echo "$as_me:$LINENO: result: no" >&5
 
5574
echo "${ECHO_T}no" >&6
2361
5575
                ;;
2362
5576
        *)
2363
5577
                if (test -f $withval)
2364
5578
                then
2365
 
                        echo "$ac_t""$withval" 1>&6
2366
 
                        cat >> confdefs.h <<EOF
 
5579
                        echo "$as_me:$LINENO: result: $withval" >&5
 
5580
echo "${ECHO_T}$withval" >&6
 
5581
 
 
5582
cat >>confdefs.h <<_ACEOF
2367
5583
#define LINUX_HIDDEV "$withval"
2368
 
EOF
 
5584
_ACEOF
2369
5585
 
2370
5586
                        LINUX_HIDDEV=$withval
2371
5587
                else
2372
 
                        echo "$ac_t""hiddev.h not found in $withval" 1>&6
 
5588
                        echo "$as_me:$LINENO: result: hiddev.h not found in $withval" >&5
 
5589
echo "${ECHO_T}hiddev.h not found in $withval" >&6
2373
5590
                fi
2374
5591
                ;;
2375
5592
        esac
2376
5593
else
2377
 
  
 
5594
 
2378
5595
        if (test -f /usr/src/linux/include/linux/hiddev.h)
2379
5596
        then
2380
 
                echo "$ac_t""using default: /usr/src/linux/include/linux" 1>&6
2381
 
                cat >> confdefs.h <<EOF
 
5597
                echo "$as_me:$LINENO: result: using default: /usr/src/linux/include/linux" >&5
 
5598
echo "${ECHO_T}using default: /usr/src/linux/include/linux" >&6
 
5599
 
 
5600
cat >>confdefs.h <<_ACEOF
2382
5601
#define LINUX_HIDDEV "/usr/src/linux/include/linux/hiddev.h"
2383
 
EOF
 
5602
_ACEOF
2384
5603
 
2385
5604
                LINUX_HIDDEV=/usr/src/linux/include/linux/hiddev.h
2386
5605
        else
2387
 
                echo "$ac_t""no" 1>&6
 
5606
                echo "$as_me:$LINENO: result: no" >&5
 
5607
echo "${ECHO_T}no" >&6
2388
5608
        fi
2389
5609
 
2390
5610
 
2391
 
fi
2392
 
 
2393
 
 
2394
 
echo $ac_n "checking state path""... $ac_c" 1>&6
2395
 
echo "configure:2396: checking state path" >&5
 
5611
fi;
 
5612
 
 
5613
echo "$as_me:$LINENO: checking state path" >&5
 
5614
echo $ECHO_N "checking state path... $ECHO_C" >&6
 
5615
 
2396
5616
# Check whether --with-statepath or --without-statepath was given.
2397
5617
if test "${with_statepath+set}" = set; then
2398
5618
  withval="$with_statepath"
2399
5619
        case "$withval" in
2400
5620
        yes|no)
2401
 
                echo "$ac_t""using default: $STATEPATH" 1>&6
2402
 
                cat >> confdefs.h <<EOF
 
5621
                echo "$as_me:$LINENO: result: using default: $STATEPATH" >&5
 
5622
echo "${ECHO_T}using default: $STATEPATH" >&6
 
5623
 
 
5624
cat >>confdefs.h <<_ACEOF
2403
5625
#define STATEPATH "$STATEPATH"
2404
 
EOF
 
5626
_ACEOF
2405
5627
 
2406
5628
                ;;
2407
5629
        *)
2408
 
                echo "$ac_t""$withval" 1>&6
2409
 
                cat >> confdefs.h <<EOF
 
5630
                echo "$as_me:$LINENO: result: $withval" >&5
 
5631
echo "${ECHO_T}$withval" >&6
 
5632
 
 
5633
cat >>confdefs.h <<_ACEOF
2410
5634
#define STATEPATH "$withval"
2411
 
EOF
 
5635
_ACEOF
2412
5636
 
2413
5637
                STATEPATH=$withval
2414
5638
                ;;
2415
5639
        esac
2416
5640
else
2417
 
  echo "$ac_t""using default: $STATEPATH" 1>&6
2418
 
        cat >> confdefs.h <<EOF
 
5641
  echo "$as_me:$LINENO: result: using default: $STATEPATH" >&5
 
5642
echo "${ECHO_T}using default: $STATEPATH" >&6
 
5643
 
 
5644
cat >>confdefs.h <<_ACEOF
2419
5645
#define STATEPATH "$STATEPATH"
2420
 
EOF
2421
 
 
2422
 
 
2423
 
fi
2424
 
 
2425
 
 
2426
 
 
2427
 
echo $ac_n "checking alt pid path""... $ac_c" 1>&6
2428
 
echo "configure:2429: checking alt pid path" >&5
 
5646
_ACEOF
 
5647
 
 
5648
 
 
5649
fi;
 
5650
 
 
5651
 
 
5652
echo "$as_me:$LINENO: checking alt pid path" >&5
 
5653
echo $ECHO_N "checking alt pid path... $ECHO_C" >&6
 
5654
 
2429
5655
# Check whether --with-altpidpath or --without-altpidpath was given.
2430
5656
if test "${with_altpidpath+set}" = set; then
2431
5657
  withval="$with_altpidpath"
2432
5658
        case "$withval" in
2433
5659
        yes|no)
2434
 
                echo "$ac_t""using default: $STATEPATH" 1>&6
2435
 
                cat >> confdefs.h <<EOF
 
5660
                echo "$as_me:$LINENO: result: using default: $STATEPATH" >&5
 
5661
echo "${ECHO_T}using default: $STATEPATH" >&6
 
5662
 
 
5663
cat >>confdefs.h <<_ACEOF
2436
5664
#define ALTPIDPATH "$STATEPATH"
2437
 
EOF
 
5665
_ACEOF
 
5666
 
2438
5667
 
2439
5668
                ALTPIDPATH=$STATEPATH
2440
5669
                ;;
2441
5670
        *)
2442
 
                echo "$ac_t""$withval" 1>&6
2443
 
                cat >> confdefs.h <<EOF
 
5671
                echo "$as_me:$LINENO: result: $withval" >&5
 
5672
echo "${ECHO_T}$withval" >&6
 
5673
 
 
5674
cat >>confdefs.h <<_ACEOF
2444
5675
#define ALTPIDPATH "$withval"
2445
 
EOF
 
5676
_ACEOF
2446
5677
 
2447
5678
                ALTPIDPATH=$withval
2448
5679
                ;;
2449
5680
        esac
2450
5681
else
2451
 
  echo "$ac_t""using default: $STATEPATH" 1>&6
2452
 
        cat >> confdefs.h <<EOF
 
5682
  echo "$as_me:$LINENO: result: using default: $STATEPATH" >&5
 
5683
echo "${ECHO_T}using default: $STATEPATH" >&6
 
5684
 
 
5685
cat >>confdefs.h <<_ACEOF
2453
5686
#define ALTPIDPATH "$STATEPATH"
2454
 
EOF
 
5687
_ACEOF
2455
5688
 
2456
5689
        ALTPIDPATH=$STATEPATH
2457
5690
 
2458
 
fi
2459
 
 
2460
 
 
2461
 
echo $ac_n "checking model path""... $ac_c" 1>&6
2462
 
echo "configure:2463: checking model path" >&5
2463
 
# Check whether --with-modelpath or --without-modelpath was given.
2464
 
if test "${with_modelpath+set}" = set; then
2465
 
  withval="$with_modelpath"
 
5691
fi;
 
5692
 
 
5693
echo "$as_me:$LINENO: checking driver path" >&5
 
5694
echo $ECHO_N "checking driver path... $ECHO_C" >&6
 
5695
 
 
5696
# Check whether --with-drvpath or --without-drvpath was given.
 
5697
if test "${with_drvpath+set}" = set; then
 
5698
  withval="$with_drvpath"
2466
5699
        case "$withval" in
2467
5700
        yes|no)
2468
 
                echo "$ac_t""using default: $MODELPATH" 1>&6
2469
 
                cat >> confdefs.h <<EOF
2470
 
#define MODELPATH "$MODELPATH"
2471
 
EOF
 
5701
                echo "$as_me:$LINENO: result: using default" >&5
 
5702
echo "${ECHO_T}using default" >&6
 
5703
                eval conftemp=${DRVPATH}
 
5704
 
 
5705
cat >>confdefs.h <<_ACEOF
 
5706
#define DRVPATH "$conftemp"
 
5707
_ACEOF
2472
5708
 
2473
5709
                ;;
2474
5710
        *)
2475
 
                echo "$ac_t""$withval" 1>&6
2476
 
                cat >> confdefs.h <<EOF
2477
 
#define MODELPATH "$withval"
2478
 
EOF
2479
 
 
2480
 
                MODELPATH=$withval
 
5711
                echo "$as_me:$LINENO: result: $withval" >&5
 
5712
echo "${ECHO_T}$withval" >&6
 
5713
                eval conftemp=${withval}
 
5714
 
 
5715
cat >>confdefs.h <<_ACEOF
 
5716
#define DRVPATH "$conftemp"
 
5717
_ACEOF
 
5718
 
 
5719
                DRVPATH=$withval
2481
5720
                ;;
2482
5721
        esac
2483
5722
else
2484
 
  echo "$ac_t""using default: $MODELPATH" 1>&6
2485
 
        cat >> confdefs.h <<EOF
2486
 
#define MODELPATH "$MODELPATH"
2487
 
EOF
2488
 
 
2489
 
 
2490
 
fi
2491
 
 
2492
 
 
2493
 
echo $ac_n "checking cgi path""... $ac_c" 1>&6
2494
 
echo "configure:2495: checking cgi path" >&5
 
5723
  echo "$as_me:$LINENO: result: using default" >&5
 
5724
echo "${ECHO_T}using default" >&6
 
5725
        eval conftemp=${DRVPATH}
 
5726
 
 
5727
cat >>confdefs.h <<_ACEOF
 
5728
#define DRVPATH "$conftemp"
 
5729
_ACEOF
 
5730
 
 
5731
 
 
5732
fi;
 
5733
 
 
5734
echo "$as_me:$LINENO: checking cgi path" >&5
 
5735
echo $ECHO_N "checking cgi path... $ECHO_C" >&6
 
5736
 
2495
5737
# Check whether --with-cgipath or --without-cgipath was given.
2496
5738
if test "${with_cgipath+set}" = set; then
2497
5739
  withval="$with_cgipath"
2498
5740
        case "$withval" in
2499
5741
        yes|no)
2500
 
                echo "$ac_t""using default: $CGIPATH" 1>&6
2501
 
                cat >> confdefs.h <<EOF
2502
 
#define CGIPATH "$CGIPATH"
2503
 
EOF
 
5742
                echo "$as_me:$LINENO: result: using default" >&5
 
5743
echo "${ECHO_T}using default" >&6
 
5744
                eval conftemp=${CGIPATH}
 
5745
 
 
5746
cat >>confdefs.h <<_ACEOF
 
5747
#define CGIPATH "$conftemp"
 
5748
_ACEOF
2504
5749
 
2505
5750
                ;;
2506
5751
        *)
2507
 
                echo "$ac_t""$withval" 1>&6
2508
 
                cat >> confdefs.h <<EOF
2509
 
#define CGIPATH "$withval"
2510
 
EOF
 
5752
                echo "$as_me:$LINENO: result: $withval" >&5
 
5753
echo "${ECHO_T}$withval" >&6
 
5754
                eval conftemp=${withval}
 
5755
 
 
5756
cat >>confdefs.h <<_ACEOF
 
5757
#define CGIPATH "$conftemp"
 
5758
_ACEOF
2511
5759
 
2512
5760
                CGIPATH=$withval
2513
5761
                ;;
2514
5762
        esac
2515
5763
else
2516
 
  echo "$ac_t""using default: $CGIPATH" 1>&6
2517
 
        cat >> confdefs.h <<EOF
2518
 
#define CGIPATH "$CGIPATH"
2519
 
EOF
2520
 
 
2521
 
 
2522
 
fi
2523
 
 
2524
 
 
2525
 
echo $ac_n "checking pidpath""... $ac_c" 1>&6
2526
 
echo "configure:2527: checking pidpath" >&5
 
5764
  echo "$as_me:$LINENO: result: using default" >&5
 
5765
echo "${ECHO_T}using default" >&6
 
5766
        eval conftemp=${CGIPATH}
 
5767
 
 
5768
cat >>confdefs.h <<_ACEOF
 
5769
#define CGIPATH "$conftemp"
 
5770
_ACEOF
 
5771
 
 
5772
 
 
5773
fi;
 
5774
 
 
5775
echo "$as_me:$LINENO: checking pidpath" >&5
 
5776
echo $ECHO_N "checking pidpath... $ECHO_C" >&6
 
5777
 
2527
5778
# Check whether --with-pidpath or --without-pidpath was given.
2528
5779
if test "${with_pidpath+set}" = set; then
2529
5780
  withval="$with_pidpath"
2530
5781
        case "$withval" in
2531
5782
        yes|no)
2532
 
                echo "$ac_t""using default: $PIDPATH" 1>&6
2533
 
                cat >> confdefs.h <<EOF
 
5783
                echo "$as_me:$LINENO: result: using default: $PIDPATH" >&5
 
5784
echo "${ECHO_T}using default: $PIDPATH" >&6
 
5785
 
 
5786
cat >>confdefs.h <<_ACEOF
2534
5787
#define PIDPATH "$PIDPATH"
2535
 
EOF
 
5788
_ACEOF
2536
5789
 
2537
5790
                ;;
2538
5791
        *)
2539
 
                echo "$ac_t""$withval" 1>&6
2540
 
                cat >> confdefs.h <<EOF
 
5792
                echo "$as_me:$LINENO: result: $withval" >&5
 
5793
echo "${ECHO_T}$withval" >&6
 
5794
 
 
5795
cat >>confdefs.h <<_ACEOF
2541
5796
#define PIDPATH "$withval"
2542
 
EOF
 
5797
_ACEOF
2543
5798
 
2544
5799
                PIDPATH=$withval
2545
5800
                ;;
2546
5801
        esac
2547
5802
else
2548
 
  echo "$ac_t""using default: $PIDPATH" 1>&6
2549
 
        cat >> confdefs.h <<EOF
 
5803
  echo "$as_me:$LINENO: result: using default: $PIDPATH" >&5
 
5804
echo "${ECHO_T}using default: $PIDPATH" >&6
 
5805
 
 
5806
cat >>confdefs.h <<_ACEOF
2550
5807
#define PIDPATH "$PIDPATH"
2551
 
EOF
2552
 
 
2553
 
 
2554
 
fi
2555
 
 
2556
 
 
2557
 
echo $ac_n "checking network port number""... $ac_c" 1>&6
2558
 
echo "configure:2559: checking network port number" >&5
 
5808
_ACEOF
 
5809
 
 
5810
 
 
5811
fi;
 
5812
 
 
5813
echo "$as_me:$LINENO: checking network port number" >&5
 
5814
echo $ECHO_N "checking network port number... $ECHO_C" >&6
 
5815
 
2559
5816
# Check whether --with-port or --without-port was given.
2560
5817
if test "${with_port+set}" = set; then
2561
5818
  withval="$with_port"
2562
5819
        case "$withval" in
2563
5820
        yes|no)
2564
 
                echo "$ac_t""using default value" 1>&6
 
5821
                echo "$as_me:$LINENO: result: using default value: 3493" >&5
 
5822
echo "${ECHO_T}using default value: 3493" >&6
 
5823
 
 
5824
cat >>confdefs.h <<_ACEOF
 
5825
#define PORT 3493
 
5826
_ACEOF
 
5827
 
2565
5828
                ;;
2566
5829
        *)
2567
 
                echo "$ac_t""$withval" 1>&6
2568
 
                cat >> confdefs.h <<EOF
 
5830
                echo "$as_me:$LINENO: result: $withval" >&5
 
5831
echo "${ECHO_T}$withval" >&6
 
5832
 
 
5833
cat >>confdefs.h <<_ACEOF
2569
5834
#define PORT $withval
2570
 
EOF
 
5835
_ACEOF
2571
5836
 
2572
5837
                ;;
2573
5838
        esac
2574
5839
else
2575
 
  echo "$ac_t""using default value" 1>&6
2576
 
 
2577
 
fi
2578
 
 
2579
 
 
2580
 
echo $ac_n "checking user to run as""... $ac_c" 1>&6
2581
 
echo "configure:2582: checking user to run as" >&5
 
5840
  echo "$as_me:$LINENO: result: using default value: 3493" >&5
 
5841
echo "${ECHO_T}using default value: 3493" >&6
 
5842
 
 
5843
cat >>confdefs.h <<_ACEOF
 
5844
#define PORT 3493
 
5845
_ACEOF
 
5846
 
 
5847
 
 
5848
fi;
 
5849
 
 
5850
echo "$as_me:$LINENO: checking user to run as" >&5
 
5851
echo $ECHO_N "checking user to run as... $ECHO_C" >&6
 
5852
 
2582
5853
# Check whether --with-user or --without-user was given.
2583
5854
if test "${with_user+set}" = set; then
2584
5855
  withval="$with_user"
2585
5856
        case "$withval" in
2586
5857
        yes|no)
2587
 
                echo "$ac_t""using default: $RUN_AS_USER" 1>&6
2588
 
                cat >> confdefs.h <<EOF
 
5858
                echo "$as_me:$LINENO: result: using default: $RUN_AS_USER" >&5
 
5859
echo "${ECHO_T}using default: $RUN_AS_USER" >&6
 
5860
 
 
5861
cat >>confdefs.h <<_ACEOF
2589
5862
#define RUN_AS_USER "$RUN_AS_USER"
2590
 
EOF
 
5863
_ACEOF
2591
5864
 
2592
5865
                ;;
2593
5866
        *)
2594
 
                echo "$ac_t""$withval" 1>&6
2595
 
                cat >> confdefs.h <<EOF
 
5867
                echo "$as_me:$LINENO: result: $withval" >&5
 
5868
echo "${ECHO_T}$withval" >&6
 
5869
 
 
5870
cat >>confdefs.h <<_ACEOF
2596
5871
#define RUN_AS_USER "$withval"
2597
 
EOF
 
5872
_ACEOF
2598
5873
 
2599
5874
                RUN_AS_USER=$withval
2600
5875
                ;;
2601
5876
        esac
2602
5877
else
2603
 
  echo "$ac_t""using default: $RUN_AS_USER" 1>&6
2604
 
        cat >> confdefs.h <<EOF
 
5878
  echo "$as_me:$LINENO: result: using default: $RUN_AS_USER" >&5
 
5879
echo "${ECHO_T}using default: $RUN_AS_USER" >&6
 
5880
 
 
5881
cat >>confdefs.h <<_ACEOF
2605
5882
#define RUN_AS_USER "$RUN_AS_USER"
2606
 
EOF
2607
 
 
2608
 
 
2609
 
fi
2610
 
 
2611
 
 
2612
 
 
2613
 
grep "^$RUN_AS_GROUP:" /etc/group >/dev/null 2>/dev/null
2614
 
if (test "$?" = "1")
2615
 
then
2616
 
        # not found, let's try something else
2617
 
        RUN_AS_GROUP="nobody"
2618
 
fi  
2619
 
 
2620
 
echo $ac_n "checking group to run as""... $ac_c" 1>&6
2621
 
echo "configure:2622: checking group to run as" >&5
2622
 
# Check whether --with-group or --without-group was given.
2623
 
if test "${with_group+set}" = set; then
2624
 
  withval="$with_group"
2625
 
        case "$withval" in
2626
 
        yes|no)
2627
 
                echo "$ac_t""using default: $RUN_AS_GROUP" 1>&6
2628
 
                cat >> confdefs.h <<EOF
2629
 
#define RUN_AS_GROUP "$RUN_AS_GROUP"
2630
 
EOF
2631
 
 
2632
 
                ;;
2633
 
        *)
2634
 
                echo "$ac_t""$withval" 1>&6
2635
 
                cat >> confdefs.h <<EOF
2636
 
#define RUN_AS_GROUP "$withval"
2637
 
EOF
2638
 
 
2639
 
                RUN_AS_GROUP=$withval
2640
 
                ;;
2641
 
        esac
2642
 
else
2643
 
  echo "$ac_t""using default: $RUN_AS_GROUP" 1>&6
2644
 
        cat >> confdefs.h <<EOF
2645
 
#define RUN_AS_GROUP "$RUN_AS_GROUP"
2646
 
EOF
2647
 
 
2648
 
 
2649
 
fi
2650
 
 
2651
 
 
2652
 
 
2653
 
grep "^$RUN_AS_GROUP:" /etc/group >/dev/null 2>/dev/null
2654
 
if (test "$?" = "1")
2655
 
then
2656
 
        # not found, fatal error
2657
 
        echo "configure: warning: $RUN_AS_GROUP not found in /etc/group!" 1>&2
2658
 
        echo "configure: warning: You might want to rerun configure using --with-group and another group name." 1>&2
2659
 
fi  
2660
 
 
2661
 
 
2662
 
echo $ac_n "checking facility for syslog""... $ac_c" 1>&6
2663
 
echo "configure:2664: checking facility for syslog" >&5
 
5883
_ACEOF
 
5884
 
 
5885
 
 
5886
fi;
 
5887
 
 
5888
echo "$as_me:$LINENO: checking facility for syslog" >&5
 
5889
echo $ECHO_N "checking facility for syslog... $ECHO_C" >&6
 
5890
 
2664
5891
# Check whether --with-logfacility or --without-logfacility was given.
2665
5892
if test "${with_logfacility+set}" = set; then
2666
5893
  withval="$with_logfacility"
2667
5894
        case "$withval" in
2668
5895
        yes|no)
2669
 
                echo "$ac_t""using default value" 1>&6
 
5896
                echo "$as_me:$LINENO: result: using default value: LOG_DAEMON" >&5
 
5897
echo "${ECHO_T}using default value: LOG_DAEMON" >&6
 
5898
 
 
5899
cat >>confdefs.h <<_ACEOF
 
5900
#define LOG_FACILITY LOG_DAEMON
 
5901
_ACEOF
 
5902
 
2670
5903
                ;;
2671
5904
        *)
2672
 
                echo "$ac_t""$withval" 1>&6
2673
 
                cat >> confdefs.h <<EOF
 
5905
                echo "$as_me:$LINENO: result: $withval" >&5
 
5906
echo "${ECHO_T}$withval" >&6
 
5907
 
 
5908
cat >>confdefs.h <<_ACEOF
2674
5909
#define LOG_FACILITY $withval
2675
 
EOF
2676
 
 
2677
 
                ;;
2678
 
        esac
2679
 
else
2680
 
  echo "$ac_t""using default value" 1>&6
2681
 
 
2682
 
fi
2683
 
 
2684
 
 
2685
 
echo $ac_n "checking whether to use shared memory""... $ac_c" 1>&6
2686
 
echo "configure:2687: checking whether to use shared memory" >&5
2687
 
# Check whether --with-shared-memory or --without-shared-memory was given.
2688
 
if test "${with_shared_memory+set}" = set; then
2689
 
  withval="$with_shared_memory"
2690
 
  
2691
 
        case "$withval" in
2692
 
                yes)
2693
 
                        echo "$ac_t""yes" 1>&6
2694
 
                        for ac_func in msgget shmat
2695
 
do
2696
 
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2697
 
echo "configure:2698: checking for $ac_func" >&5
2698
 
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2699
 
  echo $ac_n "(cached) $ac_c" 1>&6
2700
 
else
2701
 
  cat > conftest.$ac_ext <<EOF
2702
 
#line 2703 "configure"
2703
 
#include "confdefs.h"
2704
 
/* System header to define __stub macros and hopefully few prototypes,
2705
 
    which can conflict with char $ac_func(); below.  */
2706
 
#include <assert.h>
2707
 
/* Override any gcc2 internal prototype to avoid an error.  */
2708
 
/* We use char because int might match the return type of a gcc2
2709
 
    builtin and then its argument prototype would still apply.  */
2710
 
char $ac_func();
2711
 
 
2712
 
int main() {
2713
 
 
2714
 
/* The GNU C library defines this for functions which it implements
2715
 
    to always fail with ENOSYS.  Some functions are actually named
2716
 
    something starting with __ and the normal name is an alias.  */
2717
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2718
 
choke me
2719
 
#else
2720
 
$ac_func();
2721
 
#endif
2722
 
 
2723
 
; return 0; }
2724
 
EOF
2725
 
if { (eval echo configure:2726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2726
 
  rm -rf conftest*
2727
 
  eval "ac_cv_func_$ac_func=yes"
2728
 
else
2729
 
  echo "configure: failed program was:" >&5
2730
 
  cat conftest.$ac_ext >&5
2731
 
  rm -rf conftest*
2732
 
  eval "ac_cv_func_$ac_func=no"
2733
 
fi
2734
 
rm -f conftest*
2735
 
fi
2736
 
 
2737
 
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2738
 
  echo "$ac_t""yes" 1>&6
2739
 
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2740
 
  cat >> confdefs.h <<EOF
2741
 
#define $ac_tr_func 1
2742
 
EOF
2743
 
 
2744
 
else
2745
 
  echo "$ac_t""no" 1>&6
2746
 
fi
2747
 
done
2748
 
 
2749
 
                ;;
2750
 
                *)
2751
 
                        echo "$ac_t""no" 1>&6
2752
 
                ;;
2753
 
        esac
2754
 
 
2755
 
else
2756
 
  
2757
 
        echo "$ac_t""yes" 1>&6
2758
 
        for ac_func in msgget shmat
2759
 
do
2760
 
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2761
 
echo "configure:2762: checking for $ac_func" >&5
2762
 
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2763
 
  echo $ac_n "(cached) $ac_c" 1>&6
2764
 
else
2765
 
  cat > conftest.$ac_ext <<EOF
2766
 
#line 2767 "configure"
2767
 
#include "confdefs.h"
2768
 
/* System header to define __stub macros and hopefully few prototypes,
2769
 
    which can conflict with char $ac_func(); below.  */
2770
 
#include <assert.h>
2771
 
/* Override any gcc2 internal prototype to avoid an error.  */
2772
 
/* We use char because int might match the return type of a gcc2
2773
 
    builtin and then its argument prototype would still apply.  */
2774
 
char $ac_func();
2775
 
 
2776
 
int main() {
2777
 
 
2778
 
/* The GNU C library defines this for functions which it implements
2779
 
    to always fail with ENOSYS.  Some functions are actually named
2780
 
    something starting with __ and the normal name is an alias.  */
2781
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2782
 
choke me
2783
 
#else
2784
 
$ac_func();
2785
 
#endif
2786
 
 
2787
 
; return 0; }
2788
 
EOF
2789
 
if { (eval echo configure:2790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2790
 
  rm -rf conftest*
2791
 
  eval "ac_cv_func_$ac_func=yes"
2792
 
else
2793
 
  echo "configure: failed program was:" >&5
2794
 
  cat conftest.$ac_ext >&5
2795
 
  rm -rf conftest*
2796
 
  eval "ac_cv_func_$ac_func=no"
2797
 
fi
2798
 
rm -f conftest*
2799
 
fi
2800
 
 
2801
 
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2802
 
  echo "$ac_t""yes" 1>&6
2803
 
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2804
 
  cat >> confdefs.h <<EOF
2805
 
#define $ac_tr_func 1
2806
 
EOF
2807
 
 
2808
 
else
2809
 
  echo "$ac_t""no" 1>&6
2810
 
fi
2811
 
done
2812
 
 
2813
 
 
2814
 
fi
2815
 
 
2816
 
 
2817
 
echo $ac_n "checking which drivers to build""... $ac_c" 1>&6
2818
 
echo "configure:2819: checking which drivers to build" >&5
 
5910
_ACEOF
 
5911
 
 
5912
                ;;
 
5913
        esac
 
5914
else
 
5915
  echo "$as_me:$LINENO: result: using default value: LOG_DAEMON" >&5
 
5916
echo "${ECHO_T}using default value: LOG_DAEMON" >&6
 
5917
 
 
5918
cat >>confdefs.h <<_ACEOF
 
5919
#define LOG_FACILITY LOG_DAEMON
 
5920
_ACEOF
 
5921
 
 
5922
 
 
5923
fi;
 
5924
 
 
5925
echo "$as_me:$LINENO: checking which drivers to build" >&5
 
5926
echo $ECHO_N "checking which drivers to build... $ECHO_C" >&6
 
5927
 
2819
5928
# Check whether --with-drivers or --without-drivers was given.
2820
5929
if test "${with_drivers+set}" = set; then
2821
5930
  withval="$with_drivers"
2824
5933
                # ignore calls without any arguments
2825
5934
                DRIVER_BUILD_LIST="all-drivers"
2826
5935
                DRIVER_INSTALL_TARGET="all-drivers"
2827
 
                echo "$ac_t""all" 1>&6
 
5936
                echo "$as_me:$LINENO: result: all" >&5
 
5937
echo "${ECHO_T}all" >&6
2828
5938
                ;;
2829
5939
        *)
2830
5940
                DRIVER_BUILD_LIST=`echo $withval | sed "s/,/ /g"`
2831
5941
                DRIVER_INSTALL_TARGET="some-drivers"
2832
 
                echo "$ac_t""$DRIVER_BUILD_LIST" 1>&6
 
5942
                echo "$as_me:$LINENO: result: $DRIVER_BUILD_LIST" >&5
 
5943
echo "${ECHO_T}$DRIVER_BUILD_LIST" >&6
2833
5944
                ;;
2834
5945
        esac
2835
5946
 
2836
5947
else
2837
 
  
 
5948
 
2838
5949
        DRIVER_BUILD_LIST="all-drivers"
2839
5950
        DRIVER_INSTALL_TARGET="all-drivers"
2840
 
        echo "$ac_t""all" 1>&6
2841
 
 
2842
 
 
2843
 
fi
2844
 
 
 
5951
        echo "$as_me:$LINENO: result: all" >&5
 
5952
echo "${ECHO_T}all" >&6
 
5953
 
 
5954
 
 
5955
fi;
 
5956
 
 
5957
echo "$as_me:$LINENO: checking whether to strip debug symbols" >&5
 
5958
echo $ECHO_N "checking whether to strip debug symbols... $ECHO_C" >&6
 
5959
# Check whether --enable-strip or --disable-strip was given.
 
5960
if test "${enable_strip+set}" = set; then
 
5961
  enableval="$enable_strip"
 
5962
 
 
5963
        case "$withval" in
 
5964
                no)
 
5965
                        echo "$as_me:$LINENO: result: no" >&5
 
5966
echo "${ECHO_T}no" >&6
 
5967
                ;;
 
5968
                *)
 
5969
                        echo "$as_me:$LINENO: result: yes" >&5
 
5970
echo "${ECHO_T}yes" >&6
 
5971
                        CFLAGS="$CFLAGS -s"
 
5972
                ;;
 
5973
        esac
 
5974
 
 
5975
else
 
5976
        echo "$as_me:$LINENO: result: no" >&5
 
5977
echo "${ECHO_T}no" >&6
 
5978
 
 
5979
fi;
2845
5980
 
2846
5981
# 'long long' check - this gets used down in snprintf.o
2847
5982
#
2848
 
echo $ac_n "checking for long long""... $ac_c" 1>&6
2849
 
echo "configure:2850: checking for long long" >&5
2850
 
if eval "test \"`echo '$''{'nut_cv_have_longlong'+set}'`\" = set"; then
2851
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
5983
echo "$as_me:$LINENO: checking for long long" >&5
 
5984
echo $ECHO_N "checking for long long... $ECHO_C" >&6
 
5985
if test "${nut_cv_have_longlong+set}" = set; then
 
5986
  echo $ECHO_N "(cached) $ECHO_C" >&6
2852
5987
else
2853
 
  
 
5988
 
2854
5989
if test "$cross_compiling" = yes; then
2855
5990
  nut_cv_have_longlong=cross
2856
5991
else
2857
 
  cat > conftest.$ac_ext <<EOF
2858
 
#line 2859 "configure"
2859
 
#include "confdefs.h"
 
5992
  cat >conftest.$ac_ext <<_ACEOF
 
5993
#line $LINENO "configure"
 
5994
/* confdefs.h.  */
 
5995
_ACEOF
 
5996
cat confdefs.h >>conftest.$ac_ext
 
5997
cat >>conftest.$ac_ext <<_ACEOF
 
5998
/* end confdefs.h.  */
2860
5999
#include <stdio.h>
2861
6000
main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
2862
 
EOF
2863
 
if { (eval echo configure:2864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2864
 
then
 
6001
_ACEOF
 
6002
rm -f conftest$ac_exeext
 
6003
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6004
  (eval $ac_link) 2>&5
 
6005
  ac_status=$?
 
6006
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6007
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
6008
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6009
  (eval $ac_try) 2>&5
 
6010
  ac_status=$?
 
6011
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6012
  (exit $ac_status); }; }; then
2865
6013
  nut_cv_have_longlong=yes
2866
6014
else
2867
 
  echo "configure: failed program was:" >&5
2868
 
  cat conftest.$ac_ext >&5
2869
 
  rm -fr conftest*
2870
 
  nut_cv_have_longlong=no
2871
 
fi
2872
 
rm -fr conftest*
2873
 
fi
2874
 
 
2875
 
fi
2876
 
 
2877
 
echo "$ac_t""$nut_cv_have_longlong" 1>&6
 
6015
  echo "$as_me: program exited with status $ac_status" >&5
 
6016
echo "$as_me: failed program was:" >&5
 
6017
sed 's/^/| /' conftest.$ac_ext >&5
 
6018
 
 
6019
( exit $ac_status )
 
6020
nut_cv_have_longlong=no
 
6021
fi
 
6022
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
6023
fi
 
6024
fi
 
6025
echo "$as_me:$LINENO: result: $nut_cv_have_longlong" >&5
 
6026
echo "${ECHO_T}$nut_cv_have_longlong" >&6
2878
6027
if test x"$nut_cv_have_longlong" = x"yes"; then
2879
 
    cat >> confdefs.h <<\EOF
 
6028
 
 
6029
cat >>confdefs.h <<\_ACEOF
2880
6030
#define HAVE_LONGLONG 1
2881
 
EOF
 
6031
_ACEOF
2882
6032
 
2883
6033
fi
2884
6034
 
2885
 
cat >> confdefs.h <<EOF
2886
 
#define BASEPATH "$prefix"
2887
 
EOF
2888
 
 
2889
 
 
2890
6035
# expand $sysconfdir and write it out
2891
6036
eval conftemp=${sysconfdir}
2892
 
cat >> confdefs.h <<EOF
 
6037
 
 
6038
cat >>confdefs.h <<_ACEOF
2893
6039
#define CONFPATH "$conftemp"
2894
 
EOF
2895
 
 
2896
 
 
2897
 
 
2898
 
 
2899
 
 
2900
 
 
2901
 
 
2902
 
 
2903
 
 
2904
 
 
2905
 
 
2906
 
 
2907
 
 
2908
 
 
2909
 
 
2910
 
 
2911
 
trap '' 1 2 15
2912
 
cat > confcache <<\EOF
 
6040
_ACEOF
 
6041
 
 
6042
 
 
6043
# same for datadir
 
6044
eval datatemp=${datadir}
 
6045
 
 
6046
cat >>confdefs.h <<_ACEOF
 
6047
#define DATADIR "$datatemp"
 
6048
_ACEOF
 
6049
 
 
6050
 
 
6051
 
 
6052
 
 
6053
 
 
6054
 
 
6055
 
 
6056
 
 
6057
 
 
6058
 
 
6059
 
 
6060
 
 
6061
 
 
6062
 
 
6063
 
 
6064
 
 
6065
 
 
6066
 
 
6067
 
 
6068
 
 
6069
 
 
6070
 
 
6071
 
 
6072
 
 
6073
 
 
6074
 
 
6075
 
 
6076
                                                                                          ac_config_files="$ac_config_files clients/Makefile conf/Makefile data/Makefile drivers/Makefile server/Makefile Makefile common/Makefile man/Makefile scripts/hotplug/libhidups"
 
6077
cat >confcache <<\_ACEOF
2913
6078
# This file is a shell script that caches the results of configure
2914
6079
# tests run on this system so they can be shared between configure
2915
 
# scripts and configure runs.  It is not useful on other systems.
2916
 
# If it contains results you don't want to keep, you may remove or edit it.
2917
 
#
2918
 
# By default, configure uses ./config.cache as the cache file,
2919
 
# creating it if it does not exist already.  You can give configure
2920
 
# the --cache-file=FILE option to use a different cache file; that is
2921
 
# what configure does when it calls configure scripts in
2922
 
# subdirectories, so they share the cache.
2923
 
# Giving --cache-file=/dev/null disables caching, for debugging configure.
2924
 
# config.status only pays attention to the cache file if you give it the
2925
 
# --recheck option to rerun configure.
2926
 
#
2927
 
EOF
 
6080
# scripts and configure runs, see configure's option --config-cache.
 
6081
# It is not useful on other systems.  If it contains results you don't
 
6082
# want to keep, you may remove or edit it.
 
6083
#
 
6084
# config.status only pays attention to the cache file if you give it
 
6085
# the --recheck option to rerun configure.
 
6086
#
 
6087
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
6088
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
6089
# following values.
 
6090
 
 
6091
_ACEOF
 
6092
 
2928
6093
# The following way of writing the cache mishandles newlines in values,
2929
6094
# but we know of no workaround that is simple, portable, and efficient.
2930
6095
# So, don't put newlines in cache variables' values.
2931
6096
# Ultrix sh set writes to stderr and can't be redirected directly,
2932
6097
# and sets the high bit in the cache file unless we assign to the vars.
2933
 
(set) 2>&1 |
2934
 
  case `(ac_space=' '; set | grep ac_space) 2>&1` in
2935
 
  *ac_space=\ *)
2936
 
    # `set' does not quote correctly, so add quotes (double-quote substitution
2937
 
    # turns \\\\ into \\, and sed turns \\ into \).
2938
 
    sed -n \
2939
 
      -e "s/'/'\\\\''/g" \
2940
 
      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2941
 
    ;;
2942
 
  *)
2943
 
    # `set' quotes correctly as required by POSIX, so do not add quotes.
2944
 
    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2945
 
    ;;
2946
 
  esac >> confcache
2947
 
if cmp -s $cache_file confcache; then
2948
 
  :
2949
 
else
 
6098
{
 
6099
  (set) 2>&1 |
 
6100
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
 
6101
    *ac_space=\ *)
 
6102
      # `set' does not quote correctly, so add quotes (double-quote
 
6103
      # substitution turns \\\\ into \\, and sed turns \\ into \).
 
6104
      sed -n \
 
6105
        "s/'/'\\\\''/g;
 
6106
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
6107
      ;;
 
6108
    *)
 
6109
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
6110
      sed -n \
 
6111
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
6112
      ;;
 
6113
    esac;
 
6114
} |
 
6115
  sed '
 
6116
     t clear
 
6117
     : clear
 
6118
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
6119
     t end
 
6120
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
6121
     : end' >>confcache
 
6122
if diff $cache_file confcache >/dev/null 2>&1; then :; else
2950
6123
  if test -w $cache_file; then
2951
 
    echo "updating cache $cache_file"
2952
 
    cat confcache > $cache_file
 
6124
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
 
6125
    cat confcache >$cache_file
2953
6126
  else
2954
6127
    echo "not updating unwritable cache $cache_file"
2955
6128
  fi
2956
6129
fi
2957
6130
rm -f confcache
2958
6131
 
2959
 
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2960
 
 
2961
6132
test "x$prefix" = xNONE && prefix=$ac_default_prefix
2962
6133
# Let make expand exec_prefix.
2963
6134
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2964
6135
 
2965
 
# Any assignment to VPATH causes Sun make to only execute
2966
 
# the first set of double-colon rules, so remove it if not needed.
2967
 
# If there is a colon in the path, we need to keep it.
 
6136
# VPATH may cause trouble with some makes, so we remove $(srcdir),
 
6137
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 
6138
# trailing colons and then remove the whole line if VPATH becomes empty
 
6139
# (actually we leave an empty line to preserve line numbers).
2968
6140
if test "x$srcdir" = x.; then
2969
 
  ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
 
6141
  ac_vpsub='/^[         ]*VPATH[        ]*=/{
 
6142
s/:*\$(srcdir):*/:/;
 
6143
s/:*\${srcdir}:*/:/;
 
6144
s/:*@srcdir@:*/:/;
 
6145
s/^\([^=]*=[    ]*\):*/\1/;
 
6146
s/:*$//;
 
6147
s/^[^=]*=[      ]*$//;
 
6148
}'
2970
6149
fi
2971
6150
 
2972
 
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2973
 
 
2974
6151
DEFS=-DHAVE_CONFIG_H
2975
6152
 
2976
 
# Without the "./", some shells look in PATH for config.status.
 
6153
ac_libobjs=
 
6154
ac_ltlibobjs=
 
6155
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 
6156
  # 1. Remove the extension, and $U if already installed.
 
6157
  ac_i=`echo "$ac_i" |
 
6158
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
 
6159
  # 2. Add them.
 
6160
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
 
6161
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
 
6162
done
 
6163
LIBOBJS=$ac_libobjs
 
6164
 
 
6165
LTLIBOBJS=$ac_ltlibobjs
 
6166
 
 
6167
 
 
6168
 
2977
6169
: ${CONFIG_STATUS=./config.status}
2978
 
 
2979
 
echo creating $CONFIG_STATUS
2980
 
rm -f $CONFIG_STATUS
2981
 
cat > $CONFIG_STATUS <<EOF
2982
 
#! /bin/sh
2983
 
# Generated automatically by configure.
 
6170
ac_clean_files_save=$ac_clean_files
 
6171
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
6172
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
 
6173
echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
6174
cat >$CONFIG_STATUS <<_ACEOF
 
6175
#! $SHELL
 
6176
# Generated by $as_me.
2984
6177
# Run this file to recreate the current configuration.
2985
 
# This directory was configured as follows,
2986
 
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2987
 
#
2988
 
# $0 $ac_configure_args
2989
 
#
2990
6178
# Compiler output produced by configure, useful for debugging
2991
 
# configure, is in ./config.log if it exists.
2992
 
 
2993
 
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2994
 
for ac_option
2995
 
do
2996
 
  case "\$ac_option" in
 
6179
# configure, is in config.log if it exists.
 
6180
 
 
6181
debug=false
 
6182
ac_cs_recheck=false
 
6183
ac_cs_silent=false
 
6184
SHELL=\${CONFIG_SHELL-$SHELL}
 
6185
_ACEOF
 
6186
 
 
6187
cat >>$CONFIG_STATUS <<\_ACEOF
 
6188
## --------------------- ##
 
6189
## M4sh Initialization.  ##
 
6190
## --------------------- ##
 
6191
 
 
6192
# Be Bourne compatible
 
6193
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
6194
  emulate sh
 
6195
  NULLCMD=:
 
6196
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
6197
  # is contrary to our usage.  Disable this feature.
 
6198
  alias -g '${1+"$@"}'='"$@"'
 
6199
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
 
6200
  set -o posix
 
6201
fi
 
6202
 
 
6203
# Support unset when possible.
 
6204
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
 
6205
  as_unset=unset
 
6206
else
 
6207
  as_unset=false
 
6208
fi
 
6209
 
 
6210
 
 
6211
# Work around bugs in pre-3.0 UWIN ksh.
 
6212
$as_unset ENV MAIL MAILPATH
 
6213
PS1='$ '
 
6214
PS2='> '
 
6215
PS4='+ '
 
6216
 
 
6217
# NLS nuisances.
 
6218
for as_var in \
 
6219
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
6220
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
6221
  LC_TELEPHONE LC_TIME
 
6222
do
 
6223
  if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
6224
    eval $as_var=C; export $as_var
 
6225
  else
 
6226
    $as_unset $as_var
 
6227
  fi
 
6228
done
 
6229
 
 
6230
# Required to use basename.
 
6231
if expr a : '\(a\)' >/dev/null 2>&1; then
 
6232
  as_expr=expr
 
6233
else
 
6234
  as_expr=false
 
6235
fi
 
6236
 
 
6237
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
6238
  as_basename=basename
 
6239
else
 
6240
  as_basename=false
 
6241
fi
 
6242
 
 
6243
 
 
6244
# Name of the executable.
 
6245
as_me=`$as_basename "$0" ||
 
6246
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
6247
         X"$0" : 'X\(//\)$' \| \
 
6248
         X"$0" : 'X\(/\)$' \| \
 
6249
         .     : '\(.\)' 2>/dev/null ||
 
6250
echo X/"$0" |
 
6251
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
 
6252
          /^X\/\(\/\/\)$/{ s//\1/; q; }
 
6253
          /^X\/\(\/\).*/{ s//\1/; q; }
 
6254
          s/.*/./; q'`
 
6255
 
 
6256
 
 
6257
# PATH needs CR, and LINENO needs CR and PATH.
 
6258
# Avoid depending upon Character Ranges.
 
6259
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
6260
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
6261
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
6262
as_cr_digits='0123456789'
 
6263
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
6264
 
 
6265
# The user is always right.
 
6266
if test "${PATH_SEPARATOR+set}" != set; then
 
6267
  echo "#! /bin/sh" >conf$$.sh
 
6268
  echo  "exit 0"   >>conf$$.sh
 
6269
  chmod +x conf$$.sh
 
6270
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
6271
    PATH_SEPARATOR=';'
 
6272
  else
 
6273
    PATH_SEPARATOR=:
 
6274
  fi
 
6275
  rm -f conf$$.sh
 
6276
fi
 
6277
 
 
6278
 
 
6279
  as_lineno_1=$LINENO
 
6280
  as_lineno_2=$LINENO
 
6281
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
6282
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
6283
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
 
6284
  # Find who we are.  Look in the path if we contain no path at all
 
6285
  # relative or not.
 
6286
  case $0 in
 
6287
    *[\\/]* ) as_myself=$0 ;;
 
6288
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6289
for as_dir in $PATH
 
6290
do
 
6291
  IFS=$as_save_IFS
 
6292
  test -z "$as_dir" && as_dir=.
 
6293
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
6294
done
 
6295
 
 
6296
       ;;
 
6297
  esac
 
6298
  # We did not find ourselves, most probably we were run as `sh COMMAND'
 
6299
  # in which case we are not to be found in the path.
 
6300
  if test "x$as_myself" = x; then
 
6301
    as_myself=$0
 
6302
  fi
 
6303
  if test ! -f "$as_myself"; then
 
6304
    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
 
6305
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
 
6306
   { (exit 1); exit 1; }; }
 
6307
  fi
 
6308
  case $CONFIG_SHELL in
 
6309
  '')
 
6310
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6311
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
6312
do
 
6313
  IFS=$as_save_IFS
 
6314
  test -z "$as_dir" && as_dir=.
 
6315
  for as_base in sh bash ksh sh5; do
 
6316
         case $as_dir in
 
6317
         /*)
 
6318
           if ("$as_dir/$as_base" -c '
 
6319
  as_lineno_1=$LINENO
 
6320
  as_lineno_2=$LINENO
 
6321
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
6322
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
6323
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
 
6324
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
 
6325
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
 
6326
             CONFIG_SHELL=$as_dir/$as_base
 
6327
             export CONFIG_SHELL
 
6328
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
 
6329
           fi;;
 
6330
         esac
 
6331
       done
 
6332
done
 
6333
;;
 
6334
  esac
 
6335
 
 
6336
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
6337
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
6338
  # line-number line before each line; the second 'sed' does the real
 
6339
  # work.  The second script uses 'N' to pair each line-number line
 
6340
  # with the numbered line, and appends trailing '-' during
 
6341
  # substitution so that $LINENO is not a special case at line end.
 
6342
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
6343
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
 
6344
  sed '=' <$as_myself |
 
6345
    sed '
 
6346
      N
 
6347
      s,$,-,
 
6348
      : loop
 
6349
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
6350
      t loop
 
6351
      s,-$,,
 
6352
      s,^['$as_cr_digits']*\n,,
 
6353
    ' >$as_me.lineno &&
 
6354
  chmod +x $as_me.lineno ||
 
6355
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
 
6356
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
 
6357
   { (exit 1); exit 1; }; }
 
6358
 
 
6359
  # Don't try to exec as it changes $[0], causing all sort of problems
 
6360
  # (the dirname of $[0] is not the place where we might find the
 
6361
  # original and so on.  Autoconf is especially sensible to this).
 
6362
  . ./$as_me.lineno
 
6363
  # Exit status is that of the last command.
 
6364
  exit
 
6365
}
 
6366
 
 
6367
 
 
6368
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 
6369
  *c*,-n*) ECHO_N= ECHO_C='
 
6370
' ECHO_T='      ' ;;
 
6371
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 
6372
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
6373
esac
 
6374
 
 
6375
if expr a : '\(a\)' >/dev/null 2>&1; then
 
6376
  as_expr=expr
 
6377
else
 
6378
  as_expr=false
 
6379
fi
 
6380
 
 
6381
rm -f conf$$ conf$$.exe conf$$.file
 
6382
echo >conf$$.file
 
6383
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
6384
  # We could just check for DJGPP; but this test a) works b) is more generic
 
6385
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
 
6386
  if test -f conf$$.exe; then
 
6387
    # Don't use ln at all; we don't have any links
 
6388
    as_ln_s='cp -p'
 
6389
  else
 
6390
    as_ln_s='ln -s'
 
6391
  fi
 
6392
elif ln conf$$.file conf$$ 2>/dev/null; then
 
6393
  as_ln_s=ln
 
6394
else
 
6395
  as_ln_s='cp -p'
 
6396
fi
 
6397
rm -f conf$$ conf$$.exe conf$$.file
 
6398
 
 
6399
if mkdir -p . 2>/dev/null; then
 
6400
  as_mkdir_p=:
 
6401
else
 
6402
  as_mkdir_p=false
 
6403
fi
 
6404
 
 
6405
as_executable_p="test -f"
 
6406
 
 
6407
# Sed expression to map a string onto a valid CPP name.
 
6408
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
 
6409
 
 
6410
# Sed expression to map a string onto a valid variable name.
 
6411
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
 
6412
 
 
6413
 
 
6414
# IFS
 
6415
# We need space, tab and new line, in precisely that order.
 
6416
as_nl='
 
6417
'
 
6418
IFS="   $as_nl"
 
6419
 
 
6420
# CDPATH.
 
6421
$as_unset CDPATH
 
6422
 
 
6423
exec 6>&1
 
6424
 
 
6425
# Open the log real soon, to keep \$[0] and so on meaningful, and to
 
6426
# report actual input values of CONFIG_FILES etc. instead of their
 
6427
# values after options handling.  Logging --version etc. is OK.
 
6428
exec 5>>config.log
 
6429
{
 
6430
  echo
 
6431
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
6432
## Running $as_me. ##
 
6433
_ASBOX
 
6434
} >&5
 
6435
cat >&5 <<_CSEOF
 
6436
 
 
6437
This file was extended by $as_me, which was
 
6438
generated by GNU Autoconf 2.57.  Invocation command line was
 
6439
 
 
6440
  CONFIG_FILES    = $CONFIG_FILES
 
6441
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
6442
  CONFIG_LINKS    = $CONFIG_LINKS
 
6443
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
6444
  $ $0 $@
 
6445
 
 
6446
_CSEOF
 
6447
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
 
6448
echo >&5
 
6449
_ACEOF
 
6450
 
 
6451
# Files that config.status was made for.
 
6452
if test -n "$ac_config_files"; then
 
6453
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
 
6454
fi
 
6455
 
 
6456
if test -n "$ac_config_headers"; then
 
6457
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
 
6458
fi
 
6459
 
 
6460
if test -n "$ac_config_links"; then
 
6461
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
 
6462
fi
 
6463
 
 
6464
if test -n "$ac_config_commands"; then
 
6465
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
 
6466
fi
 
6467
 
 
6468
cat >>$CONFIG_STATUS <<\_ACEOF
 
6469
 
 
6470
ac_cs_usage="\
 
6471
\`$as_me' instantiates files from templates according to the
 
6472
current configuration.
 
6473
 
 
6474
Usage: $0 [OPTIONS] [FILE]...
 
6475
 
 
6476
  -h, --help       print this help, then exit
 
6477
  -V, --version    print version number, then exit
 
6478
  -q, --quiet      do not print progress messages
 
6479
  -d, --debug      don't remove temporary files
 
6480
      --recheck    update $as_me by reconfiguring in the same conditions
 
6481
  --file=FILE[:TEMPLATE]
 
6482
                   instantiate the configuration file FILE
 
6483
  --header=FILE[:TEMPLATE]
 
6484
                   instantiate the configuration header FILE
 
6485
 
 
6486
Configuration files:
 
6487
$config_files
 
6488
 
 
6489
Configuration headers:
 
6490
$config_headers
 
6491
 
 
6492
Report bugs to <bug-autoconf@gnu.org>."
 
6493
_ACEOF
 
6494
 
 
6495
cat >>$CONFIG_STATUS <<_ACEOF
 
6496
ac_cs_version="\\
 
6497
config.status
 
6498
configured by $0, generated by GNU Autoconf 2.57,
 
6499
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
 
6500
 
 
6501
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
 
6502
Free Software Foundation, Inc.
 
6503
This config.status script is free software; the Free Software Foundation
 
6504
gives unlimited permission to copy, distribute and modify it."
 
6505
srcdir=$srcdir
 
6506
INSTALL="$INSTALL"
 
6507
_ACEOF
 
6508
 
 
6509
cat >>$CONFIG_STATUS <<\_ACEOF
 
6510
# If no file are specified by the user, then we need to provide default
 
6511
# value.  By we need to know if files were specified by the user.
 
6512
ac_need_defaults=:
 
6513
while test $# != 0
 
6514
do
 
6515
  case $1 in
 
6516
  --*=*)
 
6517
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
 
6518
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
 
6519
    ac_shift=:
 
6520
    ;;
 
6521
  -*)
 
6522
    ac_option=$1
 
6523
    ac_optarg=$2
 
6524
    ac_shift=shift
 
6525
    ;;
 
6526
  *) # This is not an option, so the user has probably given explicit
 
6527
     # arguments.
 
6528
     ac_option=$1
 
6529
     ac_need_defaults=false;;
 
6530
  esac
 
6531
 
 
6532
  case $ac_option in
 
6533
  # Handling of the options.
 
6534
_ACEOF
 
6535
cat >>$CONFIG_STATUS <<\_ACEOF
2997
6536
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2998
 
    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2999
 
    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3000
 
  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3001
 
    echo "$CONFIG_STATUS generated by autoconf version 2.13"
3002
 
    exit 0 ;;
3003
 
  -help | --help | --hel | --he | --h)
3004
 
    echo "\$ac_cs_usage"; exit 0 ;;
3005
 
  *) echo "\$ac_cs_usage"; exit 1 ;;
3006
 
  esac
3007
 
done
3008
 
 
3009
 
ac_given_srcdir=$srcdir
3010
 
ac_given_INSTALL="$INSTALL"
3011
 
 
3012
 
trap 'rm -fr `echo "clients/Makefile conf/Makefile models/Makefile server/Makefile Makefile common/Makefile man/Makefile scripts/RedHat-6.0/upsd scripts/RedHat-6.0/upsmon include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3013
 
EOF
3014
 
cat >> $CONFIG_STATUS <<EOF
3015
 
 
3016
 
# Protect against being on the right side of a sed subst in config.status.
3017
 
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3018
 
 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3019
 
$ac_vpsub
 
6537
    ac_cs_recheck=: ;;
 
6538
  --version | --vers* | -V )
 
6539
    echo "$ac_cs_version"; exit 0 ;;
 
6540
  --he | --h)
 
6541
    # Conflict between --help and --header
 
6542
    { { echo "$as_me:$LINENO: error: ambiguous option: $1
 
6543
Try \`$0 --help' for more information." >&5
 
6544
echo "$as_me: error: ambiguous option: $1
 
6545
Try \`$0 --help' for more information." >&2;}
 
6546
   { (exit 1); exit 1; }; };;
 
6547
  --help | --hel | -h )
 
6548
    echo "$ac_cs_usage"; exit 0 ;;
 
6549
  --debug | --d* | -d )
 
6550
    debug=: ;;
 
6551
  --file | --fil | --fi | --f )
 
6552
    $ac_shift
 
6553
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
 
6554
    ac_need_defaults=false;;
 
6555
  --header | --heade | --head | --hea )
 
6556
    $ac_shift
 
6557
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
 
6558
    ac_need_defaults=false;;
 
6559
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
6560
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
6561
    ac_cs_silent=: ;;
 
6562
 
 
6563
  # This is an error.
 
6564
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
 
6565
Try \`$0 --help' for more information." >&5
 
6566
echo "$as_me: error: unrecognized option: $1
 
6567
Try \`$0 --help' for more information." >&2;}
 
6568
   { (exit 1); exit 1; }; } ;;
 
6569
 
 
6570
  *) ac_config_targets="$ac_config_targets $1" ;;
 
6571
 
 
6572
  esac
 
6573
  shift
 
6574
done
 
6575
 
 
6576
ac_configure_extra_args=
 
6577
 
 
6578
if $ac_cs_silent; then
 
6579
  exec 6>/dev/null
 
6580
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
6581
fi
 
6582
 
 
6583
_ACEOF
 
6584
cat >>$CONFIG_STATUS <<_ACEOF
 
6585
if \$ac_cs_recheck; then
 
6586
  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
 
6587
  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
6588
fi
 
6589
 
 
6590
_ACEOF
 
6591
 
 
6592
 
 
6593
 
 
6594
 
 
6595
 
 
6596
cat >>$CONFIG_STATUS <<\_ACEOF
 
6597
for ac_config_target in $ac_config_targets
 
6598
do
 
6599
  case "$ac_config_target" in
 
6600
  # Handling of arguments.
 
6601
  "clients/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/Makefile" ;;
 
6602
  "conf/Makefile" ) CONFIG_FILES="$CONFIG_FILES conf/Makefile" ;;
 
6603
  "data/Makefile" ) CONFIG_FILES="$CONFIG_FILES data/Makefile" ;;
 
6604
  "drivers/Makefile" ) CONFIG_FILES="$CONFIG_FILES drivers/Makefile" ;;
 
6605
  "server/Makefile" ) CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
 
6606
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
6607
  "common/Makefile" ) CONFIG_FILES="$CONFIG_FILES common/Makefile" ;;
 
6608
  "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
 
6609
  "scripts/hotplug/libhidups" ) CONFIG_FILES="$CONFIG_FILES scripts/hotplug/libhidups" ;;
 
6610
  "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
 
6611
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
 
6612
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
 
6613
   { (exit 1); exit 1; }; };;
 
6614
  esac
 
6615
done
 
6616
 
 
6617
# If the user did not use the arguments to specify the items to instantiate,
 
6618
# then the envvar interface is used.  Set only those that are not.
 
6619
# We use the long form for the default assignment because of an extremely
 
6620
# bizarre bug on SunOS 4.1.3.
 
6621
if $ac_need_defaults; then
 
6622
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
6623
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 
6624
fi
 
6625
 
 
6626
# Have a temporary directory for convenience.  Make it in the build tree
 
6627
# simply because there is no reason to put it here, and in addition,
 
6628
# creating and moving files from /tmp can sometimes cause problems.
 
6629
# Create a temporary directory, and hook for its removal unless debugging.
 
6630
$debug ||
 
6631
{
 
6632
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
 
6633
  trap '{ (exit 1); exit 1; }' 1 2 13 15
 
6634
}
 
6635
 
 
6636
# Create a (secure) tmp directory for tmp files.
 
6637
 
 
6638
{
 
6639
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
 
6640
  test -n "$tmp" && test -d "$tmp"
 
6641
}  ||
 
6642
{
 
6643
  tmp=./confstat$$-$RANDOM
 
6644
  (umask 077 && mkdir $tmp)
 
6645
} ||
 
6646
{
 
6647
   echo "$me: cannot create a temporary directory in ." >&2
 
6648
   { (exit 1); exit 1; }
 
6649
}
 
6650
 
 
6651
_ACEOF
 
6652
 
 
6653
cat >>$CONFIG_STATUS <<_ACEOF
 
6654
 
 
6655
#
 
6656
# CONFIG_FILES section.
 
6657
#
 
6658
 
 
6659
# No need to generate the scripts if there are no CONFIG_FILES.
 
6660
# This happens for instance when ./config.status config.h
 
6661
if test -n "\$CONFIG_FILES"; then
 
6662
  # Protect against being on the right side of a sed subst in config.status.
 
6663
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
 
6664
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
 
6665
s,@SHELL@,$SHELL,;t t
 
6666
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
 
6667
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
 
6668
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
 
6669
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
 
6670
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
 
6671
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
 
6672
s,@exec_prefix@,$exec_prefix,;t t
 
6673
s,@prefix@,$prefix,;t t
 
6674
s,@program_transform_name@,$program_transform_name,;t t
 
6675
s,@bindir@,$bindir,;t t
 
6676
s,@sbindir@,$sbindir,;t t
 
6677
s,@libexecdir@,$libexecdir,;t t
 
6678
s,@datadir@,$datadir,;t t
 
6679
s,@sysconfdir@,$sysconfdir,;t t
 
6680
s,@sharedstatedir@,$sharedstatedir,;t t
 
6681
s,@localstatedir@,$localstatedir,;t t
 
6682
s,@libdir@,$libdir,;t t
 
6683
s,@includedir@,$includedir,;t t
 
6684
s,@oldincludedir@,$oldincludedir,;t t
 
6685
s,@infodir@,$infodir,;t t
 
6686
s,@mandir@,$mandir,;t t
 
6687
s,@build_alias@,$build_alias,;t t
 
6688
s,@host_alias@,$host_alias,;t t
 
6689
s,@target_alias@,$target_alias,;t t
 
6690
s,@DEFS@,$DEFS,;t t
 
6691
s,@ECHO_C@,$ECHO_C,;t t
 
6692
s,@ECHO_N@,$ECHO_N,;t t
 
6693
s,@ECHO_T@,$ECHO_T,;t t
 
6694
s,@LIBS@,$LIBS,;t t
 
6695
s,@build@,$build,;t t
 
6696
s,@build_cpu@,$build_cpu,;t t
 
6697
s,@build_vendor@,$build_vendor,;t t
 
6698
s,@build_os@,$build_os,;t t
 
6699
s,@host@,$host,;t t
 
6700
s,@host_cpu@,$host_cpu,;t t
 
6701
s,@host_vendor@,$host_vendor,;t t
 
6702
s,@host_os@,$host_os,;t t
 
6703
s,@target@,$target,;t t
 
6704
s,@target_cpu@,$target_cpu,;t t
 
6705
s,@target_vendor@,$target_vendor,;t t
 
6706
s,@target_os@,$target_os,;t t
 
6707
s,@CC@,$CC,;t t
 
6708
s,@CFLAGS@,$CFLAGS,;t t
 
6709
s,@LDFLAGS@,$LDFLAGS,;t t
 
6710
s,@CPPFLAGS@,$CPPFLAGS,;t t
 
6711
s,@ac_ct_CC@,$ac_ct_CC,;t t
 
6712
s,@EXEEXT@,$EXEEXT,;t t
 
6713
s,@OBJEXT@,$OBJEXT,;t t
 
6714
s,@CPP@,$CPP,;t t
 
6715
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
 
6716
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
 
6717
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
 
6718
s,@EGREP@,$EGREP,;t t
 
6719
s,@AR@,$AR,;t t
 
6720
s,@RANLIB@,$RANLIB,;t t
 
6721
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
 
6722
s,@MISC_UPSCLI_OBJ@,$MISC_UPSCLI_OBJ,;t t
 
6723
s,@MISC_UPSCLI_LIBOBJ@,$MISC_UPSCLI_LIBOBJ,;t t
 
6724
s,@SSL_CFLAGS@,$SSL_CFLAGS,;t t
 
6725
s,@SSL_LDFLAGS@,$SSL_LDFLAGS,;t t
 
6726
s,@CGI_BUILD_TARGET@,$CGI_BUILD_TARGET,;t t
 
6727
s,@GD_INCLUDES@,$GD_INCLUDES,;t t
 
6728
s,@GD_LIBS@,$GD_LIBS,;t t
 
6729
s,@NETSNMP_CFLAGS@,$NETSNMP_CFLAGS,;t t
 
6730
s,@NETSNMP_LIBS@,$NETSNMP_LIBS,;t t
 
6731
s,@LIBUSB_CFLAGS@,$LIBUSB_CFLAGS,;t t
 
6732
s,@LIBUSB_LIBS@,$LIBUSB_LIBS,;t t
 
6733
s,@DRIVER_BUILD_LIST@,$DRIVER_BUILD_LIST,;t t
 
6734
s,@DRIVER_INSTALL_TARGET@,$DRIVER_INSTALL_TARGET,;t t
 
6735
s,@STRLCPY@,$STRLCPY,;t t
 
6736
s,@LIBOBJ@,$LIBOBJ,;t t
 
6737
s,@BUILDOBJ@,$BUILDOBJ,;t t
 
6738
s,@NETLIBS@,$NETLIBS,;t t
 
6739
s,@SERLIBS@,$SERLIBS,;t t
 
6740
s,@STATEPATH@,$STATEPATH,;t t
 
6741
s,@DRVPATH@,$DRVPATH,;t t
 
6742
s,@CGIPATH@,$CGIPATH,;t t
 
6743
s,@RUN_AS_USER@,$RUN_AS_USER,;t t
 
6744
s,@LINUX_HIDDEV@,$LINUX_HIDDEV,;t t
 
6745
s,@WORDS_BIGENDIAN@,$WORDS_BIGENDIAN,;t t
 
6746
s,@LIBOBJS@,$LIBOBJS,;t t
 
6747
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
 
6748
CEOF
 
6749
 
 
6750
_ACEOF
 
6751
 
 
6752
  cat >>$CONFIG_STATUS <<\_ACEOF
 
6753
  # Split the substitutions into bite-sized pieces for seds with
 
6754
  # small command number limits, like on Digital OSF/1 and HP-UX.
 
6755
  ac_max_sed_lines=48
 
6756
  ac_sed_frag=1 # Number of current file.
 
6757
  ac_beg=1 # First line for current file.
 
6758
  ac_end=$ac_max_sed_lines # Line after last line for current file.
 
6759
  ac_more_lines=:
 
6760
  ac_sed_cmds=
 
6761
  while $ac_more_lines; do
 
6762
    if test $ac_beg -gt 1; then
 
6763
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
6764
    else
 
6765
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
6766
    fi
 
6767
    if test ! -s $tmp/subs.frag; then
 
6768
      ac_more_lines=false
 
6769
    else
 
6770
      # The purpose of the label and of the branching condition is to
 
6771
      # speed up the sed processing (if there are no `@' at all, there
 
6772
      # is no need to browse any of the substitutions).
 
6773
      # These are the two extra sed commands mentioned above.
 
6774
      (echo ':t
 
6775
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
 
6776
      if test -z "$ac_sed_cmds"; then
 
6777
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
 
6778
      else
 
6779
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
 
6780
      fi
 
6781
      ac_sed_frag=`expr $ac_sed_frag + 1`
 
6782
      ac_beg=$ac_end
 
6783
      ac_end=`expr $ac_end + $ac_max_sed_lines`
 
6784
    fi
 
6785
  done
 
6786
  if test -z "$ac_sed_cmds"; then
 
6787
    ac_sed_cmds=cat
 
6788
  fi
 
6789
fi # test -n "$CONFIG_FILES"
 
6790
 
 
6791
_ACEOF
 
6792
cat >>$CONFIG_STATUS <<\_ACEOF
 
6793
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
 
6794
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
6795
  case $ac_file in
 
6796
  - | *:- | *:-:* ) # input from stdin
 
6797
        cat >$tmp/stdin
 
6798
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
6799
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
6800
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
6801
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
6802
  * )   ac_file_in=$ac_file.in ;;
 
6803
  esac
 
6804
 
 
6805
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
 
6806
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
6807
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
6808
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
6809
         X"$ac_file" : 'X\(//\)$' \| \
 
6810
         X"$ac_file" : 'X\(/\)' \| \
 
6811
         .     : '\(.\)' 2>/dev/null ||
 
6812
echo X"$ac_file" |
 
6813
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
6814
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
6815
          /^X\(\/\/\)$/{ s//\1/; q; }
 
6816
          /^X\(\/\).*/{ s//\1/; q; }
 
6817
          s/.*/./; q'`
 
6818
  { if $as_mkdir_p; then
 
6819
    mkdir -p "$ac_dir"
 
6820
  else
 
6821
    as_dir="$ac_dir"
 
6822
    as_dirs=
 
6823
    while test ! -d "$as_dir"; do
 
6824
      as_dirs="$as_dir $as_dirs"
 
6825
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
6826
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
6827
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
6828
         X"$as_dir" : 'X\(//\)$' \| \
 
6829
         X"$as_dir" : 'X\(/\)' \| \
 
6830
         .     : '\(.\)' 2>/dev/null ||
 
6831
echo X"$as_dir" |
 
6832
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
6833
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
6834
          /^X\(\/\/\)$/{ s//\1/; q; }
 
6835
          /^X\(\/\).*/{ s//\1/; q; }
 
6836
          s/.*/./; q'`
 
6837
    done
 
6838
    test ! -n "$as_dirs" || mkdir $as_dirs
 
6839
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
6840
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
6841
   { (exit 1); exit 1; }; }; }
 
6842
 
 
6843
  ac_builddir=.
 
6844
 
 
6845
if test "$ac_dir" != .; then
 
6846
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
6847
  # A "../" for each directory in $ac_dir_suffix.
 
6848
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
6849
else
 
6850
  ac_dir_suffix= ac_top_builddir=
 
6851
fi
 
6852
 
 
6853
case $srcdir in
 
6854
  .)  # No --srcdir option.  We are building in place.
 
6855
    ac_srcdir=.
 
6856
    if test -z "$ac_top_builddir"; then
 
6857
       ac_top_srcdir=.
 
6858
    else
 
6859
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
6860
    fi ;;
 
6861
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
6862
    ac_srcdir=$srcdir$ac_dir_suffix;
 
6863
    ac_top_srcdir=$srcdir ;;
 
6864
  *) # Relative path.
 
6865
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
6866
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
6867
esac
 
6868
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
 
6869
# absolute.
 
6870
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
 
6871
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
 
6872
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
 
6873
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
 
6874
 
 
6875
 
 
6876
  case $INSTALL in
 
6877
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 
6878
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
 
6879
  esac
 
6880
 
 
6881
  if test x"$ac_file" != x-; then
 
6882
    { echo "$as_me:$LINENO: creating $ac_file" >&5
 
6883
echo "$as_me: creating $ac_file" >&6;}
 
6884
    rm -f "$ac_file"
 
6885
  fi
 
6886
  # Let's still pretend it is `configure' which instantiates (i.e., don't
 
6887
  # use $as_me), people would be surprised to read:
 
6888
  #    /* config.h.  Generated by config.status.  */
 
6889
  if test x"$ac_file" = x-; then
 
6890
    configure_input=
 
6891
  else
 
6892
    configure_input="$ac_file.  "
 
6893
  fi
 
6894
  configure_input=$configure_input"Generated from `echo $ac_file_in |
 
6895
                                     sed 's,.*/,,'` by configure."
 
6896
 
 
6897
  # First look for the input files in the build tree, otherwise in the
 
6898
  # src tree.
 
6899
  ac_file_inputs=`IFS=:
 
6900
    for f in $ac_file_in; do
 
6901
      case $f in
 
6902
      -) echo $tmp/stdin ;;
 
6903
      [\\/$]*)
 
6904
         # Absolute (can't be DOS-style, as IFS=:)
 
6905
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
6906
echo "$as_me: error: cannot find input file: $f" >&2;}
 
6907
   { (exit 1); exit 1; }; }
 
6908
         echo $f;;
 
6909
      *) # Relative
 
6910
         if test -f "$f"; then
 
6911
           # Build tree
 
6912
           echo $f
 
6913
         elif test -f "$srcdir/$f"; then
 
6914
           # Source tree
 
6915
           echo $srcdir/$f
 
6916
         else
 
6917
           # /dev/null tree
 
6918
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
6919
echo "$as_me: error: cannot find input file: $f" >&2;}
 
6920
   { (exit 1); exit 1; }; }
 
6921
         fi;;
 
6922
      esac
 
6923
    done` || { (exit 1); exit 1; }
 
6924
_ACEOF
 
6925
cat >>$CONFIG_STATUS <<_ACEOF
 
6926
  sed "$ac_vpsub
3020
6927
$extrasub
3021
 
s%@SHELL@%$SHELL%g
3022
 
s%@CFLAGS@%$CFLAGS%g
3023
 
s%@CPPFLAGS@%$CPPFLAGS%g
3024
 
s%@CXXFLAGS@%$CXXFLAGS%g
3025
 
s%@FFLAGS@%$FFLAGS%g
3026
 
s%@DEFS@%$DEFS%g
3027
 
s%@LDFLAGS@%$LDFLAGS%g
3028
 
s%@LIBS@%$LIBS%g
3029
 
s%@exec_prefix@%$exec_prefix%g
3030
 
s%@prefix@%$prefix%g
3031
 
s%@program_transform_name@%$program_transform_name%g
3032
 
s%@bindir@%$bindir%g
3033
 
s%@sbindir@%$sbindir%g
3034
 
s%@libexecdir@%$libexecdir%g
3035
 
s%@datadir@%$datadir%g
3036
 
s%@sysconfdir@%$sysconfdir%g
3037
 
s%@sharedstatedir@%$sharedstatedir%g
3038
 
s%@localstatedir@%$localstatedir%g
3039
 
s%@libdir@%$libdir%g
3040
 
s%@includedir@%$includedir%g
3041
 
s%@oldincludedir@%$oldincludedir%g
3042
 
s%@infodir@%$infodir%g
3043
 
s%@mandir@%$mandir%g
3044
 
s%@CC@%$CC%g
3045
 
s%@CPP@%$CPP%g
3046
 
s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3047
 
s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3048
 
s%@INSTALL_DATA@%$INSTALL_DATA%g
3049
 
s%@AWK@%$AWK%g
3050
 
s%@DRIVER_BUILD_LIST@%$DRIVER_BUILD_LIST%g
3051
 
s%@DRIVER_INSTALL_TARGET@%$DRIVER_INSTALL_TARGET%g
3052
 
s%@LIBOBJ@%$LIBOBJ%g
3053
 
s%@BUILDOBJ@%$BUILDOBJ%g
3054
 
s%@NETLIBS@%$NETLIBS%g
3055
 
s%@GFXLIBS@%$GFXLIBS%g
3056
 
s%@SERLIBS@%$SERLIBS%g
3057
 
s%@STATEPATH@%$STATEPATH%g
3058
 
s%@MODELPATH@%$MODELPATH%g
3059
 
s%@CGIPATH@%$CGIPATH%g
3060
 
s%@RUN_AS_USER@%$RUN_AS_USER%g
3061
 
s%@RUN_AS_GROUP@%$RUN_AS_GROUP%g
3062
 
s%@LINUX_HIDDEV@%$LINUX_HIDDEV%g
3063
 
 
3064
 
CEOF
3065
 
EOF
3066
 
 
3067
 
cat >> $CONFIG_STATUS <<\EOF
3068
 
 
3069
 
# Split the substitutions into bite-sized pieces for seds with
3070
 
# small command number limits, like on Digital OSF/1 and HP-UX.
3071
 
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3072
 
ac_file=1 # Number of current file.
3073
 
ac_beg=1 # First line for current file.
3074
 
ac_end=$ac_max_sed_cmds # Line after last line for current file.
3075
 
ac_more_lines=:
3076
 
ac_sed_cmds=""
3077
 
while $ac_more_lines; do
3078
 
  if test $ac_beg -gt 1; then
3079
 
    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3080
 
  else
3081
 
    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3082
 
  fi
3083
 
  if test ! -s conftest.s$ac_file; then
3084
 
    ac_more_lines=false
3085
 
    rm -f conftest.s$ac_file
3086
 
  else
3087
 
    if test -z "$ac_sed_cmds"; then
3088
 
      ac_sed_cmds="sed -f conftest.s$ac_file"
3089
 
    else
3090
 
      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3091
 
    fi
3092
 
    ac_file=`expr $ac_file + 1`
3093
 
    ac_beg=$ac_end
3094
 
    ac_end=`expr $ac_end + $ac_max_sed_cmds`
3095
 
  fi
 
6928
_ACEOF
 
6929
cat >>$CONFIG_STATUS <<\_ACEOF
 
6930
:t
 
6931
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
6932
s,@configure_input@,$configure_input,;t t
 
6933
s,@srcdir@,$ac_srcdir,;t t
 
6934
s,@abs_srcdir@,$ac_abs_srcdir,;t t
 
6935
s,@top_srcdir@,$ac_top_srcdir,;t t
 
6936
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
 
6937
s,@builddir@,$ac_builddir,;t t
 
6938
s,@abs_builddir@,$ac_abs_builddir,;t t
 
6939
s,@top_builddir@,$ac_top_builddir,;t t
 
6940
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
 
6941
s,@INSTALL@,$ac_INSTALL,;t t
 
6942
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
 
6943
  rm -f $tmp/stdin
 
6944
  if test x"$ac_file" != x-; then
 
6945
    mv $tmp/out $ac_file
 
6946
  else
 
6947
    cat $tmp/out
 
6948
    rm -f $tmp/out
 
6949
  fi
 
6950
 
3096
6951
done
3097
 
if test -z "$ac_sed_cmds"; then
3098
 
  ac_sed_cmds=cat
3099
 
fi
3100
 
EOF
3101
 
 
3102
 
cat >> $CONFIG_STATUS <<EOF
3103
 
 
3104
 
CONFIG_FILES=\${CONFIG_FILES-"clients/Makefile conf/Makefile models/Makefile server/Makefile Makefile common/Makefile man/Makefile scripts/RedHat-6.0/upsd scripts/RedHat-6.0/upsmon"}
3105
 
EOF
3106
 
cat >> $CONFIG_STATUS <<\EOF
3107
 
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3108
 
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3109
 
  case "$ac_file" in
3110
 
  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3111
 
       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3112
 
  *) ac_file_in="${ac_file}.in" ;;
3113
 
  esac
3114
 
 
3115
 
  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3116
 
 
3117
 
  # Remove last slash and all that follows it.  Not all systems have dirname.
3118
 
  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3119
 
  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3120
 
    # The file is in a subdirectory.
3121
 
    test ! -d "$ac_dir" && mkdir "$ac_dir"
3122
 
    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3123
 
    # A "../" for each directory in $ac_dir_suffix.
3124
 
    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3125
 
  else
3126
 
    ac_dir_suffix= ac_dots=
3127
 
  fi
3128
 
 
3129
 
  case "$ac_given_srcdir" in
3130
 
  .)  srcdir=.
3131
 
      if test -z "$ac_dots"; then top_srcdir=.
3132
 
      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3133
 
  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3134
 
  *) # Relative path.
3135
 
    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3136
 
    top_srcdir="$ac_dots$ac_given_srcdir" ;;
3137
 
  esac
3138
 
 
3139
 
  case "$ac_given_INSTALL" in
3140
 
  [/$]*) INSTALL="$ac_given_INSTALL" ;;
3141
 
  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3142
 
  esac
3143
 
 
3144
 
  echo creating "$ac_file"
3145
 
  rm -f "$ac_file"
3146
 
  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3147
 
  case "$ac_file" in
3148
 
  *Makefile*) ac_comsub="1i\\
3149
 
# $configure_input" ;;
3150
 
  *) ac_comsub= ;;
3151
 
  esac
3152
 
 
3153
 
  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3154
 
  sed -e "$ac_comsub
3155
 
s%@configure_input@%$configure_input%g
3156
 
s%@srcdir@%$srcdir%g
3157
 
s%@top_srcdir@%$top_srcdir%g
3158
 
s%@INSTALL@%$INSTALL%g
3159
 
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3160
 
fi; done
3161
 
rm -f conftest.s*
 
6952
_ACEOF
 
6953
cat >>$CONFIG_STATUS <<\_ACEOF
 
6954
 
 
6955
#
 
6956
# CONFIG_HEADER section.
 
6957
#
3162
6958
 
3163
6959
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3164
6960
# NAME is the cpp macro being defined and VALUE is the value it is being given.
3165
6961
#
3166
6962
# ac_d sets the value in "#define NAME VALUE" lines.
3167
 
ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
3168
 
ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
3169
 
ac_dC='\3'
3170
 
ac_dD='%g'
3171
 
# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3172
 
ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
3173
 
ac_uB='\([      ]\)%\1#\2define\3'
 
6963
ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
 
6964
ac_dB='[        ].*$,\1#\2'
 
6965
ac_dC=' '
 
6966
ac_dD=',;t'
 
6967
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
 
6968
ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
 
6969
ac_uB='$,\1#\2define\3'
3174
6970
ac_uC=' '
3175
 
ac_uD='\4%g'
3176
 
# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3177
 
ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
3178
 
ac_eB='$%\1#\2define\3'
3179
 
ac_eC=' '
3180
 
ac_eD='%g'
 
6971
ac_uD=',;t'
3181
6972
 
3182
 
if test "${CONFIG_HEADERS+set}" != set; then
3183
 
EOF
3184
 
cat >> $CONFIG_STATUS <<EOF
3185
 
  CONFIG_HEADERS="include/config.h"
3186
 
EOF
3187
 
cat >> $CONFIG_STATUS <<\EOF
3188
 
fi
3189
 
for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
 
6973
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
3190
6974
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3191
 
  case "$ac_file" in
3192
 
  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3193
 
       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3194
 
  *) ac_file_in="${ac_file}.in" ;;
 
6975
  case $ac_file in
 
6976
  - | *:- | *:-:* ) # input from stdin
 
6977
        cat >$tmp/stdin
 
6978
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
6979
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
6980
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
6981
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
6982
  * )   ac_file_in=$ac_file.in ;;
3195
6983
  esac
3196
6984
 
3197
 
  echo creating $ac_file
3198
 
 
3199
 
  rm -f conftest.frag conftest.in conftest.out
3200
 
  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3201
 
  cat $ac_file_inputs > conftest.in
3202
 
 
3203
 
EOF
3204
 
 
3205
 
# Transform confdefs.h into a sed script conftest.vals that substitutes
3206
 
# the proper values into config.h.in to produce config.h.  And first:
3207
 
# Protect against being on the right side of a sed subst in config.status.
3208
 
# Protect against being in an unquoted here document in config.status.
3209
 
rm -f conftest.vals
3210
 
cat > conftest.hdr <<\EOF
3211
 
s/[\\&%]/\\&/g
3212
 
s%[\\$`]%\\&%g
3213
 
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3214
 
s%ac_d%ac_u%gp
3215
 
s%ac_u%ac_e%gp
3216
 
EOF
3217
 
sed -n -f conftest.hdr confdefs.h > conftest.vals
3218
 
rm -f conftest.hdr
 
6985
  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
 
6986
echo "$as_me: creating $ac_file" >&6;}
 
6987
 
 
6988
  # First look for the input files in the build tree, otherwise in the
 
6989
  # src tree.
 
6990
  ac_file_inputs=`IFS=:
 
6991
    for f in $ac_file_in; do
 
6992
      case $f in
 
6993
      -) echo $tmp/stdin ;;
 
6994
      [\\/$]*)
 
6995
         # Absolute (can't be DOS-style, as IFS=:)
 
6996
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
6997
echo "$as_me: error: cannot find input file: $f" >&2;}
 
6998
   { (exit 1); exit 1; }; }
 
6999
         echo $f;;
 
7000
      *) # Relative
 
7001
         if test -f "$f"; then
 
7002
           # Build tree
 
7003
           echo $f
 
7004
         elif test -f "$srcdir/$f"; then
 
7005
           # Source tree
 
7006
           echo $srcdir/$f
 
7007
         else
 
7008
           # /dev/null tree
 
7009
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
7010
echo "$as_me: error: cannot find input file: $f" >&2;}
 
7011
   { (exit 1); exit 1; }; }
 
7012
         fi;;
 
7013
      esac
 
7014
    done` || { (exit 1); exit 1; }
 
7015
  # Remove the trailing spaces.
 
7016
  sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
 
7017
 
 
7018
_ACEOF
 
7019
 
 
7020
# Transform confdefs.h into two sed scripts, `conftest.defines' and
 
7021
# `conftest.undefs', that substitutes the proper values into
 
7022
# config.h.in to produce config.h.  The first handles `#define'
 
7023
# templates, and the second `#undef' templates.
 
7024
# And first: Protect against being on the right side of a sed subst in
 
7025
# config.status.  Protect against being in an unquoted here document
 
7026
# in config.status.
 
7027
rm -f conftest.defines conftest.undefs
 
7028
# Using a here document instead of a string reduces the quoting nightmare.
 
7029
# Putting comments in sed scripts is not portable.
 
7030
#
 
7031
# `end' is used to avoid that the second main sed command (meant for
 
7032
# 0-ary CPP macros) applies to n-ary macro definitions.
 
7033
# See the Autoconf documentation for `clear'.
 
7034
cat >confdef2sed.sed <<\_ACEOF
 
7035
s/[\\&,]/\\&/g
 
7036
s,[\\$`],\\&,g
 
7037
t clear
 
7038
: clear
 
7039
s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
 
7040
t end
 
7041
s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
 
7042
: end
 
7043
_ACEOF
 
7044
# If some macros were called several times there might be several times
 
7045
# the same #defines, which is useless.  Nevertheless, we may not want to
 
7046
# sort them, since we want the *last* AC-DEFINE to be honored.
 
7047
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
 
7048
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
 
7049
rm -f confdef2sed.sed
3219
7050
 
3220
7051
# This sed command replaces #undef with comments.  This is necessary, for
3221
7052
# example, in the case of _POSIX_SOURCE, which is predefined and required
3222
7053
# on some systems where configure will not decide to define it.
3223
 
cat >> conftest.vals <<\EOF
3224
 
s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3225
 
EOF
3226
 
 
3227
 
# Break up conftest.vals because some shells have a limit on
3228
 
# the size of here documents, and old seds have small limits too.
3229
 
 
3230
 
rm -f conftest.tail
3231
 
while :
3232
 
do
3233
 
  ac_lines=`grep -c . conftest.vals`
3234
 
  # grep -c gives empty output for an empty file on some AIX systems.
3235
 
  if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3236
 
  # Write a limited-size here document to conftest.frag.
3237
 
  echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3238
 
  sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3239
 
  echo 'CEOF
3240
 
  sed -f conftest.frag conftest.in > conftest.out
3241
 
  rm -f conftest.in
3242
 
  mv conftest.out conftest.in
3243
 
' >> $CONFIG_STATUS
3244
 
  sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3245
 
  rm -f conftest.vals
3246
 
  mv conftest.tail conftest.vals
3247
 
done
3248
 
rm -f conftest.vals
3249
 
 
3250
 
cat >> $CONFIG_STATUS <<\EOF
3251
 
  rm -f conftest.frag conftest.h
3252
 
  echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
3253
 
  cat conftest.in >> conftest.h
3254
 
  rm -f conftest.in
3255
 
  if cmp -s $ac_file conftest.h 2>/dev/null; then
3256
 
    echo "$ac_file is unchanged"
3257
 
    rm -f conftest.h
3258
 
  else
3259
 
    # Remove last slash and all that follows it.  Not all systems have dirname.
3260
 
      ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3261
 
      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3262
 
      # The file is in a subdirectory.
3263
 
      test ! -d "$ac_dir" && mkdir "$ac_dir"
 
7054
cat >>conftest.undefs <<\_ACEOF
 
7055
s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
 
7056
_ACEOF
 
7057
 
 
7058
# Break up conftest.defines because some shells have a limit on the size
 
7059
# of here documents, and old seds have small limits too (100 cmds).
 
7060
echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
 
7061
echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
 
7062
echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
 
7063
echo '  :' >>$CONFIG_STATUS
 
7064
rm -f conftest.tail
 
7065
while grep . conftest.defines >/dev/null
 
7066
do
 
7067
  # Write a limited-size here document to $tmp/defines.sed.
 
7068
  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
 
7069
  # Speed up: don't consider the non `#define' lines.
 
7070
  echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
 
7071
  # Work around the forget-to-reset-the-flag bug.
 
7072
  echo 't clr' >>$CONFIG_STATUS
 
7073
  echo ': clr' >>$CONFIG_STATUS
 
7074
  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
 
7075
  echo 'CEOF
 
7076
  sed -f $tmp/defines.sed $tmp/in >$tmp/out
 
7077
  rm -f $tmp/in
 
7078
  mv $tmp/out $tmp/in
 
7079
' >>$CONFIG_STATUS
 
7080
  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
 
7081
  rm -f conftest.defines
 
7082
  mv conftest.tail conftest.defines
 
7083
done
 
7084
rm -f conftest.defines
 
7085
echo '  fi # grep' >>$CONFIG_STATUS
 
7086
echo >>$CONFIG_STATUS
 
7087
 
 
7088
# Break up conftest.undefs because some shells have a limit on the size
 
7089
# of here documents, and old seds have small limits too (100 cmds).
 
7090
echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
 
7091
rm -f conftest.tail
 
7092
while grep . conftest.undefs >/dev/null
 
7093
do
 
7094
  # Write a limited-size here document to $tmp/undefs.sed.
 
7095
  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
 
7096
  # Speed up: don't consider the non `#undef'
 
7097
  echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
 
7098
  # Work around the forget-to-reset-the-flag bug.
 
7099
  echo 't clr' >>$CONFIG_STATUS
 
7100
  echo ': clr' >>$CONFIG_STATUS
 
7101
  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
 
7102
  echo 'CEOF
 
7103
  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
 
7104
  rm -f $tmp/in
 
7105
  mv $tmp/out $tmp/in
 
7106
' >>$CONFIG_STATUS
 
7107
  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
 
7108
  rm -f conftest.undefs
 
7109
  mv conftest.tail conftest.undefs
 
7110
done
 
7111
rm -f conftest.undefs
 
7112
 
 
7113
cat >>$CONFIG_STATUS <<\_ACEOF
 
7114
  # Let's still pretend it is `configure' which instantiates (i.e., don't
 
7115
  # use $as_me), people would be surprised to read:
 
7116
  #    /* config.h.  Generated by config.status.  */
 
7117
  if test x"$ac_file" = x-; then
 
7118
    echo "/* Generated by configure.  */" >$tmp/config.h
 
7119
  else
 
7120
    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
 
7121
  fi
 
7122
  cat $tmp/in >>$tmp/config.h
 
7123
  rm -f $tmp/in
 
7124
  if test x"$ac_file" != x-; then
 
7125
    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
 
7126
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
 
7127
echo "$as_me: $ac_file is unchanged" >&6;}
 
7128
    else
 
7129
      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
7130
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
7131
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
7132
         X"$ac_file" : 'X\(//\)$' \| \
 
7133
         X"$ac_file" : 'X\(/\)' \| \
 
7134
         .     : '\(.\)' 2>/dev/null ||
 
7135
echo X"$ac_file" |
 
7136
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
7137
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
7138
          /^X\(\/\/\)$/{ s//\1/; q; }
 
7139
          /^X\(\/\).*/{ s//\1/; q; }
 
7140
          s/.*/./; q'`
 
7141
      { if $as_mkdir_p; then
 
7142
    mkdir -p "$ac_dir"
 
7143
  else
 
7144
    as_dir="$ac_dir"
 
7145
    as_dirs=
 
7146
    while test ! -d "$as_dir"; do
 
7147
      as_dirs="$as_dir $as_dirs"
 
7148
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
7149
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
7150
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
7151
         X"$as_dir" : 'X\(//\)$' \| \
 
7152
         X"$as_dir" : 'X\(/\)' \| \
 
7153
         .     : '\(.\)' 2>/dev/null ||
 
7154
echo X"$as_dir" |
 
7155
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
7156
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
7157
          /^X\(\/\/\)$/{ s//\1/; q; }
 
7158
          /^X\(\/\).*/{ s//\1/; q; }
 
7159
          s/.*/./; q'`
 
7160
    done
 
7161
    test ! -n "$as_dirs" || mkdir $as_dirs
 
7162
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
7163
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
7164
   { (exit 1); exit 1; }; }; }
 
7165
 
 
7166
      rm -f $ac_file
 
7167
      mv $tmp/config.h $ac_file
3264
7168
    fi
3265
 
    rm -f $ac_file
3266
 
    mv conftest.h $ac_file
 
7169
  else
 
7170
    cat $tmp/config.h
 
7171
    rm -f $tmp/config.h
3267
7172
  fi
3268
 
fi; done
3269
 
 
3270
 
EOF
3271
 
cat >> $CONFIG_STATUS <<EOF
3272
 
 
3273
 
EOF
3274
 
cat >> $CONFIG_STATUS <<\EOF
3275
 
 
3276
 
exit 0
3277
 
EOF
 
7173
done
 
7174
_ACEOF
 
7175
 
 
7176
cat >>$CONFIG_STATUS <<\_ACEOF
 
7177
 
 
7178
{ (exit 0); exit 0; }
 
7179
_ACEOF
3278
7180
chmod +x $CONFIG_STATUS
3279
 
rm -fr confdefs* $ac_clean_files
3280
 
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
 
7181
ac_clean_files=$ac_clean_files_save
 
7182
 
 
7183
 
 
7184
# configure is writing to config.log, and then calls config.status.
 
7185
# config.status does its own redirection, appending to config.log.
 
7186
# Unfortunately, on DOS this fails, as config.log is still kept open
 
7187
# by configure, so config.status won't be able to write to it; its
 
7188
# output is simply discarded.  So we exec the FD to /dev/null,
 
7189
# effectively closing config.log, so it can be properly (re)opened and
 
7190
# appended to by config.status.  When coming back to configure, we
 
7191
# need to make the FD available again.
 
7192
if test "$no_create" != yes; then
 
7193
  ac_cs_success=:
 
7194
  ac_config_status_args=
 
7195
  test "$silent" = yes &&
 
7196
    ac_config_status_args="$ac_config_status_args --quiet"
 
7197
  exec 5>/dev/null
 
7198
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 
7199
  exec 5>>config.log
 
7200
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
7201
  # would make configure fail if this is the last instruction.
 
7202
  $ac_cs_success || { (exit 1); exit 1; }
 
7203
fi
3281
7204