forked from devkitPro/tex3ds
-
Notifications
You must be signed in to change notification settings - Fork 0
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
283 additions
and
165 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
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
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
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,44 @@ | ||
# =========================================================================== | ||
# https://www.gnu.org/software/autoconf-archive/ax_append_link_flags.html | ||
# =========================================================================== | ||
# | ||
# SYNOPSIS | ||
# | ||
# AX_APPEND_LINK_FLAGS([FLAG1 FLAG2 ...], [FLAGS-VARIABLE], [EXTRA-FLAGS], [INPUT]) | ||
# | ||
# DESCRIPTION | ||
# | ||
# For every FLAG1, FLAG2 it is checked whether the linker works with the | ||
# flag. If it does, the flag is added FLAGS-VARIABLE | ||
# | ||
# If FLAGS-VARIABLE is not specified, the linker's flags (LDFLAGS) is | ||
# used. During the check the flag is always added to the linker's flags. | ||
# | ||
# If EXTRA-FLAGS is defined, it is added to the linker's default flags | ||
# when the check is done. The check is thus made with the flags: "LDFLAGS | ||
# EXTRA-FLAGS FLAG". This can for example be used to force the linker to | ||
# issue an error when a bad flag is given. | ||
# | ||
# INPUT gives an alternative input source to AC_COMPILE_IFELSE. | ||
# | ||
# NOTE: This macro depends on the AX_APPEND_FLAG and AX_CHECK_LINK_FLAG. | ||
# Please keep this macro in sync with AX_APPEND_COMPILE_FLAGS. | ||
# | ||
# LICENSE | ||
# | ||
# Copyright (c) 2011 Maarten Bosmans <[email protected]> | ||
# | ||
# Copying and distribution of this file, with or without modification, are | ||
# permitted in any medium without royalty provided the copyright notice | ||
# and this notice are preserved. This file is offered as-is, without any | ||
# warranty. | ||
|
||
#serial 7 | ||
|
||
AC_DEFUN([AX_APPEND_LINK_FLAGS], | ||
[AX_REQUIRE_DEFINED([AX_CHECK_LINK_FLAG]) | ||
AX_REQUIRE_DEFINED([AX_APPEND_FLAG]) | ||
for flag in $1; do | ||
AX_CHECK_LINK_FLAG([$flag], [AX_APPEND_FLAG([$flag], [m4_default([$2], [LDFLAGS])])], [], [$3], [$4]) | ||
done | ||
])dnl AX_APPEND_LINK_FLAGS |
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 |
---|---|---|
|
@@ -16,7 +16,7 @@ | |
# The second argument, if specified, indicates whether you insist on an | ||
# extended mode (e.g. -std=gnu++11) or a strict conformance mode (e.g. | ||
# -std=c++11). If neither is specified, you get whatever works, with | ||
# preference for an extended mode. | ||
# preference for no added switch, and then for an extended mode. | ||
# | ||
# The third argument, if specified 'mandatory' or if left unspecified, | ||
# indicates that baseline support for the specified C++ standard is | ||
|
@@ -34,13 +34,15 @@ | |
# Copyright (c) 2015 Paul Norman <[email protected]> | ||
# Copyright (c) 2015 Moritz Klammler <[email protected]> | ||
# Copyright (c) 2016, 2018 Krzesimir Nowak <[email protected]> | ||
# Copyright (c) 2019 Enji Cooper <[email protected]> | ||
# Copyright (c) 2020 Jason Merrill <[email protected]> | ||
# | ||
# Copying and distribution of this file, with or without modification, are | ||
# permitted in any medium without royalty provided the copyright notice | ||
# and this notice are preserved. This file is offered as-is, without any | ||
# warranty. | ||
|
||
#serial 10 | ||
#serial 12 | ||
|
||
dnl This macro is based on the code from the AX_CXX_COMPILE_STDCXX_11 macro | ||
dnl (serial version number 13). | ||
|
@@ -61,6 +63,16 @@ AC_DEFUN([AX_CXX_COMPILE_STDCXX], [dnl | |
AC_LANG_PUSH([C++])dnl | ||
ac_success=no | ||
m4_if([$2], [], [dnl | ||
AC_CACHE_CHECK(whether $CXX supports C++$1 features by default, | ||
ax_cv_cxx_compile_cxx$1, | ||
[AC_COMPILE_IFELSE([AC_LANG_SOURCE([_AX_CXX_COMPILE_STDCXX_testbody_$1])], | ||
[ax_cv_cxx_compile_cxx$1=yes], | ||
[ax_cv_cxx_compile_cxx$1=no])]) | ||
if test x$ax_cv_cxx_compile_cxx$1 = xyes; then | ||
ac_success=yes | ||
fi]) | ||
m4_if([$2], [noext], [], [dnl | ||
if test x$ac_success = xno; then | ||
for alternative in ${ax_cxx_compile_alternatives}; do | ||
|
@@ -189,11 +201,13 @@ namespace cxx11 | |
struct Base | ||
{ | ||
virtual ~Base() {} | ||
virtual void f() {} | ||
}; | ||
struct Derived : public Base | ||
{ | ||
virtual ~Derived() override {} | ||
virtual void f() override {} | ||
}; | ||
|
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,6 @@ | ||
#!/bin/bash | ||
|
||
for i in *.m4 | ||
do | ||
wget "http://git.savannah.gnu.org/gitweb/?p=autoconf-archive.git;a=blob_plain;f=m4/$i" -O $i | ||
done |
Oops, something went wrong.