Mercurial > dropbear
comparison configure.ac @ 1573:ee7a546e3e6d
Fix CFLAGS for configure
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Sat, 03 Mar 2018 10:10:16 +0800 |
parents | 86e4995bbedf |
children | 68abf717328d |
comparison
equal
deleted
inserted
replaced
1572:56ec2214144f | 1573:ee7a546e3e6d |
---|---|
13 if test -s "`which hg`" && test -d "$srcdir/.hg"; then | 13 if test -s "`which hg`" && test -d "$srcdir/.hg"; then |
14 hgrev=`hg id -i -R "$srcdir"` | 14 hgrev=`hg id -i -R "$srcdir"` |
15 AC_MSG_NOTICE([Source directory Mercurial base revision $hgrev]) | 15 AC_MSG_NOTICE([Source directory Mercurial base revision $hgrev]) |
16 fi | 16 fi |
17 | 17 |
18 ORIGCFLAGS="$CFLAGS" | |
18 # Checks for programs. | 19 # Checks for programs. |
19 AC_PROG_CC | 20 AC_PROG_CC |
20 | 21 |
21 if test -z "$LD" ; then | 22 if test -z "$LD" ; then |
22 LD=$CC | 23 LD=$CC |
33 [AC_MSG_NOTICE([Not setting $TESTFLAGS]); CFLAGS="$OLDFLAGS" ] | 34 [AC_MSG_NOTICE([Not setting $TESTFLAGS]); CFLAGS="$OLDFLAGS" ] |
34 ) | 35 ) |
35 }]) | 36 }]) |
36 | 37 |
37 # set compile flags prior to other tests | 38 # set compile flags prior to other tests |
38 if test -z "$OLDCFLAGS" && test "$GCC" = "yes"; then | 39 if test -z "$ORIGCFLAGS" && test "$GCC" = "yes"; then |
39 AC_MSG_NOTICE(No \$CFLAGS set... using "-Os -W -Wall" for GCC) | 40 AC_MSG_NOTICE(No \$CFLAGS set... using "-Os -W -Wall" for GCC) |
40 CFLAGS="-Os -W -Wall" | 41 CFLAGS="-Os -W -Wall" |
41 fi | 42 fi |
42 | 43 |
43 AC_MSG_NOTICE([Checking if compiler '$CC' supports -Wno-pointer-sign]) | 44 AC_MSG_NOTICE([Checking if compiler '$CC' supports -Wno-pointer-sign]) |