Skip to content
Snippets Groups Projects
Commit 371f75a7 authored by Martin Stjernholm's avatar Martin Stjernholm
Browse files

Cache $CCSHARED to make it available in subconfigure scripts.

Rev: src/configure.in:1.279
parent 42e706a8
No related branches found
No related tags found
No related merge requests found
AC_REVISION("$Id: configure.in,v 1.278 1999/04/25 21:06:39 grubba Exp $") AC_REVISION("$Id: configure.in,v 1.279 1999/04/29 10:48:28 mast Exp $")
AC_INIT(interpret.c) AC_INIT(interpret.c)
AC_CONFIG_HEADER(machine.h) AC_CONFIG_HEADER(machine.h)
...@@ -2781,6 +2781,7 @@ AC_MSG_RESULT($LDSHARED) ...@@ -2781,6 +2781,7 @@ AC_MSG_RESULT($LDSHARED)
# CCSHARED are the C *flags* used to create objects to go into a shared # CCSHARED are the C *flags* used to create objects to go into a shared
# library -- this is only needed for a few systems # library -- this is only needed for a few systems
AC_MSG_CHECKING(CCSHARED) AC_MSG_CHECKING(CCSHARED)
AC_CACHE_VAL(pike_cv_sys_ccshared,[
if test -z "$CCSHARED" ; then if test -z "$CCSHARED" ; then
if test "$GCC" = yes ; then if test "$GCC" = yes ; then
case $pike_cv_sys_os in case $pike_cv_sys_os in
...@@ -2808,6 +2809,13 @@ if test -z "$CCSHARED" ; then ...@@ -2808,6 +2809,13 @@ if test -z "$CCSHARED" ; then
esac esac
fi fi
fi fi
OLD_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS $CCSHARED"
AC_TRY_COMPILE([], [int main() { exit(0); }],
pike_cv_sys_ccshared="$CCSHARED", pike_cv_sys_ccshared='')
CFLAGS="$OLD_CFLAGS"
])
CCSHARED="$pike_cv_sys_ccshared"
AC_MSG_RESULT($CCSHARED) AC_MSG_RESULT($CCSHARED)
AC_MSG_CHECKING(LINKFORSHARED) AC_MSG_CHECKING(LINKFORSHARED)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment