projects
/
platform
/
upstream
/
rpm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5199771
)
Eliminate AC_TRY_COMPILE (Obsolete).
author
Ralf Corsépius
<corsepiu@fedoraproject.org>
Sat, 27 Oct 2007 04:28:06 +0000
(06:28 +0200)
committer
Ralf Corsépius
<corsepiu@fedoraproject.org>
Sat, 27 Oct 2007 04:28:06 +0000
(06:28 +0200)
configure.ac
patch
|
blob
|
history
diff --git
a/configure.ac
b/configure.ac
index
b67a619
..
c0b566d
100644
(file)
--- a/
configure.ac
+++ b/
configure.ac
@@
-34,10
+34,10
@@
if test "$GCC" = yes; then
echo
for flag in $cflags_to_try; do
CFLAGS="$CFLAGS $flag"
- AC_
TRY_COMPILE(, [return 0;],
[
+ AC_
COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[return 0;]])],
[
echo " $flag"
RPMCFLAGS="$RPMCFLAGS $flag"
- ])
+ ]
,[]
)
CFLAGS=$old_cflags
done
CFLAGS="$CFLAGS $RPMCFLAGS"