Commit 57700a56 authored by Sam Lantinga's avatar Sam Lantinga

*** empty log message ***

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40258
parent eaa38ae3
...@@ -2174,14 +2174,15 @@ AM_CONDITIONAL([ENABLE_STATIC], [test "$enable_static" = yes]) ...@@ -2174,14 +2174,15 @@ AM_CONDITIONAL([ENABLE_STATIC], [test "$enable_static" = yes])
if test $ARCH = linux -o $ARCH = freebsd -o $ARCH = bsdi; then if test $ARCH = linux -o $ARCH = freebsd -o $ARCH = bsdi; then
SDL_RLD_FLAGS="-Wl,-rpath,\${exec_prefix}/lib" SDL_RLD_FLAGS="-Wl,-rpath,\${exec_prefix}/lib"
fi fi
if test $ARCH = solaris; then if test $ARCH = solaris; then
SDL_RLD_FLAGS="-R\${exec_prefix}/lib" SDL_RLD_FLAGS="-R\${exec_prefix}/lib"
fi fi
if test $ARCH = openbsd -o $ARCH = bsdi; then
if test $ARCH = openbsd; then SHARED_SYSTEM_LIBS="$SYSTEM_LIBS"
SDL_RLD_FLAGS="-Wl,-rpath,\${exec_prefix}/lib $SYSTEM_LIBS" else
SHARED_SYSTEM_LIBS=""
fi fi
STATIC_SYSTEM_LIBS="$SYSTEM_LIBS"
dnl Output the video drivers we use dnl Output the video drivers we use
if test x$enable_video = xtrue; then if test x$enable_video = xtrue; then
...@@ -2199,15 +2200,16 @@ AC_SUBST(CDROM_SUBDIRS) ...@@ -2199,15 +2200,16 @@ AC_SUBST(CDROM_SUBDIRS)
AC_SUBST(CDROM_DRIVERS) AC_SUBST(CDROM_DRIVERS)
AC_SUBST(SDL_EXTRADIRS) AC_SUBST(SDL_EXTRADIRS)
AC_SUBST(SDL_EXTRALIBS) AC_SUBST(SDL_EXTRALIBS)
AC_SUBST(SYSTEM_LIBS)
dnl Expand the cflags and libraries needed by apps using SDL dnl Expand the cflags and libraries needed by apps using SDL
AC_SUBST(SDL_CFLAGS) AC_SUBST(SDL_CFLAGS)
AC_SUBST(SDL_LIBS) AC_SUBST(SDL_LIBS)
AC_SUBST(SDL_RLD_FLAGS) AC_SUBST(SDL_RLD_FLAGS)
dnl Expand the libraries needed for static linking dnl Expand the libraries needed for static and dynamic linking
AC_SUBST(SYSTEM_LIBS) AC_SUBST(STATIC_SYSTEM_LIBS)
AC_SUBST(SHARED_SYSTEM_LIBS)
dnl Expand the include directories for building SDL dnl Expand the include directories for building SDL
CFLAGS="$CFLAGS -I\$(top_srcdir)/include" CFLAGS="$CFLAGS -I\$(top_srcdir)/include"
CFLAGS="$CFLAGS -I\$(top_srcdir)/include/SDL" CFLAGS="$CFLAGS -I\$(top_srcdir)/include/SDL"
......
...@@ -49,12 +49,12 @@ while test $# -gt 0; do ...@@ -49,12 +49,12 @@ while test $# -gt 0; do
;; ;;
@ENABLE_SHARED_TRUE@ --libs) @ENABLE_SHARED_TRUE@ --libs)
@ENABLE_SHARED_TRUE@ libdirs="-L@libdir@ @SDL_RLD_FLAGS@" @ENABLE_SHARED_TRUE@ libdirs="-L@libdir@ @SDL_RLD_FLAGS@"
@ENABLE_SHARED_TRUE@ echo $libdirs @SDL_LIBS@ @ENABLE_SHARED_TRUE@ echo $libdirs @SDL_LIBS@ @SHARED_SYSTEM_LIBS@
@ENABLE_SHARED_TRUE@ ;; @ENABLE_SHARED_TRUE@ ;;
@ENABLE_STATIC_TRUE@@ENABLE_SHARED_TRUE@ --static-libs) @ENABLE_STATIC_TRUE@@ENABLE_SHARED_TRUE@ --static-libs)
@ENABLE_STATIC_TRUE@@ENABLE_SHARED_FALSE@ --libs|--static-libs) @ENABLE_STATIC_TRUE@@ENABLE_SHARED_FALSE@ --libs|--static-libs)
@ENABLE_STATIC_TRUE@ libdirs="-L@libdir@ @SDL_RLD_FLAGS@" @ENABLE_STATIC_TRUE@ libdirs="-L@libdir@ @SDL_RLD_FLAGS@"
@ENABLE_STATIC_TRUE@ echo $libdirs @SDL_LIBS@ @SYSTEM_LIBS@ @ENABLE_STATIC_TRUE@ echo $libdirs @SDL_LIBS@ @STATIC_SYSTEM_LIBS@
@ENABLE_STATIC_TRUE@ ;; @ENABLE_STATIC_TRUE@ ;;
*) *)
echo "${usage}" 1>&2 echo "${usage}" 1>&2
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment