ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/Unix/acinclude.m4
Revision: 1.1
Committed: 2002-01-25T12:14:21Z (22 years, 10 months ago) by cebix
Branch: MAIN
Log Message:
added missing file

File Contents

# User Rev Content
1 cebix 1.1 dnl Additional macros for Basilisk II
2    
3    
4     dnl Check for libgnomeui
5     dnl B2_PATH_GNOMEUI([ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]])
6     dnl Test to see if libgnomeui is installed, and define GNOMEUI_CFLAGS, LIBS
7     AC_DEFUN(B2_PATH_GNOMEUI,
8     [dnl
9     dnl Get the cflags and libraries from the gnome-config script
10     dnl
11     AC_ARG_WITH(gnome-config,
12     [ --with-gnome-config=GNOME_CONFIG Location of gnome-config],
13     GNOME_CONFIG="$withval")
14    
15     AC_PATH_PROG(GNOME_CONFIG, gnome-config, no)
16     AC_MSG_CHECKING(for libgnomeui)
17     if test "$GNOME_CONFIG" = "no"; then
18     AC_MSG_RESULT(no)
19     ifelse([$2], , :, [$2])
20     else
21     AC_MSG_RESULT(yes)
22     GNOMEUI_CFLAGS=`$GNOME_CONFIG --cflags gnomeui`
23     GNOMEUI_LIBS=`$GNOME_CONFIG --libs gnomeui`
24     ifelse([$1], , :, [$1])
25     fi
26     AC_SUBST(GNOMEUI_CFLAGS)
27     AC_SUBST(GNOMEUI_LIBS)
28     ])
29    
30    
31     dnl Check for socklen_t type
32    
33     AC_DEFUN(TYPE_SOCKLEN_T,
34     [AC_REQUIRE([AC_HEADER_STDC])dnl
35     AC_MSG_CHECKING(for socklen_t)
36     AC_CACHE_VAL(ac_cv_type_socklen_t,
37     [AC_EGREP_CPP(dnl
38     changequote(<<,>>)dnl
39     <<(^|[^a-zA-Z_0-9])socklen_t[^a-zA-Z_0-9]>>dnl
40     changequote([,]), [#include <sys/types.h>
41     #include <sys/socket.h>], ac_cv_type_socklen_t=yes, ac_cv_type_socklen_t=no)])dnl
42     AC_MSG_RESULT($ac_cv_type_socklen_t)
43     if test $ac_cv_type_socklen_t = no; then
44     AC_DEFINE(socklen_t, int)
45     fi
46     ])