/[cvsroot]/skandha4/aclocal.m4
ViewVC logotype

Contents of /skandha4/aclocal.m4

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1.1.1 - (show annotations) (download) (vendor branch)
Tue May 25 09:37:05 1999 UTC (21 years, 4 months ago) by jsp
Branch: biostr, MAIN
CVS Tags: skandha4, skandha4_1_6, skandha4_1_6_pub, dsg_1_0, HEAD
Branch point for: skandha4_pub, autoconf
Changes since 1.1: +0 -0 lines
ANSI C version of Skandha4


1 dnl
2 AC_DEFUN(MUQ_GETRUSAGE,
3 [# SunOS 5.x keeps getrusage in /usr/ucblib/libucb.a:
4 LIBS_old="$LIBS"
5 # The following will only work for gcc under SunOS,
6 # I expect. (I don't have a manpage for cc under SunOS. 94Jun25Cynbe)
7 LIBS="$LIBS -L/usr/ucblib -Xlinker -R/usr/ucblib"
8 AC_CHECK_LIB(ucb, getrusage, LIBS="$LIBS -lucb",
9 LIBS="$LIBS_old",-lc)
10 ])dnl
11 dnl
12 dnl
13 dnl
14 dnl See bottom of Need.h for genealogy of following stuff.
15 dnl
16 dnl Wound up wanting a HEADER_CHECK below, and didn't
17 dnl want redundant AC_CHECKINGs in it, so cloned AC_HEADER_CHECK:
18 define(MUQ_HEADER_CHECK,
19 [ifelse([$3], , [AC_TRY_CPP([#include <$1>], [$2])],
20 [AC_TRY_CPP([#include <$1>], [$2], [$3])])
21 ])dnl
22 dnl --------------------- BEGIN BORROWED SECTION -----------------------
23 dnl Process this file with autoconf to produce a configure script.
24 dnl Techne Research Limited macros
25 AC_REVISION($Revision: 1.3 $)dnl
26 dnl
27 dnl Macro to check if functions prototype is declared or not.
28 dnl Sets NEED_function_PROTO if it is needed.
29 dnl Replacement prototypes require inclusion of need.h
30 dnl
31 dnl Usage: TRL_PROTO_CHECK(cfsetispeed, termios.h sys/termios.h)
32 dnl Produces NEED_CFSETISPEED_PROTO if not located.
33 dnl
34 define(TRL_PROTO_CHECK,
35 [AC_PROVIDE([$0])dnl
36 AC_MSG_CHECKING(for $1 prototype)
37 dnl
38 ac_need=1
39 for h in [$2]; do
40 MUQ_HEADER_CHECK($h,
41 [dnl We use an expanded AC_HEADER_EGREP because its single quote stops expansion
42 echo "#include \"confdefs.h\"
43 #include <$h>" > conftest.c
44 eval "$ac_cpp conftest.c > conftest.out 2>&1"
45 changequote(,)dnl
46 if egrep "$1[^a-zA-Z0-9/.]" conftest.out >/dev/null 2>&1; then
47 changequote([,])dnl
48 :
49 else
50 rm -rf conftest*
51 continue
52 fi
53 rm -f conftest*
54 cat > conftest.c <<EOF
55 #include <$h>
56 dnl This should be valid ;-)
57 extern char**** [$1](char****, int****);
58 main() { return 0; }
59 EOF
60 if eval $ac_compile >/dev/null 2>&1; then
61 rm -f conftest*
62 else
63 rm -f conftest*
64 ac_need=0
65 break
66 fi
67 ])dnl
68 done
69 if test [$ac_need] = 1; then
70 changequote(,)dnl
71 name=NEED_`echo $1 | tr '[a-z]' '[A-Z]'`_PROTO
72 changequote([,])dnl
73 AC_DEFINE_UNQUOTED($name)
74 AC_MSG_RESULT(ABSENT)
75 else
76 AC_MSG_RESULT(present)
77 fi
78 ])dnl
79 dnl --------------------- END BORROWED SECTION -----------------------

brinkley@uw.edu
ViewVC Help
Powered by ViewVC 1.1.26