File: general.m4

package info (click to toggle)
emboss 6.6.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 571,248 kB
  • ctags: 39,971
  • sloc: ansic: 460,578; java: 29,439; perl: 13,573; sh: 12,740; makefile: 3,275; csh: 706; asm: 351; xml: 239; pascal: 237; modula3: 8
file content (45 lines) | stat: -rw-r--r-- 959 bytes parent folder | download | duplicates (7)
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
AC_DEFUN([CHECK_GENERAL],
#
# Handle general setup e.g. documentation directory
#
[AC_MSG_CHECKING(if docroot is given)
AC_ARG_WITH([docroot],
    [AS_HELP_STRING([--with-docroot=DIR],
        [root directory path of documentation (defaults to none)])],
[if test "$withval" != no ; then
  AC_MSG_RESULT(yes)
  CPPFLAGS="$CPPFLAGS -DDOC_ROOT=\\\"$withval\\\""
fi], [
AC_MSG_RESULT(no)
])
]


# GCC profiling
[AC_MSG_CHECKING(if gcc profiling is selected)
AC_ARG_WITH([gccprofile],
    [AS_HELP_STRING([--with-gccprofile], [selects profiling])],
[if test "$withval" != no ; then
  AC_MSG_RESULT(yes)
  CFLAGS="$CFLAGS -g -pg"
  LDFLAGS="$LDFLAGS -pg"
fi], [
AC_MSG_RESULT(no)
])

]

# GOV coverage
[AC_MSG_CHECKING(if gcov coverage is selected)
AC_ARG_WITH([gcov],
    [AS_HELP_STRING([--with-gcov], [selects profiling])],
[if test "$withval" != no ; then
  AC_MSG_RESULT(yes)
  CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
fi], [
AC_MSG_RESULT(no)
])

]
)