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.12 - (hide annotations) (download)
Sun Oct 30 19:09:51 2005 UTC (18 years, 5 months ago) by orrisroot
Branch: MAIN
Changes since 1.11: +8 -2 lines
replaced autoconf pthread detection macro.

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.8 AC_INIT(satellite, 4.2.2, okumura@brain.riken.go.jp)
6 orrisroot 1.12 AC_REVISION($Id: configure.in,v 1.11 2005/10/30 09:54:48 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     AC_CANONICAL_TARGET
13 orrisroot 1.9 AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)
14 orrisroot 1.10 AM_CONFIG_HEADER([config.h])
15 orrisroot 1.1
16     sl4includedir=$includedir/satellite4
17     AC_SUBST(sl4includedir)
18    
19     sl4libdir=$libdir
20     AC_SUBST(sl4libdir)
21    
22     sl4libexecdir=$libexecdir/satellite4
23     AC_SUBST(sl4libexecdir)
24    
25     docdir=$datadir/doc
26     AC_SUBST(docdir)
27     sl4docdir=$docdir/satellite4
28     AC_SUBST(sl4docdir)
29    
30     sl4sharedir=$datadir/satellite4
31     AC_SUBST(sl4sharedir)
32    
33     examplesdir=$datadir/examples/satellite4
34     AC_SUBST(examplesdir)
35    
36     moduledir=$libdir/satellite4
37     AC_SUBST(moduledir)
38    
39     systemrcdir=$sysconfdir/satellite4
40     AC_SUBST(systemrcdir)
41    
42     modulercdir=$sysconfdir/satellite4
43     AC_SUBST(modulercdir)
44    
45     # Checks for programs.
46     AM_DISABLE_STATIC
47 orrisroot 1.2 AC_PROG_CXX
48 orrisroot 1.1 AC_PROG_CC
49     AC_PROG_CPP
50     AC_PROG_INSTALL
51     AC_PROG_LN_S
52     AC_PROG_MAKE_SET
53     AC_PROG_RANLIB
54 orrisroot 1.2 AC_PROG_YACC
55 orrisroot 1.1 AC_PROG_AWK
56     AC_LIBTOOL_DLOPEN
57     AC_PROG_LIBTOOL
58     AM_PROG_LEX
59     AC_SHLIBPATH_VAR
60    
61     AC_C_BIGENDIAN
62     AM_MAINTAINER_MODE
63    
64     # Checks for libraries.
65     # FIXME: Replace `main' with a function in `-lm':
66     AC_CHECK_LIB(m, sin)
67    
68 orrisroot 1.4 # check pthread library
69 orrisroot 1.12 ACX_PTHREAD
70 orrisroot 1.3 # check termcap library
71     AM_PATH_TERMCAP
72 orrisroot 1.4 # check X Toolkit
73     AM_PATH_XTOOLKIT
74 orrisroot 1.1
75 orrisroot 1.12 # added pthread flags
76     CC="$PTHREAD_CC"
77     CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
78     CXXFLAGS="$CXXFLAGS $PTHREAD_CFLAGS"
79     LIBS="$PTHREAD_LIBS $LIBS"
80    
81 orrisroot 1.1 # FIXME: Replace `main' with a function in `-lsatellite':
82     #AC_CHECK_LIB([satellite], [main])
83     # FIXME: Replace `main' with a function in `-lslshell':
84     #AC_CHECK_LIB([slshell], [main])
85     AC_CHECK_LIB([dl], [dlopen])
86    
87     # Checks for header files.
88     AC_HEADER_DIRENT
89     AC_HEADER_STDC
90     AC_HEADER_SYS_WAIT
91 orrisroot 1.10 AC_CHECK_HEADERS([fcntl.h float.h locale.h malloc.h stddef.h stdlib.h string.h strings.h sys/file.h sys/ioctl.h sys/param.h sys/time.h sys/timeb.h unistd.h \
92     termios.h vfork.h errno.h limits.h memory.h getopt.h pwd.h \
93 orrisroot 1.1 windows.h direct.h io.h process.h])
94    
95     # Checks for typedefs, structures, and compiler characteristics.
96 orrisroot 1.2 AC_HEADER_STDBOOL
97 orrisroot 1.1 AC_C_CONST
98     AC_C_INLINE
99 orrisroot 1.2 AC_TYPE_PID_T
100 orrisroot 1.1 AC_TYPE_SIZE_T
101     AC_HEADER_TIME
102     AC_STRUCT_TM
103     AC_TYPE_UID_T
104     AC_CHECK_TYPE(time_t, long)
105 orrisroot 1.11 dnl sig_t is the type of a signal handler (4.4BSD)
106     AC_CHECK_TYPES(sig_t, , ,
107     [#include <sys/types.h>
108     #include <signal.h> ])
109     AH_BOTTOM(
110     [#ifndef HAVE_SIG_T
111     typedef RETSIGTYPE (*sig_t) ();
112     #endif])
113 orrisroot 1.1
114     # Checks for library functions.
115 orrisroot 1.2 AC_FUNC_CLOSEDIR_VOID
116 orrisroot 1.1 AC_FUNC_FORK
117     AC_PROG_GCC_TRADITIONAL
118     AC_FUNC_LSTAT
119 orrisroot 1.2 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK
120 orrisroot 1.1 AC_FUNC_MALLOC
121     AC_FUNC_MMAP
122 orrisroot 1.2 AC_FUNC_REALLOC
123 orrisroot 1.1 AC_TYPE_SIGNAL
124     AC_FUNC_STAT
125 orrisroot 1.2 AC_FUNC_STRTOD
126 orrisroot 1.1 AC_FUNC_VPRINTF
127 orrisroot 1.10 AC_CHECK_FUNCS([endpwent floor ftime getcwd gethostname gettimeofday memmove memset mkdir munmap pow putenv rmdir setenv setlocale sqrt strchr strdup strpbrk strrchr strstr strtol lrand48 \
128     bzero strerror strncpy snprintf lockf flock vsnprintf])
129 orrisroot 1.1
130     AC_CONFIG_FILES([Makefile
131     satellite4-config
132     lib/Makefile
133     lib/common/Makefile
134     lib/shell/Makefile
135     shell/Makefile
136     etc/Makefile
137     modules/Makefile
138     modules/util/Makefile
139     modules/system/Makefile
140     modules/ispp/Makefile
141 orrisroot 1.2 modules/gpm/Makefile
142     modules/gpm/lib/Makefile
143     modules/gpm/command/Makefile
144     modules/gpm/gpm2ps/Makefile
145     modules/gpm/gpmwin/Makefile
146 orrisroot 1.5 modules/bps/Makefile
147     modules/bps/command/Makefile
148 orrisroot 1.1 modules/ncs/Makefile
149     modules/ncs/lib/Makefile
150     modules/ncs/lib/common/Makefile
151     modules/ncs/lib/simulation/Makefile
152     modules/ncs/lib/main/Makefile
153     modules/ncs/command/Makefile
154     modules/ncs/ncspp/Makefile
155     modules/npe/Makefile
156     modules/npe/lib/Makefile
157     modules/npe/lib/common/Makefile
158     modules/npe/lib/estimation/Makefile
159     modules/npe/lib/user/Makefile
160     modules/npe/lib/ncs/Makefile
161     modules/npe/command/Makefile
162     modules/dcm/Makefile
163     modules/statistics/Makefile
164     modules/statistics/script/Makefile
165     modules/statistics/script/data/Makefile])
166     AC_OUTPUT

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