File: configure.in

package info (click to toggle)
libmodplug 1%3A0.8.4-1%2Blenny2
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 2,344 kB
  • ctags: 2,855
  • sloc: cpp: 25,699; sh: 8,111; ansic: 194; makefile: 131
file content (49 lines) | stat: -rwxr-xr-x 1,354 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
38
39
40
41
42
43
44
45
46
47
48
49
dnl Process this file with autoconf to produce a configure script.
AC_INIT
AC_PREREQ([2.60])
AC_CONFIG_SRCDIR([Makefile.am])

AM_INIT_AUTOMAKE(libmodplug, 0.8.4)
AC_CONFIG_HEADERS([src/config.h])

dnl Checks for programs.
dnl  I am disabling static libraries here because otherwise libtool insists on
dnl  compiling everything twice -- once with and once without -fPIC.  Pisses me
dnl  off.  Just do everything with -fPIC, damnit!  Compiling everything twice
dnl  probably wastes more cycles than not using -fPIC saves.
AC_DISABLE_STATIC
AM_DISABLE_STATIC
AC_PROG_CC
AC_PROG_CXX
AC_LANG([C++])
AC_C_BIGENDIAN     #this will cause problems when cross-compiling...
AM_PROG_LIBTOOL
AC_HEADER_STDC
AC_CHECK_HEADERS([inttypes.h stdint.h])

CXXFLAGS="$CXXFLAGS -fno-exceptions -Wall -ffast-math -D_REENTRANT"
# CXXFLAGS="-fno-exceptions -g -Wall -ffast-math -D_REENTRANT `glib-config --cflags`"

case ${target_os} in
	*sun* | *solaris*)
		CXXFLAGS="$CXXFLAGS -fpermissive"
		;;
esac

# portable types. requires autoconf 2.60
# `configure' will check if these are defined in system headers.
# if not, it will auto-detect and define them in `config.h'
AC_TYPE_INT8_T
AC_TYPE_UINT8_T
AC_TYPE_INT16_T
AC_TYPE_UINT16_T
AC_TYPE_INT32_T
AC_TYPE_UINT32_T
AC_TYPE_INT64_T
AC_TYPE_UINT64_T


AC_CONFIG_FILES([Makefile
          src/Makefile
	  libmodplug.pc])
AC_OUTPUT