Mercurial > repos > ktnyt > gembassy
comparison GEMBASSY-1.0.3/m4/general.m4 @ 0:8300eb051bea draft
Initial upload
author | ktnyt |
---|---|
date | Fri, 26 Jun 2015 05:19:29 -0400 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:8300eb051bea |
---|---|
1 AC_DEFUN([CHECK_GENERAL], | |
2 # | |
3 # Handle general setup e.g. documentation directory | |
4 # | |
5 [AC_MSG_CHECKING(if docroot is given) | |
6 AC_ARG_WITH([docroot], | |
7 [AS_HELP_STRING([--with-docroot=DIR], | |
8 [root directory path of documentation (defaults to none)])], | |
9 [if test "$withval" != no ; then | |
10 AC_MSG_RESULT(yes) | |
11 CPPFLAGS="$CPPFLAGS -DDOC_ROOT=\\\"$withval\\\"" | |
12 fi], [ | |
13 AC_MSG_RESULT(no) | |
14 ]) | |
15 ] | |
16 | |
17 | |
18 # GCC profiling | |
19 [AC_MSG_CHECKING(if gcc profiling is selected) | |
20 AC_ARG_WITH([gccprofile], | |
21 [AS_HELP_STRING([--with-gccprofile], [selects profiling])], | |
22 [if test "$withval" != no ; then | |
23 AC_MSG_RESULT(yes) | |
24 CFLAGS="$CFLAGS -g -pg" | |
25 LDFLAGS="$LDFLAGS -pg" | |
26 fi], [ | |
27 AC_MSG_RESULT(no) | |
28 ]) | |
29 | |
30 ] | |
31 ) | |
32 |