smock: use $basearch in smock.mock.extra
[fedora-mingw.git] / nspr / nspr-configure-remove-crack.patch
1 Remove some of the more egregious crack in the configure.in script.
2
3 --- mozilla/nsprpub/configure.in.orig   2009-02-18 13:12:46.000000000 +0000
4 +++ mozilla/nsprpub/configure.in        2009-02-18 13:39:28.000000000 +0000
5 @@ -42,7 +42,7 @@
6  AC_PREREQ(2.12)
7  AC_INIT(config/libc_r.h)
8  
9 -AC_CONFIG_AUX_DIR(${srcdir}/build/autoconf)
10 +AC_CONFIG_AUX_DIR(build/autoconf)
11  AC_CANONICAL_SYSTEM
12  
13  dnl ========================================================
14 @@ -427,7 +427,7 @@
15  
16      AC_MSG_CHECKING([whether the $host compiler ($HOST_CC $HOST_CFLAGS $HOST_LDFLAGS) works])
17      AC_TRY_COMPILE([], [return(0);], 
18 -        [ac_cv_prog_host_cc_works=1 AC_MSG_RESULT([yes])],
19 +        [ac_cv_prog_host_cc_works=1; AC_MSG_RESULT([yes])],
20          AC_MSG_ERROR([installation or configuration problem: $host compiler $HOST_CC cannot create executables.]) )
21  
22      CC=$_SAVE_CC
23 @@ -509,6 +509,11 @@
24  fi
25  rm -f a.out
26  
27 +# RWMJ: Just force the above:
28 +GNU_CC=1
29 +GNU_CXX=1
30 +GNU_AS=1
31 +
32  case "$build:$target" in
33      i?86-apple-darwin*:powerpc-apple-darwin*)
34          dnl cross_compiling will have erroneously been set to "no" in this
35 @@ -2212,9 +2217,11 @@
36  *-darwin*|*-beos*)
37      ;;
38  *)
39 -    AC_CHECK_LIB(dl, dlopen,
40 -        AC_CHECK_HEADER(dlfcn.h,
41 -            OS_LIBS="-ldl $OS_LIBS"))
42 +    AC_CHECK_LIB([dl], [dlopen], [have_dl=yes])
43 +    AC_CHECK_HEADER([dlfcn.h], [have_dlfcn=yes])
44 +    if test -n "$have_dl" -a -n "$have_dlfcn"; then
45 +      OS_LIBS="-ldl $OS_LIBS"
46 +    fi
47      ;;
48  esac
49