]>
Commit | Line | Data |
---|---|---|
9903c388 EB |
1 | # -*- Autoconf -*- |
2 | # Process this file with autoconf to produce a configure script. | |
3 | ||
4 | AC_PREREQ(2.59) | |
dad55b79 | 5 | AC_INIT(viking, 0.1.1pre2) |
9903c388 EB |
6 | AM_INIT_AUTOMAKE() |
7 | dnl AC_CONFIG_SRCDIR([src/main.c]) | |
734652bf | 8 | dnl AC_CONFIG_HEADERS([config.h]) |
9903c388 EB |
9 | |
10 | # Checks for programs. | |
11 | AC_PROG_CC | |
12 | AC_PROG_MAKE_SET | |
13 | ||
dad55b79 GB |
14 | AC_CHECK_PROG([GDK_PIXBUF_CSOURCE],gdk-pixbuf-csource,[yes]) |
15 | if test $GDK_PIXBUF_CSOURCE != "yes" | |
16 | then | |
17 | AC_MSG_ERROR([gdk-pixbuf-csource is needed but not found]) | |
18 | fi | |
19 | ||
9903c388 EB |
20 | # Checks for libraries. |
21 | AM_PATH_GTK_2_0(2.2.0,,AC_MSG_ERROR(needs GTK+ 2.2.0),gthread) | |
22 | ||
23 | # Checks for header files. | |
24 | AC_HEADER_STDC | |
25 | AC_CHECK_HEADERS([malloc.h netdb.h netinet/in.h stdlib.h string.h sys/param.h sys/socket.h unistd.h]) | |
26 | ||
27 | # Checks for typedefs, structures, and compiler characteristics. | |
28 | AC_C_CONST | |
29 | AC_TYPE_MODE_T | |
30 | ||
31 | # Checks for library functions. | |
32 | AC_FUNC_STAT | |
33 | AC_FUNC_STRTOD | |
34 | AC_CHECK_FUNCS([bzero floor gethostbyname memset mkdir pow realpath socket sqrt strcasecmp strchr strdup strncasecmp strtol strtoul]) | |
35 | ||
dad55b79 GB |
36 | # Expat |
37 | ||
734652bf EB |
38 | # Options |
39 | AC_ARG_ENABLE(alphabetized-trw, AC_HELP_STRING([--enable-alphabetized-trw], | |
40 | [enable alphabetized track & waypoints (default is enable)]), | |
41 | [ac_cv_enable_alpha_trw=$enableval], | |
42 | [ac_cv_enable_alpha_trw=yes]) | |
43 | AC_CACHE_CHECK([whether to enable alphabetized track & waypoint], | |
44 | [ac_cv_enable_alpha_trw], [ac_cv_enable_alpha_trw=yes]) | |
45 | case $ac_cv_enable_alpha_trw in | |
46 | yes) | |
47 | AC_DEFINE(VIK_CONFIG_ALPHABETIZED_TRW, [], [NO ALPHABETIZED TRW]) | |
48 | ;; | |
49 | esac | |
50 | ||
51 | # Configuration | |
9903c388 | 52 | AC_CONFIG_FILES([Makefile |
0912fc7e | 53 | src/Makefile |
dad55b79 | 54 | src/icons/Makefile |
0912fc7e EB |
55 | doc/Makefile |
56 | doc/dev/Makefile]) | |
9903c388 | 57 | AC_OUTPUT |