-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathconfigure.ac
More file actions
78 lines (59 loc) · 1.45 KB
/
configure.ac
File metadata and controls
78 lines (59 loc) · 1.45 KB
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
dnl
dnl Autoconf configuration file for virt2phys.
dnl
AC_PREREQ(2.61)
AC_INIT([v2p], [0.1], [no-define])
AC_ARG_PROGRAM()
AC_CONFIG_SRCDIR([src/v2p.c])
AC_CONFIG_HEADER([config.h])
AC_CONFIG_AUX_DIR([conf])
AC_CONFIG_MACRO_DIR([m4])
AM_INIT_AUTOMAKE([foreign])
LT_INIT()
dnl ----------
dnl Checks for programs.
dnl ----------
AC_PROG_CC()
AM_PROG_CC_C_O()
AC_PROG_INSTALL()
AC_PROG_LN_S()
AC_PROG_LIBTOOL()
dnl ----------
dnl Checks for common headers and libraries.
dnl ----------
AC_HEADER_STDC()
dnl ----------
dnl Checks for '--enable-ABCD' arguments.
dnl ----------
AC_ARG_ENABLE(debug,
[AS_HELP_STRING([--enable-debug], [turn on debugging (default=no)])],
[], [enable_debug=no])
AC_MSG_CHECKING(whether to enable debuging)
AC_MSG_RESULT($enable_debug)
AM_CONDITIONAL(ENABLE_DEBUG, [test x$enable_debug = xyes])
if test x$enable_debug = xyes; then
AC_DEFINE(FA_ENABLE_DEBUG, 1,
[Define to enable the debug functions])
CPPFLAGS="$CPPFLAGS -g -O0"
else
CPPFLAGS="$CPPFLAGS -O2"
fi
dnl ----------------------------------------
dnl ----------
dnl Checks for '--with-ABCD' arguments.
dnl ----------
if test x$prefix = xNONE; then
# FIXME: undocumented variable...
my_prefix=$ac_default_prefix
else
my_prefix=$prefix
fi
if test x$lt_sysroot != x; then
CPPFLAGS="$CPPFLAGS --sysroot=$lt_sysroot "
LDFLAGS="$LDFLAGS --sysroot=$lt_sysroot "
fi
dnl ----------
dnl Specify the Makefile
dnl ----------
AC_CONFIG_FILES([Makefile src/Makefile])
AC_OUTPUT()