notaz.gp2x.de
/
pcsx_rearmed.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
libretro: fix a typo
[pcsx_rearmed.git]
/
configure
diff --git
a/configure
b/configure
index
4ffa3a2
..
4d9b566
100755
(executable)
--- a/
configure
+++ b/
configure
@@
-24,7
+24,13
@@
compile_binary()
check_define()
{
check_define()
{
- $CC -E -dD $CFLAGS include/arm_features.h | grep -q $1 || return 1
+ $CC -E -dD $CFLAGS include/arm_features.h | grep -q "$1" || return 1
+ return 0
+}
+
+check_define_val()
+{
+ $CC -E -dD $CFLAGS include/arm_features.h | grep "$1" | awk '{print $3}'
return 0
}
return 0
}
@@
-477,6
+483,11
@@
if [ "x$need_xlib" = "xyes" ]; then
check_xlib_headers || fail "please install libx11-dev"
fi
check_xlib_headers || fail "please install libx11-dev"
fi
+sizeof_long=`check_define_val __SIZEOF_LONG__`
+if [ "x$sizeof_long" = "x4" ]; then
+ CFLAGS="$CFLAGS -D_FILE_OFFSET_BITS=64"
+fi
+
cat > $TMPC <<EOF
void test(void *f, void *d) { fread(d, 1, 1, f); }
EOF
cat > $TMPC <<EOF
void test(void *f, void *d) { fread(d, 1, 1, f); }
EOF