Don't attempt to build ldap if building standalone modules. Create "directory" if it doesn't exist.

Bug #75734 r=dmose a=asa
This commit is contained in:
cls%seawood.org 2001-06-05 00:15:03 +00:00
Родитель 86bc6dc2f0
Коммит dc4be14436
2 изменённых файлов: 37 добавлений и 27 удалений

57
configure поставляемый
Просмотреть файл

@ -12218,7 +12218,9 @@ if test "${enable_xterm_updates+set}" = set; then
fi
MOZ_LDAP_XPCOM=1
if test "$BUILD_MODULES" = "all" || test `echo "$BUILD_MODULES" | grep -c ldap` -ne 0; then
MOZ_LDAP_XPCOM=1
fi
# Check whether --enable-ldap or --disable-ldap was given.
if test "${enable_ldap+set}" = set; then
@ -12446,7 +12448,7 @@ case "$target" in
# Extract the first word of "makeC++SharedLib_r", so it can be a program name with args.
set dummy makeC++SharedLib_r; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:12450: checking for $ac_word" >&5
echo "configure:12452: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_AIX_SHLIB_BIN'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@ -12592,7 +12594,7 @@ if test "$JPEG_DIR" = no; then
SYSTEM_JPEG=
else
echo $ac_n "checking for jpeg_destroy_compress in -ljpeg""... $ac_c" 1>&6
echo "configure:12596: checking for jpeg_destroy_compress in -ljpeg" >&5
echo "configure:12598: checking for jpeg_destroy_compress in -ljpeg" >&5
ac_lib_var=`echo jpeg'_'jpeg_destroy_compress | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@ -12600,7 +12602,7 @@ else
ac_save_LIBS="$LIBS"
LIBS="-ljpeg $JPEG_LIBS $LIBS"
cat > conftest.$ac_ext <<EOF
#line 12604 "configure"
#line 12606 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
@ -12611,7 +12613,7 @@ int main() {
jpeg_destroy_compress()
; return 0; }
EOF
if { (eval echo configure:12615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:12617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
@ -12640,7 +12642,7 @@ if test "$SYSTEM_JPEG" = 1; then
SYSTEM_JPEG=
else
cat > conftest.$ac_ext <<EOF
#line 12644 "configure"
#line 12646 "configure"
#include "confdefs.h"
#include <stdio.h>
#include <sys/types.h>
@ -12654,7 +12656,7 @@ else
}
EOF
if { (eval echo configure:12658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
if { (eval echo configure:12660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
SYSTEM_JPEG=1
else
@ -12692,16 +12694,16 @@ if test "$ZLIB_DIR" = no; then
SYSTEM_ZLIB=
else
echo $ac_n "checking "for zlib.h"""... $ac_c" 1>&6
echo "configure:12696: checking "for zlib.h"" >&5
echo "configure:12698: checking "for zlib.h"" >&5
cat > conftest.$ac_ext <<EOF
#line 12698 "configure"
#line 12700 "configure"
#include "confdefs.h"
#include "zlib.h"
int main() {
; return 0; }
EOF
if { (eval echo configure:12705: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
if { (eval echo configure:12707: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
result="yes" SYSTEM_ZLIB=1
else
@ -12715,7 +12717,7 @@ rm -f conftest*
fi
if test "$SYSTEM_ZLIB" = 1; then
echo $ac_n "checking for gzread in -lz""... $ac_c" 1>&6
echo "configure:12719: checking for gzread in -lz" >&5
echo "configure:12721: checking for gzread in -lz" >&5
ac_lib_var=`echo z'_'gzread | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@ -12723,7 +12725,7 @@ else
ac_save_LIBS="$LIBS"
LIBS="-lz $ZLIB_LIBS $LIBS"
cat > conftest.$ac_ext <<EOF
#line 12727 "configure"
#line 12729 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
@ -12734,7 +12736,7 @@ int main() {
gzread()
; return 0; }
EOF
if { (eval echo configure:12738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:12740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
@ -12780,7 +12782,7 @@ if test "$PNG_DIR" = no; then
SYSTEM_PNG=
else
echo $ac_n "checking for png_get_valid in -lpng""... $ac_c" 1>&6
echo "configure:12784: checking for png_get_valid in -lpng" >&5
echo "configure:12786: checking for png_get_valid in -lpng" >&5
ac_lib_var=`echo png'_'png_get_valid | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@ -12788,7 +12790,7 @@ else
ac_save_LIBS="$LIBS"
LIBS="-lpng $PNG_LIBS $LIBS"
cat > conftest.$ac_ext <<EOF
#line 12792 "configure"
#line 12794 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
@ -12799,7 +12801,7 @@ int main() {
png_get_valid()
; return 0; }
EOF
if { (eval echo configure:12803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:12805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
@ -12827,7 +12829,7 @@ if test "$SYSTEM_PNG" = 1; then
SYSTEM_PNG=
else
cat > conftest.$ac_ext <<EOF
#line 12831 "configure"
#line 12833 "configure"
#include "confdefs.h"
#include <stdio.h>
#include <sys/types.h>
@ -12841,7 +12843,7 @@ else
}
EOF
if { (eval echo configure:12845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
if { (eval echo configure:12847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
SYSTEM_PNG=1
else
@ -12880,7 +12882,7 @@ if test "$MNG_DIR" = no; then
SYSTEM_MNG=
else
echo $ac_n "checking for mng_initialize in -lmng""... $ac_c" 1>&6
echo "configure:12884: checking for mng_initialize in -lmng" >&5
echo "configure:12886: checking for mng_initialize in -lmng" >&5
ac_lib_var=`echo mng'_'mng_initialize | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@ -12888,7 +12890,7 @@ else
ac_save_LIBS="$LIBS"
LIBS="-lmng $MNG_LIBS $LIBS"
cat > conftest.$ac_ext <<EOF
#line 12892 "configure"
#line 12894 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
@ -12899,7 +12901,7 @@ int main() {
mng_initialize()
; return 0; }
EOF
if { (eval echo configure:12903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:12905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
@ -12927,7 +12929,7 @@ if test "$SYSTEM_MNG" = 1; then
SYSTEM_MNG=
else
cat > conftest.$ac_ext <<EOF
#line 12931 "configure"
#line 12933 "configure"
#include "confdefs.h"
#include <stdio.h>
#include <sys/types.h>
@ -12941,7 +12943,7 @@ else
}
EOF
if { (eval echo configure:12945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
if { (eval echo configure:12947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
SYSTEM_MNG=1
else
@ -13007,9 +13009,9 @@ CFLAGS="$CFLAGS -I${FULLCIRCLE_DIR}"
LDFLAGS="$LDFLAGS -L${FULLCIRCLE_DIR}"
LIBS="-lfullsoft $LIBS"
echo $ac_n "checking "for FCInitialize in -lfullsoft"""... $ac_c" 1>&6
echo "configure:13011: checking "for FCInitialize in -lfullsoft"" >&5;
echo "configure:13013: checking "for FCInitialize in -lfullsoft"" >&5;
cat > conftest.$ac_ext <<EOF
#line 13013 "configure"
#line 13015 "configure"
#include "confdefs.h"
#include <stdio.h>
#include "fullsoft.h"
@ -13017,7 +13019,7 @@ int main() {
FCInitialize(); exit(0);
; return 0; }
EOF
if { (eval echo configure:13021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:13023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
FULLCIRCLE_LIBS="-I${FULLCIRCLE_DIR} -L${FULLCIRCLE_DIR} -lfullsoft" result="yes"
else
@ -13964,6 +13966,9 @@ if test "$MOZ_LDAP_XPCOM"; then
# these subdirs may not yet have been created in the build tree.
# don't use the "-p" switch to mkdir, since not all platforms have it
#
if test ! -d "directory"; then
mkdir "directory"
fi
if test ! -d "directory/c-sdk"; then
mkdir "directory/c-sdk"
fi

Просмотреть файл

@ -3856,7 +3856,9 @@ dnl turn off with the --disable-ldap option. We also added the
dnl ldap-experimental flag, which is for experimental LDAP code,
dnl not currently turned on in the default build.
dnl
MOZ_LDAP_XPCOM=1
if test "$BUILD_MODULES" = "all" || test `echo "$BUILD_MODULES" | grep -c ldap` -ne 0; then
MOZ_LDAP_XPCOM=1
fi
dnl
dnl --disable-ldap
@ -4613,6 +4615,9 @@ if test "$MOZ_LDAP_XPCOM"; then
# these subdirs may not yet have been created in the build tree.
# don't use the "-p" switch to mkdir, since not all platforms have it
#
if test ! -d "directory"; then
mkdir "directory"
fi
if test ! -d "directory/c-sdk"; then
mkdir "directory/c-sdk"
fi