diff options
author | cls%seawood.org <devnull@localhost> | 2001-02-25 21:45:18 +0000 |
---|---|---|
committer | cls%seawood.org <devnull@localhost> | 2001-02-25 21:45:18 +0000 |
commit | 07b0e52d4dc9ce91dc6ae04cae47c1144b1af3a9 (patch) | |
tree | 422697906088a7fd7a412e22c4f170ff26ef9465 | |
parent | b10332d8bfaef0070256328084f7df8801d0bafc (diff) | |
download | nspr-hg-07b0e52d4dc9ce91dc6ae04cae47c1144b1af3a9.tar.gz |
Fix nspr autoconf support for OpenVMS.
Thanks to Colin Blake <colin@theblakes.com> for the patch.
Bug #69842 r=cls
-rwxr-xr-x | build/autoconf/config.guess | 8 | ||||
-rw-r--r-- | config/rules.mk | 3 | ||||
-rwxr-xr-x | configure | 60 | ||||
-rw-r--r-- | configure.in | 10 | ||||
-rw-r--r-- | lib/ds/Makefile.in | 1 | ||||
-rw-r--r-- | lib/libc/src/Makefile.in | 1 | ||||
-rw-r--r-- | lib/prstreams/Makefile.in | 1 | ||||
-rw-r--r-- | pr/include/md/Makefile.in | 2 | ||||
-rw-r--r-- | pr/src/Makefile.in | 1 |
9 files changed, 59 insertions, 28 deletions
diff --git a/build/autoconf/config.guess b/build/autoconf/config.guess index 642042d4..d9b54dc6 100755 --- a/build/autoconf/config.guess +++ b/build/autoconf/config.guess @@ -1116,6 +1116,14 @@ EOF # says <Richard.M.Bartel@ccMail.Census.GOV> echo i586-unisys-sysv4 exit 0 ;; + *:*OpenVMS*:*:*) + case "${UNAME_SYSTEM}" in + POSIX_for_OpenVMS_AXP) echo alpha-dec-openvmsposix ;; + POSIX_for_OpenVMS_VAX) echo vax-dec-openvmsposix ;; + OpenVMS) echo alpha-dec-openvms ;; + *) echo unknown-dec-openvms ;; + esac + exit 0 ;; *:UNIX_System_V:4*:FTX*) # From Gerald Hewes <hewes@openmarket.com>. # How about differentiating between stratus architectures? -djm diff --git a/config/rules.mk b/config/rules.mk index 8b9c6886..25d33c45 100644 --- a/config/rules.mk +++ b/config/rules.mk @@ -346,9 +346,8 @@ ifeq ($(OS_TARGET), OpenVMS) @if test ! -f $(OBJDIR)/VMSuni.opt; then \ echo "Creating universal symbol option file $(OBJDIR)/VMSuni.opt";\ create_opt_uni $(OBJS); \ - mv VMSuni.opt $(OBJDIR); \ fi - $(MKSHLIB) -o $@ $(OBJS) $(EXTRA_LIBS) $(OS_LIBS) $(OBJDIR)/VMSuni.opt + $(MKSHLIB) -o $@ $(OBJS) $(EXTRA_LIBS) $(OBJDIR)/VMSuni.opt @echo "`translate $@`" > $(@:.$(DLL_SUFFIX)=.vms) else # OpenVMS ifdef USE_AUTOCONF @@ -2399,6 +2399,10 @@ if test "$OS_ARCH" = "IRIX64"; then OS_ARCH=IRIX fi +if test "$OS_ARCH" = "POSIX_for_OpenVMS_AXP"; then + OS_ARCH=OpenVMS +fi + ####################################################################### # Master "Core Components" macros for getting the OS target # ####################################################################### @@ -3656,13 +3660,19 @@ EOF #define GENERIC_PTHREAD_REDEFINES 1 EOF + RESOLVE_LINK_SYMBOLS=1 CROSS_COMPILE=1 + _HAVE_PTHREADS=1 HOST_CC=c89 HOST_CXX=cxx HOST_CFLAGS=-O HOST_CXXFLAGS=-O + CC=ccc + CXX=ccc CFLAGS="$CFLAGS -Wc,names=\(short,as\)" CXXFLAGS="$CXXFLAGS -Wc,names=\(short,as\)" + MDCPUCFG_H=_openvms.cfg + PR_MD_CSRCS=openvms.c MKSHLIB='vmsld $(OPTIMIZER)' ;; @@ -4137,12 +4147,12 @@ fi if test -z "$SKIP_LIBRARY_CHECKS"; then echo $ac_n "checking for dlopen""... $ac_c" 1>&6 -echo "configure:4141: checking for dlopen" >&5 +echo "configure:4151: checking for dlopen" >&5 if eval "test \"`echo '$''{'ac_cv_func_dlopen'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 4146 "configure" +#line 4156 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char dlopen(); below. */ @@ -4165,7 +4175,7 @@ dlopen(); ; return 0; } EOF -if { (eval echo configure:4169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:4179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_dlopen=yes" else @@ -4184,7 +4194,7 @@ else echo "$ac_t""no" 1>&6 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 -echo "configure:4188: checking for dlopen in -ldl" >&5 +echo "configure:4198: checking for dlopen in -ldl" >&5 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -4192,7 +4202,7 @@ else ac_save_LIBS="$LIBS" LIBS="-ldl $LIBS" cat > conftest.$ac_ext <<EOF -#line 4196 "configure" +#line 4206 "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 @@ -4203,7 +4213,7 @@ int main() { dlopen() ; return 0; } EOF -if { (eval echo configure:4207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:4217: \"$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 @@ -4230,7 +4240,7 @@ fi echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 -echo "configure:4234: checking how to run the C preprocessor" >&5 +echo "configure:4244: checking how to run the C preprocessor" >&5 # On Suns, sometimes $CPP names a directory. if test -n "$CPP" && test -d "$CPP"; then CPP= @@ -4245,13 +4255,13 @@ else # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. cat > conftest.$ac_ext <<EOF -#line 4249 "configure" +#line 4259 "configure" #include "confdefs.h" #include <assert.h> Syntax Error EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:4255: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:4265: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then : @@ -4262,13 +4272,13 @@ else rm -rf conftest* CPP="${CC-cc} -E -traditional-cpp" cat > conftest.$ac_ext <<EOF -#line 4266 "configure" +#line 4276 "configure" #include "confdefs.h" #include <assert.h> Syntax Error EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:4272: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:4282: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then : @@ -4279,13 +4289,13 @@ else rm -rf conftest* CPP="${CC-cc} -nologo -E" cat > conftest.$ac_ext <<EOF -#line 4283 "configure" +#line 4293 "configure" #include "confdefs.h" #include <assert.h> Syntax Error EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:4289: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:4299: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then : @@ -4311,13 +4321,13 @@ echo "$ac_t""$CPP" 1>&6 if test $ac_cv_prog_gcc = yes; then echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 -echo "configure:4315: checking whether ${CC-cc} needs -traditional" >&5 +echo "configure:4325: checking whether ${CC-cc} needs -traditional" >&5 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_pattern="Autoconf.*'x'" cat > conftest.$ac_ext <<EOF -#line 4321 "configure" +#line 4331 "configure" #include "confdefs.h" #include <sgtty.h> Autoconf TIOCGETP @@ -4335,7 +4345,7 @@ rm -f conftest* if test $ac_cv_prog_gcc_traditional = no; then cat > conftest.$ac_ext <<EOF -#line 4339 "configure" +#line 4349 "configure" #include "confdefs.h" #include <termio.h> Autoconf TCGETA @@ -4359,12 +4369,12 @@ fi for ac_func in lchown strerror do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:4363: checking for $ac_func" >&5 +echo "configure:4373: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 4368 "configure" +#line 4378 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $ac_func(); below. */ @@ -4387,7 +4397,7 @@ $ac_func(); ; return 0; } EOF -if { (eval echo configure:4391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:4401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -4418,7 +4428,7 @@ done echo $ac_n "checking for pthread_create in -lpthreads""... $ac_c" 1>&6 -echo "configure:4422: checking for pthread_create in -lpthreads" >&5 +echo "configure:4432: checking for pthread_create in -lpthreads" >&5 echo " #include <pthread.h> void *foo(void *v) { int a = 1; } @@ -4440,7 +4450,7 @@ echo " echo "$ac_t""no" 1>&6 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6 -echo "configure:4444: checking for pthread_create in -lpthread" >&5 +echo "configure:4454: checking for pthread_create in -lpthread" >&5 echo " #include <pthread.h> void *foo(void *v) { int a = 1; } @@ -4462,7 +4472,7 @@ echo " echo "$ac_t""no" 1>&6 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6 -echo "configure:4466: checking for pthread_create in -lc_r" >&5 +echo "configure:4476: checking for pthread_create in -lc_r" >&5 echo " #include <pthread.h> void *foo(void *v) { int a = 1; } @@ -4484,7 +4494,7 @@ echo " echo "$ac_t""no" 1>&6 echo $ac_n "checking for pthread_create in -lc""... $ac_c" 1>&6 -echo "configure:4488: checking for pthread_create in -lc" >&5 +echo "configure:4498: checking for pthread_create in -lc" >&5 echo " #include <pthread.h> void *foo(void *v) { int a = 1; } @@ -4634,7 +4644,7 @@ if test -n "$USE_PTHREADS"; then rm -f conftest* ac_cv_have_dash_pthread=no echo $ac_n "checking whether ${CC-cc} accepts -pthread""... $ac_c" 1>&6 -echo "configure:4638: checking whether ${CC-cc} accepts -pthread" >&5 +echo "configure:4648: checking whether ${CC-cc} accepts -pthread" >&5 echo 'int main() { return 0; }' | cat > conftest.c ${CC-cc} -pthread -o conftest conftest.c > conftest.out 2>&1 if test $? -eq 0; then @@ -4650,7 +4660,7 @@ echo "configure:4638: checking whether ${CC-cc} accepts -pthread" >&5 ac_cv_have_dash_pthreads=no if test "$ac_cv_have_dash_pthread" = "no"; then echo $ac_n "checking whether ${CC-cc} accepts -pthreads""... $ac_c" 1>&6 -echo "configure:4654: checking whether ${CC-cc} accepts -pthreads" >&5 +echo "configure:4664: checking whether ${CC-cc} accepts -pthreads" >&5 echo 'int main() { return 0; }' | cat > conftest.c ${CC-cc} -pthreads -o conftest conftest.c > conftest.out 2>&1 if test $? -eq 0; then diff --git a/configure.in b/configure.in index 91c70d95..b4bb7007 100644 --- a/configure.in +++ b/configure.in @@ -321,6 +321,10 @@ if test "$OS_ARCH" = "IRIX64"; then OS_ARCH=IRIX fi +if test "$OS_ARCH" = "POSIX_for_OpenVMS_AXP"; then + OS_ARCH=OpenVMS +fi + ####################################################################### # Master "Core Components" macros for getting the OS target # ####################################################################### @@ -1156,13 +1160,19 @@ mips-sony-newsos*) AC_DEFINE(VMS) AC_DEFINE(VMS_AS_IS) AC_DEFINE(GENERIC_PTHREAD_REDEFINES) + RESOLVE_LINK_SYMBOLS=1 CROSS_COMPILE=1 + _HAVE_PTHREADS=1 HOST_CC=c89 HOST_CXX=cxx HOST_CFLAGS=-O HOST_CXXFLAGS=-O + CC=ccc + CXX=ccc CFLAGS="$CFLAGS -Wc,names=\(short,as\)" CXXFLAGS="$CXXFLAGS -Wc,names=\(short,as\)" + MDCPUCFG_H=_openvms.cfg + PR_MD_CSRCS=openvms.c MKSHLIB='vmsld $(OPTIMIZER)' ;; diff --git a/lib/ds/Makefile.in b/lib/ds/Makefile.in index 4946d4c6..aa0887d3 100644 --- a/lib/ds/Makefile.in +++ b/lib/ds/Makefile.in @@ -179,6 +179,7 @@ else endif ifeq ($(OS_ARCH), OpenVMS) $(INSTALL) -m 444 $(SHARED_LIBRARY:.$(DLL_SUFFIX)=.vms) $(libdir) + $(INSTALL) -m 444 $(SHARED_LIBRARY:.$(DLL_SUFFIX)=.vms) $(bindir) endif endif ifeq ($(MOZ_BITS),16) diff --git a/lib/libc/src/Makefile.in b/lib/libc/src/Makefile.in index 33c5b4aa..448b85fa 100644 --- a/lib/libc/src/Makefile.in +++ b/lib/libc/src/Makefile.in @@ -177,6 +177,7 @@ else endif ifeq ($(OS_ARCH), OpenVMS) $(INSTALL) -m 444 $(SHARED_LIBRARY:.$(DLL_SUFFIX)=.vms) $(libdir) + $(INSTALL) -m 444 $(SHARED_LIBRARY:.$(DLL_SUFFIX)=.vms) $(bindir) endif endif ifeq ($(MOZ_BITS),16) diff --git a/lib/prstreams/Makefile.in b/lib/prstreams/Makefile.in index 6b690582..72151664 100644 --- a/lib/prstreams/Makefile.in +++ b/lib/prstreams/Makefile.in @@ -206,6 +206,7 @@ ifeq ($(OS_ARCH),OpenVMS) $(INSTALL) -m 444 $(SHARED_LIBRARY) $(libdir) ifdef SHARED_LIBRARY $(INSTALL) -m 444 $(SHARED_LIBRARY:.$(DLL_SUFFIX)=.vms) $(libdir) + $(INSTALL) -m 444 $(SHARED_LIBRARY:.$(DLL_SUFFIX)=.vms) $(bindir) endif endif diff --git a/pr/include/md/Makefile.in b/pr/include/md/Makefile.in index 3e714a5a..ed7a7a8a 100644 --- a/pr/include/md/Makefile.in +++ b/pr/include/md/Makefile.in @@ -183,7 +183,7 @@ else # mv'ing a link causes the file itself to move, not the link. rm -f $(includedir)/$(MDCPUCFG_H) rm -f $(includedir)/prcpucfg.h - ln -fs `pwd`/$(MDCPUCFG_H) $(includedir)/prcpucfg.h + ln -fs $(srcdir)/$(MDCPUCFG_H) $(includedir)/prcpucfg.h endif endif diff --git a/pr/src/Makefile.in b/pr/src/Makefile.in index c27d7375..3f577482 100644 --- a/pr/src/Makefile.in +++ b/pr/src/Makefile.in @@ -447,6 +447,7 @@ else endif ifeq ($(OS_ARCH), OpenVMS) $(INSTALL) -m 444 $(SHARED_LIBRARY:.$(DLL_SUFFIX)=.vms) $(libdir) + $(INSTALL) -m 444 $(SHARED_LIBRARY:.$(DLL_SUFFIX)=.vms) $(bindir) endif endif ifeq ($(MOZ_BITS),16) |