forked from okbob/pspg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.ac
51 lines (40 loc) · 1.07 KB
/
configure.ac
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
AC_INIT([pspg],[0],[[email protected]],[pspg])
AC_LANG([C])
AC_CONFIG_SRCDIR(src)
dnl Document where we keep our .m4 file.
AC_CONFIG_MACRO_DIR([tools])
dnl Make sure aclocal actually found it!
m4_pattern_forbid([^AX_])
AC_PROG_CC
AC_HEADER_STDC
AX_DEBUG_CFLAGS
AX_WITH_CURSES
AX_WITH_CURSES_PANEL
AX_LIB_READLINE
case "$ax_cv_ncurses" in "no")
AC_MSG_ERROR([ncurses not found])
esac
case "$ax_cv_ncursesw" in "no")
AC_MSG_WARN([The found ncurses library does not support wide-char.])
AC_MSG_WARN([This means that tig will not correctly render UTF-8.])
esac
AC_CHECK_LIB([m],[roundl])
AC_SEARCH_LIBS([clock_gettime], [rt posix4],
[],
[AC_MSG_ERROR([Function clock_gettime not available.])]
)
AC_SUBST(enable_debug)
AC_SUBST(CURSES_LIBS)
AC_SUBST(COVERAGE_CFLAGS)
AC_SUBST(COVERAGE_LDFLAGS)
AC_SUBST(COMPILE_MENU)
AC_CONFIG_FILES([config.make])
if test "$ax_cv_panel" = yes; then
COMPILE_MENU=1
CFLAGS="$CFLAGS -DCOMPILE_MENU"
fi
# supply -g if --enable-debug
if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
CFLAGS="$CFLAGS -g"
fi
AC_OUTPUT