Settings specific to maintainer-mode.
Showing
1 changed file
with
31 additions
and
0 deletions
m4/maintain.m4
0 → 100644
1 | dnl This file is part of GNU mailutils. | ||
2 | dnl Copyright (C) 2001 Free Software Foundation, Inc. | ||
3 | dnl | ||
4 | dnl This file is free software; as a special exception the author gives | ||
5 | dnl unlimited permission to copy and/or distribute it, with or without | ||
6 | dnl modifications, as long as this notice is preserved. | ||
7 | dnl | ||
8 | dnl This program is distributed in the hope that it will be useful, but | ||
9 | dnl WITHOUT ANY WARRANTY, to the extent permitted by law; without even the | ||
10 | dnl implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
11 | dnl | ||
12 | dnl Check for --enable-maintainer-mode and enable maintainer-specific | ||
13 | dnl settings. | ||
14 | |||
15 | AC_DEFUN(MU_MAINTAINER_MODE, | ||
16 | [AM_MAINTAINER_MODE | ||
17 | if test x"$USE_MAINTAINER_MODE" = xyes; then | ||
18 | if test x"$GCC" = xyes; then | ||
19 | AC_MSG_CHECKING(whether gcc accepts -ggdb) | ||
20 | CFLAGS="-ggdb" | ||
21 | AC_TRY_COMPILE([],void f(){}, | ||
22 | AC_MSG_RESULT(yes), | ||
23 | [if test x"$ac_cv_prog_cc_g" = xyes; then | ||
24 | CFLAGS=-g | ||
25 | else | ||
26 | CFLAGS= | ||
27 | fi | ||
28 | AC_MSG_RESULT(no)]) | ||
29 | CFLAGS="$CFLAGS -DMAINTAINER_MODE" | ||
30 | fi | ||
31 | fi]) |
-
Please register or sign in to post a comment