3 # Fio configure script. Heavily influenced by the manual qemu configure
4 # script. Sad this this is easier than autoconf and enemies.
7 # set temporary file name
8 if test ! -z "$TMPDIR" ; then
10 elif test ! -z "$TEMPDIR" ; then
16 TMPC="${TMPDIR1}/fio-conf-${RANDOM}-$$-${RANDOM}.c"
17 TMPO="${TMPDIR1}/fio-conf-${RANDOM}-$$-${RANDOM}.o"
18 TMPE="${TMPDIR1}/fio-conf-${RANDOM}-$$-${RANDOM}.exe"
20 # NB: do not call "exit" in the trap handler; this is buggy with some shells;
21 # see <1285349658-3122-1-git-send-email-loic.minier@linaro.org>
22 trap "rm -f $TMPC $TMPO $TMPE" EXIT INT QUIT TERM
26 config_host_mak="config-host.mak"
27 config_host_h="config-host.h"
29 rm -rf $config_host_mak
34 echo "Configure failed, check config.log and/or the above output"
35 rm -rf $config_host_mak
41 CFLAGS="-D_GNU_SOURCE -include config-host.h"
44 # Print a helpful header at the top of config.log
45 echo "# FIO configure log $(date)" >> config.log
46 printf "# Configured with:" >> config.log
47 printf " '%s'" "$0" "$@" >> config.log
49 echo "#" >> config.log
51 # Print configure header at the top of $config_host_h
52 echo "/*" > $config_host_h
53 echo " * Automatically generated by configure - do not modify" >> $config_host_h
54 printf " * Configured with:" >> $config_host_h
55 printf " * '%s'" "$0" "$@" >> $config_host_h
56 echo "" >> $config_host_h
57 echo " */" >> $config_host_h
60 # Run the compiler, capturing its output to the log.
61 echo $cc "$@" >> config.log
62 $cc "$@" >> config.log 2>&1 || return $?
63 # Test passed. If this is an --enable-werror build, rerun
64 # the test with -Werror and bail out if it fails. This
65 # makes warning-generating-errors in configure test code
66 # obvious to developers.
67 if test "$werror" != "yes"; then
70 # Don't bother rerunning the compile if we were already using -Werror
76 echo $cc -Werror "$@" >> config.log
77 $cc -Werror "$@" >> config.log 2>&1 && return $?
78 echo "ERROR: configure test passed without -Werror but failed with -Werror."
79 echo "This is probably a bug in the configure script. The failing command"
80 echo "will be at the bottom of config.log."
81 fatal "You can run configure with --disable-werror to bypass this check."
85 do_cc $CFLAGS -c -o $TMPO $TMPC
90 local_ldflags="$2 $LIBS"
91 echo "Compiling test case $3" >> config.log
92 do_cc $CFLAGS $local_cflags -o $TMPE $TMPC $LDFLAGS $local_ldflags
100 echo "ERROR: User requested feature $feature"
101 if test ! -z "$packages" ; then
102 echo "ERROR: That feature needs $packages installed"
104 echo "ERROR: configure was not able to find it"
109 type "$1" >/dev/null 2>&1
115 #error $1 not defined
126 echo "$1=y" >> $config_host_mak
127 echo "#define $1" >> $config_host_h
133 cross_prefix=${cross_prefix-${CROSS_COMPILE}}
134 cc="${CC-${cross_prefix}gcc}"
143 optarg=`expr "x$opt" : 'x[^=]*=\(.*\)'`
145 --cpu=*) cpu="$optarg"
149 --extra-cflags=*) CFLAGS="$CFLAGS $optarg"
151 --build-32bit-win) build_32bit_win="yes"
156 --disable-numa) disable_numa="yes"
162 echo "Bad option $opt"
168 if test "$show_help" = "yes" ; then
169 echo "--cpu= Specify target CPU if auto-detect fails"
170 echo "--cc= Specify compiler to use"
171 echo "--extra-cflags= Specify extra CFLAGS to pass to compiler"
172 echo "--build-32bit-win Enable 32-bit build on Windows"
173 echo "--enable-gfio Enable building of gtk gfio"
174 echo "--disable-numa Disable libnuma even if found"
178 if check_define __ANDROID__ ; then
180 elif check_define __linux__ ; then
182 elif check_define __OpenBSD__ ; then
184 elif check_define __sun__ ; then
186 CFLAGS="$CFLAGS -D_REENTRANT"
191 echo "# Automatically generated by configure - do not modify" > $config_host_mak
192 printf "# Configured with:" >> $config_host_mak
193 printf " '%s'" "$0" "$@" >> $config_host_mak
194 echo >> $config_host_mak
195 echo "CONFIG_TARGET_OS=$targetos" >> $config_host_mak
197 # Some host OSes need non-standard checks for which CPU to use.
198 # Note that these checks are broken for cross-compilation: if you're
199 # cross-compiling to one of these OSes then you'll need to specify
200 # the correct CPU with the --cpu option.
203 # on Leopard most of the system is 32-bit, so we have to ask the kernel if
204 # we can run 64-bit userspace code.
205 # If the user didn't specify a CPU explicitly and the kernel says this is
206 # 64 bit hw, then assume x86_64. Otherwise fall through to the usual
208 if test -z "$cpu" && test "$(sysctl -n hw.optional.x86_64)" = "1"; then
213 # `uname -m` returns i86pc even on an x86_64 box, so default based on isainfo
214 if test -z "$cpu" && test "$(isainfo -k)" = "amd64"; then
217 LIBS="-lnsl -lsocket"
220 echo "Forcing known good options on Windows"
221 if test -z "$CC" ; then
222 if test ! -z "$build_32bit_win" && test "$build_32bit_win" = "yes"; then
223 CC="i686-w64-mingw32-gcc"
225 CC="x86_64-w64-mingw32-gcc"
228 output_sym "CONFIG_LITTLE_ENDIAN"
229 if test ! -z "$build_32bit_win" && test "$build_32bit_win" = "yes"; then
230 output_sym "CONFIG_32BIT"
232 output_sym "CONFIG_64BIT_LLP64"
234 output_sym "CONFIG_FADVISE"
235 output_sym "CONFIG_SOCKLEN_T"
236 output_sym "CONFIG_FADVISE"
237 output_sym "CONFIG_SFAA"
238 output_sym "CONFIG_RUSAGE_THREAD"
239 output_sym "CONFIG_WINDOWSAIO"
240 output_sym "CONFIG_FDATASYNC"
241 output_sym "CONFIG_CLOCK_MONOTONIC"
242 output_sym "CONFIG_GETTIMEOFDAY"
243 output_sym "CONFIG_CLOCK_GETTIME"
244 output_sym "CONFIG_SCHED_IDLE"
245 output_sym "CONFIG_TCP_NODELAY"
246 echo "CC=$CC" >> $config_host_mak
247 echo "BUILD_CFLAGS=$CFLAGS -include config-host.h -D_GNU_SOURCE" >> $config_host_mak
252 if test ! -z "$cpu" ; then
253 # command line argument
255 elif check_define __i386__ ; then
257 elif check_define __x86_64__ ; then
259 elif check_define __sparc__ ; then
260 if check_define __arch64__ ; then
265 elif check_define _ARCH_PPC ; then
266 if check_define _ARCH_PPC64 ; then
271 elif check_define __mips__ ; then
273 elif check_define __ia64__ ; then
275 elif check_define __s390__ ; then
276 if check_define __s390x__ ; then
281 elif check_define __arm__ ; then
283 elif check_define __hppa__ ; then
289 # Normalise host CPU name and set ARCH.
291 ia64|ppc|ppc64|s390|s390x|sparc64)
294 i386|i486|i586|i686|i86pc|BePC)
303 hppa|parisc|parisc64)
317 if test -z "$CC" ; then
318 if test "$targetos" = "FreeBSD"; then
327 cc="${CC-${cross_prefix}gcc}"
329 ##########################################
330 # check cross compile
339 if compile_prog "" "" "cross"; then
340 $TMPE 2>/dev/null || cross_compile="yes"
342 fatal "compile test failed"
345 ##########################################
348 if test "$cross_compile" = "no" ; then
350 #include <inttypes.h>
353 volatile uint32_t i=0x01234567;
354 return (*((uint8_t*)(&i))) == 0x67;
357 if compile_prog "" "" "endian"; then
358 $TMPE && bigendian="yes"
361 # If we're cross compiling, try our best to work it out and rely on the
362 # run-time check to fail if we get it wrong.
367 #if __BYTE_ORDER != __BIG_ENDIAN
368 # error "Unknown endianness"
372 compile_prog "" "" "endian" && bigendian="yes"
373 check_define "__ARMEB__" && bigendian="yes"
374 check_define "__MIPSEB__" && bigendian="yes"
378 echo "Operating system $targetos"
380 echo "Big endian $bigendian"
382 echo "Cross compile $cross_compile"
385 ##########################################
390 #define BUILD_BUG_ON(condition) ((void)sizeof(char[1 - 2*!!(condition)]))
393 BUILD_BUG_ON(sizeof(long)*CHAR_BIT != WORDSIZE);
397 if compile_prog "-DWORDSIZE=32" "" "wordsize"; then
399 elif compile_prog "-DWORDSIZE=64" "" "wordsize"; then
402 fatal "Unknown wordsize"
404 echo "Wordsize $wordsize"
406 ##########################################
414 if (inflateInit(&stream) != Z_OK)
419 if compile_prog "" "-lz" "zlib" ; then
425 ##########################################
437 if compile_prog "" "-laio" "libaio" ; then
441 if test "$libaio" = "yes" ; then
442 feature_not_found "linux AIO" "libaio-dev or libaio-devel"
446 echo "Linux AIO support $libaio"
448 ##########################################
461 if compile_prog "" "" "posixaio" ; then
463 elif compile_prog "" "-lrt" "posixaio"; then
468 echo "POSIX AIO support $posix_aio"
469 echo "POSIX AIO support needs -lrt $posix_aio_lrt"
471 ##########################################
472 # posix aio fsync probe
474 if test "$posix_aio" = "yes" ; then
481 return aio_fsync(O_SYNC, &cb);
485 if compile_prog "" "$LIBS" "posix_aio_fsync" ; then
489 echo "POSIX AIO fsync $posix_aio_fsync"
491 ##########################################
495 #include <sys/types.h>
496 #include <sys/asynch.h>
501 return aioread(0, NULL, 0, 0, SEEK_SET, &res);
505 if compile_prog "" "-laio" "solarisaio" ; then
509 echo "Solaris AIO support $solaris_aio"
511 ##########################################
512 # __sync_fetch_and_and test
515 static int sfaa(int *ptr)
517 return __sync_fetch_and_add(ptr, 0);
520 int main(int argc, char **argv)
527 if compile_prog "" "" "__sync_fetch_and_add()" ; then
530 echo "__sync_fetch_and_add $sfaa"
532 ##########################################
537 #include <infiniband/arch.h>
538 int main(int argc, char **argv)
540 struct ibv_pd *pd = ibv_alloc_pd(NULL);
544 if compile_prog "" "-libverbs" "libverbs" ; then
546 LIBS="-libverbs $LIBS"
548 echo "libverbs $libverbs"
550 ##########################################
555 #include <rdma/rdma_cma.h>
556 int main(int argc, char **argv)
558 rdma_destroy_qp(NULL);
562 if compile_prog "" "-lrdmacm" "rdma"; then
564 LIBS="-lrdmacm $LIBS"
566 echo "rdmacm $rdmacm"
568 ##########################################
569 # Linux fallocate probe
573 #include <linux/falloc.h>
574 int main(int argc, char **argv)
576 int r = fallocate(0, FALLOC_FL_KEEP_SIZE, 0, 1024);
580 if compile_prog "" "" "linux_fallocate"; then
581 linux_fallocate="yes"
583 echo "Linux fallocate $linux_fallocate"
585 ##########################################
586 # POSIX fadvise probe
591 int main(int argc, char **argv)
593 int r = posix_fadvise(0, 0, 0, POSIX_FADV_NORMAL);
597 if compile_prog "" "" "posix_fadvise"; then
600 echo "POSIX fadvise $posix_fadvise"
602 ##########################################
603 # POSIX fallocate probe
608 int main(int argc, char **argv)
610 int r = posix_fallocate(0, 0, 1024);
614 if compile_prog "" "" "posix_fallocate"; then
615 posix_fallocate="yes"
617 echo "POSIX fallocate $posix_fallocate"
619 ##########################################
620 # sched_set/getaffinity 2 or 3 argument test
621 linux_2arg_affinity="no"
622 linux_3arg_affinity="no"
625 int main(int argc, char **argv)
628 return sched_setaffinity(0, sizeof(mask), &mask);
631 if compile_prog "" "" "sched_setaffinity(,,)"; then
632 linux_3arg_affinity="yes"
636 int main(int argc, char **argv)
639 return sched_setaffinity(0, &mask);
642 if compile_prog "" "" "sched_setaffinity(,)"; then
643 linux_2arg_affinity="yes"
646 echo "sched_setaffinity(3 arg) $linux_3arg_affinity"
647 echo "sched_setaffinity(2 arg) $linux_2arg_affinity"
649 ##########################################
650 # clock_gettime probe
655 int main(int argc, char **argv)
657 return clock_gettime(0, NULL);
660 if compile_prog "" "" "clock_gettime"; then
662 elif compile_prog "" "-lrt" "clock_gettime"; then
666 echo "clock_gettime $clock_gettime"
668 ##########################################
669 # CLOCK_MONOTONIC probe
671 if test "$clock_gettime" = "yes" ; then
675 int main(int argc, char **argv)
677 return clock_gettime(CLOCK_MONOTONIC, NULL);
680 if compile_prog "" "$LIBS" "clock monotonic"; then
681 clock_monotonic="yes"
684 echo "CLOCK_MONOTONIC $clock_monotonic"
686 ##########################################
687 # CLOCK_MONOTONIC_PRECISE probe
688 clock_monotonic_precise="no"
689 if test "$clock_gettime" = "yes" ; then
693 int main(int argc, char **argv)
695 return clock_gettime(CLOCK_MONOTONIC_PRECISE, NULL);
698 if compile_prog "" "$LIBS" "clock monotonic precise"; then
699 clock_monotonic_precise="yes"
702 echo "CLOCK_MONOTONIC_PRECISE $clock_monotonic_precise"
704 ##########################################
705 # gettimeofday() probe
708 #include <sys/time.h>
710 int main(int argc, char **argv)
713 return gettimeofday(&tv, NULL);
716 if compile_prog "" "" "gettimeofday"; then
719 echo "gettimeofday $gettimeofday"
721 ##########################################
727 int main(int argc, char **argv)
732 if compile_prog "" "" "fdatasync"; then
735 echo "fdatasync $fdatasync"
737 ##########################################
738 # sync_file_range() probe
744 #include <linux/fs.h>
745 int main(int argc, char **argv)
747 unsigned int flags = SYNC_FILE_RANGE_WAIT_BEFORE | SYNC_FILE_RANGE_WRITE |
748 SYNC_FILE_RANGE_WAIT_AFTER;
749 return sync_file_range(0, 0, 0, flags);
752 if compile_prog "" "" "sync_file_range"; then
753 sync_file_range="yes"
755 echo "sync_file_range $sync_file_range"
757 ##########################################
758 # ext4 move extent probe
762 #include <sys/ioctl.h>
763 int main(int argc, char **argv)
765 struct move_extent me;
766 return ioctl(0, EXT4_IOC_MOVE_EXT, &me);
769 if compile_prog "" "" "ext4 move extent" ; then
771 elif test $targetos = "Linux" ; then
772 # On Linux, just default to it on and let it error at runtime if we really
773 # don't have it. None of my updated systems have it defined, but it does
774 # work. Takes a while to bubble back.
777 echo "EXT4 move extent $ext4_me"
779 ##########################################
785 int main(int argc, char **argv)
787 return splice(0, NULL, 0, NULL, 0, SPLICE_F_NONBLOCK);
790 if compile_prog "" "" "linux splice"; then
793 echo "Linux splice(2) $linux_splice"
795 ##########################################
800 #include <guasi_syscalls.h>
801 int main(int argc, char **argv)
803 guasi_t ctx = guasi_create(0, 0, 0);
807 if compile_prog "" "" "guasi"; then
812 ##########################################
816 #include <nvm/nvm_primitives.h>
817 int main(int argc, char **argv)
819 nvm_version_t ver_info;
822 handle = nvm_get_handle(0, &ver_info);
823 return nvm_atomic_write(handle, 0, 0, 0);
826 if compile_prog "" "-L/usr/lib/fio -L/usr/lib/nvm -lnvm-primitives -lvsl -ldl" "fusion-aw"; then
827 LIBS="-L/usr/lib/fio -L/usr/lib/nvm -lnvm-primitives -lvsl -ldl $LIBS"
830 echo "Fusion-io atomic engine $fusion_aw"
832 ##########################################
837 int main(int argc, char **argv)
839 return numa_available();
842 if test "$disable_numa" != "yes" && compile_prog "" "-lnuma" "libnuma"; then
846 echo "libnuma $libnuma"
848 ##########################################
849 # libnuma 2.x version API
850 if test "$libnuma" = "yes" ; then
854 int main(int argc, char **argv)
856 struct bitmask *mask = numa_parse_nodestring(NULL);
860 if compile_prog "" "" "libnuma api"; then
863 echo "libnuma v2 $libnuma_v2"
866 ##########################################
871 int main(int argc, char **argv)
877 if compile_prog "" "" "strsep"; then
880 echo "strsep $strsep"
882 ##########################################
887 int main(int argc, char **argv)
889 strcasestr(NULL, NULL);
893 if compile_prog "" "" "strcasestr"; then
896 echo "strcasestr $strcasestr"
898 ##########################################
899 # getopt_long_only() probe
900 getopt_long_only="no"
904 int main(int argc, char **argv)
906 int c = getopt_long_only(argc, argv, NULL, NULL, NULL);
910 if compile_prog "" "" "getopt_long_only"; then
911 getopt_long_only="yes"
913 echo "getopt_long_only() $getopt_long_only"
915 ##########################################
919 #include <sys/socket.h>
920 #include <arpa/inet.h>
922 int main(int argc, char **argv)
925 return inet_aton(NULL, &in);
928 if compile_prog "" "" "inet_aton"; then
931 echo "inet_aton $inet_aton"
933 ##########################################
937 #include <sys/socket.h>
938 int main(int argc, char **argv)
944 if compile_prog "" "" "socklen_t"; then
947 echo "socklen_t $socklen_t"
949 ##########################################
950 # Whether or not __thread is supported for TLS
954 static int __thread ret;
955 int main(int argc, char **argv)
960 if compile_prog "" "" "__thread"; then
963 echo "__thread $tls_thread"
965 ##########################################
966 # Check if we have required gtk/glib support for gfio
967 if test "$gfio" = "yes" ; then
977 printf("%d", GTK_CHECK_VERSION(2, 18, 0));
980 GTK_CFLAGS=$(pkg-config --cflags gtk+-2.0 gthread-2.0)
981 if test "$?" != "0" ; then
982 echo "configure: gtk and gthread not found"
985 GTK_LIBS=$(pkg-config --libs gtk+-2.0 gthread-2.0)
986 if test "$?" != "0" ; then
987 echo "configure: gtk and gthread not found"
990 if compile_prog "$GTK_CFLAGS" "$GTK_LIBS" "gfio" ; then
992 if test "$r" != "0" ; then
994 LIBS="$LIBS $GTK_LIBS"
995 CFLAGS="$CFLAGS $GTK_CFLAGS"
997 echo "GTK found, but need version 2.18 or higher"
1001 echo "Please install gtk and gdk libraries"
1006 echo "gtk 2.18 or higher $gfio"
1008 # Check whether we have getrusage(RUSAGE_THREAD)
1011 #include <sys/time.h>
1012 #include <sys/resource.h>
1013 int main(int argc, char **argv)
1016 getrusage(RUSAGE_THREAD, &ru);
1020 if compile_prog "" "" "RUSAGE_THREAD"; then
1023 echo "RUSAGE_THREAD $rusage_thread"
1025 ##########################################
1026 # Check whether we have SCHED_IDLE
1030 int main(int argc, char **argv)
1032 struct sched_param p;
1033 return sched_setscheduler(0, SCHED_IDLE, &p);
1036 if compile_prog "" "" "SCHED_IDLE"; then
1039 echo "SCHED_IDLE $sched_idle"
1041 ##########################################
1042 # Check whether we have TCP_NODELAY
1046 #include <sys/types.h>
1047 #include <sys/socket.h>
1048 #include <netinet/tcp.h>
1049 int main(int argc, char **argv)
1051 return getsockopt(0, 0, TCP_NODELAY, NULL, NULL);
1054 if compile_prog "" "" "TCP_NODELAY"; then
1057 echo "TCP_NODELAY $tcp_nodelay"
1059 ##########################################
1060 # Check whether we have RLIMIT_MEMLOCK
1063 #include <sys/time.h>
1064 #include <sys/resource.h>
1065 int main(int argc, char **argv)
1068 return getrlimit(RLIMIT_MEMLOCK, &rl);
1071 if compile_prog "" "" "RLIMIT_MEMLOCK"; then
1072 rlimit_memlock="yes"
1074 echo "RLIMIT_MEMLOCK $rlimit_memlock"
1076 ##########################################
1077 # Check whether we have pwritev/preadv
1081 #include <sys/uio.h>
1082 int main(int argc, char **argv)
1084 return pwritev(0, NULL, 1, 0) + preadv(0, NULL, 1, 0);
1087 if compile_prog "" "" "pwritev"; then
1090 echo "pwritev/preadv $pwritev"
1093 #############################################################################
1095 if test "$wordsize" = "64" ; then
1096 output_sym "CONFIG_64BIT"
1097 elif test "$wordsize" = "32" ; then
1098 output_sym "CONFIG_32BIT"
1100 fatal "Unknown wordsize!"
1102 if test "$bigendian" = "yes" ; then
1103 output_sym "CONFIG_BIG_ENDIAN"
1105 output_sym "CONFIG_LITTLE_ENDIAN"
1107 if test "$zlib" = "yes" ; then
1108 output_sym "CONFIG_ZLIB"
1110 if test "$libaio" = "yes" ; then
1111 output_sym "CONFIG_LIBAIO"
1113 if test "$posix_aio" = "yes" ; then
1114 output_sym "CONFIG_POSIXAIO"
1116 if test "$posix_aio_fsync" = "yes" ; then
1117 output_sym "CONFIG_POSIXAIO_FSYNC"
1119 if test "$linux_fallocate" = "yes" ; then
1120 output_sym "CONFIG_LINUX_FALLOCATE"
1122 if test "$posix_fallocate" = "yes" ; then
1123 output_sym "CONFIG_POSIX_FALLOCATE"
1125 if test "$fdatasync" = "yes" ; then
1126 output_sym "CONFIG_FDATASYNC"
1128 if test "$sync_file_range" = "yes" ; then
1129 output_sym "CONFIG_SYNC_FILE_RANGE"
1131 if test "$sfaa" = "yes" ; then
1132 output_sym "CONFIG_SFAA"
1134 if test "$libverbs" = "yes" -a "$rdmacm" = "yes" ; then
1135 output_sym "CONFIG_RDMA"
1137 if test "$clock_gettime" = "yes" ; then
1138 output_sym "CONFIG_CLOCK_GETTIME"
1140 if test "$clock_monotonic" = "yes" ; then
1141 output_sym "CONFIG_CLOCK_MONOTONIC"
1143 if test "$clock_monotonic_precise" = "yes" ; then
1144 output_sym "CONFIG_CLOCK_MONOTONIC_PRECISE"
1146 if test "$gettimeofday" = "yes" ; then
1147 output_sym "CONFIG_GETTIMEOFDAY"
1149 if test "$posix_fadvise" = "yes" ; then
1150 output_sym "CONFIG_POSIX_FADVISE"
1152 if test "$linux_3arg_affinity" = "yes" ; then
1153 output_sym "CONFIG_3ARG_AFFINITY"
1154 elif test "$linux_2arg_affinity" = "yes" ; then
1155 output_sym "CONFIG_2ARG_AFFINITY"
1157 if test "$strsep" = "yes" ; then
1158 output_sym "CONFIG_STRSEP"
1160 if test "$strcasestr" = "yes" ; then
1161 output_sym "CONFIG_STRCASESTR"
1163 if test "$getopt_long_only" = "yes" ; then
1164 output_sym "CONFIG_GETOPT_LONG_ONLY"
1166 if test "$inet_aton" = "yes" ; then
1167 output_sym "CONFIG_INET_ATON"
1169 if test "$socklen_t" = "yes" ; then
1170 output_sym "CONFIG_SOCKLEN_T"
1172 if test "$ext4_me" = "yes" ; then
1173 output_sym "CONFIG_LINUX_EXT4_MOVE_EXTENT"
1175 if test "$linux_splice" = "yes" ; then
1176 output_sym "CONFIG_LINUX_SPLICE"
1178 if test "$guasi" = "yes" ; then
1179 output_sym "CONFIG_GUASI"
1181 if test "$fusion_aw" = "yes" ; then
1182 output_sym "CONFIG_FUSION_AW"
1184 if test "$libnuma_v2" = "yes" ; then
1185 output_sym "CONFIG_LIBNUMA"
1187 if test "$solaris_aio" = "yes" ; then
1188 output_sym "CONFIG_SOLARISAIO"
1190 if test "$tls_thread" = "yes" ; then
1191 output_sym "CONFIG_TLS_THREAD"
1193 if test "$rusage_thread" = "yes" ; then
1194 output_sym "CONFIG_RUSAGE_THREAD"
1196 if test "$gfio" = "yes" ; then
1197 echo "CONFIG_GFIO=y" >> $config_host_mak
1199 if test "$sched_idle" = "yes" ; then
1200 output_sym "CONFIG_SCHED_IDLE"
1202 if test "$tcp_nodelay" = "yes" ; then
1203 output_sym "CONFIG_TCP_NODELAY"
1205 if test "$rlimit_memlock" = "yes" ; then
1206 output_sym "CONFIG_RLIMIT_MEMLOCK"
1208 if test "$pwritev" = "yes" ; then
1209 output_sym "CONFIG_PWRITEV"
1212 echo "LIBS+=$LIBS" >> $config_host_mak
1213 echo "CFLAGS+=$CFLAGS" >> $config_host_mak
1214 echo "CC=$cc" >> $config_host_mak
1215 echo "BUILD_CFLAGS=$BUILD_CFLAGS $CFLAGS" >> $config_host_mak