Mercurial > hg > xemacs-beta
comparison configure.in @ 251:677f6a0ee643 r20-5b24
Import from CVS: tag r20-5b24
author | cvs |
---|---|
date | Mon, 13 Aug 2007 10:19:59 +0200 |
parents | 83b3d10dcba9 |
children | 084402c475ba |
comparison
equal
deleted
inserted
replaced
250:f385a461c9aa | 251:677f6a0ee643 |
---|---|
342 archlibdir='${libdir}/xemacs-${version}/${configuration}' | 342 archlibdir='${libdir}/xemacs-${version}/${configuration}' |
343 archlibdir_user_defined='no' | 343 archlibdir_user_defined='no' |
344 with_menubars='' | 344 with_menubars='' |
345 with_scrollbars='' | 345 with_scrollbars='' |
346 with_dialogs='' | 346 with_dialogs='' |
347 with_mule_coding='' | |
347 const_is_losing='yes' | 348 const_is_losing='yes' |
348 puresize='' | 349 puresize='' |
349 cflags='UNSPECIFIED' | 350 cflags='UNSPECIFIED' |
350 dynamic='' | 351 dynamic='' |
351 with_x11='' | 352 with_x11='' |
355 dnl use-assertions should be 'yes' by default. Too many people in this | 356 dnl use-assertions should be 'yes' by default. Too many people in this |
356 dnl world have core dumps turned off by default or \"cannot find where the | 357 dnl world have core dumps turned off by default or \"cannot find where the |
357 dnl core file went\". At least we should get some useful output ... | 358 dnl core file went\". At least we should get some useful output ... |
358 use_assertions="yes" | 359 use_assertions="yes" |
359 dnl the following is set to yes or no later. | 360 dnl the following is set to yes or no later. |
361 with_gif="" | |
360 dnl the following is set to yes or no later. | 362 dnl the following is set to yes or no later. |
361 with_toolbars="" | 363 with_toolbars="" |
362 with_tty="" | 364 with_tty="" |
363 use_union_type="no" | 365 use_union_type="no" |
364 with_dnet="" | 366 with_dnet="" |
454 with_cde | \ | 456 with_cde | \ |
455 with_offix | \ | 457 with_offix | \ |
456 with_gpm | \ | 458 with_gpm | \ |
457 with_xpm | \ | 459 with_xpm | \ |
458 with_xface | \ | 460 with_xface | \ |
459 with_imagick | \ | 461 with_gif | \ |
462 with_jpeg | \ | |
463 with_png | \ | |
464 with_tiff | \ | |
460 with_session | \ | 465 with_session | \ |
461 with_xmu | \ | 466 with_xmu | \ |
462 with_quantify | \ | 467 with_quantify | \ |
463 with_toolbars | \ | 468 with_toolbars | \ |
464 with_tty | \ | 469 with_tty | \ |
465 with_xfs | \ | 470 with_xfs | \ |
466 with_i18n3 | \ | 471 with_i18n3 | \ |
467 with_mule | \ | 472 with_mule | \ |
473 with_mule_coding | \ | |
468 with_canna | \ | 474 with_canna | \ |
469 with_wnn | \ | 475 with_wnn | \ |
470 with_wnn6 | \ | 476 with_wnn6 | \ |
471 with_workshop | \ | 477 with_workshop | \ |
472 with_sparcworks | \ | 478 with_sparcworks | \ |
1936 AC_PROG_YACC | 1942 AC_PROG_YACC |
1937 | 1943 |
1938 dnl checks for header files | 1944 dnl checks for header files |
1939 AC_CHECK_HEADERS(mach/mach.h sys/stropts.h sys/timeb.h sys/time.h unistd.h) | 1945 AC_CHECK_HEADERS(mach/mach.h sys/stropts.h sys/timeb.h sys/time.h unistd.h) |
1940 AC_CHECK_HEADERS(utime.h locale.h libgen.h fcntl.h ulimit.h) | 1946 AC_CHECK_HEADERS(utime.h locale.h libgen.h fcntl.h ulimit.h) |
1941 AC_CHECK_HEADERS(linux/version.h kstat.h sys/pstat.h inttypes.h sys/un.h coff.h) | 1947 AC_CHECK_HEADERS(linux/version.h kstat.h sys/pstat.h inttypes.h sys/un.h a.out.h) |
1942 AC_HEADER_SYS_WAIT | 1948 AC_HEADER_SYS_WAIT |
1943 AC_HEADER_STDC | 1949 AC_HEADER_STDC |
1944 AC_HEADER_TIME | 1950 AC_HEADER_TIME |
1945 AC_DECL_SYS_SIGLIST | 1951 AC_DECL_SYS_SIGLIST |
1946 | 1952 |
2111 case "$with_x11" in | 2117 case "$with_x11" in |
2112 yes ) window_system=x11 HAVE_X_WINDOWS=yes ;; | 2118 yes ) window_system=x11 HAVE_X_WINDOWS=yes ;; |
2113 no ) window_system=none HAVE_X_WINDOWS=no ;; | 2119 no ) window_system=none HAVE_X_WINDOWS=no ;; |
2114 esac | 2120 esac |
2115 | 2121 |
2116 if test "$window_system" = "none"; then | 2122 if test "$window_system" = "none" && test -z "$with_tty"; then |
2117 AC_CHECKING(for MS-Windows) | 2123 AC_CHECKING(for MS-Windows) |
2118 AC_CHECK_LIB(gdi32,main,have_msw=yes) | 2124 AC_CHECK_LIB(gdi32,main,have_msw=yes) |
2119 if test "$have_msw" = "yes"; then | 2125 if test "$have_msw" = "yes"; then |
2120 AC_DEFINE(HAVE_MS_WINDOWS) | 2126 AC_DEFINE(HAVE_MS_WINDOWS) |
2121 XE_APPEND(-lgdi32 -luser32, libs_system) | 2127 XE_APPEND(-lshell32 -lgdi32 -luser32, libs_system) |
2122 window_system=msw | 2128 window_system=msw |
2123 test "$with_scrollbars" != "no" && with_scrollbars=msw && XE_ADD_OBJS(scrollbar-msw.o) | 2129 test "$with_scrollbars" != "no" && with_scrollbars=msw && XE_ADD_OBJS(scrollbar-msw.o) |
2124 test "$with_menubars" != "no" && with_menubars=msw && XE_ADD_OBJS(menubar-msw.o) | 2130 test "$with_menubars" != "no" && with_menubars=msw && XE_ADD_OBJS(menubar-msw.o) |
2125 with_dialogs=msw | 2131 with_dialogs=msw |
2126 with_toolbars=no | 2132 with_toolbars=no |
2127 with_tty=no | 2133 with_tty=no |
2128 XE_ADD_OBJS(console-msw.o device-msw.o event-msw.o frame-msw.o objects-msw.o select-msw.o redisplay-msw.o) | 2134 const_is_losing=no |
2135 #with_mule_coding=yes | |
2136 XE_ADD_OBJS(console-msw.o device-msw.o event-msw.o frame-msw.o objects-msw.o select-msw.o redisplay-msw.o gif_err.o gifalloc.o dgif_lib.o) | |
2129 fi | 2137 fi |
2130 fi | 2138 fi |
2131 | 2139 |
2132 if test "$with_x11" = "yes"; then | 2140 if test "$with_x11" = "yes"; then |
2133 AC_DEFINE(HAVE_X_WINDOWS) | 2141 AC_DEFINE(HAVE_X_WINDOWS) |
2272 if test "$with_tty" = "no" ; then | 2280 if test "$with_tty" = "no" ; then |
2273 AC_MSG_ERROR([No window system support and no TTY support - Unable to proceed.]) | 2281 AC_MSG_ERROR([No window system support and no TTY support - Unable to proceed.]) |
2274 fi | 2282 fi |
2275 for feature in tooltalk cde offix session \ | 2283 for feature in tooltalk cde offix session \ |
2276 menubars scrollbars toolbars dialogs xim xmu \ | 2284 menubars scrollbars toolbars dialogs xim xmu \ |
2277 imagick xface xpm | 2285 tiff png jpeg gif xface xpm |
2278 do | 2286 do |
2279 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then | 2287 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then |
2280 AC_MSG_WARN([--with-$feature ignored: Not valid without X support]) | 2288 AC_MSG_WARN([--with-$feature ignored: Not valid without X support]) |
2281 fi | 2289 fi |
2282 eval "with_${feature}=no" | 2290 eval "with_${feature}=no" |
2409 if test "$with_xface" = "yes"; then | 2417 if test "$with_xface" = "yes"; then |
2410 AC_DEFINE(HAVE_XFACE) | 2418 AC_DEFINE(HAVE_XFACE) |
2411 XE_PREPEND(-lcompface, libs_x) | 2419 XE_PREPEND(-lcompface, libs_x) |
2412 fi | 2420 fi |
2413 | 2421 |
2414 dnl autodetect ImageMagick | 2422 dnl Built-in GIF support defaults to yes (note: this will be libraried soon) |
2415 test "$with_imagick" != "no" && { AC_CHECK_HEADER(magick/magick.h, ,AC_CHECK_HEADER(X11/magick/magick.h,AC_DEFINE(MAGICK_HEADERS_ARE_UNDER_X11),with_imagick=no)) } | 2423 test -z "$with_gif" && with_gif=yes; |
2416 test "$with_imagick" != "no" && { | 2424 if test "$with_gif" = "yes"; then |
2417 dnl check the appropriate libraries for ImageMagick | 2425 AC_DEFINE(HAVE_GIF) |
2418 dnl First, let's check libz or libgz for png... | 2426 XE_ADD_OBJS(dgif_lib.o gif_err.o gifalloc.o) |
2419 z_libs="" | 2427 fi |
2420 AC_CHECK_LIB(z, inflateInit_, XE_APPEND(-lz, z_libs), | 2428 |
2421 AC_CHECK_LIB(gz, inflateInit_, XE_APPEND(-lgz, z_libs))) | 2429 dnl autodetect JPEG |
2422 | 2430 test -z "$with_jpeg" && { AC_CHECK_HEADER(jpeglib.h, ,with_jpeg=no) } |
2423 imagick_libs="" | 2431 test -z "$with_jpeg" && { AC_CHECK_LIB(jpeg, jpeg_destroy_decompress,[:],with_jpeg=no) } |
2424 AC_CHECK_LIB(dps, XDPSPixelsPerPoint, XE_APPEND(-ldpstk -ldps, imagick_libs),,,-ldpstk) | 2432 test -z "$with_jpeg" && with_jpeg=yes |
2425 AC_CHECK_LIB(fpx, FPX_SetToolkitMemoryLimit, XE_APPEND(-lfpx, imagick_libs)) | 2433 if test "$with_jpeg" = "yes"; then |
2426 AC_CHECK_LIB(df, DF24getdims, XE_APPEND(-ldf, imagick_libs)) | 2434 AC_DEFINE(HAVE_JPEG) |
2427 AC_CHECK_LIB(jbig, jbg_dec_init, XE_APPEND(-ljbig, imagick_libs)) | 2435 XE_PREPEND(-ljpeg, libs_x) |
2428 AC_CHECK_LIB(jpeg, jpeg_read_header, XE_APPEND(-ljpeg, imagick_libs)) | 2436 fi |
2429 AC_CHECK_LIB(mpeg, OpenMPEG, XE_APPEND(-lmpeg, imagick_libs)) | 2437 |
2430 AC_CHECK_LIB(ttf, TT_Init_FreeType, XE_APPEND(-lttf, imagick_libs)) | 2438 dnl autodetect PNG |
2431 AC_CHECK_LIB(png, png_create_read_struct, XE_APPEND(-lpng, imagick_libs),,$z_libs) | 2439 test -z "$with_png" && { AC_CHECK_HEADER(png.h, , with_png=no) } |
2432 AC_CHECK_LIB(tiff, TIFFOpen, XE_APPEND(-ltiff, imagick_libs), | 2440 test -z "$with_png" && { AC_CHECK_FUNC(pow, , with_png=no) } |
2433 AC_CHECK_LIB(tiff, TIFFOpen, XE_APPEND(-ltiff -ljpeg, imagick_libs),,-ljpeg $z_libs),,$z_libs) | 2441 if test "$with_png" != "no"; then |
2434 XE_APPEND($z_libs, imagick_libs) | 2442 for extra_libs in "" "-lz" "-lgz"; do |
2435 XE_APPEND($imagick_libs, libs_x) | 2443 AC_CHECK_LIB(png, png_read_image, |
2436 } | 2444 png_libs="-lpng $extra_libs" with_png=yes; break,[:],$extra_libs) |
2437 test -z "$with_imagick" && { AC_CHECK_LIB(Magick, MogrifyImage,[:],with_imagick=no) } | 2445 done |
2438 test -z "$with_imagick" && with_imagick=yes | 2446 fi |
2439 if test "$with_imagick" = "yes"; then | 2447 test -z "$with_png" && with_png=no |
2440 AC_DEFINE(HAVE_IMAGEMAGICK) | 2448 if test "$with_png" = "yes"; then |
2441 XE_PREPEND(-lMagick, libs_x) | 2449 AC_DEFINE(HAVE_PNG) |
2442 fi | 2450 XE_PREPEND($png_libs, libs_x) |
2443 | 2451 fi |
2452 | |
2453 dnl autodetect TIFF | |
2454 if test "$with_tiff" != no; then | |
2455 for extra_libs in "" "-lz" "-lgz"; do | |
2456 AC_CHECK_LIB(tiff, TIFFReadScanline, | |
2457 tiff_libs="-ltiff $extra_libs" with_tiff=yes; break, [:], $extra_libs) | |
2458 done | |
2459 fi | |
2460 test -z "$with_tiff" && with_tiff=no | |
2461 if test "$with_tiff" = "yes"; then | |
2462 AC_DEFINE(HAVE_TIFF) | |
2463 XE_PREPEND($tiff_libs, libs_x) | |
2464 fi | |
2465 | |
2444 dnl Autodetect -lXaw | 2466 dnl Autodetect -lXaw |
2445 AC_CHECK_LIB(Xaw, XawScrollbarSetThumb, have_xaw=yes, have_xaw=no) | 2467 AC_CHECK_LIB(Xaw, XawScrollbarSetThumb, have_xaw=yes, have_xaw=no) |
2446 dnl if test "$have_xaw" = "yes"; then | 2468 dnl if test "$have_xaw" = "yes"; then |
2447 dnl AC_CHECK_HEADER(X11/Xaw/Reports.h, [ | 2469 dnl AC_CHECK_HEADER(X11/Xaw/Reports.h, [ |
2448 dnl XE_APPEND(pkg-src/tree-x, MAKE_SUBDIR) | 2470 dnl XE_APPEND(pkg-src/tree-x, MAKE_SUBDIR) |
2538 | 2560 |
2539 dnl ---------------------- | 2561 dnl ---------------------- |
2540 dnl Mule-dependent options | 2562 dnl Mule-dependent options |
2541 dnl ---------------------- | 2563 dnl ---------------------- |
2542 | 2564 |
2543 test -z "$with_mule" && with_mule=no | 2565 test -z "$with_mule" && with_mule=no |
2566 test -z "$with_mule_coding" && with_mule_coding=no | |
2544 | 2567 |
2545 dnl if test "$with_mule" = "yes" && test ! -d "$srcdir/lisp/mule"; then | 2568 dnl if test "$with_mule" = "yes" && test ! -d "$srcdir/lisp/mule"; then |
2546 dnl echo "Attempt to Build with Mule without Mule/Lisp" | 2569 dnl echo "Attempt to Build with Mule without Mule/Lisp" |
2547 dnl echo "Please install the XEmacs/Mule tarball or" | 2570 dnl echo "Please install the XEmacs/Mule tarball or" |
2548 dnl echo "rerun configure with --with-mule=no" | 2571 dnl echo "rerun configure with --with-mule=no" |
2549 dnl exit 1 | 2572 dnl exit 1 |
2550 dnl fi | 2573 dnl fi |
2551 | 2574 |
2575 if test "$with_mule_coding" = "yes" && test "$with_mule" = "no"; then | |
2576 AC_DEFINE(MULE_CODING) | |
2577 XE_ADD_OBJS(mule-coding.o) | |
2578 fi | |
2579 | |
2552 if test "$with_mule" = "yes" ; then | 2580 if test "$with_mule" = "yes" ; then |
2553 AC_CHECKING(for Mule-related features) | 2581 AC_CHECKING(for Mule-related features) |
2554 AC_DEFINE(MULE) | 2582 AC_DEFINE(MULE) |
2583 AC_DEFINE(MULE_CODING) | |
2555 XE_ADD_OBJS(mule.o mule-ccl.o mule-charset.o mule-coding.o) | 2584 XE_ADD_OBJS(mule.o mule-ccl.o mule-charset.o mule-coding.o) |
2556 | 2585 |
2557 dnl Use -lintl to get internationalized strerror for Mule | 2586 dnl Use -lintl to get internationalized strerror for Mule |
2558 AC_CHECK_HEADERS(libintl.h) | 2587 AC_CHECK_HEADERS(libintl.h) |
2559 AC_CHECK_LIB(intl, strerror) | 2588 AC_CHECK_LIB(intl, strerror) |
3367 echo " WARNING: You should strongly considering installing XPM." | 3396 echo " WARNING: You should strongly considering installing XPM." |
3368 echo " WARNING: Otherwise toolbars and other graphics will look suboptimal." | 3397 echo " WARNING: Otherwise toolbars and other graphics will look suboptimal." |
3369 echo " --------------------------------------------------------------------" | 3398 echo " --------------------------------------------------------------------" |
3370 fi | 3399 fi |
3371 test "$with_xface" = yes && echo " Compiling in support for X-Face message headers." | 3400 test "$with_xface" = yes && echo " Compiling in support for X-Face message headers." |
3372 test "$with_imagick" = yes && echo " Compiling in support for ImageMagick image conversion." | 3401 test "$with_gif" = yes && echo " Compiling in (built in) support for GIF image conversion." |
3373 test "$with_imagick" = yes && echo " Using $imagick_libs for graphics libraries." | 3402 test "$with_jpeg" = yes && echo " Compiling in support for JPEG image conversion." |
3403 test "$with_png" = yes && echo " Compiling in support for PNG image conversion." | |
3404 test "$with_tiff" = yes && echo " Compiling in support for TIFF image conversion (not implemented)." | |
3374 case "$with_sound" in | 3405 case "$with_sound" in |
3375 nas ) echo " Compiling in network sound (NAS) support." ;; | 3406 nas ) echo " Compiling in network sound (NAS) support." ;; |
3376 native ) echo " Compiling in native sound support." ;; | 3407 native ) echo " Compiling in native sound support." ;; |
3377 both ) echo " Compiling in both network and native sound support." ;; | 3408 both ) echo " Compiling in both network and native sound support." ;; |
3378 esac | 3409 esac |
3384 | 3415 |
3385 test "$with_ncurses" = yes && echo " Compiling in support for ncurses." | 3416 test "$with_ncurses" = yes && echo " Compiling in support for ncurses." |
3386 test "$with_gpm" = yes && echo " Compiling in support for GPM (General Purpose Mouse)." | 3417 test "$with_gpm" = yes && echo " Compiling in support for GPM (General Purpose Mouse)." |
3387 | 3418 |
3388 test "$with_mule" = yes && echo " Compiling in Mule (multi-lingual) support." | 3419 test "$with_mule" = yes && echo " Compiling in Mule (multi-lingual) support." |
3420 test "$with_mule_coding" = yes && echo " Compiling in Mule coding support." | |
3389 test "$with_xim" != no && echo " Compiling in XIM (X11R5+ I18N input method) support." | 3421 test "$with_xim" != no && echo " Compiling in XIM (X11R5+ I18N input method) support." |
3390 test "$with_xim" = motif && echo " Using Motif to provide XIM support." | 3422 test "$with_xim" = motif && echo " Using Motif to provide XIM support." |
3391 test "$with_xim" = xlib && echo " Using raw Xlib to provide XIM support." | 3423 test "$with_xim" = xlib && echo " Using raw Xlib to provide XIM support." |
3392 test "$with_xfs" = yes && echo " Using XFontSet to provide bilingual menubar." | 3424 test "$with_xfs" = yes && echo " Using XFontSet to provide bilingual menubar." |
3393 test "$with_canna" = yes && echo " Compiling in support for Canna on Mule." | 3425 test "$with_canna" = yes && echo " Compiling in support for Canna on Mule." |