File: configure.in

package info (click to toggle)
dns-browse 1.6-4
  • links: PTS
  • area: main
  • in suites: potato
  • size: 156 kB
  • ctags: 48
  • sloc: tcl: 612; perl: 610; sh: 152; makefile: 70
file content (42 lines) | stat: -rw-r--r-- 859 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
dnl Process this file with autoconf to produce a configure script.
AC_INIT(dns_browse)

AC_SUBST(package)
package=dns_browse

dnl remove dot from the path to make AC_PREFIX_PROGRAM work
old_path=$PATH
PATH=`echo $PATH|sed -e 's/^\.://' -e 's/:\.://' -e 's/:\.//'`
AC_PREFIX_PROGRAM(dns_browse)
PATH=$old_path

dnl
dnl Find wish*.
AC_PATH_PROGS(WISH, wish wish8.1 wish8.0 wish4.2 wish4.1, no)
wish_vers=`echo 'global tk_version; puts $tk_version;exit 0'|$WISH`
case $wish_vers in
[123].*) wish=no;;
esac
if test "$WISH" = no; then
  AC_MSG_ERROR($package requires tk 4.0 or later.)
fi

dnl
dnl Find perl*.
AC_PATH_PROGS(PERL, perl perl5, no)
perl_vers=`$PERL -e 'print $]'`
case $perl_vers in
[1234].*) perl=no;;
esac
if test "$PERL" = no; then
  AC_MSG_ERROR($package requires perl 5.0 or later.)
fi


AC_SUBST(bindir)

AC_PROG_INSTALL


AC_OUTPUT(Makefile)