~ubuntu-branches/ubuntu/maverick/vim/maverick

« back to all changes in this revision

Viewing changes to src/configure.in

  • Committer: Bazaar Package Importer
  • Author(s): Colin Watson
  • Date: 2009-01-13 18:39:18 UTC
  • mfrom: (1.1.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20090113183918-kgq1jzdwsbbex4pq
Tags: 2:7.2.079-1ubuntu1
* Resynchronise with Debian (diversions fix closes LP: #296324). Remaining
  changes:
  - runtime/syntax/debcontrol.vim:
    + Add "metapackages" to the list of valid sections.
  - runtime/syntax/debchangelog.vim:
    + Add "jaunty" to the list of valid suites.
  - Drop vim-lesstif package and lesstif2-dev build-dependency.
  - Enable Python interpreter on basic builds.
  - Create a .pot file for translations.
  - Disable autoindent, line-wrapping, and backup files by default.
  - runtime/syntax/debsources.vim:
    + Add "jaunty" to debsourcesDistrKeyword
  - runtime/syntax/grub.vim:
    + Add Ubuntu-specific 'quiet' keyword.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3152
3152
dnl But only when making dependencies, cproto and lint don't take "-isystem".
3153
3153
dnl Mac gcc returns "powerpc-apple-darwin8-gcc-4.0.1 (GCC)...", need to allow
3154
3154
dnl the number before the version number.
3155
 
AC_MSG_CHECKING(for GCC 3 or later)
3156
3155
DEPEND_CFLAGS_FILTER=
3157
3156
if test "$GCC" = yes; then
 
3157
  AC_MSG_CHECKING(for GCC 3 or later)
3158
3158
  gccmajor=`echo "$gccversion" | sed -e 's/^\([[1-9]]\)\..*$/\1/g'`
3159
3159
  if test "$gccmajor" -gt "2"; then
3160
3160
    DEPEND_CFLAGS_FILTER="| sed 's+-I */+-isystem /+g'"
3161
 
  fi
3162
 
fi
3163
 
if test "$DEPEND_CFLAGS_FILTER" = ""; then
3164
 
  AC_MSG_RESULT(no)
3165
 
else
3166
 
  AC_MSG_RESULT(yes)
 
3161
    AC_MSG_RESULT(yes)
 
3162
  else
 
3163
    AC_MSG_RESULT(no)
 
3164
  fi
 
3165
  dnl -D_FORTIFY_SOURCE=2 crashes Vim on strcpy(buf, "000") when buf is
 
3166
  dnl declared as char x[1] but actually longer.  Introduced in gcc 4.0.
 
3167
  AC_MSG_CHECKING(whether we need -D_FORTIFY_SOURCE=1)
 
3168
  if test "$gccmajor" -gt "3"; then
 
3169
    CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=1"
 
3170
    AC_MSG_RESULT(yes)
 
3171
  else
 
3172
    AC_MSG_RESULT(no)
 
3173
  fi
3167
3174
fi
3168
3175
AC_SUBST(DEPEND_CFLAGS_FILTER)
3169
3176