summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure44
1 files changed, 34 insertions, 10 deletions
diff --git a/configure b/configure
index 777d6c0d..a51a9196 100755
--- a/configure
+++ b/configure
@@ -726,6 +726,8 @@ nss_CFLAGS
nspr_CFLAGS
BUILD_SERVER_TRUE
BUILD_SERVER_FALSE
+HAVE_NSS_TRUE
+HAVE_NSS_FALSE
BUILD_ELFUTILS_TRUE
BUILD_ELFUTILS_FALSE
elfutils_abs_srcdir
@@ -6912,6 +6914,12 @@ echo "$as_me: error: cannot find all libraries for stap-server" >&2;}
{ echo "$as_me:$LINENO: WARNING: will not build stap-server, cannot find all libraries" >&5
echo "$as_me: WARNING: will not build stap-server, cannot find all libraries" >&2;}
fi
+else
+
+cat >>confdefs.h <<\_ACEOF
+#define HAVE_NSS 1
+_ACEOF
+
fi
if test "x${have_nss_includes}${have_nss_libs}" == "xyesyes" -a "$enable_server" != "no"; then
BUILD_SERVER_TRUE=
@@ -6921,6 +6929,14 @@ else
BUILD_SERVER_FALSE=
fi
+ if test "x${have_nss_includes}${have_nss_libs}" == "xyesyes"; then
+ HAVE_NSS_TRUE=
+ HAVE_NSS_FALSE='#'
+else
+ HAVE_NSS_TRUE='#'
+ HAVE_NSS_FALSE=
+fi
+
build_elfutils=no
@@ -8025,6 +8041,13 @@ echo "$as_me: error: conditional \"BUILD_SERVER\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
{ (exit 1); exit 1; }; }
fi
+if test -z "${HAVE_NSS_TRUE}" && test -z "${HAVE_NSS_FALSE}"; then
+ { { echo "$as_me:$LINENO: error: conditional \"HAVE_NSS\" was never defined.
+Usually this means the macro was only invoked conditionally." >&5
+echo "$as_me: error: conditional \"HAVE_NSS\" was never defined.
+Usually this means the macro was only invoked conditionally." >&2;}
+ { (exit 1); exit 1; }; }
+fi
if test -z "${BUILD_ELFUTILS_TRUE}" && test -z "${BUILD_ELFUTILS_FALSE}"; then
{ { echo "$as_me:$LINENO: error: conditional \"BUILD_ELFUTILS\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
@@ -8740,6 +8763,8 @@ nss_CFLAGS!$nss_CFLAGS$ac_delim
nspr_CFLAGS!$nspr_CFLAGS$ac_delim
BUILD_SERVER_TRUE!$BUILD_SERVER_TRUE$ac_delim
BUILD_SERVER_FALSE!$BUILD_SERVER_FALSE$ac_delim
+HAVE_NSS_TRUE!$HAVE_NSS_TRUE$ac_delim
+HAVE_NSS_FALSE!$HAVE_NSS_FALSE$ac_delim
BUILD_ELFUTILS_TRUE!$BUILD_ELFUTILS_TRUE$ac_delim
BUILD_ELFUTILS_FALSE!$BUILD_ELFUTILS_FALSE$ac_delim
elfutils_abs_srcdir!$elfutils_abs_srcdir$ac_delim
@@ -8752,7 +8777,7 @@ LIBOBJS!$LIBOBJS$ac_delim
LTLIBOBJS!$LTLIBOBJS$ac_delim
_ACEOF
- if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 25; then
+ if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 27; then
break
elif $ac_last_try; then
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
@@ -9153,22 +9178,21 @@ echo "$as_me: $ac_file is unchanged" >&6;}
fi
rm -f "$tmp/out12"
# Compute $ac_file's index in $config_headers.
-_am_arg=$ac_file
_am_stamp_count=1
for _am_header in $config_headers :; do
case $_am_header in
- $_am_arg | $_am_arg:* )
+ $ac_file | $ac_file:* )
break ;;
* )
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
esac
done
-echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
-$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
- X"$_am_arg" : 'X\(//\)[^/]' \| \
- X"$_am_arg" : 'X\(//\)$' \| \
- X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
-echo X"$_am_arg" |
+echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
+$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+ X$ac_file : 'X\(//\)[^/]' \| \
+ X$ac_file : 'X\(//\)$' \| \
+ X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
+echo X$ac_file |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
s//\1/
q
@@ -9205,7 +9229,7 @@ echo "$as_me: executing $ac_file commands" >&6;}
# each Makefile.in and add a new line on top of each file to say so.
# Grep'ing the whole file is not good either: AIX grep has a line
# limit of 2048, but all sed's we know have understand at least 4000.
- if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
+ if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
dirpart=`$as_dirname -- "$mf" ||
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
X"$mf" : 'X\(//\)[^/]' \| \