GTK+ (from CVS) configure & make failure



Hello.

I am attempting to build GTK+ from the current CVS source -- obviously
without success so I'm writing this plea for help.

I am using RedHat Linux 7.2 on a Dell PC. I am using gcc v2.96 (or would be
if my GTK+ build would ever get that far).

I am using the following versions of tools (all built from recent CVS or
their latest distribution if they aren't available via CVS, "recent" meaning
this week):
  autoconf (GNU Autoconf) 2.52c
  automake (GNU automake) 1.5
  ltmain.sh (GNU libtool) 1.4c (1.1026 2001/08/19 20:20:25)
  autoheader (GNU Autoconf) 2.52c

I have successfully (though not painlessly) built and installed Glib, Pango,
and Atk (all obtained via CVS this week).

I have modified configure.in to workaround an autoconf bug (it can't handle
an AC_CHECK_HEADER nested within an AC_CHECK_LIB)... the changes made are
attached in case you really need to see them; but otherwise I have left it
alone.

I ran autogen.sh with various options and variable definitions (shown
later), and it created and successfully ran configure.

I then attempted to make GTK+ and it consistently fails here (which is very
early in the make process):

  make[4]: Entering directory `/users/awcolley/oscvs/gtk+/gdk-pixbuf/pixops'
  /bin/sh ../../libtool --mode=compile @AS@  @ASFLAGS@ -c -o have_mmx.lo
`test -f have_mmx.S || echo './'`have_mmx.S
  libtool: compile: unable to infer tagged configuration
  libtool: compile: specify a tag with `--tag'

The obvious problem is that configure does NOT replace the @AS@ and
@ASFLAGS@ tags in the Makefile; the obvious question is WHY? and the most
important question is HOW TO I MAKE IT DO THAT?

Or, at least, what should I hand-code into the Makefile(s) for @AS@ and
@ASFLAGS@ as a workaround?

By the way, there are several @ tags in Makefiles that are not handled by
configure, here is a list compiled from all the Makefiles within GTK+:

AS = @AS@
ASFLAGS = @ASFLAGS@
DLLTOOL = @DLLTOOL@
GCJ = @GCJ@
GCJFLAGS = @GCJFLAGS@
GENCAT = @GENCAT@
GT_NO = @GT_NO@
GT_YES = @GT_YES@
INCLUDE_LOCALE_H = @INCLUDE_LOCALE_H@
l = @l@     <== those are lower case Ls
OBJDUMP = @OBJDUMP@

Is there some flag for configure that I didn't notice that will cause these
things to be handled properly? Otherwise, what should I set these to?

Anyway, here is how I ran autogen.sh:

[] autogen.sh --prefix=$HOME/latest CC=rgcc CXX=rg++ CPP=rcpp \
LDFLAGS=-L/usr/X11R6/lib CPPFLAGS=-I/usr/X11R6/include \
INSTALL=$HOME/latest/bin/install PKG_CONFIG=$HOME/latest/bin/pkg-config

I have attached a log of what happened in response.

What information did I forget to provide that will help you understand the
problem?

Thanks,
Tony Colley

=== LOG of output from autogen.sh ===
configure.in:97: warning: AC_CANONICAL_HOST invoked multiple times
autoheader: config.h.in is unchanged
demos/gtk-demo/Makefile.am:59: gtk_demo_SOURCES includes configure
substitution ` STRIP_BEGIN@'
demos/gtk-demo/Makefile.am:59: gtk_demo_SOURCES includes configure
substitution ` STRIP_END@'
docs/Makefile.am: EXTRA_DIST must be set with `=' before using `+='
docs/faq/Makefile.am: EXTRA_DIST must be set with `=' before using `+='
docs/tutorial/Makefile.am: EXTRA_DIST must be set with `=' before using `+='
gdk-pixbuf/Makefile.am:94: libpixbufloader_xbm_la_LDFLAGS multiply defined
in condition TRUE
  libpixbufloader_xbm_la_LDFLAGS (User, where = 94) =
  {
    TRUE => -version-info 1:0:0 -module
  }
