Mercurial > hg > xemacs-beta
comparison configure.in @ 308:33bdb3d4b97f r21-0b52
Import from CVS: tag r21-0b52
author | cvs |
---|---|
date | Mon, 13 Aug 2007 10:42:44 +0200 |
parents | 9ea74add5d37 |
children | 851ff35f137f |
comparison
equal
deleted
inserted
replaced
307:42d630fd9bd8 | 308:33bdb3d4b97f |
---|---|
1916 dnl Try to autodetect runtime library flag (usually -R), | 1916 dnl Try to autodetect runtime library flag (usually -R), |
1917 dnl and whether it works (or at least does no harm) | 1917 dnl and whether it works (or at least does no harm) |
1918 AC_MSG_CHECKING("for runtime libraries flag") | 1918 AC_MSG_CHECKING("for runtime libraries flag") |
1919 case "$opsys" in | 1919 case "$opsys" in |
1920 sol2 ) dash_r="-R" ;; | 1920 sol2 ) dash_r="-R" ;; |
1921 decosf* | linux* ) dash_r="-rpath" ;; | 1921 decosf* | linux* ) dash_r="-rpath " ;; |
1922 *) | 1922 *) |
1923 dash_r="" | 1923 dash_r="" |
1924 for try_dash_r in "-R" "-R " "-rpath "; do | 1924 for try_dash_r in "-R" "-R " "-rpath "; do |
1925 xe_check_libs="${try_dash_r}/no/such/file-or-directory" | 1925 xe_check_libs="${try_dash_r}/no/such/file-or-directory" |
1926 XE_PROTECT_LINKER_FLAGS(xe_check_libs) | 1926 XE_PROTECT_LINKER_FLAGS(xe_check_libs) |
2720 if test "$xpm_for_msw" = "yes"; then | 2720 if test "$xpm_for_msw" = "yes"; then |
2721 AC_DEFINE(FOR_MSW) | 2721 AC_DEFINE(FOR_MSW) |
2722 fi | 2722 fi |
2723 fi | 2723 fi |
2724 | 2724 |
2725 dnl For a brief period we had the GIF code split out into a separate library, | |
2726 dnl but patent problems, etc. sort of squashed that idea. | |
2727 dnl We default to building with builtin GIF decoding | |
2728 if test "$with_gif" != "no"; then | |
2729 with_gif="yes" | |
2730 AC_DEFINE(HAVE_GIF) | |
2731 XE_ADD_OBJS(dgif_lib.o gif_io.o) | |
2732 fi | |
2733 | |
2725 dnl Too many stupid linkers can't detect cascaded lib dependencies until runtime | 2734 dnl Too many stupid linkers can't detect cascaded lib dependencies until runtime |
2726 dnl So we always search for libz compression support. | 2735 dnl So we always search for libz compression support. |
2727 if test "$with_png $with_tiff" != "no no"; then | 2736 if test "$with_png $with_tiff" != "no no"; then |
2728 AC_CHECK_LIB(c, inflate, [:], [ | 2737 AC_CHECK_LIB(c, inflate, [:], [ |
2729 AC_CHECK_LIB(z, inflate, [XE_PREPEND(-lz, libs_x)],[ | 2738 AC_CHECK_LIB(z, inflate, [XE_PREPEND(-lz, libs_x)],[ |
2730 AC_CHECK_LIB(gz, inflate, [XE_PREPEND(-lgz, libs_x)])])]) | 2739 AC_CHECK_LIB(gz, inflate, [XE_PREPEND(-lgz, libs_x)])])]) |
2731 fi | |
2732 | |
2733 dnl Autodetect GIFlib | |
2734 AC_MSG_CHECKING(for gifreader) | |
2735 test -z "$with_gif" && { AC_CHECK_HEADER(gifrlib.h, ,with_gif=no) } | |
2736 test -z "$with_gif" && { AC_CHECK_LIB(gifreader, GetGifError,[:] ,with_gif=no) } | |
2737 test -z "$with_gif" && with_gif=yes | |
2738 if test "$with_gif" = "yes"; then | |
2739 AC_DEFINE(HAVE_GIF) | |
2740 XE_PREPEND(-lgifreader, libs_x) | |
2741 fi | 2740 fi |
2742 | 2741 |
2743 dnl autodetect JPEG | 2742 dnl autodetect JPEG |
2744 test -z "$with_jpeg" && { AC_CHECK_HEADER(jpeglib.h, ,with_jpeg=no) } | 2743 test -z "$with_jpeg" && { AC_CHECK_HEADER(jpeglib.h, ,with_jpeg=no) } |
2745 test -z "$with_jpeg" && { AC_CHECK_LIB(jpeg, jpeg_destroy_decompress,[:],with_jpeg=no) } | 2744 test -z "$with_jpeg" && { AC_CHECK_LIB(jpeg, jpeg_destroy_decompress,[:],with_jpeg=no) } |
2749 XE_PREPEND(-ljpeg, libs_x) | 2748 XE_PREPEND(-ljpeg, libs_x) |
2750 fi | 2749 fi |
2751 | 2750 |
2752 dnl autodetect PNG | 2751 dnl autodetect PNG |
2753 if test -z "$with_png"; then | 2752 if test -z "$with_png"; then |
2754 AC_MSG_CHECKING(for png.h - no older than 0.96) | 2753 AC_MSG_CHECKING(for png.h - no older than 1.02) |
2755 AC_EGREP_CPP(yes, | 2754 AC_EGREP_CPP(yes, |
2756 [#include <png.h> | 2755 [#include <png.h> |
2757 #if PNG_LIBPNG_VER >= 96 | 2756 #if PNG_LIBPNG_VER >= 10002 |
2758 yes | 2757 yes |
2759 #endif | 2758 #endif |
2760 ], [AC_MSG_RESULT(yes)], [AC_MSG_RESULT(no); with_png=no]) | 2759 ], [AC_MSG_RESULT(yes)], [AC_MSG_RESULT(no); with_png=no]) |
2761 fi | 2760 fi |
2762 test -z "$with_png" && { AC_CHECK_FUNC(pow, ,with_png=no) } | 2761 test -z "$with_png" && { AC_CHECK_FUNC(pow, ,with_png=no) } |
2776 XE_PREPEND(-ltiff, libs_x) | 2775 XE_PREPEND(-ltiff, libs_x) |
2777 fi | 2776 fi |
2778 fi | 2777 fi |
2779 | 2778 |
2780 dnl ---------------------- | 2779 dnl ---------------------- |
2781 dnl Graphics libraries | 2780 dnl X-Specific Graphics libraries |
2782 dnl ---------------------- | 2781 dnl ---------------------- |
2783 | 2782 |
2784 if test "$with_x11" = "yes"; then | 2783 if test "$with_x11" = "yes"; then |
2785 | 2784 |
2786 AC_CHECKING(for X11 graphics libraries) | 2785 AC_CHECKING(for X11 graphics libraries) |
3923 if test "$with_xpm" = yes; then | 3922 if test "$with_xpm" = yes; then |
3924 echo " Compiling in support for XPM images." | 3923 echo " Compiling in support for XPM images." |
3925 elif test "$with_x11" = yes; then | 3924 elif test "$with_x11" = yes; then |
3926 echo " --------------------------------------------------------------------" | 3925 echo " --------------------------------------------------------------------" |
3927 echo " WARNING: Compiling without XPM support." | 3926 echo " WARNING: Compiling without XPM support." |
3928 echo " WARNING: You should strongly considering installing XPM." | 3927 echo " WARNING: You should strongly consider installing XPM." |
3929 echo " WARNING: Otherwise toolbars and other graphics will look suboptimal." | 3928 echo " WARNING: Otherwise toolbars and other graphics will look suboptimal." |
3929 echo " WARNING: (a copy may be found at ftp://ftp.xemacs.org/pub/xemacs/aux)" | |
3930 echo " --------------------------------------------------------------------" | 3930 echo " --------------------------------------------------------------------" |
3931 fi | 3931 fi |
3932 if test "$with_png" = yes; then | |
3933 echo " Compiling in support for PNG image handling." | |
3934 else | |
3935 echo " --------------------------------------------------------------------" | |
3936 echo " WARNING: Compiling without PNG image support." | |
3937 echo " WARNING: You should strongly consider installing the PNG libraries." | |
3938 echo " WARNING: Otherwise certain images and glyphs may not display." | |
3939 echo " WARNING: (a copy may be found at ftp://ftp.xemacs.org/pub/xemacs/aux)" | |
3940 echo " --------------------------------------------------------------------" | |
3941 fi | |
3932 test "$with_xface" = yes && echo " Compiling in support for X-Face message headers." | 3942 test "$with_xface" = yes && echo " Compiling in support for X-Face message headers." |
3933 test "$with_gif" = yes && echo " Compiling in support for GIF image conversion." | 3943 test "$with_gif" = yes && echo " Compiling in support for (builtin) GIF image handling." |
3934 test "$with_jpeg" = yes && echo " Compiling in support for JPEG image conversion." | 3944 test "$with_jpeg" = yes && echo " Compiling in support for JPEG image handling." |
3935 test "$with_png" = yes && echo " Compiling in support for PNG image conversion." | 3945 test "$with_tiff" = yes && echo " Compiling in support for TIFF image handling." |
3936 test "$with_tiff" = yes && echo " Compiling in support for TIFF image conversion." | |
3937 case "$with_sound" in | 3946 case "$with_sound" in |
3938 nas ) echo " Compiling in network sound (NAS) support." ;; | 3947 nas ) echo " Compiling in network sound (NAS) support." ;; |
3939 native ) echo " Compiling in native sound support." ;; | 3948 native ) echo " Compiling in native sound support." ;; |
3940 both ) echo " Compiling in both network and native sound support." ;; | 3949 both ) echo " Compiling in both network and native sound support." ;; |
3941 esac | 3950 esac |