Commit graph

17 commits

Author SHA1 Message Date
Sam Lantinga
145857ab85 Added missing PKG_CONFIG macros 2019-03-16 17:39:15 -07:00
Ozkan Sezer
9c16559c88 acinclude: rename ax_gcc_x86_cpuid.m4.htm to ax_gcc_x86_cpuid.m4
--HG--
rename : acinclude/ax_gcc_x86_cpuid.m4.htm => acinclude/ax_gcc_x86_cpuid.m4
2018-09-15 09:24:04 +03:00
Sam Lantinga
ed843d5a42 Fixed bug 3481 - Configure fails to detect dynamic library support on powerpc64le
Sam

I've discovered that when building on powerpc64le (and probably powerpc64) SDL's configure script fails to detect dynamic library support, causing it to build a static library. This causes link failures due to undefined symbols later when packages link with -lSDL.

This seems to be because the included autotools package is too old to detect powerpc64le. This change corrects the problem for me but newer versions of autotools should handle it without a patch
2016-11-06 20:26:48 -08:00
Ryan C. Gordon
6c21798873 Fix a libtool issue with some mingw-w64 cross compilers (thanks, Ozkan!).
http://debbugs.gnu.org/cgi/bugreport.cgi?bug=15321
http://git.savannah.gnu.org/gitweb/?p=libtool.git;a=commit;h=0ebb734910bf56186dd0c0e84b1c8be507bad336

Fixes Bugzilla #2722.

--HG--
extra : rebase_source : 76693b972b1ac98e0b096a031da73d3bfffacf95
2015-05-26 19:54:06 -04:00
Sam Lantinga
f9ee105b99 We have to fix the DLL name convention on Windows every time... 2012-10-19 21:43:41 -07:00
Sam Lantinga
584f8bb2ce Fixed bug 1587 - "aclocal" fails to generate a sufficient "aclocal.m4"
Cecil Curry 2012-08-27 16:55:12 PDT

Allow "aclocal" to find the "AC_CHECK_DEFINE" macro.

On running:

   rm aclocal.m4
   libtoolize --install --copy --force
   aclocal -I acinclude
   autoconf -I acinclude

The former three commands succeed, but "autoconf" fails with:

   configure.in:198: error: possibly undefined macro: AC_CHECK_DEFINE
         If this token and others are legitimate, please use m4_pattern_allow.
         See the Autoconf documentation.

"aclocal" fails to find AC_CHECK_DEFINE and hence add such macro to
"aclocal.m4". Here is why:

* "acinclude/ac_check_define.m4" defines AC_CHECK_DEFINE via define() rather
than AC_DEFUN().
* "aclocal" fails to find macros defined via define().
2012-09-28 03:18:18 -07:00
Sam Lantinga
78d497098e This isn't necessary anymore, with the latest autotools update. 2012-09-25 20:49:29 -07:00
Sam Lantinga
aeb2100823 Hopefully fixed the Windows build. We have to do this every time, to link version.o 2012-09-20 22:40:23 -07:00
Sam Lantinga
1c3d9891d2 Updated to the latest versions of autotools and config.guess/config.sub
autoconf-2.69
automake-1.12
libtool-2.4.2
2012-09-20 21:13:10 -07:00
Sam Lantinga
9edcf9bc9b Ozkan Sezer to slouken
The attached small patch updates SDL's libtoolized files for
pe-x86_64 magic, ie win/x64.
2011-01-26 12:23:32 -08:00
Sam Lantinga
b3dd448c5c Greg Jandl to SDL
I did some digging, and I think I've found a better solution. By
including some additional .m4 macros in the acinclude directory
(http://www.gnu.org/software/autoconf-archive/ax_check_compiler_flags.html,
http://www.gnu.org/software/autoconf-archive/ax_gcc_archflag.html and
http://www.gnu.org/software/autoconf-archive/ax_gcc_x86_cpuid.html)
then using the patch below (same as previous patch + one line change
to configure.in), SDL will build correctly out of the box.

The arch can then be overridden by --with-gcc-arch=<arch> (most will
probably want to build with i686 there for general distribution) or
--without-gcc-arch, to disable setting the arch all together.

On my Atom netbook, I get -march=PentiumPro by default, which works
great, as does --with-gcc-arch=i686.
2011-01-18 22:40:45 -08:00
Sam Lantinga
c1665b6a55 A better solution to making the default build optimization -O3
Cygwin32 autoconf complains about c.m4 ... of course. :)

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404054
2009-10-11 10:38:38 +00:00
Sam Lantinga
fd8af66fe2 Fixed bug #31
Set the default optimization level to -O3

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404050
2009-10-11 06:44:50 +00:00
Sam Lantinga
10a4894433 This is crazy. In order to override the default optimization for GCC,
we actually have to include the core autoconf C compiler macro suite.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404048
2009-10-11 06:33:34 +00:00
Sam Lantinga
345698f187 Matěj Týč 2009-10-05 14:09:03 PDT
patched to comply to the up-to-date autoconf

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404046
2009-10-10 18:37:35 +00:00
Sam Lantinga
1932964202 Split out ltoptions.m4
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403973
2009-10-04 21:00:33 +00:00
Sam Lantinga
79a1a3cee0 Split acinclude.m4 into its constituent parts for easy upgrading
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403969
2009-10-04 20:44:04 +00:00