This repository has been archived by the owner on Jan 30, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
970 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
configure$ | ||
Makefile.in | ||
aclocal.m4 | ||
config.guess | ||
config.sub | ||
install-sh | ||
missing |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
ACLOCAL_AMFLAGS = -I m4 | ||
GCC=@GCC@ | ||
MAKE=@MAKE@ | ||
M4=@M4@ | ||
PERL=@PERL@ | ||
PERL1=@PERL1@ | ||
RANLIB=@RANLIB@ | ||
TAR=@TAR@ | ||
SH=@SH@ | ||
|
||
|
||
#bin_PROGRAMS=zzz | ||
#zzz_SOURCES=zzz.c |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
# =========================================================================== | ||
# http://www.nongnu.org/autoconf-archive/ax_c_check_flag.html | ||
# =========================================================================== | ||
# | ||
# SYNOPSIS | ||
# | ||
# AX_C_CHECK_FLAG(FLAG-TO-CHECK,[PROLOGUE],[BODY],[ACTION-IF-SUCCESS],[ACTION-IF-FAILURE]) | ||
# | ||
# DESCRIPTION | ||
# | ||
# This macro tests if the C compiler supports the flag FLAG-TO-CHECK. If | ||
# successfull execute ACTION-IF-SUCCESS otherwise ACTION-IF-FAILURE. | ||
# PROLOGUE and BODY are optional and should be used as in AC_LANG_PROGRAM | ||
# macro. | ||
# | ||
# This code is inspired from KDE_CHECK_COMPILER_FLAG macro. Thanks to | ||
# Bogdan Drozdowski <bogdandr@op.pl> for testing and bug fixes. | ||
# | ||
# LICENSE | ||
# | ||
# Copyright (c) 2008 Francesco Salvestrini <salvestrini@users.sourceforge.net> | ||
# | ||
# This program is free software; you can redistribute it and/or modify it | ||
# under the terms of the GNU General Public License as published by the | ||
# Free Software Foundation; either version 2 of the License, or (at your | ||
# option) any later version. | ||
# | ||
# This program is distributed in the hope that it will be useful, but | ||
# WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General | ||
# Public License for more details. | ||
# | ||
# You should have received a copy of the GNU General Public License along | ||
# with this program. If not, see <http://www.gnu.org/licenses/>. | ||
# | ||
# As a special exception, the respective Autoconf Macro's copyright owner | ||
# gives unlimited permission to copy, distribute and modify the configure | ||
# scripts that are the output of Autoconf when processing the Macro. You | ||
# need not follow the terms of the GNU General Public License when using | ||
# or distributing such scripts, even though portions of the text of the | ||
# Macro appear in them. The GNU General Public License (GPL) does govern | ||
# all other use of the material that constitutes the Autoconf Macro. | ||
# | ||
# This special exception to the GPL applies to versions of the Autoconf | ||
# Macro released by the Autoconf Archive. When you make and distribute a | ||
# modified version of the Autoconf Macro, you may extend this special | ||
# exception to the GPL to apply to your modified version as well. | ||
|
||
AC_DEFUN([AX_C_CHECK_FLAG],[ | ||
AC_PREREQ([2.61]) | ||
AC_REQUIRE([AC_PROG_CC]) | ||
AC_REQUIRE([AC_PROG_SED]) | ||
flag=`echo "$1" | $SED 'y% .=/+-(){}<>:*,%_______________%'` | ||
AC_CACHE_CHECK([whether the C compiler accepts the $1 flag], | ||
[ax_cv_c_check_flag_$flag],[ | ||
AC_LANG_PUSH([C]) | ||
save_CFLAGS="$CFLAGS" | ||
CFLAGS="$CFLAGS $1" | ||
AC_COMPILE_IFELSE([ | ||
AC_LANG_PROGRAM([$2],[$3]) | ||
],[ | ||
eval "ax_cv_c_check_flag_$flag=yes" | ||
],[ | ||
eval "ax_cv_c_check_flag_$flag=no" | ||
]) | ||
CFLAGS="$save_CFLAGS" | ||
AC_LANG_POP | ||
]) | ||
AS_IF([eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"],[ | ||
: | ||
$4 | ||
],[ | ||
: | ||
$5 | ||
]) | ||
]) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,126 @@ | ||
# =========================================================================== | ||
# http://www.nongnu.org/autoconf-archive/ax_gcc_option.html | ||
# =========================================================================== | ||
# | ||
# SYNOPSIS | ||
# | ||
# AX_GCC_OPTION(OPTION,EXTRA-OPTIONS,TEST-PROGRAM,ACTION-IF-SUCCESSFUL,ACTION-IF-NOT-SUCCESFUL) | ||
# | ||
# DESCRIPTION | ||
# | ||
# AX_GCC_OPTION checks wheter gcc accepts the passed OPTION. If it accepts | ||
# the OPTION then ACTION-IF-SUCCESSFUL will be executed, otherwise | ||
# ACTION-IF-UNSUCCESSFUL. | ||
# | ||
# NOTE: This macro will be obsoleted by AX_C_CHECK_FLAG AX_CXX_CHECK_FLAG, | ||
# AX_CPP_CHECK_FLAG, AX_CXXCPP_CHECK_FLAG and AX_LD_CHECK_FLAG. | ||
# | ||
# A typical usage should be the following one: | ||
# | ||
# AX_GCC_OPTION([-fomit-frame-pointer],[],[],[ | ||
# AC_MSG_NOTICE([The option is supported])],[ | ||
# AC_MSG_NOTICE([No luck this time]) | ||
# ]) | ||
# | ||
# The macro doesn't discriminate between languages so, if you are testing | ||
# for an option that works for C++ but not for C you should use '-x c++' | ||
# as EXTRA-OPTIONS: | ||
# | ||
# AX_GCC_OPTION([-fno-rtti],[-x c++],[],[ ... ],[ ... ]) | ||
# | ||
# OPTION is tested against the following code: | ||
# | ||
# int main() | ||
# { | ||
# return 0; | ||
# } | ||
# | ||
# The optional TEST-PROGRAM comes handy when the default main() is not | ||
# suited for the option being checked | ||
# | ||
# So, if you need to test for -fstrict-prototypes option you should | ||
# probably use the macro as follows: | ||
# | ||
# AX_GCC_OPTION([-fstrict-prototypes],[-x c++],[ | ||
# int main(int argc, char ** argv) | ||
# { | ||
# (void) argc; | ||
# (void) argv; | ||
# | ||
# return 0; | ||
# } | ||
# ],[ ... ],[ ... ]) | ||
# | ||
# Note that the macro compiles but doesn't link the test program so it is | ||
# not suited for checking options that are passed to the linker, like: | ||
# | ||
# -Wl,-L<a-library-path> | ||
# | ||
# In order to avoid such kind of problems you should think about usinguse | ||
# the AX_*_CHECK_FLAG family macros | ||
# | ||
# LICENSE | ||
# | ||
# Copyright (c) 2008 Francesco Salvestrini <salvestrini@users.sourceforge.net> | ||
# Copyright (c) 2008 Bogdan Drozdowski <bogdandr@op.pl> | ||
# | ||
# This program is free software; you can redistribute it and/or modify it | ||
# under the terms of the GNU General Public License as published by the | ||
# Free Software Foundation; either version 2 of the License, or (at your | ||
# option) any later version. | ||
# | ||
# This program is distributed in the hope that it will be useful, but | ||
# WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General | ||
# Public License for more details. | ||
# | ||
# You should have received a copy of the GNU General Public License along | ||
# with this program. If not, see <http://www.gnu.org/licenses/>. | ||
# | ||
# As a special exception, the respective Autoconf Macro's copyright owner | ||
# gives unlimited permission to copy, distribute and modify the configure | ||
# scripts that are the output of Autoconf when processing the Macro. You | ||
# need not follow the terms of the GNU General Public License when using | ||
# or distributing such scripts, even though portions of the text of the | ||
# Macro appear in them. The GNU General Public License (GPL) does govern | ||
# all other use of the material that constitutes the Autoconf Macro. | ||
# | ||
# This special exception to the GPL applies to versions of the Autoconf | ||
# Macro released by the Autoconf Archive. When you make and distribute a | ||
# modified version of the Autoconf Macro, you may extend this special | ||
# exception to the GPL to apply to your modified version as well. | ||
|
||
AC_DEFUN([AX_GCC_OPTION], [ | ||
AC_REQUIRE([AC_PROG_CC]) | ||
AC_MSG_CHECKING([if gcc accepts $1 option]) | ||
AS_IF([ test "x$GCC" = "xyes" ],[ | ||
AS_IF([ test -z "$3" ],[ | ||
ax_gcc_option_test="int main() | ||
{ | ||
return 0; | ||
}" | ||
],[ | ||
ax_gcc_option_test="$3" | ||
]) | ||
# Dump the test program to file | ||
cat <<EOF > conftest.c | ||
$ax_gcc_option_test | ||
EOF | ||
# Dump back the file to the log, useful for debugging purposes | ||
AC_TRY_COMMAND(cat conftest.c 1>&AS_MESSAGE_LOG_FD) | ||
AS_IF([ AC_TRY_COMMAND($CC $2 $1 -c conftest.c 1>&AS_MESSAGE_LOG_FD) ],[ | ||
AC_MSG_RESULT([yes]) | ||
$4 | ||
],[ | ||
AC_MSG_RESULT([no]) | ||
$5 | ||
]) | ||
],[ | ||
AC_MSG_RESULT([no gcc available]) | ||
]) | ||
]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
# =========================================================================== | ||
# http://www.nongnu.org/autoconf-archive/ax_gcc_version.html | ||
# =========================================================================== | ||
# | ||
# SYNOPSIS | ||
# | ||
# AX_GCC_VERSION | ||
# | ||
# DESCRIPTION | ||
# | ||
# This macro retrieves the gcc version and returns it in the GCC_VERSION | ||
# variable if available, an empty string otherwise. | ||
# | ||
# LICENSE | ||
# | ||
# Copyright (c) 2009 Francesco Salvestrini <salvestrini@users.sourceforge.net> | ||
# | ||
# This program is free software; you can redistribute it and/or modify it | ||
# under the terms of the GNU General Public License as published by the | ||
# Free Software Foundation; either version 2 of the License, or (at your | ||
# option) any later version. | ||
# | ||
# This program is distributed in the hope that it will be useful, but | ||
# WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General | ||
# Public License for more details. | ||
# | ||
# You should have received a copy of the GNU General Public License along | ||
# with this program. If not, see <http://www.gnu.org/licenses/>. | ||
# | ||
# As a special exception, the respective Autoconf Macro's copyright owner | ||
# gives unlimited permission to copy, distribute and modify the configure | ||
# scripts that are the output of Autoconf when processing the Macro. You | ||
# need not follow the terms of the GNU General Public License when using | ||
# or distributing such scripts, even though portions of the text of the | ||
# Macro appear in them. The GNU General Public License (GPL) does govern | ||
# all other use of the material that constitutes the Autoconf Macro. | ||
# | ||
# This special exception to the GPL applies to versions of the Autoconf | ||
# Macro released by the Autoconf Archive. When you make and distribute a | ||
# modified version of the Autoconf Macro, you may extend this special | ||
# exception to the GPL to apply to your modified version as well. | ||
|
||
AC_DEFUN([AX_GCC_VERSION], [ | ||
GCC_VERSION="" | ||
AX_GCC_OPTION([-dumpversion],[],[],[ | ||
ax_gcc_version_option=yes | ||
],[ | ||
ax_gcc_version_option=no | ||
]) | ||
AS_IF([test "x$GCC" = "xyes"],[ | ||
AS_IF([test "x$ax_gcc_version_option" != "xno"],[ | ||
AC_CACHE_CHECK([gcc version],[ax_cv_gcc_version],[ | ||
ax_cv_gcc_version="`$CC -dumpversion`" | ||
AS_IF([test "x$ax_cv_gcc_version" = "x"],[ | ||
ax_cv_gcc_version="" | ||
]) | ||
]) | ||
GCC_VERSION=$ax_cv_gcc_version | ||
]) | ||
]) | ||
AC_SUBST([GCC_VERSION]) | ||
]) |
Oops, something went wrong.