2
2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.57.
3
# Generated by GNU Autoconf 2.59.
5
# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6
# Free Software Foundation, Inc.
5
# Copyright (C) 2003 Free Software Foundation, Inc.
7
6
# This configure script is free software; the Free Software Foundation
8
7
# gives unlimited permission to copy, distribute and modify it.
9
8
## --------------------- ##
218
218
if mkdir -p . 2>/dev/null; then
221
test -d ./-p && rmdir ./-p
224
225
as_executable_p="test -f"
226
227
# 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
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230
# Sed expression to map a string onto a valid variable name.
230
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
231
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
708
709
# Try the directory containing this script, then its parent.
709
710
ac_confdir=`(dirname "$0") 2>/dev/null ||
710
711
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711
X"$0" : 'X\(//\)[^/]' \| \
712
X"$0" : 'X\(//\)$' \| \
713
X"$0" : 'X\(/\)' \| \
714
. : '\(.\)' 2>/dev/null ||
712
X"$0" : 'X\(//\)[^/]' \| \
713
X"$0" : 'X\(//\)$' \| \
714
X"$0" : 'X\(/\)' \| \
715
. : '\(.\)' 2>/dev/null ||
716
717
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717
718
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
804
805
Installation directories:
805
806
--prefix=PREFIX install architecture-independent files in PREFIX
807
808
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
810
811
By default, \`make install' will install all the files in
811
812
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
845
846
Optional Features:
846
847
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
847
848
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
848
--enable-strip Strip debugging symbols from binaries no
849
--enable-strip Strip debugging symbols from binaries no
850
--with-pkgconfig-dir=PATH Path to pkg-config *.pc files /usr/lib/pkgconfig
850
852
Optional Packages:
851
853
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
854
856
--with-gd-includes Include flags for the gd library
855
857
--with-gd-libs Linker flags for gd
856
858
--with-cgi Build the CGI programs no
857
--with-linux-hiddev=PATH Linux hiddev.h /usr/src/linux/include/linux
859
--with-linux-hiddev=FILE Linux hiddev.h /usr/include/linux/hiddev.h
858
860
--with-statepath=PATH Path for ups state files /var/state/ups
859
861
--with-altpidpath=PATH Path for driver/upsd .pid files (statepath)
860
862
--with-drvpath=PATH Path for ups drivers <prefix>/bin
910
912
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
911
913
ac_top_srcdir=$ac_top_builddir$srcdir ;;
913
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
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`
916
# Do not use `cd foo && pwd` to compute absolute paths, because
917
# the directories may not exist.
919
.) ac_abs_builddir="$ac_dir";;
922
.) ac_abs_builddir=`pwd`;;
923
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
924
*) ac_abs_builddir=`pwd`/"$ac_dir";;
927
case $ac_abs_builddir in
928
.) ac_abs_top_builddir=${ac_top_builddir}.;;
930
case ${ac_top_builddir}. in
931
.) ac_abs_top_builddir=$ac_abs_builddir;;
932
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
933
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
936
case $ac_abs_builddir in
937
.) ac_abs_srcdir=$ac_srcdir;;
940
.) ac_abs_srcdir=$ac_abs_builddir;;
941
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
942
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
945
case $ac_abs_builddir in
946
.) ac_abs_top_srcdir=$ac_top_srcdir;;
948
case $ac_top_srcdir in
949
.) ac_abs_top_srcdir=$ac_abs_builddir;;
950
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
951
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
921
956
# Check for guested configure; otherwise get Cygnus style configure.
940
975
if $ac_init_version; then
943
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
944
Free Software Foundation, Inc.
978
Copyright (C) 2003 Free Software Foundation, Inc.
945
979
This configure script is free software; the Free Software Foundation
946
980
gives unlimited permission to copy, distribute and modify it.
1031
1065
ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1032
1066
if test $ac_must_keep_next = true; then
1033
ac_must_keep_next=false # Got value, back to normal.
1067
ac_must_keep_next=false # Got value, back to normal.
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 ;;
1044
-* ) ac_must_keep_next=true ;;
1070
*=* | --config-cache | -C | -disable-* | --disable-* \
1071
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1072
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1073
| -with-* | --with-* | -without-* | --without-* | --x)
1074
case "$ac_configure_args0 " in
1075
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1078
-* ) ac_must_keep_next=true ;;
1047
1081
ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1048
1082
# Get rid of the leading space.
1076
1110
case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1079
"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1080
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1113
"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1114
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1084
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1118
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1210
1244
ac_cache_corrupted=false
1211
1245
for ac_var in `(set) 2>&1 |
1212
sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1246
sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1213
1247
eval ac_old_set=\$ac_cv_env_${ac_var}_set
1214
1248
eval ac_new_set=\$ac_env_${ac_var}_set
1215
1249
eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1228
1262
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
1263
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1230
1264
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1231
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1265
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1232
1266
echo "$as_me: former value: $ac_old_val" >&2;}
1233
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1267
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1234
1268
echo "$as_me: current value: $ac_new_val" >&2;}
1235
ac_cache_corrupted=:
1269
ac_cache_corrupted=:
1238
1272
# Pass precious variables to config.status.
1289
1323
CFLAGS=${CFLAGS-"-O"}
1325
echo "$as_me:$LINENO: checking NUT version" >&5
1326
echo $ECHO_N "checking NUT version... $ECHO_C" >&6
1328
if (test -f include/version)
1330
NUT_VERSION=`head -1 include/version`
1331
echo "$as_me:$LINENO: result: $NUT_VERSION" >&5
1332
echo "${ECHO_T}$NUT_VERSION" >&6
1334
{ { echo "$as_me:$LINENO: error: Can't read include/version - broken source distribution?" >&5
1335
echo "$as_me: error: Can't read include/version - broken source distribution?" >&2;}
1336
{ (exit 1); exit 1; }; }
1292
1342
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1293
1343
if test -f $ac_dir/install-sh; then
1768
1817
# Try to create an executable without -o first, disregard a.out.
1769
1818
# It will help us diagnose broken compilers, and finding out an intuition
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
1820
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1821
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1773
1822
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1774
1823
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1775
1824
(eval $ac_link_default) 2>&5
1789
1838
test -f "$ac_file" || continue
1790
1839
case $ac_file in
1791
1840
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1793
1842
conftest.$ac_ext )
1794
# This is the source file.
1843
# This is the source file.
1797
# We found the default executable, but exeext='' is most
1846
# We found the default executable, but exeext='' is most
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.
1850
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1851
# FIXME: I believe we export ac_cv_exeext for Libtool,
1852
# but it would be cool to find out if it's true. Does anybody
1853
# maintain Libtool? --akim.
1977
2024
rm -f conftest.$ac_objext
1978
2025
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1979
(eval $ac_compile) 2>&5
2026
(eval $ac_compile) 2>conftest.er1
2028
grep -v '^ *+' conftest.er1 >conftest.err
2030
cat conftest.err >&5
1981
2031
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1982
2032
(exit $ac_status); } &&
1983
{ ac_try='test -s conftest.$ac_objext'
2033
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2034
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2037
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2038
(exit $ac_status); }; } &&
2039
{ ac_try='test -s conftest.$ac_objext'
1984
2040
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1985
2041
(eval $ac_try) 2>&5
2027
2082
rm -f conftest.$ac_objext
2028
2083
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2029
(eval $ac_compile) 2>&5
2084
(eval $ac_compile) 2>conftest.er1
2086
grep -v '^ *+' conftest.er1 >conftest.err
2088
cat conftest.err >&5
2031
2089
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2032
2090
(exit $ac_status); } &&
2033
{ ac_try='test -s conftest.$ac_objext'
2091
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2092
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2095
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2096
(exit $ac_status); }; } &&
2097
{ ac_try='test -s conftest.$ac_objext'
2034
2098
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2035
2099
(eval $ac_try) 2>&5
2165
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2166
function prototypes and stuff, but not '\xHH' hex character constants.
2167
These don't provoke an error unfortunately, instead are silently treated
2168
as 'x'. The following induces an error, until -std1 is added to get
2169
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2170
array size at least. It's necessary to write '\x00'==0 to get something
2171
that's true only with -std1. */
2172
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2101
2174
int test (int i, double x);
2102
2175
struct s1 {int (*f) (int a);};
2103
2176
struct s2 {int (*f) (double a);};
2124
2197
CC="$ac_save_CC $ac_arg"
2125
2198
rm -f conftest.$ac_objext
2126
2199
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2127
(eval $ac_compile) 2>&5
2200
(eval $ac_compile) 2>conftest.er1
2202
grep -v '^ *+' conftest.er1 >conftest.err
2204
cat conftest.err >&5
2129
2205
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2130
2206
(exit $ac_status); } &&
2131
{ ac_try='test -s conftest.$ac_objext'
2207
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2208
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2211
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2212
(exit $ac_status); }; } &&
2213
{ ac_try='test -s conftest.$ac_objext'
2132
2214
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2133
2215
(eval $ac_try) 2>&5
2170
2252
rm -f conftest.$ac_objext
2171
2253
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2172
(eval $ac_compile) 2>&5
2254
(eval $ac_compile) 2>conftest.er1
2256
grep -v '^ *+' conftest.er1 >conftest.err
2258
cat conftest.err >&5
2174
2259
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2175
2260
(exit $ac_status); } &&
2176
{ ac_try='test -s conftest.$ac_objext'
2261
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2262
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2265
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2266
(exit $ac_status); }; } &&
2267
{ ac_try='test -s conftest.$ac_objext'
2177
2268
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2178
2269
(eval $ac_try) 2>&5
2180
2271
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2181
2272
(exit $ac_status); }; }; then
2182
2273
for ac_declaration in \
2184
'#include <stdlib.h>' \
2185
2275
'extern "C" void std::exit (int) throw (); using std::exit;' \
2186
2276
'extern "C" void std::exit (int); using std::exit;' \
2187
2277
'extern "C" void exit (int) throw ();' \
2208
2297
rm -f conftest.$ac_objext
2209
2298
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2210
(eval $ac_compile) 2>&5
2299
(eval $ac_compile) 2>conftest.er1
2301
grep -v '^ *+' conftest.er1 >conftest.err
2303
cat conftest.err >&5
2212
2304
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2213
2305
(exit $ac_status); } &&
2214
{ ac_try='test -s conftest.$ac_objext'
2306
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2307
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2310
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2311
(exit $ac_status); }; } &&
2312
{ ac_try='test -s conftest.$ac_objext'
2215
2313
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2216
2314
(eval $ac_try) 2>&5
2244
2341
rm -f conftest.$ac_objext
2245
2342
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2246
(eval $ac_compile) 2>&5
2343
(eval $ac_compile) 2>conftest.er1
2345
grep -v '^ *+' conftest.er1 >conftest.err
2347
cat conftest.err >&5
2248
2348
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2249
2349
(exit $ac_status); } &&
2250
{ ac_try='test -s conftest.$ac_objext'
2350
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2351
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2354
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2355
(exit $ac_status); }; } &&
2356
{ ac_try='test -s conftest.$ac_objext'
2251
2357
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2252
2358
(eval $ac_try) 2>&5
2525
2631
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2526
2632
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2527
2633
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2634
# OS/2's system install, which has a completely different semantic
2528
2635
# ./install, which can be erroneously created by make from ./install.sh.
2529
2636
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2530
2637
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2549
2657
for ac_prog in ginstall scoinst install; do
2550
2658
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.
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.
2561
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2659
if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2660
if test $ac_prog = install &&
2661
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2662
# AIX install. It has an incompatible calling convention.
2664
elif test $ac_prog = install &&
2665
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2666
# program-specific install script used by HP pwplus--don't use.
2669
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2750
2857
rm -f conftest.$ac_objext
2751
2858
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2752
(eval $ac_compile) 2>&5
2859
(eval $ac_compile) 2>conftest.er1
2861
grep -v '^ *+' conftest.er1 >conftest.err
2863
cat conftest.err >&5
2754
2864
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2755
2865
(exit $ac_status); } &&
2756
{ ac_try='test -s conftest.$ac_objext'
2866
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2867
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2870
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2871
(exit $ac_status); }; } &&
2872
{ ac_try='test -s conftest.$ac_objext'
2757
2873
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2758
2874
(eval $ac_try) 2>&5
2765
2881
sed 's/^/| /' conftest.$ac_ext >&5
2768
rm -f conftest.$ac_objext conftest.$ac_ext
2884
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2772
2888
echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
2773
2889
echo "${ECHO_T}$ac_cv_c_inline" >&6
2774
2892
case $ac_cv_c_inline in
2775
2893
inline | yes) ;;
2777
cat >>confdefs.h <<\_ACEOF
2781
*) cat >>confdefs.h <<_ACEOF
2782
#define inline $ac_cv_c_inline
2895
case $ac_cv_c_inline in
2897
*) ac_val=$ac_cv_c_inline;;
2899
cat >>confdefs.h <<_ACEOF
2901
#define inline $ac_val
2797
2917
echo $ECHO_N "(cached) $ECHO_C" >&6
2799
2919
cat >conftest.$ac_ext <<_ACEOF
2800
#line $LINENO "configure"
2801
2920
/* confdefs.h. */
2803
2922
cat confdefs.h >>conftest.$ac_ext
2804
2923
cat >>conftest.$ac_ext <<_ACEOF
2805
2924
/* end confdefs.h. */
2925
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
2926
For example, HP-UX 11i <limits.h> declares gettimeofday. */
2927
#define $ac_func innocuous_$ac_func
2806
2929
/* System header to define __stub macros and hopefully few prototypes,
2807
2930
which can conflict with char $ac_func (); below.
2808
2931
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2809
2932
<limits.h> exists even on freestanding compilers. */
2810
2934
#ifdef __STDC__
2811
2935
# include <limits.h>
2813
2937
# include <assert.h>
2815
2942
/* Override any gcc2 internal prototype to avoid an error. */
2816
2943
#ifdef __cplusplus
2843
2970
rm -f conftest.$ac_objext conftest$ac_exeext
2844
2971
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2845
(eval $ac_link) 2>&5
2972
(eval $ac_link) 2>conftest.er1
2974
grep -v '^ *+' conftest.er1 >conftest.err
2976
cat conftest.err >&5
2847
2977
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848
2978
(exit $ac_status); } &&
2849
{ ac_try='test -s conftest$ac_exeext'
2979
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2980
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2983
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2984
(exit $ac_status); }; } &&
2985
{ ac_try='test -s conftest$ac_exeext'
2850
2986
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2851
2987
(eval $ac_try) 2>&5
2883
3019
echo $ECHO_N "(cached) $ECHO_C" >&6
2885
3021
cat >conftest.$ac_ext <<_ACEOF
2886
#line $LINENO "configure"
2887
3022
/* confdefs.h. */
2889
3024
cat confdefs.h >>conftest.$ac_ext
2890
3025
cat >>conftest.$ac_ext <<_ACEOF
2891
3026
/* end confdefs.h. */
3027
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3028
For example, HP-UX 11i <limits.h> declares gettimeofday. */
3029
#define $ac_func innocuous_$ac_func
2892
3031
/* System header to define __stub macros and hopefully few prototypes,
2893
3032
which can conflict with char $ac_func (); below.
2894
3033
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2895
3034
<limits.h> exists even on freestanding compilers. */
2896
3036
#ifdef __STDC__
2897
3037
# include <limits.h>
2899
3039
# include <assert.h>
2901
3044
/* Override any gcc2 internal prototype to avoid an error. */
2902
3045
#ifdef __cplusplus
2929
3072
rm -f conftest.$ac_objext conftest$ac_exeext
2930
3073
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2931
(eval $ac_link) 2>&5
3074
(eval $ac_link) 2>conftest.er1
3076
grep -v '^ *+' conftest.er1 >conftest.err
3078
cat conftest.err >&5
2933
3079
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934
3080
(exit $ac_status); } &&
2935
{ ac_try='test -s conftest$ac_exeext'
3081
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3082
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3085
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3086
(exit $ac_status); }; } &&
3087
{ ac_try='test -s conftest$ac_exeext'
2936
3088
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2937
3089
(eval $ac_try) 2>&5
2969
3122
echo $ECHO_N "(cached) $ECHO_C" >&6
2971
3124
cat >conftest.$ac_ext <<_ACEOF
2972
#line $LINENO "configure"
2973
3125
/* confdefs.h. */
2975
3127
cat confdefs.h >>conftest.$ac_ext
2976
3128
cat >>conftest.$ac_ext <<_ACEOF
2977
3129
/* end confdefs.h. */
3130
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3131
For example, HP-UX 11i <limits.h> declares gettimeofday. */
3132
#define $ac_func innocuous_$ac_func
2978
3134
/* System header to define __stub macros and hopefully few prototypes,
2979
3135
which can conflict with char $ac_func (); below.
2980
3136
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2981
3137
<limits.h> exists even on freestanding compilers. */
2982
3139
#ifdef __STDC__
2983
3140
# include <limits.h>
2985
3142
# include <assert.h>
2987
3147
/* Override any gcc2 internal prototype to avoid an error. */
2988
3148
#ifdef __cplusplus
3015
3175
rm -f conftest.$ac_objext conftest$ac_exeext
3016
3176
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3017
(eval $ac_link) 2>&5
3177
(eval $ac_link) 2>conftest.er1
3179
grep -v '^ *+' conftest.er1 >conftest.err
3181
cat conftest.err >&5
3019
3182
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3020
3183
(exit $ac_status); } &&
3021
{ ac_try='test -s conftest$ac_exeext'
3184
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3185
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3188
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3189
(exit $ac_status); }; } &&
3190
{ ac_try='test -s conftest$ac_exeext'
3022
3191
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3023
3192
(eval $ac_try) 2>&5
3055
3225
echo $ECHO_N "(cached) $ECHO_C" >&6
3057
3227
cat >conftest.$ac_ext <<_ACEOF
3058
#line $LINENO "configure"
3059
3228
/* confdefs.h. */
3061
3230
cat confdefs.h >>conftest.$ac_ext
3062
3231
cat >>conftest.$ac_ext <<_ACEOF
3063
3232
/* end confdefs.h. */
3233
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3234
For example, HP-UX 11i <limits.h> declares gettimeofday. */
3235
#define $ac_func innocuous_$ac_func
3064
3237
/* System header to define __stub macros and hopefully few prototypes,
3065
3238
which can conflict with char $ac_func (); below.
3066
3239
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3067
3240
<limits.h> exists even on freestanding compilers. */
3068
3242
#ifdef __STDC__
3069
3243
# include <limits.h>
3071
3245
# include <assert.h>
3073
3250
/* Override any gcc2 internal prototype to avoid an error. */
3074
3251
#ifdef __cplusplus
3101
3278
rm -f conftest.$ac_objext conftest$ac_exeext
3102
3279
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3103
(eval $ac_link) 2>&5
3280
(eval $ac_link) 2>conftest.er1
3282
grep -v '^ *+' conftest.er1 >conftest.err
3284
cat conftest.err >&5
3105
3285
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3106
3286
(exit $ac_status); } &&
3107
{ ac_try='test -s conftest$ac_exeext'
3287
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3288
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3291
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3292
(exit $ac_status); }; } &&
3293
{ ac_try='test -s conftest$ac_exeext'
3108
3294
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3109
3295
(eval $ac_try) 2>&5
3143
3330
echo $ECHO_N "(cached) $ECHO_C" >&6
3145
3332
cat >conftest.$ac_ext <<_ACEOF
3146
#line $LINENO "configure"
3147
3333
/* confdefs.h. */
3149
3335
cat confdefs.h >>conftest.$ac_ext
3150
3336
cat >>conftest.$ac_ext <<_ACEOF
3151
3337
/* end confdefs.h. */
3338
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3339
For example, HP-UX 11i <limits.h> declares gettimeofday. */
3340
#define $ac_func innocuous_$ac_func
3152
3342
/* System header to define __stub macros and hopefully few prototypes,
3153
3343
which can conflict with char $ac_func (); below.
3154
3344
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3155
3345
<limits.h> exists even on freestanding compilers. */
3156
3347
#ifdef __STDC__
3157
3348
# include <limits.h>
3159
3350
# include <assert.h>
3161
3355
/* Override any gcc2 internal prototype to avoid an error. */
3162
3356
#ifdef __cplusplus
3189
3383
rm -f conftest.$ac_objext conftest$ac_exeext
3190
3384
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3191
(eval $ac_link) 2>&5
3385
(eval $ac_link) 2>conftest.er1
3387
grep -v '^ *+' conftest.er1 >conftest.err
3389
cat conftest.err >&5
3193
3390
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3194
3391
(exit $ac_status); } &&
3195
{ ac_try='test -s conftest$ac_exeext'
3392
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3393
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3396
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3397
(exit $ac_status); }; } &&
3398
{ ac_try='test -s conftest$ac_exeext'
3196
3399
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3197
3400
(eval $ac_try) 2>&5
3231
3435
echo $ECHO_N "(cached) $ECHO_C" >&6
3233
3437
cat >conftest.$ac_ext <<_ACEOF
3234
#line $LINENO "configure"
3235
3438
/* confdefs.h. */
3237
3440
cat confdefs.h >>conftest.$ac_ext
3238
3441
cat >>conftest.$ac_ext <<_ACEOF
3239
3442
/* end confdefs.h. */
3443
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3444
For example, HP-UX 11i <limits.h> declares gettimeofday. */
3445
#define $ac_func innocuous_$ac_func
3240
3447
/* System header to define __stub macros and hopefully few prototypes,
3241
3448
which can conflict with char $ac_func (); below.
3242
3449
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3243
3450
<limits.h> exists even on freestanding compilers. */
3244
3452
#ifdef __STDC__
3245
3453
# include <limits.h>
3247
3455
# include <assert.h>
3249
3460
/* Override any gcc2 internal prototype to avoid an error. */
3250
3461
#ifdef __cplusplus
3277
3488
rm -f conftest.$ac_objext conftest$ac_exeext
3278
3489
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3279
(eval $ac_link) 2>&5
3490
(eval $ac_link) 2>conftest.er1
3492
grep -v '^ *+' conftest.er1 >conftest.err
3494
cat conftest.err >&5
3281
3495
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3282
3496
(exit $ac_status); } &&
3283
{ ac_try='test -s conftest$ac_exeext'
3497
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3498
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3501
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3502
(exit $ac_status); }; } &&
3503
{ ac_try='test -s conftest$ac_exeext'
3284
3504
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3285
3505
(eval $ac_try) 2>&5
3319
3540
echo $ECHO_N "(cached) $ECHO_C" >&6
3321
3542
cat >conftest.$ac_ext <<_ACEOF
3322
#line $LINENO "configure"
3323
3543
/* confdefs.h. */
3325
3545
cat confdefs.h >>conftest.$ac_ext
3326
3546
cat >>conftest.$ac_ext <<_ACEOF
3327
3547
/* end confdefs.h. */
3548
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3549
For example, HP-UX 11i <limits.h> declares gettimeofday. */
3550
#define $ac_func innocuous_$ac_func
3328
3552
/* System header to define __stub macros and hopefully few prototypes,
3329
3553
which can conflict with char $ac_func (); below.
3330
3554
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3331
3555
<limits.h> exists even on freestanding compilers. */
3332
3557
#ifdef __STDC__
3333
3558
# include <limits.h>
3335
3560
# include <assert.h>
3337
3565
/* Override any gcc2 internal prototype to avoid an error. */
3338
3566
#ifdef __cplusplus
3365
3593
rm -f conftest.$ac_objext conftest$ac_exeext
3366
3594
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3367
(eval $ac_link) 2>&5
3595
(eval $ac_link) 2>conftest.er1
3597
grep -v '^ *+' conftest.er1 >conftest.err
3599
cat conftest.err >&5
3369
3600
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3370
3601
(exit $ac_status); } &&
3371
{ ac_try='test -s conftest$ac_exeext'
3602
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3603
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3606
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3607
(exit $ac_status); }; } &&
3608
{ ac_try='test -s conftest$ac_exeext'
3372
3609
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3373
3610
(eval $ac_try) 2>&5
3401
for ac_func in strlcpy
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
3409
cat >conftest.$ac_ext <<_ACEOF
3410
#line $LINENO "configure"
3413
cat confdefs.h >>conftest.$ac_ext
3414
cat >>conftest.$ac_ext <<_ACEOF
3415
/* end confdefs.h. */
3416
/* System header to define __stub macros and hopefully few prototypes,
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. */
3421
# include <limits.h>
3423
# include <assert.h>
3425
/* Override any gcc2 internal prototype to avoid an error. */
3430
/* We use char because int might match the return type of a gcc2
3431
builtin and then its argument prototype would still apply. */
3433
/* The GNU C library defines this for functions which it implements
3434
to always fail with ENOSYS. Some functions are actually named
3435
something starting with __ and the normal name is an alias. */
3436
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3439
char (*f) () = $ac_func;
3448
return f != $ac_func;
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
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
3463
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3464
(exit $ac_status); }; }; then
3465
eval "$as_ac_var=yes"
3467
echo "$as_me: failed program was:" >&5
3468
sed 's/^/| /' conftest.$ac_ext >&5
3470
eval "$as_ac_var=no"
3472
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
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
3482
STRLCPY="../common/strlcpy.o"
3483
BUILDOBJ="$BUILDOBJ strlcpy.o"
3489
3639
for ac_func in atexit
3491
3641
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3495
3645
echo $ECHO_N "(cached) $ECHO_C" >&6
3497
3647
cat >conftest.$ac_ext <<_ACEOF
3498
#line $LINENO "configure"
3499
3648
/* confdefs.h. */
3501
3650
cat confdefs.h >>conftest.$ac_ext
3502
3651
cat >>conftest.$ac_ext <<_ACEOF
3503
3652
/* end confdefs.h. */
3653
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3654
For example, HP-UX 11i <limits.h> declares gettimeofday. */
3655
#define $ac_func innocuous_$ac_func
3504
3657
/* System header to define __stub macros and hopefully few prototypes,
3505
3658
which can conflict with char $ac_func (); below.
3506
3659
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3507
3660
<limits.h> exists even on freestanding compilers. */
3508
3662
#ifdef __STDC__
3509
3663
# include <limits.h>
3511
3665
# include <assert.h>
3513
3670
/* Override any gcc2 internal prototype to avoid an error. */
3514
3671
#ifdef __cplusplus
3541
3698
rm -f conftest.$ac_objext conftest$ac_exeext
3542
3699
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3543
(eval $ac_link) 2>&5
3700
(eval $ac_link) 2>conftest.er1
3702
grep -v '^ *+' conftest.er1 >conftest.err
3704
cat conftest.err >&5
3545
3705
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3546
3706
(exit $ac_status); } &&
3547
{ ac_try='test -s conftest$ac_exeext'
3707
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3708
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3711
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3712
(exit $ac_status); }; } &&
3713
{ ac_try='test -s conftest$ac_exeext'
3548
3714
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3549
3715
(eval $ac_try) 2>&5
3580
3747
echo $ECHO_N "(cached) $ECHO_C" >&6
3582
3749
cat >conftest.$ac_ext <<_ACEOF
3583
#line $LINENO "configure"
3584
3750
/* confdefs.h. */
3586
3752
cat confdefs.h >>conftest.$ac_ext
3587
3753
cat >>conftest.$ac_ext <<_ACEOF
3588
3754
/* end confdefs.h. */
3755
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3756
For example, HP-UX 11i <limits.h> declares gettimeofday. */
3757
#define $ac_func innocuous_$ac_func
3589
3759
/* System header to define __stub macros and hopefully few prototypes,
3590
3760
which can conflict with char $ac_func (); below.
3591
3761
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3592
3762
<limits.h> exists even on freestanding compilers. */
3593
3764
#ifdef __STDC__
3594
3765
# include <limits.h>
3596
3767
# include <assert.h>
3598
3772
/* Override any gcc2 internal prototype to avoid an error. */
3599
3773
#ifdef __cplusplus
3626
3800
rm -f conftest.$ac_objext conftest$ac_exeext
3627
3801
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3628
(eval $ac_link) 2>&5
3802
(eval $ac_link) 2>conftest.er1
3804
grep -v '^ *+' conftest.er1 >conftest.err
3806
cat conftest.err >&5
3630
3807
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3631
3808
(exit $ac_status); } &&
3632
{ ac_try='test -s conftest$ac_exeext'
3809
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3810
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3813
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3814
(exit $ac_status); }; } &&
3815
{ ac_try='test -s conftest$ac_exeext'
3633
3816
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3634
3817
(eval $ac_try) 2>&5
3662
3846
if test -z "$AR" ; then
3663
MISC_UPSCLI_OBJ="upsclient.o ../common/parseconf.o"
3664
MISC_UPSCLI_LIBOBJ="upsclient.o parseconf.o"
3847
UPSCLI_OBJ="upsclient.o ../common/parseconf.o"
3848
UPSCLI_LIBOBJ="upsclient.o parseconf.o"
3666
MISC_UPSCLI_OBJ="libupsclient.a"
3667
MISC_UPSCLI_LIBOBJ="-lupsclient"
3850
UPSCLI_OBJ="libupsclient.a"
3851
UPSCLI_LIBOBJ="-lupsclient"
3671
# Only use -Wall when compiling with gcc
3855
# Only use these when compiling with gcc
3673
3857
if ( test "x$GCC" = "xyes" )
3675
CFLAGS="$CFLAGS -Wall"
3859
CFLAGS="$CFLAGS -Wall -Wsign-compare"
3678
3862
# Endianness handling, using default behavior
3708
3891
rm -f conftest.$ac_objext
3709
3892
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3710
(eval $ac_compile) 2>&5
3893
(eval $ac_compile) 2>conftest.er1
3895
grep -v '^ *+' conftest.er1 >conftest.err
3897
cat conftest.err >&5
3712
3898
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3713
3899
(exit $ac_status); } &&
3714
{ ac_try='test -s conftest.$ac_objext'
3900
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3901
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3904
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3905
(exit $ac_status); }; } &&
3906
{ ac_try='test -s conftest.$ac_objext'
3715
3907
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3716
3908
(eval $ac_try) 2>&5
3742
3933
rm -f conftest.$ac_objext
3743
3934
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3744
(eval $ac_compile) 2>&5
3935
(eval $ac_compile) 2>conftest.er1
3937
grep -v '^ *+' conftest.er1 >conftest.err
3939
cat conftest.err >&5
3746
3940
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3747
3941
(exit $ac_status); } &&
3748
{ ac_try='test -s conftest.$ac_objext'
3942
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3943
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3946
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3947
(exit $ac_status); }; } &&
3948
{ ac_try='test -s conftest.$ac_objext'
3749
3949
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3750
3950
(eval $ac_try) 2>&5
3791
3990
rm -f conftest.$ac_objext
3792
3991
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3793
(eval $ac_compile) 2>&5
3992
(eval $ac_compile) 2>conftest.er1
3994
grep -v '^ *+' conftest.er1 >conftest.err
3996
cat conftest.err >&5
3795
3997
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3796
3998
(exit $ac_status); } &&
3797
{ ac_try='test -s conftest.$ac_objext'
3999
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4000
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4003
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4004
(exit $ac_status); }; } &&
4005
{ ac_try='test -s conftest.$ac_objext'
3798
4006
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3799
4007
(eval $ac_try) 2>&5
3858
4065
( exit $ac_status )
3859
4066
ac_cv_c_bigendian=yes
3861
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3864
rm -f conftest.$ac_objext conftest.$ac_ext
4068
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4071
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3866
4073
echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3867
4074
echo "${ECHO_T}$ac_cv_c_bigendian" >&6
3906
4112
rm -f conftest.$ac_objext
3907
4113
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3908
(eval $ac_compile) 2>&5
4114
(eval $ac_compile) 2>conftest.er1
4116
grep -v '^ *+' conftest.er1 >conftest.err
4118
cat conftest.err >&5
3910
4119
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3911
4120
(exit $ac_status); } &&
3912
{ ac_try='test -s conftest.$ac_objext'
4121
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4122
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4125
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4126
(exit $ac_status); }; } &&
4127
{ ac_try='test -s conftest.$ac_objext'
3913
4128
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3914
4129
(eval $ac_try) 2>&5
3956
4170
rm -f conftest.$ac_objext
3957
4171
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3958
(eval $ac_compile) 2>&5
4172
(eval $ac_compile) 2>conftest.er1
4174
grep -v '^ *+' conftest.er1 >conftest.err
4176
cat conftest.err >&5
3960
4177
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3961
4178
(exit $ac_status); } &&
3962
{ ac_try='test -s conftest.$ac_objext'
4179
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4180
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4183
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4184
(exit $ac_status); }; } &&
4185
{ ac_try='test -s conftest.$ac_objext'
3963
4186
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3964
4187
(eval $ac_try) 2>&5
3973
4196
ac_cv_header_stdc=no
3975
rm -f conftest.$ac_objext conftest.$ac_ext
4198
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3977
4200
if test $ac_cv_header_stdc = yes; then
3978
4201
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3979
4202
cat >conftest.$ac_ext <<_ACEOF
3980
#line $LINENO "configure"
3981
4203
/* confdefs.h. */
3983
4205
cat confdefs.h >>conftest.$ac_ext
4036
4256
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4038
4258
# define ISLOWER(c) \
4039
(('a' <= (c) && (c) <= 'i') \
4040
|| ('j' <= (c) && (c) <= 'r') \
4041
|| ('s' <= (c) && (c) <= 'z'))
4259
(('a' <= (c) && (c) <= 'i') \
4260
|| ('j' <= (c) && (c) <= 'r') \
4261
|| ('s' <= (c) && (c) <= 'z'))
4042
4262
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4121
4340
rm -f conftest.$ac_objext
4122
4341
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4123
(eval $ac_compile) 2>&5
4342
(eval $ac_compile) 2>conftest.er1
4344
grep -v '^ *+' conftest.er1 >conftest.err
4346
cat conftest.err >&5
4125
4347
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4126
4348
(exit $ac_status); } &&
4127
{ ac_try='test -s conftest.$ac_objext'
4349
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4350
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4353
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354
(exit $ac_status); }; } &&
4355
{ ac_try='test -s conftest.$ac_objext'
4128
4356
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4129
4357
(eval $ac_try) 2>&5
4176
4403
rm -f conftest.$ac_objext
4177
4404
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4178
(eval $ac_compile) 2>&5
4405
(eval $ac_compile) 2>conftest.er1
4407
grep -v '^ *+' conftest.er1 >conftest.err
4409
cat conftest.err >&5
4180
4410
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4181
4411
(exit $ac_status); } &&
4182
{ ac_try='test -s conftest.$ac_objext'
4412
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4413
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4416
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4417
(exit $ac_status); }; } &&
4418
{ ac_try='test -s conftest.$ac_objext'
4183
4419
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4184
4420
(eval $ac_try) 2>&5
4237
4473
echo "${ECHO_T}$ac_header_preproc" >&6
4239
4475
# So? What about this header?
4240
case $ac_header_compiler:$ac_header_preproc in
4476
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4242
4478
{ echo "$as_me:$LINENO: WARNING: getopt.h: accepted by the compiler, rejected by the preprocessor!" >&5
4243
4479
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;}
4248
## ------------------------------------ ##
4249
## Report this to bug-autoconf@gnu.org. ##
4250
## ------------------------------------ ##
4253
sed "s/^/$as_me: WARNING: /" >&2
4480
{ echo "$as_me:$LINENO: WARNING: getopt.h: proceeding with the compiler's result" >&5
4481
echo "$as_me: WARNING: getopt.h: proceeding with the compiler's result" >&2;}
4482
ac_header_preproc=yes
4256
4485
{ echo "$as_me:$LINENO: WARNING: getopt.h: present but cannot be compiled" >&5
4257
4486
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;}
4487
{ echo "$as_me:$LINENO: WARNING: getopt.h: check for missing prerequisite headers?" >&5
4488
echo "$as_me: WARNING: getopt.h: check for missing prerequisite headers?" >&2;}
4489
{ echo "$as_me:$LINENO: WARNING: getopt.h: see the Autoconf documentation" >&5
4490
echo "$as_me: WARNING: getopt.h: see the Autoconf documentation" >&2;}
4491
{ echo "$as_me:$LINENO: WARNING: getopt.h: section \"Present But Cannot Be Compiled\"" >&5
4492
echo "$as_me: WARNING: getopt.h: section \"Present But Cannot Be Compiled\"" >&2;}
4260
4493
{ echo "$as_me:$LINENO: WARNING: getopt.h: proceeding with the preprocessor's result" >&5
4261
4494
echo "$as_me: WARNING: getopt.h: proceeding with the preprocessor's result" >&2;}
4495
{ echo "$as_me:$LINENO: WARNING: getopt.h: in the future, the compiler will take precedence" >&5
4496
echo "$as_me: WARNING: getopt.h: in the future, the compiler will take precedence" >&2;}
4264
## ------------------------------------ ##
4265
## Report this to bug-autoconf@gnu.org. ##
4266
## ------------------------------------ ##
4499
## ------------------------------------------ ##
4500
## Report this to the AC_PACKAGE_NAME lists. ##
4501
## ------------------------------------------ ##
4269
4504
sed "s/^/$as_me: WARNING: /" >&2
4310
4544
# FreeBSD serial locking compatibility - look for uu_lock in libutil.h
4312
4546
echo "$as_me:$LINENO: checking whether to use uu_lock" >&5
4313
4547
echo $ECHO_N "checking whether to use uu_lock... $ECHO_C" >&6
4314
4548
cat >conftest.$ac_ext <<_ACEOF
4315
#line $LINENO "configure"
4316
4549
/* confdefs.h. */
4318
4551
cat confdefs.h >>conftest.$ac_ext
4358
4591
echo $ECHO_N "(cached) $ECHO_C" >&6
4360
4593
cat >conftest.$ac_ext <<_ACEOF
4361
#line $LINENO "configure"
4362
4594
/* confdefs.h. */
4364
4596
cat confdefs.h >>conftest.$ac_ext
4365
4597
cat >>conftest.$ac_ext <<_ACEOF
4366
4598
/* end confdefs.h. */
4599
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4600
For example, HP-UX 11i <limits.h> declares gettimeofday. */
4601
#define $ac_func innocuous_$ac_func
4367
4603
/* System header to define __stub macros and hopefully few prototypes,
4368
4604
which can conflict with char $ac_func (); below.
4369
4605
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4370
4606
<limits.h> exists even on freestanding compilers. */
4371
4608
#ifdef __STDC__
4372
4609
# include <limits.h>
4374
4611
# include <assert.h>
4376
4616
/* Override any gcc2 internal prototype to avoid an error. */
4377
4617
#ifdef __cplusplus
4404
4644
rm -f conftest.$ac_objext conftest$ac_exeext
4405
4645
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4406
(eval $ac_link) 2>&5
4646
(eval $ac_link) 2>conftest.er1
4648
grep -v '^ *+' conftest.er1 >conftest.err
4650
cat conftest.err >&5
4408
4651
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4409
4652
(exit $ac_status); } &&
4410
{ ac_try='test -s conftest$ac_exeext'
4653
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4654
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4657
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4658
(exit $ac_status); }; } &&
4659
{ ac_try='test -s conftest$ac_exeext'
4411
4660
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4412
4661
(eval $ac_try) 2>&5
4467
4716
rm -f conftest.$ac_objext conftest$ac_exeext
4468
4717
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4469
(eval $ac_link) 2>&5
4718
(eval $ac_link) 2>conftest.er1
4720
grep -v '^ *+' conftest.er1 >conftest.err
4722
cat conftest.err >&5
4471
4723
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4472
4724
(exit $ac_status); } &&
4473
{ ac_try='test -s conftest$ac_exeext'
4725
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4726
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4729
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4730
(exit $ac_status); }; } &&
4731
{ ac_try='test -s conftest$ac_exeext'
4474
4732
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4475
4733
(eval $ac_try) 2>&5
4528
4786
rm -f conftest.$ac_objext conftest$ac_exeext
4529
4787
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4530
(eval $ac_link) 2>&5
4788
(eval $ac_link) 2>conftest.er1
4790
grep -v '^ *+' conftest.er1 >conftest.err
4792
cat conftest.err >&5
4532
4793
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4533
4794
(exit $ac_status); } &&
4534
{ ac_try='test -s conftest$ac_exeext'
4795
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4796
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4799
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4800
(exit $ac_status); }; } &&
4801
{ ac_try='test -s conftest$ac_exeext'
4535
4802
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4536
4803
(eval $ac_try) 2>&5
4589
4856
rm -f conftest.$ac_objext
4590
4857
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4591
(eval $ac_compile) 2>&5
4858
(eval $ac_compile) 2>conftest.er1
4860
grep -v '^ *+' conftest.er1 >conftest.err
4862
cat conftest.err >&5
4593
4863
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4594
4864
(exit $ac_status); } &&
4595
{ ac_try='test -s conftest.$ac_objext'
4865
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4866
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4869
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4870
(exit $ac_status); }; } &&
4871
{ ac_try='test -s conftest.$ac_objext'
4596
4872
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4597
4873
(eval $ac_try) 2>&5
4650
4926
echo "${ECHO_T}$ac_header_preproc" >&6
4652
4928
# So? What about this header?
4653
case $ac_header_compiler:$ac_header_preproc in
4929
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4655
4931
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4656
4932
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;}
4661
## ------------------------------------ ##
4662
## Report this to bug-autoconf@gnu.org. ##
4663
## ------------------------------------ ##
4666
sed "s/^/$as_me: WARNING: /" >&2
4933
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4934
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4935
ac_header_preproc=yes
4669
4938
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4670
4939
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;}
4940
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4941
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4942
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4943
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4944
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4945
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4673
4946
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4674
4947
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4948
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4949
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4677
## ------------------------------------ ##
4678
## Report this to bug-autoconf@gnu.org. ##
4679
## ------------------------------------ ##
4952
## ------------------------------------------ ##
4953
## Report this to the AC_PACKAGE_NAME lists. ##
4954
## ------------------------------------------ ##
4682
4957
sed "s/^/$as_me: WARNING: /" >&2
4687
4962
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4688
4963
echo $ECHO_N "(cached) $ECHO_C" >&6
4690
eval "$as_ac_Header=$ac_header_preproc"
4965
eval "$as_ac_Header=\$ac_header_preproc"
4692
4967
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4693
4968
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4731
5005
rm -f conftest.$ac_objext
4732
5006
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4733
(eval $ac_compile) 2>&5
5007
(eval $ac_compile) 2>conftest.er1
5009
grep -v '^ *+' conftest.er1 >conftest.err
5011
cat conftest.err >&5
4735
5012
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736
5013
(exit $ac_status); } &&
4737
{ ac_try='test -s conftest.$ac_objext'
5014
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5015
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5018
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5019
(exit $ac_status); }; } &&
5020
{ ac_try='test -s conftest.$ac_objext'
4738
5021
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4739
5022
(eval $ac_try) 2>&5
4788
5070
rm -f conftest.$ac_objext
4789
5071
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4790
(eval $ac_compile) 2>&5
5072
(eval $ac_compile) 2>conftest.er1
5074
grep -v '^ *+' conftest.er1 >conftest.err
5076
cat conftest.err >&5
4792
5077
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4793
5078
(exit $ac_status); } &&
4794
{ ac_try='test -s conftest.$ac_objext'
5079
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5080
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5083
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084
(exit $ac_status); }; } &&
5085
{ ac_try='test -s conftest.$ac_objext'
4795
5086
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4796
5087
(eval $ac_try) 2>&5
4849
5140
echo "${ECHO_T}$ac_header_preproc" >&6
4851
5142
# So? What about this header?
4852
case $ac_header_compiler:$ac_header_preproc in
5143
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4854
5145
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4855
5146
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;}
4860
## ------------------------------------ ##
4861
## Report this to bug-autoconf@gnu.org. ##
4862
## ------------------------------------ ##
4865
sed "s/^/$as_me: WARNING: /" >&2
5147
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5148
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5149
ac_header_preproc=yes
4868
5152
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4869
5153
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;}
5154
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5155
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5156
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5157
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5158
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5159
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4872
5160
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4873
5161
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5162
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5163
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4876
## ------------------------------------ ##
4877
## Report this to bug-autoconf@gnu.org. ##
4878
## ------------------------------------ ##
5166
## ------------------------------------------ ##
5167
## Report this to the AC_PACKAGE_NAME lists. ##
5168
## ------------------------------------------ ##
4881
5171
sed "s/^/$as_me: WARNING: /" >&2
4886
5176
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4887
5177
echo $ECHO_N "(cached) $ECHO_C" >&6
4889
eval "$as_ac_Header=$ac_header_preproc"
5179
eval "$as_ac_Header=\$ac_header_preproc"
4891
5181
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4892
5182
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4932
5221
rm -f conftest.$ac_objext
4933
5222
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4934
(eval $ac_compile) 2>&5
5223
(eval $ac_compile) 2>conftest.er1
5225
grep -v '^ *+' conftest.er1 >conftest.err
5227
cat conftest.err >&5
4936
5228
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4937
5229
(exit $ac_status); } &&
4938
{ ac_try='test -s conftest.$ac_objext'
5230
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5231
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5234
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5235
(exit $ac_status); }; } &&
5236
{ ac_try='test -s conftest.$ac_objext'
4939
5237
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4940
5238
(eval $ac_try) 2>&5
4994
5291
rm -f conftest.$ac_objext
4995
5292
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4996
(eval $ac_compile) 2>&5
5293
(eval $ac_compile) 2>conftest.er1
5295
grep -v '^ *+' conftest.er1 >conftest.err
5297
cat conftest.err >&5
4998
5298
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4999
5299
(exit $ac_status); } &&
5000
{ ac_try='test -s conftest.$ac_objext'
5300
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5301
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5304
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5305
(exit $ac_status); }; } &&
5306
{ ac_try='test -s conftest.$ac_objext'
5001
5307
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5002
5308
(eval $ac_try) 2>&5
5073
5378
rm -f conftest.$ac_objext conftest$ac_exeext
5074
5379
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5075
(eval $ac_link) 2>&5
5380
(eval $ac_link) 2>conftest.er1
5382
grep -v '^ *+' conftest.er1 >conftest.err
5384
cat conftest.err >&5
5077
5385
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5078
5386
(exit $ac_status); } &&
5079
{ ac_try='test -s conftest$ac_exeext'
5387
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5388
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5391
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5392
(exit $ac_status); }; } &&
5393
{ ac_try='test -s conftest$ac_exeext'
5080
5394
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5081
5395
(eval $ac_try) 2>&5
5116
5430
rm -f conftest.$ac_objext conftest$ac_exeext
5117
5431
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5118
(eval $ac_link) 2>&5
5432
(eval $ac_link) 2>conftest.er1
5434
grep -v '^ *+' conftest.er1 >conftest.err
5436
cat conftest.err >&5
5120
5437
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5121
5438
(exit $ac_status); } &&
5122
{ ac_try='test -s conftest$ac_exeext'
5439
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5440
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5443
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5444
(exit $ac_status); }; } &&
5445
{ ac_try='test -s conftest$ac_exeext'
5123
5446
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5124
5447
(eval $ac_try) 2>&5
5291
5614
rm -f conftest.$ac_objext
5292
5615
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5293
(eval $ac_compile) 2>&5
5616
(eval $ac_compile) 2>conftest.er1
5618
grep -v '^ *+' conftest.er1 >conftest.err
5620
cat conftest.err >&5
5295
5621
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5296
5622
(exit $ac_status); } &&
5297
{ ac_try='test -s conftest.$ac_objext'
5623
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5624
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5627
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5628
(exit $ac_status); }; } &&
5629
{ ac_try='test -s conftest.$ac_objext'
5298
5630
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5299
5631
(eval $ac_try) 2>&5
5352
5684
echo "${ECHO_T}$ac_header_preproc" >&6
5354
5686
# So? What about this header?
5355
case $ac_header_compiler:$ac_header_preproc in
5687
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5357
5689
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5358
5690
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;}
5363
## ------------------------------------ ##
5364
## Report this to bug-autoconf@gnu.org. ##
5365
## ------------------------------------ ##
5368
sed "s/^/$as_me: WARNING: /" >&2
5691
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5692
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5693
ac_header_preproc=yes
5371
5696
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5372
5697
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;}
5698
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5699
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5700
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5701
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5702
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5703
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5375
5704
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5376
5705
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5706
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5707
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5379
## ------------------------------------ ##
5380
## Report this to bug-autoconf@gnu.org. ##
5381
## ------------------------------------ ##
5710
## ------------------------------------------ ##
5711
## Report this to the AC_PACKAGE_NAME lists. ##
5712
## ------------------------------------------ ##
5384
5715
sed "s/^/$as_me: WARNING: /" >&2
5389
5720
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5390
5721
echo $ECHO_N "(cached) $ECHO_C" >&6
5392
eval "$as_ac_Header=$ac_header_preproc"
5723
eval "$as_ac_Header=\$ac_header_preproc"
5394
5725
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5395
5726
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5437
5767
rm -f conftest.$ac_objext conftest$ac_exeext
5438
5768
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5439
(eval $ac_link) 2>&5
5769
(eval $ac_link) 2>conftest.er1
5771
grep -v '^ *+' conftest.er1 >conftest.err
5773
cat conftest.err >&5
5441
5774
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5442
5775
(exit $ac_status); } &&
5443
{ ac_try='test -s conftest$ac_exeext'
5776
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5777
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5780
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5781
(exit $ac_status); }; } &&
5782
{ ac_try='test -s conftest$ac_exeext'
5444
5783
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5445
5784
(eval $ac_try) 2>&5
5522
5862
echo "${ECHO_T}$NETSNMP_LIBS" >&6
5526
5865
echo "$as_me:$LINENO: checking for libusb cflags" >&5
5527
5866
echo $ECHO_N "checking for libusb cflags... $ECHO_C" >&6
5528
5867
LIBUSB_CFLAGS=`libusb-config --cflags 2>/dev/null`
5530
5869
if (test "$?" != "0")
5532
echo "$as_me:$LINENO: result: not found" >&5
5871
echo "$as_me:$LINENO: result: not found" >&5
5533
5872
echo "${ECHO_T}not found" >&6
5535
echo "$as_me:$LINENO: result: $LIBUSB_CFLAGS" >&5
5874
echo "$as_me:$LINENO: result: $LIBUSB_CFLAGS" >&5
5536
5875
echo "${ECHO_T}$LIBUSB_CFLAGS" >&6
5876
USB_DRIVER_LIST=newhidups
5877
USBPAGES=newhidups.8
5539
5880
echo "$as_me:$LINENO: checking for libusb libs" >&5
5543
5884
if (test "$?" != "0")
5545
echo "$as_me:$LINENO: result: not found" >&5
5886
echo "$as_me:$LINENO: result: not found" >&5
5546
5887
echo "${ECHO_T}not found" >&6
5548
echo "$as_me:$LINENO: result: $LIBUSB_LIBS" >&5
5889
echo "$as_me:$LINENO: result: $LIBUSB_LIBS" >&5
5549
5890
echo "${ECHO_T}$LIBUSB_LIBS" >&6
5893
echo "$as_me:$LINENO: checking for usb_detach_kernel_driver_np in -lusb" >&5
5894
echo $ECHO_N "checking for usb_detach_kernel_driver_np in -lusb... $ECHO_C" >&6
5895
if test "${ac_cv_lib_usb_usb_detach_kernel_driver_np+set}" = set; then
5896
echo $ECHO_N "(cached) $ECHO_C" >&6
5898
ac_check_lib_save_LIBS=$LIBS
5900
cat >conftest.$ac_ext <<_ACEOF
5903
cat confdefs.h >>conftest.$ac_ext
5904
cat >>conftest.$ac_ext <<_ACEOF
5905
/* end confdefs.h. */
5907
/* Override any gcc2 internal prototype to avoid an error. */
5911
/* We use char because int might match the return type of a gcc2
5912
builtin and then its argument prototype would still apply. */
5913
char usb_detach_kernel_driver_np ();
5917
usb_detach_kernel_driver_np ();
5922
rm -f conftest.$ac_objext conftest$ac_exeext
5923
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5924
(eval $ac_link) 2>conftest.er1
5926
grep -v '^ *+' conftest.er1 >conftest.err
5928
cat conftest.err >&5
5929
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5930
(exit $ac_status); } &&
5931
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5932
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5935
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936
(exit $ac_status); }; } &&
5937
{ ac_try='test -s conftest$ac_exeext'
5938
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5941
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5942
(exit $ac_status); }; }; then
5943
ac_cv_lib_usb_usb_detach_kernel_driver_np=yes
5945
echo "$as_me: failed program was:" >&5
5946
sed 's/^/| /' conftest.$ac_ext >&5
5948
ac_cv_lib_usb_usb_detach_kernel_driver_np=no
5950
rm -f conftest.err conftest.$ac_objext \
5951
conftest$ac_exeext conftest.$ac_ext
5952
LIBS=$ac_check_lib_save_LIBS
5954
echo "$as_me:$LINENO: result: $ac_cv_lib_usb_usb_detach_kernel_driver_np" >&5
5955
echo "${ECHO_T}$ac_cv_lib_usb_usb_detach_kernel_driver_np" >&6
5956
if test $ac_cv_lib_usb_usb_detach_kernel_driver_np = yes; then
5959
cat >>confdefs.h <<\_ACEOF
5960
#define LIBUSB_HAS_DETACH_KRNL_DRV 1
5552
5967
echo "$as_me:$LINENO: checking for Linux hiddev.h" >&5
5553
5968
echo $ECHO_N "checking for Linux hiddev.h... $ECHO_C" >&6
5557
5972
withval="$with_linux_hiddev"
5558
5973
case "$withval" in
5560
if (test -f /usr/src/linux/include/linux/hiddev.h)
5975
if (test -f /usr/include/linux/hiddev.h)
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
5977
echo "$as_me:$LINENO: result: using default: /usr/include/linux/hiddev.h" >&5
5978
echo "${ECHO_T}using default: /usr/include/linux/hiddev.h" >&6
5565
5980
cat >>confdefs.h <<_ACEOF
5566
#define LINUX_HIDDEV "/usr/src/linux/include/linux/hiddev.h"
5981
#define LINUX_HIDDEV "/usr/include/linux/hiddev.h"
5569
LINUX_HIDDEV=/usr/src/linux/include/linux/hiddev.h
5984
LINUX_HIDDEV=/usr/include/linux/hiddev.h
5985
USB_DRIVER_LIST="$USB_DRIVER_LIST hidups energizerups"
5986
USBPAGES="$USBPAGES hidups.8 energizerups.8"
5586
6003
LINUX_HIDDEV=$withval
6004
USB_DRIVER_LIST="$USB_DRIVER_LIST hidups energizerups"
6005
USBPAGES="$USBPAGES hidups.8 energizerups.8"
5588
echo "$as_me:$LINENO: result: hiddev.h not found in $withval" >&5
5589
echo "${ECHO_T}hiddev.h not found in $withval" >&6
6007
echo "$as_me:$LINENO: result: $withval not found" >&5
6008
echo "${ECHO_T}$withval not found" >&6
5595
if (test -f /usr/src/linux/include/linux/hiddev.h)
6014
if (test -f /usr/include/linux/hiddev.h)
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
6016
echo "$as_me:$LINENO: result: using default: /usr/include/linux/hiddev.h" >&5
6017
echo "${ECHO_T}using default: /usr/include/linux/hiddev.h" >&6
5600
6019
cat >>confdefs.h <<_ACEOF
5601
#define LINUX_HIDDEV "/usr/src/linux/include/linux/hiddev.h"
6020
#define LINUX_HIDDEV "/usr/include/linux/hiddev.h"
5604
LINUX_HIDDEV=/usr/src/linux/include/linux/hiddev.h
6023
LINUX_HIDDEV=/usr/include/linux/hiddev.h
6024
USB_DRIVER_LIST="$USB_DRIVER_LIST hidups energizerups"
6025
USBPAGES="$USBPAGES hidups.8 energizerups.8"
5606
6027
echo "$as_me:$LINENO: result: no" >&5
5607
6028
echo "${ECHO_T}no" >&6
6403
echo "$as_me:$LINENO: checking whether to enable pkg-config support" >&5
6404
echo $ECHO_N "checking whether to enable pkg-config support... $ECHO_C" >&6
6405
# Check whether --enable-pkg-config or --disable-pkg-config was given.
6406
if test "${enable_pkg_config+set}" = set; then
6407
enableval="$enable_pkg_config"
6411
if (test -d /usr/lib/pkgconfig)
6413
echo "$as_me:$LINENO: result: yes" >&5
6414
echo "${ECHO_T}yes" >&6
6415
PKG_CFG_DIR="/usr/lib/pkgconfig"
6418
echo "$as_me:$LINENO: result: no" >&5
6419
echo "${ECHO_T}no" >&6
6425
echo "$as_me:$LINENO: result: no" >&5
6426
echo "${ECHO_T}no" >&6
6431
echo "$as_me:$LINENO: result: yes" >&5
6432
echo "${ECHO_T}yes" >&6
6433
PKG_CFG_DIR=$withval
6440
if (test -d /usr/lib/pkgconfig)
6442
echo "$as_me:$LINENO: result: yes" >&5
6443
echo "${ECHO_T}yes" >&6
6444
PKG_CFG_DIR="/usr/lib/pkgconfig"
6447
echo "$as_me:$LINENO: result: no" >&5
6448
echo "${ECHO_T}no" >&6
5981
6456
# 'long long' check - this gets used down in snprintf.o
5983
6458
echo "$as_me:$LINENO: checking for long long" >&5
6102
6581
# `set' does not quote correctly, so add quotes (double-quote
6103
6582
# substitution turns \\\\ into \\, and sed turns \\ into \).
6106
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6585
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6109
6588
# `set' quotes correctly as required by POSIX, so do not add quotes.
6111
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6590
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6155
6634
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6156
6635
# 1. Remove the extension, and $U if already installed.
6157
6636
ac_i=`echo "$ac_i" |
6158
sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6637
sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6160
6639
ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6161
6640
ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6399
6879
if mkdir -p . 2>/dev/null; then
6882
test -d ./-p && rmdir ./-p
6402
6883
as_mkdir_p=false
6405
6886
as_executable_p="test -f"
6407
6888
# 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"
6889
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6410
6891
# Sed expression to map a string onto a valid variable name.
6411
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
6892
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6479
6960
-d, --debug don't remove temporary files
6480
6961
--recheck update $as_me by reconfiguring in the same conditions
6481
6962
--file=FILE[:TEMPLATE]
6482
instantiate the configuration file FILE
6963
instantiate the configuration file FILE
6483
6964
--header=FILE[:TEMPLATE]
6484
instantiate the configuration header FILE
6965
instantiate the configuration header FILE
6486
6967
Configuration files:
6495
6976
cat >>$CONFIG_STATUS <<_ACEOF
6496
6977
ac_cs_version="\\
6498
configured by $0, generated by GNU Autoconf 2.57,
6979
configured by $0, generated by GNU Autoconf 2.59,
6499
6980
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6501
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6502
Free Software Foundation, Inc.
6982
Copyright (C) 2003 Free Software Foundation, Inc.
6503
6983
This config.status script is free software; the Free Software Foundation
6504
6984
gives unlimited permission to copy, distribute and modify it."
6606
7086
"Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6607
7087
"common/Makefile" ) CONFIG_FILES="$CONFIG_FILES common/Makefile" ;;
6608
7088
"man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
7089
"lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
7090
"lib/libupsclient-config" ) CONFIG_FILES="$CONFIG_FILES lib/libupsclient-config" ;;
7091
"lib/libupsclient.pc" ) CONFIG_FILES="$CONFIG_FILES lib/libupsclient.pc" ;;
6609
7092
"scripts/hotplug/libhidups" ) CONFIG_FILES="$CONFIG_FILES scripts/hotplug/libhidups" ;;
6610
7093
"include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
6611
7094
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6719
7202
s,@AR@,$AR,;t t
6720
7203
s,@RANLIB@,$RANLIB,;t t
6721
7204
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
7205
s,@NUT_VERSION@,$NUT_VERSION,;t t
7206
s,@UPSCLI_OBJ@,$UPSCLI_OBJ,;t t
7207
s,@UPSCLI_LIBOBJ@,$UPSCLI_LIBOBJ,;t t
6724
7208
s,@SSL_CFLAGS@,$SSL_CFLAGS,;t t
6725
7209
s,@SSL_LDFLAGS@,$SSL_LDFLAGS,;t t
6726
7210
s,@CGI_BUILD_TARGET@,$CGI_BUILD_TARGET,;t t
6731
7215
s,@LIBUSB_CFLAGS@,$LIBUSB_CFLAGS,;t t
6732
7216
s,@LIBUSB_LIBS@,$LIBUSB_LIBS,;t t
6733
7217
s,@DRIVER_BUILD_LIST@,$DRIVER_BUILD_LIST,;t t
7218
s,@USB_DRIVER_LIST@,$USB_DRIVER_LIST,;t t
7219
s,@USBPAGES@,$USBPAGES,;t t
6734
7220
s,@DRIVER_INSTALL_TARGET@,$DRIVER_INSTALL_TARGET,;t t
6735
7221
s,@STRLCPY@,$STRLCPY,;t t
6736
7222
s,@LIBOBJ@,$LIBOBJ,;t t
6743
7229
s,@RUN_AS_USER@,$RUN_AS_USER,;t t
6744
7230
s,@LINUX_HIDDEV@,$LINUX_HIDDEV,;t t
6745
7231
s,@WORDS_BIGENDIAN@,$WORDS_BIGENDIAN,;t t
7232
s,@PKG_CFG_DIR@,$PKG_CFG_DIR,;t t
7233
s,@USE_PKG_CFG@,$USE_PKG_CFG,;t t
6746
7234
s,@LIBOBJS@,$LIBOBJS,;t t
6747
7235
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
6775
7263
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
6776
7264
if test -z "$ac_sed_cmds"; then
6777
ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7265
ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
6779
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7267
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6781
7269
ac_sed_frag=`expr $ac_sed_frag + 1`
6794
7282
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6795
7283
case $ac_file in
6796
7284
- | *:- | *:-:* ) # input from stdin
6798
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6799
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7286
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7287
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6800
7288
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6801
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7289
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6802
7290
* ) ac_file_in=$ac_file.in ;;
6805
7293
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6806
7294
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6807
7295
$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 ||
7296
X"$ac_file" : 'X\(//\)[^/]' \| \
7297
X"$ac_file" : 'X\(//\)$' \| \
7298
X"$ac_file" : 'X\(/\)' \| \
7299
. : '\(.\)' 2>/dev/null ||
6812
7300
echo X"$ac_file" |
6813
7301
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6814
7302
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
6824
7312
as_dirs="$as_dir $as_dirs"
6825
7313
as_dir=`(dirname "$as_dir") 2>/dev/null ||
6826
7314
$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 ||
7315
X"$as_dir" : 'X\(//\)[^/]' \| \
7316
X"$as_dir" : 'X\(//\)$' \| \
7317
X"$as_dir" : 'X\(/\)' \| \
7318
. : '\(.\)' 2>/dev/null ||
6831
7319
echo X"$as_dir" |
6832
7320
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6833
7321
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
6865
7353
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6866
7354
ac_top_srcdir=$ac_top_builddir$srcdir ;;
6868
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
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`
7357
# Do not use `cd foo && pwd` to compute absolute paths, because
7358
# the directories may not exist.
7360
.) ac_abs_builddir="$ac_dir";;
7363
.) ac_abs_builddir=`pwd`;;
7364
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7365
*) ac_abs_builddir=`pwd`/"$ac_dir";;
7368
case $ac_abs_builddir in
7369
.) ac_abs_top_builddir=${ac_top_builddir}.;;
7371
case ${ac_top_builddir}. in
7372
.) ac_abs_top_builddir=$ac_abs_builddir;;
7373
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7374
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7377
case $ac_abs_builddir in
7378
.) ac_abs_srcdir=$ac_srcdir;;
7381
.) ac_abs_srcdir=$ac_abs_builddir;;
7382
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7383
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7386
case $ac_abs_builddir in
7387
.) ac_abs_top_srcdir=$ac_top_srcdir;;
7389
case $ac_top_srcdir in
7390
.) ac_abs_top_srcdir=$ac_abs_builddir;;
7391
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7392
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
6876
7397
case $INSTALL in
6878
7399
*) ac_INSTALL=$ac_top_builddir$INSTALL ;;
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;}
6886
7402
# Let's still pretend it is `configure' which instantiates (i.e., don't
6887
7403
# use $as_me), people would be surprised to read:
6888
7404
# /* config.h. Generated by config.status. */
6892
7408
configure_input="$ac_file. "
6894
7410
configure_input=$configure_input"Generated from `echo $ac_file_in |
6895
sed 's,.*/,,'` by configure."
7411
sed 's,.*/,,'` by configure."
6897
7413
# First look for the input files in the build tree, otherwise in the
6902
7418
-) echo $tmp/stdin ;;
6904
# Absolute (can't be DOS-style, as IFS=:)
6905
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7420
# Absolute (can't be DOS-style, as IFS=:)
7421
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6906
7422
echo "$as_me: error: cannot find input file: $f" >&2;}
6907
7423
{ (exit 1); exit 1; }; }
6910
if test -f "$f"; then
6913
elif test -f "$srcdir/$f"; then
6918
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7426
if test -f "$f"; then
7429
elif test -f "$srcdir/$f"; then
7434
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6919
7435
echo "$as_me: error: cannot find input file: $f" >&2;}
6920
7436
{ (exit 1); exit 1; }; }
6923
7439
done` || { (exit 1); exit 1; }
7441
if test x"$ac_file" != x-; then
7442
{ echo "$as_me:$LINENO: creating $ac_file" >&5
7443
echo "$as_me: creating $ac_file" >&6;}
6925
7447
cat >>$CONFIG_STATUS <<_ACEOF
6960
7482
# NAME is the cpp macro being defined and VALUE is the value it is being given.
6962
7484
# ac_d sets the value in "#define NAME VALUE" lines.
6963
ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6964
ac_dB='[ ].*$,\1#\2'
7485
ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7486
ac_dB='[ ].*$,\1#\2'
6967
7489
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6968
ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7490
ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6969
7491
ac_uB='$,\1#\2define\3'
6974
7496
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6975
7497
case $ac_file in
6976
7498
- | *:- | *:-:* ) # input from stdin
6978
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6979
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7500
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7501
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6980
7502
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6981
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7503
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6982
7504
* ) ac_file_in=$ac_file.in ;;
6993
7515
-) echo $tmp/stdin ;;
6995
# Absolute (can't be DOS-style, as IFS=:)
6996
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7517
# Absolute (can't be DOS-style, as IFS=:)
7518
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6997
7519
echo "$as_me: error: cannot find input file: $f" >&2;}
6998
7520
{ (exit 1); exit 1; }; }
7521
# Do quote $f, to prevent DOS paths from being IFS'd.
7001
if test -f "$f"; then
7004
elif test -f "$srcdir/$f"; then
7009
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7524
if test -f "$f"; then
7527
elif test -f "$srcdir/$f"; then
7532
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7010
7533
echo "$as_me: error: cannot find input file: $f" >&2;}
7011
7534
{ (exit 1); exit 1; }; }
7014
7537
done` || { (exit 1); exit 1; }
7015
7538
# Remove the trailing spaces.
7016
sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
7539
sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
7039
s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7562
s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7041
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7564
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7044
7567
# If some macros were called several times there might be several times
7052
7575
# example, in the case of _POSIX_SOURCE, which is predefined and required
7053
7576
# on some systems where configure will not decide to define it.
7054
7577
cat >>conftest.undefs <<\_ACEOF
7055
s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7578
s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7058
7581
# Break up conftest.defines because some shells have a limit on the size
7059
7582
# of here documents, and old seds have small limits too (100 cmds).
7060
7583
echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7061
echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7584
echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7062
7585
echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7063
7586
echo ' :' >>$CONFIG_STATUS
7064
7587
rm -f conftest.tail
7067
7590
# Write a limited-size here document to $tmp/defines.sed.
7068
7591
echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7069
7592
# Speed up: don't consider the non `#define' lines.
7070
echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
7593
echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
7071
7594
# Work around the forget-to-reset-the-flag bug.
7072
7595
echo 't clr' >>$CONFIG_STATUS
7073
7596
echo ': clr' >>$CONFIG_STATUS
7094
7617
# Write a limited-size here document to $tmp/undefs.sed.
7095
7618
echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7096
7619
# Speed up: don't consider the non `#undef'
7097
echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
7620
echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
7098
7621
# Work around the forget-to-reset-the-flag bug.
7099
7622
echo 't clr' >>$CONFIG_STATUS
7100
7623
echo ': clr' >>$CONFIG_STATUS
7129
7652
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7130
7653
$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 ||
7654
X"$ac_file" : 'X\(//\)[^/]' \| \
7655
X"$ac_file" : 'X\(//\)$' \| \
7656
X"$ac_file" : 'X\(/\)' \| \
7657
. : '\(.\)' 2>/dev/null ||
7135
7658
echo X"$ac_file" |
7136
7659
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7137
7660
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
7147
7670
as_dirs="$as_dir $as_dirs"
7148
7671
as_dir=`(dirname "$as_dir") 2>/dev/null ||
7149
7672
$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 ||
7673
X"$as_dir" : 'X\(//\)[^/]' \| \
7674
X"$as_dir" : 'X\(//\)$' \| \
7675
X"$as_dir" : 'X\(/\)' \| \
7676
. : '\(.\)' 2>/dev/null ||
7154
7677
echo X"$as_dir" |
7155
7678
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7156
7679
/^X\(\/\/\)[^/].*/{ s//\1/; q; }