Mercurial > hg > xemacs-beta
comparison configure @ 3147:971e3c687f18
[xemacs-hg @ 2005-12-18 12:21:49 by malcolmp]
Improvements to configure's complex option processing.
author | malcolmp |
---|---|
date | Sun, 18 Dec 2005 12:22:03 +0000 |
parents | a05d78a1685f |
children | 71959ba52b08 |
comparison
equal
deleted
inserted
replaced
3146:7c45a748ff54 | 3147:971e3c687f18 |
---|---|
2262 _ACEOF | 2262 _ACEOF |
2263 | 2263 |
2264 fi; | 2264 fi; |
2265 | 2265 |
2266 _xft_notfirst="" | 2266 _xft_notfirst="" |
2267 with_xft_emacs=no | 2267 _xft_emacs_default=no |
2268 enable_xft_emacs=no | 2268 _xft_menubars_default=no |
2269 with_xft_menubars=no | 2269 _xft_tabs_default=no |
2270 enable_xft_menubars=no | 2270 _xft_gauges_default=no |
2271 with_xft_tabs=no | |
2272 enable_xft_tabs=no | |
2273 with_xft_gauges=no | |
2274 enable_xft_gauges=no | |
2275 | |
2276 _xft_types="emacs menubars tabs gauges" | 2271 _xft_types="emacs menubars tabs gauges" |
2277 _xft_default="noemacs,nomenubars,notabs,nogauges" | 2272 _xft_default="noemacs,nomenubars,notabs,nogauges" |
2278 | |
2279 | |
2280 | 2273 |
2281 # If --with-xft or --without-xft were given then copy the value to the | 2274 # If --with-xft or --without-xft were given then copy the value to the |
2282 # equivalent enable_xft variable. | 2275 # equivalent enable_xft variable. |
2283 if test "${with_xft+set}" = set; then | 2276 if test "${with_xft+set}" = set; then |
2284 enable_xft="$with_xft" | 2277 enable_xft="$with_xft" |
2290 fi; | 2283 fi; |
2291 # Check whether --with-xft or --without-xft was given. | 2284 # Check whether --with-xft or --without-xft was given. |
2292 if test "${with_xft+set}" = set; then | 2285 if test "${with_xft+set}" = set; then |
2293 enableval="$with_xft" | 2286 enableval="$with_xft" |
2294 withval="$with_xft" | 2287 withval="$with_xft" |
2295 for y in $_xft_types; do | 2288 _xft_all_default="" |
2296 eval "with_xft_$y=no" | 2289 _require_xft="" |
2297 eval "enable_xft_$y=no" | 2290 case "$with_xft" in |
2291 n | no | non | none ) _xft_all_default=no ;; | |
2292 n,* | no,* | non,* | none,* ) _xft_all_default=no ;; | |
2293 a | al | all | both ) _xft_all_default=yes ;; | |
2294 a,* | al,* | all,* | both,* ) _xft_all_default=yes ;; | |
2295 y | yes ) _require_xft=yes ;; | |
2296 esac | |
2297 if test -n "$_xft_all_default$_require_xft"; then | |
2298 _with_xft_args=`echo $with_xft | sed -e 's/^[a-z]*\(,\(.*\)\)\{0,1\}$/\2/'` | |
2299 else | |
2300 _with_xft_args=$with_xft | |
2301 fi | |
2302 for y in $_xft_types; do | |
2303 if test -n "$_xft_all_default" ; then | |
2304 eval "with_xft_${y}=$_xft_all_default" | |
2305 else | |
2306 eval "with_xft_$y=\$_xft_${y}_default" | |
2307 fi | |
2298 done | 2308 done |
2299 for x in `echo "$with_xft" | sed -e 's/,/ /g'` ; do | 2309 for x in `echo "$_with_xft_args" | sed -e 's/,/ /g'` ; do |
2300 _xft_all_default="" | |
2301 _xft_found="" | 2310 _xft_found="" |
2302 case "$x" in | 2311 for y in $_xft_types; do |
2303 n | no | non | none ) _xft_all_default=no ;; | 2312 if test "$x" = "$y"; then |
2304 a | al | all | both ) _xft_all_default=yes ;; | 2313 _xft_found=yes |
2305 esac | 2314 eval "with_xft_$y=yes" |
2306 | 2315 elif test "$x" = "no$y"; then |
2307 if test -z "$_xft_all_default"; then | 2316 _xft_found=yes |
2308 for y in $_xft_types; do | 2317 eval "with_xft_$y=no" |
2309 if test "$x" = "$y"; then | 2318 fi |
2310 _xft_found=yes | 2319 done |
2311 eval "with_xft_$y=yes" | 2320 test -z "$_xft_found" && \ |
2312 eval "enable_xft_$y=yes" | |
2313 elif test "$x" = "no$y"; then | |
2314 _xft_found=yes | |
2315 eval "with_xft_$y=no" | |
2316 eval "enable_xft_$y=no" | |
2317 fi | |
2318 done | |
2319 test -z "$_xft_found" && _xft_bogus=yes | |
2320 fi | |
2321 if test "$_xft_bogus" = "yes" -o \ | |
2322 \( -n "$_xft_all_default" -a -n "$_xft_notfirst" \) ; then | |
2323 (echo "$progname: Usage error:" | 2321 (echo "$progname: Usage error:" |
2324 echo " " "Valid values for the --with-xft option are: | 2322 echo " " "\ |
2325 $_xft_types. With prefix \"no\", switch it off. | 2323 Invalid type list supplied. Valid types for the --with-xft option are: |
2326 Defaults may be overridden with \`all' or \`none' first in the list. | 2324 $_xft_types. |
2327 Hardcoded default is: $_xft_default." | 2325 A prefix of \"no\" (eg, \"notype\" for \"type\") turns a type off. |
2326 Types not explicitly specified or negated take their defaults. | |
2327 The list of defaults is \"$_xft_default\". Prefixing \`all' or | |
2328 \`none' to the list sets all defaults to on and off respectively. | |
2329 \`yes' as the sole argument is equivalent to omitting the argument." | |
2328 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 | 2330 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 |
2329 elif test -n "$_xft_all_default" ; then | |
2330 for y in $_xft_types; do | |
2331 eval "with_xft_$y=$_xft_all_default" | |
2332 eval "enable_xft_$y=$_xft_all_default" | |
2333 done | |
2334 fi | |
2335 _xft_notfirst=yes | |
2336 done | 2331 done |
2337 unset _xft_bogus _xft_found _xft_notfirst _xft_types | 2332 for y in $_xft_types; do |
2338 unset _xft_default _xft_all_default x y | 2333 eval "enable_xft_$y=\$with_xft_$y" |
2339 | 2334 unset _xft_${y}_default |
2340 | 2335 done |
2336 unset _xft_types _xft_default _xft_all_default _xft_use_defaults | |
2337 unset _with_xft_args _xft_found x y _require_xft | |
2338 | |
2339 | |
2340 | |
2341 else | |
2342 | |
2343 # set default for each type | |
2344 for y in $_xft_types; do | |
2345 eval "with_xft_$y=\$_xft_${y}_default" | |
2346 eval "enable_xft_$y=\$_xft_${y}_default" | |
2347 unset _xft_${y}_default | |
2348 done | |
2341 | 2349 |
2342 fi; | 2350 fi; |
2343 # If --with-gtk or --without-gtk were given then copy the value to the | 2351 # If --with-gtk or --without-gtk were given then copy the value to the |
2344 # equivalent enable_gtk variable. | 2352 # equivalent enable_gtk variable. |
2345 if test "${with_gtk+set}" = set; then | 2353 if test "${with_gtk+set}" = set; then |
2804 withval="$with_gif" | 2812 withval="$with_gif" |
2805 | 2813 |
2806 fi; | 2814 fi; |
2807 | 2815 |
2808 _sound_notfirst="" | 2816 _sound_notfirst="" |
2809 with_sound_native="" | 2817 _sound_native_default="" |
2810 enable_sound_native="" | 2818 _sound_nas_default="" |
2811 with_sound_nas="" | 2819 _sound_esd_default=no |
2812 enable_sound_nas="" | |
2813 with_sound_esd=no | |
2814 enable_sound_esd=no | |
2815 | |
2816 _sound_types="native nas esd" | 2820 _sound_types="native nas esd" |
2817 _sound_default="native,nas,noesd" | 2821 _sound_default="native,nas,noesd" |
2818 | |
2819 | |
2820 | 2822 |
2821 # If --with-sound or --without-sound were given then copy the value to the | 2823 # If --with-sound or --without-sound were given then copy the value to the |
2822 # equivalent enable_sound variable. | 2824 # equivalent enable_sound variable. |
2823 if test "${with_sound+set}" = set; then | 2825 if test "${with_sound+set}" = set; then |
2824 enable_sound="$with_sound" | 2826 enable_sound="$with_sound" |
2830 fi; | 2832 fi; |
2831 # Check whether --with-sound or --without-sound was given. | 2833 # Check whether --with-sound or --without-sound was given. |
2832 if test "${with_sound+set}" = set; then | 2834 if test "${with_sound+set}" = set; then |
2833 enableval="$with_sound" | 2835 enableval="$with_sound" |
2834 withval="$with_sound" | 2836 withval="$with_sound" |
2835 for y in $_sound_types; do | 2837 _sound_all_default="" |
2836 eval "with_sound_$y=no" | 2838 _require_sound="" |
2837 eval "enable_sound_$y=no" | 2839 case "$with_sound" in |
2840 n | no | non | none ) _sound_all_default=no ;; | |
2841 n,* | no,* | non,* | none,* ) _sound_all_default=no ;; | |
2842 a | al | all | both ) _sound_all_default=yes ;; | |
2843 a,* | al,* | all,* | both,* ) _sound_all_default=yes ;; | |
2844 y | yes ) _require_sound=yes ;; | |
2845 esac | |
2846 if test -n "$_sound_all_default$_require_sound"; then | |
2847 _with_sound_args=`echo $with_sound | sed -e 's/^[a-z]*\(,\(.*\)\)\{0,1\}$/\2/'` | |
2848 else | |
2849 _with_sound_args=$with_sound | |
2850 fi | |
2851 for y in $_sound_types; do | |
2852 if test -n "$_sound_all_default" ; then | |
2853 eval "with_sound_${y}=$_sound_all_default" | |
2854 else | |
2855 eval "with_sound_$y=\$_sound_${y}_default" | |
2856 fi | |
2838 done | 2857 done |
2839 for x in `echo "$with_sound" | sed -e 's/,/ /g'` ; do | 2858 for x in `echo "$_with_sound_args" | sed -e 's/,/ /g'` ; do |
2840 _sound_all_default="" | |
2841 _sound_found="" | 2859 _sound_found="" |
2842 case "$x" in | 2860 for y in $_sound_types; do |
2843 n | no | non | none ) _sound_all_default=no ;; | 2861 if test "$x" = "$y"; then |
2844 a | al | all | both ) _sound_all_default=yes ;; | 2862 _sound_found=yes |
2845 esac | 2863 eval "with_sound_$y=yes" |
2846 | 2864 elif test "$x" = "no$y"; then |
2847 if test -z "$_sound_all_default"; then | 2865 _sound_found=yes |
2848 for y in $_sound_types; do | 2866 eval "with_sound_$y=no" |
2849 if test "$x" = "$y"; then | 2867 fi |
2850 _sound_found=yes | 2868 done |
2851 eval "with_sound_$y=yes" | 2869 test -z "$_sound_found" && \ |
2852 eval "enable_sound_$y=yes" | |
2853 elif test "$x" = "no$y"; then | |
2854 _sound_found=yes | |
2855 eval "with_sound_$y=no" | |
2856 eval "enable_sound_$y=no" | |
2857 fi | |
2858 done | |
2859 test -z "$_sound_found" && _sound_bogus=yes | |
2860 fi | |
2861 if test "$_sound_bogus" = "yes" -o \ | |
2862 \( -n "$_sound_all_default" -a -n "$_sound_notfirst" \) ; then | |
2863 (echo "$progname: Usage error:" | 2870 (echo "$progname: Usage error:" |
2864 echo " " "Valid values for the --with-sound option are: | 2871 echo " " "\ |
2865 $_sound_types. With prefix \"no\", switch it off. | 2872 Invalid type list supplied. Valid types for the --with-sound option are: |
2866 Defaults may be overridden with \`all' or \`none' first in the list. | 2873 $_sound_types. |
2867 Hardcoded default is: $_sound_default." | 2874 A prefix of \"no\" (eg, \"notype\" for \"type\") turns a type off. |
2875 Types not explicitly specified or negated take their defaults. | |
2876 The list of defaults is \"$_sound_default\". Prefixing \`all' or | |
2877 \`none' to the list sets all defaults to on and off respectively. | |
2878 \`yes' as the sole argument is equivalent to omitting the argument." | |
2868 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 | 2879 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 |
2869 elif test -n "$_sound_all_default" ; then | |
2870 for y in $_sound_types; do | |
2871 eval "with_sound_$y=$_sound_all_default" | |
2872 eval "enable_sound_$y=$_sound_all_default" | |
2873 done | |
2874 fi | |
2875 _sound_notfirst=yes | |
2876 done | 2880 done |
2877 unset _sound_bogus _sound_found _sound_notfirst _sound_types | 2881 for y in $_sound_types; do |
2878 unset _sound_default _sound_all_default x y | 2882 eval "enable_sound_$y=\$with_sound_$y" |
2879 | 2883 unset _sound_${y}_default |
2880 | 2884 done |
2881 | 2885 unset _sound_types _sound_default _sound_all_default _sound_use_defaults |
2882 else | 2886 unset _with_sound_args _sound_found x y _require_sound |
2883 enable_sound_nas="" | 2887 |
2888 | |
2889 | |
2890 else | |
2891 | |
2892 # set default for each type | |
2893 for y in $_sound_types; do | |
2894 eval "with_sound_$y=\$_sound_${y}_default" | |
2895 eval "enable_sound_$y=\$_sound_${y}_default" | |
2896 unset _sound_${y}_default | |
2897 done | |
2898 enable_sound_nas="" | |
2884 fi; | 2899 fi; |
2885 # If --with-native-sound-lib or --without-native-sound-lib were given then copy the value to the | 2900 # If --with-native-sound-lib or --without-native-sound-lib were given then copy the value to the |
2886 # equivalent enable_native-sound-lib variable. | 2901 # equivalent enable_native-sound-lib variable. |
2887 if test "${with_native_sound_lib+set}" = set; then | 2902 if test "${with_native_sound_lib+set}" = set; then |
2888 enable_native_sound_lib="$with_native_sound_lib" | 2903 enable_native_sound_lib="$with_native_sound_lib" |
3058 withval="$with_zlib" | 3073 withval="$with_zlib" |
3059 | 3074 |
3060 fi; | 3075 fi; |
3061 | 3076 |
3062 _database_notfirst="" | 3077 _database_notfirst="" |
3063 with_database_berkdb="" | 3078 _database_berkdb_default="" |
3064 enable_database_berkdb="" | 3079 _database_dbm_default="" |
3065 with_database_dbm="" | 3080 _database_gdbm_default="" |
3066 enable_database_dbm="" | |
3067 with_database_gdbm="" | |
3068 enable_database_gdbm="" | |
3069 | |
3070 _database_types="berkdb dbm gdbm" | 3081 _database_types="berkdb dbm gdbm" |
3071 _database_default="berkdb,dbm,gdbm" | 3082 _database_default="berkdb,dbm,gdbm" |
3072 | |
3073 | |
3074 | 3083 |
3075 # If --with-database or --without-database were given then copy the value to the | 3084 # If --with-database or --without-database were given then copy the value to the |
3076 # equivalent enable_database variable. | 3085 # equivalent enable_database variable. |
3077 if test "${with_database+set}" = set; then | 3086 if test "${with_database+set}" = set; then |
3078 enable_database="$with_database" | 3087 enable_database="$with_database" |
3084 fi; | 3093 fi; |
3085 # Check whether --with-database or --without-database was given. | 3094 # Check whether --with-database or --without-database was given. |
3086 if test "${with_database+set}" = set; then | 3095 if test "${with_database+set}" = set; then |
3087 enableval="$with_database" | 3096 enableval="$with_database" |
3088 withval="$with_database" | 3097 withval="$with_database" |
3089 for y in $_database_types; do | 3098 _database_all_default="" |
3090 eval "with_database_$y=no" | 3099 _require_database="" |
3091 eval "enable_database_$y=no" | 3100 case "$with_database" in |
3101 n | no | non | none ) _database_all_default=no ;; | |
3102 n,* | no,* | non,* | none,* ) _database_all_default=no ;; | |
3103 a | al | all | both ) _database_all_default=yes ;; | |
3104 a,* | al,* | all,* | both,* ) _database_all_default=yes ;; | |
3105 y | yes ) _require_database=yes ;; | |
3106 esac | |
3107 if test -n "$_database_all_default$_require_database"; then | |
3108 _with_database_args=`echo $with_database | sed -e 's/^[a-z]*\(,\(.*\)\)\{0,1\}$/\2/'` | |
3109 else | |
3110 _with_database_args=$with_database | |
3111 fi | |
3112 for y in $_database_types; do | |
3113 if test -n "$_database_all_default" ; then | |
3114 eval "with_database_${y}=$_database_all_default" | |
3115 else | |
3116 eval "with_database_$y=\$_database_${y}_default" | |
3117 fi | |
3092 done | 3118 done |
3093 for x in `echo "$with_database" | sed -e 's/,/ /g'` ; do | 3119 for x in `echo "$_with_database_args" | sed -e 's/,/ /g'` ; do |
3094 _database_all_default="" | |
3095 _database_found="" | 3120 _database_found="" |
3096 case "$x" in | 3121 for y in $_database_types; do |
3097 n | no | non | none ) _database_all_default=no ;; | 3122 if test "$x" = "$y"; then |
3098 a | al | all | both ) _database_all_default=yes ;; | 3123 _database_found=yes |
3099 esac | 3124 eval "with_database_$y=yes" |
3100 | 3125 elif test "$x" = "no$y"; then |
3101 if test -z "$_database_all_default"; then | 3126 _database_found=yes |
3102 for y in $_database_types; do | 3127 eval "with_database_$y=no" |
3103 if test "$x" = "$y"; then | 3128 fi |
3104 _database_found=yes | 3129 done |
3105 eval "with_database_$y=yes" | 3130 test -z "$_database_found" && \ |
3106 eval "enable_database_$y=yes" | |
3107 elif test "$x" = "no$y"; then | |
3108 _database_found=yes | |
3109 eval "with_database_$y=no" | |
3110 eval "enable_database_$y=no" | |
3111 fi | |
3112 done | |
3113 test -z "$_database_found" && _database_bogus=yes | |
3114 fi | |
3115 if test "$_database_bogus" = "yes" -o \ | |
3116 \( -n "$_database_all_default" -a -n "$_database_notfirst" \) ; then | |
3117 (echo "$progname: Usage error:" | 3131 (echo "$progname: Usage error:" |
3118 echo " " "Valid values for the --with-database option are: | 3132 echo " " "\ |
3119 $_database_types. With prefix \"no\", switch it off. | 3133 Invalid type list supplied. Valid types for the --with-database option are: |
3120 Defaults may be overridden with \`all' or \`none' first in the list. | 3134 $_database_types. |
3121 Hardcoded default is: $_database_default." | 3135 A prefix of \"no\" (eg, \"notype\" for \"type\") turns a type off. |
3136 Types not explicitly specified or negated take their defaults. | |
3137 The list of defaults is \"$_database_default\". Prefixing \`all' or | |
3138 \`none' to the list sets all defaults to on and off respectively. | |
3139 \`yes' as the sole argument is equivalent to omitting the argument." | |
3122 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 | 3140 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 |
3123 elif test -n "$_database_all_default" ; then | |
3124 for y in $_database_types; do | |
3125 eval "with_database_$y=$_database_all_default" | |
3126 eval "enable_database_$y=$_database_all_default" | |
3127 done | |
3128 fi | |
3129 _database_notfirst=yes | |
3130 done | 3141 done |
3131 unset _database_bogus _database_found _database_notfirst _database_types | 3142 for y in $_database_types; do |
3132 unset _database_default _database_all_default x y | 3143 eval "enable_database_$y=\$with_database_$y" |
3144 unset _database_${y}_default | |
3145 done | |
3146 unset _database_types _database_default _database_all_default _database_use_defaults | |
3147 unset _with_database_args _database_found x y _require_database | |
3133 | 3148 |
3134 | 3149 |
3135 if test "$enable_database_dbm" = "yes" -a "$enable_database_gdbm" = "yes"; then | 3150 if test "$enable_database_dbm" = "yes" -a "$enable_database_gdbm" = "yes"; then |
3136 (echo "$progname: Usage error:" | 3151 (echo "$progname: Usage error:" |
3137 echo " " "Only one of \`dbm' and \`gnudbm' may be specified | 3152 echo " " "Only one of \`dbm' and \`gnudbm' may be specified |
3138 with the \`--with-database' option." | 3153 with the \`--with-database' option." |
3139 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 | 3154 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 |
3140 fi | 3155 fi |
3141 | 3156 |
3157 | |
3158 else | |
3159 | |
3160 # set default for each type | |
3161 for y in $_database_types; do | |
3162 eval "with_database_$y=\$_database_${y}_default" | |
3163 eval "enable_database_$y=\$_database_${y}_default" | |
3164 unset _database_${y}_default | |
3165 done | |
3142 | 3166 |
3143 fi; | 3167 fi; |
3144 # If --with-ldap or --without-ldap were given then copy the value to the | 3168 # If --with-ldap or --without-ldap were given then copy the value to the |
3145 # equivalent enable_ldap variable. | 3169 # equivalent enable_ldap variable. |
3146 if test "${with_ldap+set}" = set; then | 3170 if test "${with_ldap+set}" = set; then |
3473 enableval="$with_newgc" | 3497 enableval="$with_newgc" |
3474 withval="$with_newgc" | 3498 withval="$with_newgc" |
3475 | 3499 |
3476 fi; | 3500 fi; |
3477 _vdb_notfirst="" | 3501 _vdb_notfirst="" |
3478 with_vdb_auto= | 3502 _vdb_auto_default= |
3479 enable_vdb_auto= | 3503 _vdb_posix_default= |
3480 with_vdb_posix= | 3504 _vdb_win32_default= |
3481 enable_vdb_posix= | 3505 _vdb_mach_default= |
3482 with_vdb_win32= | 3506 _vdb_fake_default= |
3483 enable_vdb_win32= | 3507 _vdb_no_default= |
3484 with_vdb_mach= | |
3485 enable_vdb_mach= | |
3486 with_vdb_fake= | |
3487 enable_vdb_fake= | |
3488 with_vdb_no= | |
3489 enable_vdb_no= | |
3490 | |
3491 _vdb_types="auto posix win32 mach fake no" | 3508 _vdb_types="auto posix win32 mach fake no" |
3492 _vdb_default="auto,posix,win32,mach,fake,no" | 3509 _vdb_default="auto,posix,win32,mach,fake,no" |
3493 | |
3494 | |
3495 | 3510 |
3496 # If --with-vdb or --without-vdb were given then copy the value to the | 3511 # If --with-vdb or --without-vdb were given then copy the value to the |
3497 # equivalent enable_vdb variable. | 3512 # equivalent enable_vdb variable. |
3498 if test "${with_vdb+set}" = set; then | 3513 if test "${with_vdb+set}" = set; then |
3499 enable_vdb="$with_vdb" | 3514 enable_vdb="$with_vdb" |
3505 fi; | 3520 fi; |
3506 # Check whether --with-vdb or --without-vdb was given. | 3521 # Check whether --with-vdb or --without-vdb was given. |
3507 if test "${with_vdb+set}" = set; then | 3522 if test "${with_vdb+set}" = set; then |
3508 enableval="$with_vdb" | 3523 enableval="$with_vdb" |
3509 withval="$with_vdb" | 3524 withval="$with_vdb" |
3510 for y in $_vdb_types; do | 3525 _vdb_all_default="" |
3511 eval "with_vdb_$y=no" | 3526 _require_vdb="" |
3512 eval "enable_vdb_$y=no" | 3527 case "$with_vdb" in |
3528 n | no | non | none ) _vdb_all_default=no ;; | |
3529 n,* | no,* | non,* | none,* ) _vdb_all_default=no ;; | |
3530 a | al | all | both ) _vdb_all_default=yes ;; | |
3531 a,* | al,* | all,* | both,* ) _vdb_all_default=yes ;; | |
3532 y | yes ) _require_vdb=yes ;; | |
3533 esac | |
3534 if test -n "$_vdb_all_default$_require_vdb"; then | |
3535 _with_vdb_args=`echo $with_vdb | sed -e 's/^[a-z]*\(,\(.*\)\)\{0,1\}$/\2/'` | |
3536 else | |
3537 _with_vdb_args=$with_vdb | |
3538 fi | |
3539 for y in $_vdb_types; do | |
3540 if test -n "$_vdb_all_default" ; then | |
3541 eval "with_vdb_${y}=$_vdb_all_default" | |
3542 else | |
3543 eval "with_vdb_$y=\$_vdb_${y}_default" | |
3544 fi | |
3513 done | 3545 done |
3514 for x in `echo "$with_vdb" | sed -e 's/,/ /g'` ; do | 3546 for x in `echo "$_with_vdb_args" | sed -e 's/,/ /g'` ; do |
3515 _vdb_all_default="" | |
3516 _vdb_found="" | 3547 _vdb_found="" |
3517 case "$x" in | 3548 for y in $_vdb_types; do |
3518 n | no | non | none ) _vdb_all_default=no ;; | 3549 if test "$x" = "$y"; then |
3519 a | al | all | both ) _vdb_all_default=yes ;; | 3550 _vdb_found=yes |
3520 esac | 3551 eval "with_vdb_$y=yes" |
3521 | 3552 elif test "$x" = "no$y"; then |
3522 if test -z "$_vdb_all_default"; then | 3553 _vdb_found=yes |
3523 for y in $_vdb_types; do | 3554 eval "with_vdb_$y=no" |
3524 if test "$x" = "$y"; then | 3555 fi |
3525 _vdb_found=yes | 3556 done |
3526 eval "with_vdb_$y=yes" | 3557 test -z "$_vdb_found" && \ |
3527 eval "enable_vdb_$y=yes" | |
3528 elif test "$x" = "no$y"; then | |
3529 _vdb_found=yes | |
3530 eval "with_vdb_$y=no" | |
3531 eval "enable_vdb_$y=no" | |
3532 fi | |
3533 done | |
3534 test -z "$_vdb_found" && _vdb_bogus=yes | |
3535 fi | |
3536 if test "$_vdb_bogus" = "yes" -o \ | |
3537 \( -n "$_vdb_all_default" -a -n "$_vdb_notfirst" \) ; then | |
3538 (echo "$progname: Usage error:" | 3558 (echo "$progname: Usage error:" |
3539 echo " " "Valid values for the --with-vdb option are: | 3559 echo " " "\ |
3540 $_vdb_types. With prefix \"no\", switch it off. | 3560 Invalid type list supplied. Valid types for the --with-vdb option are: |
3541 Defaults may be overridden with \`all' or \`none' first in the list. | 3561 $_vdb_types. |
3542 Hardcoded default is: $_vdb_default." | 3562 A prefix of \"no\" (eg, \"notype\" for \"type\") turns a type off. |
3563 Types not explicitly specified or negated take their defaults. | |
3564 The list of defaults is \"$_vdb_default\". Prefixing \`all' or | |
3565 \`none' to the list sets all defaults to on and off respectively. | |
3566 \`yes' as the sole argument is equivalent to omitting the argument." | |
3543 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 | 3567 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 |
3544 elif test -n "$_vdb_all_default" ; then | |
3545 for y in $_vdb_types; do | |
3546 eval "with_vdb_$y=$_vdb_all_default" | |
3547 eval "enable_vdb_$y=$_vdb_all_default" | |
3548 done | |
3549 fi | |
3550 _vdb_notfirst=yes | |
3551 done | 3568 done |
3552 unset _vdb_bogus _vdb_found _vdb_notfirst _vdb_types | 3569 for y in $_vdb_types; do |
3553 unset _vdb_default _vdb_all_default x y | 3570 eval "enable_vdb_$y=\$with_vdb_$y" |
3554 | 3571 unset _vdb_${y}_default |
3555 | 3572 done |
3556 | 3573 unset _vdb_types _vdb_default _vdb_all_default _vdb_use_defaults |
3557 else | 3574 unset _with_vdb_args _vdb_found x y _require_vdb |
3558 enable_vdb="auto" | 3575 |
3576 | |
3577 | |
3578 else | |
3579 | |
3580 # set default for each type | |
3581 for y in $_vdb_types; do | |
3582 eval "with_vdb_$y=\$_vdb_${y}_default" | |
3583 eval "enable_vdb_$y=\$_vdb_${y}_default" | |
3584 unset _vdb_${y}_default | |
3585 done | |
3586 enable_vdb="auto" | |
3559 fi; | 3587 fi; |
3560 | 3588 |
3561 # If --with-modules or --without-modules were given then copy the value to the | 3589 # If --with-modules or --without-modules were given then copy the value to the |
3562 # equivalent enable_modules variable. | 3590 # equivalent enable_modules variable. |
3563 if test "${with_modules+set}" = set; then | 3591 if test "${with_modules+set}" = set; then |
3672 enableval="$with_debug" | 3700 enableval="$with_debug" |
3673 withval="$with_debug" | 3701 withval="$with_debug" |
3674 | 3702 |
3675 fi; | 3703 fi; |
3676 _error_checking_notfirst="" | 3704 _error_checking_notfirst="" |
3677 with_error_checking_extents="" | 3705 _error_checking_extents_default="" |
3678 enable_error_checking_extents="" | 3706 _error_checking_types_default="" |
3679 with_error_checking_types="" | 3707 _error_checking_text_default="" |
3680 enable_error_checking_types="" | 3708 _error_checking_gc_default="" |
3681 with_error_checking_text="" | 3709 _error_checking_malloc_default="" |
3682 enable_error_checking_text="" | 3710 _error_checking_byte_code_default="" |
3683 with_error_checking_gc="" | 3711 _error_checking_glyphs_default="" |
3684 enable_error_checking_gc="" | 3712 _error_checking_display_default="" |
3685 with_error_checking_malloc="" | 3713 _error_checking_structures_default="" |
3686 enable_error_checking_malloc="" | |
3687 with_error_checking_byte_code="" | |
3688 enable_error_checking_byte_code="" | |
3689 with_error_checking_glyphs="" | |
3690 enable_error_checking_glyphs="" | |
3691 with_error_checking_display="" | |
3692 enable_error_checking_display="" | |
3693 with_error_checking_structures="" | |
3694 enable_error_checking_structures="" | |
3695 | |
3696 _error_checking_types="extents types text gc malloc byte_code glyphs display structures" | 3714 _error_checking_types="extents types text gc malloc byte_code glyphs display structures" |
3697 _error_checking_default="extents,types,text,gc,malloc,byte_code,glyphs,display,structures" | 3715 _error_checking_default="extents,types,text,gc,malloc,byte_code,glyphs,display,structures" |
3698 | |
3699 | |
3700 | 3716 |
3701 # If --with-error-checking or --without-error-checking were given then copy the value to the | 3717 # If --with-error-checking or --without-error-checking were given then copy the value to the |
3702 # equivalent enable_error-checking variable. | 3718 # equivalent enable_error-checking variable. |
3703 if test "${with_error_checking+set}" = set; then | 3719 if test "${with_error_checking+set}" = set; then |
3704 enable_error_checking="$with_error_checking" | 3720 enable_error_checking="$with_error_checking" |
3710 fi; | 3726 fi; |
3711 # Check whether --with-error-checking or --without-error-checking was given. | 3727 # Check whether --with-error-checking or --without-error-checking was given. |
3712 if test "${with_error_checking+set}" = set; then | 3728 if test "${with_error_checking+set}" = set; then |
3713 enableval="$with_error_checking" | 3729 enableval="$with_error_checking" |
3714 withval="$with_error_checking" | 3730 withval="$with_error_checking" |
3715 for y in $_error_checking_types; do | 3731 _error_checking_all_default="" |
3716 eval "with_error_checking_$y=no" | 3732 _require_error_checking="" |
3717 eval "enable_error_checking_$y=no" | 3733 case "$with_error_checking" in |
3734 n | no | non | none ) _error_checking_all_default=no ;; | |
3735 n,* | no,* | non,* | none,* ) _error_checking_all_default=no ;; | |
3736 a | al | all | both ) _error_checking_all_default=yes ;; | |
3737 a,* | al,* | all,* | both,* ) _error_checking_all_default=yes ;; | |
3738 y | yes ) _require_error_checking=yes ;; | |
3739 esac | |
3740 if test -n "$_error_checking_all_default$_require_error_checking"; then | |
3741 _with_error_checking_args=`echo $with_error_checking | sed -e 's/^[a-z]*\(,\(.*\)\)\{0,1\}$/\2/'` | |
3742 else | |
3743 _with_error_checking_args=$with_error_checking | |
3744 fi | |
3745 for y in $_error_checking_types; do | |
3746 if test -n "$_error_checking_all_default" ; then | |
3747 eval "with_error_checking_${y}=$_error_checking_all_default" | |
3748 else | |
3749 eval "with_error_checking_$y=\$_error_checking_${y}_default" | |
3750 fi | |
3718 done | 3751 done |
3719 for x in `echo "$with_error_checking" | sed -e 's/,/ /g'` ; do | 3752 for x in `echo "$_with_error_checking_args" | sed -e 's/,/ /g'` ; do |
3720 _error_checking_all_default="" | |
3721 _error_checking_found="" | 3753 _error_checking_found="" |
3722 case "$x" in | 3754 for y in $_error_checking_types; do |
3723 n | no | non | none ) _error_checking_all_default=no ;; | 3755 if test "$x" = "$y"; then |
3724 a | al | all | both ) _error_checking_all_default=yes ;; | 3756 _error_checking_found=yes |
3725 esac | 3757 eval "with_error_checking_$y=yes" |
3726 | 3758 elif test "$x" = "no$y"; then |
3727 if test -z "$_error_checking_all_default"; then | 3759 _error_checking_found=yes |
3728 for y in $_error_checking_types; do | 3760 eval "with_error_checking_$y=no" |
3729 if test "$x" = "$y"; then | 3761 fi |
3730 _error_checking_found=yes | 3762 done |
3731 eval "with_error_checking_$y=yes" | 3763 test -z "$_error_checking_found" && \ |
3732 eval "enable_error_checking_$y=yes" | |
3733 elif test "$x" = "no$y"; then | |
3734 _error_checking_found=yes | |
3735 eval "with_error_checking_$y=no" | |
3736 eval "enable_error_checking_$y=no" | |
3737 fi | |
3738 done | |
3739 test -z "$_error_checking_found" && _error_checking_bogus=yes | |
3740 fi | |
3741 if test "$_error_checking_bogus" = "yes" -o \ | |
3742 \( -n "$_error_checking_all_default" -a -n "$_error_checking_notfirst" \) ; then | |
3743 (echo "$progname: Usage error:" | 3764 (echo "$progname: Usage error:" |
3744 echo " " "Valid values for the --with-error-checking option are: | 3765 echo " " "\ |
3745 $_error_checking_types. With prefix \"no\", switch it off. | 3766 Invalid type list supplied. Valid types for the --with-error-checking option are: |
3746 Defaults may be overridden with \`all' or \`none' first in the list. | 3767 $_error_checking_types. |
3747 Hardcoded default is: $_error_checking_default." | 3768 A prefix of \"no\" (eg, \"notype\" for \"type\") turns a type off. |
3769 Types not explicitly specified or negated take their defaults. | |
3770 The list of defaults is \"$_error_checking_default\". Prefixing \`all' or | |
3771 \`none' to the list sets all defaults to on and off respectively. | |
3772 \`yes' as the sole argument is equivalent to omitting the argument." | |
3748 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 | 3773 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 |
3749 elif test -n "$_error_checking_all_default" ; then | |
3750 for y in $_error_checking_types; do | |
3751 eval "with_error_checking_$y=$_error_checking_all_default" | |
3752 eval "enable_error_checking_$y=$_error_checking_all_default" | |
3753 done | |
3754 fi | |
3755 _error_checking_notfirst=yes | |
3756 done | 3774 done |
3757 unset _error_checking_bogus _error_checking_found _error_checking_notfirst _error_checking_types | 3775 for y in $_error_checking_types; do |
3758 unset _error_checking_default _error_checking_all_default x y | 3776 eval "enable_error_checking_$y=\$with_error_checking_$y" |
3759 | 3777 unset _error_checking_${y}_default |
3760 | 3778 done |
3779 unset _error_checking_types _error_checking_default _error_checking_all_default _error_checking_use_defaults | |
3780 unset _with_error_checking_args _error_checking_found x y _require_error_checking | |
3781 | |
3782 | |
3783 | |
3784 else | |
3785 | |
3786 # set default for each type | |
3787 for y in $_error-checking_types; do | |
3788 eval "with_error-checking_$y=\$_error-checking_${y}_default" | |
3789 eval "enable_error-checking_$y=\$_error-checking_${y}_default" | |
3790 unset _error-checking_${y}_default | |
3791 done | |
3761 | 3792 |
3762 fi; | 3793 fi; |
3763 # If --with-assertions or --without-assertions were given then copy the value to the | 3794 # If --with-assertions or --without-assertions were given then copy the value to the |
3764 # equivalent enable_assertions variable. | 3795 # equivalent enable_assertions variable. |
3765 if test "${with_assertions+set}" = set; then | 3796 if test "${with_assertions+set}" = set; then |