937 |
fi |
fi |
938 |
])# AC_FUNC_STRERROR_R |
])# AC_FUNC_STRERROR_R |
939 |
|
|
940 |
|
|
941 |
|
# serial 1 |
942 |
|
|
943 |
|
AC_DEFUN([AM_WITH_DMALLOC], |
944 |
|
[AC_MSG_CHECKING([if malloc debugging is wanted]) |
945 |
|
AC_ARG_WITH(dmalloc, |
946 |
|
[ --with-dmalloc use dmalloc, as in |
947 |
|
http://www.dmalloc.com/dmalloc.tar.gz], |
948 |
|
[if test "$withval" = yes; then |
949 |
|
AC_MSG_RESULT(yes) |
950 |
|
AC_DEFINE(WITH_DMALLOC,1, |
951 |
|
[Define if using the dmalloc debugging malloc package]) |
952 |
|
LIBS="$LIBS -ldmalloc" |
953 |
|
LDFLAGS="$LDFLAGS -g" |
954 |
|
else |
955 |
|
AC_MSG_RESULT(no) |
956 |
|
fi], [AC_MSG_RESULT(no)]) |
957 |
|
]) |
958 |
|
|
959 |
# Macro to add for using GNU gettext. |
# Macro to add for using GNU gettext. |
960 |
# Ulrich Drepper <drepper@cygnus.com>, 1995. |
# Ulrich Drepper <drepper@cygnus.com>, 1995. |
961 |
# |
# |