gdk-pixbuf/Makefile.am:102: libpixbufloader_tga_la_LDFLAGS multiply defined
in condition TRUE
  libpixbufloader_tga_la_LDFLAGS (User, where = 102) =
  {
    TRUE => -version-info 1:0:0 -module
  }
gdk-pixbuf/Makefile.am:234: libgdk_pixbuf_1_3_la_DEPENDENCIES was already
defined in condition TRUE, which implies condition
BUILD_DYNAMIC_MODULES_TRUE
  libgdk_pixbuf_1_3_la_DEPENDENCIES (User, where = 234) =
  {
    TRUE => $(builtin_objs)
  }
gdk-pixbuf/Makefile.am:234: libgdk_pixbuf_1_3_la_DEPENDENCIES was already
defined in condition TRUE, which implies condition
BUILD_DYNAMIC_MODULES_FALSE
  libgdk_pixbuf_1_3_la_DEPENDENCIES (User, where = 234) =
  {
    TRUE => $(builtin_objs)
    BUILD_DYNAMIC_MODULES_TRUE => pixops/libpixops.la
  }
gdk-pixbuf/Makefile.am:223: libgdk_pixbuf_1_3_la_SOURCES includes configure
substitution ` STRIP_BEGIN@'
gdk-pixbuf/Makefile.am:223: libgdk_pixbuf_1_3_la_SOURCES includes configure
substitution ` STRIP_END@'
automake: gdk-pixbuf/pixops/Makefile.am: Assembler source seen but `ASFLAGS'
not defined in `configure.in'
gdk/Makefile.am: MAINTAINERCLEANFILES must be set with `=' before using `+='
gdk/Makefile.am: EXTRA_HEADERS must be set with `=' before using `+='
gdk/Makefile.am:137: libgdk_linux_fb_1_3_la_SOURCES includes configure
substitution ` STRIP_BEGIN@'
gdk/Makefile.am:137: libgdk_linux_fb_1_3_la_SOURCES includes configure
substitution ` STRIP_END@'
gdk/Makefile.am:127: libgdk_nanox_1_3_la_SOURCES includes configure
substitution ` STRIP_BEGIN@'
gdk/Makefile.am:127: libgdk_nanox_1_3_la_SOURCES includes configure
substitution ` STRIP_END@'
gdk/Makefile.am:117: libgdk_x11_1_3_la_SOURCES includes configure
substitution ` STRIP_BEGIN@'
gdk/Makefile.am:117: libgdk_x11_1_3_la_SOURCES includes configure
substitution ` STRIP_END@'
gtk/Makefile.am: MAINTAINERCLEANFILES must be set with `=' before using `+='
gtk/Makefile.am: EXTRA_HEADERS must be set with `=' before using `+='
gtk/Makefile.am: EXTRA_DIST must be set with `=' before using `+='
gtk/Makefile.am: CLEANFILES must be set with `=' before using `+='
gtk/Makefile.am:510: libgtk_linux_fb_1_3_la_SOURCES includes configure
substitution ` STRIP_BEGIN@'
gtk/Makefile.am:510: libgtk_linux_fb_1_3_la_SOURCES includes configure
substitution ` STRIP_END@'
gtk/Makefile.am:510: libgtk_linux_fb_1_3_la_SOURCES includes configure
substitution ` STRIP_BEGIN@'
gtk/Makefile.am:510: libgtk_linux_fb_1_3_la_SOURCES includes configure
substitution ` STRIP_END@'
gtk/Makefile.am:510: libgtk_linux_fb_1_3_la_SOURCES includes configure
substitution ` STRIP_BEGIN@'
gtk/Makefile.am:510: libgtk_linux_fb_1_3_la_SOURCES includes configure
substitution ` STRIP_END@'
gtk/Makefile.am:505: libgtk_nanox_1_3_la_SOURCES includes configure
substitution ` STRIP_BEGIN@'
gtk/Makefile.am:505: libgtk_nanox_1_3_la_SOURCES includes configure
substitution ` STRIP_END@'
gtk/Makefile.am:505: libgtk_nanox_1_3_la_SOURCES includes configure
substitution ` STRIP_BEGIN@'
gtk/Makefile.am:505: libgtk_nanox_1_3_la_SOURCES includes configure
substitution ` STRIP_END@'
gtk/Makefile.am:505: libgtk_nanox_1_3_la_SOURCES includes configure
substitution ` STRIP_BEGIN@'
gtk/Makefile.am:505: libgtk_nanox_1_3_la_SOURCES includes configure
substitution ` STRIP_END@'
gtk/Makefile.am:500: libgtk_x11_1_3_la_SOURCES includes configure
substitution ` STRIP_BEGIN@'
gtk/Makefile.am:500: libgtk_x11_1_3_la_SOURCES includes configure
substitution ` STRIP_END@'
gtk/Makefile.am:500: libgtk_x11_1_3_la_SOURCES includes configure
substitution ` STRIP_BEGIN@'
gtk/Makefile.am:500: libgtk_x11_1_3_la_SOURCES includes configure
substitution ` STRIP_END@'
gtk/stock-icons/Makefile.am: CLEANFILES must be set with `=' before using
`+='
tests/Makefile.am: EXTRA_DIST must be set with `=' before using `+='
checking for a BSD compatible install... /users/awcolley/latest/bin/install
checking whether build environment is sane... yes
checking for mawk... no
checking for gawk... gawk
checking whether make sets ${MAKE}... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for style of include used by make... GNU
checking for gcc... rgcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for executable suffix... 
checking for object suffix... o
checking whether we are using the GNU C compiler... yes
checking whether rgcc accepts -g... yes
checking dependency style of rgcc... gcc3
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependant libraries... pass_all
checking how to run the C preprocessor... rcpp
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking whether we are using the GNU C++ compiler... yes
checking whether rg++ accepts -g... yes
checking dependency style of rg++... gcc3
checking how to run the C++ preprocessor... rg++ -E
checking the maximum length of command line arguments... 49153
checking command to parse /usr/bin/nm -B output from rgcc object... ok
checking for objdir... .libs
checking for ranlib... ranlib
checking for strip... strip
checking if rgcc static flag  works... yes
checking if rgcc supports -fno-rtti -fno-exceptions... yes
checking for rgcc option to produce PIC... -fPIC
checking if rgcc PIC flag -fPIC works... yes
checking if rgcc supports -c -o file.o... yes
checking whether the rgcc linker (/usr/bin/ld) supports shared libraries...
yes
checking whether -lc should be explicitly linked in... no
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking whether the rg++ linker (/usr/bin/ld) supports shared libraries...
yes
-fPIC
checking if rg++ PIC flag -fPIC works... yes
checking if rg++ supports -c -o file.o... yes
checking whether the rg++ linker (/usr/bin/ld) supports shared libraries...
yes
checking whether -lc should be explicitly linked in... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... GNU/Linux ld.so
appending configuration tag "GCJ" to libtool
checking if gcj supports -fno-rtti -fno-exceptions... (cached) yes
checking for gcj option to produce PIC... -fPIC
checking if gcj PIC flag -fPIC works... no
checking if gcj supports -c -o file.o... no
checking whether the gcj linker (/usr/bin/ld) supports shared libraries...
yes
checking whether -lc should be explicitly linked in... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking whether to enable maintainer-specific portions of Makefiles... yes
checking whether build environment is sane... yes
checking for gcc... (cached) rgcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether rgcc accepts -g... (cached) yes
checking dependency style of rgcc... (cached) gcc3
checking for strerror in -lcposix... no
checking for rgcc option to accept ANSI C... none needed
checking for a BSD compatible install... /users/awcolley/latest/bin/install
checking whether make sets ${MAKE}... (cached) yes
checking for mawk... (cached) gawk
checking for perl5... no
checking for perl... perl
checking for indent... indent
checking for lstat... yes
checking for mkstemp... yes
checking for sigsetjmp... no
checking for bind_textdomain_codeset... yes
checking whether make is GNU Make... yes
checking for ranlib... (cached) ranlib
checking for rgcc option to accept ANSI C... none needed
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for off_t... yes
checking for size_t... yes
checking for working alloca.h... yes
checking for alloca... yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for getpagesize... yes
checking for working mmap... yes
checking argz.h usability... yes
checking argz.h presence... yes
checking for argz.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking nl_types.h usability... yes
checking nl_types.h presence... yes
checking for nl_types.h... yes
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking for string.h... (cached) yes
checking for unistd.h... (cached) yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking for getcwd... yes
checking for munmap... yes
checking for putenv... yes
checking for setenv... yes
checking for setlocale... yes
checking for strchr... yes
checking for strcasecmp... yes
checking for strdup... yes
checking for __argz_count... yes
checking for __argz_stringify... yes
checking for __argz_next... yes
checking for LC_MESSAGES... yes
checking whether NLS is requested... yes
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking for dgettext in libc... yes
checking for msgfmt... /users/awcolley/latest/bin/msgfmt
checking for dcgettext... yes
checking for gmsgfmt... /users/awcolley/latest/bin/msgfmt
checking for xgettext... /users/awcolley/latest/bin/xgettext
checking for catalogs to be installed...  az ca cs da de el en_GB en IPA es
et eu fa fi fr ga gl he hr hu ia it ja ko lt nl nn no pl pt pt_BR ro ru sk
sl sp sr sv tr uk vi wa zh_TW zh_CN
checking for extra flags to get ANSI library prototypes... none needed
checking for the BeOS... no
checking for extra flags for POSIX compliance... none needed
checking for pkg-config... /users/awcolley/latest/bin/pkg-config
checking for GLIB - version >= 1.3.7... yes (version 1.3.7)
checking dirent.h usability... yes
checking dirent.h presence... yes
checking for dirent.h... yes
checking pwd.h usability... yes
checking pwd.h presence... yes
checking for pwd.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for unistd.h... (cached) yes
checking for ANSI C header files... (cached) yes
checking for an ANSI C-conforming const... (cached) yes
checking return type of signal handlers... void
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for getpagesize... (cached) yes
checking for working mmap... (cached) yes
checking for getresuid... yes
checking for uid_t in sys/types.h... yes
checking for fd_set... yes, found in sys/types.h
checking for wchar.h... yes
checking for wctype.h... yes
checking for iswalnum... yes
checking if iswalnum() and friends are properly defined... yes
checking whether to build gmodulized gdk-pixbuf... yes
checking whether dynamic modules work... yes
checking for TIFFReadScanLine in -ltiff... no
checking for TIFFWriteScanline in -ltiff... yes
checking tiffio.h usability... yes
checking tiffio.h presence... yes
checking for tiffio.h... yes
checking for jpeg_destroy_decompress in -ljpeg... yes
checking for jpeglib.h... yes
checking for jpeg_simple_progression in -ljpeg... yes
checking for png_read_info in -lpng... yes
checking png.h usability... yes
checking png.h presence... yes
checking for png.h... yes
checking for png_structp in png.h... yes
checking pixbuf loaders to build... 
checking for dirent.h that defines DIR... yes
checking for opendir in -ldir... no
checking for sys/wait.h that is POSIX.1 compatible... yes
checking return type of signal handlers... (cached) void
checking for x86 platform... yes
checking compiler support for MMX... yes
checking for XOpenDisplay in -lX11... yes
checking for XShmAttach in -lXext... yes
checking for XShapeCombineMask in -lXext... yes
checking for XConvertCase in -lX11... yes
checking for XUnregisterIMInstantiateCallback in -lX11... yes
checking for XkbQueryExtension in -lX11... yes
checking sys/ipc.h usability... yes
checking sys/ipc.h presence... yes
checking for sys/ipc.h... yes
checking sys/shm.h usability... yes
checking sys/shm.h presence... yes
checking for sys/shm.h... yes
checking X11/extensions/XShm.h... yes
checking Pango flags...   -I/users/awcolley/latest/include/pango-1.0
-I/users/awcolley/latest/include/glib-2.0
-I/users/awcolley/latest/lib/glib-2.0/include -I/usr/X11R6/include
-I/usr/include/freetype2     -L/users/awcolley/latest/lib -L/usr/X11R6/lib
-L/usr/lib -lpangox -lpangoxft -lXft -lXrender -lXext -lX11 -lfreetype
-lpango -lgobject-1.3 -lgmodule-1.3 -ldl -lglib-1.3  
checking for pango_context_new in -lpango... yes
checking ATK flags...  -I/users/awcolley/latest/include/atk-1.0
-I/users/awcolley/latest/include/glib-2.0
-I/users/awcolley/latest/lib/glib-2.0/include
-L/users/awcolley/latest/lib -latk -lgobject-1.3 -lgmodule-1.3 -ldl
-lglib-1.3  
checking for atk_object_get_type in -latk... yes
checking for gtkdoc-mkdb... true
Unknown option: version
Use of uninitialized value in concatenation (.) at /usr/bin/gtkdoc-mkdb line
57.
Use of uninitialized value in concatenation (.) at /usr/bin/gtkdoc-mkdb line
60.
Use of uninitialized value in concatenation (.) at /usr/bin/gtkdoc-mkdb line
63.
Use of uninitialized value in string eq at /usr/bin/gtkdoc-mkdb line 119.
Use of uninitialized value in string eq at /usr/bin/gtkdoc-mkdb line 119.
Use of uninitialized value in string eq at /usr/bin/gtkdoc-mkdb line 119.
Use of uninitialized value in string eq at /usr/bin/gtkdoc-mkdb line 119.
Use of uninitialized value in string eq at /usr/bin/gtkdoc-mkdb line 119.
Use of uninitialized value in concatenation (.) at /usr/bin/gtkdoc-mkdb line
129.
Can't open ./-decl.txt at /usr/bin/gtkdoc-mkdb line 1705.
checking gtk-doc version () >= 0.6... no
checking for db2html... true
checking for sgml2html... /usr/bin/sgml2html
configure: creating ./config.status
config.status: creating config.h.win32
config.status: creating gtk+.spec
config.status: creating docs/gtk-config.1
config.status: creating Makefile
config.status: creating gdk-pixbuf-2.0.pc
config.status: creating gdk-2.0.pc
config.status: creating gtk+-2.0.pc
config.status: creating gdk-pixbuf-2.0-uninstalled.pc
config.status: creating gdk-2.0-uninstalled.pc
config.status: creating gtk+-2.0-uninstalled.pc
config.status: creating m4macros/Makefile
config.status: creating po/Makefile.in
config.status: creating build/Makefile
config.status: creating build/win32/Makefile
config.status: creating demos/Makefile
config.status: creating demos/gtk-demo/Makefile
config.status: creating tests/Makefile
config.status: creating docs/Makefile
config.status: creating docs/reference/Makefile
config.status: creating docs/reference/gdk-pixbuf/Makefile
config.status: creating docs/reference/gdk/Makefile
config.status: creating docs/reference/gtk/Makefile
config.status: creating docs/faq/Makefile
config.status: creating docs/tutorial/Makefile
config.status: creating gdk-pixbuf/Makefile
config.status: creating gdk-pixbuf/makefile.mingw
config.status: creating gdk-pixbuf/gdk-pixbuf-features.h
config.status: creating gdk-pixbuf/pixops/Makefile
config.status: creating gdk-pixbuf/pixops/makefile.mingw
config.status: creating gdk/Makefile
config.status: creating gdk/makefile.mingw
config.status: creating gdk/x11/Makefile
config.status: creating gdk/win32/Makefile
config.status: creating gdk/win32/makefile.mingw
config.status: creating gdk/win32/rc/Makefile
config.status: creating gdk/win32/rc/gdk.rc
config.status: creating gdk/nanox/Makefile
config.status: creating gdk/linux-fb/Makefile
config.status: creating gtk/Makefile
config.status: creating gtk/makefile.mingw
config.status: creating gtk/makefile.msc
config.status: creating gtk/gtkversion.h
config.status: creating gtk/gtk-win32.rc
config.status: creating gtk/stock-icons/Makefile
config.status: creating modules/Makefile
config.status: creating modules/input/Makefile
config.status: creating contrib/Makefile
config.status: creating contrib/gdk-pixbuf-xlib/Makefile
config.status: creating contrib/gdk-pixbuf-xlib/gdk-pixbuf-xlib-2.0.pc
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing default-1 commands
config.status: executing default-2 commands
config.status: executing default-3 commands
creating gdk/gdkconfig.h
gdk/gdkconfig.h is unchanged

