comparison configure.in @ 217:d44af0c54775 r20-4b7

Import from CVS: tag r20-4b7
author cvs
date Mon, 13 Aug 2007 10:08:34 +0200
parents 1f0dabaa0855
children 262b8bb4a523
comparison
equal deleted inserted replaced
216:43306a74e31c 217:d44af0c54775
349 cflags='UNSPECIFIED' 349 cflags='UNSPECIFIED'
350 dynamic='' 350 dynamic=''
351 with_x11='' 351 with_x11=''
352 rel_alloc='default' 352 rel_alloc='default'
353 with_system_malloc='default' 353 with_system_malloc='default'
354 energize_version=''
355 native_sound_lib='' 354 native_sound_lib=''
356 dnl use-assertions should be 'yes' by default. Too many people in this 355 dnl use-assertions should be 'yes' by default. Too many people in this
357 dnl world have core dumps turned off by default or \"cannot find where the 356 dnl world have core dumps turned off by default or \"cannot find where the
358 dnl core file went\". At least we should get some useful output ... 357 dnl core file went\". At least we should get some useful output ...
359 use_assertions="yes" 358 use_assertions="yes"
462 with_i18n3 | \ 461 with_i18n3 | \
463 with_mule | \ 462 with_mule | \
464 with_canna | \ 463 with_canna | \
465 with_wnn | \ 464 with_wnn | \
466 with_wnn6 | \ 465 with_wnn6 | \
467 with_energize | \
468 with_workshop | \ 466 with_workshop | \
469 with_sparcworks | \ 467 with_sparcworks | \
470 with_tooltalk | \ 468 with_tooltalk | \
471 with_pop | \ 469 with_pop | \
472 with_kerberos | \ 470 with_kerberos | \
734 fi 732 fi
735 733
736 dnl Get the arguments back. See the diatribe on Shell Magic above. 734 dnl Get the arguments back. See the diatribe on Shell Magic above.
737 eval set x "$quoted_arguments"; shift 735 eval set x "$quoted_arguments"; shift
738 736
739 dnl Argument interdependencies
740 if test "$with_energize" = "yes" ; then
741 with_menubars=lucid with_scrollbars=motif with_dialogs=motif with_tooltalk=yes
742 XE_APPEND(lwlib/energize, MAKE_SUBDIR)
743 fi
744
745 dnl --extra-verbose implies --verbose 737 dnl --extra-verbose implies --verbose
746 test "$extra_verbose" = "yes" && verbose=yes 738 test "$extra_verbose" = "yes" && verbose=yes
747 739
748 dnl Allow use of either ":" or spaces for lists of directories 740 dnl Allow use of either ":" or spaces for lists of directories
749 define(COLON_TO_SPACE, 741 define(COLON_TO_SPACE,
905 dnl Given the configuration name, set machfile and opsysfile to the 897 dnl Given the configuration name, set machfile and opsysfile to the
906 dnl names of the m/*.h and s/*.h files we should use. 898 dnl names of the m/*.h and s/*.h files we should use.
907 899
908 dnl Canonicalize the configuration name. 900 dnl Canonicalize the configuration name.
909 AC_CHECKING("the configuration name") 901 AC_CHECKING("the configuration name")
910 dnl allow -energize or -workshop suffix on configuration name 902 dnl allow -workshop suffix on configuration name
911 internal_configuration=`echo $configuration | sed 's/-\(energize\|workshop\)//'` 903 internal_configuration=`echo $configuration | sed 's/-\(workshop\)//'`
912 if canonical=`$srcdir/config.sub "$internal_configuration"` ; then : ; else 904 if canonical=`$srcdir/config.sub "$internal_configuration"` ; then : ; else
913 exit $? 905 exit $?
914 fi 906 fi
915 907
916 dnl If you add support for a new configuration, add code to this 908 dnl If you add support for a new configuration, add code to this
2314 XE_PREPEND(-lDtSvc, libs_x) 2306 XE_PREPEND(-lDtSvc, libs_x)
2315 with_tooltalk=yes # CDE requires Tooltalk 2307 with_tooltalk=yes # CDE requires Tooltalk
2316 need_motif=yes # CDE requires Motif 2308 need_motif=yes # CDE requires Motif
2317 fi 2309 fi
2318 2310
2319 dnl if Energize specified, make sure we can find its libraries/headers
2320 if test "$with_energize" = "yes" ; then
2321 AC_DEFINE(ENERGIZE)
2322 AC_CHECK_LIB(energize, main, [
2323 XE_PREPEND(-lenergize, LIBS)
2324 energize_version="3.X"
2325 AC_DEFINE(ENERGIZE_3)])
2326 if test -z "$energize_version"; then
2327 AC_CHECK_LIB(conn, main, [
2328 XE_PREPEND(-lconn, LIBS)
2329 energize_version="2.X"
2330 AC_DEFINE(ENERGIZE_2)],
2331 [AC_MSG_ERROR(Unable to find Energize library.)])
2332 fi
2333 AC_CHECK_HEADER(editorconn.h, ,
2334 [AC_MSG_ERROR(Unable to find Energize editorconn.h header file.)])
2335
2336 test "$energize_version" = "2.X" && AC_DEFINE(ENERGIZE_2)
2337 test "$energize_version" = "3.X" && AC_DEFINE(ENERGIZE_3)
2338 fi
2339
2340 dnl ---------------------- 2311 dnl ----------------------
2341 dnl X11 Graphics libraries 2312 dnl X11 Graphics libraries
2342 dnl ---------------------- 2313 dnl ----------------------
2343 2314
2344 if test "$with_x11" = "yes"; then 2315 if test "$with_x11" = "yes"; then
2383 XE_PREPEND(-lcompface, libs_x) 2354 XE_PREPEND(-lcompface, libs_x)
2384 fi 2355 fi
2385 2356
2386 dnl autodetect ImageMagick 2357 dnl autodetect ImageMagick
2387 test -z "$with_imagick" && { AC_CHECK_HEADER(magick/magick.h, ,with_imagick=no) } 2358 test -z "$with_imagick" && { AC_CHECK_HEADER(magick/magick.h, ,with_imagick=no) }
2359 test -z "$with_imagick" && {
2360 dnl check the appropriate libraries for ImageMagick
2361 imagick_libs=""
2362 AC_CHECK_LIB(dps, XDPSPixelsPerPoint, XE_APPEND(-ldpstk -ldps, imagick_libs),,,-ldpstk)
2363 AC_CHECK_LIB(fpx, FPX_SetToolkitMemoryLimit, XE_APPEND(-lfpx, imagick_libs))
2364 AC_CHECK_LIB(df, DF24getdims, XE_APPEND(-ldf, imagick_libs))
2365 AC_CHECK_LIB(jbig, jbg_dec_init, XE_APPEND(-ljbig, imagick_libs))
2366 AC_CHECK_LIB(jpeg, jpeg_read_header, XE_APPEND(-ljpeg, imagick_libs))
2367 AC_CHECK_LIB(mpeg, OpenMPEG, XE_APPEND(-lmpeg, imagick_libs))
2368 AC_CHECK_LIB(png, png_create_read_struct, XE_APPEND(-lpng, imagick_libs),
2369 AC_CHECK_LIB(png, png_create_read_struct, XE_APPEND(-lpng -lz, imagick_libs),,-lz))
2370 AC_CHECK_LIB(tiff, TIFFOpen, XE_APPEND(-ltiff, imagick_libs),
2371 AC_CHECK_LIB(tiff, TIFFOpen, XE_APPEND(-ltiff -ljpeg -lz, imagick_libs),,-ljpeg -lz))
2372 XE_APPEND($imagick_libs, libs_x)
2373 }
2388 test -z "$with_imagick" && { AC_CHECK_LIB(Magick, MogrifyImage,[:],with_imagick=no) } 2374 test -z "$with_imagick" && { AC_CHECK_LIB(Magick, MogrifyImage,[:],with_imagick=no) }
2389 test -z "$with_imagick" && with_imagick=yes 2375 test -z "$with_imagick" && with_imagick=yes
2390 if test "$with_imagick" = "yes"; then 2376 if test "$with_imagick" = "yes"; then
2391 AC_DEFINE(HAVE_IMAGEMAGICK) 2377 AC_DEFINE(HAVE_IMAGEMAGICK)
2392 XE_PREPEND(-lMagick, libs_x) 2378 XE_PREPEND(-lMagick, libs_x)
3349 3335
3350 test "$with_cde" = yes && echo " Compiling in support for CDE." 3336 test "$with_cde" = yes && echo " Compiling in support for CDE."
3351 test "$with_tooltalk" = yes && echo " Compiling in support for ToolTalk." 3337 test "$with_tooltalk" = yes && echo " Compiling in support for ToolTalk."
3352 test "$with_offix" = yes && echo " Compiling in support for OffiX." 3338 test "$with_offix" = yes && echo " Compiling in support for OffiX."
3353 test "$with_workshop" = yes && echo " Compiling in support for Sun WorkShop." 3339 test "$with_workshop" = yes && echo " Compiling in support for Sun WorkShop."
3354 test "$with_energize" = yes && echo " Compiling in support for Lucid Energize (doesn't currently work)."
3355 test "$with_session" != no && echo " Compiling in support for proper session-management." 3340 test "$with_session" != no && echo " Compiling in support for proper session-management."
3356 case "$with_menubars" in 3341 case "$with_menubars" in
3357 lucid ) echo " Using Lucid menubars." ;; 3342 lucid ) echo " Using Lucid menubars." ;;
3358 motif ) echo " Using Motif menubars." 3343 motif ) echo " Using Motif menubars."
3359 echo " *WARNING* The Motif menubar implementation is currently buggy." 3344 echo " *WARNING* The Motif menubar implementation is currently buggy."