~ubuntu-branches/ubuntu/quantal/desktop-file-utils/quantal

« back to all changes in this revision

Viewing changes to configure.in

  • Committer: Bazaar Package Importer
  • Author(s): Robert Ancell
  • Date: 2010-11-03 14:52:04 UTC
  • mfrom: (1.1.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20101103145204-jbpthc6vzm1gu2w5
Tags: 0.17-0ubuntu1
* New upstream release
* debian/source:
  - Use source version 3.0
* debian/rules:
  - Stop using simple-patchsys.mk

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
AC_INIT([desktop-file-utils], [0.16],
2
 
        [https://bugs.freedesktop.org/enter_bug.cgi?product=desktop-file-utils])
3
 
AC_CONFIG_SRCDIR(src/validate.h)
4
 
 
5
 
AM_INIT_AUTOMAKE([1.9 foreign no-dist-gzip dist-bzip2])
6
 
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
7
 
AC_CONFIG_MACRO_DIR([m4])
8
 
AM_CONFIG_HEADER(config.h)
9
 
 
10
 
# Honor aclocal flags
11
 
AC_SUBST(ACLOCAL_AMFLAGS, "\${ACLOCAL_FLAGS}")
12
 
 
13
 
AM_MAINTAINER_MODE
14
 
 
15
 
AC_PROG_CC
16
 
AC_ISC_POSIX
17
 
AC_HEADER_STDC
18
 
AM_PROG_LIBTOOL
19
 
 
20
 
if test "x$GCC" = "xyes"; then
21
 
  changequote(,)dnl
22
 
  case " $CFLAGS " in
23
 
  *[\ \ ]-Wall[\ \      ]*) ;;
24
 
  *) CFLAGS="$CFLAGS -Wall" ;;
25
 
  esac
26
 
 
27
 
  case " $CFLAGS " in
28
 
  *[\ \ ]-Wchar-subscripts[\ \  ]*) ;;
29
 
  *) CFLAGS="$CFLAGS -Wchar-subscripts" ;;
30
 
  esac
31
 
 
32
 
  case " $CFLAGS " in
33
 
  *[\ \ ]-Wmissing-declarations[\ \     ]*) ;;
34
 
  *) CFLAGS="$CFLAGS -Wmissing-declarations" ;;
35
 
  esac
36
 
 
37
 
  case " $CFLAGS " in
38
 
  *[\ \ ]-Wmissing-prototypes[\ \       ]*) ;;
39
 
  *) CFLAGS="$CFLAGS -Wmissing-prototypes" ;;
40
 
  esac
41
 
 
42
 
  case " $CFLAGS " in
43
 
  *[\ \ ]-Wnested-externs[\ \   ]*) ;;
44
 
  *) CFLAGS="$CFLAGS -Wnested-externs" ;;
45
 
  esac
46
 
 
47
 
  case " $CFLAGS " in
48
 
  *[\ \ ]-Wpointer-arith[\ \    ]*) ;;
49
 
  *) CFLAGS="$CFLAGS -Wpointer-arith" ;;
50
 
  esac
51
 
 
52
 
  case " $CFLAGS " in
53
 
  *[\ \ ]-Wcast-align[\ \       ]*) ;;
54
 
  *) CFLAGS="$CFLAGS -Wcast-align" ;;
55
 
  esac
56
 
 
57
 
  case " $CFLAGS " in
58
 
  *[\ \ ]-Wsign-compare[\ \     ]*) ;;
59
 
  *) CFLAGS="$CFLAGS -Wsign-compare" ;;
60
 
  esac
61
 
 
62
 
  if test "x$enable_ansi" = "xyes"; then
63
 
    case " $CFLAGS " in
64
 
    *[\ \       ]-ansi[\ \      ]*) ;;
65
 
    *) CFLAGS="$CFLAGS -ansi" ;;
66
 
    esac
67
 
 
68
 
    case " $CFLAGS " in
69
 
    *[\ \       ]-pedantic[\ \  ]*) ;;
70
 
    *) CFLAGS="$CFLAGS -pedantic" ;;
71
 
    esac
72
 
  fi
73
 
  if test x$enable_gcov = xyes; then
74
 
    case " $CFLAGS " in
75
 
    *[\ \       ]-fprofile-arcs[\ \     ]*) ;;
76
 
    *) CFLAGS="$CFLAGS -fprofile-arcs" ;;
77
 
    esac
78
 
    case " $CFLAGS " in
79
 
    *[\ \       ]-ftest-coverage[\ \    ]*) ;;
80
 
    *) CFLAGS="$CFLAGS -ftest-coverage" ;;
81
 
    esac
82
 
 
83
 
    ## remove optimization
84
 
    CFLAGS=`echo "$CFLAGS" | sed -e 's/-O[0-9]*//g'`
85
 
  fi
86
 
  changequote([,])dnl
87
 
else
88
 
  if test x$enable_gcov = xyes; then
89
 
    AC_MSG_ERROR([--enable-gcov can only be used with gcc])
90
 
  fi
91
 
fi
92
 
 
93
 
changequote(,)dnl
94
 
# compress spaces in flags
95
 
CFLAGS=`echo "$CFLAGS" | sed -e 's/ +/ /g'`
96
 
CPPFLAGS=`echo "$CPPFLAGS" | sed -e 's/ +/ /g'`
97
 
changequote([,])dnl
98
 
 
99
 
PKG_CHECK_MODULES(DESKTOP_FILE_UTILS, glib-2.0 >= 2.8.0)
100
 
 
101
 
AM_PATH_LISPDIR
102
 
 
103
 
AC_CONFIG_FILES([
104
 
Makefile
105
 
src/Makefile
106
 
misc/Makefile
107
 
])
108
 
 
109
 
AC_OUTPUT