diff options
author | Lev Walkin <vlm@lionet.info> | 2014-09-11 01:28:57 -0700 |
---|---|---|
committer | Lev Walkin <vlm@lionet.info> | 2014-09-11 01:28:57 -0700 |
commit | e0d321a6502c3a3f567f16430bfa94cdefc63a53 (patch) | |
tree | 3e34ef803f182f5a1a3b8ca0469e4bce4e7a7552 /libasn1fix | |
parent | 5809ec65dd1b76b4f7bbd1c08ba93665a7a3b847 (diff) |
version 0.9.26
Diffstat (limited to 'libasn1fix')
-rw-r--r-- | libasn1fix/Makefile.am | 1 | ||||
-rw-r--r-- | libasn1fix/Makefile.in | 26 | ||||
-rw-r--r-- | libasn1fix/check_fixer.c | 10 |
3 files changed, 31 insertions, 6 deletions
diff --git a/libasn1fix/Makefile.am b/libasn1fix/Makefile.am index 65316be6..011eb763 100644 --- a/libasn1fix/Makefile.am +++ b/libasn1fix/Makefile.am @@ -33,6 +33,7 @@ check_PROGRAMS = check_fixer check_fixer_LDADD = $(noinst_LTLIBRARIES) \ $(top_builddir)/libasn1parser/libasn1parser.la +check_fixer_CPPFLAGS = -DTOP_SRCDIR=${top_srcdir} $(AM_CPPFLAGS) check_fixer_DEPENDENCIES = $(check_fixer_LDADD) TESTS_ENVIRONMENT= ./check_fixer diff --git a/libasn1fix/Makefile.in b/libasn1fix/Makefile.in index 5acf67b6..be9ef6ee 100644 --- a/libasn1fix/Makefile.in +++ b/libasn1fix/Makefile.in @@ -62,7 +62,7 @@ libasn1fix_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(libasn1fix_la_LDFLAGS) $(LDFLAGS) -o $@ check_fixer_SOURCES = check_fixer.c -check_fixer_OBJECTS = check_fixer.$(OBJEXT) +check_fixer_OBJECTS = check_fixer-check_fixer.$(OBJEXT) DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles @@ -125,6 +125,7 @@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ +MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ @@ -235,6 +236,7 @@ libasn1fix_la_SOURCES = \ check_fixer_LDADD = $(noinst_LTLIBRARIES) \ $(top_builddir)/libasn1parser/libasn1parser.la +check_fixer_CPPFLAGS = -DTOP_SRCDIR=${top_srcdir} $(AM_CPPFLAGS) check_fixer_DEPENDENCIES = $(check_fixer_LDADD) TESTS_ENVIRONMENT = ./check_fixer TESTS = ${top_srcdir}/tests/*.asn1 @@ -242,7 +244,7 @@ all: all-am .SUFFIXES: .SUFFIXES: .c .lo .o .obj -$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) +$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ @@ -267,9 +269,9 @@ Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(top_srcdir)/configure: $(am__configure_deps) +$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(ACLOCAL_M4): $(am__aclocal_m4_deps) +$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): @@ -322,7 +324,7 @@ distclean-compile: @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/asn1fix_retrieve.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/asn1fix_tags.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/asn1fix_value.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/check_fixer.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/check_fixer-check_fixer.Po@am__quote@ .c.o: @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @@ -345,6 +347,20 @@ distclean-compile: @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< +check_fixer-check_fixer.o: check_fixer.c +@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(check_fixer_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT check_fixer-check_fixer.o -MD -MP -MF $(DEPDIR)/check_fixer-check_fixer.Tpo -c -o check_fixer-check_fixer.o `test -f 'check_fixer.c' || echo '$(srcdir)/'`check_fixer.c +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/check_fixer-check_fixer.Tpo $(DEPDIR)/check_fixer-check_fixer.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='check_fixer.c' object='check_fixer-check_fixer.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(check_fixer_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o check_fixer-check_fixer.o `test -f 'check_fixer.c' || echo '$(srcdir)/'`check_fixer.c + +check_fixer-check_fixer.obj: check_fixer.c +@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(check_fixer_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT check_fixer-check_fixer.obj -MD -MP -MF $(DEPDIR)/check_fixer-check_fixer.Tpo -c -o check_fixer-check_fixer.obj `if test -f 'check_fixer.c'; then $(CYGPATH_W) 'check_fixer.c'; else $(CYGPATH_W) '$(srcdir)/check_fixer.c'; fi` +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/check_fixer-check_fixer.Tpo $(DEPDIR)/check_fixer-check_fixer.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='check_fixer.c' object='check_fixer-check_fixer.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(check_fixer_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o check_fixer-check_fixer.obj `if test -f 'check_fixer.c'; then $(CYGPATH_W) 'check_fixer.c'; else $(CYGPATH_W) '$(srcdir)/check_fixer.c'; fi` + mostlyclean-libtool: -rm -f *.lo diff --git a/libasn1fix/check_fixer.c b/libasn1fix/check_fixer.c index 3d5793e3..86caa6ca 100644 --- a/libasn1fix/check_fixer.c +++ b/libasn1fix/check_fixer.c @@ -13,6 +13,14 @@ #include "asn1fix.h" +#ifndef TOP_SRCDIR +#define TOP_SRCDIR_S ".." +#else +#define STRINGIFY_MACRO2(x) #x +#define STRINGIFY_MACRO(x) STRINGIFY_MACRO2(x) +#define TOP_SRCDIR_S STRINGIFY_MACRO(TOP_SRCDIR) +#endif + static int check(const char *fname, enum asn1p_flags parser_flags, enum asn1f_flags fixer_flags); @@ -182,7 +190,7 @@ check(const char *fname, if(r_value == 0) { asn1p_t *std_asn; - std_asn = asn1p_parse_file("../skeletons/standard-modules/ASN1C-UsefulInformationObjectClasses.asn1", A1P_NOFLAGS); + std_asn = asn1p_parse_file(TOP_SRCDIR_S "/skeletons/standard-modules/ASN1C-UsefulInformationObjectClasses.asn1", A1P_NOFLAGS); if(std_asn) { asn1p_module_t *mod; while((mod = TQ_REMOVE(&(std_asn->modules), mod_next))) { |