source: configure.in @ 8ee73f8d

barnowl_perlaimdebianowlrelease-1.10release-1.4release-1.5release-1.6release-1.7release-1.8release-1.9
Last change on this file since 8ee73f8d was 8ee73f8d, checked in by Erik Nygren <nygren@mit.edu>, 22 years ago
Fixed a memory reference bug in delete and undelete commands. Added support for perl to call directly back into owl. Changed the implementation of owl::command("...") to immediately call back into owl. This allows perl to get the return value of strings returned by owl commands. Added the getview command which returns the name of the current view's filter. Added the getvar command which returns the value of a variable. Added an example to examples/owlconf.erik which uses TAB to narrow and restore the view. Added an example to examples/owlconf.erik which uses M-c to color messages matching the current one green.
  • Property mode set to 100644
File size: 3.2 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
30dnl A hack for myself to use gnu curses
31dnl AC_MSG_CHECKING(for mit gnu hack)
32dnl if test -d /mit/gnu/include; then
33dnl     CFLAGS=${CFLAGS}\ -I/mit/gnu/include
34dnl     AC_MSG_RESULT(yes)
35dnl else
36dnl     AC_MSG_RESULT(no)
37dnl fi
38
39
40dnl Solaris ships with a broken curses.h
41dnl AC_MSG_CHECKING(for solaris broken curses.h)
42dnl if grep "Sun Microsystems" /usr/include/curses.h > /dev/null 2> /dev/null; then
43dnl   if test  "`grep -c getwc\(stdin\) /usr/include/widec.h`" = "2" ; then
44dnl     rm -rf includefix
45dnl     mkdir includefix
46dnl     sed -e 's/<widec.h>/\"widec.h\"/' /usr/include/curses.h > ./includefix/curses.h
47dnl 
48dnl     sed -e 's/<wchar.h>/\"wchar.h\"/' \
49dnl         -e 's/^#define.putwchar.*//' \
50dnl         -e 's/^#define.getwchar().*//' \
51dnl         -e 's/^#define.getwc(p).*//' \
52dnl         -e 's/^#define.putwc(x, p).*//' \
53dnl         /usr/include/widec.h > includefix/widec.h
54dnl     CFLAGS=-I./includefix\ ${CFLAGS}
55dnl     AC_MSG_RESULT(yes)
56dnl   fi
57dnl else
58dnl   AC_MSG_RESULT(no)
59dnl fi
60
61
62
63AC_CHECK_LIB(ncurses, initscr,,
64   AC_CHECK_LIB(curses, initscr,, AC_MSG_ERROR(No curses library found.)))
65AC_CHECK_LIB(com_err, com_err)
66AC_CHECK_LIB(nsl, gethostbyname)
67AC_CHECK_LIB(socket, socket)
68AC_CHECK_LIB(k5crypto, krb5_derive_key)
69AC_CHECK_LIB(des425, des425_req_act_vno)
70AC_CHECK_LIB(krb5, krb5_get_credentials)
71AC_CHECK_LIB(krb4, krb_sendauth)
72AC_CHECK_LIB(zephyr, ZGetSender,, AC_MSG_ERROR(No zephyr library found.))
73AC_CHECK_LIB(zephyr, ZInitLocationInfo, AC_DEFINE(HAVE_LIBZEPHYR_ZINITLOCATIONINFO),)
74
75dnl Checks for header files.
76AC_HEADER_STDC
77AC_HEADER_SYS_WAIT
78AC_CHECK_HEADERS(strings.h sys/ioctl.h unistd.h)
79
80dnl Add CFLAGS for embeded perl
81FOO=`perl -MExtUtils::Embed -e ccopts`
82echo Adding perl CFLAGS ${FOO}
83CFLAGS=${CFLAGS}\ ${FOO}
84
85dnl Find the location of XSUBPP
86AC_MSG_CHECKING(for the perl xsubpp precompiler)
87XSUBPPDIR="`(perl -MExtUtils::MakeMaker -e 'print ExtUtils::MakeMaker->new({NAME => qw(owl)})->tool_xsubpp;') | grep ^XSUBPPDIR | sed -e 's/XSUBPPDIR = //g;'`"
88if test -n "${XSUBPPDIR}"; then
89   AC_MSG_RESULT(${XSUBPPDIR})
90else
91   AC_MSG_ERROR(not found)
92fi
93
94dnl Add LDFLAGS for embeded perl
95FOO=`perl -MExtUtils::Embed -e ldopts`
96echo Adding perl LDFLAGS ${FOO}
97LDFLAGS=${LDFLAGS}\ ${FOO}
98
99dnl Checks for typedefs, structures, and compiler characteristics.
100AC_CHECK_FILE(/usr/share/terminfo, AC_DEFINE(TERMINFO, "/usr/share/terminfo"),
101  AC_CHECK_FILE(/usr/share/lib/terminfo, AC_DEFINE(TERMINFO, "/usr/share/lib/terminfo"),
102  AC_MSG_ERROR(No terminfo found for this system)))
103
104dnl Checks for library functions.
105dnl AC_PROG_GCC_TRADITIONAL
106dnl AC_CHECK_FUNCS(gethostname strdup)
107
108AC_SUBST(XSUBPPDIR)
109
110AC_OUTPUT(Makefile)
Note: See TracBrowser for help on using the repository browser.