Overview
Comment: | configure: We still need -D_GNU_SOURCE
Using just -std=gnu* is not enough. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
1807f332072f1d8a57a2faf0c6705ccf |
User & Date: | js on 2015-05-16 19:05:58 |
Other Links: | manifest | tags |
Context
2015-05-16
| ||
20:29 | Rename OFDeflateStream -> OFInflateStream check-in: 2e9336b1ef user: js tags: trunk | |
19:05 | configure: We still need -D_GNU_SOURCE check-in: 1807f33207 user: js tags: trunk | |
18:32 | utils/ofhttp: Get terminal width for progress bar check-in: 84f2ba7fbc user: js tags: trunk | |
Changes
Modified configure.ac from [360209fe98] to [9383b47e78].
︙ | ︙ | |||
176 177 178 179 180 181 182 183 184 185 186 187 188 189 | AC_DEFINE_UNQUOTED(PLUGIN_SUFFIX, "$PLUGIN_SUFFIX", [Suffix for plugins]) AS_IF([test x"$PLUGIN_SUFFIX" != x""], [ AC_SUBST(USE_SRCS_PLUGINS, '${SRCS_PLUGINS}') AC_SUBST(TESTPLUGIN, "plugin") AC_DEFINE(OF_HAVE_PLUGINS, 1, [Whether we have plugin support]) ]) case "$host_os" in solaris*) CPPFLAGS="-D__EXTENSIONS__ -D_POSIX_PTHREAD_SEMANTICS $CPPFLAGS" ;; esac | > > > > > > > > > > > > > > | 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 | AC_DEFINE_UNQUOTED(PLUGIN_SUFFIX, "$PLUGIN_SUFFIX", [Suffix for plugins]) AS_IF([test x"$PLUGIN_SUFFIX" != x""], [ AC_SUBST(USE_SRCS_PLUGINS, '${SRCS_PLUGINS}') AC_SUBST(TESTPLUGIN, "plugin") AC_DEFINE(OF_HAVE_PLUGINS, 1, [Whether we have plugin support]) ]) AC_MSG_CHECKING(whether we need -D_GNU_SOURCE) AC_EGREP_CPP(yes, [ #include <stdlib.h> #if defined(__GLIBC__) || defined(__MINGW32__) yes #endif ], [ CPPFLAGS="-D_GNU_SOURCE $CPPFLAGS" AC_MSG_RESULT(yes) ], [ AC_MSG_RESULT(no) ]) case "$host_os" in solaris*) CPPFLAGS="-D__EXTENSIONS__ -D_POSIX_PTHREAD_SEMANTICS $CPPFLAGS" ;; esac |
︙ | ︙ |