~elementary-os/elementaryos/os-patch-notify-osd-precise

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Sergey "Shnatsel" Davidoff
  • Date: 2012-06-18 21:08:31 UTC
  • Revision ID: shnatsel@gmail.com-20120618210831-g6k5y7vecjdylgic
Initial import, version 0.9.34-0ubuntu2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# generated automatically by aclocal 1.11.3 -*- Autoconf -*-
 
2
 
 
3
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
 
4
# 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation,
 
5
# Inc.
 
6
# This file is free software; the Free Software Foundation
 
7
# gives unlimited permission to copy and/or distribute it,
 
8
# with or without modifications, as long as this notice is preserved.
 
9
 
 
10
# This program is distributed in the hope that it will be useful,
 
11
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
 
12
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
 
13
# PARTICULAR PURPOSE.
 
14
 
 
15
m4_ifndef([AC_AUTOCONF_VERSION],
 
16
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
 
17
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.68],,
 
18
[m4_warning([this file was generated for autoconf 2.68.
 
19
You have another version of autoconf.  It may work, but is not guaranteed to.
 
20
If you have problems, you may need to regenerate the build system entirely.
 
21
To do so, use the procedure documented by the package, typically `autoreconf'.])])
 
22
 
 
23
# gnome-common.m4
 
24
#
 
25
# serial 3
 
26
 
27
 
 
28
dnl GNOME_COMMON_INIT
 
29
 
 
30
AU_DEFUN([GNOME_COMMON_INIT],
 
31
[
 
32
  dnl this macro should come after AC_CONFIG_MACRO_DIR
 
33
  AC_BEFORE([AC_CONFIG_MACRO_DIR], [$0])
 
34
 
 
35
  dnl ensure that when the Automake generated makefile calls aclocal,
 
36
  dnl it honours the $ACLOCAL_FLAGS environment variable
 
37
  ACLOCAL_AMFLAGS="\${ACLOCAL_FLAGS}"
 
38
  if test -n "$ac_macro_dir"; then
 
39
    ACLOCAL_AMFLAGS="-I $ac_macro_dir $ACLOCAL_AMFLAGS"
 
40
  fi
 
41
 
 
42
  AC_SUBST([ACLOCAL_AMFLAGS])
 
43
],
 
44
[[$0: This macro is deprecated. You should set put "ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}"
 
45
in your top-level Makefile.am, instead, where "m4" is the macro directory set
 
46
with AC_CONFIG_MACRO_DIR() in your configure.ac]])
 
47
 
 
48
AC_DEFUN([GNOME_DEBUG_CHECK],
 
49
[
 
50
        AC_ARG_ENABLE([debug],
 
51
                      AC_HELP_STRING([--enable-debug],
 
52
                                     [turn on debugging]),,
 
53
                      [enable_debug=no])
 
54
 
 
55
        if test x$enable_debug = xyes ; then
 
56
            AC_DEFINE(GNOME_ENABLE_DEBUG, 1,
 
57
                [Enable additional debugging at the expense of performance and size])
 
58
        fi
 
59
])
 
60
 
 
61
dnl GNOME_MAINTAINER_MODE_DEFINES ()
 
62
dnl define DISABLE_DEPRECATED
 
63
dnl
 
64
AC_DEFUN([GNOME_MAINTAINER_MODE_DEFINES],
 
65
[
 
66
        AC_REQUIRE([AM_MAINTAINER_MODE])
 
67
 
 
68
        DISABLE_DEPRECATED=""
 
69
        if test $USE_MAINTAINER_MODE = yes; then
 
70
                DOMAINS="G ATK PANGO GDK GDK_PIXBUF GTK GCONF BONOBO BONOBO_UI GNOME LIBGLADE VTE GNOME_VFS WNCK LIBSOUP"
 
71
                for DOMAIN in $DOMAINS; do
 
72
                       DISABLE_DEPRECATED="$DISABLE_DEPRECATED -D${DOMAIN}_DISABLE_DEPRECATED -D${DOMAIN}_DISABLE_SINGLE_INCLUDES"
 
73
                done
 
74
        fi
 
75
 
 
76
        AC_SUBST(DISABLE_DEPRECATED)
 
77
])
 
78
 
 
79
dnl GNOME_COMPILE_WARNINGS
 
80
dnl Turn on many useful compiler warnings
 
81
dnl For now, only works on GCC
 
82
AC_DEFUN([GNOME_COMPILE_WARNINGS],[
 
83
    dnl ******************************
 
84
    dnl More compiler warnings
 
85
    dnl ******************************
 
86
 
 
87
    AC_ARG_ENABLE(compile-warnings, 
 
88
                  AC_HELP_STRING([--enable-compile-warnings=@<:@no/minimum/yes/maximum/error@:>@],
 
89
                                 [Turn on compiler warnings]),,
 
90
                  [enable_compile_warnings="m4_default([$1],[yes])"])
 
91
 
 
92
    warnCFLAGS=
 
93
    if test "x$GCC" != xyes; then
 
94
        enable_compile_warnings=no
 
95
    fi
 
96
 
 
97
    warning_flags=
 
98
    realsave_CFLAGS="$CFLAGS"
 
99
 
 
100
    case "$enable_compile_warnings" in
 
101
    no)
 
102
        warning_flags=
 
103
        ;;
 
104
    minimum)
 
105
        warning_flags="-Wall"
 
106
        ;;
 
107
    yes)
 
108
        warning_flags="-Wall -Wmissing-prototypes"
 
109
        ;;
 
110
    maximum|error)
 
111
        warning_flags="-Wall -Wmissing-prototypes -Wnested-externs -Wpointer-arith"
 
112
        CFLAGS="$warning_flags $CFLAGS"
 
113
        for option in -Wno-sign-compare; do
 
114
                SAVE_CFLAGS="$CFLAGS"
 
115
                CFLAGS="$CFLAGS $option"
 
116
                AC_MSG_CHECKING([whether gcc understands $option])
 
117
                AC_TRY_COMPILE([], [],
 
118
                        has_option=yes,
 
119
                        has_option=no,)
 
120
                CFLAGS="$SAVE_CFLAGS"
 
121
                AC_MSG_RESULT($has_option)
 
122
                if test $has_option = yes; then
 
123
                  warning_flags="$warning_flags $option"
 
124
                fi
 
125
                unset has_option
 
126
                unset SAVE_CFLAGS
 
127
        done
 
128
        unset option
 
129
        if test "$enable_compile_warnings" = "error" ; then
 
130
            warning_flags="$warning_flags -Werror"
 
131
        fi
 
132
        ;;
 
133
    *)
 
134
        AC_MSG_ERROR(Unknown argument '$enable_compile_warnings' to --enable-compile-warnings)
 
135
        ;;
 
136
    esac
 
137
    CFLAGS="$realsave_CFLAGS"
 
138
    AC_MSG_CHECKING(what warning flags to pass to the C compiler)
 
139
    AC_MSG_RESULT($warning_flags)
 
140
 
 
141
    AC_ARG_ENABLE(iso-c,
 
142
                  AC_HELP_STRING([--enable-iso-c],
 
143
                                 [Try to warn if code is not ISO C ]),,
 
144
                  [enable_iso_c=no])
 
145
 
 
146
    AC_MSG_CHECKING(what language compliance flags to pass to the C compiler)
 
147
    complCFLAGS=
 
148
    if test "x$enable_iso_c" != "xno"; then
 
149
        if test "x$GCC" = "xyes"; then
 
150
        case " $CFLAGS " in
 
151
            *[\ \       ]-ansi[\ \      ]*) ;;
 
152
            *) complCFLAGS="$complCFLAGS -ansi" ;;
 
153
        esac
 
154
        case " $CFLAGS " in
 
155
            *[\ \       ]-pedantic[\ \  ]*) ;;
 
156
            *) complCFLAGS="$complCFLAGS -pedantic" ;;
 
157
        esac
 
158
        fi
 
159
    fi
 
160
    AC_MSG_RESULT($complCFLAGS)
 
161
 
 
162
    WARN_CFLAGS="$warning_flags $complCFLAGS"
 
163
    AC_SUBST(WARN_CFLAGS)
 
164
])
 
165
 
 
166
dnl For C++, do basically the same thing.
 
167
 
 
168
AC_DEFUN([GNOME_CXX_WARNINGS],[
 
169
  AC_ARG_ENABLE(cxx-warnings,
 
170
                AC_HELP_STRING([--enable-cxx-warnings=@<:@no/minimum/yes@:>@]
 
171
                               [Turn on compiler warnings.]),,
 
172
                [enable_cxx_warnings="m4_default([$1],[minimum])"])
 
173
 
 
174
  AC_MSG_CHECKING(what warning flags to pass to the C++ compiler)
 
175
  warnCXXFLAGS=
 
176
  if test "x$GXX" != xyes; then
 
177
    enable_cxx_warnings=no
 
178
  fi
 
179
  if test "x$enable_cxx_warnings" != "xno"; then
 
180
    if test "x$GXX" = "xyes"; then
 
181
      case " $CXXFLAGS " in
 
182
      *[\ \     ]-Wall[\ \      ]*) ;;
 
183
      *) warnCXXFLAGS="-Wall -Wno-unused" ;;
 
184
      esac
 
185
 
 
186
      ## -W is not all that useful.  And it cannot be controlled
 
187
      ## with individual -Wno-xxx flags, unlike -Wall
 
188
      if test "x$enable_cxx_warnings" = "xyes"; then
 
189
        warnCXXFLAGS="$warnCXXFLAGS -Wshadow -Woverloaded-virtual"
 
190
      fi
 
191
    fi
 
192
  fi
 
193
  AC_MSG_RESULT($warnCXXFLAGS)
 
194
 
 
195
   AC_ARG_ENABLE(iso-cxx,
 
196
                 AC_HELP_STRING([--enable-iso-cxx],
 
197
                                [Try to warn if code is not ISO C++ ]),,
 
198
                 [enable_iso_cxx=no])
 
199
 
 
200
   AC_MSG_CHECKING(what language compliance flags to pass to the C++ compiler)
 
201
   complCXXFLAGS=
 
202
   if test "x$enable_iso_cxx" != "xno"; then
 
203
     if test "x$GXX" = "xyes"; then
 
204
      case " $CXXFLAGS " in
 
205
      *[\ \     ]-ansi[\ \      ]*) ;;
 
206
      *) complCXXFLAGS="$complCXXFLAGS -ansi" ;;
 
207
      esac
 
208
 
 
209
      case " $CXXFLAGS " in
 
210
      *[\ \     ]-pedantic[\ \  ]*) ;;
 
211
      *) complCXXFLAGS="$complCXXFLAGS -pedantic" ;;
 
212
      esac
 
213
     fi
 
214
   fi
 
215
  AC_MSG_RESULT($complCXXFLAGS)
 
216
 
 
217
  WARN_CXXFLAGS="$CXXFLAGS $warnCXXFLAGS $complCXXFLAGS"
 
218
  AC_SUBST(WARN_CXXFLAGS)
 
219
])
 
220
 
 
221
dnl GLIB_GSETTINGS
 
222
dnl Defines GSETTINGS_SCHEMAS_INSTALL which controls whether
 
223
dnl the schema should be compiled
 
224
dnl
 
225
 
 
226
AC_DEFUN([GLIB_GSETTINGS],
 
227
[
 
228
  m4_pattern_allow([AM_V_GEN])
 
229
  AC_ARG_ENABLE(schemas-compile,
 
230
                AS_HELP_STRING([--disable-schemas-compile],
 
231
                               [Disable regeneration of gschemas.compiled on install]),
 
232
                [case ${enableval} in
 
233
                  yes) GSETTINGS_DISABLE_SCHEMAS_COMPILE=""  ;;
 
234
                  no)  GSETTINGS_DISABLE_SCHEMAS_COMPILE="1" ;;
 
235
                  *) AC_MSG_ERROR([bad value ${enableval} for --enable-schemas-compile]) ;;
 
236
                 esac])
 
237
  AC_SUBST([GSETTINGS_DISABLE_SCHEMAS_COMPILE])
 
238
  PKG_PROG_PKG_CONFIG([0.16])
 
239
  AC_SUBST(gsettingsschemadir, [${datadir}/glib-2.0/schemas])
 
240
  if test x$cross_compiling != xyes; then
 
241
    GLIB_COMPILE_SCHEMAS=`$PKG_CONFIG --variable glib_compile_schemas gio-2.0`
 
242
  else
 
243
    AC_PATH_PROG(GLIB_COMPILE_SCHEMAS, glib-compile-schemas)
 
244
  fi
 
245
  AC_SUBST(GLIB_COMPILE_SCHEMAS)
 
246
  if test "x$GLIB_COMPILE_SCHEMAS" = "x"; then
 
247
    ifelse([$2],,[AC_MSG_ERROR([glib-compile-schemas not found.])],[$2])
 
248
  else
 
249
    ifelse([$1],,[:],[$1])
 
250
  fi
 
251
 
 
252
  GSETTINGS_RULES='
 
253
.PHONY : uninstall-gsettings-schemas install-gsettings-schemas clean-gsettings-schemas
 
254
 
 
255
mostlyclean-am: clean-gsettings-schemas
 
256
 
 
257
gsettings__enum_file = $(addsuffix .enums.xml,$(gsettings_ENUM_NAMESPACE))
 
258
 
 
259
%.gschema.valid: %.gschema.xml $(gsettings__enum_file)
 
260
        $(AM_V_GEN) if test -f "$<"; then d=; else d="$(srcdir)/"; fi; $(GLIB_COMPILE_SCHEMAS) --strict --dry-run $(addprefix --schema-file=,$(gsettings__enum_file)) --schema-file=$${d}$< && touch [$]@
 
261
 
 
262
all-am: $(gsettings_SCHEMAS:.xml=.valid)
 
263
uninstall-am: uninstall-gsettings-schemas
 
264
install-data-am: install-gsettings-schemas
 
265
 
 
266
.SECONDARY: $(gsettings_SCHEMAS)
 
267
 
 
268
install-gsettings-schemas: $(gsettings_SCHEMAS) $(gsettings__enum_file)
 
269
        @$(NORMAL_INSTALL)
 
270
        if test -n "$^"; then \
 
271
                test -z "$(gsettingsschemadir)" || $(MKDIR_P) "$(DESTDIR)$(gsettingsschemadir)"; \
 
272
                $(INSTALL_DATA) $^ "$(DESTDIR)$(gsettingsschemadir)"; \
 
273
                test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir); \
 
274
        fi
 
275
 
 
276
uninstall-gsettings-schemas:
 
277
        @$(NORMAL_UNINSTALL)
 
278
        @list='\''$(gsettings_SCHEMAS) $(gsettings__enum_file)'\''; test -n "$(gsettingsschemadir)" || list=; \
 
279
        files=`for p in $$list; do echo $$p; done | sed -e '\''s|^.*/||'\''`; \
 
280
        test -n "$$files" || exit 0; \
 
281
        echo " ( cd '\''$(DESTDIR)$(gsettingsschemadir)'\'' && rm -f" $$files ")"; \
 
282
        cd "$(DESTDIR)$(gsettingsschemadir)" && rm -f $$files
 
283
        test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir)
 
284
 
 
285
clean-gsettings-schemas:
 
286
        rm -f $(gsettings_SCHEMAS:.xml=.valid) $(gsettings__enum_file)
 
287
 
 
288
ifdef gsettings_ENUM_NAMESPACE
 
289
$(gsettings__enum_file): $(gsettings_ENUM_FILES)
 
290
        $(AM_V_GEN) glib-mkenums --comments '\''<!-- @comment@ -->'\'' --fhead "<schemalist>" --vhead "  <@type@ id='\''$(gsettings_ENUM_NAMESPACE).@EnumName@'\''>" --vprod "    <value nick='\''@valuenick@'\'' value='\''@valuenum@'\''/>" --vtail "  </@type@>" --ftail "</schemalist>" [$]^ > [$]@.tmp && mv [$]@.tmp [$]@
 
291
endif
 
292
'
 
293
  _GSETTINGS_SUBST(GSETTINGS_RULES)
 
294
])
 
295
 
 
296
dnl _GSETTINGS_SUBST(VARIABLE)
 
297
dnl Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST
 
298
AC_DEFUN([_GSETTINGS_SUBST],
 
299
[
 
300
AC_SUBST([$1])
 
301
m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])])
 
302
]
 
303
)
 
304
 
 
305
# Configure paths for GTK+
 
306
# Owen Taylor     1997-2001
 
307
 
 
308
dnl AM_PATH_GTK_3_0([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND [, MODULES]]]])
 
309
dnl Test for GTK+, and define GTK_CFLAGS and GTK_LIBS, if gthread is specified in MODULES, 
 
310
dnl pass to pkg-config
 
311
dnl
 
312
AC_DEFUN([AM_PATH_GTK_3_0],
 
313
[dnl 
 
314
dnl Get the cflags and libraries from pkg-config
 
315
dnl
 
316
AC_ARG_ENABLE(gtktest, [  --disable-gtktest       do not try to compile and run a test GTK+ program],
 
317
                    , enable_gtktest=yes)
 
318
 
 
319
  pkg_config_args=gtk+-3.0
 
320
  for module in . $4
 
321
  do
 
322
      case "$module" in
 
323
         gthread)
 
324
             pkg_config_args="$pkg_config_args gthread-2.0"
 
325
         ;;
 
326
      esac
 
327
  done
 
328
 
 
329
  no_gtk=""
 
330
 
 
331
  AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
 
332
 
 
333
  if test x$PKG_CONFIG != xno ; then
 
334
    if $PKG_CONFIG --atleast-pkgconfig-version 0.7 ; then
 
335
      :
 
336
    else
 
337
      echo "*** pkg-config too old; version 0.7 or better required."
 
338
      no_gtk=yes
 
339
      PKG_CONFIG=no
 
340
    fi
 
341
  else
 
342
    no_gtk=yes
 
343
  fi
 
344
 
 
345
  min_gtk_version=ifelse([$1], ,3.0.0,$1)
 
346
  AC_MSG_CHECKING(for GTK+ - version >= $min_gtk_version)
 
347
 
 
348
  if test x$PKG_CONFIG != xno ; then
 
349
    ## don't try to run the test against uninstalled libtool libs
 
350
    if $PKG_CONFIG --uninstalled $pkg_config_args; then
 
351
          echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
 
352
          enable_gtktest=no
 
353
    fi
 
354
 
 
355
    if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
 
356
          :
 
357
    else
 
358
          no_gtk=yes
 
359
    fi
 
360
  fi
 
361
 
 
362
  if test x"$no_gtk" = x ; then
 
363
    GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
 
364
    GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
 
365
    gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-3.0 | \
 
366
           sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
 
367
    gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-3.0 | \
 
368
           sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
 
369
    gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-3.0 | \
 
370
           sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
 
371
    if test "x$enable_gtktest" = "xyes" ; then
 
372
      ac_save_CFLAGS="$CFLAGS"
 
373
      ac_save_LIBS="$LIBS"
 
374
      CFLAGS="$CFLAGS $GTK_CFLAGS"
 
375
      LIBS="$GTK_LIBS $LIBS"
 
376
dnl
 
377
dnl Now check if the installed GTK+ is sufficiently new. (Also sanity
 
378
dnl checks the results of pkg-config to some extent)
 
379
dnl
 
380
      rm -f conf.gtktest
 
381
      AC_TRY_RUN([
 
382
#include <gtk/gtk.h>
 
383
#include <stdio.h>
 
384
#include <stdlib.h>
 
385
 
 
386
int 
 
387
main ()
 
388
{
 
389
  int major, minor, micro;
 
390
  char *tmp_version;
 
391
 
 
392
  fclose (fopen ("conf.gtktest", "w"));
 
393
 
 
394
  /* HP/UX 9 (%@#!) writes to sscanf strings */
 
395
  tmp_version = g_strdup("$min_gtk_version");
 
396
  if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
 
397
     printf("%s, bad version string\n", "$min_gtk_version");
 
398
     exit(1);
 
399
   }
 
400
 
 
401
  if ((gtk_major_version != $gtk_config_major_version) ||
 
402
      (gtk_minor_version != $gtk_config_minor_version) ||
 
403
      (gtk_micro_version != $gtk_config_micro_version))
 
404
    {
 
405
      printf("\n*** 'pkg-config --modversion gtk+-3.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", 
 
406
             $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
 
407
             gtk_major_version, gtk_minor_version, gtk_micro_version);
 
408
      printf ("*** was found! If pkg-config was correct, then it is best\n");
 
409
      printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
 
410
      printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
 
411
      printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
 
412
      printf("*** required on your system.\n");
 
413
      printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
 
414
      printf("*** to point to the correct configuration files\n");
 
415
    } 
 
416
  else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
 
417
           (gtk_minor_version != GTK_MINOR_VERSION) ||
 
418
           (gtk_micro_version != GTK_MICRO_VERSION))
 
419
    {
 
420
      printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
 
421
             GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
 
422
      printf("*** library (version %d.%d.%d)\n",
 
423
             gtk_major_version, gtk_minor_version, gtk_micro_version);
 
424
    }
 
425
  else
 
426
    {
 
427
      if ((gtk_major_version > major) ||
 
428
        ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
 
429
        ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
 
430
      {
 
431
        return 0;
 
432
       }
 
433
     else
 
434
      {
 
435
        printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
 
436
               gtk_major_version, gtk_minor_version, gtk_micro_version);
 
437
        printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
 
438
               major, minor, micro);
 
439
        printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
 
440
        printf("***\n");
 
441
        printf("*** If you have already installed a sufficiently new version, this error\n");
 
442
        printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
 
443
        printf("*** being found. The easiest way to fix this is to remove the old version\n");
 
444
        printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
 
445
        printf("*** correct copy of pkg-config. (In this case, you will have to\n");
 
446
        printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
 
447
        printf("*** so that the correct libraries are found at run-time))\n");
 
448
      }
 
449
    }
 
450
  return 1;
 
451
}
 
452
],, no_gtk=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
 
453
       CFLAGS="$ac_save_CFLAGS"
 
454
       LIBS="$ac_save_LIBS"
 
455
     fi
 
456
  fi
 
457
  if test "x$no_gtk" = x ; then
 
458
     AC_MSG_RESULT(yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version))
 
459
     ifelse([$2], , :, [$2])
 
460
  else
 
461
     AC_MSG_RESULT(no)
 
462
     if test "$PKG_CONFIG" = "no" ; then
 
463
       echo "*** A new enough version of pkg-config was not found."
 
464
       echo "*** See http://pkgconfig.sourceforge.net"
 
465
     else
 
466
       if test -f conf.gtktest ; then
 
467
        :
 
468
       else
 
469
          echo "*** Could not run GTK+ test program, checking why..."
 
470
          ac_save_CFLAGS="$CFLAGS"
 
471
          ac_save_LIBS="$LIBS"
 
472
          CFLAGS="$CFLAGS $GTK_CFLAGS"
 
473
          LIBS="$LIBS $GTK_LIBS"
 
474
          AC_TRY_LINK([
 
475
#include <gtk/gtk.h>
 
476
#include <stdio.h>
 
477
],      [ return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); ],
 
478
        [ echo "*** The test program compiled, but did not run. This usually means"
 
479
          echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
 
480
          echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
 
481
          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
 
482
          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
 
483
          echo "*** is required on your system"
 
484
          echo "***"
 
485
          echo "*** If you have an old version installed, it is best to remove it, although"
 
486
          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" ],
 
487
        [ echo "*** The test program failed to compile or link. See the file config.log for the"
 
488
          echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."])
 
489
          CFLAGS="$ac_save_CFLAGS"
 
490
          LIBS="$ac_save_LIBS"
 
491
       fi
 
492
     fi
 
493
     GTK_CFLAGS=""
 
494
     GTK_LIBS=""
 
495
     ifelse([$3], , :, [$3])
 
496
  fi
 
497
  AC_SUBST(GTK_CFLAGS)
 
498
  AC_SUBST(GTK_LIBS)
 
499
  rm -f conf.gtktest
 
500
])
 
501
 
 
502
dnl GTK_CHECK_BACKEND(BACKEND-NAME [, MINIMUM-VERSION [, ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]])
 
503
dnl   Tests for BACKEND-NAME in the GTK targets list
 
504
dnl
 
505
AC_DEFUN([GTK_CHECK_BACKEND],
 
506
[
 
507
  pkg_config_args=ifelse([$1],,gtk+-3.0, gtk+-$1-3.0)
 
508
  min_gtk_version=ifelse([$2],,3.0.0,$2)
 
509
 
 
510
  AC_PATH_PROG(PKG_CONFIG, [pkg-config], [AC_MSG_ERROR([No pkg-config found])])
 
511
 
 
512
  if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args ; then
 
513
    target_found=yes
 
514
  else
 
515
    target_found=no
 
516
  fi
 
517
 
 
518
  if test "x$target_found" = "xno"; then
 
519
    ifelse([$4],,[AC_MSG_ERROR([Backend $backend not found.])],[$4])
 
520
  else
 
521
    ifelse([$3],,[:],[$3])
 
522
  fi
 
523
])
 
524
 
 
525
# pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
 
526
# serial 1 (pkg-config-0.24)
 
527
 
528
# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
 
529
#
 
530
# This program is free software; you can redistribute it and/or modify
 
531
# it under the terms of the GNU General Public License as published by
 
532
# the Free Software Foundation; either version 2 of the License, or
 
533
# (at your option) any later version.
 
534
#
 
535
# This program is distributed in the hope that it will be useful, but
 
536
# WITHOUT ANY WARRANTY; without even the implied warranty of
 
537
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
538
# General Public License for more details.
 
539
#
 
540
# You should have received a copy of the GNU General Public License
 
541
# along with this program; if not, write to the Free Software
 
542
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
543
#
 
544
# As a special exception to the GNU General Public License, if you
 
545
# distribute this file as part of a program that contains a
 
546
# configuration script generated by Autoconf, you may include it under
 
547
# the same distribution terms that you use for the rest of that program.
 
548
 
 
549
# PKG_PROG_PKG_CONFIG([MIN-VERSION])
 
550
# ----------------------------------
 
551
AC_DEFUN([PKG_PROG_PKG_CONFIG],
 
552
[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
 
553
m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$])
 
554
m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$])
 
555
AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
 
556
AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
 
557
AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
 
558
 
 
559
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
 
560
        AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
 
561
fi
 
562
if test -n "$PKG_CONFIG"; then
 
563
        _pkg_min_version=m4_default([$1], [0.9.0])
 
564
        AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
 
565
        if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
 
566
                AC_MSG_RESULT([yes])
 
567
        else
 
568
                AC_MSG_RESULT([no])
 
569
                PKG_CONFIG=""
 
570
        fi
 
571
fi[]dnl
 
572
])# PKG_PROG_PKG_CONFIG
 
573
 
 
574
# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
 
575
#
 
576
# Check to see whether a particular set of modules exists.  Similar
 
577
# to PKG_CHECK_MODULES(), but does not set variables or print errors.
 
578
#
 
579
# Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
 
580
# only at the first occurence in configure.ac, so if the first place
 
581
# it's called might be skipped (such as if it is within an "if", you
 
582
# have to call PKG_CHECK_EXISTS manually
 
583
# --------------------------------------------------------------
 
584
AC_DEFUN([PKG_CHECK_EXISTS],
 
585
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
 
586
if test -n "$PKG_CONFIG" && \
 
587
    AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
 
588
  m4_default([$2], [:])
 
589
m4_ifvaln([$3], [else
 
590
  $3])dnl
 
591
fi])
 
592
 
 
593
# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
 
594
# ---------------------------------------------
 
595
m4_define([_PKG_CONFIG],
 
596
[if test -n "$$1"; then
 
597
    pkg_cv_[]$1="$$1"
 
598
 elif test -n "$PKG_CONFIG"; then
 
599
    PKG_CHECK_EXISTS([$3],
 
600
                     [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`
 
601
                      test "x$?" != "x0" && pkg_failed=yes ],
 
602
                     [pkg_failed=yes])
 
603
 else
 
604
    pkg_failed=untried
 
605
fi[]dnl
 
606
])# _PKG_CONFIG
 
