Please check the GNU Autoconf Macro Archive for Updates
AC-Archive
Autoconf Macro Archive

ac-archive.sf.net: - Project CVS - Download
Macro Index
- AM Support
- C++ Support
- C Support
- Fortran Support
- Java Support
- Cross Compilation
- Installed Packages
- Miscellaneous
- LaTeX Support
- Uncategorized
- archive macros
- adl's macros
- bkorb's macros
- guidod's macros
- latex's macros
- other's macros
- rleigh's macros
- obsoleted macros
- released macros
- search index

Documentation
- Contribute!
- History
- acincludedir m4
- acinclude (tool)
- macro howto
- ax tricks
- maintainers
- License
- Topics

generated...
2007年08月05日

(C) 2007 guidod
Synopsis
AX_GCC_OPTION(VARIABLE, OPTION, VALUE-IF-SUCCESSFUL, VALUE-IF-NOT-SUCCESFUL)
, 
Version

2005年01月22日

Author

Francesco Salvestrini <salvestrini@users.sourceforge.net>

License

GPLWithACException
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. 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

Category

cryp.to ac-archive's C Support (released)

Documentation

AX_GCC_OPTION checks wheter gcc accepts the passed OPTION. If it accepts the OPTION then then macro sets VARIABLE to VALUE-IF-SUCCESSFUL, otherwise it sets VARIABLE to VALUE-IF-UNSUCCESSFUL.

M4 Source Code
AC_DEFUN([AX_GCC_OPTION], [
AC_REQUIRE([AC_PROG_CC])
if test "x$GCC" = "xyes"; then
	AC_MSG_CHECKING([if gcc accepts 2ドル option])
 	if AC_TRY_COMMAND($CC 2ドル) &gt;/dev/null 2&gt;&amp;1; then
 		1ドル=3ドル
 	 AC_MSG_RESULT([yes])
 	else
 		1ドル=4ドル
 		AC_MSG_RESULT([no])
 	fi
else
	unset 1ドル
 AC_MSG_RESULT([sorry, no gcc available])
fi
])

AltStyle によって変換されたページ (->オリジナル) /