support for .in manpages (forgot to run autoconf!)

This commit is contained in:
paul 1998-12-02 12:28:03 +00:00
parent ad277024d2
commit 266c3bfd9c
1 changed files with 124 additions and 106 deletions

230
isdnlog/configure vendored
View File

@ -543,6 +543,7 @@ fi
I4LVERSION=${I4LVERSION:-"?.?"}
I4LCONFDIR=${CONFIG_I4LCONFDIR:-"/etc/isdn"}
OLDCONFDIR=${CONFIG_ISDNLOG_OLDI4LCONFDIR:-"/etc/isdnlog"}
OLDCONFFILE=${CONFIG_ISDNLOG_OLDI4LCONFFILE:-"isdnlog.conf"}
@ -592,6 +593,11 @@ CONFIG_KERNELDIR=`eval echo $CONFIG_KERNELDIR`
bindir=`eval echo $bindir`
sbindir=`eval echo $sbindir`
mandir=`eval echo $mandir`
MANDATE_CALLERID=`grep CHECKIN isdnlog/callerid.conf.5.in | awk '{print $4}'`
MANDATE_ISDNLOG5=`grep CHECKIN isdnlog/isdnlog.5x.in | awk '{print $4}'`
MANDATE_ISDNLOG8=`grep CHECKIN isdnlog/isdnlog.8x.in | awk '{print $4}'`
MANDATE_ISDNLOG_USERS=`grep CHECKIN isdnlog/isdnlog.users.5x.in | awk '{print $4}'`
MANDATE_ISDNREP=`grep CHECKIN isdnrep/isdnrep.1x.in | awk '{print $4}'`
if test "$CONFIG_LIB_AREACODE" = "y" ; then
ALIB=area
@ -669,7 +675,7 @@ fi
# Extract the first word of "gcc", so it can be a program name with args.
set dummy gcc; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:673: checking for $ac_word" >&5
echo "configure:679: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@ -698,7 +704,7 @@ if test -z "$CC"; then
# Extract the first word of "cc", so it can be a program name with args.
set dummy cc; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:702: checking for $ac_word" >&5
echo "configure:708: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@ -746,7 +752,7 @@ fi
fi
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
echo "configure:750: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
echo "configure:756: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
ac_ext=c
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
@ -756,11 +762,11 @@ ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS
cross_compiling=$ac_cv_prog_cc_cross
cat > conftest.$ac_ext <<EOF
#line 760 "configure"
#line 766 "configure"
#include "confdefs.h"
main(){return(0);}
EOF
if { (eval echo configure:764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
if { (eval echo configure:770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
ac_cv_prog_cc_works=yes
# If we can't run a trivial program, we are probably using a cross compiler.
if (./conftest; exit) 2>/dev/null; then
@ -780,12 +786,12 @@ if test $ac_cv_prog_cc_works = no; then
{ echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
fi
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
echo "configure:784: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
echo "configure:790: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
cross_compiling=$ac_cv_prog_cc_cross
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
echo "configure:789: checking whether we are using GNU C" >&5
echo "configure:795: checking whether we are using GNU C" >&5
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@ -794,7 +800,7 @@ else
yes;
#endif
EOF
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:798: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:804: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
ac_cv_prog_gcc=yes
else
ac_cv_prog_gcc=no
@ -809,7 +815,7 @@ if test $ac_cv_prog_gcc = yes; then
ac_save_CFLAGS="$CFLAGS"
CFLAGS=
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
echo "configure:813: checking whether ${CC-cc} accepts -g" >&5
echo "configure:819: checking whether ${CC-cc} accepts -g" >&5
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@ -866,7 +872,7 @@ ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
# ./install, which can be erroneously created by make from ./install.sh.
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
echo "configure:870: checking for a BSD compatible install" >&5
echo "configure:876: checking for a BSD compatible install" >&5
if test -z "$INSTALL"; then
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@ -916,7 +922,7 @@ test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
echo "configure:920: checking whether ${MAKE-make} sets \${MAKE}" >&5
echo "configure:926: checking whether ${MAKE-make} sets \${MAKE}" >&5
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@ -944,7 +950,7 @@ fi
echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
echo "configure:948: checking for dbm_open in -ldbm" >&5
echo "configure:954: checking for dbm_open in -ldbm" >&5
ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@ -952,7 +958,7 @@ else
ac_save_LIBS="$LIBS"
LIBS="-ldbm $LIBS"
cat > conftest.$ac_ext <<EOF
#line 956 "configure"
#line 962 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
@ -963,7 +969,7 @@ int main() {
dbm_open()
; return 0; }
EOF
if { (eval echo configure:967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
if { (eval echo configure:973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
@ -985,7 +991,7 @@ EOF
else
echo "$ac_t""no" 1>&6
echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
echo "configure:989: checking for gdbm_open in -lgdbm" >&5
echo "configure:995: checking for gdbm_open in -lgdbm" >&5
ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@ -993,7 +999,7 @@ else
ac_save_LIBS="$LIBS"
LIBS="-lgdbm $LIBS"
cat > conftest.$ac_ext <<EOF
#line 997 "configure"
#line 1003 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
@ -1004,7 +1010,7 @@ int main() {
gdbm_open()
; return 0; }
EOF
if { (eval echo configure:1008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
if { (eval echo configure:1014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
@ -1026,7 +1032,7 @@ EOF
else
echo "$ac_t""no" 1>&6
echo $ac_n "checking for dbm_open in -ldb""... $ac_c" 1>&6
echo "configure:1030: checking for dbm_open in -ldb" >&5
echo "configure:1036: checking for dbm_open in -ldb" >&5
ac_lib_var=`echo db'_'dbm_open | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@ -1034,7 +1040,7 @@ else
ac_save_LIBS="$LIBS"
LIBS="-ldb $LIBS"
cat > conftest.$ac_ext <<EOF
#line 1038 "configure"
#line 1044 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
@ -1045,7 +1051,7 @@ int main() {
dbm_open()
; return 0; }
EOF
if { (eval echo configure:1049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
if { (eval echo configure:1055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
@ -1073,7 +1079,7 @@ fi
fi
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
echo "configure:1077: checking how to run the C preprocessor" >&5
echo "configure:1083: checking how to run the C preprocessor" >&5
# On Suns, sometimes $CPP names a directory.
if test -n "$CPP" && test -d "$CPP"; then
CPP=
@ -1088,13 +1094,13 @@ else
# On the NeXT, cc -E runs the code through the compiler's parser,
# not just through cpp.
cat > conftest.$ac_ext <<EOF
#line 1092 "configure"
#line 1098 "configure"
#include "confdefs.h"
#include <assert.h>
Syntax Error
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:1098: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
{ (eval echo configure:1104: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then
:
@ -1105,13 +1111,13 @@ else
rm -rf conftest*
CPP="${CC-cc} -E -traditional-cpp"
cat > conftest.$ac_ext <<EOF
#line 1109 "configure"
#line 1115 "configure"
#include "confdefs.h"
#include <assert.h>
Syntax Error
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:1115: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
{ (eval echo configure:1121: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then
:
@ -1147,10 +1153,10 @@ fi
if test "$tst_postgresdir" != "" || test "$CONFIG_ISDNLOG_POSTGRES" = "y" ; then
echo $ac_n "checking for postgres in ${tst_postgresdir}""... $ac_c" 1>&6
echo "configure:1151: checking for postgres in ${tst_postgresdir}" >&5
echo "configure:1157: checking for postgres in ${tst_postgresdir}" >&5
if test "${tst_postgresdir}" != "" ; then
cat > conftest.$ac_ext <<EOF
#line 1154 "configure"
#line 1160 "configure"
#include "confdefs.h"
#include <${tst_postgresdir}/include/libpq-fe.h>
EOF
@ -1165,9 +1171,9 @@ rm -f conftest*
if test "$pqdir" = "no" ; then
echo "$ac_t"""$pqdir"" 1>&6
echo $ac_n "checking for postgres in /lib/postgres95""... $ac_c" 1>&6
echo "configure:1169: checking for postgres in /lib/postgres95" >&5
echo "configure:1175: checking for postgres in /lib/postgres95" >&5
cat > conftest.$ac_ext <<EOF
#line 1171 "configure"
#line 1177 "configure"
#include "confdefs.h"
#include </lib/postgre95/include/libpq-fe.h>
EOF
@ -1182,9 +1188,9 @@ rm -f conftest*
if test "$pqdir" = "no" ; then
echo "$ac_t"""$pqdir"" 1>&6
echo $ac_n "checking for postgres in /usr/lib/postgres95""... $ac_c" 1>&6
echo "configure:1186: checking for postgres in /usr/lib/postgres95" >&5
echo "configure:1192: checking for postgres in /usr/lib/postgres95" >&5
cat > conftest.$ac_ext <<EOF
#line 1188 "configure"
#line 1194 "configure"
#include "confdefs.h"
#include </usr/lib/postgre95/include/libpq-fe.h>
EOF
@ -1199,9 +1205,9 @@ rm -f conftest*
if test "$pqdir" = "no" ; then
echo "$ac_t"""$pqdir"" 1>&6
echo $ac_n "checking for postgres in /usr/local/postgres95""... $ac_c" 1>&6
echo "configure:1203: checking for postgres in /usr/local/postgres95" >&5
echo "configure:1209: checking for postgres in /usr/local/postgres95" >&5
cat > conftest.$ac_ext <<EOF
#line 1205 "configure"
#line 1211 "configure"
#include "confdefs.h"
#include </usr/lib/local/postgre95/include/libpq-fe.h>
EOF
@ -1216,9 +1222,9 @@ rm -f conftest*
if test "$pqdir" = "no" ; then
echo "$ac_t"""$pqdir"" 1>&6
echo $ac_n "checking for postgres in /usr/local/lib/postgres95""... $ac_c" 1>&6
echo "configure:1220: checking for postgres in /usr/local/lib/postgres95" >&5
echo "configure:1226: checking for postgres in /usr/local/lib/postgres95" >&5
cat > conftest.$ac_ext <<EOF
#line 1222 "configure"
#line 1228 "configure"
#include "confdefs.h"
#include </usr/lib/local/lib/postgre95/include/libpq-fe.h>
EOF
@ -1264,10 +1270,10 @@ fi
if test "$tst_mysqldir" != "" || test "$CONFIG_ISDNLOG_MYSQLDB" = "y" ; then
echo $ac_n "checking for mysql in ${tst_mysqldir}""... $ac_c" 1>&6
echo "configure:1268: checking for mysql in ${tst_mysqldir}" >&5
echo "configure:1274: checking for mysql in ${tst_mysqldir}" >&5
if test "${tst_mysqldir}" != "" ; then
cat > conftest.$ac_ext <<EOF
#line 1271 "configure"
#line 1277 "configure"
#include "confdefs.h"
#include <${tst_mysqldir}/include/mysql.h>
EOF
@ -1282,9 +1288,9 @@ rm -f conftest*
if test "$mydir" = "no" ; then
echo "$ac_t"""$mydir"" 1>&6
echo $ac_n "checking for mysql in /lib/mysql""... $ac_c" 1>&6
echo "configure:1286: checking for mysql in /lib/mysql" >&5
echo "configure:1292: checking for mysql in /lib/mysql" >&5
cat > conftest.$ac_ext <<EOF
#line 1288 "configure"
#line 1294 "configure"
#include "confdefs.h"
#include </lib/mysql/include/mysql.h>
EOF
@ -1299,9 +1305,9 @@ rm -f conftest*
if test "$mydir" = "no" ; then
echo "$ac_t"""$mydir"" 1>&6
echo $ac_n "checking for mysql in /usr/lib/mysql""... $ac_c" 1>&6
echo "configure:1303: checking for mysql in /usr/lib/mysql" >&5
echo "configure:1309: checking for mysql in /usr/lib/mysql" >&5
cat > conftest.$ac_ext <<EOF
#line 1305 "configure"
#line 1311 "configure"
#include "confdefs.h"
#include </usr/lib/mysql/include/mysql.h>
EOF
@ -1316,9 +1322,9 @@ rm -f conftest*
if test "$mydir" = "no" ; then
echo "$ac_t"""$mydir"" 1>&6
echo $ac_n "checking for mysql in /usr/local/mysql""... $ac_c" 1>&6
echo "configure:1320: checking for mysql in /usr/local/mysql" >&5
echo "configure:1326: checking for mysql in /usr/local/mysql" >&5
cat > conftest.$ac_ext <<EOF
#line 1322 "configure"
#line 1328 "configure"
#include "confdefs.h"
#include </usr/local/postgre95/include/mysql.h>
EOF
@ -1333,9 +1339,9 @@ rm -f conftest*
if test "$mydir" = "no" ; then
echo "$ac_t"""$mydir"" 1>&6
echo $ac_n "checking for mysql in /usr/local/lib/mysql""... $ac_c" 1>&6
echo "configure:1337: checking for mysql in /usr/local/lib/mysql" >&5
echo "configure:1343: checking for mysql in /usr/local/lib/mysql" >&5
cat > conftest.$ac_ext <<EOF
#line 1339 "configure"
#line 1345 "configure"
#include "confdefs.h"
#include </usr/local/lib/mysql/include/mysql.h>
EOF
@ -1384,15 +1390,15 @@ fi
if test "$DOTEST" = "y" || test "$CONFIG_KERNELDIR" != "" ; then
echo $ac_n "checking for linux kernel source in ${tst_kerneldir}""... $ac_c" 1>&6
echo "configure:1388: checking for linux kernel source in ${tst_kerneldir}" >&5
echo "configure:1394: checking for linux kernel source in ${tst_kerneldir}" >&5
CPPFLAGS="-nostdinc -I${tst_kerneldir}/include -I${tst_kerneldir}/drivers/isdn"
cat > conftest.$ac_ext <<EOF
#line 1391 "configure"
#line 1397 "configure"
#include "confdefs.h"
#include <isdn_common.h>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:1396: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
{ (eval echo configure:1402: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then
rm -rf conftest*
@ -1408,15 +1414,15 @@ rm -f conftest*
fi
if test "$lxdir" = "no" ; then
echo $ac_n "checking for linux kernel source in /usr/src/linux""... $ac_c" 1>&6
echo "configure:1412: checking for linux kernel source in /usr/src/linux" >&5
echo "configure:1418: checking for linux kernel source in /usr/src/linux" >&5
CPPFLAGS="-nostdinc -I/usr/src/linux/include -I/usr/src/linux/drivers/isdn"
cat > conftest.$ac_ext <<EOF
#line 1415 "configure"
#line 1421 "configure"
#include "confdefs.h"
#include <isdn_common.h>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:1420: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
{ (eval echo configure:1426: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then
rm -rf conftest*
@ -1431,15 +1437,15 @@ rm -f conftest*
if test "$lxdir" = "no" ; then
echo "$ac_t"""$lxdir"" 1>&6
echo $ac_n "checking for linux kernel source in /usr/local/src/linux""... $ac_c" 1>&6
echo "configure:1435: checking for linux kernel source in /usr/local/src/linux" >&5
echo "configure:1441: checking for linux kernel source in /usr/local/src/linux" >&5
CPPFLAGS="-nostdinc -I/usr/local/src/linux/include -I/usr/local/src/linux/drivers/isdn"
cat > conftest.$ac_ext <<EOF
#line 1438 "configure"
#line 1444 "configure"
#include "confdefs.h"
#include <isdn_common.h>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:1443: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
{ (eval echo configure:1449: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then
rm -rf conftest*
@ -1467,12 +1473,12 @@ EOF
echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
echo "configure:1471: checking for ANSI C header files" >&5
echo "configure:1477: checking for ANSI C header files" >&5
if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 1476 "configure"
#line 1482 "configure"
#include "confdefs.h"
#include <stdlib.h>
#include <stdarg.h>
@ -1480,7 +1486,7 @@ else
#include <float.h>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:1484: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
{ (eval echo configure:1490: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then
rm -rf conftest*
@ -1497,7 +1503,7 @@ rm -f conftest*
if test $ac_cv_header_stdc = yes; then
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cat > conftest.$ac_ext <<EOF
#line 1501 "configure"
#line 1507 "configure"
#include "confdefs.h"
#include <string.h>
EOF
@ -1515,7 +1521,7 @@ fi
if test $ac_cv_header_stdc = yes; then
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cat > conftest.$ac_ext <<EOF
#line 1519 "configure"
#line 1525 "configure"
#include "confdefs.h"
#include <stdlib.h>
EOF
@ -1536,7 +1542,7 @@ if test "$cross_compiling" = yes; then
:
else
cat > conftest.$ac_ext <<EOF
#line 1540 "configure"
#line 1546 "configure"
#include "confdefs.h"
#include <ctype.h>
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
@ -1547,7 +1553,7 @@ if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
exit (0); }
EOF
if { (eval echo configure:1551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
if { (eval echo configure:1557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
then
:
else
@ -1571,12 +1577,12 @@ EOF
fi
echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
echo "configure:1575: checking for sys/wait.h that is POSIX.1 compatible" >&5
echo "configure:1581: checking for sys/wait.h that is POSIX.1 compatible" >&5
if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 1580 "configure"
#line 1586 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/wait.h>
@ -1592,7 +1598,7 @@ wait (&s);
s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
; return 0; }
EOF
if { (eval echo configure:1596: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
if { (eval echo configure:1602: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
ac_cv_header_sys_wait_h=yes
else
@ -1616,17 +1622,17 @@ for ac_hdr in fcntl.h limits.h sys/ioctl.h sys/time.h syslog.h unistd.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:1620: checking for $ac_hdr" >&5
echo "configure:1626: checking for $ac_hdr" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 1625 "configure"
#line 1631 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:1630: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
{ (eval echo configure:1636: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then
rm -rf conftest*
@ -1703,12 +1709,12 @@ fi
echo $ac_n "checking for working const""... $ac_c" 1>&6
echo "configure:1707: checking for working const" >&5
echo "configure:1713: checking for working const" >&5
if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 1712 "configure"
#line 1718 "configure"
#include "confdefs.h"
int main() {
@ -1757,7 +1763,7 @@ ccp = (char const *const *) p;
; return 0; }
EOF
if { (eval echo configure:1761: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
if { (eval echo configure:1767: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
ac_cv_c_const=yes
else
@ -1778,12 +1784,12 @@ EOF
fi
echo $ac_n "checking for pid_t""... $ac_c" 1>&6
echo "configure:1782: checking for pid_t" >&5
echo "configure:1788: checking for pid_t" >&5
if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 1787 "configure"
#line 1793 "configure"
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
@ -1811,12 +1817,12 @@ EOF
fi
echo $ac_n "checking for size_t""... $ac_c" 1>&6
echo "configure:1815: checking for size_t" >&5
echo "configure:1821: checking for size_t" >&5
if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 1820 "configure"
#line 1826 "configure"
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
@ -1844,12 +1850,12 @@ EOF
fi
echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
echo "configure:1848: checking whether time.h and sys/time.h may both be included" >&5
echo "configure:1854: checking whether time.h and sys/time.h may both be included" >&5
if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 1853 "configure"
#line 1859 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/time.h>
@ -1858,7 +1864,7 @@ int main() {
struct tm *tp;
; return 0; }
EOF
if { (eval echo configure:1862: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
if { (eval echo configure:1868: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
ac_cv_header_time=yes
else
@ -1879,12 +1885,12 @@ EOF
fi
echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
echo "configure:1883: checking whether struct tm is in sys/time.h or time.h" >&5
echo "configure:1889: checking whether struct tm is in sys/time.h or time.h" >&5
if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 1888 "configure"
#line 1894 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <time.h>
@ -1892,7 +1898,7 @@ int main() {
struct tm *tp; tp->tm_sec;
; return 0; }
EOF
if { (eval echo configure:1896: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
if { (eval echo configure:1902: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
ac_cv_struct_tm=time.h
else
@ -1927,15 +1933,15 @@ fi
if test "$DOTEST" = "y" || test "$CONFIG_KERNELDIR" != "" ; then
echo $ac_n "checking for linux kernel source in ${tst_kerneldir}""... $ac_c" 1>&6
echo "configure:1931: checking for linux kernel source in ${tst_kerneldir}" >&5
echo "configure:1937: checking for linux kernel source in ${tst_kerneldir}" >&5
CPPFLAGS="-nostdinc -I${tst_kerneldir}/include -I${tst_kerneldir}/drivers/isdn"
cat > conftest.$ac_ext <<EOF
#line 1934 "configure"
#line 1940 "configure"
#include "confdefs.h"
#include <isdn_common.h>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:1939: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
{ (eval echo configure:1945: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then
rm -rf conftest*
@ -1951,15 +1957,15 @@ rm -f conftest*
fi
if test "$lxdir" = "no" ; then
echo $ac_n "checking for linux kernel source in /usr/src/linux""... $ac_c" 1>&6
echo "configure:1955: checking for linux kernel source in /usr/src/linux" >&5
echo "configure:1961: checking for linux kernel source in /usr/src/linux" >&5
CPPFLAGS="-nostdinc -I/usr/src/linux/include -I/usr/src/linux/drivers/isdn"
cat > conftest.$ac_ext <<EOF
#line 1958 "configure"
#line 1964 "configure"
#include "confdefs.h"
#include <isdn_common.h>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:1963: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
{ (eval echo configure:1969: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then
rm -rf conftest*
@ -1974,15 +1980,15 @@ rm -f conftest*
if test "$lxdir" = "no" ; then
echo "$ac_t"""$lxdir"" 1>&6
echo $ac_n "checking for linux kernel source in /usr/local/src/linux""... $ac_c" 1>&6
echo "configure:1978: checking for linux kernel source in /usr/local/src/linux" >&5
echo "configure:1984: checking for linux kernel source in /usr/local/src/linux" >&5
CPPFLAGS="-nostdinc -I/usr/local/src/linux/include -I/usr/local/src/linux/drivers/isdn"
cat > conftest.$ac_ext <<EOF
#line 1981 "configure"
#line 1987 "configure"
#include "confdefs.h"
#include <isdn_common.h>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:1986: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
{ (eval echo configure:1992: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then
rm -rf conftest*
@ -2011,13 +2017,13 @@ EOF
if test $ac_cv_prog_gcc = yes; then
echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
echo "configure:2015: checking whether ${CC-cc} needs -traditional" >&5
echo "configure:2021: checking whether ${CC-cc} needs -traditional" >&5
if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_pattern="Autoconf.*'x'"
cat > conftest.$ac_ext <<EOF
#line 2021 "configure"
#line 2027 "configure"
#include "confdefs.h"
#include <sgtty.h>
Autoconf TIOCGETP
@ -2035,7 +2041,7 @@ rm -f conftest*
if test $ac_cv_prog_gcc_traditional = no; then
cat > conftest.$ac_ext <<EOF
#line 2039 "configure"
#line 2045 "configure"
#include "confdefs.h"
#include <termio.h>
Autoconf TCGETA
@ -2057,7 +2063,7 @@ echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
fi
echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
echo "configure:2061: checking for 8-bit clean memcmp" >&5
echo "configure:2067: checking for 8-bit clean memcmp" >&5
if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@ -2065,7 +2071,7 @@ else
ac_cv_func_memcmp_clean=no
else
cat > conftest.$ac_ext <<EOF
#line 2069 "configure"
#line 2075 "configure"
#include "confdefs.h"
main()
@ -2075,7 +2081,7 @@ main()
}
EOF
if { (eval echo configure:2079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
if { (eval echo configure:2085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
then
ac_cv_func_memcmp_clean=yes
else
@ -2093,12 +2099,12 @@ echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.o"
echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
echo "configure:2097: checking return type of signal handlers" >&5
echo "configure:2103: checking return type of signal handlers" >&5
if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 2102 "configure"
#line 2108 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <signal.h>
@ -2115,7 +2121,7 @@ int main() {
int i;
; return 0; }
EOF
if { (eval echo configure:2119: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
if { (eval echo configure:2125: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
ac_cv_type_signal=void
else
@ -2134,7 +2140,7 @@ EOF
echo $ac_n "checking whether utime accepts a null argument""... $ac_c" 1>&6
echo "configure:2138: checking whether utime accepts a null argument" >&5
echo "configure:2144: checking whether utime accepts a null argument" >&5
if eval "test \"`echo '$''{'ac_cv_func_utime_null'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@ -2144,7 +2150,7 @@ if test "$cross_compiling" = yes; then
ac_cv_func_utime_null=no
else
cat > conftest.$ac_ext <<EOF
#line 2148 "configure"
#line 2154 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/stat.h>
@ -2155,7 +2161,7 @@ exit(!(stat ("conftestdata", &s) == 0 && utime("conftestdata", (long *)0) == 0
&& t.st_mtime - s.st_mtime < 120));
}
EOF
if { (eval echo configure:2159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
if { (eval echo configure:2165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
then
ac_cv_func_utime_null=yes
else
@ -2181,12 +2187,12 @@ fi
for ac_func in mktime select socket stime strdup strerror strftime strstr strtod strtol
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:2185: checking for $ac_func" >&5
echo "configure:2191: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 2190 "configure"
#line 2196 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func(); below. */
@ -2209,7 +2215,7 @@ $ac_func();
; return 0; }
EOF
if { (eval echo configure:2213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
if { (eval echo configure:2219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
eval "ac_cv_func_$ac_func=yes"
else
@ -2290,6 +2296,12 @@ esac
@ -2398,7 +2410,7 @@ done
ac_given_srcdir=$srcdir
ac_given_INSTALL="$INSTALL"
trap 'rm -fr `echo "Makefile policy.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
trap 'rm -fr `echo "Makefile isdnlog/callerid.conf.5 isdnlog/isdnlog.5 isdnlog/isdnlog.8 isdnlog/isdnlog.users.5 isdnrep/isdnrep.1 policy.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
EOF
cat >> $CONFIG_STATUS <<EOF
@ -2457,6 +2469,12 @@ s%@AREACODE@%$AREACODE%g
s%@AREAPREFIX@%$AREAPREFIX%g
s%@NATION@%$NATION%g
s%@NATION_MACRO@%$NATION_MACRO%g
s%@I4LVERSION@%$I4LVERSION%g
s%@MANDATE_CALLERID@%$MANDATE_CALLERID%g
s%@MANDATE_ISDNLOG5@%$MANDATE_ISDNLOG5%g
s%@MANDATE_ISDNLOG8@%$MANDATE_ISDNLOG8%g
s%@MANDATE_ISDNLOG_USERS@%$MANDATE_ISDNLOG_USERS%g
s%@MANDATE_ISDNREP@%$MANDATE_ISDNREP%g
CEOF
EOF
@ -2498,7 +2516,7 @@ EOF
cat >> $CONFIG_STATUS <<EOF
CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
CONFIG_FILES=\${CONFIG_FILES-"Makefile isdnlog/callerid.conf.5 isdnlog/isdnlog.5 isdnlog/isdnlog.8 isdnlog/isdnlog.users.5 isdnrep/isdnrep.1"}
EOF
cat >> $CONFIG_STATUS <<\EOF
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then