comparison configure.in @ 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
305 305
306 306
307 Debugging options: 307 Debugging options:
308 308
309 --debug Compile with support for debugging XEmacs. 309 --debug Compile with support for debugging XEmacs.
310 (Causes code-size increase but no loss of speed.) 310 (Causes code-size increase and little loss of speed.)
311 --error-checking=TYPE[,TYPE]... 311 --error-checking=TYPE[,TYPE]...
312 Compile with internal error-checking added. 312 Compile with internal error-checking added.
313 Causes noticeable loss of speed. Valid types 313 Causes noticeable loss of speed. Valid types
314 are extents, bufpos, malloc, gc, typecheck. 314 are extents, bufpos, malloc, gc, typecheck.
315 --error-checking=none Disable all internal error-checking (the default). 315 --error-checking=none Disable all internal error-checking (the default).
1867 done 1867 done
1868 elif test -z "${with_toolbars}" ; then 1868 elif test -z "${with_toolbars}" ; then
1869 with_toolbars='yes' 1869 with_toolbars='yes'
1870 fi 1870 fi
1871 [ 1871 [
1872 runtime_arg="-R${dash_r_space}"
1873
1872 case "${canonical}" in 1874 case "${canonical}" in
1873 *-sun-solaris* | *-sun-sunos5* ) add_runtime_flag=yes ;; 1875 *-sun-solaris* | *-sun-sunos5* )
1876 add_runtime_flag=yes ;;
1877 *-sgi-irix5.* )
1878 # In the IRIX 5.3 ld, only the last -rpath arg has any effect. This is
1879 # fundamentaly incompatible with having separate LD_SWITCH_X_SITE
1880 # and LD_SWITCH_SITE variables. Fortunately, SGI fixed this by 6.2.
1881 if [ -n "${x_libraries}" ] || [ -n "${site_runtime_libraries}" ]; then
1882 (echo "WARNING: The IRIX 5 ld ignores all but the last -rpath argument,";
1883 echo " so if you need to specify more than one additional";
1884 echo " runtime library directory, you will have to do so";
1885 echo " manually by setting the environment variable";
1886 echo " LD_SWITCH_SITE to '-rpath <path>' before running";
1887 echo " configure. If you have only one additional directory,"
1888 echo " you can specify it with --site-runtime-libraries.") >&2
1889 fi
1890 runtime_arg="-rpath " ;;
1891 *-sgi-irix* )
1892 # Note that IRIX gcc (as of 2.7.2) doesn't accept -rpath, so
1893 # using it can cause trouble. Specifying --use-gcc=no will work
1894 # around this, but the real problem is that configure uses $LDFLAGS
1895 # as arguments to $(CC), instead of using prefix-args like the
1896 # src/Makefile does.
1897 add_runtime_flag=yes;
1898 runtime_arg="-rpath " ;;
1874 esac 1899 esac
1875 1900
1876 if test -n "${x_libraries}" ; then 1901 if test -n "${x_libraries}" ; then
1877 if test "${add_runtime_flag}" ; then 1902 if test "${add_runtime_flag}" = "yes" ]; then
1878 LD_SWITCH_X_SITE="-L${x_libraries} -R${dash_r_space}${x_libraries}" 1903 LD_SWITCH_X_SITE="-L${x_libraries} ${runtime_arg}${x_libraries}"
1879 else 1904 else
1880 LD_SWITCH_X_SITE="-L${x_libraries}" 1905 LD_SWITCH_X_SITE="-L${x_libraries}"
1881 fi 1906 fi
1882 fi 1907 fi
1883 # LD_SWITCH_X_SITE_AUX (from FSF) is ill-conceived. See s/sol2*.h. 1908 # LD_SWITCH_X_SITE_AUX (from FSF) is ill-conceived. See s/sol2*.h.
1892 fi 1917 fi
1893 if test -n "${site_runtime_libraries}" ; then 1918 if test -n "${site_runtime_libraries}" ; then
1894 for arg in ${site_runtime_libraries} 1919 for arg in ${site_runtime_libraries}
1895 do 1920 do
1896 LD_SWITCH_SITE="${LD_SWITCH_SITE} -L${arg}" 1921 LD_SWITCH_SITE="${LD_SWITCH_SITE} -L${arg}"
1897 LD_SWITCH_SITE="${LD_SWITCH_SITE} -R${dash_r_space}${arg}" 1922 LD_SWITCH_SITE="${LD_SWITCH_SITE} ${runtime_arg}${arg}"
1898 done 1923 done
1899 fi 1924 fi
1900 if test -n "${site_includes}" ; then 1925 if test -n "${site_includes}" ; then
1901 for arg in ${site_includes} 1926 for arg in ${site_includes}
1902 do 1927 do
2964 for arg in "-L/usr/lib" "-L${OPENWINHHOME-/usr/openwin}/lib" "-L/usr/dt/lib" 2989 for arg in "-L/usr/lib" "-L${OPENWINHHOME-/usr/openwin}/lib" "-L/usr/dt/lib"
2965 do 2990 do
2966 case "${arg}" in 2991 case "${arg}" in
2967 -L*) if test -f `echo "${arg}/libtt.a" | sed 's/^\-L//'` ; then 2992 -L*) if test -f `echo "${arg}/libtt.a" | sed 's/^\-L//'` ; then
2968 dash_r='' 2993 dash_r=''
2969 if test -n "${add_runtime_flag}" ; then 2994 if [ "${add_runtime_flag}" = "yes" ]; then
2970 dash_r=`echo ${arg} | sed "s/^-L/-R${dash_r_space}/"` 2995 dash_r=`echo ${arg} | sed "s/^-L */${runtime_arg}/"`
2971 fi 2996 fi
2972 LD_SWITCH_X_SITE="${LD_SWITCH_X_SITE} ${arg} ${dash_r}" 2997 LD_SWITCH_X_SITE="${LD_SWITCH_X_SITE} ${arg} ${dash_r}"
2973 fi 2998 fi
2974 ;; 2999 ;;
2975 esac 3000 esac
3176 3201
3177 dnl ############################################################################ 3202 dnl ############################################################################
3178 dnl # Report on what we decided to do # 3203 dnl # Report on what we decided to do #
3179 dnl ############################################################################ 3204 dnl ############################################################################
3180 3205
3206 echo "$0 $configure_args" >> Installation
3207 # Start stdout redirection to '| tee -a Installation'
3208 (
3181 echo " 3209 echo "
3182 3210
3183 Configured for \`${canonical}'. 3211 Configured for \`${canonical}'.
3184 3212
3185 Where should the build process find the source code? ${srcdir} 3213 Where should the build process find the source code? ${srcdir}
3189 What compiler should XEmacs be built with? ${CC} ${CFLAGS} 3217 What compiler should XEmacs be built with? ${CC} ${CFLAGS}
3190 Should XEmacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason} 3218 Should XEmacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
3191 Should XEmacs use the relocating allocator for buffers? ${rel_alloc} 3219 Should XEmacs use the relocating allocator for buffers? ${rel_alloc}
3192 What window system should XEmacs use? ${window_system}${x_includes+ 3220 What window system should XEmacs use? ${window_system}${x_includes+
3193 Where do we find X Windows header files? }${x_includes}${x_libraries+ 3221 Where do we find X Windows header files? }${x_includes}${x_libraries+
3194 Where do we find X Windows libraries? }${x_libraries}" >> Installation 3222 Where do we find X Windows libraries? }${x_libraries}"
3195 3223
3196 if test -n "$site_includes"; then 3224 if test -n "$site_includes"; then
3197 echo " Additional header files: ${site_includes}" >> Installation 3225 echo " Additional header files: ${site_includes}"
3198 fi 3226 fi
3199 3227
3200 if test -n "$site_libraries" -a -n "$site_runtime_libraries"; then 3228 if test -n "$site_libraries" -a -n "$site_runtime_libraries"; then
3201 echo " Additional libraries: ${site_libraries} ${site_runtime_libraries}" >> Installation 3229 echo " Additional libraries: ${site_libraries} ${site_runtime_libraries}"
3202 elif test -n "$site_libraries"; then 3230 elif test -n "$site_libraries"; then
3203 echo " Additional libraries: ${site_libraries}" >> Installation 3231 echo " Additional libraries: ${site_libraries}"
3204 elif test -n "$site_runtime_libraries"; then 3232 elif test -n "$site_runtime_libraries"; then
3205 echo " Additional libraries: ${site_runtime_libraries}" >> Installation 3233 echo " Additional libraries: ${site_runtime_libraries}"
3206 fi 3234 fi
3207 if test "$with_wnn"; then 3235 if test "$with_wnn"; then
3208 echo " Finding WNN includes with: ${wnn_includes}" >> Installation 3236 echo " Finding WNN includes with: ${wnn_includes}"
3209 echo " Loading WNN libs with: ${wnn_libraries}" >> Installation 3237 echo " Loading WNN libs with: ${wnn_libraries}"
3210 fi 3238 fi
3211 test "$with_socks" = yes && echo " Compiling in support for SOCKS." >> Installation 3239 test "$with_socks" = yes && echo " Compiling in support for SOCKS."
3212 test "$with_term" = yes && echo " Compiling in support for TERM." >> Installation 3240 test "$with_term" = yes && echo " Compiling in support for TERM."
3213 test "$with_xauth" = yes && echo " Compiling in support for XAUTH." >> Installation 3241 test "$with_xauth" = yes && echo " Compiling in support for XAUTH."
3214 test "$with_xpm" = yes && echo " Compiling in support for XPM." >> Installation 3242 test "$with_xpm" = yes && echo " Compiling in support for XPM."
3215 if test "$with_xmu" != yes -a "$window_system" != none; then 3243 if test "$with_xmu" != yes -a "$window_system" != none; then
3216 echo " No Xmu; substituting equivalent routines." >> Installation 3244 echo " No Xmu; substituting equivalent routines."
3217 fi 3245 fi
3218 test "$with_xface" = yes && echo " Compiling in support for X-Face headers." >> Installation 3246 test "$with_xface" = yes && echo " Compiling in support for X-Face headers."
3219 test "$with_gif" = yes && echo " Compiling in support for GIF image conversion." >> Installation 3247 test "$with_gif" = yes && echo " Compiling in support for GIF image conversion."
3220 test "$with_jpeg" = yes && echo " Compiling in support for JPEG image conversion." >> Installation 3248 test "$with_jpeg" = yes && echo " Compiling in support for JPEG image conversion."
3221 if test "$with_png" = yes -o "$with_png" = gnuz; then 3249 if test "$with_png" = yes -o "$with_png" = gnuz; then
3222 echo " Compiling in support for PNG image conversion." >> Installation 3250 echo " Compiling in support for PNG image conversion."
3223 fi 3251 fi
3224 if test "$with_png" = gnuz; then 3252 if test "$with_png" = gnuz; then
3225 echo " (Using -lgz instead of -lz.)" >> Installation 3253 echo " (Using -lgz instead of -lz.)"
3226 fi 3254 fi
3227 test "$with_tiff" = yes && echo " Compiling in support for TIFF image conversion (not implemented)." >> Installation 3255 test "$with_tiff" = yes && echo " Compiling in support for TIFF image conversion (not implemented)."
3228 test "$with_epoch" = yes && echo " Compiling in extra Epoch compatibility." >> Installation 3256 test "$with_epoch" = yes && echo " Compiling in extra Epoch compatibility."
3229 3257
3230 test "$with_sound" = nas && echo " Compiling in network sound support." >> Installation 3258 test "$with_sound" = nas && echo " Compiling in network sound support."
3231 test "$with_sound" = native && echo " Compiling in native sound support." >> Installation 3259 test "$with_sound" = native && echo " Compiling in native sound support."
3232 test "$with_sound" = both && echo " Compiling in both network and native sound support." >> Installation 3260 test "$with_sound" = both && echo " Compiling in both network and native sound support."
3233 test "$old_nas" = true && echo " nas library lacks error trapping, will play synchronously" >> Installation 3261 test "$old_nas" = true && echo " nas library lacks error trapping, will play synchronously"
3234 3262
3235 test "$with_database_berkdb" = yes && echo " Compiling in support for Berkeley DB." >> Installation 3263 test "$with_database_berkdb" = yes && echo " Compiling in support for Berkeley DB."
3236 test "$with_database_dbm" = yes && echo " Compiling in support for DBM." >> Installation 3264 test "$with_database_dbm" = yes && echo " Compiling in support for DBM."
3237 test "$with_database_gnudbm" = yes && echo " Compiling in support for GNU DBM." >> Installation 3265 test "$with_database_gnudbm" = yes && echo " Compiling in support for GNU DBM."
3238 3266
3239 test "$with_ncurses" = yes && echo " Compiling in support for ncurses." >> Installation 3267 test "$with_ncurses" = yes && echo " Compiling in support for ncurses."
3240 test "$with_socks" = yes && echo " Compiling in support for SOCKS." >> Installation 3268 test "$with_socks" = yes && echo " Compiling in support for SOCKS."
3241 3269
3242 test "$with_mule" = yes && echo " Compiling in Mule (multi-lingual) support." >> Installation 3270 test "$with_mule" = yes && echo " Compiling in Mule (multi-lingual) support."
3243 test "$with_xim" != no && echo " Compiling in XIM (X11R5+ I18N input method) support." >> Installation 3271 test "$with_xim" != no && echo " Compiling in XIM (X11R5+ I18N input method) support."
3244 test "$with_xim" = motif && echo " Using Motif to provide XIM support." >> Installation 3272 test "$with_xim" = motif && echo " Using Motif to provide XIM support."
3245 test "$with_xim" = xlib && echo " Using raw Xlib to provide XIM support." >> Installation 3273 test "$with_xim" = xlib && echo " Using raw Xlib to provide XIM support."
3246 test "$with_canna" = yes && echo " Compiling in support for Canna on Mule." >> Installation 3274 test "$with_canna" = yes && echo " Compiling in support for Canna on Mule."
3247 test "$with_wnn" = yes && echo " Compiling in support for WNN on Mule." >> Installation 3275 test "$with_wnn" = yes && echo " Compiling in support for WNN on Mule."
3248 test "$with_wnn6" = yes && echo " WNN support for version 6." >> Installation 3276 test "$with_wnn6" = yes && echo " WNN support for version 6."
3249 test "$with_i18n3" = yes && echo " Compiling in I18N support, level 3 (doesn't currently work)." >> Installation 3277 test "$with_i18n3" = yes && echo " Compiling in I18N support, level 3 (doesn't currently work)."
3250 3278
3251 test "$with_cde" = yes && echo " Compiling in support for CDE." >> Installation 3279 test "$with_cde" = yes && echo " Compiling in support for CDE."
3252 test "$with_tooltalk" = yes && echo " Compiling in support for ToolTalk." >> Installation 3280 test "$with_tooltalk" = yes && echo " Compiling in support for ToolTalk."
3253 test "$with_offix" = yes && echo " Compiling in support for OffiX." >> Installation 3281 test "$with_offix" = yes && echo " Compiling in support for OffiX."
3254 test "$with_mocklisp" = yes && echo " Compiling in support for Mocklisp." >> Installation 3282 test "$with_mocklisp" = yes && echo " Compiling in support for Mocklisp."
3255 test "$with_sparcworks" = yes && echo " Compiling in support for SparcWorks." >> Installation 3283 test "$with_sparcworks" = yes && echo " Compiling in support for SparcWorks."
3256 test "$with_energize" = yes && echo " Compiling in support for Lucid Energize (doesn't currently work)." >> Installation 3284 test "$with_energize" = yes && echo " Compiling in support for Lucid Energize (doesn't currently work)."
3257 test "$with_menubars" = "lucid" && echo " Using the Lucid menubar." >> Installation 3285 test "$with_menubars" = "lucid" && echo " Using the Lucid menubar."
3258 if test "$with_menubars" = "motif"; then 3286 if test "$with_menubars" = "motif"; then
3259 echo " Using the Motif menubar." >> Installation 3287 echo " Using the Motif menubar."
3260 echo " *WARNING* The Motif menubar is currently buggy. We recommend" >> Installation 3288 echo " *WARNING* The Motif menubar is currently buggy. We recommend"
3261 echo " that you use the Lucid menubar instead. Re-run" >> Installation 3289 echo " that you use the Lucid menubar instead. Re-run"
3262 echo " configure with --with-menubars='lucid'." >> Installation 3290 echo " configure with --with-menubars='lucid'."
3263 fi 3291 fi
3264 test "$with_scrollbars" = lucid && echo " Using the Lucid scrollbar." >> Installation 3292 test "$with_scrollbars" = lucid && echo " Using the Lucid scrollbar."
3265 test "$with_scrollbars" = motif && echo " Using the Motif scrollbar." >> Installation 3293 test "$with_scrollbars" = motif && echo " Using the Motif scrollbar."
3266 test "$with_scrollbars" = athena && echo " Using the Athena scrollbar." >> Installation 3294 test "$with_scrollbars" = athena && echo " Using the Athena scrollbar."
3267 test "$with_scrollbars" = athena3d && echo " Using the Athena-3d scrollbar." >> Installation 3295 test "$with_scrollbars" = athena3d && echo " Using the Athena-3d scrollbar."
3268 test "$with_dialogs" = motif && echo " Using the Motif dialog boxes." >> Installation 3296 test "$with_dialogs" = motif && echo " Using the Motif dialog boxes."
3269 test "$with_dialogs" = athena && echo " Using the Athena dialog boxes." >> Installation 3297 test "$with_dialogs" = athena && echo " Using the Athena dialog boxes."
3270 test "$with_dialogs" = athena3d && echo " Using the Athena-3d dialog boxes." >> Installation 3298 test "$with_dialogs" = athena3d && echo " Using the Athena-3d dialog boxes."
3271 3299
3272 test "${use_union_type}" = yes && echo " Using the union type for Lisp_Objects." >> Installation 3300 test "${use_union_type}" = yes && echo " Using the union type for Lisp_Objects."
3273 test "${debug}" = yes && echo " Compiling in extra code for debugging." >> Installation 3301 test "${debug}" = yes && echo " Compiling in extra code for debugging."
3274 test "${memory_usage_stats}" = yes && echo " Compiling in code for checking XEmacs memory usage." >> Installation 3302 test "${memory_usage_stats}" = yes && echo " Compiling in code for checking XEmacs memory usage."
3275 test "$usage_tracking" = yes && echo " Compiling with usage tracking active (Sun internal)." >> Installation 3303 test "$usage_tracking" = yes && echo " Compiling with usage tracking active (Sun internal)."
3276 echo " >> Installation 3304 ) | tee -a Installation
3305 echo " | tee -a Installation
3277 " 3306 "
3278
3279 test -r Installation && cat Installation
3280 dnl ############################################################################ 3307 dnl ############################################################################
3281 dnl # Now generate! # 3308 dnl # Now generate! #
3282 dnl ############################################################################ 3309 dnl ############################################################################
3283 3310
3284 dnl This has to be called in order for this variable to get into config.status 3311 dnl This has to be called in order for this variable to get into config.status