source: Sophya/trunk/ArchTOIPipe/configure.in@ 1702

Last change on this file since 1702 was 1692, checked in by aubourg, 24 years ago

thread debugging

File size: 2.3 KB
Line 
1dnl Process this file with autoconf to produce a configure script.
2AC_INIT(kernel/toi.cc)
3AC_CONFIG_HEADER(conf.h)
4
5AC_ARG_WITH(sophya, [ --with-sophya Compile and link with SOPHYA],
6 use_sophya=1, use_sophya=0)
7
8AC_SUBST(use_sophya)
9
10if test `uname` = OSF1 -a -z "$CXX"; then
11 if test -x /usr/bin/cxx; then
12 echo "using cxx on alpha"
13 CXX=cxx
14 export CXX
15 fi
16fi
17
18AC_PROG_CC
19AC_PROG_CXX
20
21if test $GCC = "yes"; then
22 gcc=$CC
23else
24 gcc=gcc
25fi
26AC_SUBST(gcc)
27
28AC_CHECK_SIZEOF(short)
29AC_CHECK_SIZEOF(int)
30AC_CHECK_SIZEOF(long)
31AC_CHECK_SIZEOF(long long)
32AC_CHECK_SIZEOF(float)
33AC_CHECK_SIZEOF(double)
34AC_CHECK_SIZEOF(long double)
35
36dnl look for cfitsio include and cfitsio library
37dnl if installed in /usr/local, nothing to do
38
39AC_MSG_CHECKING("for cfitsio lib")
40MACHDIR=`uname`-$CXX
41if test -f $ARCHBASEREP/$MACHDIR/Libs/libcfitsio.a; then
42 cfitslibdir='-L$(ARCHBASEREP)/$(MACHDIR)/Libs'
43elif test -f $CFITSIOLIBDIR/$MACHDIR/Libs/libcfitsio.a; then
44 cfitslibdir='-L$(CFITSIOLIBDIR)/$(MACHDIR)/Libs'
45elif test -f $CFITSIOLIBDIR/$MACHDIR/libcfitsio.a; then
46 cfitslibdir='-L$(CFITSIOLIBDIR)/$(MACHDIR)'
47elif test -f $CFITSIOLIBDIR/`uname`/lib/libcfitsio.a; then
48 cfitslibdir='-L$(CFITSIOLIBDIR)/'`uname`/lib
49elif test -f $CFITSIOLIBDIR/`uname`/libcfitsio.a; then
50 cfitslibdir='-L$(CFITSIOLIBDIR)/'`uname`
51elif test -f $CFITSIOLIBDIR/libcfitsio.a; then
52 cfitslibdir='-L$(CFITSIOLIBDIR)'
53elif test -f $CFITSIODIR/libcfitsio.a; then
54 cfitslibdir='-L$(CFITSIODIR)'
55elif test -f /usr/local/lib/libcfitsio.a; then
56 cfitslibdir=""
57else
58 AC_MSG_ERROR("Cannot find cfitsio library")
59fi
60AC_MSG_RESULT($cfitslibdir)
61AC_SUBST(cfitslibdir)
62
63AC_MSG_CHECKING("for cfitsio includes")
64if test -f $CFITSIODIR/fitsio.h; then
65 cfitsincdir='-I$(CFITSIODIR)'
66elif test -f /usr/local/include/fitsio.h; then
67 cfitsincdir=""
68else
69 AC_MSG_ERROR("Cannot find cfitsio include fitsio.h")
70fi
71AC_MSG_RESULT($cfitsincdir)
72AC_SUBST(cfitsincdir)
73
74dnl Checks for libraries.
75dnl AC_CHECK_LIB(cfitsio, ffread,,AC_MSG_ERROR("Cannot find cfitsio library"))
76AC_CHECK_LIB(m, sin)
77
78dnl Checks for header files.
79AC_HEADER_STDC
80AC_CHECK_HEADERS(values.h stdint.h)
81
82outfiles="Makefile kernel/Makefile processors/Makefile pipes/Makefile"
83if [[ $use_sophya = 1 ]]; then
84 outfiles="$outfiles sophya/Makefile"
85fi
86
87AC_OUTPUT($outfiles)
88
Note: See TracBrowser for help on using the repository browser.