Skip to content

Commit 2c1af97

Browse files
committed
minor tweaks to configure.ac (debug mode)
1 parent 9f8eccd commit 2c1af97

File tree

3 files changed

+16
-17
lines changed

3 files changed

+16
-17
lines changed

Makefile.am

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,6 @@ noinst_LIBRARIES = libwsclient.a libwsserver.a
1616
libwsclient_a_SOURCES = $(ECHO_CLIENT) $(COMMON) $(WEBSOCKET_CLIENT)
1717
libwsserver_a_SOURCES = $(ECHO_SERVER) $(COMMON) $(WEBSOCKET_SERVER)
1818

19-
AM_CFLAGS = -Wall
20-
AM_LDFLAGS =
21-
22-
if DEBUG
23-
AM_CFLAGS += -g3
24-
else
25-
AM_CFLAGS += -O3
26-
endif
27-
2819
so:
2920
gcc -shared -fPIC $(ECHO_CLIENT) $(WEBSOCKET_CLIENT) -o libwsclient.so
3021
gcc -shared -fPIC $(ECHO_SERVER) $(WEBSOCKET_SERVER) -o libwsserver.so

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,14 @@ cwebsocket is compliant with the following standards:
2020
2. [POSIX](http://en.wikipedia.org/wiki/C_POSIX_library)
2121
3. [RFC 6455](http://tools.ietf.org/html/rfc6455)
2222

23+
### Dependencies
24+
25+
1. autoconf
26+
2. automake
27+
3. libtool
28+
4. libssl-dev
29+
5. libev-dev
30+
2331
### Build
2432

2533
By defaults, cwebsocket is built with multi-threading and SSL support.

configure.ac

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,18 @@ AC_CONFIG_MACRO_DIR([m4])
1010
AC_ENABLE_SHARED
1111
LT_INIT
1212

13-
if test -z $CFLAGS; then
14-
CFLAGS=''
15-
fi
13+
# Remember externally set CFLAGS
14+
#EXTERNAL_CFLAGS="$CFLAGS"
15+
16+
#if test -z $CFLAGS; then
17+
# CFLAGS=''
18+
#fi
1619

1720
# Checks for programs.
1821
AC_PROG_CC
1922
AC_PROG_INSTALL
2023
AC_PROG_LIBTOOL(libtool)
2124

22-
# Remember externally set CFLAGS
23-
EXTERNAL_CFLAGS="$CFLAGS"
24-
2525
# Checks for libraries.
2626
AC_CHECK_LIB([crypto], [main],, AC_MSG_ERROR($missing_library))
2727
PKG_CHECK_MODULES([crypto], [libcrypto], [have_libcrypto=yes], [have_libcrypto=no])
@@ -64,8 +64,8 @@ AC_ARG_ENABLE(debug,
6464
yes) debug=true ;;
6565
no) debug=false ;;
6666
*) AC_MSG_ERROR(bad value ${enableval} for --enable-debug) ;;
67-
esac],[debug=true])
68-
AM_CONDITIONAL([DEBUG], [test "$debug" = true])
67+
esac],[debug=false])
68+
AM_CONDITIONAL([ENABLE_DEBUG], [test "$debug" = true])
6969

7070
AC_ARG_ENABLE(ssl,
7171
AS_HELP_STRING(

0 commit comments

Comments
 (0)