⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 configure.in

📁 ELinks is an advanced and well-established feature-rich text mode web (HTTP/FTP/..) browser. ELinks
💻 IN
📖 第 1 页 / 共 2 页
字号:
		fi	fi	CPPFLAGS="$CPPFLAGS_X"	LIBS="$LIBS_X")if test "$ac_cv_have_x2" != no; then	CPPFLAGS="$CPPFLAGS -I$X11ROOT/XFree86/include"	LIBS="$LIBS -L$X11ROOT/XFree86/lib -l$ac_cv_have_x2"	AC_DEFINE(X2)fiAC_CHECK_LIB(dl, dlopen)#ifdef HAVE_SSLAC_ARG_WITH(ssl, [  --with-ssl(=directory)  enable SSL support], [if test "$withval" = no; then disable_ssl=yes; else ssld="$withval"; fi])CPPFLAGS_X="$CPPFLAGS"LIBS_X="$LIBS"cf_result=noif test -z "$disable_ssl"; then	PKG_CHECK_MODULES(OPENSSL,openssl,pkgconfig_openssl=yes,pkgconfig_openssl=no)	if test "$pkgconfig_openssl" = "yes"; then		AC_MSG_CHECKING([for OpenSSL])		CPPFLAGS="$CPPFLAGS $OPENSSL_CFLAGS"		LIBS="$OPENSSL_LIBS $LIBS"		AC_TRY_LINK([#include <openssl/ssl.h>], [OpenSSL_add_all_algorithms()], cf_result=yes, cf_result=no)		if test "$cf_result" != yes; then			AC_TRY_LINK([#include <openssl/ssl.h>], [SSLeay_add_ssl_algorithms()], cf_result=yes, cf_result=no)	   	fi	else		AC_MSG_CHECKING([for OpenSSL])		for ssldir in "" /usr /usr/local /usr/local/openssl /usr/lib/openssl /usr/local/ssl /usr/local/www /usr/lib/ssl /usr/local /usr/pkg /opt /opt/openssl "$ssld"; do			if test "$cf_result" = no; then				if test ! -z "$ssldir" && test "$ssldir" != /usr; then					LIBS="-L$ssldir/lib -lssl -lcrypto $LIBS_X"					CPPFLAGS="$CPPFLAGS_X -I$ssldir/include"				else					LIBS="-lssl -lcrypto $LIBS_X"				fi				AC_TRY_LINK([#include <openssl/ssl.h>], [OpenSSL_add_all_algorithms()], cf_result=yes, cf_result=no)				if test "$cf_result" != yes; then					AC_TRY_LINK([#include <openssl/ssl.h>], [SSLeay_add_ssl_algorithms()], cf_result=yes, cf_result=no)				fi			fi		done	fi	AC_MSG_RESULT($cf_result)	if test "$cf_result" != yes; then		if test "$withval" = yes; then			AC_MSG_ERROR("OpenSSL not found")		fi	        CPPFLAGS="$CPPFLAGS_X"        	LIBS="$LIBS_X"	else		AC_DEFINE(HAVE_SSL)	fificf_have_ssl=$cf_result;#endifAC_ARG_WITH(zlib, [  --without-zlib          compile without zlib compression],[if test "$withval" = no; then disable_zlib=yes; else disable_zlib=no; fi])AC_ARG_WITH(bzip2, [  --without-bzip2         compile without bzip2 compression],[if test "$withval" = no; then disable_bzip2=yes; else disable_bzip2=no; fi])compression=""if test "$disable_zlib" != yes ; then	AC_CHECK_HEADERS(zlib.h)	AC_CHECK_LIB(z, inflate)	if test "$ac_cv_header_zlib_h" = yes && test "$ac_cv_lib_z_inflate" = yes; then		AC_DEFINE(HAVE_ZLIB)		compression="$compression ZLIB"	fifiif test "$disable_bzip2" != yes ; then	AC_CHECK_HEADERS(bzlib.h)	AC_CHECK_LIB(bz2, BZ2_bzDecompress)	if test "$ac_cv_header_bzlib_h" = yes && test "$ac_cv_lib_bz2_BZ2_bzDecompress" = yes; then		AC_DEFINE(HAVE_BZIP2)		compression="$compression BZIP2"	fificf_have_atheos=noif test "$cf_use_graphics" = yes; then	AC_DEFINE(G)AC_ARG_WITH(svgalib, [  --without-svgalib       compile without svgalib graphics driver],[if test "$withval" = no; then disable_svgalib=yes; else disable_svgalib=no; fi])AC_ARG_WITH(x, [  --without-x             compile without X Window System graphics driver],[if test "$withval" = no; then disable_x=yes; else disable_x=no; fi])AC_ARG_WITH(fb, [  --without-fb            compile without Linux Framebuffer graphics driver],[if test "$withval" = no; then disable_fb=yes; else disable_fb=no; fi])AC_ARG_WITH(directfb, [  --without-directfb      compile without DirectFB graphics driver],[if test "$withval" = no; then disable_directfb=yes; else disable_directfb=no; fi])dnl AC_ARG_WITH(sdl, [  --without-sdl           compile without SDL graphics driver],[if test "$withval" = no; then disable_sdl=yes; else disable_sdl=no; fi])AC_ARG_WITH(pmshell, [  --without-pmshell       compile without PMShell graphics driver],[if test "$withval" = no; then disable_pmshell=yes; else disable_pmshell=no; fi])AC_ARG_WITH(atheos, [  --without-atheos        compile without Atheos graphics driver],[if test "$withval" = no; then disable_atheos=yes; else disable_atheos; fi])	drivers=""if test "$disable_svgalib" != yes ; then	AC_CACHE_CHECK([for svgalib], ac_cv_have_svgalib,		LIBS_X="$LIBS"		LIBS="-lvga $LIBS"		AC_TRY_LINK([#include <vga.h>], [vga_setmode(0)], ac_cv_have_svgalib=yes, ac_cv_have_svgalib=no)		LIBS="$LIBS_X"	)	if test "$ac_cv_have_svgalib" = yes; then		AC_DEFINE(GRDRV_SVGALIB)		LIBS="-lvga $LIBS"		drivers="$drivers SVGALIB"	fifiif test "$disable_fb" != yes ; then	AC_CHECK_HEADERS(linux/fb.h)	AC_CHECK_HEADERS(linux/kd.h)	AC_CHECK_HEADERS(linux/vt.h)	AC_CHECK_HEADERS(sys/mman.h)	if test "$ac_cv_header_linux_fb_h" = yes && test "$ac_cv_header_linux_kd_h" = yes && test "$ac_cv_header_linux_vt_h" = yes && test "$ac_cv_header_sys_mman_h" = yes && test "$ac_cv_header_sys_ioctl_h" = yes && test "$cf_have_gpm" = yes; then		AC_DEFINE(GRDRV_FB)		drivers="$drivers FB"	fifiif test "$disable_directfb" != yes ; then	AC_PATH_PROG(DIRECTFB_CONFIG, directfb-config, no)	if test "$DIRECTFB_CONFIG" != "no"; then	        AC_MSG_CHECKING(for DirectFB >= 0.9.17)        	directfb_version=`$DIRECTFB_CONFIG --version`		if expr $directfb_version \>= 0.9.17 >/dev/null; then			AC_MSG_RESULT(yes)			DIRECTFB_CFLAGS=`$DIRECTFB_CONFIG --cflags`			DIRECTFB_LIBS=`$DIRECTFB_CONFIG --libs`	           	AC_DEFINE(GRDRV_DIRECTFB)        	   	drivers="$drivers DIRECTFB"			CPPFLAGS="$CPPFLAGS $DIRECTFB_CFLAGS"			LIBS="$DIRECTFB_LIBS $LIBS"		else			AC_MSG_RESULT(no)		fi	fifiif test "$disable_x" != yes ; then	AC_PATH_X	if test "$have_x" = yes; then		AC_DEFINE(GRDRV_X)		LIBS="-lX11 $LIBS"		test -n "$x_libraries" && LIBS="-L$x_libraries $LIBS"		test -n "$x_includes" && CPPFLAGS="$CPPFLAGS -I$x_includes"		drivers="$drivers X"	elif test "$ac_cv_have_x2" != no; then		AC_CHECK_LIB(X11, XOpenDisplay)		AC_CHECK_HEADERS(X11/Xlib.h X11/X.h X11/Xutil.h X11/Xlocale.h)		if test "$ac_cv_have_libx11" = yes && test "$ac_cv_have_x11_xlib_h" = test && test "$ac_cv_have_x11_x_h" = test && test "$ac_cv_have_x11_xutil_h" = test && test "$ac_cv_have_x11_xlocale_h" = test; then			AC_DEFINE(GRDRV_X)			drivers="$drivers X"			LIBS="-lX11 $LIBS"		fi	fifidnl if test "$disable_sdl" != yes ; thendnl 	AC_PATH_PROG(SDL_CONFIG, sdl-config, no)dnl 	if test "$SDL_CONFIG" != "no"; thendnl 	        AC_MSG_CHECKING(for SDL >= 1.2.0)dnl         	sdl_version="`$SDL_CONFIG --version`"dnl 		if expr "$sdl_version" \>= 1.2.0 >/dev/null; thendnl 			AC_MSG_RESULT(yes)dnl 			SDL_CFLAGS="`$SDL_CONFIG --cflags`"dnl 			SDL_LIBS="`$SDL_CONFIG --libs`"dnl 	           	AC_DEFINE(GRDRV_SDL)dnl         	   	drivers="$drivers SDL"dnl 			CPPFLAGS="$CPPFLAGS $SDL_CFLAGS"dnl 			AC_CHECK_LIB(Xext, XextAddDisplay)dnl 			LIBS="$SDL_LIBS $LIBS"dnl 		elsednl 			AC_MSG_RESULT(no)dnl 		fidnl 	fidnl fiif test "$disable_pmshell" != yes ; then	AC_CACHE_CHECK([for pmshell], ac_cv_have_pmshell,		AC_TRY_LINK([#define INCL_WIN			#define INCL_GPI			#include <os2.h>			#include <sys/fmutex.h>],			[_fmutex mutex;			WinDrawText(NULLHANDLE, -1, NULL, NULL, 0, 0, 0),			GpiSetPel(NULLHANDLE, NULL)],		ac_cv_have_pmshell=yes, ac_cv_have_pmshell=no)	)	if test "$ac_cv_have_pmshell" = yes; then		AC_DEFINE(GRDRV_PMSHELL)		drivers="$drivers PMSHELL"	fifiif test "$disable_atheos" != yes ; then	old_ext="$ac_ext"	ac_ext=cpp	AC_CHECK_HEADERS(gui/view.h)	AC_CHECK_HEADERS(gui/window.h)	AC_CHECK_HEADERS(gui/desktop.h)	AC_CHECK_HEADERS(gui/bitmap.h)	AC_CHECK_HEADERS(util/locker.h)	AC_CHECK_HEADERS(util/application.h)	ac_ext="$old_ext"	if test "$ac_cv_header_atheos_threads_h" = yes &&	   test "$ac_cv_header_gui_view_h" = yes &&	   test "$ac_cv_header_gui_window_h" = yes &&	   test "$ac_cv_header_gui_desktop_h" = yes &&	   test "$ac_cv_header_gui_bitmap_h" = yes &&	   test "$ac_cv_header_util_locker_h" = yes &&	   test "$ac_cv_header_util_application_h" = yes; then		AC_CHECK_LIB(stdc++, main)		AC_CHECK_LIB(atheos, main)		if test "$ac_cv_lib_atheos_main" = yes; then			AC_PROG_CXX			AC_DEFINE(GRDRV_ATHEOS)			drivers="$drivers ATHEOS"			cf_have_atheos=yes		fi	fifi	AC_CHECK_LIB(z, inflate)	PKG_CHECK_MODULES(LIBPNG,libpng >= 1.0.0,pkgconfig_libpng=yes,pkgconfig_libpng=no)	if test "$pkgconfig_libpng" = "yes"; then		CPPFLAGS="$CPPFLAGS $LIBPNG_CFLAGS"		LIBS="$LIBPNG_LIBS $LIBS"	else		PKG_CHECK_MODULES(LIBPNG12,libpng12,pkgconfig_libpng12=yes,pkgconfig_libpng12=no)		if test "$pkgconfig_libpng12" = "yes"; then			CPPFLAGS="$CPPFLAGS $LIBPNG12_CFLAGS"			LIBS="$LIBPNG12_LIBS $LIBS"		fi	fi	AC_CHECK_HEADERS(png.h libpng/png.h)	AC_HAVE_FUNCS(png_create_info_struct)	if test "$ac_cv_func_png_create_info_struct" != yes; then		AC_CHECK_LIB(png, png_create_info_struct)	fi	if test "$ac_cv_header_png_h" != yes -a "$ac_cv_header_libpng_png_h" != yes || test "$ac_cv_func_png_create_info_struct" != yes -a "$ac_cv_lib_png_png_create_info_struct" != yes; then		AC_ERROR([You need libpng to compile Links in graphics mode])	fi	AC_HAVE_FUNCS(png_set_rgb_to_gray)	AC_HAVE_FUNCS(png_get_image_width png_get_image_height png_get_gAMA png_get_color_type png_get_bit_depth png_set_strip_alpha png_get_valid png_get_sRGB)	if test "$ac_cv_func_png_get_image_width" != yes ||	   test "$ac_cv_func_png_get_image_height" != yes ||	   test "$ac_cv_func_png_get_gAMA" != yes ||	   test "$ac_cv_func_png_get_color_type" != yes ||	   test "$ac_cv_func_png_get_bit_depth" != yes ||	   test "$ac_cv_func_png_set_strip_alpha" != yes ||	   test "$ac_cv_func_png_get_valid" != yes ||	   test "$ac_cv_func_png_get_sRGB" != yes; then		AC_ERROR([Your libpng is too old])	fi	AC_CACHE_CHECK(if you can include both setjmp.h and png.h, ac_cv_include_setjmp_png,		AC_TRY_COMPILE([#include <setjmp.h>		#include <png.h>], [jmp_buf bla;], ac_cv_include_setjmp_png=yes, ac_cv_include_setjmp_png=no)	)	if test "$ac_cv_include_setjmp_png" != yes; then		AC_DEFINE(DONT_INCLUDE_SETJMP)	fi	AC_ARG_WITH(libjpeg, [  --without-libjpeg	  compile without JPEG support],[if test "$withval" = no; then disable_jpeg=yes; else disable_jpeg=no; fi])		cf_have_jpeg=no	if test "$disable_jpeg" != yes ; then		AC_CHECK_HEADERS(jpeglib.h)		AC_CHECK_LIB(jpeg, jpeg_destroy_decompress)		if test "$ac_cv_header_jpeglib_h" = yes && test "$ac_cv_lib_jpeg_jpeg_destroy_decompress" = yes; then			AC_DEFINE(HAVE_JPEG)			cf_have_jpeg=yes			image_formats="$image_formats JPEG"		fi	fi	AC_ARG_WITH(libtiff, [  --without-libtiff       compile without TIFF support],[if test "$withval" = no; then disable_tiff=yes; else disable_tiff=no; fi])		cf_have_tiff=no	if test "$disable_tiff" != yes ; then		AC_CHECK_HEADERS(tiffio.h)		AC_CHECK_LIB(tiff, TIFFClientOpen)		if test "$ac_cv_header_tiffio_h" = yes && test "$ac_cv_lib_tiff_TIFFClientOpen" = yes; then			AC_DEFINE(HAVE_TIFF)			cf_have_tiff=yes			image_formats="$image_formats TIFF"		fi	fi	if test -z "$drivers" && test "$cf_use_graphics" = yes; then		AC_MSG_ERROR([No graphics drivers found.])dnl	elsednl		AC_MSG_RESULT([The following graphics drivers are available:$drivers])	fifiAM_CONDITIONAL(ATHEOS_GR, test "$cf_have_atheos" = yes)test "$ac_cv_have_emx" = yes && LDFLAGS="$LDFLAGS -Zexe"AC_OUTPUT(Makefile)echo "---------------------------------------------------------"echo "Configuration results:"echo ""if test "$cf_have_gpm" = yes; then echo "GPM support:		YES"; else echo "GPM support:		NO"; fiif test "$cf_have_ssl" = yes; then echo "SSL support:		YES"; else echo "SSL support:		NO"; ficompression="`echo "$compression"|sed 's/^ //'`"if test -z "$compression"; then compression="NONE"; fi	echo "Supported compression:	$compression"dnl javascript if test "$cf_use_javascript" = yes; thendnl javascript 	echo "Javascript enabled:	YES"dnl javascript 	echo "Regular expressions:	$reg_exp_mode"dnl javascript else echo "Javascript enabled:	NO"; fiif test "$cf_use_graphics" = yes; then 	echo "Graphics enabled:	YES"	echo "Graphics drivers:	`echo "$drivers"|sed 's/^ //'`"	echo "Image formats:		$image_formats"else echo "Graphics enabled:	NO"; fiif test "$ac_cv_have_emx" = yes; then	if test "$ac_cv_have_x2" != no; then echo "xterm for OS/2 support:	YES"; else echo "xterm for OS/2 support:	NO"; fifiecho "---------------------------------------------------------"#mv Makefile Makefile.tmp#grep -v DEPS_MAGIC Makefile.tmp >Makefile#rm Makefile.tmp

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -