Skip to content

Commit

Permalink
Record whether the server was built with NDEBUG in features.h
Browse files Browse the repository at this point in the history
  • Loading branch information
arr2036 committed Aug 30, 2013
1 parent 55c1b9c commit 1b54ad4
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 7 deletions.
15 changes: 13 additions & 2 deletions configure
Expand Up @@ -8815,8 +8815,19 @@ else
devflags=""
CFLAGS="$CFLAGS -DNDEBUG"
INSTALLSTRIP=""
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no." >&5
$as_echo "no." >&6; }
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if building with -DNDEBUG" >&5
$as_echo_n "checking if building with -DNDEBUG... " >&6; }
if echo "$CFLAGS" | grep '\-DNDEBUG' > /dev/null; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
$as_echo "#define WITH_NDEBUG 1" >>confdefs.h
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
export EXPERIMENTAL
Expand Down
12 changes: 11 additions & 1 deletion configure.ac
Expand Up @@ -1310,7 +1310,17 @@ else
devflags=""
CFLAGS="$CFLAGS -DNDEBUG"
INSTALLSTRIP=""
AC_MSG_RESULT([no.])
fi

dnl #
dnl # May of been set outside of this configure script
dnl #
AC_MSG_CHECKING([if building with -DNDEBUG])
if echo "$CFLAGS" | grep '\-DNDEBUG' > /dev/null; then
AC_MSG_RESULT([yes])
AC_DEFINE([WITH_NDEBUG], [1], [define if the server was built with -DNDEBUG])
else
AC_MSG_RESULT([no])
fi

export EXPERIMENTAL
Expand Down
11 changes: 7 additions & 4 deletions src/include/autoconf.h.in
Expand Up @@ -200,7 +200,7 @@
/* Define to 1 if you have the function pcap_fopen_offline. */
#undef HAVE_PCAP_FOPEN_OFFLINE

/* Define to 1 if you have the <pcap.h> header file. */
/* Define to 1 if you have the `pcap' library (-lpcap). */
#undef HAVE_PCAP_H

/* define this if we have the <pcreposix.h> header file */
Expand Down Expand Up @@ -436,12 +436,12 @@
/* SYSV-Style get*byaddr_r */
#undef SYSVSTYLE

/* Define if the compiler supports a thread local storage class */
#undef TLS_STORAGE_CLASS

/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
#undef TIME_WITH_SYS_TIME

/* Define if the compiler supports a thread local storage class */
#undef TLS_STORAGE_CLASS

/* Enable extensions on AIX 3, Interix. */
#ifndef _ALL_SOURCE
# undef _ALL_SOURCE
Expand Down Expand Up @@ -470,6 +470,9 @@
/* define if you want DHCP support */
#undef WITH_DHCP

/* define if the server was built with -DNDEBUG */
#undef WITH_NDEBUG

/* define if you want TCP support (For RADSec et al) */
#undef WITH_TCP

Expand Down

0 comments on commit 1b54ad4

Please sign in to comment.