diff --git a/Makefile.am b/Makefile.am index 09621aca1e..49fb9421b7 100644 --- a/Makefile.am +++ b/Makefile.am @@ -109,11 +109,11 @@ MOD_LINK = $(switch_srcdir)/libfreeswitch.la CLEANFILES = src/include/switch_version.h src/include/switch_swigable_cpp.h BUILT_SOURCES = src/include/switch_version.h src/include/switch_swigable_cpp.h -if ADD_ODBC +if HAVE_ODBC CORE_CFLAGS += -DSWITCH_HAVE_ODBC $(ODBC_INC_FLAGS) endif -if ADD_LIBEDIT +if HAVE_LIBEDIT CORE_CFLAGS += -I$(switch_srcdir)/libs/libedit/src -DSWITCH_HAVE_LIBEDIT CORE_LIBS += libs/libedit/src/.libs/libedit.a endif @@ -127,7 +127,7 @@ libfreeswitch_la_LDFLAGS = -version-info 1:0:0 $(AM_LDFLAGS) $(PLATFORM_CORE_DEP libfreeswitch_la_LIBADD = $(CORE_LIBS) libfreeswitch_la_DEPENDENCIES = $(BUILT_SOURCES) -if ADD_ODBC +if HAVE_ODBC libfreeswitch_la_LDFLAGS += $(ODBC_LIB_FLAGS) endif @@ -266,7 +266,7 @@ fs_cli_SOURCES = libs/esl/src/esl.c libs/esl/src/esl_config.c libs/esl/src/esl_e fs_cli_CFLAGS = $(AM_CFLAGS) -I$(switch_srcdir)/libs/esl/src/include fs_cli_LDFLAGS = $(AM_LDFLAGS) -lpthread $(ESL_LDFLAGS) -if ADD_LIBEDIT +if HAVE_LIBEDIT fs_cli_CFLAGS += -DHAVE_EDITLINE -I$(switch_srcdir)/libs/libedit/src fs_cli_LDADD = libs/libedit/src/.libs/libedit.a endif @@ -287,7 +287,7 @@ freeswitch_CFLAGS = $(AM_CFLAGS) $(CORE_CFLAGS) freeswitch_LDFLAGS = $(AM_LDFLAGS) -lpthread -rpath $(libdir) freeswitch_LDADD = libfreeswitch.la libs/apr/libapr-1.la -if ADD_LIBEDIT +if HAVE_LIBEDIT freeswitch_CFLAGS += -Ilibs/libedit/src -DSWITCH_HAVE_LIBEDIT freeswitch_LDADD += libs/libedit/src/.libs/libedit.a endif diff --git a/configure.in b/configure.in index 790dcae209..e93de3d1e2 100644 --- a/configure.in +++ b/configure.in @@ -727,8 +727,8 @@ fi AX_CHECK_JAVA -AM_CONDITIONAL([ADD_ODBC],[test "x$enable_core_odbc_support" != "xno"]) -AM_CONDITIONAL([ADD_LIBEDIT],[test "x$enable_core_libedit_support" != "xno"]) +AM_CONDITIONAL([HAVE_ODBC],[test "x$enable_core_odbc_support" != "xno"]) +AM_CONDITIONAL([HAVE_LIBEDIT],[test "x$enable_core_libedit_support" != "xno"]) AM_CONDITIONAL([HAVE_MYSQL],[test "$found_mysql" = "yes"]) # diff --git a/src/mod/endpoints/mod_sofia/Makefile.am b/src/mod/endpoints/mod_sofia/Makefile.am index 2fab206ea8..26d1dd9e2c 100644 --- a/src/mod/endpoints/mod_sofia/Makefile.am +++ b/src/mod/endpoints/mod_sofia/Makefile.am @@ -32,10 +32,6 @@ mod_sofia_la_CFLAGS += -I$(SOFIAUA_DIR)/url -I$(SOFIAUA_BUILDDIR)/url mod_sofia_la_LIBADD = $(switch_builddir)/libfreeswitch.la $(SOFIALA) mod_sofia_la_LDFLAGS = -avoid-version -module -no-undefined -shared -if ADD_ODBC -mod_sofia_la_CFLAGS += -DSWITCH_HAVE_ODBC -endif - if ISMAC mod_sofia_la_LDFLAGS += -framework CoreFoundation -framework SystemConfiguration endif