Stop relying on uname and instead ask autoconf what platform

we are building for. This makes cross compiling things a lot
easier.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9990 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Pierre Ossman
2013-09-24 09:10:04 +00:00
parent 1029debb66
commit e1df29b852
8 changed files with 3502 additions and 155 deletions
+7 -2
View File
@@ -66,7 +66,7 @@ clean:
done done
distclean: clean distclean: clean
$(RM) config.* $(RM) config.h config.log config.status
$(RM) fltk-config fltk.list makeinclude $(RM) fltk-config fltk.list makeinclude
$(RM) fltk.spec $(RM) fltk.spec
$(RM) FL/Makefile $(RM) FL/Makefile
@@ -90,7 +90,7 @@ fltk-config: configure configh.in fltk-config.in
touch config.h touch config.h
chmod +x fltk-config chmod +x fltk-config
makeinclude: configure configh.in makeinclude.in makeinclude: configure configh.in makeinclude.in config.guess config.sub
if test -f config.status; then \ if test -f config.status; then \
./config.status --recheck; \ ./config.status --recheck; \
./config.status; \ ./config.status; \
@@ -103,6 +103,11 @@ makeinclude: configure configh.in makeinclude.in
configure: configure.in configure: configure.in
autoconf autoconf
config.guess config.sub:
-automake --add-missing 2> /dev/null
if [ ! -e config.sub ]; then echo NOTE: Using frozen copy of config.sub; cp misc/config.sub . ; fi
if [ ! -e config.guess ]; then echo NOTE: Using frozen copy of config.guess; cp misc/config.guess . ; fi
portable-dist: portable-dist:
epm -v -s fltk.xpm fltk epm -v -s fltk.xpm fltk
+4 -1
View File
@@ -214,9 +214,12 @@ in my dev directory:
Configuring FLTK Configuring FLTK
------------------ ------------------
Stay in your FLTK source-code directory. Type: If you got FLTK via subversion then you need two extra steps. Otherwise skip
over this part. Stay in your FLTK source-code directory. Type the following
but ignore any errors from the second command:
autoconf autoconf
automake --add-missing
Now configure your FLTK installation: Now configure your FLTK installation:
+4 -1
View File
@@ -91,9 +91,12 @@ dev directory:
2.3 Configuring FLTK 2.3 Configuring FLTK
----------------------- -----------------------
Stay in your FLTK source-code directory. Type: If you got FLTK via subversion then you need two extra steps. Otherwise skip
over this part. Stay in your FLTK source-code directory. Type the following
but ignore any errors from the second command:
autoconf autoconf
automake --add-missing
Now configure your FLTK installation: Now configure your FLTK installation:
+4 -1
View File
@@ -293,9 +293,12 @@ dev directory:
3.2 Configuring FLTK 3.2 Configuring FLTK
----------------------- -----------------------
Stay in your FLTK source-code directory. Type: If you got FLTK via subversion then you need two extra steps. Otherwise skip
over this part. Stay in your FLTK source-code directory. Type the following
but ignore any errors from the second command:
autoconf autoconf
automake --add-missing
Now configure your FLTK installation: Now configure your FLTK installation:
+102 -118
View File
@@ -24,15 +24,20 @@ AC_PREREQ(2.50)
dnl Required file in package... dnl Required file in package...
AC_INIT(src/Fl.cxx) AC_INIT(src/Fl.cxx)
AC_CANONICAL_HOST
dnl So --with-archflags option is used during "checking size of long" dnl So --with-archflags option is used during "checking size of long"
if test `uname` = Darwin; then case $host_os in
darwin*)
if test "x$with_archflags" != x ; then if test "x$with_archflags" != x ; then
CFLAGS="$CFLAGS $with_archflags" CFLAGS="$CFLAGS $with_archflags"
fi fi
USEMMFILES="Yes" USEMMFILES="Yes"
else ;;
*)
USEMMFILES="No" USEMMFILES="No"
fi ;;
esac
AC_SUBST(USEMMFILES) AC_SUBST(USEMMFILES)
dnl FLTK library versions... dnl FLTK library versions...
@@ -46,18 +51,6 @@ AC_SUBST(FL_MINOR_VERSION)
AC_SUBST(FL_PATCH_VERSION) AC_SUBST(FL_PATCH_VERSION)
AC_SUBST(FL_API_VERSION) AC_SUBST(FL_API_VERSION)
dnl Get the operating system and version number...
uname=`uname`
uversion=`uname -r | sed -e '1,$s/[[^0-9]]//g'`
if test "x$uname" = xIRIX64; then
uname="IRIX"
fi
if test "x$uname" = x; then
# Older MinGW doesn't provide any output when uname is run, even with "-s".
# Current MinGW (as of Jan. 2011) however does, so this is not necessary anymore...
uname="MINGW"
fi
dnl Do not automatically add "-g" to compiler options... dnl Do not automatically add "-g" to compiler options...
ARCHFLAGS="${ARCHFLAGS:=}" ARCHFLAGS="${ARCHFLAGS:=}"
CFLAGS="${CFLAGS:=}" CFLAGS="${CFLAGS:=}"
@@ -70,21 +63,11 @@ OPTIM="${OPTIM:=}"
AC_SUBST(ARCHFLAGS) AC_SUBST(ARCHFLAGS)
AC_SUBST(OPTIM) AC_SUBST(OPTIM)
dnl in case of cross-compiling mingw32 under linux we must change uname for Win32 GUI
dnl run ./configure --host=i686-pc-ming32 try use X11 without change uname
if test "x$cross_compiling" != xno ; then
case $host_alias in
*mingw*)
uname=MINGW
;;
esac
fi
dnl OS-specific pre-tests... dnl OS-specific pre-tests...
dnl uname_GUI equals $uname unless we target Cygwin in combination with X11. dnl host_os_gui equals $host_os unless we target Cygwin in combination with X11.
uname_GUI=$uname host_os_gui=$host_os
case $uname in case $host_os in
CYGWIN*) cygwin*)
# Handle Cygwin option *first*, before all other tests. # Handle Cygwin option *first*, before all other tests.
AC_ARG_ENABLE(cygwin, [ --enable-cygwin use the Cygwin libraries [(default=no)]]) AC_ARG_ENABLE(cygwin, [ --enable-cygwin use the Cygwin libraries [(default=no)]])
AC_ARG_ENABLE(x11, [ --enable-x11 use Cygwin with X11 [(default=no)]]) AC_ARG_ENABLE(x11, [ --enable-x11 use Cygwin with X11 [(default=no)]])
@@ -100,7 +83,7 @@ case $uname in
else else
# we target Cygwin in combination with X11 # we target Cygwin in combination with X11
if test x$enable_x11 = xyes; then if test x$enable_x11 = xyes; then
uname_GUI="X11$uname" host_os_gui="X11$host_os"
fi fi
fi fi
;; ;;
@@ -211,8 +194,8 @@ if test x$enable_shared = xyes; then
SHAREDSUFFIX="" SHAREDSUFFIX=""
FLUID="fluid-shared" FLUID="fluid-shared"
case $uname in case $host_os in
Darwin*) darwin*)
DSONAME="libfltk.$FL_API_VERSION.dylib" DSONAME="libfltk.$FL_API_VERSION.dylib"
FLDSONAME="libfltk_forms.$FL_API_VERSION.dylib" FLDSONAME="libfltk_forms.$FL_API_VERSION.dylib"
GLDSONAME="libfltk_gl.$FL_API_VERSION.dylib" GLDSONAME="libfltk_gl.$FL_API_VERSION.dylib"
@@ -221,7 +204,7 @@ if test x$enable_shared = xyes; then
DSOCOMMAND="\$(CXX) \$(ARCHFLAGS) \$(DSOFLAGS) -dynamiclib -lc -o" DSOCOMMAND="\$(CXX) \$(ARCHFLAGS) \$(DSOFLAGS) -dynamiclib -lc -o"
;; ;;
SunOS* | UNIX_S*) solaris*)
DSONAME="libfltk.so.$FL_API_VERSION" DSONAME="libfltk.so.$FL_API_VERSION"
FLDSONAME="libfltk_forms.so.$FL_API_VERSION" FLDSONAME="libfltk_forms.so.$FL_API_VERSION"
GLDSONAME="libfltk_gl.so.$FL_API_VERSION" GLDSONAME="libfltk_gl.so.$FL_API_VERSION"
@@ -232,7 +215,7 @@ if test x$enable_shared = xyes; then
DSOLINK="-R$libdir" DSOLINK="-R$libdir"
fi fi
;; ;;
HP-UX*) hpux*)
DSONAME="libfltk.sl.$FL_API_VERSION" DSONAME="libfltk.sl.$FL_API_VERSION"
FLDSONAME="libfltk_forms.sl.$FL_API_VERSION" FLDSONAME="libfltk_forms.sl.$FL_API_VERSION"
GLDSONAME="libfltk_gl.sl.$FL_API_VERSION" GLDSONAME="libfltk_gl.sl.$FL_API_VERSION"
@@ -243,7 +226,7 @@ if test x$enable_shared = xyes; then
DSOLINK="-Wl,-rpath,$libdir" DSOLINK="-Wl,-rpath,$libdir"
fi fi
;; ;;
IRIX*) irix*)
DSONAME="libfltk.so.$FL_API_VERSION" DSONAME="libfltk.so.$FL_API_VERSION"
FLDSONAME="libfltk_forms.so.$FL_API_VERSION" FLDSONAME="libfltk_forms.so.$FL_API_VERSION"
GLDSONAME="libfltk_gl.so.$FL_API_VERSION" GLDSONAME="libfltk_gl.so.$FL_API_VERSION"
@@ -254,7 +237,7 @@ if test x$enable_shared = xyes; then
DSOLINK="-Wl,-rpath,$libdir" DSOLINK="-Wl,-rpath,$libdir"
fi fi
;; ;;
OSF1*) osf*)
DSONAME="libfltk.so.$FL_API_VERSION" DSONAME="libfltk.so.$FL_API_VERSION"
FLDSONAME="libfltk_forms.so.$FL_API_VERSION" FLDSONAME="libfltk_forms.so.$FL_API_VERSION"
GLDSONAME="libfltk_gl.so.$FL_API_VERSION" GLDSONAME="libfltk_gl.so.$FL_API_VERSION"
@@ -265,7 +248,7 @@ if test x$enable_shared = xyes; then
DSOLINK="-Wl,-rpath,$libdir" DSOLINK="-Wl,-rpath,$libdir"
fi fi
;; ;;
Linux* | *BSD*) linux* | *bsd*)
DSONAME="libfltk.so.$FL_API_VERSION" DSONAME="libfltk.so.$FL_API_VERSION"
FLDSONAME="libfltk_forms.so.$FL_API_VERSION" FLDSONAME="libfltk_forms.so.$FL_API_VERSION"
GLDSONAME="libfltk_gl.so.$FL_API_VERSION" GLDSONAME="libfltk_gl.so.$FL_API_VERSION"
@@ -276,7 +259,7 @@ if test x$enable_shared = xyes; then
DSOLINK="-Wl,-rpath,$libdir" DSOLINK="-Wl,-rpath,$libdir"
fi fi
;; ;;
AIX*) aix*)
DSONAME="libfltk_s.a" DSONAME="libfltk_s.a"
FLDSONAME="libfltk_forms_s.a" FLDSONAME="libfltk_forms_s.a"
GLDSONAME="libfltk_gl_s.a" GLDSONAME="libfltk_gl_s.a"
@@ -285,7 +268,7 @@ if test x$enable_shared = xyes; then
DSOCOMMAND="\$(CXX) \$(DSOFLAGS) -Wl,-bexpall,-bM:SRE,-bnoentry -o" DSOCOMMAND="\$(CXX) \$(DSOFLAGS) -Wl,-bexpall,-bM:SRE,-bnoentry -o"
SHAREDSUFFIX="_s" SHAREDSUFFIX="_s"
;; ;;
CYGWIN* | MINGW*) cygwin* | mingw*)
PICFLAG=0 PICFLAG=0
if test x$enable_cygwin != xyes; then if test x$enable_cygwin != xyes; then
DSONAME="mgwfltknox-$FL_API_VERSION.dll" DSONAME="mgwfltknox-$FL_API_VERSION.dll"
@@ -364,8 +347,8 @@ AC_ARG_WITH(archflags, [ --with-archflags="flags"
use custom architecture flags use custom architecture flags
(possible Mac OS X values include -arch i386, -arch x86_64, -arch ppc)], (possible Mac OS X values include -arch i386, -arch x86_64, -arch ppc)],
ARCHFLAGS="$withval") ARCHFLAGS="$withval")
case $uname in case $host_os in
Darwin*) darwin*)
# QD is not supported anymore since 1.3 # QD is not supported anymore since 1.3
AC_DEFINE(__APPLE_QUARTZ__) AC_DEFINE(__APPLE_QUARTZ__)
;; ;;
@@ -375,8 +358,8 @@ dnl Find commands...
AC_PROG_CC AC_PROG_CC
AC_PROG_CXX AC_PROG_CXX
AC_PROG_INSTALL AC_PROG_INSTALL
case $uname in case $host_os in
OSF1*) osf*)
INSTALL="`pwd`/install-sh -c" INSTALL="`pwd`/install-sh -c"
;; ;;
esac esac
@@ -418,10 +401,6 @@ dnl this will only be used to compile resources for Windows .exe files
AC_PATH_TOOL(RC,windres) AC_PATH_TOOL(RC,windres)
dnl Architecture checks... dnl Architecture checks...
if test "$uname" != Darwin; then
AC_C_BIGENDIAN
fi
AC_CHECK_SIZEOF(short, 2) AC_CHECK_SIZEOF(short, 2)
AC_CHECK_SIZEOF(int, 4) AC_CHECK_SIZEOF(int, 4)
AC_CHECK_SIZEOF(long, 4) AC_CHECK_SIZEOF(long, 4)
@@ -435,7 +414,12 @@ else
AC_DEFINE(U32,unsigned long) AC_DEFINE(U32,unsigned long)
fi fi
fi fi
if test "$uname" != Darwin; then case $host_os in
darwin*)
;;
*)
AC_C_BIGENDIAN
if test $ac_cv_sizeof_int -eq 8; then if test $ac_cv_sizeof_int -eq 8; then
AC_DEFINE(U64,unsigned) AC_DEFINE(U64,unsigned)
else else
@@ -443,7 +427,8 @@ if test "$uname" != Darwin; then
AC_DEFINE(U64,unsigned long) AC_DEFINE(U64,unsigned long)
fi fi
fi fi
fi ;;
esac
dnl Does the C++ compiler support the bool type? dnl Does the C++ compiler support the bool type?
AC_CACHE_CHECK(whether the compiler recognizes bool as a built-in type, AC_CACHE_CHECK(whether the compiler recognizes bool as a built-in type,
@@ -494,54 +479,37 @@ if test "$ac_cv_cxx_scandir_posix" = yes; then
AC_DEFINE(HAVE_SCANDIR) AC_DEFINE(HAVE_SCANDIR)
AC_DEFINE(HAVE_SCANDIR_POSIX) AC_DEFINE(HAVE_SCANDIR_POSIX)
else else
AC_CHECK_FUNC(scandir, AC_CHECK_FUNC(scandir,[
if test "x$uname" = xSunOS -o "x$uname" = xQNX; then case $host_os in
AC_MSG_WARN(Not using $uname scandir emulation function.) solaris* | *qnx*)
else AC_MSG_WARN(Not using $host_os scandir emulation function.)
;;
*)
AC_DEFINE(HAVE_SCANDIR) AC_DEFINE(HAVE_SCANDIR)
fi) ;;
esac])
fi fi
AC_CHECK_FUNC(vsnprintf,[ AC_CHECK_FUNC(vsnprintf,[
case "$uname" in case $host_os in
HP-UX*) hpux1020)
if test "$uversion" = "1020"; then
AC_MSG_WARN(Not using built-in vsnprintf function because you are running HP-UX 10.20.) AC_MSG_WARN(Not using built-in vsnprintf function because you are running HP-UX 10.20.)
else
AC_DEFINE(HAVE_VSNPRINTF)
fi
;; ;;
osf4)
OSF1*)
if test "$uversion" = "40"; then
AC_MSG_WARN(Not using built-in vsnprintf function because you are running Tru64 4.0.) AC_MSG_WARN(Not using built-in vsnprintf function because you are running Tru64 4.0.)
else
AC_DEFINE(HAVE_VSNPRINTF)
fi
;; ;;
*) *)
AC_DEFINE(HAVE_VSNPRINTF) AC_DEFINE(HAVE_VSNPRINTF)
;; ;;
esac]) esac])
AC_CHECK_FUNC(snprintf,[ AC_CHECK_FUNC(snprintf,[
case "$uname" in case $host_os in
HP-UX*) hpux1020)
if test "$uversion" = "1020"; then
AC_MSG_WARN(Not using built-in snprintf function because you are running HP-UX 10.20.) AC_MSG_WARN(Not using built-in snprintf function because you are running HP-UX 10.20.)
else
AC_DEFINE(HAVE_SNPRINTF)
fi
;; ;;
osf4)
OSF1*)
if test "$uversion" = "40"; then
AC_MSG_WARN(Not using built-in snprintf function because you are running Tru64 4.0.) AC_MSG_WARN(Not using built-in snprintf function because you are running Tru64 4.0.)
else
AC_DEFINE(HAVE_SNPRINTF)
fi
;; ;;
*) *)
AC_DEFINE(HAVE_SNPRINTF) AC_DEFINE(HAVE_SNPRINTF)
;; ;;
@@ -594,13 +562,13 @@ AC_CHECK_HEADER(dlfcn.h, AC_DEFINE(HAVE_DLFCN_H))
dnl Check for audio libraries... dnl Check for audio libraries...
AUDIOLIBS="" AUDIOLIBS=""
case $uname in case $host_os in
CYGWIN* | MINGW*) cygwin* | mingw*)
dnl Cygwin environment... dnl Cygwin environment...
AUDIOLIBS="-lwinmm" AUDIOLIBS="-lwinmm"
;; ;;
Darwin*) darwin*)
AUDIOLIBS="-framework CoreAudio" AUDIOLIBS="-framework CoreAudio"
;; ;;
@@ -760,11 +728,11 @@ dnl Test whether we want to check for pthreads. We must not do it on Windows
dnl unless we run under Cygwin with --enable-cygwin, since we always use dnl unless we run under Cygwin with --enable-cygwin, since we always use
dnl native threads on Windows (even if libpthread is available) dnl native threads on Windows (even if libpthread is available)
check_pthread=yes check_pthread=yes
case $uname in case $host_os in
MINGW*) mingw*)
check_pthread=no check_pthread=no
;; ;;
CYGWIN*) cygwin*)
if test "x$enable_cygwin" != xyes; then if test "x$enable_cygwin" != xyes; then
check_pthread=no check_pthread=no
fi fi
@@ -794,9 +762,11 @@ if test "x$enable_threads" != xno -a x$check_pthread = xyes; then
# Solaris requires -D_POSIX_PTHREAD_SEMANTICS to # Solaris requires -D_POSIX_PTHREAD_SEMANTICS to
# be POSIX-compliant... :( # be POSIX-compliant... :(
if test $uname = SunOS; then case $host_os in
solaris*)
PTHREAD_FLAGS="$PTHREAD_FLAGS -D_POSIX_PTHREAD_SEMANTICS" PTHREAD_FLAGS="$PTHREAD_FLAGS -D_POSIX_PTHREAD_SEMANTICS"
fi ;;
esac
break break
fi fi
done done
@@ -815,8 +785,8 @@ AC_ARG_WITH(links, [ --with-links make header links for common missp
INSTALL_DESKTOP="" INSTALL_DESKTOP=""
UNINSTALL_DESKTOP="" UNINSTALL_DESKTOP=""
case $uname_GUI in case $host_os_gui in
CYGWIN* | MINGW*) cygwin* | mingw*)
dnl Cygwin environment, using windows GDI ... dnl Cygwin environment, using windows GDI ...
# Recent versions of Cygwin are seriously broken and the size # Recent versions of Cygwin are seriously broken and the size
# checks don't work because the shell puts out \r\n instead of # checks don't work because the shell puts out \r\n instead of
@@ -860,7 +830,7 @@ case $uname_GUI in
fi fi
;; ;;
Darwin*) darwin*)
# MacOS X uses Cocoa for graphics. # MacOS X uses Cocoa for graphics.
LIBS="$LIBS -framework Cocoa" LIBS="$LIBS -framework Cocoa"
@@ -1024,8 +994,8 @@ case $uname_GUI in
# Make symlinks since UNIX/Linux is case sensitive, # Make symlinks since UNIX/Linux is case sensitive,
# but Cygwin in general not. # but Cygwin in general not.
case $uname in case $host_os in
CYGWIN*) cygwin*)
HLINKS="#" HLINKS="#"
;; ;;
*) *)
@@ -1053,14 +1023,14 @@ AC_SUBST(INSTALL_DESKTOP)
AC_SUBST(UNINSTALL_DESKTOP) AC_SUBST(UNINSTALL_DESKTOP)
dnl Figure out the appropriate formatted man page extension... dnl Figure out the appropriate formatted man page extension...
case "$uname" in case "$host_os" in
*BSD* | Darwin*) *bsd* | darwin*)
# *BSD # *BSD
CAT1EXT=0 CAT1EXT=0
CAT3EXT=0 CAT3EXT=0
CAT6EXT=0 CAT6EXT=0
;; ;;
IRIX*) irix*)
# SGI IRIX # SGI IRIX
CAT1EXT=z CAT1EXT=z
CAT3EXT=z CAT3EXT=z
@@ -1080,12 +1050,12 @@ AC_SUBST(CAT6EXT)
dnl Fix "mandir" variable... dnl Fix "mandir" variable...
if test "$mandir" = "\${prefix}/man" -a "$prefix" = "/usr"; then if test "$mandir" = "\${prefix}/man" -a "$prefix" = "/usr"; then
case "$uname" in case "$host_os" in
*BSD* | Darwin* | Linux*) *bsd* | darwin* | linux*)
# *BSD, Darwin, and Linux # *BSD, Darwin, and Linux
mandir="\${prefix}/share/man" mandir="\${prefix}/share/man"
;; ;;
IRIX*) irix*)
# SGI IRIX # SGI IRIX
mandir="\${prefix}/share/catman" mandir="\${prefix}/share/catman"
;; ;;
@@ -1101,9 +1071,15 @@ if test "$exec_prefix" = NONE; then
exec_prefix="\${prefix}" exec_prefix="\${prefix}"
fi fi
if test "$uname" = "IRIX" -a $uversion -ge 62 -a "$libdir" = "\${exec_prefix}/lib" -a "$exec_prefix" = "\${prefix}" -a "$prefix" = "/usr"; then case $host_os in
irix[1-5]*)
;;
irix*)
if test "$libdir" = "\${exec_prefix}/lib" -a "$exec_prefix" = "\${prefix}" -a "$prefix" = "/usr"; then
libdir="/usr/lib32" libdir="/usr/lib32"
fi fi
;;
esac
dnl Define the command used to update the dependencies (this option dnl Define the command used to update the dependencies (this option
dnl mainly for FLTK core developers - not necessary for users) dnl mainly for FLTK core developers - not necessary for users)
@@ -1123,9 +1099,13 @@ if test -n "$GCC"; then
# We know that Carbon is deprecated on OS X 10.4. To avoid hundreds of warnings # We know that Carbon is deprecated on OS X 10.4. To avoid hundreds of warnings
# we will temporarily disable 'deprecated' warnings on OS X. # we will temporarily disable 'deprecated' warnings on OS X.
if test "$uname" = "Darwin" -a $uversion -ge 800; then case $host_os in
darwin[1-7])
;;
darwin*)
OPTIM="-Wno-deprecated-declarations $OPTIM" OPTIM="-Wno-deprecated-declarations $OPTIM"
fi ;;
esac
# Set the default compiler optimizations... # Set the default compiler optimizations...
if test -z "$DEBUGFLAG"; then if test -z "$DEBUGFLAG"; then
@@ -1182,7 +1162,8 @@ if test -n "$GCC"; then
# Unlike the other compiler/optimization settings, this one is placed # Unlike the other compiler/optimization settings, this one is placed
# in CFLAGS and CXXFLAGS so that fltk-config will provide the option # in CFLAGS and CXXFLAGS so that fltk-config will provide the option
# to clients - otherwise client apps will not compile properly... # to clients - otherwise client apps will not compile properly...
if test "$uname" = SunOS; then case $host_os in
solaris*)
AC_MSG_CHECKING(if GCC supports -fpermissive) AC_MSG_CHECKING(if GCC supports -fpermissive)
OLDCFLAGS="$CFLAGS" OLDCFLAGS="$CFLAGS"
@@ -1192,10 +1173,11 @@ if test -n "$GCC"; then
AC_MSG_RESULT(yes), AC_MSG_RESULT(yes),
CFLAGS="$OLDCFLAGS" CFLAGS="$OLDCFLAGS"
AC_MSG_RESULT(no)) AC_MSG_RESULT(no))
fi ;;
esac
else else
case "$uname" in case "$host_os" in
IRIX*) irix*)
# Running some flavor of IRIX; see which version and # Running some flavor of IRIX; see which version and
# set things up according... # set things up according...
if test "$uversion" -ge 62; then if test "$uversion" -ge 62; then
@@ -1224,7 +1206,7 @@ else
fi fi
fi fi
;; ;;
HP-UX*) hpux*)
# Running HP-UX; these options should work for the HP compilers. # Running HP-UX; these options should work for the HP compilers.
if test -z "$DEBUGFLAG"; then if test -z "$DEBUGFLAG"; then
if test "x$with_optim" != x; then if test "x$with_optim" != x; then
@@ -1251,7 +1233,7 @@ else
fi fi
fi fi
;; ;;
SunOS*) solaris*)
# Solaris # Solaris
if test -z "$DEBUGFLAG"; then if test -z "$DEBUGFLAG"; then
if test "x$with_optim" != x; then if test "x$with_optim" != x; then
@@ -1265,7 +1247,7 @@ else
OPTIM="-KPIC $OPTIM" OPTIM="-KPIC $OPTIM"
fi fi
;; ;;
AIX*) aix*)
if test -z "$DEBUGFLAG"; then if test -z "$DEBUGFLAG"; then
if test "x$with_optim" != x; then if test "x$with_optim" != x; then
OPTIM="$with_optim $OPTIM" OPTIM="$with_optim $OPTIM"
@@ -1288,15 +1270,17 @@ fi
OPTIM="$DEBUGFLAG $OPTIM" OPTIM="$DEBUGFLAG $OPTIM"
dnl Take archflags away from CFLAGS (makefiles use ARCHFLAGS explicitly) dnl Take archflags away from CFLAGS (makefiles use ARCHFLAGS explicitly)
if test `uname` = Darwin; then case $host_os in
darwin*)
if test "x$with_archflags" != x ; then if test "x$with_archflags" != x ; then
CFLAGS="`echo $CFLAGS | sed -e "s/$with_archflags//g"`" CFLAGS="`echo $CFLAGS | sed -e "s/$with_archflags//g"`"
fi fi
fi ;;
esac
dnl Define the FLTK documentation directory... dnl Define the FLTK documentation directory...
case $uname in case $host_os in
MINGW*) mingw*)
# Determine the path where MSys has /usr installed # Determine the path where MSys has /usr installed
msyspath=`mount | grep '\/usr ' | cut -d ' ' -f -1 | sed -e 's/\\\/\// g'` msyspath=`mount | grep '\/usr ' | cut -d ' ' -f -1 | sed -e 's/\\\/\// g'`
# Then substitute that in the WIN32 path instead of /usr # Then substitute that in the WIN32 path instead of /usr
@@ -1323,11 +1307,11 @@ echo ""
echo "Configuration Summary" echo "Configuration Summary"
echo "-------------------------------------------------------------------------" echo "-------------------------------------------------------------------------"
case $uname_GUI in case $host_os_gui in
CYGWIN* | MINGW*) cygwin* | mingw*)
graphics="GDI" graphics="GDI"
;; ;;
Darwin*) darwin*)
graphics="Quartz" graphics="Quartz"
;; ;;
*) *)
@@ -1352,8 +1336,8 @@ echo " exec_prefix=$exec_prefix"
echo " includedir=$includedir" echo " includedir=$includedir"
echo " libdir=$libdir" echo " libdir=$libdir"
echo " mandir=$mandir" echo " mandir=$mandir"
case $uname in case $host_os in
MINGW*) mingw*)
echo " MSys docpath=$msyspath/local/share/doc/fltk" echo " MSys docpath=$msyspath/local/share/doc/fltk"
;; ;;
esac esac
+3
View File
@@ -61,6 +61,9 @@ sed -e '1,$s/@VERSION@/'$version'/' \
echo Creating configure script... echo Creating configure script...
autoconf -f autoconf -f
echo Creating config.guess and config.sub \(ignore any other errors\)...
automake --add-missing --copy
echo Cleaning developer files... echo Cleaning developer files...
rm -rf OpenGL autom4te* bc5 config forms glut images packages themes rm -rf OpenGL autom4te* bc5 config forms glut images packages themes
rm -f makesrcdist rm -f makesrcdist
Vendored Executable
+1558
View File
File diff suppressed because it is too large Load Diff
Vendored Executable
+1788
View File
File diff suppressed because it is too large Load Diff