summaryrefslogtreecommitdiff
path: root/configure.ac
Commit message (Collapse)AuthorAgeFilesLines
* Add Aarch64 Supportcoreyjjames2020-01-051-1/+13
|
* cmake/configure.ac: Enable -fstack-protector-strong by defaultNotTsunami2019-11-201-2/+5
| | | | | | | | | | | | | | | | This commit contains the following changes: - Drops -fstack-protector in favor of -fstack-protector-strong. Consequently, the ssp-buffer-size parameter has been removed as -fstack-protector-strong ignores array size. - Add new global opt-out for stack smash protection. This is enabled by default for both autotools and CMake builds. Users can opt out of stack smash protection by passing -DWITH_STACK_PROTECTOR=OFF to CMake or --disable-stack-smash-protection when running ./configure. - Renames HAVE_SSP_FLAG to HAVE_STACK_PROTECTOR_FLAG in CMakeLists.txt to be more readable.
* oss-fuzz: Add fuzzing targetsErik de Castro Lopo2019-11-181-11/+39
| | | | | | | | | These fuzzing targets were originally from: https://github.com/guidovranken/flac-fuzzers.git but having them in a separate repo was a huge pain in the neck when working on fixing any problems found.
* configure.ac: allow several compiler flags for clangsezero2019-10-101-4/+14
| | | | | | | | | | | | | | | | | | | | | | | | | The flac configury marked clang as 'not being gcc' and excluded a lot of compiler switches, most importantly the visibility flags, from being used with it. This was done possibly after a problem reported at: https://github.com/erikd/libsndfile/issues/49 . This patch does the following: - m4/gcc_version.m4 (XIPH_GCC_VERSION): set GCC_MAJOR_VERSION and GCC_MINOR_VERSION to 0 for non-gcc. Previously, they were left unset. - configure: the gcc version checks are, naturally, against non- zero values, so, allow many compiler switches to be used with clang without affecting real-gcc cases. - configure: When setting CFLAGS="-O3 -funroll-loops", also set CXXFLAGS="-O3". Prevents g++ warnings with _FORTIFY_SOURCE, i.e.: '_FORTIFY_SOURCE requires compiling with optimization (-O)' Tested compilation using gcc-7.3.1 and clang-5.0.2 on x86_64-linux, and gcc-4.4.7 and clang-3.4.2 on an i686-linux. Also tested cross- compiling for Mac OS X using clang-5.0.2.
* make dllexport work with compilers other than MSVCsezero2019-10-101-0/+16
| | | | | | | | the issue is, flac and metaflac exes rely on flac_internal_???_utf8() procedures from windows_unicode_filenames.c and there is no easy way to exclude them from exports without breaking things. So export them explicitly (they are exported anyway w/o this patch), but add a FIXME note about the kludge in windows_unicode_filenames.c.
* Remove un-needed Makefile.amErik de Castro Lopo2019-10-011-7/+0
|
* configure.ac: check for sys/auxv.h before defining FLAC__CPU_PPCPeter Seiderer2019-09-301-2/+2
| | | | | | | | | | Signed-off-by: Peter Seiderer <ps.report@gmx.net> --- Note: One of the buildroot autobuilder provided powerpc toolchains seem to not provide the sys/auxv.h header file, resulting in a compile failure (see [1] for details). [1] http://lists.busybox.net/pipermail/buildroot/2019-September/259732.html
* Version 1.3.31.3.3Erik de Castro Lopo2019-08-041-1/+1
|
* Add -lrt for all operating systems for clock_gettimeDagobert Michelsen2019-07-171-9/+4
|
* Check if compiler supports target attribute on ppc64Amitay Isaacs2018-08-201-0/+20
| | | | | | | Check if the compiler supports __attribute__((target("cpu=power8"))) and __attribute__((target("cpu=power9"))) Signed-off-by: Amitay Isaacs <amitay@ozlabs.org>
* configure.ac: Fix FLAC__CPU_PPC on little endian, and add FLAC__CPU_PPC64Anton Blanchard2018-08-201-1/+11
| | | | | | | FLAC__CPU_PPC wasn't catching powerpcle or powerpc64le. Fix that and add a new define for FLAC__CPU_PPC64. Signed-off-by: Anton Blanchard <anton@ozlabs.org>
* configure.ac: Add VSX enable/disableAnton Blanchard2018-08-201-0/+13
| | | | | | | We want to create functions with PowerPC VSX instructions, so add a configure check. Signed-off-by: Anton Blanchard <anton@ozlabs.org>
* configure.ac: Remove SPE detection codeAnton Blanchard2018-08-201-8/+0
| | | | | | | We don't have any SPE code, so there's no need to detect it at configure time. Signed-off-by: Anton Blanchard <anton@ozlabs.org>
* Fix miscellaneous typos.luz.paz2018-05-241-1/+1
| | | | Found via `codespell -q 3`
* Fix compile with cygwinRosen Penev2017-02-091-1/+1
| | | | | | | | | The underscores are wrong. The comment is also correct. Also remove the configure.ac option. Otherwise it tries to compile the windows unicode stuff which POSIX(cygwin) does not understand. Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
* configure.ac: Clean up CFLAGS codeErik de Castro Lopo2017-02-061-21/+2
| | | | | | Also moves _FORTIFY_SOURCE detection to an M4 macro. Patchfrom: David Seifert <soap@gentoo.org>
* Do not override CFLAGS, as CFLAGS is a user flag.David Seifert2017-01-191-16/+36
| | | | | | | | | * Furthermore, use NDEBUG globally to detect the presence of building with more debug output information. AX_CHECK_ENABLE_DEBUG is easier to use, and nowadays Gnome has also switched to it from its own custom solution. Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
* Make building/installing examples optionalDavid Seifert2017-01-151-0/+5
| | | | Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
* Support nasm coff obj format for djgppsezero2017-01-141-0/+1
| | | | Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
* configure.ac: relax linux OS detectionPeter Korsgaard2017-01-131-1/+1
| | | | | | | | | | | | | | Not all linux hosts match the *-pc-linux-gnu wildcard, causing build failures for older glibc versions where we need to link with -lrt for clock_gettime - E.G.: - arm-unknown-linux-musleabihf - powerpc-unknown-linux-gnuspe - bfin-linux-linux-uclibc .. Signed-off-by: Peter Korsgaard <peter@korsgaard.com> Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
* Version 1.3.21.3.2Erik de Castro Lopo2017-01-011-1/+1
|
* configure.ac: Fix description of --disable-sseErik de Castro Lopo2016-12-051-1/+1
|
* configure.ac: Remove unused config flagsErik de Castro Lopo2016-12-051-5/+0
| | | | | | FLAC__NO_SSE_OS and FLAC__SSE_OS. Patch-from: "lvqcl.mail" <lvqcl.mail@gmail.com>
* Fix use of FLAC__HAS_X86INTRIN configure variableErik de Castro Lopo2016-06-201-0/+2
|
* Fix use of FLAC__SSE_OS configure variableErik de Castro Lopo2016-06-201-4/+4
|
* configure.ac: Force FLAC__HAS_OGG to 0 or 1Erik de Castro Lopo2016-03-201-2/+4
|
* Fix autotool warningsErik de Castro Lopo2016-02-101-0/+1
|
* microbench: Add fallback to gettimeofday()Dave Yeo2016-02-091-0/+5
| | | | | | | | Some operating systems such as OS/2 don't have any of the CLOCK* API functions so add gettimeofday() as a fallback. Signed-off-by: Dave Yeo <dave.r.yeo@gmail.com> Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
* Make AVX and AVX2 instructions a configure optionDave Yeo2016-02-081-0/+13
| | | | | | | | Handy for toolchains or operating systems that don't support AVX or AVX2 like OS/2. Signed-off-by: Dave Yeo <dave.r.yeo@gmail.com> Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
* Fix ioctl/TIOCGWINSZ for OSXErik de Castro Lopo2016-01-261-3/+1
|
* configure.ac: Drop -Wunreachable-code from CFLAGSErik de Castro Lopo2016-01-261-2/+2
| | | | | | | | According to: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=46158 this warning was removed in GCC 4.5.
* configure.ac: Remove redundant `XIPH_ADD_CFLAGS([-Wextra])`Erik de Castro Lopo2016-01-251-2/+0
|
* Fix linking of microbenchmark programErik de Castro Lopo2016-01-241-0/+5
| | | | | | | On some setups, benchmark_residual linkage fails with an undefined reference to clock_gettime(). Adding -lrt fixes that. Patch-from: Ozkan Sezer <sezeroz@gmail.com>
* configure.ac: Add --enable-64-bit-words optionErik de Castro Lopo2016-01-041-0/+9
| | | | | The old 32 bit words the default which can be overridded with this configure option.
* Add first micro-benchmarkErik de Castro Lopo2015-09-011-0/+1
|
* configure.ac : Pass -fno-inline-small-functions when using GCC 4.7Mario Sanchez Prada2015-07-081-0/+4
| | | | | | | | | | | | | | | For some reason, the build fails when using GCC 4.7 due to the implicit -finline-functions option passed to the compiler when -O3 is enabled, which does not happen in newer versions of GCC, probably due to some of the "General Optimizer Improvements" included in 4.8 (see [1]). Fortunately, we don't need to disable -finline-functions completely but just do it for "small functions", which is what this patch does. [1] https://gcc.gnu.org/gcc-4.8/changes.html Closes: https://sourceforge.net/p/flac/bugs/429/ Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
* configure: Only use -mstackrealign on i686 for mingw32/os2Tristan Matthews2015-04-191-1/+7
| | | | Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
* configure.ac : Add -mstackrealign whenever we add -msse2.Erik de Castro Lopo2015-03-311-0/+1
| | | | | There have been some (pretty much unconfirmed) reports of problems with SSE enabled but without this stack alignment flag.
* configure.ac : Tweak for x32 architecture.Erik de Castro Lopo2015-03-121-13/+24
| | | | | | | | | The x32 architecture uses and ILP32 (32 bit ints, longs and pointers) on an x86_64 CPU. Since the CPU is x86_64 we need to set FLAC__CPU_X86_64 even though the pointer size is 32 bits. Patch-from: Stuart Shelton Closes: https://sourceforge.net/p/flac/bugs/427/
* configure.ac : Fix FLAC__HAS_X86INTRIN / FLaC__SSE_OS.Erik de Castro Lopo2015-02-251-2/+4
| | | | | | | * Correct definition of FLAC__HAS_X86INTRIN in config.h file. * Correct comparison of sse_os with 'true' instead of 'yes'. Patch-from: lvqcl <lvqcl.mail@gmail.com>
* configure.ac : Detect 'amd64' as being same as 'x86_64'.Christian Weisgerber2015-02-191-1/+1
| | | | | | On BSD systems, the 64-bit x86 architecture is called "amd64". Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
* configure.ac : Relax automake version requirements.Erik de Castro Lopo2014-12-011-1/+1
| | | | Suggested-by: Jan Stary <hans@stare.cz>
* configure.ac : Don't zap '-g' from $CFLAGS.Erik de Castro Lopo2014-11-301-2/+1
| | | | | | | | | The '-g' was in-correctly getting zapped from all CFLAGS expressions including eg: -mfloat-gprs=double (for powerpc e500) -> -mfloatprs=double. Reported-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
* Version 1.3.1 final.1.3.1Erik de Castro Lopo2014-11-271-1/+1
|
* Set version to 1.3.1pre1.1.3.1pre1Erik de Castro Lopo2014-11-251-1/+1
|
* Use a configure check for bswap16 instead of gcc version #ifdefs.Ralph Giles2014-11-041-0/+1
| | | | | | Fixes a build problem on apple clang. Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
* Remove support for AMD's 3Dnow.Erik de Castro Lopo2014-10-041-13/+0
| | | | | | AMD stopped release new chips withe 3DNow in 2010. Patch-from: lvqcl <lvqcl.mail@gmail.com>
* Remove old/broken PPC/Altivec code.Erik de Castro Lopo2014-09-171-27/+0
| | | | | | | | | | | | | * Removes FLAC__lpc_restore_signal_asm_ppc_altivec_16* from lpc.h and stream_decoder.c * Removes PPC-specific code from cpu.c and cpu.h * Removes PPC stuff from libFLAC/Makefile.lite and build/*.mk * Removes as/gas/PPC-specific stuff from configure.ac and libFLAC/Makefile.am* * Removes libFLAC/ppc folder and remove "src/libFLAC/ppc*/Makefile" lines from configure.ac Patch-from: lvqcl <lvqcl.mail@gmail.com>
* configure.ac : Fix --disable-sse option.Erik de Castro Lopo2014-07-271-1/+1
| | | | Based on a patch from lvqcl <lvqcl.mail@gmail.com>.
* configure.ac : Erase default -O2 when setting -O3.Erik de Castro Lopo2014-07-271-2/+4
| | | | | | | | | | | Previously CFLAGS had a -O3 at the start and a -O2 at the end. According to the GCC docs: https://gcc.gnu.org/onlinedocs/gcc-4.9.1/gcc/Optimize-Options.html "If you use multiple -O options, with or without level numbers, the last such option is the one that is effective" which means that GCC doesn't try to use SIMD to vectorize the code, etc."