diff options
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 19 |
1 files changed, 16 insertions, 3 deletions
@@ -82,8 +82,14 @@ echo $datatype # # Greet user # + echo "Running ScummVM configure..." -printf "" > config.h +echo "/* This file is automatically generated by configure */" > config.h +echo "/* DO NOT EDIT MANUALLY */" >> config.h +echo "" >> config.h +echo "#ifndef CONFIG_H" >> config.h +echo "#define CONFIG_H" >> config.h +echo "" >> config.h # @@ -129,7 +135,8 @@ fi # # Determine hosttype # -# TODO - also add an command line option to override this +# TODO - also add an command line option to override this?!? +# TODO - recognize more systems, e.g. *BSD printf "Checking hosttype... " hosttype=`uname -s` echo $hosttype @@ -196,7 +203,7 @@ type_4_byte=`find_type_with_size 4` echo "$type_4_byte" echo >> config.h -echo "// Data types" >> config.h +echo "/* Data types */" >> config.h echo "typedef unsigned $type_1_byte byte;" >> config.h echo "typedef unsigned int uint;" >> config.h echo "typedef unsigned $type_1_byte uint8;" >> config.h @@ -205,3 +212,9 @@ echo "typedef unsigned $type_3_byte uint32;" >> config.h echo "typedef signed $type_1_byte int8;" >> config.h echo "typedef signed $type_2_byte int16;" >> config.h echo "typedef signed $type_4_byte int32;" >> config.h + +# +# End of config.h +# +echo "" >> config.h +echo "#endif /* CONFIG_H */" >> config.h |