Now type 'make' to compile Gtk+.


=== Changes made to configure.in ===
438,451c438,474
<   if test -z "$LIBTIFF"; then
<     AC_CHECK_LIB(tiff, TIFFReadScanline,
<       AC_CHECK_HEADER(tiffio.h,
<         TIFF='tiff'; LIBTIFF='-ltiff',
<         AC_MSG_WARN(*** TIFF loader will not be built (TIFF header files
not found) ***)),
<       AC_CHECK_LIB(tiff, TIFFWriteScanline,
<         AC_CHECK_HEADER(tiffio.h,
<           TIFF='tiff'; LIBTIFF='-ltiff -ljpeg -lz',
<           AC_MSG_WARN(*** TIFF loader will not be built (TIFF header files
not found) ***)),
<         AC_CHECK_LIB(tiff34, TIFFFlushData,
<           AC_CHECK_HEADER(tiffio.h,
<             TIFF='tiff'; LIBTIFF='-ltiff34 -ljpeg -lz',
<             AC_MSG_WARN(*** TIFF loader will not be built (TIFF header
files not found) ***)),
<         AC_MSG_WARN(*** TIFF plug-in will not be built (TIFF library not
found) ***), -ljpeg -lz -lm), -ljpeg -lz -lm), -lm)
---
> if test -z "$LIBTIFF"; then
> dnl WORKAROUND AUTOCONF BUG
> dnl    AC_CHECK_LIB(tiff, TIFFReadScanline,
> dnl                 AC_CHECK_HEADER(tiffio.h,
> dnl                                 TIFF='tiff'; LIBTIFF='-ltiff',
> dnl                                 AC_MSG_WARN(*** TIFF loader will not
be built (TIFF header files not found) ***)),
> dnl                 AC_CHECK_LIB(tiff, TIFFWriteScanline,
> dnl                              AC_CHECK_HEADER(tiffio.h,
> dnl                                              TIFF='tiff';
LIBTIFF='-ltiff -ljpeg -lz',
> dnl                                              AC_MSG_WARN(*** TIFF
loader will not be built (TIFF header files not found) ***)),
> dnl                              AC_CHECK_LIB(tiff34, TIFFFlushData,
> dnl                                           AC_CHECK_HEADER(tiffio.h,
> dnl                                                           TIFF='tiff';
LIBTIFF='-ltiff34 -ljpeg -lz',
> dnl
AC_MSG_WARN(*** TIFF loader will not be built (TIFF header files not found)
***)),
> dnl                                           AC_MSG_WARN(*** TIFF plug-in
will not be built (TIFF library not found) ***),
> dnl                                           -ljpeg -lz -lm),
> dnl                              -ljpeg -lz -lm),
> dnl                 -lm)
> 
>   AC_CHECK_LIB( tiff, TIFFReadScanLine, havetiff=yes, havetiff=no, -lm )
>   if test "$havetiff" = "yes"; then
>     AC_CHECK_HEADER(tiffio.h, TIFF='tiff'; LIBTIFF='-ltiff',
>                     AC_MSG_WARN(*** TIFF loader will not be built (TIFF
header files not found) ***))
>   else
>     AC_CHECK_LIB( tiff, TIFFWriteScanline, havetiff=yes, havetiff=no,
-ljpeg -lz -lm )
>     if test "$havetiff" = "yes"; then
>       AC_CHECK_HEADER(tiffio.h, TIFF='tiff'; LIBTIFF='-ltiff -ljpeg -lz',
>                       AC_MSG_WARN(*** TIFF loader will not be built (TIFF
header files not found) ***))
>     else
>       AC_CHECK_LIB( tiff34, TIFFFlushData, havetiff=yes, havetiff=no,
-ljpeg -lz -lm )
>       if test "$havetiff" = "yes"; then
>         AC_CHECK_HEADER(tiffio.h, TIFF='tiff'; LIBTIFF='-ltiff34 -ljpeg
-lz',
>                         AC_MSG_WARN(*** TIFF loader will not be built
(TIFF header files not found) ***))
>       else
>         AC_MSG_WARN(*** TIFF plug-in will not be built (TIFF library not
found) ***)
>       fi
>     fi
452a476
> fi
482,490c503,521
<   if test -z "$LIBPNG"; then
<     AC_CHECK_LIB(png, png_read_info,
<       AC_CHECK_HEADER(png.h,
<         png_ok=yes,
<         png_ok=no),
<       AC_MSG_WARN(*** PNG loader will not be built (PNG library not found)
***), -lz -lm)
<     if test "$png_ok" = yes; then
<       AC_MSG_CHECKING([for png_structp in png.h])
<       AC_TRY_COMPILE([#include <png.h>],
---
> if test -z "$LIBPNG"; then
> 
> dnl WORKAROUND AUTOCONF BUG
> dnl    AC_CHECK_LIB(png, png_read_info,
> dnl                 AC_CHECK_HEADER(png.h,png_ok=yes,png_ok=no),
> dnl                 AC_MSG_WARN(*** PNG loader will not be built (PNG
library not found) ***),
> dnl                 -lz -lm)
> 
>   AC_CHECK_LIB(png, png_read_info,
>                png_ok=yes,
>                AC_MSG_WARN(*** PNG loader will not be built (PNG library
not found) ***),
>                -lz -lm)
>   if test "$png_ok" = yes; then
>     AC_CHECK_HEADER(png.h,png_ok=yes,png_ok=no)
>   fi
> 
>   if test "$png_ok" = yes; then
>     AC_MSG_CHECKING([for png_structp in png.h])
>     AC_TRY_COMPILE([#include <png.h>],
494,499c525,527
<       AC_MSG_RESULT($png_ok)
<       if test "$png_ok" = yes; then
<         PNG='png'; LIBPNG='-lpng -lz'
<       else
<         AC_MSG_WARN(*** PNG loader will not be built (PNG library is too
old) ***)
<       fi
---
>     AC_MSG_RESULT($png_ok)
>     if test "$png_ok" = yes; then
>       PNG='png'; LIBPNG='-lpng -lz'
501c529
<      AC_MSG_WARN(*** PNG loader will not be built (PNG header file not
found) ***)
---
>       AC_MSG_WARN(*** PNG loader will not be built (PNG library is too
old) ***)
502a531,532
>   else
>    AC_MSG_WARN(*** PNG loader will not be built (PNG header file not
found) ***)
503a534
> fi

=== THAT'S ALL FOLKS ===




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]