aboutsummaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in24
1 files changed, 17 insertions, 7 deletions
diff --git a/configure.in b/configure.in
index 0c405fb..919a520 100644
--- a/configure.in
+++ b/configure.in
@@ -1,5 +1,5 @@
dnl Process this file with autoconf to produce a configure script.
-AC_INIT(tkRadar.c)
+AC_INIT(tkZinc.c)
dnl builtin([include],acplcaux.m4)
#
@@ -11,14 +11,24 @@ dnl ac_link='echo ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_e
AC_CONFIG_HEADER(config.h)
AC_PROG_CC
+AC_CHECK_PROGS(PERL, perl, error)
+changequote()
+PERLLIB=`perl -e 'print $INC[0]'`
+changequote([, ])
+SITEPERL=`find /usr/local -name site_perl`
+AC_SUBST(PERLLIB)
+AC_SUBST(SITEPERL)
+
dnl for shared library stuff
# extract version information
-XRADAR_VER=`sed -n -e 's/#define XRADARVER.*\([0-9]\)$/\1/p' patchlvl.h`
-XRADAR_MAJOR=`sed -n -e 's/#define XRADARREV.*\([0-9]\)$/\1/p' patchlvl.h`
-XRADAR_VERSION=`sed -n -e 's/#define XRADARVERSION.*\([0-9][a-z][0-9]\).*/\1/p' patchlvl.h`
-AC_SUBST(XRADAR_VER)
-AC_SUBST(XRADAR_MAJOR)
-AC_SUBST(XRADAR_VERSION)
+changequote()
+ZINC_VER=`sed -n -e 's/#define ZINCVER.*\([0-9]\)$/\1/p' patchlvl.h`
+ZINC_MAJOR=`sed -n -e 's/#define ZINCREV.*\([0-9]\)$/\1/p' patchlvl.h`
+ZINC_VERSION=`sed -n -e 's/#define ZINCVERSION.*\([0-9][a-z][0-9]\).*/\1/p' patchlvl.h`
+changequote([, ])
+AC_SUBST(ZINC_VER)
+AC_SUBST(ZINC_MAJOR)
+AC_SUBST(ZINC_VERSION)
builtin([include],acaux.m4)
AC_SYS_SHAREDLIB