607
 
 
608
# _PKG_SHORT_ERRORS_SUPPORTED
 
609
# -----------------------------
 
610
AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
 
611
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
 
612
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
613
        _pkg_short_errors_supported=yes
 
614
else
 
615
        _pkg_short_errors_supported=no
 
616
fi[]dnl
 
617
])# _PKG_SHORT_ERRORS_SUPPORTED
 
618
 
 
619
 
 
620
# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
 
621
# [ACTION-IF-NOT-FOUND])
 
622
#
 
623
#
 
624
# Note that if there is a possibility the first call to
 
625
# PKG_CHECK_MODULES might not happen, you should be sure to include an
 
626
# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
 
627
#
 
628
#
 
629
# --------------------------------------------------------------
 
630
AC_DEFUN([PKG_CHECK_MODULES],
 
631
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
 
632
AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
 
633
AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
 
634
 
 
635
pkg_failed=no
 
636
AC_MSG_CHECKING([for $1])
 
637
 
 
638
_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
 
639
_PKG_CONFIG([$1][_LIBS], [libs], [$2])
 
640
 
 
641
m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
 
642
and $1[]_LIBS to avoid the need to call pkg-config.
 
643
See the pkg-config man page for more details.])
 
644
 
 
645
if test $pkg_failed = yes; then
 
