Changeset 5265 in orxonox.OLD for trunk/configure
- Timestamp:
- Sep 27, 2005, 1:07:08 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/configure
r5224 r5265 3962 3962 fi; 3963 3963 if test x$SHARED_LIB_PATH != xno; then 3964 3964 echo "set to $SHARED_LIB_PATH" 3965 3965 else 3966 3966 echo "no" … … 5540 5540 ##LDFLAGS="-L/usr/lib $LDFLAGS" 5541 5541 if test x$SHARED_LIB_PATH != xno; then 5542 5543 5542 echo "setting new LDFLAGS with $SHARED_LIB_PATH" 5543 LDFLAGS="-Wl,-rpath,$SHARED_LIB_PATH -L$SHARED_LIB_PATH $LDFLAGS" 5544 5544 fi 5545 5545 … … 5939 5939 # exit -1 5940 5940 # fi 5941 5942 # checking for GLEW-headers 5943 5944 for ac_header in GL/glew.h 5945 do 5946 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5947 if eval "test \"\${$as_ac_Header+set}\" = set"; then 5948 echo "$as_me:$LINENO: checking for $ac_header" >&5 5949 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5950 if eval "test \"\${$as_ac_Header+set}\" = set"; then 5951 echo $ECHO_N "(cached) $ECHO_C" >&6 5952 fi 5953 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 5954 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5955 else 5956 # Is the header compilable? 5957 echo "$as_me:$LINENO: checking $ac_header usability" >&5 5958 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 5959 cat >conftest.$ac_ext <<_ACEOF 5960 /* confdefs.h. */ 5961 _ACEOF 5962 cat confdefs.h >>conftest.$ac_ext 5963 cat >>conftest.$ac_ext <<_ACEOF 5964 /* end confdefs.h. */ 5965 $ac_includes_default 5966 #include <$ac_header> 5967 _ACEOF 5968 rm -f conftest.$ac_objext 5969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5970 (eval $ac_compile) 2>conftest.er1 5971 ac_status=$? 5972 grep -v '^ *+' conftest.er1 >conftest.err 5973 rm -f conftest.er1 5974 cat conftest.err >&5 5975 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5976 (exit $ac_status); } && 5977 { ac_try='test -z "$ac_c_werror_flag" 5978 || test ! -s conftest.err' 5979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5980 (eval $ac_try) 2>&5 5981 ac_status=$? 5982 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5983 (exit $ac_status); }; } && 5984 { ac_try='test -s conftest.$ac_objext' 5985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5986 (eval $ac_try) 2>&5 5987 ac_status=$? 5988 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5989 (exit $ac_status); }; }; then 5990 ac_header_compiler=yes 5991 else 5992 echo "$as_me: failed program was:" >&5 5993 sed 's/^/| /' conftest.$ac_ext >&5 5994 5995 ac_header_compiler=no 5996 fi 5997 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5998 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5999 echo "${ECHO_T}$ac_header_compiler" >&6 6000 6001 # Is the header present? 6002 echo "$as_me:$LINENO: checking $ac_header presence" >&5 6003 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 6004 cat >conftest.$ac_ext <<_ACEOF 6005 /* confdefs.h. */ 6006 _ACEOF 6007 cat confdefs.h >>conftest.$ac_ext 6008 cat >>conftest.$ac_ext <<_ACEOF 6009 /* end confdefs.h. */ 6010 #include <$ac_header> 6011 _ACEOF 6012 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 6013 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 6014 ac_status=$? 6015 grep -v '^ *+' conftest.er1 >conftest.err 6016 rm -f conftest.er1 6017 cat conftest.err >&5 6018 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6019 (exit $ac_status); } >/dev/null; then 6020 if test -s conftest.err; then 6021 ac_cpp_err=$ac_c_preproc_warn_flag 6022 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 6023 else 6024 ac_cpp_err= 6025 fi 6026 else 6027 ac_cpp_err=yes 6028 fi 6029 if test -z "$ac_cpp_err"; then 6030 ac_header_preproc=yes 6031 else 6032 echo "$as_me: failed program was:" >&5 6033 sed 's/^/| /' conftest.$ac_ext >&5 6034 6035 ac_header_preproc=no 6036 fi 6037 rm -f conftest.err conftest.$ac_ext 6038 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6039 echo "${ECHO_T}$ac_header_preproc" >&6 6040 6041 # So? What about this header? 6042 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6043 yes:no: ) 6044 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 6045 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 6046 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 6047 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 6048 ac_header_preproc=yes 6049 ;; 6050 no:yes:* ) 6051 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 6052 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 6053 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 6054 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 6055 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 6056 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 6057 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 6058 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 6059 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 6060 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 6061 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 6062 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 6063 ( 6064 cat <<\_ASBOX 6065 ## ---------------------------------------------- ## 6066 ## Report this to orxonox-dev at mail.datacore.ch ## 6067 ## ---------------------------------------------- ## 6068 _ASBOX 6069 ) | 6070 sed "s/^/$as_me: WARNING: /" >&2 6071 ;; 6072 esac 6073 echo "$as_me:$LINENO: checking for $ac_header" >&5 6074 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 6075 if eval "test \"\${$as_ac_Header+set}\" = set"; then 6076 echo $ECHO_N "(cached) $ECHO_C" >&6 6077 else 6078 eval "$as_ac_Header=\$ac_header_preproc" 6079 fi 6080 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 6081 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 6082 6083 fi 6084 if test `eval echo '${'$as_ac_Header'}'` = yes; then 6085 cat >>confdefs.h <<_ACEOF 6086 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6087 _ACEOF 6088 6089 else 6090 { { echo "$as_me:$LINENO: error: cannot find glew headers" >&5 6091 echo "$as_me: error: cannot find glew headers" >&2;} 6092 { (exit 1); exit 1; }; } 6093 fi 6094 6095 done 6096 6097 # checking for GLEW-lib 6098 echo "$as_me:$LINENO: checking for main in -lGLEW" >&5 6099 echo $ECHO_N "checking for main in -lGLEW... $ECHO_C" >&6 6100 if test "${ac_cv_lib_GLEW_main+set}" = set; then 6101 echo $ECHO_N "(cached) $ECHO_C" >&6 6102 else 6103 ac_check_lib_save_LIBS=$LIBS 6104 LIBS="-lGLEW $LIBS" 6105 cat >conftest.$ac_ext <<_ACEOF 6106 /* confdefs.h. */ 6107 _ACEOF 6108 cat confdefs.h >>conftest.$ac_ext 6109 cat >>conftest.$ac_ext <<_ACEOF 6110 /* end confdefs.h. */ 6111 6112 6113 int 6114 main () 6115 { 6116 main (); 6117 ; 6118 return 0; 6119 } 6120 _ACEOF 6121 rm -f conftest.$ac_objext conftest$ac_exeext 6122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6123 (eval $ac_link) 2>conftest.er1 6124 ac_status=$? 6125 grep -v '^ *+' conftest.er1 >conftest.err 6126 rm -f conftest.er1 6127 cat conftest.err >&5 6128 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6129 (exit $ac_status); } && 6130 { ac_try='test -z "$ac_c_werror_flag" 6131 || test ! -s conftest.err' 6132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6133 (eval $ac_try) 2>&5 6134 ac_status=$? 6135 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6136 (exit $ac_status); }; } && 6137 { ac_try='test -s conftest$ac_exeext' 6138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6139 (eval $ac_try) 2>&5 6140 ac_status=$? 6141 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6142 (exit $ac_status); }; }; then 6143 ac_cv_lib_GLEW_main=yes 6144 else 6145 echo "$as_me: failed program was:" >&5 6146 sed 's/^/| /' conftest.$ac_ext >&5 6147 6148 ac_cv_lib_GLEW_main=no 6149 fi 6150 rm -f conftest.err conftest.$ac_objext \ 6151 conftest$ac_exeext conftest.$ac_ext 6152 LIBS=$ac_check_lib_save_LIBS 6153 fi 6154 echo "$as_me:$LINENO: result: $ac_cv_lib_GLEW_main" >&5 6155 echo "${ECHO_T}$ac_cv_lib_GLEW_main" >&6 6156 if test $ac_cv_lib_GLEW_main = yes; then 6157 FOUND_GLEW=yes 6158 fi 6159 6160 if test x$FOUND_GLEW = xyes ; then 6161 LIBS="$LIBS -lGLEW" 6162 else 6163 echo "------------------" 6164 echo "glew not found." 6165 echo "please install the glew package which can be found at http://glew.sourceforge.net" 6166 echo "------------------" 6167 exit -1 6168 fi 5941 6169 5942 6170 #--------#
Note: See TracChangeset
for help on using the changeset viewer.