File: configure.in

package info (click to toggle)
spacearyarya 1.0.2-7
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, jessie, jessie-kfreebsd, lenny, squeeze, wheezy
  • size: 1,504 kB
  • ctags: 240
  • sloc: ansic: 1,367; sh: 369; makefile: 79
file content (41 lines) | stat: -rw-r--r-- 1,147 bytes parent folder | download | duplicates (2)
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
dnl Process this file with autoconf to produce a configure script.
AC_INIT(src/geki4.h)
AM_INIT_AUTOMAKE(SpaceAryarya-KXL,1.0.2)

dnl Checks for programs.
AC_PROG_CC
AC_PROG_MAKE_SET

dnl Checks for libraries.
dnl Replace `main' with a function in -lKXL:
AC_CHECK_LIB(KXL, main)
AC_PATH_XTRA
AM_PATH_KXL

dnl Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS(unistd.h)

dnl Checks for typedefs, structures, and compiler characteristics.

dnl Checks for library functions.

if test "x$prefix" = "xNONE"; then
        DATA_PATH=/usr/local/share/SpaceAryarya/data
        BMP_PATH=/usr/local/share/SpaceAryarya/bmp
        WAV_PATH=/usr/local/share/SpaceAryarya/wav
else
        DATA_PATH=$prefix/share/SpaceAryarya/data
        BMP_PATH=$prefix/share/SpaceAryarya/bmp
        WAV_PATH=$prefix/share/SpaceAryarya/wav
fi
AC_DEFINE_UNQUOTED(DATA_PATH,"$DATA_PATH")
AC_DEFINE_UNQUOTED(BMP_PATH,"$BMP_PATH")
AC_DEFINE_UNQUOTED(WAV_PATH,"$WAV_PATH")
AC_DEFINE_UNQUOTED(TITLE,"$PACKAGE $VERSION")
AC_SUBST(DATA_PATH)
AC_SUBST(BMP_PATH)
AC_SUBST(WAV_PATH)

AC_OUTPUT([data/Makefile wav/Makefile bmp/Makefile src/Makefile
spacearyarya.spec Makefile])