~ubuntu-branches/ubuntu/oneiric/yelp/oneiric

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Jeremy Bicha
  • Date: 2011-08-16 09:49:09 UTC
  • mto: This revision was merged to the branch mainline in revision 111.
  • Revision ID: james.westby@ubuntu.com-20110816094909-qaoq9dzljh3g6idq
Tags: upstream-3.1.2
ImportĀ upstreamĀ versionĀ 3.1.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
 
14
14
m4_ifndef([AC_AUTOCONF_VERSION],
15
15
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
16
 
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.66],,
17
 
[m4_warning([this file was generated for autoconf 2.66.
 
16
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.68],,
 
17
[m4_warning([this file was generated for autoconf 2.68.
18
18
You have another version of autoconf.  It may work, but is not guaranteed to.
19
19
If you have problems, you may need to regenerate the build system entirely.
20
20
To do so, use the procedure documented by the package, typically `autoreconf'.])])
112
112
int 
113
113
main ()
114
114
{
115
 
  int major, minor, micro;
 
115
  unsigned int major, minor, micro;
116
116
  char *tmp_version;
117
117
 
118
118
  fclose (fopen ("conf.glibtest", "w"));
119
119
 
120
120
  /* HP/UX 9 (%@#!) writes to sscanf strings */
121
121
  tmp_version = g_strdup("$min_glib_version");
122
 
  if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
 
122
  if (sscanf(tmp_version, "%u.%u.%u", &major, &minor, &micro) != 3) {
123
123
     printf("%s, bad version string\n", "$min_glib_version");
124
124
     exit(1);
125
125
   }
158
158
       }
159
159
     else
160
160
      {
161
 
        printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n",
 
161
        printf("\n*** An old version of GLIB (%u.%u.%u) was found.\n",
162
162
               glib_major_version, glib_minor_version, glib_micro_version);
163
 
        printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n",
 
163
        printf("*** You need a version of GLIB newer than %u.%u.%u. The latest version of\n",
164
164
               major, minor, micro);
165
165
        printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
166
166
        printf("***\n");
232
232
])
233
233
 
234
234
# gnome-common.m4
 
235
#
 
236
# serial 3
235
237
236
238
 
237
239
dnl GNOME_COMMON_INIT
238
240
 
239
 
AC_DEFUN([GNOME_COMMON_INIT],
 
241
AU_DEFUN([GNOME_COMMON_INIT],
240
242
[
241
243
  dnl this macro should come after AC_CONFIG_MACRO_DIR
242
244
  AC_BEFORE([AC_CONFIG_MACRO_DIR], [$0])
249
251
  fi
250
252
 
251
253
  AC_SUBST([ACLOCAL_AMFLAGS])
252
 
])
 
254
],
 
255
[[$0: This macro is deprecated. You should set put "ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}"
 
256
in your top-level Makefile.am, instead, where "m4" is the macro directory set
 
257
with AC_CONFIG_MACRO_DIR() in your configure.ac]])
253
258
 
254
259
AC_DEFUN([GNOME_DEBUG_CHECK],
255
260
[
463
468
gsettings__enum_file = $(addsuffix .enums.xml,$(gsettings_ENUM_NAMESPACE))
464
469
 
465
470
%.gschema.valid: %.gschema.xml $(gsettings__enum_file)
466
 
        $(AM_V_GEN) if test -f "$<"; then d=; else d="$(srcdir)/"; fi; $(GLIB_COMPILE_SCHEMAS) --dry-run $(addprefix --schema-file=,$(gsettings__enum_file)) --schema-file=$${d}$< && touch [$]@
 
471
        $(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 [$]@
467
472
 
468
473
all-am: $(gsettings_SCHEMAS:.xml=.valid)
469
474
uninstall-am: uninstall-gsettings-schemas
471
476
 
472
477
.SECONDARY: $(gsettings_SCHEMAS)
473
478
 
474
 
gsettings__base_list = \
475
 
  sed "$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g" | \
476
 
  sed "$$!N;$$!N;$$!N;$$!N;s/\n/ /g"
477
 
 
478
 
install-gsettings-schemas: $(gsettings_SCHEMAS:.xml=.valid) $(gsettings__enum_file)
 
479
install-gsettings-schemas: $(gsettings_SCHEMAS) $(gsettings__enum_file)
479
480
        @$(NORMAL_INSTALL)
480
 
        test -z "$(gsettingsschemadir)" || $(MKDIR_P) "$(DESTDIR)$(gsettingsschemadir)"
481
 
        @list='\''$(gsettings__enum_file) $(gsettings_SCHEMAS)'\''; test -n "$(gsettingsschemadir)" || list=; \
482
 
        for p in $$list; do \
483
 
          if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
484
 
          echo "$$d$$p"; \
485
 
        done | $(gsettings__base_list) | \
486
 
        while read files; do \
487
 
          echo " $(INSTALL_DATA) $$files '\''$(DESTDIR)$(gsettingsschemadir)'\''"; \
488
 
          $(INSTALL_DATA) $$files "$(DESTDIR)$(gsettingsschemadir)" || exit $$?; \
489
 
        done
490
 
        test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir)
 
481
        if test -n "$^"; then \
 
482
                test -z "$(gsettingsschemadir)" || $(MKDIR_P) "$(DESTDIR)$(gsettingsschemadir)"; \
 
483
                $(INSTALL_DATA) $^ "$(DESTDIR)$(gsettingsschemadir)"; \
 
484
                test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir); \
 
485
        fi
491
486
 
492
487
uninstall-gsettings-schemas:
493
488
        @$(NORMAL_UNINSTALL)
503
498
 
504
499
ifdef gsettings_ENUM_NAMESPACE
505
500
$(gsettings__enum_file): $(gsettings_ENUM_FILES)
506
 
        $(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>" $(gsettings_ENUM_FILES) > [$]@.tmp && mv [$]@.tmp [$]@
 
501
        $(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 [$]@
507
502
endif
508
503
'
509
504
  _GSETTINGS_SUBST(GSETTINGS_RULES)