646
        AC_MSG_RESULT([no])
 
647
        _PKG_SHORT_ERRORS_SUPPORTED
 
648
        if test $_pkg_short_errors_supported = yes; then
 
649
                $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1`
 
650
        else 
 
651
                $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1`
 
652
        fi
 
653
        # Put the nasty error message in config.log where it belongs
 
654
        echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
 
655
 
 
656
        m4_default([$4], [AC_MSG_ERROR(
 
657
[Package requirements ($2) were not met:
 
658
 
 
659
$$1_PKG_ERRORS
 
660
 
 
661
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
662
installed software in a non-standard prefix.
 
663
 
 
664
_PKG_TEXT])[]dnl
 
665
        ])
 
666
elif test $pkg_failed = untried; then
 
667
        AC_MSG_RESULT([no])
 
668
        m4_default([$4], [AC_MSG_FAILURE(
 
669
[The pkg-config script could not be found or is too old.  Make sure it
 
670
is in your PATH or set the PKG_CONFIG environment variable to the full
 
671
path to pkg-config.
 
672
 
 
673
_PKG_TEXT
 
674
 
 
675
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl
 
676
        ])
 
677
else
 
678
        $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
 
679
        $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
 
680
        AC_MSG_RESULT([yes])
 
681
        $3
 
682
fi[]dnl
 
683
])# PKG_CHECK_MODULES
 
