source: Sophya/trunk/SophyaLib/Mgr/configure.in@ 3835

Last change on this file since 3835 was 1609, checked in by cmv, 24 years ago

changement Utils -> SUtils cmv 31/7/01

File size: 1.6 KB
RevLine 
[1254]1AC_INIT(SysTools/ctimer.h)
[1271]2AM_INIT_AUTOMAKE(Sophya, 0.9.95)
[1254]3AM_CONFIG_HEADER(config.h)
4
5dnl check if run from srcdir
6if test -f SysTools/ctimer.h; then
7 AC_MSG_ERROR("do not run configure from the distribution directory")
8fi
9
10AC_CANONICAL_HOST
11
[1272]12
[1254]13dnl Checks for programs.
14AC_PROG_CXX
[1272]15if test `uname` = "OSF1" -a $GXX = "yes" ; then
16 CXXFLAGS="${CXXFLAGS-} -gcoff"
17 export CXXFLAGS
18fi
19
[1254]20AC_PROG_CC
21AC_PROG_INSTALL
22AC_PROG_RANLIB
23
24dnl Checks for typedefs, structures, and compiler characteristics.
25AC_C_CONST
26AC_C_INLINE
27AC_TYPE_SIZE_T
28AC_C_BIGENDIAN
29AC_C_LONG_DOUBLE
30AC_CHECK_SIZEOF(short)
31AC_CHECK_SIZEOF(int)
32AC_CHECK_SIZEOF(long)
33AC_CHECK_SIZEOF(long long)
34AC_CHECK_SIZEOF(float)
35AC_CHECK_SIZEOF(double)
36
37AC_DEFINE_UNQUOTED(CXX, ${CXX} )
38AC_DEFINE_UNQUOTED(HOST_CPU, $host_cpu)
39AC_DEFINE_UNQUOTED(HOST_VENDOR, $host_vendor)
40AC_DEFINE_UNQUOTED(HOST_OS, $host_os)
41
42
43dnl Check for functions
44AC_CHECK_FUNCS(random)
45AC_CHECK_FUNCS(nice)
46
[1604]47cp $srcdir/BaseTools/machdefs_ac.h machdefs.h
[1254]48
49
50echo "building include directory..."
51
52mkdir include 2>/dev/null
53cd include
54if test -d $srcdir; then
55 incsrcdir=$srcdir
56elif test -d ../$srcdir; then
57 incsrcdir=../$srcdir
58else
59 AC_MSG_ERROR("cannot find path to source dir")
60fi
[1271]61
62
[1609]63for xdir in BaseTools SysTools SUtils TArray HiStats NTools SkyMap Samba SkyT; do
[1254]64 if test -d $incsrcdir/$xdir ; then
65 for fn in $incsrcdir/$xdir/*.h; do
66 ln -sf $fn .
67 done
68 fi
69done
70echo "done."
71cd ..
72
[1604]73AC_OUTPUT(Makefile include/Makefile BaseTools/Makefile SysTools/Makefile
[1609]74 SUtils/Makefile TArray/Makefile
[1271]75 HiStats/Makefile NTools/Makefile SkyMap/Makefile
76 Samba/Makefile SkyT/Makefile)
[1254]77
Note: See TracBrowser for help on using the repository browser.