X-Git-Url: http://git.pk910.de/?p=NeonServV5.git;a=blobdiff_plain;f=configure.ac;fp=configure.ac;h=9dc6e4f2b1539a034ca5bf2192da1fb2b0719a8a;hp=27747ca10b933858b1428ef83c3f20f20e623617;hb=55831bf424312a6908ca07a904f288fba0919a9a;hpb=0dfad39f7dacc3ca67298c9aecb5a7f8eec75fdc diff --git a/configure.ac b/configure.ac index 27747ca..9dc6e4f 100644 --- a/configure.ac +++ b/configure.ac @@ -45,6 +45,13 @@ if test x"$do_have_ssl" = xyes; then AC_DEFINE([HAVE_SSL], 1, [Define if you are using SSL]) fi +AC_CHECK_LIB(pthread, pthread_create, [ + AC_CHECK_HEADERS(pthread.h, [ + LIBS="$LIBS -lpthread" + AC_DEFINE([HAVE_THREADS], 1, [Define if you have Threads]) + ]) +]) + AC_ARG_ENABLE([debug], [AS_HELP_STRING([--enable-debug], [debug mode (compile using -O0 -Wall -Wshadow -Werror)])], [CFLAGS='-g -O0 -Wall -Wshadow -Werror'],