source: configure.in @ fd93b41

barnowl_perlaimdebianowlrelease-1.4release-1.5release-1.6release-1.7release-1.8release-1.9
Last change on this file since fd93b41 was d09e5a1, checked in by James M. Kretchmar <kretch@mit.edu>, 19 years ago
Added libfaim Added basic AIM support, including the "aimlogin", "aimwrite" and "aimlogout" commands
  • Property mode set to 100644
File size: 2.8 KB
RevLine 
[1aee7d9]1dnl $Id$
[7d4fbcd]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
[e51b410]14
[7d4fbcd]15dnl Check for Athena
16AC_MSG_CHECKING(for /usr/athena/include)
17if test -d /usr/athena/include; then
18        CFLAGS=${CFLAGS}\ -I/usr/athena/include
19        AC_MSG_RESULT(yes)
20else
21        AC_MSG_RESULT(no)
22fi
23AC_MSG_CHECKING(for /usr/athena/lib)
24if test -d /usr/athena/lib; then
[601a9e0]25        LDFLAGS=-L/usr/athena/lib\ ${LDFLAGS}
[7d4fbcd]26        AC_MSG_RESULT(yes)
27else
28        AC_MSG_RESULT(no)
29fi
30
31AC_CHECK_LIB(ncurses, initscr,,
32   AC_CHECK_LIB(curses, initscr,, AC_MSG_ERROR(No curses library found.)))
33AC_CHECK_LIB(com_err, com_err)
34AC_CHECK_LIB(nsl, gethostbyname)
35AC_CHECK_LIB(socket, socket)
36AC_CHECK_LIB(k5crypto, krb5_derive_key)
37AC_CHECK_LIB(des425, des425_req_act_vno)
[ac70242]38AC_CHECK_LIB(des, des_quad_cksum)
[d09e5a1]39AC_CHECK_LIB(resolv, res_search)
[7d4fbcd]40AC_CHECK_LIB(krb5, krb5_get_credentials)
[d09e5a1]41AC_CHECK_LIB(krb4, krb_sendauth,,
42   AC_CHECK_LIB(krb, krb_sendauth))
[7d4fbcd]43AC_CHECK_LIB(zephyr, ZGetSender,, AC_MSG_ERROR(No zephyr library found.))
[ac70242]44AC_CHECK_LIB(zephyr, ZInitLocationInfo, AC_DEFINE([HAVE_LIBZEPHYR_ZINITLOCATIONINFO], [], [Have ZInitLocationInfo]),)
45
[c269e22]46AC_CHECK_FUNCS(use_default_colors des_string_to_key des_key_sched des_ecb_encrypt)
[e51b410]47
[ac70242]48AC_MSG_CHECKING(for des_ecb_encrypt prototype)
49AC_TRY_COMPILE([#include <des.h>
50int des_ecb_encrypt(char foo[], char bar[], des_key_schedule baz, int qux);],
51[int foo = des_ecb_encrypt(0,0,0,0);],
52ac_cv_des_ecb_encrypt_proto=no,
53ac_cv_des_ecb_encrypt_proto=yes)
54AC_MSG_RESULT($ac_cv_des_ecb_encrypt_proto)
55if test "$ac_cv_des_ecb_encrypt_proto" = yes; then
56        AC_DEFINE([HAVE_DES_ECB_ENCRYPT_PROTO], [], [have proto for des_ecb_encrypt])
57fi
[7d4fbcd]58
[c269e22]59
[7d4fbcd]60dnl Checks for header files.
61AC_HEADER_STDC
62AC_HEADER_SYS_WAIT
63AC_CHECK_HEADERS(strings.h sys/ioctl.h unistd.h)
64
65dnl Add CFLAGS for embeded perl
66FOO=`perl -MExtUtils::Embed -e ccopts`
67echo Adding perl CFLAGS ${FOO}
68CFLAGS=${CFLAGS}\ ${FOO}
69
[e51b410]70dnl Find the location of perl XSUBPP
[8ee73f8d]71AC_MSG_CHECKING(for the perl xsubpp precompiler)
[6794f72]72XSUBPPDIR="`(perl -MExtUtils::MakeMaker -e 'print ExtUtils::MakeMaker->new({NAME => qw(owl)})->tool_xsubpp;') | grep \^XSUBPPDIR | sed -e 's/XSUBPPDIR = //g;'`"
[8ee73f8d]73if test -n "${XSUBPPDIR}"; then
74   AC_MSG_RESULT(${XSUBPPDIR})
75else
76   AC_MSG_ERROR(not found)
77fi
78
[7d4fbcd]79dnl Add LDFLAGS for embeded perl
[316962a]80FOO=`perl -MExtUtils::Embed -e ldopts | sed 's/,-E//'`
[7d4fbcd]81echo Adding perl LDFLAGS ${FOO}
82LDFLAGS=${LDFLAGS}\ ${FOO}
83
84dnl Checks for typedefs, structures, and compiler characteristics.
[ac70242]85AC_CHECK_FILE(/usr/share/terminfo, AC_DEFINE(TERMINFO, "/usr/share/terminfo", [Have terminfo]),
86  AC_CHECK_FILE(/usr/share/lib/terminfo, AC_DEFINE(TERMINFO, "/usr/share/lib/terminfo", [Have terminfo]),
[7d4fbcd]87  AC_MSG_ERROR(No terminfo found for this system)))
88
[8ee73f8d]89AC_SUBST(XSUBPPDIR)
90
[ac70242]91AC_PROG_INSTALL
92
[d09e5a1]93AC_CONFIG_SUBDIRS(libfaim)
94
[7d4fbcd]95AC_OUTPUT(Makefile)
Note: See TracBrowser for help on using the repository browser.