Develop and Download Open Source Software

Browse CVS Repository

Diff of /satellite/satellite4/configure.in

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

revision 1.1.1.1 by orrisroot, Wed Mar 31 08:15:05 2004 UTC revision 1.19 by orrisroot, Mon Sep 4 14:51:56 2006 UTC
# Line 1  Line 1 
1    #                                               -*- Autoconf -*-
2  # Process this file with autoconf to produce a configure script.  # Process this file with autoconf to produce a configure script.
3  AC_PREREQ(2.53)  
4  AC_INIT(satellite, 4.21.1, okumura@brain.riken.go.jp)  AC_PREREQ(2.59)
5    AC_INIT(satellite, 4.2.3, okumura@brain.riken.go.jp)
6  AC_REVISION($Id$)  AC_REVISION($Id$)
7    
8  AC_CONFIG_SRCDIR(satellite4-config.in)  AC_CONFIG_SRCDIR([satellite4-config.in])
9  AC_CONFIG_AUX_DIR(config)  AC_CONFIG_AUX_DIR([config])
10  AC_PREFIX_DEFAULT(/usr/local/satellite4)  AC_PREFIX_DEFAULT([/usr/local/satellite4])
11    
12  AC_CANONICAL_TARGET  AC_GNU_SOURCE
13  AM_INIT_AUTOMAKE(satellite, 4.21.1)  AC_ISC_POSIX
14  AM_CONFIG_HEADER(config.h)  AC_CYGWIN
15    
16    AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)
17    AM_CONFIG_HEADER([config.h])
18    
19  sl4includedir=$includedir/satellite4  sl4includedir=$includedir/satellite4
20  AC_SUBST(sl4includedir)  AC_SUBST(sl4includedir)
# Line 40  AC_SUBST(systemrcdir) Line 45  AC_SUBST(systemrcdir)
45  modulercdir=$sysconfdir/satellite4  modulercdir=$sysconfdir/satellite4
46  AC_SUBST(modulercdir)  AC_SUBST(modulercdir)
47    
 MODULE_LDFLAGS='-no-undefined -module -avoid-version'  
 AC_SUBST(MODULE_LDFLAGS)  
   
48  # Checks for programs.  # Checks for programs.
49  AM_DISABLE_STATIC  AM_DISABLE_STATIC
 AC_PROG_CC  
50  AC_PROG_CXX  AC_PROG_CXX
51  AC_PROG_YACC  AC_PROG_CC
52  AC_PROG_CPP  AC_PROG_CPP
53  AC_PROG_INSTALL  AC_PROG_INSTALL
54  AC_PROG_LN_S  AC_PROG_LN_S
55  AC_PROG_MAKE_SET  AC_PROG_MAKE_SET
 AC_PROG_MAKE_SET  
56  AC_PROG_RANLIB  AC_PROG_RANLIB
57    AC_PROG_YACC
58  AC_PROG_AWK  AC_PROG_AWK
59  AC_LIBTOOL_DLOPEN  AC_LIBTOOL_DLOPEN
60  AC_PROG_LIBTOOL  AC_PROG_LIBTOOL
# Line 63  AC_SHLIBPATH_VAR Line 64  AC_SHLIBPATH_VAR
64  AC_C_BIGENDIAN  AC_C_BIGENDIAN
65  AM_MAINTAINER_MODE  AM_MAINTAINER_MODE
66    
 AM_PATH_PTHREAD  
   
