comparison configure @ 116:9f59509498e1 r20-1b10

Import from CVS: tag r20-1b10
author cvs
date Mon, 13 Aug 2007 09:23:06 +0200
parents 8619ce7e4c50
children 7d55a9ba150c
comparison
equal deleted inserted replaced
115:f109f7dabbe2 116:9f59509498e1
289 289
290 290
291 Debugging options: 291 Debugging options:
292 292
293 --debug Compile with support for debugging XEmacs. 293 --debug Compile with support for debugging XEmacs.
294 (Causes code-size increase but no loss of speed.) 294 (Causes code-size increase and little loss of speed.)
295 --error-checking=TYPE[,TYPE]... 295 --error-checking=TYPE[,TYPE]...
296 Compile with internal error-checking added. 296 Compile with internal error-checking added.
297 Causes noticeable loss of speed. Valid types 297 Causes noticeable loss of speed. Valid types
298 are extents, bufpos, malloc, gc, typecheck. 298 are extents, bufpos, malloc, gc, typecheck.
299 --error-checking=none Disable all internal error-checking (the default). 299 --error-checking=none Disable all internal error-checking (the default).
2677 done 2677 done
2678 elif test -z "${with_toolbars}" ; then 2678 elif test -z "${with_toolbars}" ; then
2679 with_toolbars='yes' 2679 with_toolbars='yes'
2680 fi 2680 fi
2681 2681
2682 runtime_arg="-R${dash_r_space}"
2683
2682 case "${canonical}" in 2684 case "${canonical}" in
2683 *-sun-solaris* | *-sun-sunos5* ) add_runtime_flag=yes ;; 2685 *-sun-solaris* | *-sun-sunos5* )
2686 add_runtime_flag=yes ;;
2687 *-sgi-irix5.* )
2688 # In the IRIX 5.3 ld, only the last -rpath arg has any effect. This is
2689 # fundamentaly incompatible with having separate LD_SWITCH_X_SITE
2690 # and LD_SWITCH_SITE variables. Fortunately, SGI fixed this by 6.2.
2691 if [ -n "${x_libraries}" ] || [ -n "${site_runtime_libraries}" ]; then
2692 (echo "WARNING: The IRIX 5 ld ignores all but the last -rpath argument,";
2693 echo " so if you need to specify more than one additional";
2694 echo " runtime library directory, you will have to do so";
2695 echo " manually by setting the environment variable";
2696 echo " LD_SWITCH_SITE to '-rpath <path>' before running";
2697 echo " configure. If you have only one additional directory,"
2698 echo " you can specify it with --site-runtime-libraries.") >&2
2699 fi
2700 runtime_arg="-rpath " ;;
2701 *-sgi-irix* )
2702 # Note that IRIX gcc (as of 2.7.2) doesn't accept -rpath, so
2703 # using it can cause trouble. Specifying --use-gcc=no will work
2704 # around this, but the real problem is that configure uses $LDFLAGS
2705 # as arguments to $(CC), instead of using prefix-args like the
2706 # src/Makefile does.
2707 add_runtime_flag=yes;
2708 runtime_arg="-rpath " ;;
2684 esac 2709 esac
2685 2710
2686 if test -n "${x_libraries}" ; then 2711 if test -n "${x_libraries}" ; then
2687 if test "${add_runtime_flag}" ; then 2712 if test "${add_runtime_flag}" = "yes" ; then
2688 LD_SWITCH_X_SITE="-L${x_libraries} -R${dash_r_space}${x_libraries}" 2713 LD_SWITCH_X_SITE="-L${x_libraries} ${runtime_arg}${x_libraries}"
2689 else 2714 else
2690 LD_SWITCH_X_SITE="-L${x_libraries}" 2715 LD_SWITCH_X_SITE="-L${x_libraries}"
2691 fi 2716 fi
2692 fi 2717 fi
2693 # LD_SWITCH_X_SITE_AUX (from FSF) is ill-conceived. See s/sol2*.h. 2718 # LD_SWITCH_X_SITE_AUX (from FSF) is ill-conceived. See s/sol2*.h.
2702 fi 2727 fi
2703 if test -n "${site_runtime_libraries}" ; then 2728 if test -n "${site_runtime_libraries}" ; then
2704 for arg in ${site_runtime_libraries} 2729 for arg in ${site_runtime_libraries}
2705 do 2730 do
2706 LD_SWITCH_SITE="${LD_SWITCH_SITE} -L${arg}" 2731 LD_SWITCH_SITE="${LD_SWITCH_SITE} -L${arg}"
2707 LD_SWITCH_SITE="${LD_SWITCH_SITE} -R${dash_r_space}${arg}" 2732 LD_SWITCH_SITE="${LD_SWITCH_SITE} ${runtime_arg}${arg}"
2708 done 2733 done
2709 fi 2734 fi
2710 if test -n "${site_includes}" ; then 2735 if test -n "${site_includes}" ; then
2711 for arg in ${site_includes} 2736 for arg in ${site_includes}
2712 do 2737 do
2853 # The value of CPP is a quoted variable reference, so we need to do this 2878 # The value of CPP is a quoted variable reference, so we need to do this
2854 # to get its actual value... 2879 # to get its actual value...
2855 CPP=`eval "echo $CPP"` 2880 CPP=`eval "echo $CPP"`
2856 eval `${CPP} -Isrc ${tempcname} \ 2881 eval `${CPP} -Isrc ${tempcname} \
2857 | grep 'configure___' \ 2882 | grep 'configure___' \
2858 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'` 2883 | sed -n -e 's/^configure___ \(^=*=\)\(.*\)$/\1"\2"/p'`
2859 if test "x$SPECIFIED_CFLAGS" = x ; then 2884 if test "x$SPECIFIED_CFLAGS" = x ; then
2860 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \ 2885 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
2861 | grep 'configure___' \ 2886 | grep 'configure___' \
2862 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'` 2887 | sed -n -e 's/^configure___ \(^=*=\)\(.*\)$/\1"\2"/p'`
2863 else 2888 else
2864 REAL_CFLAGS="$CFLAGS" 2889 REAL_CFLAGS="$CFLAGS"
2865 fi 2890 fi
2866 rm ${tempcname} 2891 rm ${tempcname}
2867 2892
2889 LISP_FLOAT_TYPE=yes 2914 LISP_FLOAT_TYPE=yes
2890 2915
2891 2916
2892 #### Add the libraries to LIBS and check for some functions. 2917 #### Add the libraries to LIBS and check for some functions.
2893 2918
2894 2919 ]
2895 CPPFLAGS="${C_SWITCH_SITE} $c_switch_system $c_switch_machine $c_switch_x_system $CPPFLAGS" 2920 CPPFLAGS="${C_SWITCH_SITE} $c_switch_system $c_switch_machine $c_switch_x_system $CPPFLAGS"
2896 DEFS="${C_SWITCH_SITE} $c_switch_system $c_switch_machine $c_switch_x_system $DEFS" 2921 DEFS="${C_SWITCH_SITE} $c_switch_system $c_switch_machine $c_switch_x_system $DEFS"
2897 LIBS="${LD_SWITCH_SITE} $ld_switch_x_system $libsrc_libs $LIBS" 2922 LIBS="${LD_SWITCH_SITE} $ld_switch_x_system $libsrc_libs $LIBS"
2898 2923
2899 ac_save_LIBS="${LIBS}" 2924 ac_save_LIBS="${LIBS}"
5854 for arg in "-L/usr/lib" "-L${OPENWINHHOME-/usr/openwin}/lib" "-L/usr/dt/lib" 5879 for arg in "-L/usr/lib" "-L${OPENWINHHOME-/usr/openwin}/lib" "-L/usr/dt/lib"
5855 do 5880 do
5856 case "${arg}" in 5881 case "${arg}" in
5857 -L*) if test -f `echo "${arg}/libtt.a" | sed 's/^\-L//'` ; then 5882 -L*) if test -f `echo "${arg}/libtt.a" | sed 's/^\-L//'` ; then
5858 dash_r='' 5883 dash_r=''
5859 if test -n "${add_runtime_flag}" ; then 5884 if "${add_runtime_flag}" = "yes" ; then
5860 dash_r=`echo ${arg} | sed "s/^-L/-R${dash_r_space}/"` 5885 dash_r=`echo ${arg} | sed "s/^-L */${runtime_arg}/"`
5861 fi 5886 fi
5862 LD_SWITCH_X_SITE="${LD_SWITCH_X_SITE} ${arg} ${dash_r}" 5887 LD_SWITCH_X_SITE="${LD_SWITCH_X_SITE} ${arg} ${dash_r}"
5863 fi 5888 fi
5864 ;; 5889 ;;
5865 esac 5890 esac
6974 " 6999 "
6975 } 7000 }
6976 7001
6977 7002
6978 7003
7004 echo "$0 $configure_args" >> Installation
7005 # Start stdout redirection to '| tee -a Installation'
7006 (
6979 echo " 7007 echo "
6980 7008
6981 Configured for \`${canonical}'. 7009 Configured for \`${canonical}'.
6982 7010
6983 Where should the build process find the source code? ${srcdir} 7011 Where should the build process find the source code? ${srcdir}
6987 What compiler should XEmacs be built with? ${CC} ${CFLAGS} 7015 What compiler should XEmacs be built with? ${CC} ${CFLAGS}
6988 Should XEmacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason} 7016 Should XEmacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
6989 Should XEmacs use the relocating allocator for buffers? ${rel_alloc} 7017 Should XEmacs use the relocating allocator for buffers? ${rel_alloc}
6990 What window system should XEmacs use? ${window_system}${x_includes+ 7018 What window system should XEmacs use? ${window_system}${x_includes+
6991 Where do we find X Windows header files? }${x_includes}${x_libraries+ 7019 Where do we find X Windows header files? }${x_includes}${x_libraries+
6992 Where do we find X Windows libraries? }${x_libraries}" >> Installation 7020 Where do we find X Windows libraries? }${x_libraries}"
6993 7021
6994 if test -n "$site_includes"; then 7022 if test -n "$site_includes"; then
6995 echo " Additional header files: ${site_includes}" >> Installation 7023 echo " Additional header files: ${site_includes}"
6996 fi 7024 fi
6997 7025
6998 if test -n "$site_libraries" -a -n "$site_runtime_libraries"; then 7026 if test -n "$site_libraries" -a -n "$site_runtime_libraries"; then
6999 echo " Additional libraries: ${site_libraries} ${site_runtime_libraries}" >> Installation 7027 echo " Additional libraries: ${site_libraries} ${site_runtime_libraries}"
7000 elif test -n "$site_libraries"; then 7028 elif test -n "$site_libraries"; then
7001 echo " Additional libraries: ${site_libraries}" >> Installation 7029 echo " Additional libraries: ${site_libraries}"
7002 elif test -n "$site_runtime_libraries"; then 7030 elif test -n "$site_runtime_libraries"; then
7003 echo " Additional libraries: ${site_runtime_libraries}" >> Installation 7031 echo " Additional libraries: ${site_runtime_libraries}"
7004 fi 7032 fi
7005 if test "$with_wnn"; then 7033 if test "$with_wnn"; then
7006 echo " Finding WNN includes with: ${wnn_includes}" >> Installation 7034 echo " Finding WNN includes with: ${wnn_includes}"
7007 echo " Loading WNN libs with: ${wnn_libraries}" >> Installation 7035 echo " Loading WNN libs with: ${wnn_libraries}"
7008 fi 7036 fi
7009 test "$with_socks" = yes && echo " Compiling in support for SOCKS." >> Installation 7037 test "$with_socks" = yes && echo " Compiling in support for SOCKS."
7010 test "$with_term" = yes && echo " Compiling in support for TERM." >> Installation 7038 test "$with_term" = yes && echo " Compiling in support for TERM."
7011 test "$with_xauth" = yes && echo " Compiling in support for XAUTH." >> Installation 7039 test "$with_xauth" = yes && echo " Compiling in support for XAUTH."
7012 test "$with_xpm" = yes && echo " Compiling in support for XPM." >> Installation 7040 test "$with_xpm" = yes && echo " Compiling in support for XPM."
7013 if test "$with_xmu" != yes -a "$window_system" != none; then 7041 if test "$with_xmu" != yes -a "$window_system" != none; then
7014 echo " No Xmu; substituting equivalent routines." >> Installation 7042 echo " No Xmu; substituting equivalent routines."
7015 fi 7043 fi
7016 test "$with_xface" = yes && echo " Compiling in support for X-Face headers." >> Installation 7044 test "$with_xface" = yes && echo " Compiling in support for X-Face headers."
7017 test "$with_gif" = yes && echo " Compiling in support for GIF image conversion." >> Installation 7045 test "$with_gif" = yes && echo " Compiling in support for GIF image conversion."
7018 test "$with_jpeg" = yes && echo " Compiling in support for JPEG image conversion." >> Installation 7046 test "$with_jpeg" = yes && echo " Compiling in support for JPEG image conversion."
7019 if test "$with_png" = yes -o "$with_png" = gnuz; then 7047 if test "$with_png" = yes -o "$with_png" = gnuz; then
7020 echo " Compiling in support for PNG image conversion." >> Installation 7048 echo " Compiling in support for PNG image conversion."
7021 fi 7049 fi
7022 if test "$with_png" = gnuz; then 7050 if test "$with_png" = gnuz; then
7023 echo " (Using -lgz instead of -lz.)" >> Installation 7051 echo " (Using -lgz instead of -lz.)"
7024 fi 7052 fi
7025 test "$with_tiff" = yes && echo " Compiling in support for TIFF image conversion (not implemented)." >> Installation 7053 test "$with_tiff" = yes && echo " Compiling in support for TIFF image conversion (not implemented)."
7026 test "$with_epoch" = yes && echo " Compiling in extra Epoch compatibility." >> Installation 7054 test "$with_epoch" = yes && echo " Compiling in extra Epoch compatibility."
7027 7055
7028 test "$with_sound" = nas && echo " Compiling in network sound support." >> Installation 7056 test "$with_sound" = nas && echo " Compiling in network sound support."
7029 test "$with_sound" = native && echo " Compiling in native sound support." >> Installation 7057 test "$with_sound" = native && echo " Compiling in native sound support."
7030 test "$with_sound" = both && echo " Compiling in both network and native sound support." >> Installation 7058 test "$with_sound" = both && echo " Compiling in both network and native sound support."
7031 test "$old_nas" = true && echo " nas library lacks error trapping, will play synchronously" >> Installation 7059 test "$old_nas" = true && echo " nas library lacks error trapping, will play synchronously"
7032 7060
7033 test "$with_database_berkdb" = yes && echo " Compiling in support for Berkeley DB." >> Installation 7061 test "$with_database_berkdb" = yes && echo " Compiling in support for Berkeley DB."
7034 test "$with_database_dbm" = yes && echo " Compiling in support for DBM." >> Installation 7062 test "$with_database_dbm" = yes && echo " Compiling in support for DBM."
7035 test "$with_database_gnudbm" = yes && echo " Compiling in support for GNU DBM." >> Installation 7063 test "$with_database_gnudbm" = yes && echo " Compiling in support for GNU DBM."
7036 7064
7037 test "$with_ncurses" = yes && echo " Compiling in support for ncurses." >> Installation 7065 test "$with_ncurses" = yes && echo " Compiling in support for ncurses."
7038 test "$with_socks" = yes && echo " Compiling in support for SOCKS." >> Installation 7066 test "$with_socks" = yes && echo " Compiling in support for SOCKS."
7039 7067
7040 test "$with_mule" = yes && echo " Compiling in Mule (multi-lingual) support." >> Installation 7068 test "$with_mule" = yes && echo " Compiling in Mule (multi-lingual) support."
7041 test "$with_xim" != no && echo " Compiling in XIM (X11R5+ I18N input method) support." >> Installation 7069 test "$with_xim" != no && echo " Compiling in XIM (X11R5+ I18N input method) support."
7042 test "$with_xim" = motif && echo " Using Motif to provide XIM support." >> Installation 7070 test "$with_xim" = motif && echo " Using Motif to provide XIM support."
7043 test "$with_xim" = xlib && echo " Using raw Xlib to provide XIM support." >> Installation 7071 test "$with_xim" = xlib && echo " Using raw Xlib to provide XIM support."
7044 test "$with_canna" = yes && echo " Compiling in support for Canna on Mule." >> Installation 7072 test "$with_canna" = yes && echo " Compiling in support for Canna on Mule."
7045 test "$with_wnn" = yes && echo " Compiling in support for WNN on Mule." >> Installation 7073 test "$with_wnn" = yes && echo " Compiling in support for WNN on Mule."
7046 test "$with_wnn6" = yes && echo " WNN support for version 6." >> Installation 7074 test "$with_wnn6" = yes && echo " WNN support for version 6."
7047 test "$with_i18n3" = yes && echo " Compiling in I18N support, level 3 (doesn't currently work)." >> Installation 7075 test "$with_i18n3" = yes && echo " Compiling in I18N support, level 3 (doesn't currently work)."
7048 7076
7049 test "$with_cde" = yes && echo " Compiling in support for CDE." >> Installation 7077 test "$with_cde" = yes && echo " Compiling in support for CDE."
7050 test "$with_tooltalk" = yes && echo " Compiling in support for ToolTalk." >> Installation 7078 test "$with_tooltalk" = yes && echo " Compiling in support for ToolTalk."
7051 test "$with_offix" = yes && echo " Compiling in support for OffiX." >> Installation 7079 test "$with_offix" = yes && echo " Compiling in support for OffiX."
7052 test "$with_mocklisp" = yes && echo " Compiling in support for Mocklisp." >> Installation 7080 test "$with_mocklisp" = yes && echo " Compiling in support for Mocklisp."
7053 test "$with_sparcworks" = yes && echo " Compiling in support for SparcWorks." >> Installation 7081 test "$with_sparcworks" = yes && echo " Compiling in support for SparcWorks."
7054 test "$with_energize" = yes && echo " Compiling in support for Lucid Energize (doesn't currently work)." >> Installation 7082 test "$with_energize" = yes && echo " Compiling in support for Lucid Energize (doesn't currently work)."
7055 test "$with_menubars" = "lucid" && echo " Using the Lucid menubar." >> Installation 7083 test "$with_menubars" = "lucid" && echo " Using the Lucid menubar."
7056 if test "$with_menubars" = "motif"; then 7084 if test "$with_menubars" = "motif"; then
7057 echo " Using the Motif menubar." >> Installation 7085 echo " Using the Motif menubar."
7058 echo " *WARNING* The Motif menubar is currently buggy. We recommend" >> Installation 7086 echo " *WARNING* The Motif menubar is currently buggy. We recommend"
7059 echo " that you use the Lucid menubar instead. Re-run" >> Installation 7087 echo " that you use the Lucid menubar instead. Re-run"
7060 echo " configure with --with-menubars='lucid'." >> Installation 7088 echo " configure with --with-menubars='lucid'."
7061 fi 7089 fi
7062 test "$with_scrollbars" = lucid && echo " Using the Lucid scrollbar." >> Installation 7090 test "$with_scrollbars" = lucid && echo " Using the Lucid scrollbar."
7063 test "$with_scrollbars" = motif && echo " Using the Motif scrollbar." >> Installation 7091 test "$with_scrollbars" = motif && echo " Using the Motif scrollbar."
7064 test "$with_scrollbars" = athena && echo " Using the Athena scrollbar." >> Installation 7092 test "$with_scrollbars" = athena && echo " Using the Athena scrollbar."
7065 test "$with_scrollbars" = athena3d && echo " Using the Athena-3d scrollbar." >> Installation 7093 test "$with_scrollbars" = athena3d && echo " Using the Athena-3d scrollbar."
7066 test "$with_dialogs" = motif && echo " Using the Motif dialog boxes." >> Installation 7094 test "$with_dialogs" = motif && echo " Using the Motif dialog boxes."
7067 test "$with_dialogs" = athena && echo " Using the Athena dialog boxes." >> Installation 7095 test "$with_dialogs" = athena && echo " Using the Athena dialog boxes."
7068 test "$with_dialogs" = athena3d && echo " Using the Athena-3d dialog boxes." >> Installation 7096 test "$with_dialogs" = athena3d && echo " Using the Athena-3d dialog boxes."
7069 7097
7070 test "${use_union_type}" = yes && echo " Using the union type for Lisp_Objects." >> Installation 7098 test "${use_union_type}" = yes && echo " Using the union type for Lisp_Objects."
7071 test "${debug}" = yes && echo " Compiling in extra code for debugging." >> Installation 7099 test "${debug}" = yes && echo " Compiling in extra code for debugging."
7072 test "${memory_usage_stats}" = yes && echo " Compiling in code for checking XEmacs memory usage." >> Installation 7100 test "${memory_usage_stats}" = yes && echo " Compiling in code for checking XEmacs memory usage."
7073 test "$usage_tracking" = yes && echo " Compiling with usage tracking active (Sun internal)." >> Installation 7101 test "$usage_tracking" = yes && echo " Compiling with usage tracking active (Sun internal)."
7074 echo " >> Installation 7102 ) | tee -a Installation
7075 " 7103 echo " | tee -a Installation
7076 7104 "
7077 test -r Installation && cat Installation
7078 7105
7079 7106
7080 # Remove any trailing slashes in these variables. 7107 # Remove any trailing slashes in these variables.
7081 test -n "${prefix}" && 7108 test -n "${prefix}" &&
7082 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'` 7109 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`