make/configure.vm

changeset 1017
b0098854071f
parent 987
53e22f112b11
equal deleted inserted replaced
1016:fe177d6dabb8 1017:b0098854071f
105 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 105 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
106 --infodir=DIR info documentation [DATAROOTDIR/info] 106 --infodir=DIR info documentation [DATAROOTDIR/info]
107 --mandir=DIR man documentation [DATAROOTDIR/man] 107 --mandir=DIR man documentation [DATAROOTDIR/man]
108 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 108 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
109 109
110 Build Types:
111 --debug add extra compile flags for debug builds
112 --release add extra compile flags for release builds
110 #if( $options.size() > 0 ) 113 #if( $options.size() > 0 )
114
111 Options: 115 Options:
112 --debug add extra compile flags for debug builds
113 --release add extra compile flags for release builds
114 #foreach( $opt in $options ) 116 #foreach( $opt in $options )
115 --${opt.argument}=${opt.valuesString} 117 --${opt.argument}=${opt.valuesString}
116 #end 118 #end
117
118 #end 119 #end
119 #if( $features.size() > 0 ) 120 #if( $features.size() > 0 )
121
120 Optional Features: 122 Optional Features:
121 #foreach( $feature in $features ) 123 #foreach( $feature in $features )
122 ${feature.helpText} 124 ${feature.helpText}
123 #end 125 #end
124 126 #end
125 #end 127
126 __EOF__ 128 __EOF__
127 } 129 }
128 130
129 # create temporary directory 131 # create temporary directory
130 TEMP_DIR=".tmp-`uname -n`" 132 TEMP_DIR=".tmp-`uname -n`"
205 "--localstatedir="*) localstatedir=${D}{ARG#--localstatedir=} ;; 207 "--localstatedir="*) localstatedir=${D}{ARG#--localstatedir=} ;;
206 "--includedir="*) includedir=${D}{ARG#--includedir=} ;; 208 "--includedir="*) includedir=${D}{ARG#--includedir=} ;;
207 "--infodir="*) infodir=${D}{ARG#--infodir=} ;; 209 "--infodir="*) infodir=${D}{ARG#--infodir=} ;;
208 "--mandir"*) mandir=${D}{ARG#--mandir} ;; 210 "--mandir"*) mandir=${D}{ARG#--mandir} ;;
209 "--localedir"*) localedir=${D}{ARG#--localedir} ;; 211 "--localedir"*) localedir=${D}{ARG#--localedir} ;;
210 "--help"*) printhelp; abort_configure ;; 212 "--help"*) printhelp; abort_configure ;;
211 "--debug") BUILD_TYPE="debug" ;; 213 "--debug") BUILD_TYPE="debug" ;;
212 "--release") BUILD_TYPE="release" ;; 214 "--release") BUILD_TYPE="release" ;;
213 #foreach( $opt in $options ) 215 #foreach( $opt in $options )
214 "--${opt.argument}="*) ${opt.varName}=${D}{ARG#--${opt.argument}=} ;; 216 "--${opt.argument}="*) ${opt.varName}=${D}{ARG#--${opt.argument}=} ;;
217 "--${opt.argument}") echo "option '$ARG' needs a value:"; echo " $ARG=${opt.valuesString}"; abort_configure ;;
215 #end 218 #end
216 #foreach( $feature in $features ) 219 #foreach( $feature in $features )
217 "--enable-${feature.arg}") ${feature.varName}=on ;; 220 "--enable-${feature.arg}") ${feature.varName}=on ;;
218 "--disable-${feature.arg}") unset ${feature.varName} ;; 221 "--disable-${feature.arg}") unset ${feature.varName} ;;
219 #end 222 #end
406 409
407 DEPENDENCIES_FAILED= 410 DEPENDENCIES_FAILED=
408 ERROR=0 411 ERROR=0
409 #if( $dependencies.size() > 0 ) 412 #if( $dependencies.size() > 0 )
410 # unnamed dependencies 413 # unnamed dependencies
411 TEMP_CFLAGS= 414 TEMP_CFLAGS="$CFLAGS"
412 TEMP_CXXFLAGS= 415 TEMP_CXXFLAGS="$CXXFLAGS"
413 TEMP_LDFLAGS= 416 TEMP_LDFLAGS="$LDFLAGS"
414 #foreach( $dependency in $dependencies ) 417 #foreach( $dependency in $dependencies )
415 while true 418 while true
416 do 419 do
417 #if( $dependency.platform ) 420 #if( $dependency.platform )
418 if notisplatform "${dependency.platform}"; then 421 if notisplatform "${dependency.platform}"; then
641 else 644 else
642 ERROR=1 645 ERROR=1
643 DEPENDENCIES_FAILED="option '${opt.argument}' $DEPENDENCIES_FAILED" 646 DEPENDENCIES_FAILED="option '${opt.argument}' $DEPENDENCIES_FAILED"
644 fi 647 fi
645 #end 648 #end
649 else
650 echo
651 echo "Invalid option value - usage:"
652 echo " --${opt.argument}=${opt.valuesString}"
653 abort_configure
646 fi 654 fi
647 fi 655 fi
648 #end 656 #end
649 657
650 if [ -n "${TEMP_CFLAGS}" ] && [ -n "$lang_c" ]; then 658 if [ -n "${TEMP_CFLAGS}" ] && [ -n "$lang_c" ]; then

mercurial