diff options
| author | grischka <grischka> | 2007-12-16 18:24:44 +0000 |
|---|---|---|
| committer | grischka <grischka> | 2007-12-16 18:24:44 +0000 |
| commit | 6c96c41ee49c11dda436eecc23beea002eace19e (patch) | |
| tree | 76d3c00ca47a08c133372e73298a4d9ef655aa79 /configure | |
| parent | f466577673ed9e61124f50fa59c351f16c27388e (diff) | |
| download | tinycc-6c96c41ee49c11dda436eecc23beea002eace19e.tar.gz tinycc-6c96c41ee49c11dda436eecc23beea002eace19e.tar.bz2 | |
Import changesets (part 4) 428,457,460,467: defines for openbsd etc.
Diffstat (limited to 'configure')
| -rwxr-xr-x | configure | 23 |
1 files changed, 16 insertions, 7 deletions
@@ -68,6 +68,12 @@ case $targetos in MINGW32*) mingw32="yes" ;; +DragonFly) +noldl="yes" +;; +OpenBSD) +noldl="yes" +;; *) ;; esac @@ -142,15 +148,15 @@ if test -z "$cross_prefix" ; then cat > $TMPC << EOF #include <inttypes.h> int main(int argc, char ** argv){ - volatile uint32_t i=0x01234567; - return (*((uint8_t*)(&i))) == 0x67; + volatile uint32_t i=0x01234567; + return (*((uint8_t*)(&i))) == 0x67; } EOF if $cc -o $TMPE $TMPC 2>/dev/null ; then -$TMPE && bigendian="yes" + $TMPE && bigendian="yes" else -echo big/little test failed + echo big/little test failed fi else @@ -302,6 +308,9 @@ else echo "Unsupported CPU" exit 1 fi +if test "$noldl" = "yes" ; then + echo "CONFIG_NOLDL=yes" >> config.mak +fi if test "$mingw32" = "yes" ; then echo "CONFIG_WIN32=yes" >> config.mak echo "#define CONFIG_WIN32 1" >> $TMPH @@ -327,7 +336,7 @@ if test "$source_path_used" = "yes" ; then DIRS="tests" FILES="Makefile tests/Makefile" for dir in $DIRS ; do - mkdir -p $dir + mkdir -p $dir done for f in $FILES ; do ln -sf $source_path/$f $f @@ -337,9 +346,9 @@ echo "SRC_PATH=$source_path" >> config.mak diff $TMPH config.h >/dev/null 2>&1 if test $? -ne 0 ; then - mv -f $TMPH config.h + mv -f $TMPH config.h else - echo "config.h is unchanged" + echo "config.h is unchanged" fi rm -f $TMPO $TMPC $TMPE $TMPS $TMPH |
