From d8d78227615bf09976c7b462d0cfa49ccf3524e6 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Thu, 26 Jun 2014 10:35:38 -0400 Subject: [PATCH] LP#1334693 ./configure avoid osrf_config without core Avoid the check for and use of osrf_config during Evergreen ./configure when run with --disable-core. This allows the staff client to be built and, in general, for make_release to be run on a machine that does not have opensrf installed (or has multiple versions). Signed-off-by: Bill Erickson --- configure.ac | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/configure.ac b/configure.ac index 99370e4f2e..660d5af0c8 100644 --- a/configure.ac +++ b/configure.ac @@ -182,26 +182,6 @@ AM_CONDITIONAL([BUILDEGPYTHON], [test x$EG_PYTHON_INSTALL = xtrue]) #----------------------------------- # Check for dependencies #----------------------------------- -AC_PATH_PROG([OSRF_CONFIG], [osrf_config]) -if test "x$OSRF_CONFIG" == "x"; then - AC_MSG_ERROR([Could not find osrf_config. - Ensure OpenSRF is installed and that the PATH environment variable includes - the OpenSRF executables. For example: PATH=\$PATH:/openils/bin ./configure]) -fi - -AC_ARG_WITH([opensrf-headers], -[ --with-opensrf-headers=path location of the OpenSRF header files], -[OPENSRF_HEADERS=${withval}], -[OPENSRF_HEADERS=`$OSRF_CONFIG --includedir`]) -AC_SUBST([OPENSRF_HEADERS]) - -# We need this for JavaScript -AC_ARG_WITH([opensrf-libs], -[ --with-opensrf-libs=path location of the OpenSRF libraries], -[OPENSRF_LIBS=${withval}], -[OPENSRF_LIBS=`$OSRF_CONFIG --libdir`]) -AC_SUBST([OPENSRF_LIBS]) - AC_ARG_WITH([tmp], [ --with-tmp=path location of the Evergreen temporary directory (default is /tmp) ], [TMP=${withval}], @@ -252,6 +232,26 @@ AC_SUBST([DBI_LIBS]) if test "x$openils_core" = "xtrue"; then + AC_PATH_PROG([OSRF_CONFIG], [osrf_config]) + if test "x$OSRF_CONFIG" == "x"; then + AC_MSG_ERROR([Could not find osrf_config. + Ensure OpenSRF is installed and that the PATH environment variable includes + the OpenSRF executables. For example: PATH=\$PATH:/openils/bin ./configure]) + fi + + AC_ARG_WITH([opensrf-headers], + [ --with-opensrf-headers=path location of the OpenSRF header files], + [OPENSRF_HEADERS=${withval}], + [OPENSRF_HEADERS=`$OSRF_CONFIG --includedir`]) + AC_SUBST([OPENSRF_HEADERS]) + + # We need this for JavaScript + AC_ARG_WITH([opensrf-libs], + [ --with-opensrf-libs=path location of the OpenSRF libraries], + [OPENSRF_LIBS=${withval}], + [OPENSRF_LIBS=`$OSRF_CONFIG --libdir`]) + AC_SUBST([OPENSRF_LIBS]) + AC_CHECK_PROG([MEMCACHED],memcached,yes,no) if test $MEMCACHED = "no"; then AC_MSG_ERROR([*** memcached not found, aborting]) -- 2.43.2