Lines 52-86
Link Here
|
52 |
AC_PROG_CC |
52 |
AC_PROG_CC |
53 |
AC_LANG_CPLUSPLUS |
53 |
AC_LANG_CPLUSPLUS |
54 |
|
54 |
|
55 |
dnl Check whether option -Wno-deprecated |
|
|
56 |
dnl is needed by GCC compiler. |
57 |
|
58 |
AC_MSG_CHECKING([whether compiler needs -Wno-deprecated]) |
59 |
gcc_version=`${CC} --version | grep 'gcc (GCC) [[3-4]].' | head -n 1` |
60 |
case "${gcc_version}" in |
61 |
gcc*) |
62 |
AC_MSG_RESULT([yes]) |
63 |
CXXFLAGS="$CXXFLAGS -Wno-deprecated" |
64 |
;; |
65 |
|
66 |
*) |
67 |
AC_MSG_RESULT([no]) |
68 |
;; |
69 |
esac |
70 |
|
71 |
AC_MSG_CHECKING([whether compiler accepts -Wmissing-declarations and -Wnested-externs]) |
72 |
gcc_version=`${CC} --version | grep 'gcc (GCC) [[3-4]].' | head -n 1` |
73 |
case "${gcc_version}" in |
74 |
gcc*) |
75 |
AC_MSG_RESULT([no]) |
76 |
;; |
77 |
|
78 |
*) |
79 |
AC_MSG_RESULT([yes]) |
80 |
CXXFLAGS="$CXXFLAGS -Wmissing-declarations -Wnested-externs" |
81 |
;; |
82 |
esac |
83 |
|
84 |
dnl Check for BSD compatible install. |
55 |
dnl Check for BSD compatible install. |
85 |
|
56 |
|
86 |
AC_PROG_INSTALL |
57 |
AC_PROG_INSTALL |