~ubuntu-branches/ubuntu/utopic/xf86-input-wacom/utopic

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Package Import Robot
  • Author(s): Maarten Lankhorst
  • Date: 2014-09-10 16:34:04 UTC
  • mfrom: (1.1.16)
  • Revision ID: package-import@ubuntu.com-20140910163404-0334r2g4juh1r1j2
Tags: 1:0.25.0-0ubuntu1
* New upstream release.
* Drop the udev script and use the upstream provided one.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# generated automatically by aclocal 1.14 -*- Autoconf -*-
 
1
# generated automatically by aclocal 1.14.1 -*- Autoconf -*-
2
2
 
3
3
# Copyright (C) 1996-2013 Free Software Foundation, Inc.
4
4
 
274
274
# See the "minimum version" comment for each macro you use to see what
275
275
# version you require.
276
276
m4_defun([XORG_MACROS_VERSION],[
277
 
m4_define([vers_have], [1.17.1])
 
277
m4_define([vers_have], [1.19.0])
278
278
m4_define([maj_have], m4_substr(vers_have, 0, m4_index(vers_have, [.])))
279
279
m4_define([maj_needed], m4_substr([$1], 0, m4_index([$1], [.])))
280
280
m4_if(m4_cmp(maj_have, maj_needed), 0,,
324
324
        AC_MSG_RESULT([no])
325
325
else
326
326
        if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve   \"'` -eq 1 ; then
 
327
                TRADITIONALCPPFLAGS="-traditional"
327
328
                RAWCPPFLAGS="${RAWCPPFLAGS} -traditional"
328
329
                AC_MSG_RESULT([yes])
329
330
        else
332
333
fi
333
334
rm -f conftest.$ac_ext
334
335
AC_SUBST(RAWCPPFLAGS)
 
336
AC_SUBST(TRADITIONALCPPFLAGS)
335
337
]) # XORG_PROG_RAWCPP
336
338
 
337
339
# XORG_MANPAGE_SECTIONS()
856
858
]) # XORG_WITH_ASCIIDOC
857
859
 
858
860
# XORG_WITH_DOXYGEN([MIN-VERSION], [DEFAULT])
859
 
# --------------------------------
 
861
# -------------------------------------------
860
862
# Minimum version: 1.5.0
861
863
# Minimum version for optional DEFAULT argument: 1.11.0
 
864
# Minimum version for optional DOT checking: 1.18.0
862
865
#
863
866
# Documentation tools are not always available on all platforms and sometimes
864
867
# not at the appropriate level. This macro enables a module to test for the
878
881
#
879
882
AC_DEFUN([XORG_WITH_DOXYGEN],[
880
883
AC_ARG_VAR([DOXYGEN], [Path to doxygen command])
 
884
AC_ARG_VAR([DOT], [Path to the dot graphics utility])
881
885
m4_define([_defopt], m4_default([$2], [auto]))
882
886
AC_ARG_WITH(doxygen,
883
887
        AS_HELP_STRING([--with-doxygen],
921
925
            AC_MSG_ERROR([doxygen version $doxygen_version found, but $1 needed])
922
926
        fi])
923
927
fi])
 
928
 
 
929
dnl Check for DOT if we have doxygen. The caller decides if it is mandatory
 
930
dnl HAVE_DOT is a variable that can be used in your doxygen.in config file:
 
931
dnl     HAVE_DOT = @HAVE_DOT@
 
932
HAVE_DOT=no
 
933
if test "x$have_doxygen" = "xyes"; then
 
934
  AC_PATH_PROG([DOT], [dot])
 
935
    if test "x$DOT" != "x"; then
 
936
      HAVE_DOT=yes
 
937
    fi
 
938
fi
 
939
 
 
940
AC_SUBST([HAVE_DOT])
 
941
AM_CONDITIONAL([HAVE_DOT], [test "$HAVE_DOT" = "yes"])
924
942
AM_CONDITIONAL([HAVE_DOXYGEN], [test "$have_doxygen" = yes])
925
943
]) # XORG_WITH_DOXYGEN
926
944
 
1103
1121
AM_CONDITIONAL([HAVE_FOP], [test "$have_fop" = yes])
1104
1122
]) # XORG_WITH_FOP
1105
1123
 
 
1124
# XORG_WITH_M4([MIN-VERSION])
 
1125
# ---------------------------
 
1126
# Minimum version: 1.19.0
 
