mirror of
https://github.com/amadvance/snapraid.git
synced 2026-10-25 18:40:19 -04:00
Initial commit
This commit is contained in:
parent
db94ceaf5b
commit
f4f308e32f
24 changed files with 4514 additions and 0 deletions
20
acinclude.m4
Normal file
20
acinclude.m4
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
dnl @synopsis AC_CHECK_CC_OPT(flag, ifyes, ifno)
|
||||
dnl
|
||||
dnl Shows a message as like "checking wether gcc accepts flag ... no"
|
||||
dnl and executess ifyes or ifno.
|
||||
|
||||
AC_DEFUN([AC_CHECK_CC_OPT],
|
||||
[
|
||||
AC_MSG_CHECKING([whether ${CC-cc} accepts $1])
|
||||
echo 'void f(){}' > conftest.c
|
||||
if test -z "`${CC-cc} -c $1 conftest.c 2>&1`"; then
|
||||
AC_MSG_RESULT([yes])
|
||||
$2
|
||||
else
|
||||
AC_MSG_RESULT([no])
|
||||
$3
|
||||
fi
|
||||
rm -f conftest*
|
||||
])
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue