view 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
line wrap: on
line source

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)
])

]
)