## Conact Address ############################### SUPPORT_ADDRESS="orxonox-dev@mail.datacore.ch" ## Configure Version ############################### CONFIG_VERS="0.1alpha - orxonox is still in development - please send bug-reports, requests, ideas to $SUPPORT_ADDRESS" ## Defaults ################################ ENABLE_GLUT="yes" ENABLE_GTK="yes" VERBOSE="no" ## Where to look for stuff ################################ std_bin_dirs="/usr/bin /usr/X11R6/bin /usr/local/bin $HOME/bin" std_include_dirs="/usr/include/GL" std_lib_dirs="/usr/lib /usr/X11R6/lib /usr/local/lib $HOME/lib" ## The functions enter the room. ## In order to understand this ## file you have to understand ## scripts/configure_functions ################################ source ./scripts/configure_functions ## print instruction ################################ print_newline print_separator print_message "This scripts determines all options" print_message "needed to build Orxonox." print_message "This is no autoconf configure script" print_separator ## Check command line for options ################################# check_command_line_options $@ ## Check linux distribution ############################################################# print_topic "Checking OS" OS=`uname -a | awk '{print $1}'` if [ $OS == "Linux" ]; then print_ack print_info "Running on a $OS system" else print_nack print_error "Running on a $OS system - probably not supported" print_error "Orxonox is designed to run on Linux systems" print_error "please do not stop here an try to port the game to" print_error "your system. Send your patch to $SUPPORT_ADDRESS" print_exit exit 1 fi ## Check GLUT installation ############################################################## if [ $ENABLE_GLUT = "yes" ]; then print_topic "Verifing GLUT install" if check_for_GLUT; then print_ack print_info "GLUT found at: $GLUT_DIR" else print_nack print_error "GLUT not found!" print_exit exit 1 fi fi ## Check Direct Rendering Support ############################################################## if [ $ENABLE_GLUT = "yes" ]; then print_topic "Checking Direct Rendering Support (dri)" if check_for_glxinfo; then if check_for_dri; then print_ack print_info "DRI is working on your system" else print_nack print_warning "DRI not supported, you probably want to configure it" print_warning "or you try OpenGL emulation with Mesa" fi else print_nack print_error "no glxinfo detected - check your xfree install" fi fi ## Check GtK Installation ############################################################## if [ $ENABLE_GTK == "yes" ]; then print_topic "Checking for GtK Support" if check_for_gtk_config; then print_ack print_info "gtk-config found: $GTK_CONFIG" else print_nack print_warning "You won't be able to use our gtk config" print_warning "menu. This ain't gonna hurt..." fi fi ## Write Makefile ############################################################### print_topic "Writing out Makefile" if [ $ENABLE_GLUT == "yes" ]; then if [ $ENABLE_GLUT == "yes" ]; then cp scripts/Makefile.all Makefile > /dev/null else cp scripts/Makefile.GLUT Makefile > /dev/null fi fi if [ -f Makefile ]; then print_ack else print_nack print_error "This error should not occure, please send" print_error "a full bug-report to $SUPPORT_ADDRESS" exit 1 fi print_separator print_message "Configure finished" print_newline print_message "Now, type 'make' to build Orxonox" print_newline ### EOF