/[pcre]/code/tags/pcre-8.38/Makefile.am
ViewVC logotype

Diff of /code/tags/pcre-8.38/Makefile.am

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1196 by ph10, Thu Nov 1 17:41:36 2012 UTC revision 1225 by ph10, Sat Nov 24 11:29:45 2012 UTC
# Line 141  pcre.h.generic: pcre.h.in configure.ac Line 141  pcre.h.generic: pcre.h.in configure.ac
141    
142  # It is more complicated for config.h.generic. We need the version that results  # It is more complicated for config.h.generic. We need the version that results
143  # from a default configuration. We can get this by doing a configure in a  # from a default configuration. We can get this by doing a configure in a
144  # temporary directory. It has to be entirely done using files in that  # temporary directory. However, some trickery is needed,
145  # directory, because the source directory may already be configured. If you  # because the source directory may already be configured. If you
146  # just try running configure in a new directory, it complains that the source  # just try running configure in a new directory, it complains. For this reason,
147  # directory is already configured.  # we move config.status out of the way while doing the default configuration.
148    # The resulting config.h is munged by perl to put #ifdefs round any #defines
149    # and to get rid of any gcc-specific visibility settings. Make sure that
150    # PCRE_EXP_DEFN is unset (in case it has visibility settings).
151  config.h.generic: configure.ac  config.h.generic: configure.ac
152          rm -rf $@ _generic          rm -rf $@ _generic
153          mkdir _generic          mkdir _generic
# Line 152  config.h.generic: configure.ac Line 155  config.h.generic: configure.ac
155          cd _generic && $(abs_top_srcdir)/configure || :          cd _generic && $(abs_top_srcdir)/configure || :
156          cs=$(srcdir)/config.status; test ! -f $$cs.aside || mv -f $$cs.aside $$cs          cs=$(srcdir)/config.status; test ! -f $$cs.aside || mv -f $$cs.aside $$cs
157          test -f _generic/config.h          test -f _generic/config.h
158          perl -pe 'if(/^#define\s(?!PACKAGE)(\w+)/){print"#ifndef $$1\n$$_#endif\n";$$_="";}' _generic/config.h >$@          perl -n \
159              -e 'BEGIN{$$blank=0;}' \
160              -e 'if(/PCRE_EXP_DEFN/){print"/* #undef PCRE_EXP_DEFN */\n";$$blank=0;next;}' \
161              -e 'if(/to make a symbol visible/){next;}' \
162              -e 'if(/__attribute__ \(\(visibility/){next;}' \
163              -e 'if(/^#define\s(?!PACKAGE)(\w+)/){print"#ifndef $$1\n$$_#endif\n";$$blank=0;}' \
164              -e 'else {if(/^\s*$$/){print unless $$blank; $$blank=1;} else{print;$$blank=0;}}' \
165              _generic/config.h >$@
166          rm -rf _generic          rm -rf _generic
167    
168  MAINTAINERCLEANFILES += pcre.h.generic config.h.generic  MAINTAINERCLEANFILES += pcre.h.generic config.h.generic

Legend:
Removed from v.1196  
changed lines
  Added in v.1225

  ViewVC Help
Powered by ViewVC 1.1.5