File: configure.ac

package info (click to toggle)
gsmc 1.1-1.3
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 644 kB
  • ctags: 230
  • sloc: ansic: 3,000; sh: 275; makefile: 44
file content (41 lines) | stat: -rw-r--r-- 966 bytes parent folder | download | duplicates (3)
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
38
39
40
41
#                                               -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.

AC_PREREQ(2.57)
AC_INIT(gsmc, 1.0, ik5nax@amsat.org)
AC_CONFIG_SRCDIR([calc.c])
AM_INIT_AUTOMAKE(gsmc, 1.0, ik5nax@amsat.org)

# Checks for programs.
AC_PROG_CC
pkg_modules="gtk+-2.0"
PKG_CHECK_MODULES(PACKAGE,[$pkg_modules])
AC_SUBST(PACKAGE_CFLAGS)
AC_SUBST(PACKAGE_LIBS)

# Checks for libraries.
LIBS=" "
PKG_LIB2=`pkg-config --libs gtk+-2.0`
PKG_LIB=""
for i in $PKG_LIB2 ; do
        case $i in 
                -l*) PKG_LIB="$i $PKG_LIB" ;;
                -L*) LIBS="$i $LIBS" ;;
        esac
done
for i in $PKG_LIB ; do
        j=${i#'-l'}
        AC_CHECK_LIB($j,main)
done

# Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS([fcntl.h string.h unistd.h])

# Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST

# Checks for library functions.
AC_CHECK_FUNCS([sqrt])
AC_OUTPUT([Makefile gsmc.1])