Develop and Download Open Source Software

Browse CVS Repository

Annotation of /satellite/satellite4/configure.in

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.19 - (hide annotations) (download)
Mon Sep 4 14:51:56 2006 UTC (17 years, 7 months ago) by orrisroot
Branch: MAIN
CVS Tags: HEAD
Changes since 1.18: +6 -6 lines
added macro check HAVE_SNPRINTF HAVE_MEMSET HAVE_STRSTR HAVE_MEMMOVE.

1 orrisroot 1.10 # -*- Autoconf -*-
2 orrisroot 1.1 # Process this file with autoconf to produce a configure script.
3 orrisroot 1.10
4 orrisroot 1.9 AC_PREREQ(2.59)
5 orrisroot 1.14 AC_INIT(satellite, 4.2.3, okumura@brain.riken.go.jp)
6 orrisroot 1.19 AC_REVISION($Id: configure.in,v 1.18 2006/09/04 13:51:18 orrisroot Exp $)
7 orrisroot 1.1
8 orrisroot 1.10 AC_CONFIG_SRCDIR([satellite4-config.in])
9     AC_CONFIG_AUX_DIR([config])
10     AC_PREFIX_DEFAULT([/usr/local/satellite4])
11 orrisroot 1.1
12 orrisroot 1.16 AC_GNU_SOURCE
13     AC_ISC_POSIX
14     AC_CYGWIN
15    
16 orrisroot 1.9 AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)
17 orrisroot 1.10 AM_CONFIG_HEADER([config.h])
18 orrisroot 1.1
19     sl4includedir=$includedir/satellite4
20     AC_SUBST(sl4includedir)
21    
22     sl4libdir=$libdir
23     AC_SUBST(sl4libdir)
24    
25     sl4libexecdir=$libexecdir/satellite4
26     AC_SUBST(sl4libexecdir)
27    
28     docdir=$datadir/doc
29     AC_SUBST(docdir)
30     sl4docdir=$docdir/satellite4
31     AC_SUBST(sl4docdir)
32    
33     sl4sharedir=$datadir/satellite4
34     AC_SUBST(sl4sharedir)
35    
36     examplesdir=$datadir/examples/satellite4
37     AC_SUBST(examplesdir)
38    
39     moduledir=$libdir/satellite4
40     AC_SUBST(moduledir)
41    
42     systemrcdir=$sysconfdir/satellite4
43     AC_SUBST(systemrcdir)
44    
45     modulercdir=$sysconfdir/satellite4
46     AC_SUBST(modulercdir)
47    
48     # Checks for programs.
49     AM_DISABLE_STATIC
50 orrisroot 1.2 AC_PROG_CXX
51 orrisroot 1.1 AC_PROG_CC
52     AC_PROG_CPP
53     AC_PROG_INSTALL
54     AC_PROG_LN_S
55     AC_PROG_MAKE_SET
56     AC_PROG_RANLIB
57 orrisroot 1.2 AC_PROG_YACC
58 orrisroot 1.1 AC_PROG_AWK
59     AC_LIBTOOL_DLOPEN
60     AC_PROG_LIBTOOL
61     AM_PROG_LEX
62     AC_SHLIBPATH_VAR
63    
64     AC_C_BIGENDIAN
65     AM_MAINTAINER_MODE
66    
67     # Checks for libraries.
68     # FIXME: Replace `main' with a function in `-lm':
69     AC_CHECK_LIB(m, sin)
70    
71 orrisroot 1.4 # check pthread library
72 orrisroot 1.12 ACX_PTHREAD
73 orrisroot 1.13 # Some platforms use these, so just defineed them. They can't hurt if they
74     # are not supported.
75     PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
76     # At this point, we don't want to muck with the compiler name for threading.
77     # Let's see who fails, perhaps AIX. 2004-04-23
78     if test "$PTHREAD_CC" != "$CC"; then
79     AC_MSG_ERROR([
80     satellite4 does not support platforms that require a special
81     compiler binary for thread-safety.
82     ])
83     fi
84    
85 orrisroot 1.3 # check termcap library
86     AM_PATH_TERMCAP
87 orrisroot 1.4 # check X Toolkit
88     AM_PATH_XTOOLKIT
89 orrisroot 1.1
90     # FIXME: Replace `main' with a function in `-lsatellite':
91     #AC_CHECK_LIB([satellite], [main])
92     # FIXME: Replace `main' with a function in `-lslshell':
93     #AC_CHECK_LIB([slshell], [main])
94     AC_CHECK_LIB([dl], [dlopen])
95    
96     # Checks for header files.
97 orrisroot 1.18 # libsl4 : direct.h pthread.h pwd.h stdlib.h string.h sys/param.h sys/stat.h
98     # sys/time.h sys/types.h unistd.h
99 orrisroot 1.1 AC_HEADER_DIRENT
100 orrisroot 1.18 AC_HEADER_STDBOOL
101 orrisroot 1.1 AC_HEADER_STDC
102     AC_HEADER_SYS_WAIT
103 orrisroot 1.18 AC_HEADER_TIME
104     AC_CHECK_HEADERS([direct.h pthread.h pwd.h stdlib.h string.h sys/param.h sys/stat.h sys/time.h sys/types.h unistd.h \
105 orrisroot 1.16 fcntl.h float.h locale.h malloc.h stddef.h stdlib.h string.h strings.h sys/file.h sys/ioctl.h sys/time.h sys/timeb.h \
106 orrisroot 1.10 termios.h vfork.h errno.h limits.h memory.h getopt.h pwd.h \
107 orrisroot 1.16 windows.h io.h process.h])
108 orrisroot 1.1
109     # Checks for typedefs, structures, and compiler characteristics.
110     AC_C_CONST
111     AC_C_INLINE
112 orrisroot 1.17 AC_TYPE_MODE_T
113     AC_TYPE_OFF_T
114 orrisroot 1.2 AC_TYPE_PID_T
115 orrisroot 1.1 AC_TYPE_SIZE_T
116 orrisroot 1.17 AC_TYPE_SIGNAL
117     AC_TYPE_UID_T
118 orrisroot 1.1 AC_STRUCT_TM
119 orrisroot 1.15 AC_CHECK_TYPE(ssize_t, int)
120 orrisroot 1.1 AC_CHECK_TYPE(time_t, long)
121 orrisroot 1.11 dnl sig_t is the type of a signal handler (4.4BSD)
122     AC_CHECK_TYPES(sig_t, , ,
123     [#include <sys/types.h>
124     #include <signal.h> ])
125     AH_BOTTOM(
126     [#ifndef HAVE_SIG_T
127     typedef RETSIGTYPE (*sig_t) ();
128     #endif])
129 orrisroot 1.1
130     # Checks for library functions.
131 orrisroot 1.19 # libsl4 : endpwent getcwd memmove memset mkdir putenv rmdir setenv snprintf
132     # strstr vasprintf vsnprintf wvsprintf _vscprintf
133 orrisroot 1.2 AC_FUNC_CLOSEDIR_VOID
134 orrisroot 1.1 AC_FUNC_FORK
135     AC_PROG_GCC_TRADITIONAL
136     AC_FUNC_LSTAT
137 orrisroot 1.2 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK
138 orrisroot 1.1 AC_FUNC_MALLOC
139     AC_FUNC_MMAP
140 orrisroot 1.2 AC_FUNC_REALLOC
141 orrisroot 1.1 AC_FUNC_STAT
142 orrisroot 1.2 AC_FUNC_STRTOD
143 orrisroot 1.1 AC_FUNC_VPRINTF
144 orrisroot 1.19 AC_CHECK_FUNCS([endpwent getcwd memmove memset mkdir putenv rmdir setenv snprintf strstr vasprintf vsnprintf wvsprintf _vscprintf \
145     floor ftime gethostname gettimeofday munmap pow setlocale sqrt strchr strdup strpbrk strrchr strtol lrand48 \
146     bzero strerror strncpy lockf flockf])
147 orrisroot 1.1
148 orrisroot 1.13 # replaced cflags and libs for pthread support
149     CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
150     CXXFLAGS="$CXXFLAGS $PTHREAD_CFLAGS"
151     LIBS="$PTHREAD_LIBS $LIBS"
152    
153 orrisroot 1.1 AC_CONFIG_FILES([Makefile
154     satellite4-config
155     lib/Makefile
156 orrisroot 1.16 lib/libsl4/Makefile
157 orrisroot 1.1 lib/common/Makefile
158     lib/shell/Makefile
159     shell/Makefile
160     etc/Makefile
161     modules/Makefile
162     modules/util/Makefile
163     modules/system/Makefile
164     modules/ispp/Makefile
165 orrisroot 1.2 modules/gpm/Makefile
166     modules/gpm/lib/Makefile
167     modules/gpm/command/Makefile
168     modules/gpm/gpm2ps/Makefile
169     modules/gpm/gpmwin/Makefile
170 orrisroot 1.5 modules/bps/Makefile
171     modules/bps/command/Makefile
172 orrisroot 1.1 modules/ncs/Makefile
173     modules/ncs/lib/Makefile
174     modules/ncs/lib/common/Makefile
175     modules/ncs/lib/simulation/Makefile
176     modules/ncs/lib/main/Makefile
177     modules/ncs/command/Makefile
178     modules/ncs/ncspp/Makefile
179     modules/npe/Makefile
180     modules/npe/lib/Makefile
181     modules/npe/lib/common/Makefile
182     modules/npe/lib/estimation/Makefile
183     modules/npe/lib/user/Makefile
184     modules/npe/lib/ncs/Makefile
185     modules/npe/command/Makefile
186     modules/dcm/Makefile
187     modules/statistics/Makefile
188     modules/statistics/script/Makefile
189     modules/statistics/script/data/Makefile])
190     AC_OUTPUT

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26