Add some further searching for apr/apu/lua for solaris.

This commit is contained in:
brectanus
2008-01-30 00:57:52 +00:00
parent 698bff5fae
commit 8d05c9966d
5 changed files with 28 additions and 12 deletions

View File

@@ -44,8 +44,8 @@ APU_LDFLAGS = @APU_LDFLAGS@
APU_LIBS = @APU_LIBS@ APU_LIBS = @APU_LIBS@
APU_LINK_LD = @APU_LINK_LD@ APU_LINK_LD = @APU_LINK_LD@
CPPFLAGS = @CPPFLAGS@ $(PCRE_CFLAGS) $(LIBXML_CFLAGS) $(LUA_CFLAGS) CPPFLAGS = @CPPFLAGS@ $(PCRE_CFLAGS) $(LIBXML_CFLAGS) $(LUA_CFLAGS)
LIBS = $(PCRE_LIBS) $(LIBXML_LIBS) $(LUA_LIBS) LIBS = @LIBS@ $(PCRE_LIBS) $(LIBXML_LIBS) $(LUA_LIBS)
LDFLAGS = @LDFLAGS@ LDFLAGS = @LDFLAGS@
COMPILE_APACHE_MOD = $(APXS_WRAPPER) -c $(CPPFLAGS) $(LDFLAGS) $(LIBS) COMPILE_APACHE_MOD = $(APXS_WRAPPER) -c $(CPPFLAGS) $(LDFLAGS) $(LIBS)
@@ -58,9 +58,11 @@ install: install-mods
clean-extras: clean-extras:
@for dir in mlogc-src; do \ @for dir in mlogc-src; do \
test -e $$dir && $(MAKE) -C $$dir clean; \ if test -d $$dir; then \
done; \ $(MAKE) -C $$dir clean; \
rm -rf ../tools/mlogc ../tools/mlogc-static fi; \
done
@rm -rf ../tools/mlogc ../tools/mlogc-static
clean: clean-extras clean: clean-extras
@rm -rf *.la *.lo *.o *.slo .libs msc_test @rm -rf *.la *.lo *.o *.slo .libs msc_test

View File

@@ -23,7 +23,7 @@ AC_ARG_WITH(
dnl # Determine apr lib directory dnl # Determine apr lib directory
if test -z "${apr_path}"; then if test -z "${apr_path}"; then
test_paths="/usr/local /usr" test_paths="/usr/local/apr /usr/local /usr"
else else
test_paths="${apr_path}" test_paths="${apr_path}"
fi fi
@@ -41,6 +41,9 @@ for x in ${test_paths}; do
with_apr="" with_apr=""
fi fi
done done
if test -n "$with_apr"; then
break
fi
done done
if test -n "${with_apr}"; then if test -n "${with_apr}"; then
APR_CONFIG="${with_apr}/${APR_CONFIG}" APR_CONFIG="${with_apr}/${APR_CONFIG}"

View File

@@ -23,7 +23,7 @@ AC_ARG_WITH(
dnl # Determine apu lib directory dnl # Determine apu lib directory
if test -z "${apu_path}"; then if test -z "${apu_path}"; then
test_paths="/usr/local /usr" test_paths="/usr/local/apu /usr/local/apr-util /usr/local /usr"
else else
test_paths="${apu_path}" test_paths="${apu_path}"
fi fi

View File

@@ -5,7 +5,7 @@ dnl LUA_CFLAGS
dnl LUA_LIBS dnl LUA_LIBS
LUA_CONFIG="pkg-config" LUA_CONFIG="pkg-config"
LUA_PKGNAME="lua5.1" LUA_PKGNAME="lua51"
LUA_CFLAGS="" LUA_CFLAGS=""
LUA_LIBS="" LUA_LIBS=""
@@ -47,14 +47,25 @@ else
dnl Hack to just try to find the lib and include dnl Hack to just try to find the lib and include
AC_MSG_CHECKING([for lua install]) AC_MSG_CHECKING([for lua install])
for x in ${test_paths}; do for x in ${test_paths}; do
if test -e "${x}/liblua5.1.so"; then if test -e "${x}/liblua5.1.a"; then
with_lua_lib="${x}" with_lua_lib="${x}"
lua_lib_name="lua5.1"
break break
elif test -e "${x}/lib/liblua5.1.so"; then elif test -e "${x}/lib/liblua5.1.a"; then
with_lua_lib="${x}/lib" with_lua_lib="${x}/lib"
lua_lib_name="lua5.1"
break
elif test -e "${x}/liblua.a"; then
with_lua_lib="${x}"
lua_lib_name="lua"
break
elif test -e "${x}/lib/liblua.a"; then
with_lua_lib="${x}/lib"
lua_lib_name="lua"
break break
else else
with_lua_lib="" with_lua_lib=""
lua_lib_name=""
fi fi
done done
for x in ${test_paths}; do for x in ${test_paths}; do
@@ -72,7 +83,7 @@ else
LUA_CONFIG="" LUA_CONFIG=""
AC_MSG_RESULT([${with_lua_lib} ${with_lua_inc}]) AC_MSG_RESULT([${with_lua_lib} ${with_lua_inc}])
LUA_CFLAGS="-I${with_lua_inc}" LUA_CFLAGS="-I${with_lua_inc}"
LUA_LIBS="-L${with_lua_lib} -llua5.1" LUA_LIBS="-L${with_lua_lib} -l${lua_lib_name}"
CFLAGS=$save_CFLAGS CFLAGS=$save_CFLAGS
LDFLAGS=$save_LDFLAGS LDFLAGS=$save_LDFLAGS
else else

View File

@@ -20,7 +20,7 @@ AC_PROG_INSTALL
AC_PROG_LN_S AC_PROG_LN_S
AC_PROG_MAKE_SET AC_PROG_MAKE_SET
AC_PROG_RANLIB AC_PROG_RANLIB
AC_PATH_PROGS(PERL, perl perl5, ) AC_PATH_PROGS(PERL, [perl perl5], )
# Checks for header files. # Checks for header files.
AC_HEADER_STDC AC_HEADER_STDC