Develop and Download Open Source Software

Browse CVS Repository

Contents of /satellite/satellite4/configure.in

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


Revision 1.17 - (show annotations) (download)
Fri Sep 1 08:53:16 2006 UTC (17 years, 7 months ago) by orrisroot
Branch: MAIN
Changes since 1.16: +9 -7 lines
added fatal error function sl4_error_fatal().
added win32 specific function sl4_win32_has_console().
moved to get user name function from lib/common/userinfo.c to lib/libsl4/user.c

1 # -*- Autoconf -*-
2 # Process this file with autoconf to produce a configure script.
3
4 AC_PREREQ(2.59)
5 AC_INIT(satellite, 4.2.3, okumura@brain.riken.go.jp)
6 AC_REVISION($Id: configure.in,v 1.16 2006/08/25 15:02:05 orrisroot Exp $)
7
8 AC_CONFIG_SRCDIR([satellite4-config.in])
9 AC_CONFIG_AUX_DIR([config])
10 AC_PREFIX_DEFAULT([/usr/local/satellite4])
11
12 AC_GNU_SOURCE
13 AC_ISC_POSIX
14 AC_CYGWIN
15
16 AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)
17 AM_CONFIG_HEADER([config.h])
18
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 AC_PROG_CXX
51 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 AC_PROG_YACC
58 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 # check pthread library
72 ACX_PTHREAD
73 # 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 # check termcap library
86 AM_PATH_TERMCAP
87 # check X Toolkit
88 AM_PATH_XTOOLKIT
89
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 # libsl4 : unistd.h, direct.h, sys/stat.h, sys/param.h, pthread.h, windows.h
98 AC_HEADER_DIRENT
99 AC_HEADER_STDC
100 AC_HEADER_SYS_WAIT
101 AC_CHECK_HEADERS([unistd.h direct.h sys/stat.h sys/param.h pthread.h \
102 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 \
103 termios.h vfork.h errno.h limits.h memory.h getopt.h pwd.h \
104 windows.h io.h process.h])
105
106 # Checks for typedefs, structures, and compiler characteristics.
107 AC_HEADER_STDBOOL
108 AC_C_CONST
109 AC_C_INLINE
110 AC_TYPE_MODE_T
111 AC_TYPE_OFF_T
112 AC_TYPE_PID_T
113 AC_TYPE_SIZE_T
114 AC_TYPE_SIGNAL
115 AC_TYPE_UID_T
116 AC_HEADER_TIME
117 AC_STRUCT_TM
118 AC_CHECK_TYPE(ssize_t, int)
119 AC_CHECK_TYPE(time_t, long)
120 dnl sig_t is the type of a signal handler (4.4BSD)
121 AC_CHECK_TYPES(sig_t, , ,
122 [#include <sys/types.h>
123 #include <signal.h> ])
124 AH_BOTTOM(
125 [#ifndef HAVE_SIG_T
126 typedef RETSIGTYPE (*sig_t) ();
127 #endif])
128
129 # Checks for library functions.
130 AC_FUNC_CLOSEDIR_VOID
131 AC_FUNC_FORK
132 AC_PROG_GCC_TRADITIONAL
133 AC_FUNC_LSTAT
134 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK
135 AC_FUNC_MALLOC
136 AC_FUNC_MMAP
137 AC_FUNC_REALLOC
138 AC_FUNC_STAT
139 AC_FUNC_STRTOD
140 AC_FUNC_VPRINTF
141 # libsl4 : endpwent getcwd getenv mkdir rmdir setenv vasprintf vsnprintf
142 # wvsprintf _vscprintf
143 AC_CHECK_FUNCS([endpwent getcwd getenv mkdir rmdir setenv vasprintf vsnprintf wvsprintf _vscprintf \
144 floor ftime gethostname gettimeofday memmove memset munmap pow putenv setlocale sqrt strchr strdup strpbrk strrchr strstr strtol lrand48 \
145 bzero strerror strncpy snprintf lockf flockf])
146
147 # replaced cflags and libs for pthread support
148 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
149 CXXFLAGS="$CXXFLAGS $PTHREAD_CFLAGS"
150 LIBS="$PTHREAD_LIBS $LIBS"
151
152 AC_CONFIG_FILES([Makefile
153 satellite4-config
154 lib/Makefile
155 lib/libsl4/Makefile
156 lib/common/Makefile
157 lib/shell/Makefile
158 shell/Makefile
159 etc/Makefile
160 modules/Makefile
161 modules/util/Makefile
162 modules/system/Makefile
163 modules/ispp/Makefile
164 modules/gpm/Makefile
165 modules/gpm/lib/Makefile
166 modules/gpm/command/Makefile
167 modules/gpm/gpm2ps/Makefile
168 modules/gpm/gpmwin/Makefile
169 modules/bps/Makefile
170 modules/bps/command/Makefile
171 modules/ncs/Makefile
172 modules/ncs/lib/Makefile
173 modules/ncs/lib/common/Makefile
174 modules/ncs/lib/simulation/Makefile
175 modules/ncs/lib/main/Makefile
176 modules/ncs/command/Makefile
177 modules/ncs/ncspp/Makefile
178 modules/npe/Makefile
179 modules/npe/lib/Makefile
180 modules/npe/lib/common/Makefile
181 modules/npe/lib/estimation/Makefile
182 modules/npe/lib/user/Makefile
183 modules/npe/lib/ncs/Makefile
184 modules/npe/command/Makefile
185 modules/dcm/Makefile
186 modules/statistics/Makefile
187 modules/statistics/script/Makefile
188 modules/statistics/script/data/Makefile])
189 AC_OUTPUT

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