source: configure.in @ 69894d2

barnowl_perlaimdebianowlrelease-1.10release-1.4release-1.5release-1.6release-1.7release-1.8release-1.9
Last change on this file since 69894d2 was ac70242, checked in by James M. Kretchmar <kretch@mit.edu>, 21 years ago
Makefile.in: define DATADIR, for default owlconf. Makefile.in: provide "all" and "install" rules. configure.in: try also libdes and libkrb4, for people using heimdal configure.in: see if des_ecb_encrypt is already prototyped. configure.in: minor changes to work with new autoconf without needing acconfig.h. configure.in: find the install program. configure.in: test for use_default_colors since some versions of solaris don't have it, so we can at least compile something vaguely working there. keypress.c: ifdefs for keys not defined on at least some solarises. owl.c: don't call use_default_colors if we don't have it readconfig.c: added *commented out* code to try to find a system-default owlconf if the user doesn't have one. Have to ponder if I want this zcrypt.c: don't prototype des_ecb_encrypt if there is a prototype in des.h. zcrypt.c: include owl.h so we get the configure-generated config.h Change to codelist.pl to deal with new code style
  • Property mode set to 100644
File size: 2.8 KB
Line 
1dnl $Id$
2dnl Process this file with autoconf to produce a configure script.
3AC_INIT(owl.c)
4
5AC_CONFIG_HEADER(config.h)
6
7AC_PROG_CC
8
9dnl If we're using GCC, enable all warnings
10if test "$GCC" = yes; then
11     CFLAGS="$CFLAGS -Wall -g";
12fi
13
14dnl Check for Athena
15AC_MSG_CHECKING(for /usr/athena/include)
16if test -d /usr/athena/include; then
17        CFLAGS=${CFLAGS}\ -I/usr/athena/include
18        AC_MSG_RESULT(yes)
19else
20        AC_MSG_RESULT(no)
21fi
22AC_MSG_CHECKING(for /usr/athena/lib)
23if test -d /usr/athena/lib; then
24        LDFLAGS=-L/usr/athena/lib\ ${LDFLAGS}
25        AC_MSG_RESULT(yes)
26else
27        AC_MSG_RESULT(no)
28fi
29
30AC_CHECK_LIB(ncurses, initscr,,
31   AC_CHECK_LIB(curses, initscr,, AC_MSG_ERROR(No curses library found.)))
32AC_CHECK_LIB(com_err, com_err)
33AC_CHECK_LIB(nsl, gethostbyname)
34AC_CHECK_LIB(socket, socket)
35AC_CHECK_LIB(k5crypto, krb5_derive_key)
36AC_CHECK_LIB(des425, des425_req_act_vno)
37AC_CHECK_LIB(des, des_quad_cksum)
38AC_CHECK_LIB(krb5, krb5_get_credentials)
39AC_CHECK_LIB(krb4, krb_sendauth)
40AC_CHECK_LIB(krb, krb_sendauth)
41AC_CHECK_LIB(zephyr, ZGetSender,, AC_MSG_ERROR(No zephyr library found.))
42AC_CHECK_LIB(zephyr, ZInitLocationInfo, AC_DEFINE([HAVE_LIBZEPHYR_ZINITLOCATIONINFO], [], [Have ZInitLocationInfo]),)
43
44AC_MSG_CHECKING(for des_ecb_encrypt prototype)
45AC_TRY_COMPILE([#include <des.h>
46int des_ecb_encrypt(char foo[], char bar[], des_key_schedule baz, int qux);],
47[int foo = des_ecb_encrypt(0,0,0,0);],
48ac_cv_des_ecb_encrypt_proto=no,
49ac_cv_des_ecb_encrypt_proto=yes)
50AC_MSG_RESULT($ac_cv_des_ecb_encrypt_proto)
51if test "$ac_cv_des_ecb_encrypt_proto" = yes; then
52        AC_DEFINE([HAVE_DES_ECB_ENCRYPT_PROTO], [], [have proto for des_ecb_encrypt])
53fi
54
55dnl Checks for header files.
56AC_HEADER_STDC
57AC_HEADER_SYS_WAIT
58AC_CHECK_HEADERS(strings.h sys/ioctl.h unistd.h)
59
60dnl Add CFLAGS for embeded perl
61FOO=`perl -MExtUtils::Embed -e ccopts`
62echo Adding perl CFLAGS ${FOO}
63CFLAGS=${CFLAGS}\ ${FOO}
64
65dnl Find the location of XSUBPP
66AC_MSG_CHECKING(for the perl xsubpp precompiler)
67XSUBPPDIR="`(perl -MExtUtils::MakeMaker -e 'print ExtUtils::MakeMaker->new({NAME => qw(owl)})->tool_xsubpp;') | grep \^XSUBPPDIR | sed -e 's/XSUBPPDIR = //g;'`"
68if test -n "${XSUBPPDIR}"; then
69   AC_MSG_RESULT(${XSUBPPDIR})
70else
71   AC_MSG_ERROR(not found)
72fi
73
74dnl Add LDFLAGS for embeded perl
75FOO=`perl -MExtUtils::Embed -e ldopts | sed 's/,-E//'`
76echo Adding perl LDFLAGS ${FOO}
77LDFLAGS=${LDFLAGS}\ ${FOO}
78
79dnl Checks for typedefs, structures, and compiler characteristics.
80AC_CHECK_FILE(/usr/share/terminfo, AC_DEFINE(TERMINFO, "/usr/share/terminfo", [Have terminfo]),
81  AC_CHECK_FILE(/usr/share/lib/terminfo, AC_DEFINE(TERMINFO, "/usr/share/lib/terminfo", [Have terminfo]),
82  AC_MSG_ERROR(No terminfo found for this system)))
83
84dnl Checks for library functions.
85dnl AC_PROG_GCC_TRADITIONAL
86dnl AC_CHECK_FUNCS(gethostname strdup use_default_colors)
87
88AC_SUBST(XSUBPPDIR)
89
90AC_PROG_INSTALL
91
92AC_OUTPUT(Makefile)
Note: See TracBrowser for help on using the repository browser.