File: configure.ac

package info (click to toggle)
fitspng 1.4-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 1,804 kB
  • sloc: sh: 1,232; ansic: 860; makefile: 14
file content (37 lines) | stat: -rw-r--r-- 889 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37

AC_PREREQ([2.69])
AC_INIT([fitspng],[1.4],[hroch@physics.muni.cz])
AM_INIT_AUTOMAKE

AC_PROG_CC
AC_PROG_INSTALL
AC_FUNC_MALLOC

AC_CHECK_HEADERS([stdlib.h string.h])
AC_CHECK_HEADERS([math.h])
AC_CHECK_LIB([m], [powf])

dnl FITSIO library
AC_CHECK_HEADERS([fitsio.h])
AC_CHECK_LIB([cfitsio],[ffopen],[],[
    echo "configure: no cfitsio library found"
    echo
    echo "Please check installation of cfitsio and try again."
    echo "Look at http://heasarc.gsfc.nasa.gov/fitsio for more information."
    echo
    exit 1],
    [-lm])

dnl PNG library
AC_CHECK_HEADERS([png.h])
AC_CHECK_LIB([png],[png_init_io],[],[
    echo "configure: no png library found"
    echo
    echo "Please check installation of png and try again."
    echo "Look at http://libpng.sourceforge.net/ for more information."
    echo
    exit 1],
    [-lm])

AC_CONFIG_FILES([Makefile] [images/Makefile])
AC_OUTPUT