67  # Checks for libraries.  # Checks for libraries.
68  # FIXME: Replace `main' with a function in `-lm':  # FIXME: Replace `main' with a function in `-lm':
69  AC_CHECK_LIB(m, sin)  AC_CHECK_LIB(m, sin)
70    
71  AC_CHECK_LIB(ncurses, tgetent, have_ncurses=yes, have_ncurses=no)  # check pthread library
72  AC_CHECK_LIB(curses, tgetent, have_curses=yes, have_curses=no)  ACX_PTHREAD
73  AC_CHECK_LIB(termcap, tgetent, have_termcap=yes, have_termcap=no)  # Some platforms use these, so just defineed them.  They can't hurt if they
74  TERMCAP_LIBS=""  # are not supported.
75  if test x$have_ncurses = xyes; then  PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
76    TERMCAP_LIBS="-lncurses"  # At this point, we don't want to muck with the compiler name for threading.
77  elif test x$have_curses = xyes; then  # Let's see who fails, perhaps AIX.  2004-04-23
78    TERMCAP_LIBS="-lcurses"  if test "$PTHREAD_CC" != "$CC"; then
79  elif test x$have_termcap = xyes; then  AC_MSG_ERROR([
80    TERMCAP_LIBS="-ltermcap"  satellite4 does not support platforms that require a special
81  else  compiler binary for thread-safety.
82    AC_MSG_ERROR([*** curses or termcap lib not installed - please install first ***])  ])
83  fi  fi
84  AC_SUBST(TERMCAP_LIBS)  
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':  # FIXME: Replace `main' with a function in `-lsatellite':
91  #AC_CHECK_LIB([satellite], [main])  #AC_CHECK_LIB([satellite], [main])
# Line 91  AC_SUBST(TERMCAP_LIBS) Line 94  AC_SUBST(TERMCAP_LIBS)
94  AC_CHECK_LIB([dl], [dlopen])  AC_CHECK_LIB([dl], [dlopen])
95    
96  # Checks for header files.  # Checks for header files.
97  AC_PATH_X  # 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  AC_HEADER_DIRENT  AC_HEADER_DIRENT
100    AC_HEADER_STDBOOL
101  AC_HEADER_STDC  AC_HEADER_STDC
102  AC_HEADER_SYS_WAIT  AC_HEADER_SYS_WAIT
103  AC_CHECK_HEADERS([vfork.h errno.h fcntl.h float.h limits.h \  AC_HEADER_TIME
104                    malloc.h memory.h stdlib.h string.h strings.h \  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                    sys/ioctl.h sys/file.h sys/param.h sys/time.h \                    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                    sys/timeb.h termios.h unistd.h ncurses.h termcap.h \                    termios.h vfork.h errno.h limits.h memory.h getopt.h pwd.h \
107                    curses.h term.h getopt.h pwd.h \                    windows.h io.h process.h])
                   windows.h direct.h io.h process.h])  
108    
109  # Checks for typedefs, structures, and compiler characteristics.  # Checks for typedefs, structures, and compiler characteristics.
110  AC_C_CONST  AC_C_CONST
111  AC_C_INLINE  AC_C_INLINE
112    AC_TYPE_MODE_T
113    AC_TYPE_OFF_T
114    AC_TYPE_PID_T
115  AC_TYPE_SIZE_T  AC_TYPE_SIZE_T
116  AC_HEADER_TIME  AC_TYPE_SIGNAL
 AC_STRUCT_TM  
117  AC_TYPE_UID_T  AC_TYPE_UID_T
118    AC_STRUCT_TM
119    AC_CHECK_TYPE(ssize_t, int)
120  AC_CHECK_TYPE(time_t, long)  AC_CHECK_TYPE(time_t, long)
121    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    
130  # Checks for library functions.  # Checks for library functions.
131  AC_FUNC_ERROR_AT_LINE  # libsl4 : endpwent getcwd memmove memset mkdir putenv rmdir setenv snprintf
132    #          strstr vasprintf vsnprintf wvsprintf _vscprintf
133    AC_FUNC_CLOSEDIR_VOID
134  AC_FUNC_FORK  AC_FUNC_FORK
135  AC_PROG_GCC_TRADITIONAL  AC_PROG_GCC_TRADITIONAL
136  AC_FUNC_LSTAT  AC_FUNC_LSTAT
137    AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK
138  AC_FUNC_MALLOC  AC_FUNC_MALLOC
139  AC_FUNC_MMAP  AC_FUNC_MMAP
140  AC_TYPE_SIGNAL  AC_FUNC_REALLOC
141  AC_FUNC_STAT  AC_FUNC_STAT
142    AC_FUNC_STRTOD
143  AC_FUNC_VPRINTF  AC_FUNC_VPRINTF
144  AC_CHECK_FUNCS([bzero endpwent floor ftime getcwd gethostname gettimeofday memmove memset mkdir pow putenv rmdir setenv sqrt strchr strdup strerror strpbrk strrchr strstr strtol strncpy snprintf lockf flock vsnprintf])  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    
148    # replaced cflags and libs for pthread support
149    CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
150    CXXFLAGS="$CXXFLAGS $PTHREAD_CFLAGS"
151    LIBS="$PTHREAD_LIBS $LIBS"
152    
153  AC_CONFIG_FILES([Makefile  AC_CONFIG_FILES([Makefile
154                   satellite4-config                   satellite4-config
155                   lib/Makefile                   lib/Makefile
156                     lib/libsl4/Makefile
157                   lib/common/Makefile                   lib/common/Makefile
158                   lib/shell/Makefile                   lib/shell/Makefile
159                   shell/Makefile                   shell/Makefile
# Line 134  AC_CONFIG_FILES([Makefile Line 162  AC_CONFIG_FILES([Makefile
162                   modules/util/Makefile                   modules/util/Makefile
163                   modules/system/Makefile                   modules/system/Makefile
164                   modules/ispp/Makefile                   modules/ispp/Makefile
165                     modules/gpm/Makefile
166                     modules/gpm/lib/Makefile
167                     modules/gpm/command/Makefile
168                     modules/gpm/gpm2ps/Makefile
169                     modules/gpm/gpmwin/Makefile
170                     modules/bps/Makefile
171                     modules/bps/command/Makefile
172                   modules/ncs/Makefile                   modules/ncs/Makefile
173                   modules/ncs/lib/Makefile                   modules/ncs/lib/Makefile
174                   modules/ncs/lib/common/Makefile                   modules/ncs/lib/common/Makefile
# Line 152  AC_CONFIG_FILES([Makefile Line 187  AC_CONFIG_FILES([Makefile
187                   modules/statistics/Makefile                   modules/statistics/Makefile
188                   modules/statistics/script/Makefile                   modules/statistics/script/Makefile
189                   modules/statistics/script/data/Makefile])                   modules/statistics/script/data/Makefile])
   
 AC_CONFIG_SUBDIRS(modules/gpm-gtk)  
   
190  AC_OUTPUT  AC_OUTPUT

Legend:
Removed from v.1.1.1.1  
changed lines
  Added in v.1.19

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