684
 
 
685
# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008, 2011 Free Software
 
686
# Foundation, Inc.
 
687
#
 
688
# This file is free software; the Free Software Foundation
 
689
# gives unlimited permission to copy and/or distribute it,
 
690
# with or without modifications, as long as this notice is preserved.
 
691
 
 
692
# serial 1
 
693
 
 
694
# AM_AUTOMAKE_VERSION(VERSION)
 
695
# ----------------------------
 
696
# Automake X.Y traces this macro to ensure aclocal.m4 has been
 
697
# generated from the m4 files accompanying Automake X.Y.
 
698
# (This private macro should not be called outside this file.)
 
699
AC_DEFUN([AM_AUTOMAKE_VERSION],
 
700
[am__api_version='1.11'
 
701
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
 
702
dnl require some minimum version.  Point them to the right macro.
 
703
m4_if([$1], [1.11.3], [],
 
704
      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
 
705
])
 
706
 
 
707
# _AM_AUTOCONF_VERSION(VERSION)
 
708
# -----------------------------
 
709
# aclocal traces this macro to find the Autoconf version.
 
710
# This is a private macro too.  Using m4_define simplifies
 
711
# the logic in aclocal, which can simply ignore this definition.
 
712
m4_define([_AM_AUTOCONF_VERSION], [])
 
713
 
 
714
# AM_SET_CURRENT_AUTOMAKE_VERSION
 
715
# -------------------------------
 
716
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
 
717
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
 
718
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
 
719
[AM_AUTOMAKE_VERSION([1.11.3])dnl
 
720
m4_ifndef([AC_AUTOCONF_VERSION],
 
721
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
 
722
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
 
723
 
 
724
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
 
725
 
 
726
# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
 
727
#
 
728
# This file is free software; the Free Software Foundation
 
729
# gives unlimited permission to copy and/or distribute it,
 
730
# with or without modifications, as long as this notice is preserved.
 
731
 
 
732
# serial 1
 
733
 
 
734
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
 
735
# $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to
 
736
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
 
737
#
 
738
# Of course, Automake must honor this variable whenever it calls a
 
739
# tool from the auxiliary directory.  The problem is that $srcdir (and
 
740
# therefore $ac_aux_dir as well) can be either absolute or relative,
 
741
# depending on how configure is run.  This is pretty annoying, since
 
742
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
 
743
# source directory, any form will work fine, but in subdirectories a
 
744
# relative path needs to be adjusted first.
 
745
#
 
746
# $ac_aux_dir/missing
 
747
#    fails when called from a subdirectory if $ac_aux_dir is relative
 
748
# $top_srcdir/$ac_aux_dir/missing
 
749
#    fails if $ac_aux_dir is absolute,
 
750
#    fails when called from a subdirectory in a VPATH build with
 
751
#          a relative $ac_aux_dir
 
752
#
 
753
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
 
754
# are both prefixed by $srcdir.  In an in-source build this is usually
 
755
# harmless because $srcdir is `.', but things will broke when you
 
756
# start a VPATH build or use an absolute $srcdir.
 
757
#
 
758
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
 
759
# iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
 
760
#   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
 
761
# and then we would define $MISSING as
 
762
#   MISSING="\${SHELL} $am_aux_dir/missing"
 
763
# This will work as long as MISSING is not called from configure, because
 
764
# unfortunately $(top_srcdir) has no meaning in configure.
 
765
# However there are other variables, like CC, which are often used in
 
766
# configure, and could therefore not use this "fixed" $ac_aux_dir.
 
767
#
 
768
# Another solution, used here, is to always expand $ac_aux_dir to an
 
769
# absolute PATH.  The drawback is that using absolute paths prevent a
 
770
# configured tree to be moved without reconfiguration.
 
771
 
 
772
AC_DEFUN([AM_AUX_DIR_EXPAND],
 
773
[dnl Rely on autoconf to set up CDPATH properly.
 
774
AC_PREREQ([2.50])dnl
 
775
# expand $ac_aux_dir to an absolute path
 
776
am_aux_dir=`cd $ac_aux_dir && pwd`
 
777
])
 
778
 
 
779
# AM_CONDITIONAL                                            -*- Autoconf -*-
 
780
 
 
781
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
 
782
# Free Software Foundation, Inc.
 
783
#
 
784
# This file is free software; the Free Software Foundation
 
785
# gives unlimited permission to copy and/or distribute it,
 
786
# with or without modifications, as long as this notice is preserved.
 
787
 
 
788
# serial 9
 
789
 
 
790
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
 
791
# -------------------------------------
 
792
# Define a conditional.
 
793
AC_DEFUN([AM_CONDITIONAL],
 
794
[AC_PREREQ(2.52)dnl
 
795
 ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
 
796
        [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
 
797
AC_SUBST([$1_TRUE])dnl
 
798
AC_SUBST([$1_FALSE])dnl
 
799
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
 
800
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
 
801
m4_define([_AM_COND_VALUE_$1], [$2])dnl
 
802
if $2; then
 
803
  $1_TRUE=
 
804
  $1_FALSE='#'
 
805
else
 
806
  $1_TRUE='#'
 
807
  $1_FALSE=
 
808
fi
 
809
AC_CONFIG_COMMANDS_PRE(
 
810
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
 
811
  AC_MSG_ERROR([[conditional "$1" was never defined.
 
812
Usually this means the macro was only invoked conditionally.]])
 
813
fi])])
 
814
 
 
815
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009,
 
816
# 2010, 2011 Free Software Foundation, Inc.
 
817
#
 
818
# This file is free software; the Free Software Foundation
 
819
# gives unlimited permission to copy and/or distribute it,
 
820
# with or without modifications, as long as this notice is preserved.
 
821
 
 
822
# serial 12
 
823
 
 
824
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
 
825
# written in clear, in which case automake, when reading aclocal.m4,
 
826
# will think it sees a *use*, and therefore will trigger all it's
 
827
# C support machinery.  Also note that it means that autoscan, seeing
 
828
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
 
829
 
 
830
 
 
831
# _AM_DEPENDENCIES(NAME)
 
832
# ----------------------
 
833
# See how the compiler implements dependency checking.
 
834
# NAME is "CC", "CXX", "GCJ", or "OBJC".
 
835
# We try a few techniques and use that to set a single cache variable.
 
836
#
 
837
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
 
838
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
 
839
# dependency, and given that the user is not expected to run this macro,
 
840
# just rely on AC_PROG_CC.
 
841
AC_DEFUN([_AM_DEPENDENCIES],
 
842
[AC_REQUIRE([AM_SET_DEPDIR])dnl
 
843
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
 
844
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
 
845
AC_REQUIRE([AM_DEP_TRACK])dnl
 
846
 
 
847
ifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],
 
848
       [$1], CXX,  [depcc="$CXX"  am_compiler_list=],
 
849
       [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
 
850
       [$1], UPC,  [depcc="$UPC"  am_compiler_list=],
 
851
       [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
 
852
                   [depcc="$$1"   am_compiler_list=])
 
853
 
 
854
AC_CACHE_CHECK([dependency style of $depcc],
 
855
               [am_cv_$1_dependencies_compiler_type],
 
856
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
857
  # We make a subdir and do the tests there.  Otherwise we can end up
 
858
  # making bogus files that we don't know about and never remove.  For
 
859
  # instance it was reported that on HP-UX the gcc test will end up
 
860
  # making a dummy file named `D' -- because `-MD' means `put the output
 
861
  # in D'.
 
862
  rm -rf conftest.dir
 
863
  mkdir conftest.dir
 
864
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
865
  # using a relative directory.
 
866
  cp "$am_depcomp" conftest.dir
 
867
  cd conftest.dir
 
868
  # We will build objects and dependencies in a subdirectory because
 
869
  # it helps to detect inapplicable dependency modes.  For instance
 
870
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
871
  # side effect of compilation, but ICC will put the dependencies in
 
872
  # the current directory while Tru64 will put them in the object
 
873
  # directory.
 
874
  mkdir sub
 
875
 
 
876
  am_cv_$1_dependencies_compiler_type=none
 
877
  if test "$am_compiler_list" = ""; then
 
878
     am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
 
879
  fi
 
880
  am__universal=false
 
881
  m4_case([$1], [CC],
 
882
    [case " $depcc " in #(
 
883
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
884
     esac],
 
885
    [CXX],
 
886
    [case " $depcc " in #(
 
887
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
888
     esac])
 
889
 
 
890
  for depmode in $am_compiler_list; do
 
891
    # Setup a source with many dependencies, because some compilers
 
892
    # like to wrap large dependency lists on column 80 (with \), and
 
893
    # we should not choose a depcomp mode which is confused by this.
 
894
    #
 
895
    # We need to recreate these files for each test, as the compiler may
 
896
    # overwrite some of them when testing with obscure command lines.
 
897
    # This happens at least with the AIX C compiler.
 
898
    : > sub/conftest.c
 
899
    for i in 1 2 3 4 5 6; do
 
900
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
901
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
902
      # Solaris 8's {/usr,}/bin/sh.
 
903
      touch sub/conftst$i.h
 
904
    done
 
905
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
906
 
 
907
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
908
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
909
    # handle `-M -o', and we need to detect this.  Also, some Intel
 
910
    # versions had trouble with output in subdirs
 
911
    am__obj=sub/conftest.${OBJEXT-o}
 
912
    am__minus_obj="-o $am__obj"
 
913
    case $depmode in
 
914
    gcc)
 
915
      # This depmode causes a compiler race in universal mode.
 
916
      test "$am__universal" = false || continue
 
917
      ;;
 
918
    nosideeffect)
 
919
      # after this tag, mechanisms are not by side-effect, so they'll
 
920
      # only be used when explicitly requested
 
921
      if test "x$enable_dependency_tracking" = xyes; then
 
922
        continue
 
923
      else
 
924
        break
 
925
      fi
 
926
      ;;
 
927
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
 
928
      # This compiler won't grok `-c -o', but also, the minuso test has
 
929
      # not run yet.  These depmodes are late enough in the game, and
 
930
      # so weak that their functioning should not be impacted.
 
931
      am__obj=conftest.${OBJEXT-o}
 
932
      am__minus_obj=
 
933
      ;;
 
934
    none) break ;;
 
935
    esac
 
936
    if depmode=$depmode \
 
937
       source=sub/conftest.c object=$am__obj \
 
938
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
939
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
 
940
         >/dev/null 2>conftest.err &&
 
941
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
942
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
943
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
 
944
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
945
      # icc doesn't choke on unknown options, it will just issue warnings
 
946
      # or remarks (even with -Werror).  So we grep stderr for any message
 
947
      # that says an option was ignored or not supported.
 
948
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
949
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
950
      # The diagnosis changed in icc 8.0:
 
951
      #   icc: Command line remark: option '-MP' not supported
 
952
      if (grep 'ignoring option' conftest.err ||
 
953
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
954
        am_cv_$1_dependencies_compiler_type=$depmode
 
955
        break
 
956
      fi
 
957
    fi
 
958
  done
 
959
 
 
960
  cd ..
 
961
  rm -rf conftest.dir
 
962
else
 
963
  am_cv_$1_dependencies_compiler_type=none
 
964
fi
 
965
])
 
966
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
 
967
AM_CONDITIONAL([am__fastdep$1], [
 
968
  test "x$enable_dependency_tracking" != xno \
 
969
  && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
 
970
])
 
971
 
 
972
 
 
973
# AM_SET_DEPDIR
 
974
# -------------
 
975
# Choose a directory name for dependency files.
 
976
# This macro is AC_REQUIREd in _AM_DEPENDENCIES
 
977
AC_DEFUN([AM_SET_DEPDIR],
 
978
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
 
979
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
 
980
])
 
981
 
 
982
 
 
983
# AM_DEP_TRACK
 
984
# ------------
 
985
AC_DEFUN([AM_DEP_TRACK],
 
986
[AC_ARG_ENABLE(dependency-tracking,
 
987
[  --disable-dependency-tracking  speeds up one-time build
 
988
  --enable-dependency-tracking   do not reject slow dependency extractors])
 
989
if test "x$enable_dependency_tracking" != xno; then
 
990
  am_depcomp="$ac_aux_dir/depcomp"
 
991
  AMDEPBACKSLASH='\'
 
992
  am__nodep='_no'
 
993
fi
 
994
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
 
995
AC_SUBST([AMDEPBACKSLASH])dnl
 
996
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
 
997
AC_SUBST([am__nodep])dnl
 
998
_AM_SUBST_NOTMAKE([am__nodep])dnl
 
999
])
 
1000
 
 
1001
# Generate code to set up dependency tracking.              -*- Autoconf -*-
 
1002
 
 
1003
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
 
1004
# Free Software Foundation, Inc.
 
1005
#
 
1006
# This file is free software; the Free Software Foundation
 
1007
# gives unlimited permission to copy and/or distribute it,
 
1008
# with or without modifications, as long as this notice is preserved.
 
1009
 
 
1010
#serial 5
 
1011
 
 
1012
# _AM_OUTPUT_DEPENDENCY_COMMANDS
 
1013
# ------------------------------
 
1014
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
 
1015
[{
 
1016
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
 
1017
  # are listed without --file.  Let's play safe and only enable the eval
 
1018
  # if we detect the quoting.
 
1019
  case $CONFIG_FILES in
 
1020
  *\'*) eval set x "$CONFIG_FILES" ;;
 
1021
  *)   set x $CONFIG_FILES ;;
 
1022
  esac
 
1023
  shift
 
1024
  for mf
 
1025
  do
 
1026
    # Strip MF so we end up with the name of the file.
 
1027
    mf=`echo "$mf" | sed -e 's/:.*$//'`
 
1028
    # Check whether this is an Automake generated Makefile or not.
 
1029
    # We used to match only the files named `Makefile.in', but
 
1030
    # some people rename them; so instead we look at the file content.
 
1031
    # Grep'ing the first line is not enough: some people post-process
 
1032
    # each Makefile.in and add a new line on top of each file to say so.
 
1033
    # Grep'ing the whole file is not good either: AIX grep has a line
 
1034
    # limit of 2048, but all sed's we know have understand at least 4000.
 
1035
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
 
1036
      dirpart=`AS_DIRNAME("$mf")`
 
1037
    else
 
1038
      continue
 
1039
    fi
 
1040
    # Extract the definition of DEPDIR, am__include, and am__quote
 
1041
    # from the Makefile without running `make'.
 
1042
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
1043
    test -z "$DEPDIR" && continue
 
1044
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
1045
    test -z "am__include" && continue
 
1046
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 
1047
    # When using ansi2knr, U may be empty or an underscore; expand it
 
1048
    U=`sed -n 's/^U = //p' < "$mf"`
 
1049
    # Find all dependency output files, they are included files with
 
1050
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
1051
    # simplest approach to changing $(DEPDIR) to its actual value in the
 
1052
    # expansion.
 
1053
    for file in `sed -n "
 
1054
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
1055
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
1056
      # Make sure the directory exists.
 
1057
      test -f "$dirpart/$file" && continue
 
1058
      fdir=`AS_DIRNAME(["$file"])`
 
1059
      AS_MKDIR_P([$dirpart/$fdir])
 
1060
      # echo "creating $dirpart/$file"
 
1061
      echo '# dummy' > "$dirpart/$file"
 
1062
    done
 
1063
  done
 
1064
}
 
1065
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
 
1066
 
 
1067
 
 
1068
# AM_OUTPUT_DEPENDENCY_COMMANDS
 
1069
# -----------------------------
 
1070
# This macro should only be invoked once -- use via AC_REQUIRE.
 
1071
#
 
1072
# This code is only required when automatic dependency tracking
 
1073
# is enabled.  FIXME.  This creates each `.P' file that we will
 
1074
# need in order to bootstrap the dependency handling code.
 
1075
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
 
1076
[AC_CONFIG_COMMANDS([depfiles],
 
1077
     [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
 
1078
     [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
 
1079
])
 
1080
 
 
1081
# Do all the work for Automake.                             -*- Autoconf -*-
 
1082
 
 
1083
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
 
1084
# 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
 
1085
#
 
1086
# This file is free software; the Free Software Foundation
 
1087
# gives unlimited permission to copy and/or distribute it,
 
1088
# with or without modifications, as long as this notice is preserved.
 
1089
 
 
1090
# serial 16
 
1091
 
 
1092
# This macro actually does too much.  Some checks are only needed if
 
1093
# your package does certain things.  But this isn't really a big deal.
 
1094
 
 
1095
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
 
1096
# AM_INIT_AUTOMAKE([OPTIONS])
 
1097
# -----------------------------------------------
 
1098
# The call with PACKAGE and VERSION arguments is the old style
 
1099
# call (pre autoconf-2.50), which is being phased out.  PACKAGE
 
1100
# and VERSION should now be passed to AC_INIT and removed from
 
1101
# the call to AM_INIT_AUTOMAKE.
 
1102
# We support both call styles for the transition.  After
 
1103
# the next Automake release, Autoconf can make the AC_INIT
 
1104
# arguments mandatory, and then we can depend on a new Autoconf
 
1105
# release and drop the old call support.
 
1106
AC_DEFUN([AM_INIT_AUTOMAKE],
 
1107
[AC_PREREQ([2.62])dnl
 
1108
dnl Autoconf wants to disallow AM_ names.  We explicitly allow
 
1109
dnl the ones we care about.
 
1110
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
 
1111
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
 
1112
AC_REQUIRE([AC_PROG_INSTALL])dnl
 
1113
if test "`cd $srcdir && pwd`" != "`pwd`"; then
 
1114
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
 
1115
  # is not polluted with repeated "-I."
 
1116
  AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
 
1117
  # test to see if srcdir already configured
 
1118
  if test -f $srcdir/config.status; then
 
1119
    AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
 
1120
  fi
 
1121
fi
 
1122
 
 
1123
# test whether we have cygpath
 
1124
if test -z "$CYGPATH_W"; then
 
1125
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
1126
    CYGPATH_W='cygpath -w'
 
1127
  else
 
1128
    CYGPATH_W=echo
 
1129
  fi
 
1130
fi
 
1131
AC_SUBST([CYGPATH_W])
 
1132
 
 
1133
# Define the identity of the package.
 
1134
dnl Distinguish between old-style and new-style calls.
 
1135
m4_ifval([$2],
 
1136
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
 
1137
 AC_SUBST([PACKAGE], [$1])dnl
 
1138
 AC_SUBST([VERSION], [$2])],
 
1139
[_AM_SET_OPTIONS([$1])dnl
 
1140
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
 
1141
m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
 
1142
  [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
 
1143
 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
 
1144
 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
 
1145
 
 
1146
_AM_IF_OPTION([no-define],,
 
1147
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
 
1148
 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
 
1149
 
 
1150
# Some tools Automake needs.
 
1151
AC_REQUIRE([AM_SANITY_CHECK])dnl
 
1152
AC_REQUIRE([AC_ARG_PROGRAM])dnl
 
1153
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
 
1154
AM_MISSING_PROG(AUTOCONF, autoconf)
 
1155
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
 
1156
AM_MISSING_PROG(AUTOHEADER, autoheader)
 
1157
AM_MISSING_PROG(MAKEINFO, makeinfo)
 
1158
AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
 
1159
AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
 
1160
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
 
1161
# We need awk for the "check" target.  The system "awk" is bad on
 
1162
# some platforms.
 
1163
AC_REQUIRE([AC_PROG_AWK])dnl
 
1164
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
 
1165
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
 
1166
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
 
1167
              [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
 
1168
                             [_AM_PROG_TAR([v7])])])
 
1169
_AM_IF_OPTION([no-dependencies],,
 
1170
[AC_PROVIDE_IFELSE([AC_PROG_CC],
 
1171
                  [_AM_DEPENDENCIES(CC)],
 
1172
                  [define([AC_PROG_CC],
 
1173
                          defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
 
1174
AC_PROVIDE_IFELSE([AC_PROG_CXX],
 
1175
                  [_AM_DEPENDENCIES(CXX)],
 
1176
                  [define([AC_PROG_CXX],
 
1177
                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
 
1178
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
 
1179
                  [_AM_DEPENDENCIES(OBJC)],
 
1180
                  [define([AC_PROG_OBJC],
 
1181
                          defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
 
1182
])
 
1183
_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
 
1184
dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
 
1185
dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This macro
 
1186
dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
 
1187
AC_CONFIG_COMMANDS_PRE(dnl
 
1188
[m4_provide_if([_AM_COMPILER_EXEEXT],
 
1189
  [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
 
1190
])
 
1191
 
 
1192
dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion.  Do not
 
1193
dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
 
1194
dnl mangled by Autoconf and run in a shell conditional statement.
 
1195
m4_define([_AC_COMPILER_EXEEXT],
 
1196
m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
 
1197
 
 
1198
 
 
1199
# When config.status generates a header, we must update the stamp-h file.
 
1200
# This file resides in the same directory as the config header
 
1201
# that is generated.  The stamp files are numbered to have different names.
 
1202
 
 
1203
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
 
1204
# loop where config.status creates the headers, so we can generate
 
1205
# our stamp files there.
 
1206
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
 
1207
[# Compute $1's index in $config_headers.
 
1208
_am_arg=$1
 
1209
_am_stamp_count=1
 
1210
for _am_header in $config_headers :; do
 
1211
  case $_am_header in
 
1212
    $_am_arg | $_am_arg:* )
 
1213
      break ;;
 
1214
    * )
 
1215
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 
1216
  esac
 
1217
done
 
1218
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
 
1219
 
 
1220
# Copyright (C) 2001, 2003, 2005, 2008, 2011 Free Software Foundation,
 
1221
# Inc.
 
1222
#
 
1223
# This file is free software; the Free Software Foundation
 
1224
# gives unlimited permission to copy and/or distribute it,
 
1225
# with or without modifications, as long as this notice is preserved.
 
1226
 
 
1227
# serial 1
 
1228
 
 
1229
# AM_PROG_INSTALL_SH
 
1230
# ------------------
 
1231
# Define $install_sh.
 
1232
AC_DEFUN([AM_PROG_INSTALL_SH],
 
1233
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
 
1234
if test x"${install_sh}" != xset; then
 
1235
  case $am_aux_dir in
 
1236
  *\ * | *\     *)
 
1237
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
 
1238
  *)
 
1239
    install_sh="\${SHELL} $am_aux_dir/install-sh"
 
1240
  esac
 
1241
fi
 
1242
AC_SUBST(install_sh)])
 
1243
 
 
1244
# Copyright (C) 2003, 2005  Free Software Foundation, Inc.
 
1245
#
 
1246
# This file is free software; the Free Software Foundation
 
1247
# gives unlimited permission to copy and/or distribute it,
 
1248
# with or without modifications, as long as this notice is preserved.
 
1249
 
 
1250
# serial 2
 
1251
 
 
1252
# Check whether the underlying file-system supports filenames
 
1253
# with a leading dot.  For instance MS-DOS doesn't.
 
1254
AC_DEFUN([AM_SET_LEADING_DOT],
 
1255
[rm -rf .tst 2>/dev/null
 
1256
mkdir .tst 2>/dev/null
 
1257
if test -d .tst; then
 
1258
  am__leading_dot=.
 
1259
else
 
1260
  am__leading_dot=_
 
1261
fi
 
1262
rmdir .tst 2>/dev/null
 
1263
AC_SUBST([am__leading_dot])])
 
1264
 
 
1265
# Add --enable-maintainer-mode option to configure.         -*- Autoconf -*-
 
1266
# From Jim Meyering
 
1267
 
 
1268
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008,
 
1269
# 2011 Free Software Foundation, Inc.
 
1270
#
 
1271
# This file is free software; the Free Software Foundation
 
1272
# gives unlimited permission to copy and/or distribute it,
 
1273
# with or without modifications, as long as this notice is preserved.
 
1274
 
 
1275
# serial 5
 
1276
 
 
1277
# AM_MAINTAINER_MODE([DEFAULT-MODE])
 
1278
# ----------------------------------
 
1279
# Control maintainer-specific portions of Makefiles.
 
1280
# Default is to disable them, unless `enable' is passed literally.
 
1281
# For symmetry, `disable' may be passed as well.  Anyway, the user
 
1282
# can override the default with the --enable/--disable switch.
 
1283
AC_DEFUN([AM_MAINTAINER_MODE],
 
1284
[m4_case(m4_default([$1], [disable]),
 
1285
       [enable], [m4_define([am_maintainer_other], [disable])],
 
1286
       [disable], [m4_define([am_maintainer_other], [enable])],
 
1287
       [m4_define([am_maintainer_other], [enable])
 
1288
        m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
 
1289
AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
 
1290
  dnl maintainer-mode's default is 'disable' unless 'enable' is passed
 
1291
  AC_ARG_ENABLE([maintainer-mode],
 
1292
[  --][am_maintainer_other][-maintainer-mode  am_maintainer_other make rules and dependencies not useful
 
1293
                          (and sometimes confusing) to the casual installer],
 
1294
      [USE_MAINTAINER_MODE=$enableval],
 
1295
      [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
 
1296
  AC_MSG_RESULT([$USE_MAINTAINER_MODE])
 
1297
  AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
 
1298
  MAINT=$MAINTAINER_MODE_TRUE
 
1299
  AC_SUBST([MAINT])dnl
 
1300
]
 
1301
)
 
1302
 
 
1303
AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
 
1304
 
 
1305
# Check to see how 'make' treats includes.                  -*- Autoconf -*-
 
1306
 
 
1307
# Copyright (C) 2001, 2002, 2003, 2005, 2009  Free Software Foundation, Inc.
 
1308
#
 
1309
# This file is free software; the Free Software Foundation
 
1310
# gives unlimited permission to copy and/or distribute it,
 
1311
# with or without modifications, as long as this notice is preserved.
 
1312
 
 
1313
# serial 4
 
1314
 
 
1315
# AM_MAKE_INCLUDE()
 
1316
# -----------------
 
1317
# Check to see how make treats includes.
 
1318
AC_DEFUN([AM_MAKE_INCLUDE],
 
1319
[am_make=${MAKE-make}
 
1320
cat > confinc << 'END'
 
1321
am__doit:
 
1322
        @echo this is the am__doit target
 
1323
.PHONY: am__doit
 
1324
END
 
1325
# If we don't find an include directive, just comment out the code.
 
1326
AC_MSG_CHECKING([for style of include used by $am_make])
 
1327
am__include="#"
 
1328
am__quote=
 
1329
_am_result=none
 
1330
# First try GNU make style include.
 
1331
echo "include confinc" > confmf
 
1332
# Ignore all kinds of additional output from `make'.
 
1333
case `$am_make -s -f confmf 2> /dev/null` in #(
 
1334
*the\ am__doit\ target*)
 
1335
  am__include=include
 
1336
  am__quote=
 
1337
  _am_result=GNU
 
1338
  ;;
 
1339
esac
 
1340
# Now try BSD make style include.
 
1341
if test "$am__include" = "#"; then
 
1342
   echo '.include "confinc"' > confmf
 
1343
   case `$am_make -s -f confmf 2> /dev/null` in #(
 
1344
   *the\ am__doit\ target*)
 
1345
     am__include=.include
 
1346
     am__quote="\""
 
1347
     _am_result=BSD
 
1348
     ;;
 
1349
   esac
 
1350
fi
 
1351
AC_SUBST([am__include])
 
1352
AC_SUBST([am__quote])
 
1353
AC_MSG_RESULT([$_am_result])
 
1354
rm -f confinc confmf
 
1355
])
 
1356
 
 
1357
# Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005, 2008
 
1358
# Free Software Foundation, Inc.
 
1359
#
 
1360
# This file is free software; the Free Software Foundation
 
1361
# gives unlimited permission to copy and/or distribute it,
 
1362
# with or without modifications, as long as this notice is preserved.
 
1363
 
 
1364
# serial 6
 
1365
 
 
1366
# AM_PROG_CC_C_O
 
1367
# --------------
 
1368
# Like AC_PROG_CC_C_O, but changed for automake.
 
1369
AC_DEFUN([AM_PROG_CC_C_O],
 
1370
[AC_REQUIRE([AC_PROG_CC_C_O])dnl
 
1371
AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
 
1372
AC_REQUIRE_AUX_FILE([compile])dnl
 
1373
# FIXME: we rely on the cache variable name because
 
1374
# there is no other way.
 
1375
set dummy $CC
 
1376
am_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']`
 
1377
eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
 
1378
if test "$am_t" != yes; then
 
1379
   # Losing compiler, so override with the script.
 
1380
   # FIXME: It is wrong to rewrite CC.
 
1381
   # But if we don't then we get into trouble of one sort or another.
 
1382
   # A longer-term fix would be to have automake use am__CC in this case,
 
1383
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
 
1384
   CC="$am_aux_dir/compile $CC"
 
1385
fi
 
1386
dnl Make sure AC_PROG_CC is never called again, or it will override our
 
1387
dnl setting of CC.
 
1388
m4_define([AC_PROG_CC],
 
1389
          [m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])])
 
1390
])
 
1391
 
 
1392
# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
 
1393
 
 
1394
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
 
1395
# Free Software Foundation, Inc.
 
1396
#
 
1397
# This file is free software; the Free Software Foundation
 
1398
# gives unlimited permission to copy and/or distribute it,
 
1399
# with or without modifications, as long as this notice is preserved.
 
1400
 
 
1401
# serial 6
 
1402
 
 
1403
# AM_MISSING_PROG(NAME, PROGRAM)
 
1404
# ------------------------------
 
1405
AC_DEFUN([AM_MISSING_PROG],
 
1406
[AC_REQUIRE([AM_MISSING_HAS_RUN])
 
1407
$1=${$1-"${am_missing_run}$2"}
 
1408
AC_SUBST($1)])
 
1409
 
 
1410
 
 
1411
# AM_MISSING_HAS_RUN
 
1412
# ------------------
 
1413
# Define MISSING if not defined so far and test if it supports --run.
 
1414
# If it does, set am_missing_run to use it, otherwise, to nothing.
 
1415
AC_DEFUN([AM_MISSING_HAS_RUN],
 
1416
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
 
1417
AC_REQUIRE_AUX_FILE([missing])dnl
 
1418
if test x"${MISSING+set}" != xset; then
 
1419
  case $am_aux_dir in
 
1420
  *\ * | *\     *)
 
1421
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
 
1422
  *)
 
1423
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
 
1424
  esac
 
1425
fi
 
1426
# Use eval to expand $SHELL
 
1427
if eval "$MISSING --run true"; then
 
1428
  am_missing_run="$MISSING --run "
 
1429
else
 
1430
  am_missing_run=
 
1431
  AC_MSG_WARN([`missing' script is too old or missing])
 
1432
fi
 
1433
])
 
1434
 
 
1435
# Copyright (C) 2003, 2004, 2005, 2006, 2011 Free Software Foundation,
 
1436
# Inc.
 
1437
#
 
1438
# This file is free software; the Free Software Foundation
 
1439
# gives unlimited permission to copy and/or distribute it,
 
1440
# with or without modifications, as long as this notice is preserved.
 
1441
 
 
1442
# serial 1
 
1443
 
 
1444
# AM_PROG_MKDIR_P
 
1445
# ---------------
 
1446
# Check for `mkdir -p'.
 
1447
AC_DEFUN([AM_PROG_MKDIR_P],
 
1448
[AC_PREREQ([2.60])dnl
 
1449
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
 
1450
dnl Automake 1.8 to 1.9.6 used to define mkdir_p.  We now use MKDIR_P,
 
1451
dnl while keeping a definition of mkdir_p for backward compatibility.
 
1452
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
 
1453
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
 
1454
dnl Makefile.ins that do not define MKDIR_P, so we do our own
 
1455
dnl adjustment using top_builddir (which is defined more often than
 
1456
dnl MKDIR_P).
 
1457
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
 
1458
case $mkdir_p in
 
1459
  [[\\/$]]* | ?:[[\\/]]*) ;;
 
1460
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
 
1461
esac
 
1462
])
 
1463
 
 
1464
# Helper functions for option handling.                     -*- Autoconf -*-
 
1465
 
 
1466
# Copyright (C) 2001, 2002, 2003, 2005, 2008, 2010 Free Software
 
1467
# Foundation, Inc.
 
1468
#
 
1469
# This file is free software; the Free Software Foundation
 
1470
# gives unlimited permission to copy and/or distribute it,
 
1471
# with or without modifications, as long as this notice is preserved.
 
1472
 
 
1473
# serial 5
 
1474
 
 
1475
# _AM_MANGLE_OPTION(NAME)
 
1476
# -----------------------
 
1477
AC_DEFUN([_AM_MANGLE_OPTION],
 
1478
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
 
1479
 
 
1480
# _AM_SET_OPTION(NAME)
 
1481
# --------------------
 
1482
# Set option NAME.  Presently that only means defining a flag for this option.
 
1483
AC_DEFUN([_AM_SET_OPTION],
 
1484
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
 
1485
 
 
1486
# _AM_SET_OPTIONS(OPTIONS)
 
1487
# ------------------------
 
1488
# OPTIONS is a space-separated list of Automake options.
 
1489
AC_DEFUN([_AM_SET_OPTIONS],
 
1490
[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
 
1491
 
 
1492
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
 
1493
# -------------------------------------------
 
1494
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
 
1495
AC_DEFUN([_AM_IF_OPTION],
 
1496
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
 
1497
 
 
1498
# Check to make sure that the build environment is sane.    -*- Autoconf -*-
 
1499
 
 
1500
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
 
1501
# Free Software Foundation, Inc.
 
1502
#
 
1503
# This file is free software; the Free Software Foundation
 
1504
# gives unlimited permission to copy and/or distribute it,
 
1505
# with or without modifications, as long as this notice is preserved.
 
1506
 
 
1507
# serial 5
 
1508
 
 
1509
# AM_SANITY_CHECK
 
1510
# ---------------
 
1511
AC_DEFUN([AM_SANITY_CHECK],
 
1512
[AC_MSG_CHECKING([whether build environment is sane])
 
1513
# Just in case
 
1514
sleep 1
 
1515
echo timestamp > conftest.file
 
1516
# Reject unsafe characters in $srcdir or the absolute working directory
 
1517
# name.  Accept space and tab only in the latter.
 
1518
am_lf='
 
1519
'
 
1520
case `pwd` in
 
1521
  *[[\\\"\#\$\&\'\`$am_lf]]*)
 
1522
    AC_MSG_ERROR([unsafe absolute working directory name]);;
 
1523
esac
 
1524
case $srcdir in
 
1525
  *[[\\\"\#\$\&\'\`$am_lf\ \    ]]*)
 
1526
    AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
 
1527
esac
 
1528
 
 
1529
# Do `set' in a subshell so we don't clobber the current shell's
 
1530
# arguments.  Must try -L first in case configure is actually a
 
1531
# symlink; some systems play weird games with the mod time of symlinks
 
1532
# (eg FreeBSD returns the mod time of the symlink's containing
 
1533
# directory).
 
1534
if (
 
1535
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
 
1536
   if test "$[*]" = "X"; then
 
1537
      # -L didn't work.
 
1538
      set X `ls -t "$srcdir/configure" conftest.file`
 
1539
   fi
 
1540
   rm -f conftest.file
 
1541
   if test "$[*]" != "X $srcdir/configure conftest.file" \
 
1542
      && test "$[*]" != "X conftest.file $srcdir/configure"; then
 
1543
 
 
1544
      # If neither matched, then we have a broken ls.  This can happen
 
1545
      # if, for instance, CONFIG_SHELL is bash and it inherits a
 
1546
      # broken ls alias from the environment.  This has actually
 
1547
      # happened.  Such a system could not be considered "sane".
 
1548
      AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
 
1549
alias in your environment])
 
1550
   fi
 
1551
 
 
1552
   test "$[2]" = conftest.file
 
1553
   )
 
1554
then
 
1555
   # Ok.
 
1556
   :
 
1557
else
 
1558
   AC_MSG_ERROR([newly created file is older than distributed files!
 
1559
Check your system clock])
 
1560
fi
 
1561
AC_MSG_RESULT(yes)])
 
1562
 
 
1563
# Copyright (C) 2009, 2011  Free Software Foundation, Inc.
 
1564
#
 
1565
# This file is free software; the Free Software Foundation
 
1566
# gives unlimited permission to copy and/or distribute it,
 
1567
# with or without modifications, as long as this notice is preserved.
 
1568
 
 
1569
# serial 2
 
1570
 
 
1571
# AM_SILENT_RULES([DEFAULT])
 
1572
# --------------------------
 
1573
# Enable less verbose build rules; with the default set to DEFAULT
 
1574
# (`yes' being less verbose, `no' or empty being verbose).
 
1575
AC_DEFUN([AM_SILENT_RULES],
 
1576
[AC_ARG_ENABLE([silent-rules],
 
1577
[  --enable-silent-rules          less verbose build output (undo: `make V=1')
 
1578
  --disable-silent-rules         verbose build output (undo: `make V=0')])
 
1579
case $enable_silent_rules in
 
1580
yes) AM_DEFAULT_VERBOSITY=0;;
 
1581
no)  AM_DEFAULT_VERBOSITY=1;;
 
1582
*)   AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
 
1583
esac
 
1584
dnl
 
1585
dnl A few `make' implementations (e.g., NonStop OS and NextStep)
 
1586
dnl do not support nested variable expansions.
 
1587
dnl See automake bug#9928 and bug#10237.
 
1588
am_make=${MAKE-make}
 
1589
AC_CACHE_CHECK([whether $am_make supports nested variables],
 
1590
   [am_cv_make_support_nested_variables],
 
1591
   [if AS_ECHO([['TRUE=$(BAR$(V))
 
1592
BAR0=false
 
1593
BAR1=true
 
1594
V=1
 
1595
am__doit:
 
1596
        @$(TRUE)
 
1597
.PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
 
1598
  am_cv_make_support_nested_variables=yes
 
1599
else
 
1600
  am_cv_make_support_nested_variables=no
 
1601
fi])
 
1602
if test $am_cv_make_support_nested_variables = yes; then
 
1603
  dnl Using `$V' instead of `$(V)' breaks IRIX make.
 
1604
  AM_V='$(V)'
 
1605
  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
 
1606
else
 
1607
  AM_V=$AM_DEFAULT_VERBOSITY
 
1608
  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
 
1609
fi
 
1610
AC_SUBST([AM_V])dnl
 
1611
AM_SUBST_NOTMAKE([AM_V])dnl
 
1612
AC_SUBST([AM_DEFAULT_V])dnl
 
1613
AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
 
1614
AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
 
1615
AM_BACKSLASH='\'
 
1616
AC_SUBST([AM_BACKSLASH])dnl
 
1617
_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
 
1618
])
 
1619
 
 
1620
# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
 
1621
#
 
1622
# This file is free software; the Free Software Foundation
 
1623
# gives unlimited permission to copy and/or distribute it,
 
1624
# with or without modifications, as long as this notice is preserved.
 
1625
 
 
1626
# serial 1
 
1627
 
 
1628
# AM_PROG_INSTALL_STRIP
 
1629
# ---------------------
 
1630
# One issue with vendor `install' (even GNU) is that you can't
 
1631
# specify the program used to strip binaries.  This is especially
 
1632
# annoying in cross-compiling environments, where the build's strip
 
1633
# is unlikely to handle the host's binaries.
 
1634
# Fortunately install-sh will honor a STRIPPROG variable, so we
 
1635
# always use install-sh in `make install-strip', and initialize
 
1636
# STRIPPROG with the value of the STRIP variable (set by the user).
 
1637
AC_DEFUN([AM_PROG_INSTALL_STRIP],
 
1638
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
 
1639
# Installed binaries are usually stripped using `strip' when the user
 
1640
# run `make install-strip'.  However `strip' might not be the right
 
1641
# tool to use in cross-compilation environments, therefore Automake
 
1642
# will honor the `STRIP' environment variable to overrule this program.
 
1643
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
 
1644
if test "$cross_compiling" != no; then
 
1645
  AC_CHECK_TOOL([STRIP], [strip], :)
 
1646
fi
 
1647
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
 
1648
AC_SUBST([INSTALL_STRIP_PROGRAM])])
 
1649
 
 
1650
# Copyright (C) 2006, 2008, 2010 Free Software Foundation, Inc.
 
1651
#
 
1652
# This file is free software; the Free Software Foundation
 
1653
# gives unlimited permission to copy and/or distribute it,
 
1654
# with or without modifications, as long as this notice is preserved.
 
1655
 
 
1656
# serial 3
 
1657
 
 
1658
# _AM_SUBST_NOTMAKE(VARIABLE)
 
1659
# ---------------------------
 
1660
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
 
1661
# This macro is traced by Automake.
 
1662
AC_DEFUN([_AM_SUBST_NOTMAKE])
 
1663
 
 
1664
# AM_SUBST_NOTMAKE(VARIABLE)
 
1665
# --------------------------
 
1666
# Public sister of _AM_SUBST_NOTMAKE.
 
1667
AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
 
1668
 
 
1669
# Check how to create a tarball.                            -*- Autoconf -*-
 
1670
 
 
1671
# Copyright (C) 2004, 2005, 2012 Free Software Foundation, Inc.
 
1672
#
 
1673
# This file is free software; the Free Software Foundation
 
1674
# gives unlimited permission to copy and/or distribute it,
 
1675
# with or without modifications, as long as this notice is preserved.
 
1676
 
 
1677
# serial 2
 
1678
 
 
1679
# _AM_PROG_TAR(FORMAT)
 
1680
# --------------------
 
1681
# Check how to create a tarball in format FORMAT.
 
1682
# FORMAT should be one of `v7', `ustar', or `pax'.
 
1683
#
 
1684
# Substitute a variable $(am__tar) that is a command
 
1685
# writing to stdout a FORMAT-tarball containing the directory
 
1686
# $tardir.
 
1687
#     tardir=directory && $(am__tar) > result.tar
 
1688
#
 
1689
# Substitute a variable $(am__untar) that extract such
 
1690
# a tarball read from stdin.
 
1691
#     $(am__untar) < result.tar
 
1692
AC_DEFUN([_AM_PROG_TAR],
 
1693
[# Always define AMTAR for backward compatibility.  Yes, it's still used
 
1694
# in the wild :-(  We should find a proper way to deprecate it ...
 
1695
AC_SUBST([AMTAR], ['$${TAR-tar}'])
 
1696
m4_if([$1], [v7],
 
1697
     [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
 
1698
     [m4_case([$1], [ustar],, [pax],,
 
1699
              [m4_fatal([Unknown tar format])])
 
1700
AC_MSG_CHECKING([how to create a $1 tar archive])
 
1701
# Loop over all known methods to create a tar archive until one works.
 
1702
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
 
1703
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
 
1704
# Do not fold the above two line into one, because Tru64 sh and
 
1705
# Solaris sh will not grok spaces in the rhs of `-'.
 
1706
for _am_tool in $_am_tools
 
1707
do
 
1708
  case $_am_tool in
 
1709
  gnutar)
 
1710
    for _am_tar in tar gnutar gtar;
 
1711
    do
 
1712
      AM_RUN_LOG([$_am_tar --version]) && break
 
1713
    done
 
1714
    am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
 
1715
    am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
 
1716
    am__untar="$_am_tar -xf -"
 
1717
    ;;
 
1718
  plaintar)
 
1719
    # Must skip GNU tar: if it does not support --format= it doesn't create
 
1720
    # ustar tarball either.
 
1721
    (tar --version) >/dev/null 2>&1 && continue
 
1722
    am__tar='tar chf - "$$tardir"'
 
1723
    am__tar_='tar chf - "$tardir"'
 
1724
    am__untar='tar xf -'
 
1725
    ;;
 
1726
  pax)
 
1727
    am__tar='pax -L -x $1 -w "$$tardir"'
 
1728
    am__tar_='pax -L -x $1 -w "$tardir"'
 
1729
    am__untar='pax -r'
 
1730
    ;;
 
1731
  cpio)
 
1732
    am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
 
1733
    am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
 
1734
    am__untar='cpio -i -H $1 -d'
 
1735
    ;;
 
1736
  none)
 
1737
    am__tar=false
 
1738
    am__tar_=false
 
1739
    am__untar=false
 
1740
    ;;
 
1741
  esac
 
1742
 
 
1743
  # If the value was cached, stop now.  We just wanted to have am__tar
 
1744
  # and am__untar set.
 
1745
  test -n "${am_cv_prog_tar_$1}" && break
 
1746
 
 
1747
  # tar/untar a dummy directory, and stop if the command works
 
1748
  rm -rf conftest.dir
 
1749
  mkdir conftest.dir
 
1750
  echo GrepMe > conftest.dir/file
 
1751
  AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
 
1752
  rm -rf conftest.dir
 
1753
  if test -s conftest.tar; then
 
1754
    AM_RUN_LOG([$am__untar <conftest.tar])
 
1755
    grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
 
1756
  fi
 
1757
done
 
1758
rm -rf conftest.dir
 
1759
 
 
1760
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
 
1761
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
 
1762
AC_SUBST([am__tar])
 
1763
AC_SUBST([am__untar])
 
1764
]) # _AM_PROG_TAR
 
1765
 
 
1766
m4_include([m4/libtool.m4])
 
1767
m4_include([m4/ltoptions.m4])
 
1768
m4_include([m4/ltsugar.m4])
 
1769
m4_include([m4/ltversion.m4])
 
1770
m4_include([m4/lt~obsolete.m4])