1127
#
 
1128
# This macro attempts to locate an m4 macro processor which supports
 
1129
# -I option and is only useful for modules relying on M4 in order to
 
1130
# expand macros in source code files.
 
1131
#
 
1132
# Interface to module:
 
1133
# M4:           returns the path of the m4 program found
 
1134
#               returns the path set by the user in the environment
 
1135
#
 
1136
AC_DEFUN([XORG_WITH_M4], [
 
1137
AC_CACHE_CHECK([for m4 that supports -I option], [ac_cv_path_M4],
 
1138
   [AC_PATH_PROGS_FEATURE_CHECK([M4], [m4 gm4],
 
1139
       [[$ac_path_M4 -I. /dev/null > /dev/null 2>&1 && \
 
1140
         ac_cv_path_M4=$ac_path_M4 ac_path_M4_found=:]],
 
1141
   [AC_MSG_ERROR([could not find m4 that supports -I option])],
 
1142
   [$PATH:/usr/gnu/bin])])
 
1143
 
 
1144
AC_SUBST([M4], [$ac_cv_path_M4])
 
1145
]) # XORG_WITH_M4
 
1146
 
1106
1147
# XORG_WITH_PS2PDF([DEFAULT])
1107
1148
# ----------------
1108
1149
# Minimum version: 1.6.0
1557
1598
 
1558
1599
AC_MSG_CHECKING([whether malloc(0) returns NULL])
1559
1600
if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then
1560
 
        AC_RUN_IFELSE([AC_LANG_PROGRAM([
 
1601
AC_CACHE_VAL([xorg_cv_malloc0_returns_null],
 
1602
        [AC_RUN_IFELSE([AC_LANG_PROGRAM([
1561
1603
#include <stdlib.h>
1562
1604
],[
1563
1605
    char *m0, *r0, *c0, *p;
1567
1609
    c0 = calloc(0,10);
1568
1610
    exit((m0 == 0 || r0 == 0 || c0 == 0) ? 0 : 1);
1569
1611
])],
1570
 
                [MALLOC_ZERO_RETURNS_NULL=yes],
1571
 
                [MALLOC_ZERO_RETURNS_NULL=no],
1572
 
                [MALLOC_ZERO_RETURNS_NULL=yes])
 
1612
                [xorg_cv_malloc0_returns_null=yes],
 
1613
                [xorg_cv_malloc0_returns_null=no])])
 
1614
MALLOC_ZERO_RETURNS_NULL=$xorg_cv_malloc0_returns_null
1573
1615
fi
1574
1616
AC_MSG_RESULT([$MALLOC_ZERO_RETURNS_NULL])
1575
1617
 
1858
1900
                XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wmissing-prototypes])
1859
1901
                XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wnested-externs])
1860
1902
                XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wbad-function-cast])
1861
 
                XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wold-style-definition])
 
1903
                XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wold-style-definition], [-fd])
1862
1904
                XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wdeclaration-after-statement])
1863
1905
        ]
1864
1906
)
1867
1909
XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wunused])
1868
1910
XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wuninitialized])
1869
1911
XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wshadow])
1870
 
XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
1871
1912
XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wmissing-noreturn])
1872
1913
XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wmissing-format-attribute])
1873
1914
XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wredundant-decls])
 
1915
XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
1874
1916
 
1875
1917
# These are currently disabled because they are noisy.  They will be enabled
1876
1918
# in the future once the codebase is sufficiently modernized to silence
1877
1919
# them.  For now, I don't want them to drown out the other warnings.
1878
 
# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
1879
1920
# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
1880
1921
# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
 
1922
# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
1881
1923
 
1882
1924
# Turn some warnings into errors, so we don't accidently get successful builds
1883
1925
# when there are problems that should be fixed.
2103
2145
[am__api_version='1.14'
2104
2146
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
2105
2147
dnl require some minimum version.  Point them to the right macro.
2106
 
m4_if([$1], [1.14], [],
 
2148
m4_if([$1], [1.14.1], [],
2107
2149
      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
2108
2150
])
2109
2151
 
2119
2161
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
2120
2162
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
2121
2163
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
2122
 
[AM_AUTOMAKE_VERSION([1.14])dnl
 
2164
[AM_AUTOMAKE_VERSION([1.14.1])dnl
2123
2165
m4_ifndef([AC_AUTOCONF_VERSION],
2124
2166
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
2125
2167
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])