config.lib
branchcustombridgeheads
changeset 5645 72ebd9e4cd64
parent 5643 3778051e8095
child 5648 1608018c5ff2
equal deleted inserted replaced
5644:ec96a5a38023 5645:72ebd9e4cd64
   620 	if [ "$enable_dedicated" != "0" ]
   620 	if [ "$enable_dedicated" != "0" ]
   621 	then
   621 	then
   622 		log 1 "checking GDI video driver... skipping"
   622 		log 1 "checking GDI video driver... skipping"
   623 		log 1 "checking dedicated... found"
   623 		log 1 "checking dedicated... found"
   624 
   624 
   625 		if [ "$enable_network" != "0" ]
   625 		if [ "$enable_network" = "0" ]
   626 		then
   626 		then
   627 			log 1 "WARNING: compiling a dedicated server without network is pointless"
   627 			log 1 "WARNING: compiling a dedicated server without network is pointless"
   628 			sleep 5
   628 			sleep 5
   629 		fi
   629 		fi
   630 	else
   630 	else
   655 	fi
   655 	fi
   656 
   656 
   657 	if [ "$enable_translator" != "0" ]
   657 	if [ "$enable_translator" != "0" ]
   658 	then
   658 	then
   659 		log 1 "checking translator... debug"
   659 		log 1 "checking translator... debug"
   660 		strgen_flags=""
       
   661 	else
       
   662 		log 1 "checking translator... no"
       
   663 		# -t shows TODO items, normally they are muted
   660 		# -t shows TODO items, normally they are muted
   664 		strgen_flags="-t"
   661 		strgen_flags="-t"
       
   662 	else
       
   663 		log 1 "checking translator... no"
       
   664 		strgen_flags=""
   665 	fi
   665 	fi
   666 
   666 
   667 	if [ "$enable_assert" != "0" ]
   667 	if [ "$enable_assert" != "0" ]
   668 	then
   668 	then
   669 		log 1 "checking assert... enabled"
   669 		log 1 "checking assert... enabled"
  1556 	ret=$?
  1556 	ret=$?
  1557 	log 2 "executing $sdl_config --version"
  1557 	log 2 "executing $sdl_config --version"
  1558 	log 2 "  returned $version"
  1558 	log 2 "  returned $version"
  1559 	log 2 "  exit code $ret"
  1559 	log 2 "  exit code $ret"
  1560 
  1560 
  1561 	if [ -z $version ] || [ "$ret" != "0" ]
  1561 	if [ -z "$version" ] || [ "$ret" != "0" ]
  1562 	then
  1562 	then
  1563 		log 1 "checking SDL... not found"
  1563 		log 1 "checking SDL... not found"
  1564 
  1564 
  1565 		# It was forced, so it should be found.
  1565 		# It was forced, so it should be found.
  1566 		if [ "$with_sdl" != "1" ]
  1566 		if [ "$with_sdl" != "1" ]
  2107 	BASE_SRC_OBJS_DIR="$OBJS_DIR/ppc"
  2107 	BASE_SRC_OBJS_DIR="$OBJS_DIR/ppc"
  2108 	cc_host="$cc_host_orig -arch ppc"
  2108 	cc_host="$cc_host_orig -arch ppc"
  2109 	cxx_host="$cxx_host_orig -arch ppc"
  2109 	cxx_host="$cxx_host_orig -arch ppc"
  2110 	generate_src_normal "[PowerPC]" "objs/ppc"
  2110 	generate_src_normal "[PowerPC]" "objs/ppc"
  2111 
  2111 
  2112 	BASE_SRC_OBJS_DIR="$OBJS_DIR/i386"
  2112 	BASE_SRC_OBJS_DIR="$OBJS_DIR/intel"
  2113 	cc_host="$cc_host_orig -arch i386"
  2113 	cc_host="$cc_host_orig -arch i386"
  2114 	cxx_host="$cxx_host_orig -arch i386"
  2114 	cxx_host="$cxx_host_orig -arch i386"
  2115 	generate_src_normal "[i386]" "objs/i386"
  2115 	generate_src_normal "[Intel]" "objs/intel"
  2116 
  2116 
  2117 	BASE_SRC_OBJS_DIR="$OBJS_DIR/ppc970"
  2117 	BASE_SRC_OBJS_DIR="$OBJS_DIR/ppc970"
  2118 	cc_host="$cc_host_orig -arch ppc970"
  2118 	cc_host="$cc_host_orig -arch ppc970"
  2119 	cxx_host="$cxx_host_orig -arch ppc970"
  2119 	cxx_host="$cxx_host_orig -arch ppc970"
  2120 	CFLAGS="$CFLAGS -mtune=970 -mcpu=970 -mpowerpc-gpopt"
  2120 	CFLAGS="$CFLAGS -mtune=970 -mcpu=970 -mpowerpc-gpopt"
  2143 	echo "Configuration:"
  2143 	echo "Configuration:"
  2144 	echo "  -h, --help                     display this help and exit"
  2144 	echo "  -h, --help                     display this help and exit"
  2145 	echo ""
  2145 	echo ""
  2146 	echo "System types:"
  2146 	echo "System types:"
  2147 	echo "  --build=BUILD                  configure for building on BUILD [guessed]"
  2147 	echo "  --build=BUILD                  configure for building on BUILD [guessed]"
  2148 	echo "  --host=HOST                    cross-compile to build programs to run on HOST [BUILD]"
  2148 	echo "  --host=HOST                    cross-compile to build programs to run"
       
  2149 	echo "                                 on HOST [BUILD]"
  2149 	echo "  --windres=WINDRES              the windres to use [HOST-windres]"
  2150 	echo "  --windres=WINDRES              the windres to use [HOST-windres]"
  2150 	echo "  --strip=STRIP                  the strip to use [HOST-strip]"
  2151 	echo "  --strip=STRIP                  the strip to use [HOST-strip]"
  2151 	echo "  --lipo=LIPO                    the lipo to use (OSX ONLY) [HOST-lipo]"
  2152 	echo "  --lipo=LIPO                    the lipo to use (OSX ONLY) [HOST-lipo]"
  2152 	echo "  --os=OS                        the OS we are compiling for [DETECT]"
  2153 	echo "  --os=OS                        the OS we are compiling for [DETECT]"
  2153 	echo "                                 DETECT/UNIX/OSX/FREEBSD/MORPHOS/BEOS/SUNOS/CYGWIN/MINGW"
  2154 	echo "                                 DETECT/UNIX/OSX/FREEBSD/MORPHOS/BEOS/"
  2154 	echo "  --endian=ENDIAN                set the endian of the HOST (AUTO/LE/BE) [AUTO]"
  2155 	echo "                                 SUNOS/CYGWIN/MINGW"
  2155 	echo "  --revision=rXXXX               overwrite the revision detection. Use with care!"
  2156 	echo "  --endian=ENDIAN                set the endian of the HOST (AUTO/LE/BE)"
       
  2157 	echo "  --revision=rXXXX               overwrite the revision detection."
       
  2158 	echo "                                 Use with care!"
  2156 	echo ""
  2159 	echo ""
  2157 	echo "Paths:"
  2160 	echo "Paths:"
  2158 	echo "  --prefix-dir=dir               specifies the prefix for all installed files [/usr/local]"
  2161 	echo "  --prefix-dir=dir               specifies the prefix for all installed"
  2159 	echo "  --binary-dir=dir               location of the binary. Will be prefixed with the"
  2162 	echo "                                 files [/usr/local]"
  2160 	echo "                                 prefix-dir [games]"
  2163 	echo "  --binary-dir=dir               location of the binary. Will be prefixed"
  2161 	echo "  --data-dir=dir                 location of data files (lang, data, gm, scenario)."
  2164 	echo "                                 with the prefix-dir [games]"
  2162 	echo "                                 Will be prefixed with the prefix-dir [share/games/openttd]"
  2165 	echo "  --data-dir=dir                 location of data files (lang, data, gm)."
  2163 	echo "  --icon-dir=dir                 location of icons. Will be prefixed with the"
  2166 	echo "                                 Will be prefixed with the prefix-dir"
  2164 	echo "                                 prefix-dir [share/pixmaps]"
  2167 	echo "                                 [share/games/openttd]"
       
  2168 	echo "  --icon-dir=dir                 location of icons. Will be prefixed"
       
  2169 	echo "                                 with the prefix-dir [share/pixmaps]"
  2165 	echo "  --personal-dir=dir             location of the personal directory []"
  2170 	echo "  --personal-dir=dir             location of the personal directory []"
  2166 	echo "  --install-dir=dir              specifies the root to install to. Useful to install"
  2171 	echo "  --install-dir=dir              specifies the root to install to."
  2167 	echo "                                 into jails [/]"
  2172 	echo "                                 Useful to install into jails [/]"
  2168 	echo ""
  2173 	echo ""
  2169 # TODO: The Following 3 tags will be removed when the 'search path patch' is applied
  2174 # TODO: The Following 3 tags will be removed when the 'search path patch' is applied
  2170 	echo "  --second-data-dir=dir          specifies a second directory for the data files"
  2175 	echo "  --second-data-dir=dir          specifies a second directory for the"
  2171 	echo "  --custom-lang-dir=dir          specifies a custom directory for the language files"
  2176 	echo "                                 data files"
  2172 	echo "  --enable-install               make a binary that uses the specified data-dir and icon-dir"
  2177 	echo "  --custom-lang-dir=dir          specifies a custom directory for the"
       
  2178 	echo "                                 language files"
       
  2179 	echo "  --enable-install               make a binary that uses the specified"
       
  2180 	echo "                                 data-dir and icon-dir"
  2173 	echo ""
  2181 	echo ""
  2174 	echo "Features and packages:"
  2182 	echo "Features and packages:"
  2175 	echo "  --enable-debug[=LVL]           enable debug-mode (LVL=[0123], 0 is release) [LVL=0]"
  2183 	echo "  --enable-debug[=LVL]           enable debug-mode (LVL=[0123], 0 is release)"
  2176 	echo "  --enable-profiling             enables profiling (can be mixed with --enable-debug)"
  2184 	echo "  --enable-profiling             enables profiling"
  2177 	echo "  --enable-dedicated             compile a dedicated server (without video-drivers)"
  2185 	echo "  --enable-dedicated             compile a dedicated server (without video)"
  2178 	echo "  --enable-static                enable static compile (doesn't work for all HOSTs)"
  2186 	echo "  --enable-static                enable static compile (doesn't work for"
       
  2187 	echo "                                 all HOSTs)"
  2179 	echo "  --enable-translator            enable extra output for translators"
  2188 	echo "  --enable-translator            enable extra output for translators"
  2180 	echo "  --enable-universal             enable universal builds (OSX ONLY)"
  2189 	echo "  --enable-universal             enable universal builds (OSX ONLY)"
  2181 	echo "  --enable-osx-g5                enables optimalizations for G5 (OSX ONLY)"
  2190 	echo "  --enable-osx-g5                enables optimalizations for G5 (OSX ONLY)"
  2182 	echo "  --disable-network              disable network support"
  2191 	echo "  --disable-network              disable network support"
  2183 	echo "  --disable-assert               disable asserts (on error, program just continues)"
  2192 	echo "  --disable-assert               disable asserts (continue on errors)"
  2184 	echo "  --disable-strip                disable any possible stripping"
  2193 	echo "  --disable-strip                disable any possible stripping"
  2185 	echo "  --without-osx-sysroot          disable the automatic adding of sysroot (OSX ONLY)"
  2194 	echo "  --without-osx-sysroot          disable the automatic adding of sysroot "
  2186 	echo "  --without-application-bundle   disable generation of application bundle (OSX ONLY)"
  2195 	echo "                                 (OSX ONLY)"
       
  2196 	echo "  --without-application-bundle   disable generation of application bundle"
       
  2197 	echo "                                 (OSX ONLY)"
  2187 	echo "  --with-direct-music            enable direct music support (Win32 ONLY)"
  2198 	echo "  --with-direct-music            enable direct music support (Win32 ONLY)"
  2188 	echo "  --with-sort=sort               define a non-default location for sort"
  2199 	echo "  --with-sort=sort               define a non-default location for sort"
  2189 	echo "  --with-midi=midi               define which midi-player to use"
  2200 	echo "  --with-midi=midi               define which midi-player to use"
  2190 	echo "  --with-midi-arg=arg            define which args to use for the midi-player"
  2201 	echo "  --with-midi-arg=arg            define which args to use for the"
  2191 	echo "  --with-cocoa                   enables COCOA video driver (OSX ONLY) support"
  2202 	echo "                                 midi-player"
       
  2203 	echo "  --with-cocoa                   enables COCOA video driver (OSX ONLY)"
  2192 	echo "  --with-sdl[=sdl-config]        enables SDL video driver support"
  2204 	echo "  --with-sdl[=sdl-config]        enables SDL video driver support"
  2193 	echo "  --with-zlib[=zlib.a]           enables zlib support"
  2205 	echo "  --with-zlib[=zlib.a]           enables zlib support"
  2194 	echo "  --with-png[=libpng-config]     enables libpng support"
  2206 	echo "  --with-png[=libpng-config]     enables libpng support"
  2195 	echo "  --with-freetype[=freetype-config]"
  2207 	echo "  --with-freetype[=freetype-config]"
  2196 	echo "                                 enables libfreetype support"
  2208 	echo "                                 enables libfreetype support"
  2202 	echo "Some influential environment variables:"
  2214 	echo "Some influential environment variables:"
  2203 	echo "  CC                             C compiler command"
  2215 	echo "  CC                             C compiler command"
  2204 	echo "  CXX                            C++ compiler command"
  2216 	echo "  CXX                            C++ compiler command"
  2205 	echo "  CFLAGS                         C compiler flags"
  2217 	echo "  CFLAGS                         C compiler flags"
  2206 	echo "  WINDRES                        windres command"
  2218 	echo "  WINDRES                        windres command"
  2207 	echo "  LDFLAGS                        linker flags, e.g. -L<lib dir> if you have libraries"
  2219 	echo "  LDFLAGS                        linker flags, e.g. -L<lib dir> if you"
  2208 	echo "                                 in a nonstandard directory <lib dir>"
  2220 	echo "                                 have libraries in a nonstandard"
       
  2221 	echo "                                 directory <lib dir>"
  2209 	echo ""
  2222 	echo ""
  2210 	echo "Use these variables to override the choices made by 'configure' or to help"
  2223 	echo "Use these variables to override the choices made by 'configure' or to help"
  2211 	echo "it to find libraries and programs with nonstandard names/locations."
  2224 	echo "it to find libraries and programs with nonstandard names/locations."
  2212 }
  2225 }