Mercurial > hg > xemacs-beta
comparison configure.in @ 167:85ec50267440 r20-3b10
Import from CVS: tag r20-3b10
author | cvs |
---|---|
date | Mon, 13 Aug 2007 09:45:46 +0200 |
parents | 5a88923fcbfe |
children | 15872534500d |
comparison
equal
deleted
inserted
replaced
166:7a77eb660975 | 167:85ec50267440 |
---|---|
311 dnl ----------------------------- | 311 dnl ----------------------------- |
312 dnl Establish some default values | 312 dnl Establish some default values |
313 dnl ----------------------------- | 313 dnl ----------------------------- |
314 | 314 |
315 XE_APPEND(lib-src, MAKE_SUBDIR) | 315 XE_APPEND(lib-src, MAKE_SUBDIR) |
316 XE_APPEND(lib-src, INSTALL_ARCH_DEP_SUBDIR) | |
316 | 317 |
317 dnl run_in_place='no' | 318 dnl run_in_place='no' |
318 prefix='/usr/local' | 319 prefix='/usr/local' |
319 exec_prefix='${prefix}' | 320 exec_prefix='${prefix}' |
320 bindir='${exec_prefix}/bin' | 321 bindir='${exec_prefix}/bin' |
1611 AC_AIX | 1612 AC_AIX |
1612 | 1613 |
1613 AC_MSG_CHECKING(whether we are using SunPro C) | 1614 AC_MSG_CHECKING(whether we are using SunPro C) |
1614 AC_TRY_COMPILE([],[#ifndef __SUNPRO_C | 1615 AC_TRY_COMPILE([],[#ifndef __SUNPRO_C |
1615 #error Not a SunPro compiler :-( | 1616 #error Not a SunPro compiler :-( |
1617 ******* ======= ******** &&&&&&&& | |
1616 #endif | 1618 #endif |
1617 ], __sunpro_c=yes, __sunpro_c=no) | 1619 ], __sunpro_c=yes, __sunpro_c=no) |
1618 AC_MSG_RESULT($__sunpro_c) | 1620 AC_MSG_RESULT($__sunpro_c) |
1619 | 1621 |
1620 dnl case "$canonical" in | 1622 dnl case "$canonical" in |
2309 dnl #### Someone, please add a better function than main | 2311 dnl #### Someone, please add a better function than main |
2310 AC_CHECK_LIB(Xbsd, main, XE_PREPEND(-lXbsd, libs_x)) | 2312 AC_CHECK_LIB(Xbsd, main, XE_PREPEND(-lXbsd, libs_x)) |
2311 | 2313 |
2312 dnl Autodetect -lXaw | 2314 dnl Autodetect -lXaw |
2313 AC_CHECK_LIB(Xaw, XawScrollbarSetThumb, have_xaw=yes, have_xaw=no) | 2315 AC_CHECK_LIB(Xaw, XawScrollbarSetThumb, have_xaw=yes, have_xaw=no) |
2316 if test "$have_xaw" = "yes"; then | |
2317 AC_CHECK_HEADER(X11/Xaw/Reports.h, [ | |
2318 XE_APPEND(pkg-src/tree-x, MAKE_SUBDIR) | |
2319 XE_APPEND(pkg-src/tree-x, INSTALL_ARCH_DEP_SUBDIR)]) | |
2320 fi | |
2314 | 2321 |
2315 fi dnl $with_x11 = yes | 2322 fi dnl $with_x11 = yes |
2316 | 2323 |
2317 test -z "$window_system" && window_system="none" | 2324 test -z "$window_system" && window_system="none" |
2318 | 2325 |
2397 test -z "$with_cde" && with_cde=yes | 2404 test -z "$with_cde" && with_cde=yes |
2398 if test "$with_cde" = "yes" ; then | 2405 if test "$with_cde" = "yes" ; then |
2399 AC_DEFINE(HAVE_CDE) | 2406 AC_DEFINE(HAVE_CDE) |
2400 XE_PREPEND(-lDtSvc, libs_x) | 2407 XE_PREPEND(-lDtSvc, libs_x) |
2401 with_tooltalk=yes # CDE requires Tooltalk | 2408 with_tooltalk=yes # CDE requires Tooltalk |
2402 with_motif=yes # CDE requires Motif | 2409 need_motif=yes # CDE requires Motif |
2403 fi | 2410 fi |
2404 | 2411 |
2405 dnl if Energize specified, make sure we can find its need libraries/headers | 2412 dnl if Energize specified, make sure we can find its need libraries/headers |
2406 if test "$with_energize" = "yes" ; then | 2413 if test "$with_energize" = "yes" ; then |
2407 AC_DEFINE(ENERGIZE) | 2414 AC_DEFINE(ENERGIZE) |
2618 fi | 2625 fi |
2619 fi dnl with_xim | 2626 fi dnl with_xim |
2620 | 2627 |
2621 dnl Autodetect WNN | 2628 dnl Autodetect WNN |
2622 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support | 2629 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support |
2623 test -z "$with_wnn" && { AC_CHECK_HEADER(wnn/jllib.h, ,with_wnn=no) } | 2630 test -z "$with_wnn" && { AC_CHECK_HEADER(wnn/jllib.h, ,with_wnn=no) } |
2631 dnl Detour to find crypt | |
2632 if test "$with_wnn" != "no"; then | |
2633 AC_CHECK_FUNCS(crypt) | |
2634 test "$ac_cv_func_crypt" != "yes" && { AC_CHECK_LIB(crypt, crypt) } | |
2635 fi | |
2636 dnl Back to our regularly scheduled wnn hunting | |
2624 test -z "$with_wnn" && { AC_CHECK_LIB(wnn,jl_dic_list_e,[:],with_wnn=no) } | 2637 test -z "$with_wnn" && { AC_CHECK_LIB(wnn,jl_dic_list_e,[:],with_wnn=no) } |
2625 test -z "$with_wnn" && with_wnn=yes | 2638 test -z "$with_wnn" && with_wnn=yes |
2626 if test "$with_wnn" = "yes"; then | 2639 if test "$with_wnn" = "yes"; then |
2627 AC_DEFINE(HAVE_WNN) | 2640 AC_DEFINE(HAVE_WNN) |
2628 XE_PREPEND(-lwnn, libs_x) | 2641 XE_PREPEND(-lwnn, libs_x) |
2656 if test "$need_motif" = "yes" ; then | 2669 if test "$need_motif" = "yes" ; then |
2657 XE_PREPEND(-lXm, libs_x) | 2670 XE_PREPEND(-lXm, libs_x) |
2658 XE_COMPUTE_RUNPATH() | 2671 XE_COMPUTE_RUNPATH() |
2659 fi | 2672 fi |
2660 | 2673 |
2661 AC_CHECK_FUNCS(acosh asinh atanh cbrt closedir dup2 eaccess fmod fpathconf frexp ftime gethostname getpagesize gettimeofday getcwd getwd logb lrand48 matherr mkdir mktime perror poll random rename res_init rint rmdir select setitimer setpgid setlocale setsid sigblock sighold sigprocmask strcasecmp strerror tzset utimes waitpid) | 2674 AC_CHECK_FUNCS(acosh asinh atanh cbrt closedir dup2 eaccess fmod fpathconf frexp ftime gethostname getpagesize gettimeofday getcwd getwd logb lrand48 matherr mkdir mktime perror poll random rename res_init rint rmdir select setitimer setpgid setlocale setsid sigblock sighold sigprocmask strcasecmp strerror tzset usleep utimes waitpid) |
2662 | 2675 |
2663 dnl realpath is buggy on linux, decosf and aix4 | 2676 dnl realpath is buggy on linux, decosf and aix4 |
2664 | 2677 |
2665 dnl The realpath() in linux libc (4.6.27) sometimes fails with ELOOP. | 2678 dnl The realpath() in linux libc (4.6.27) sometimes fails with ELOOP. |
2666 dnl For example, call realpath on a file thirty-five or so directories deep | 2679 dnl For example, call realpath on a file thirty-five or so directories deep |
3175 XE_APPEND(src, MAKE_SUBDIR) | 3188 XE_APPEND(src, MAKE_SUBDIR) |
3176 internal_makefile_list="Makefile" | 3189 internal_makefile_list="Makefile" |
3177 SUBDIR_MAKEFILES='' | 3190 SUBDIR_MAKEFILES='' |
3178 test -d lock || mkdir lock | 3191 test -d lock || mkdir lock |
3179 for dir in $MAKE_SUBDIR; do | 3192 for dir in $MAKE_SUBDIR; do |
3180 test -d "$dir" || mkdir "$dir" | 3193 case "$dir" in */* ) dnl Implement mkdir -p |
3194 ( for d in `echo $dir | sed 's:/: :g'` ; do | |
3195 test -d "$d" || mkdir "$d"; cd "$d" | |
3196 done ) ;; | |
3197 * ) test -d "$dir" || mkdir "$dir" ;; | |
3198 esac | |
3181 XE_SPACE(SUBDIR_MAKEFILES, $SUBDIR_MAKEFILES $dir/Makefile) | 3199 XE_SPACE(SUBDIR_MAKEFILES, $SUBDIR_MAKEFILES $dir/Makefile) |
3182 XE_SPACE(internal_makefile_list, $internal_makefile_list $dir/Makefile.in) | 3200 XE_SPACE(internal_makefile_list, $internal_makefile_list $dir/Makefile.in) |
3183 done | 3201 done |
3202 AC_SUBST(INSTALL_ARCH_DEP_SUBDIR) | |
3184 AC_SUBST(MAKE_SUBDIR) | 3203 AC_SUBST(MAKE_SUBDIR) |
3185 AC_SUBST(SUBDIR_MAKEFILES) | 3204 AC_SUBST(SUBDIR_MAKEFILES) |
3186 | 3205 |
3187 dnl Make s&m symlinks in the src directory, for config.h | 3206 dnl Make s&m symlinks in the src directory, for config.h |
3188 for dir in src/s src/m; do | 3207 for dir in src/s src/m; do |
3301 test -n "$puresize" && AC_DEFINE_UNQUOTED(RAW_PURESIZE, $puresize) | 3320 test -n "$puresize" && AC_DEFINE_UNQUOTED(RAW_PURESIZE, $puresize) |
3302 | 3321 |
3303 if test "$GNU_MALLOC" = "yes"; then AC_DEFINE(GNU_MALLOC) | 3322 if test "$GNU_MALLOC" = "yes"; then AC_DEFINE(GNU_MALLOC) |
3304 elif test "$use_system_malloc" = "yes"; then AC_DEFINE(USE_SYSTEM_MALLOC) | 3323 elif test "$use_system_malloc" = "yes"; then AC_DEFINE(USE_SYSTEM_MALLOC) |
3305 fi | 3324 fi |
3306 test "$with_motif" = "yes" && AC_DEFINE(LWLIB_USES_MOTIF) | |
3307 test "$with_i18n3" = "yes" && AC_DEFINE(I18N3) | 3325 test "$with_i18n3" = "yes" && AC_DEFINE(I18N3) |
3308 test "$with_gcc" = "yes" && AC_DEFINE(USE_GCC) | 3326 test "$with_gcc" = "yes" && AC_DEFINE(USE_GCC) |
3309 test "$with_term" = "yes" && AC_DEFINE(HAVE_TERM) | 3327 test "$with_term" = "yes" && AC_DEFINE(HAVE_TERM) |
3310 test "$external_widget" = "yes" && AC_DEFINE(EXTERNAL_WIDGET) | 3328 test "$external_widget" = "yes" && AC_DEFINE(EXTERNAL_WIDGET) |
3311 test "$with_gnu_make" = "yes" && AC_DEFINE(USE_GNU_MAKE) | 3329 test "$with_gnu_make" = "yes" && AC_DEFINE(USE_GNU_MAKE) |