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.2 - (show annotations) (download)
Wed Jul 28 05:44:24 2004 UTC (19 years, 8 months ago) by orrisroot
Branch: MAIN
Changes since 1.1: +20 -15 lines
reconfigure autotools.

1 # Process this file with autoconf to produce a configure script.
2 AC_PREREQ(2.57)
3 AC_INIT(satellite, 4.21.1, okumura@brain.riken.go.jp)
4 AC_REVISION($Id: configure.in,v 1.1.1.1 2004/03/31 08:15:05 orrisroot Exp $)
5
6 AC_CONFIG_SRCDIR(satellite4-config.in)
7 AC_CONFIG_AUX_DIR(config)
8 AC_PREFIX_DEFAULT(/usr/local/satellite4)
9
10 AC_CANONICAL_TARGET
11 AM_INIT_AUTOMAKE(satellite, 4.21.1)
12 AM_CONFIG_HEADER(config.h)
13
14 sl4includedir=$includedir/satellite4
15 AC_SUBST(sl4includedir)
16
17 sl4libdir=$libdir
18 AC_SUBST(sl4libdir)
19
20 sl4libexecdir=$libexecdir/satellite4
21 AC_SUBST(sl4libexecdir)
22
23 docdir=$datadir/doc
24 AC_SUBST(docdir)
25 sl4docdir=$docdir/satellite4
26 AC_SUBST(sl4docdir)
27
28 sl4sharedir=$datadir/satellite4
29 AC_SUBST(sl4sharedir)
30
31 examplesdir=$datadir/examples/satellite4
32 AC_SUBST(examplesdir)
33
34 moduledir=$libdir/satellite4
35 AC_SUBST(moduledir)
36
37 systemrcdir=$sysconfdir/satellite4
38 AC_SUBST(systemrcdir)
39
40 modulercdir=$sysconfdir/satellite4
41 AC_SUBST(modulercdir)
42
43 MODULE_LDFLAGS='-no-undefined -module -avoid-version'
44 AC_SUBST(MODULE_LDFLAGS)
45
46 # Checks for programs.
47 AM_DISABLE_STATIC
48 AC_PROG_CXX
49 AC_PROG_CC
50 AC_PROG_CPP
51 AC_PROG_INSTALL
52 AC_PROG_LN_S
53 AC_PROG_MAKE_SET
54 AC_PROG_RANLIB
55 AC_PROG_YACC
56 AC_PROG_AWK
57 AC_LIBTOOL_DLOPEN
58 AC_PROG_LIBTOOL
59 AM_PROG_LEX
60 AC_SHLIBPATH_VAR
61
62 AC_C_BIGENDIAN
63 AM_MAINTAINER_MODE
64
65 AM_PATH_PTHREAD
66
67 # Checks for libraries.
68 # FIXME: Replace `main' with a function in `-lm':
69 AC_CHECK_LIB(m, sin)
70
71 AC_CHECK_LIB(ncurses, tgetent, have_ncurses=yes, have_ncurses=no)
72 AC_CHECK_LIB(curses, tgetent, have_curses=yes, have_curses=no)
73 AC_CHECK_LIB(termcap, tgetent, have_termcap=yes, have_termcap=no)
74 TERMCAP_LIBS=""
75 if test x$have_ncurses = xyes; then
76 TERMCAP_LIBS="-lncurses"
77 elif test x$have_curses = xyes; then
78 TERMCAP_LIBS="-lcurses"
79 elif test x$have_termcap = xyes; then
80 TERMCAP_LIBS="-ltermcap"
81 else
82 AC_MSG_ERROR([*** curses or termcap lib not installed - please install first ***])
83 fi
84 AC_SUBST(TERMCAP_LIBS)
85
86 # FIXME: Replace `main' with a function in `-lsatellite':
87 #AC_CHECK_LIB([satellite], [main])
88 # FIXME: Replace `main' with a function in `-lslshell':
89 #AC_CHECK_LIB([slshell], [main])
90 AC_CHECK_LIB([dl], [dlopen])
91
92 # Checks for header files.
93 AC_PATH_X
94 AC_HEADER_DIRENT
95 AC_HEADER_STDC
96 AC_HEADER_SYS_WAIT
97 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 termios.h unistd.h \
98 vfork.h errno.h limits.h memory.h getopt.h pwd.h \
99 ncurses.h termcap.h curses.h term.h \
100 windows.h direct.h io.h process.h])
101
102 # Checks for typedefs, structures, and compiler characteristics.
103 AC_HEADER_STDBOOL
104 AC_C_CONST
105 AC_C_INLINE
106 AC_TYPE_PID_T
107 AC_TYPE_SIZE_T
108 AC_HEADER_TIME
109 AC_STRUCT_TM
110 AC_TYPE_UID_T
111 AC_CHECK_TYPE(time_t, long)
112
113 # Checks for library functions.
114 AC_FUNC_CLOSEDIR_VOID
115 AC_FUNC_FORK
116 AC_PROG_GCC_TRADITIONAL
117 AC_FUNC_LSTAT
118 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK
119 AC_FUNC_MALLOC
120 AC_FUNC_MMAP
121 AC_FUNC_REALLOC
122 AC_TYPE_SIGNAL
123 AC_FUNC_STAT
124 AC_FUNC_STRTOD
125 AC_FUNC_VPRINTF
126 AC_CHECK_FUNCS([endpwent floor ftime getcwd gethostname gettimeofday memset mkdir munmap pow putenv rmdir setenv setlocale sqrt strchr strdup strpbrk strrchr strstr strtol \
127 bzero memmove strerror strncpy snprintf lockf flock vsnprintf])
128
129 AC_CONFIG_FILES([Makefile
130 satellite4-config
131 lib/Makefile
132 lib/common/Makefile
133 lib/shell/Makefile
134 shell/Makefile
135 etc/Makefile
136 modules/Makefile
137 modules/util/Makefile
138 modules/system/Makefile
139 modules/ispp/Makefile
140 modules/gpm/Makefile
141 modules/gpm/lib/Makefile
142 modules/gpm/command/Makefile
143 modules/gpm/gpm2ps/Makefile
144 modules/gpm/gpmwin/Makefile
145 modules/ncs/Makefile
146 modules/ncs/lib/Makefile
147 modules/ncs/lib/common/Makefile
148 modules/ncs/lib/simulation/Makefile
149 modules/ncs/lib/main/Makefile
150 modules/ncs/command/Makefile
151 modules/ncs/ncspp/Makefile
152 modules/npe/Makefile
153 modules/npe/lib/Makefile
154 modules/npe/lib/common/Makefile
155 modules/npe/lib/estimation/Makefile
156 modules/npe/lib/user/Makefile
157 modules/npe/lib/ncs/Makefile
158 modules/npe/command/Makefile
159 modules/dcm/Makefile
160 modules/statistics/Makefile
161 modules/statistics/script/Makefile
162 modules/statistics/script/data/Makefile])
163 AC_OUTPUT

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