source: branches/r9/pkgs/configure.in @ 4916

Last change on this file since 4916 was 4916, checked in by gah, 8 years ago
File size: 6.0 KB
Line 
1AC_INIT([Rappture],[1.5],[rappture@nanohub.org])
2AC_CONFIG_AUX_DIR(cf)
3AC_CONFIG_HEADER(config.h)
4
5AC_PROG_INSTALL
6AC_PROG_RANLIB
7AC_PROG_LN_S
8AC_PROG_MKDIR_P
9AC_PROG_MAKE_SET
10
11# Check for C, C++, and FORTRAN
12AC_PROG_CC
13AC_PROG_CXX
14# Avoid g95
15AC_PROG_F77([g77 gfortran f77 fort77 f90 xlf xlf90 fl32])
16
17AC_LANG([C])
18
19AC_HEADER_STDC
20AC_CHECK_FUNC(atol,,AC_MSG_ERROR(oops! no atol ?!?))
21
22AC_LANG([C++])
23AC_PATH_X
24
25# -----------------------------------------------------------------------
26#
27# Compiler characteristics:
28#   Check for existence of types of size_t and pid_t
29#
30# -----------------------------------------------------------------------
31
32AC_C_BIGENDIAN
33AC_CHECK_SIZEOF(int)
34AC_CHECK_SIZEOF(long)
35AC_CHECK_SIZEOF(long long)
36AC_CHECK_SIZEOF(void *)
37
38SIZEOF_LONG="${ac_cv_sizeof_long}"
39SIZEOF_LONG_LONG="${ac_cv_sizeof_long_long}"
40SIZEOF_VOID_P="${ac_cv_sizeof_void_p}"
41SIZEOF_INT="${ac_cv_sizeof_int}"
42
43
44AC_CHECK_FUNCS(sysinfo)
45AC_CHECK_FUNCS(gettimeofday)
46AC_CHECK_FUNC(localtime,,AC_MSG_ERROR(oops! no localtime ?!?))
47AC_CHECK_FUNC(getenv,,AC_MSG_ERROR(oops! no getenv ?!?))
48
49AC_CHECK_HEADERS(sys/sysinfo.h)
50
51HAVE_LIBNCURSES=no
52AC_CHECK_LIB(ncurses, clrtoeol,HAVE_LIBNCURSES=yes,AC_MSG_ERROR([ncurses library missing?]))
53AC_CHECK_HEADERS(ncurses.h,,AC_MSG_WARN(ncurses headers missing ?))
54
55AC_CHECK_LIB(stdc++, main,,AC_MSG_ERROR(librappture requires libstdc++))
56AC_CHECK_HEADERS(algorithm,,AC_MSG_WARN(STL classes missing ?))
57AC_CHECK_HEADERS(cctype,,AC_MSG_WARN(STL classes missing ?))
58AC_CHECK_HEADERS(cfloat,,AC_MSG_WARN(STL classes missing ?))
59AC_CHECK_HEADERS(cmath,,AC_MSG_WARN(STL classes missing ?))
60AC_CHECK_HEADERS(cstdio,,AC_MSG_WARN(STL classes missing ?))
61AC_CHECK_HEADERS(cstdlib,,AC_MSG_WARN(STL classes missing ?))
62AC_CHECK_HEADERS(cstring,,AC_MSG_WARN(STL classes missing ?))
63AC_CHECK_HEADERS(fstream,,AC_MSG_WARN(STL classes missing ?))
64AC_CHECK_HEADERS(list,,AC_MSG_WARN(STL classes missing ?))
65AC_CHECK_HEADERS(iostream,,AC_MSG_WARN(STL classes missing ?))
66AC_CHECK_HEADERS(iterator,,AC_MSG_WARN(STL classes missing ?))
67AC_CHECK_HEADERS(sstream,,AC_MSG_WARN(STL classes missing ?))
68AC_CHECK_HEADERS(stack,,AC_MSG_WARN(STL classes missing ?))
69AC_CHECK_HEADERS(string,,AC_MSG_WARN(STL classes missing ?))
70AC_CHECK_HEADERS(vector,,AC_MSG_WARN(STL classes missing ?))
71
72AC_CHECK_HEADERS(assert.h,,AC_MSG_WARN(C headers missing ?))
73AC_CHECK_HEADERS(ctype.h,,AC_MSG_WARN(C headers missing ?))
74AC_CHECK_HEADERS(errno.h,,AC_MSG_WARN(C headers missing ?))
75AC_CHECK_HEADERS(limits.h,,AC_MSG_WARN(C headers missing ?))
76AC_CHECK_HEADERS(string.h,,AC_MSG_WARN(C headers missing ?))
77AC_CHECK_HEADERS(stdlib.h,,AC_MSG_WARN(C headers missing ?))
78AC_CHECK_HEADERS(stddef.h,,AC_MSG_WARN(C headers missing ?))
79AC_CHECK_HEADERS(float.h,,AC_MSG_WARN(C headers missing ?))
80AC_CHECK_HEADERS(math.h,,AC_MSG_WARN(C headers missing ?))
81dnl AC_CHECK_HEADERS(ieeefp.h,,AC_MSG_WARN(C headers missing ?))
82AC_CHECK_HEADERS(malloc.h,,AC_MSG_WARN(C headers missing ?))
83AC_CHECK_HEADERS(memory.h,,AC_MSG_WARN(C headers missing ?))
84AC_CHECK_HEADERS(unistd.h,,AC_MSG_WARN(C headers missing ?))
85
86AC_CHECK_HEADERS(inttypes.h,,AC_MSG_WARN(C headers missing ?))
87if test "${ac_cv_header_inttypes_h}" = "yes" ; then
88  HAVE_INTTYPES_H=1
89else
90  HAVE_INTTYPES_H=0
91fi
92
93AC_CHECK_LIB(vtkDICOM, main, HAVE_LIBVTKDICOM=yes, HAVE_LIBVTKDICOM=no)
94
95if test "$with_install" != "yes"; then
96    INSTALL_PREFIX=$with_install
97else
98    INSTALL_PREFIX=$prefix
99fi
100
101if test "${libdir}" != "${prefix}/lib"; then
102    LIB_SEARCH_DIRS="-L${prefix}/lib -L${libdir}"
103else
104    LIB_SEARCH_DIRS="-L${libdir}"
105fi
106
107. ${exec_prefix}/lib/rapptureConfig.sh
108. ${exec_prefix}/lib/tclConfig.sh
109. ${exec_prefix}/lib/tkConfig.sh
110
111echo RAPPTURE_VERSION=$RAPPTURE_VERSION
112   
113#--------------------------------------------------------------------
114# Set the default compiler switches based on the --enable-symbols
115# option.
116#--------------------------------------------------------------------
117
118SC_CONFIG_CFLAGS
119SC_ENABLE_SYMBOLS
120
121AC_SUBST(CFLAGS_DEBUG)
122AC_SUBST(CFLAGS_OPTIMIZE)
123AC_SUBST(HAVE_INTTYPES_H)
124AC_SUBST(HAVE_LIBVTKDICOM)
125AC_SUBST(HAVE_LIBNCURSES)
126AC_SUBST(INSTALL_PREFIX)
127AC_SUBST(LIB_SEARCH_DIRS)
128AC_SUBST(MAKE, ${make_command})
129AC_SUBST(SVN_VERSION)
130AC_SUBST(SHLIB_CFLAGS)
131AC_SUBST(SHLIB_LD)
132AC_SUBST(SHLIB_LDFLAGS)
133AC_SUBST(SHLIB_SUFFIX)
134AC_SUBST(SIZEOF_INT)
135AC_SUBST(SIZEOF_LONG)
136AC_SUBST(SIZEOF_LONG_LONG)
137AC_SUBST(SIZEOF_VOID_P)
138AC_SUBST(STLIB_LD)
139AC_SUBST(TCL_INC_SPEC)
140AC_SUBST(TCL_LIB_SPEC)
141AC_SUBST(TCL_CFLAGS_DEBUG)
142AC_SUBST(TCL_CFLAGS_OPTIMIZE)
143AC_SUBST(TCL_SHLIB_CFLAGS)
144AC_SUBST(TCL_SHLIB_LD)
145AC_SUBST(TCL_SHLIB_LDFLAGS)
146AC_SUBST(TCL_SHLIB_SUFFIX)
147AC_SUBST(TK_INC_SPEC)
148AC_SUBST(TK_LIB_SPEC)
149AC_SUBST(TCL_CFLAGS_DEBUG)
150AC_SUBST(TCL_SHLIB_CFLAGS)
151AC_SUBST(TCL_SHLIB_SUFFIX)
152AC_SUBST(TCL_SHLIB_LD)
153AC_SUBST(TCL_SHLIB_LDFLAGS)
154AC_SUBST(TK_XLIBSW)
155AC_SUBST(TK_VERSION)
156AC_SUBST(VTK_TCL_DIR)
157AC_SUBST(VTK_VERSION)
158AC_SUBST(X_INCLUDES)
159AC_SUBST(X_LIBRARIES)
160AC_SUBST(WORDSIZE)
161AC_SUBST(RAPPTURE_MAJOR_VERSION)
162AC_SUBST(RAPPTURE_MINOR_VERSION)
163AC_SUBST(RAPPTURE_RELEASE_SERIAL)
164AC_SUBST(RAPPTURE_VERSION)
165
166AC_SUBST(WITH_VTK)
167AC_SUBST(WITH_R)
168AC_SUBST(WITH_JAVA)
169AC_SUBST(WITH_MATLAB)
170AC_SUBST(WITH_MKOCTFILE2)
171AC_SUBST(WITH_MKOCTFILE3)
172AC_SUBST(WITH_OCTAVE)
173AC_SUBST(WITH_PERL)
174AC_SUBST(WITH_PYTHON)
175AC_SUBST(WITH_RUBY)
176AC_SUBST(WITH_RUBY_SITELIBDIR)
177AC_SUBST(WITH_TCL)
178
179dnl read Makefile.in and write Makefile
180AC_CONFIG_FILES([
181    DicomToVtk/Makefile
182    DicomToVtk/pkgIndex.tcl
183    DxToVtk/Makefile
184    DxToVtk/pkgIndex.tcl
185    Makefile
186    PdbToVtk/Makefile
187    PdbToVtk/pkgIndex.tcl
188    builder/Makefile
189    builder/pkgIndex.tcl
190    builder/scripts/Makefile
191    diffview/Makefile
192    diffview/pkgIndex.tcl
193    hotspot/Makefile
194    hotspot/pkgIndex.tcl
195    listbox/Makefile
196    listbox/pkgIndex.tcl
197    objects/Makefile
198    p2p/Makefile
199    placard/Makefile
200    placard/pkgIndex.tcl
201    readpoints/Makefile
202    readpoints/pkgIndex.tcl
203    runner/Makefile
204    runner/pkgIndex.tcl
205    runner/scripts/Makefile
206    squeezer/Makefile
207    squeezer/pkgIndex.tcl
208    system/Makefile
209    system/pkgIndex.tcl
210    tester/Makefile
211    tester/pkgIndex.tcl
212    tester/scripts/Makefile
213])
214AC_OUTPUT
215       
Note: See TracBrowser for help on using the repository browser.