diff options
author | Rich Megginson <rmeggins@redhat.com> | 2009-08-12 09:03:32 -0600 |
---|---|---|
committer | Rich Megginson <rmeggins@redhat.com> | 2009-08-12 09:10:43 -0600 |
commit | 65fef7efba36dd75d41344d423283047ce07e818 (patch) | |
tree | 388d6b69415d6c620802c433d11bd7e7db707cbe /configure | |
parent | 886d9b9f4fd9bfd72c2c9728f13b8db1ff2793b7 (diff) | |
download | ds-65fef7efba36dd75d41344d423283047ce07e818.tar.gz ds-65fef7efba36dd75d41344d423283047ce07e818.tar.xz ds-65fef7efba36dd75d41344d423283047ce07e818.zip |
fix pcre build issues
Reviewed by: nkinder (Thanks!)
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 45 |
1 files changed, 25 insertions, 20 deletions
@@ -27005,28 +27005,8 @@ else echo "${ECHO_T}no" >&6 fi; -if test -z "$pcre_inc"; then - echo "$as_me:$LINENO: checking for pcre.h" >&5 -echo $ECHO_N "checking for pcre.h... $ECHO_C" >&6 - if test -f "/usr/include/pcre.h"; then - echo "$as_me:$LINENO: result: using /usr/include/pcre.h" >&5 -echo "${ECHO_T}using /usr/include/pcre.h" >&6 - pcre_incdir="/usr/include" - pcre_inc="-I/usr/include" - pcre_lib='-L$(libdir)' - pcre_libdir='$(libdir)' - else - echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6 - { { echo "$as_me:$LINENO: error: pcre not found, specify with --with-pcre." >&5 -echo "$as_me: error: pcre not found, specify with --with-pcre." >&2;} - { (exit 1); exit 1; }; } - fi -fi # # if PCRE is not found yet, try pkg-config - -# last resort if test -z "$pcre_inc" -o -z "$pcre_lib" -o -z "$pcre_libdir"; then # Extract the first word of "pkg-config", so it can be a program name with args. set dummy pkg-config; ac_word=$2 @@ -27076,6 +27056,12 @@ echo $ECHO_N "checking for pcre with pkg-config... $ECHO_C" >&6 pcre_libdir=`$PKG_CONFIG --libs-only-L pcre | sed -e s/-L// | sed -e s/\ .*$//` echo "$as_me:$LINENO: result: using system PCRE" >&5 echo "${ECHO_T}using system PCRE" >&6 + elif $PKG_CONFIG --exists libpcre; then + pcre_inc=`$PKG_CONFIG --cflags-only-I libpcre` + pcre_lib=`$PKG_CONFIG --libs-only-L libpcre` + pcre_libdir=`$PKG_CONFIG --libs-only-L libpcre | sed -e s/-L// | sed -e s/\ .*$//` + echo "$as_me:$LINENO: result: using system PCRE" >&5 +echo "${ECHO_T}using system PCRE" >&6 else { { echo "$as_me:$LINENO: error: PCRE not found, specify with --with-pcre." >&5 echo "$as_me: error: PCRE not found, specify with --with-pcre." >&2;} @@ -27084,6 +27070,25 @@ echo "$as_me: error: PCRE not found, specify with --with-pcre." >&2;} fi fi +if test -z "$pcre_inc"; then + echo "$as_me:$LINENO: checking for pcre.h" >&5 +echo $ECHO_N "checking for pcre.h... $ECHO_C" >&6 + if test -f "/usr/include/pcre.h"; then + echo "$as_me:$LINENO: result: using /usr/include/pcre.h" >&5 +echo "${ECHO_T}using /usr/include/pcre.h" >&6 + pcre_incdir="/usr/include" + pcre_inc="-I/usr/include" + pcre_lib='-L$(libdir)' + pcre_libdir='$(libdir)' + else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 + { { echo "$as_me:$LINENO: error: pcre not found, specify with --with-pcre." >&5 +echo "$as_me: error: pcre not found, specify with --with-pcre." >&2;} + { (exit 1); exit 1; }; } + fi +fi + PACKAGE_BASE_VERSION=`echo $PACKAGE_VERSION | awk -F\. '{print $1"."$2}'` |