]>
Commit | Line | Data |
---|---|---|
9903c388 EB |
1 | # -*- Autoconf -*- |
2 | # Process this file with autoconf to produce a configure script. | |
3 | ||
4 | AC_PREREQ(2.59) | |
5 | AC_INIT(viking, 0.1.1) | |
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 | ||
14 | # Checks for libraries. | |
15 | AM_PATH_GTK_2_0(2.2.0,,AC_MSG_ERROR(needs GTK+ 2.2.0),gthread) | |
16 | ||
17 | # Checks for header files. | |
18 | AC_HEADER_STDC | |
19 | AC_CHECK_HEADERS([malloc.h netdb.h netinet/in.h stdlib.h string.h sys/param.h sys/socket.h unistd.h]) | |
20 | ||
21 | # Checks for typedefs, structures, and compiler characteristics. | |
22 | AC_C_CONST | |
23 | AC_TYPE_MODE_T | |
24 | ||
25 | # Checks for library functions. | |
26 | AC_FUNC_STAT | |
27 | AC_FUNC_STRTOD | |
28 | AC_CHECK_FUNCS([bzero floor gethostbyname memset mkdir pow realpath socket sqrt strcasecmp strchr strdup strncasecmp strtol strtoul]) | |
29 | ||
734652bf EB |
30 | # Options |
31 | AC_ARG_ENABLE(alphabetized-trw, AC_HELP_STRING([--enable-alphabetized-trw], | |
32 | [enable alphabetized track & waypoints (default is enable)]), | |
33 | [ac_cv_enable_alpha_trw=$enableval], | |
34 | [ac_cv_enable_alpha_trw=yes]) | |
35 | AC_CACHE_CHECK([whether to enable alphabetized track & waypoint], | |
36 | [ac_cv_enable_alpha_trw], [ac_cv_enable_alpha_trw=yes]) | |
37 | case $ac_cv_enable_alpha_trw in | |
38 | yes) | |
39 | AC_DEFINE(VIK_CONFIG_ALPHABETIZED_TRW, [], [NO ALPHABETIZED TRW]) | |
40 | ;; | |
41 | esac | |
42 | ||
43 | # Configuration | |
9903c388 EB |
44 | AC_CONFIG_FILES([Makefile |
45 | src/Makefile]) | |
46 | AC_OUTPUT |