~ubuntu-branches/ubuntu/trusty/manaplus/trusty-proposed

« back to all changes in this revision

Viewing changes to configure.ac

  • Committer: Package Import Robot
  • Author(s): Patrick Matthäi
  • Date: 2013-09-17 10:35:51 UTC
  • mfrom: (1.1.10)
  • Revision ID: package-import@ubuntu.com-20130917103551-az7p3nz9jgxwqjfn
Tags: 1.3.9.15-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
AC_PREREQ(2.59)
2
 
AC_INIT([ManaPlus], [1.3.9.1], [akaras@inbox.ru], [manaplus])
 
2
AC_INIT([ManaPlus], [1.3.9.15], [akaras@inbox.ru], [manaplus])
3
3
AM_INIT_AUTOMAKE([1.9])
4
4
AC_CONFIG_HEADERS([config.h:config.h.in])
5
5
AC_LANG_CPLUSPLUS
32
32
    AC_FUNC_REALLOC
33
33
fi
34
34
 
 
35
AC_C_INLINE
35
36
AC_FUNC_SELECT_ARGTYPES
36
37
AC_FUNC_VPRINTF
 
38
AC_FUNC_FORK
 
39
AC_FUNC_MMAP
37
40
AC_CHECK_FUNCS([atexit floor getcwd gethostbyname memset mkdir select socket])
 
41
AC_CHECK_FUNCS([clock_gettime dup2 gettimeofday memchr memmove pow putenv])
 
42
AC_CHECK_FUNCS([realpath setenv setlocale sqrt strchr munmap])
 
43
#AC_CHECK_HEADER_STDBOOL
 
44
AC_CHECK_HEADERS([libintl.h limits.h sys/param.h sys/time.h wchar.h])
 
45
 
 
46
AC_TYPE_INT8_T
 
47
AC_TYPE_UINT8_T
 
48
AC_TYPE_INT16_T
 
49
AC_TYPE_UINT16_T
 
50
AC_TYPE_INT32_T
 
51
AC_TYPE_UINT32_T
 
52
AC_TYPE_INT64_T
 
53
AC_TYPE_SSIZE_T
38
54
 
39
55
# Checks for internationalization support
40
56
AM_GNU_GETTEXT([external],[need-ngettext])
41
57
AM_GNU_GETTEXT_VERSION([0.16.1])
42
58
 
43
59
# Enable sdl2
44
 
AC_ARG_WITH(sdl2,[  --with-sdl        enable experimental SDL 2 support] )
 
60
AC_ARG_WITH(sdl2,[  --with-sdl2        enable experimental SDL 2 support] )
45
61
if test "x$with_sdl2" == "xyes"; then
46
62
    AC_PATH_PROG(SDL_CONFIG, sdl2-config)
 
63
    if test -n "$SDL_CONFIG"; then
 
64
        LIBS="$LIBS `$SDL_CONFIG --libs`"
 
65
        CPPFLAGS="$CPPFLAGS `$SDL_CONFIG --cflags`"
 
66
    fi
47
67
    AC_CHECK_LIB([SDL2], [SDL_Init], ,
48
68
    AC_MSG_ERROR([ *** Unable to find SDL2 library (http://www.libsdl.org/)]))
49
69
 
71
91
    with_sdl2=yes
72
92
else
73
93
    AC_PATH_PROG(SDL_CONFIG, sdl-config)
 
94
    if test -n "$SDL_CONFIG"; then
 
95
        LIBS="$LIBS `$SDL_CONFIG --libs`"
 
96
        CPPFLAGS="$CPPFLAGS `$SDL_CONFIG --cflags`"
 
97
    fi
74
98
    AC_CHECK_LIB([SDL], [SDL_Init], ,
75
99
    AC_MSG_ERROR([ *** Unable to find SDL library (http://www.libsdl.org/)]))
76
100
 
114
138
fi
115
139
 
116
140
 
117
 
if test -n "$SDL_CONFIG"; then
118
 
    LIBS="$LIBS `$SDL_CONFIG --libs`"
119
 
    CPPFLAGS="$CPPFLAGS `$SDL_CONFIG --cflags`"
120
 
fi
121
141
AC_CHECK_HEADERS([SDL.h], ,
122
142
AC_MSG_ERROR([ *** SDL library found but cannot find headers (http://www.libsdl.org/)]))
123
143