projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
engine: pass in right protocol family on host lookup
[fio.git]
/
configure
diff --git
a/configure
b/configure
index c00a3a46e9adac827649df5d04d1ea59871c7660..2dda1423e297f290fe5ef569951f3c98e8b11d0f 100755
(executable)
--- a/
configure
+++ b/
configure
@@
-153,6
+153,8
@@
for opt do
--enable-gfio)
gfio="yes"
;;
--enable-gfio)
gfio="yes"
;;
+ --disable-numa) disable_numa="yes"
+ ;;
--help)
show_help="yes"
;;
--help)
show_help="yes"
;;
@@
-169,6
+171,7
@@
if test "$show_help" = "yes" ; then
echo "--extra-cflags= Specify extra CFLAGS to pass to compiler"
echo "--build-32bit-win Enable 32-bit build on Windows"
echo "--enable-gfio Enable building of gtk gfio"
echo "--extra-cflags= Specify extra CFLAGS to pass to compiler"
echo "--build-32bit-win Enable 32-bit build on Windows"
echo "--enable-gfio Enable building of gtk gfio"
+ echo "--disable-numa Disable libnuma even if found"
exit $exit_val
fi
exit $exit_val
fi
@@
-180,6
+183,7
@@
elif check_define __OpenBSD__ ; then
targetos='OpenBSD'
elif check_define __sun__ ; then
targetos='SunOS'
targetos='OpenBSD'
elif check_define __sun__ ; then
targetos='SunOS'
+ CFLAGS="$CFLAGS -D_REENTRANT"
else
targetos=`uname -s`
fi
else
targetos=`uname -s`
fi
@@
-239,6
+243,7
@@
CYGWIN*)
output_sym "CONFIG_CLOCK_GETTIME"
output_sym "CONFIG_SCHED_IDLE"
output_sym "CONFIG_TCP_NODELAY"
output_sym "CONFIG_CLOCK_GETTIME"
output_sym "CONFIG_SCHED_IDLE"
output_sym "CONFIG_TCP_NODELAY"
+ output_sym "CONFIG_TLS_THREAD"
echo "CC=$CC" >> $config_host_mak
echo "BUILD_CFLAGS=$CFLAGS -include config-host.h -D_GNU_SOURCE" >> $config_host_mak
exit 0
echo "CC=$CC" >> $config_host_mak
echo "BUILD_CFLAGS=$CFLAGS -include config-host.h -D_GNU_SOURCE" >> $config_host_mak
exit 0
@@
-566,6
+571,7
@@
echo "rdmacm $rdmacm"
linux_fallocate="no"
cat > $TMPC << EOF
#include <stdio.h>
linux_fallocate="no"
cat > $TMPC << EOF
#include <stdio.h>
+#include <fcntl.h>
#include <linux/falloc.h>
int main(int argc, char **argv)
{
#include <linux/falloc.h>
int main(int argc, char **argv)
{
@@
-835,7
+841,7
@@
int main(int argc, char **argv)
return numa_available();
}
EOF
return numa_available();
}
EOF
-if compile_prog "" "-lnuma" "libnuma"; then
+if
test "$disable_numa" != "yes" &&
compile_prog "" "-lnuma" "libnuma"; then
libnuma="yes"
LIBS="-lnuma $LIBS"
fi
libnuma="yes"
LIBS="-lnuma $LIBS"
fi
@@
-882,8
+888,7
@@
cat > $TMPC << EOF
#include <string.h>
int main(int argc, char **argv)
{
#include <string.h>
int main(int argc, char **argv)
{
- strcasestr(NULL, NULL);
- return 0;
+ return strcasestr(argv[0], argv[1]) != NULL;
}
EOF
if compile_prog "" "" "strcasestr"; then
}
EOF
if compile_prog "" "" "strcasestr"; then
@@
-897,6
+902,7
@@
getopt_long_only="no"
cat > $TMPC << EOF
#include <unistd.h>
#include <stdio.h>
cat > $TMPC << EOF
#include <unistd.h>
#include <stdio.h>
+#include <getopt.h>
int main(int argc, char **argv)
{
int c = getopt_long_only(argc, argv, NULL, NULL, NULL);
int main(int argc, char **argv)
{
int c = getopt_long_only(argc, argv, NULL, NULL, NULL);
@@
-947,7
+953,7
@@
echo "socklen_t $socklen_t"
tls_thread="no"
cat > $TMPC << EOF
#include <stdio.h>
tls_thread="no"
cat > $TMPC << EOF
#include <stdio.h>
-static
int __thread
ret;
+static
__thread int
ret;
int main(int argc, char **argv)
{
return ret;
int main(int argc, char **argv)
{
return ret;