Description: Extract header infile oddly embedded in autogen script. Author: Jonas Smedegaard Forwarded: no Last-Update: 2012-02-10 --- This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ --- a/autogen.sh +++ b/autogen.sh @@ -139,31 +139,6 @@ echo " autoheader" autoheader -echo " creating config_types.h.in" -cat >config_types.h.in < -#else -# ifdef JBIG2_REPLACE_STDINT_H -# include <@JBIG2_STDINT_H@> -# else - typedef unsigned @JBIG2_INT32_T@ uint32_t; - typedef unsigned @JBIG2_INT16_T@ uint16_t; - typedef unsigned @JBIG2_INT8_T@ uint8_t; - typedef signed @JBIG2_INT32_T@ int32_t; - typedef signed @JBIG2_INT16_T@ int16_t; - typedef signed @JBIG2_INT8_T@ int8_t; -# endif /* JBIG2_REPLACE_STDINT */ -#endif /* HAVE_STDINT_H */ -EOF - echo " $AUTOMAKE --add-missing $AUTOMAKE_FLAGS" $AUTOMAKE --add-missing --copy $AUTOMAKE_FLAGS --- /dev/null +++ b/config_types.h.in @@ -0,0 +1,21 @@ +/* + generated header with missing types for the + jbig2dec program and library. include this + after config.h, within the HAVE_CONFIG_H + ifdef +*/ + +#ifdef HAVE_STDINT_H +# include +#else +# ifdef JBIG2_REPLACE_STDINT_H +# include <@JBIG2_STDINT_H@> +# else + typedef unsigned @JBIG2_INT32_T@ uint32_t; + typedef unsigned @JBIG2_INT16_T@ uint16_t; + typedef unsigned @JBIG2_INT8_T@ uint8_t; + typedef signed @JBIG2_INT32_T@ int32_t; + typedef signed @JBIG2_INT16_T@ int16_t; + typedef signed @JBIG2_INT8_T@ int8_t; +# endif /* JBIG2_REPLACE_STDINT */ +#endif /* HAVE_STDINT_H */