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"
160 echo "Bad option $opt"
166 if test "$show_help" = "yes" ; then
167 echo "--cpu= Specify target CPU if auto-detect fails"
168 echo "--cc= Specify compiler to use"
169 echo "--extra-cflags= Specify extra CFLAGS to pass to compiler"
170 echo "--build-32bit-win Enable 32-bit build on Windows"
171 echo "--enable-gfio Enable building of gtk gfio"
175 if check_define __ANDROID__ ; then
177 elif check_define __linux__ ; then
179 elif check_define __OpenBSD__ ; then
181 elif check_define __sun__ ; then
187 echo "# Automatically generated by configure - do not modify" > $config_host_mak
188 printf "# Configured with:" >> $config_host_mak
189 printf " '%s'" "$0" "$@" >> $config_host_mak
190 echo >> $config_host_mak
191 echo "CONFIG_TARGET_OS=$targetos" >> $config_host_mak
193 # Some host OSes need non-standard checks for which CPU to use.
194 # Note that these checks are broken for cross-compilation: if you're
195 # cross-compiling to one of these OSes then you'll need to specify
196 # the correct CPU with the --cpu option.
199 # on Leopard most of the system is 32-bit, so we have to ask the kernel if
200 # we can run 64-bit userspace code.
201 # If the user didn't specify a CPU explicitly and the kernel says this is
202 # 64 bit hw, then assume x86_64. Otherwise fall through to the usual
204 if test -z "$cpu" && test "$(sysctl -n hw.optional.x86_64)" = "1"; then
209 # `uname -m` returns i86pc even on an x86_64 box, so default based on isainfo
210 if test -z "$cpu" && test "$(isainfo -k)" = "amd64"; then
213 LIBS="-lnsl -lsocket"
216 echo "Forcing known good options on Windows"
217 if test -z "$CC" ; then
218 if test ! -z "$build_32bit_win" && test "$build_32bit_win" = "yes"; then
219 CC="i686-w64-mingw32-gcc"
221 CC="x86_64-w64-mingw32-gcc"
224 output_sym "CONFIG_LITTLE_ENDIAN"
225 if test ! -z "$build_32bit_win" && test "$build_32bit_win" = "yes"; then
226 output_sym "CONFIG_32BIT"
228 output_sym "CONFIG_64BIT_LLP64"
230 output_sym "CONFIG_FADVISE"
231 output_sym "CONFIG_SOCKLEN_T"
232 output_sym "CONFIG_FADVISE"
233 output_sym "CONFIG_SFAA"
234 output_sym "CONFIG_RUSAGE_THREAD"
235 output_sym "CONFIG_WINDOWSAIO"
236 output_sym "CONFIG_FDATASYNC"
237 output_sym "CONFIG_CLOCK_MONOTONIC"
238 output_sym "CONFIG_GETTIMEOFDAY"
239 output_sym "CONFIG_CLOCK_GETTIME"
240 output_sym "CONFIG_SCHED_IDLE"
241 output_sym "CONFIG_TCP_NODELAY"
242 echo "CC=$CC" >> $config_host_mak
243 echo "BUILD_CFLAGS=$CFLAGS -include config-host.h -D_GNU_SOURCE" >> $config_host_mak
248 if test ! -z "$cpu" ; then
249 # command line argument
251 elif check_define __i386__ ; then
253 elif check_define __x86_64__ ; then
255 elif check_define __sparc__ ; then
256 if check_define __arch64__ ; then
261 elif check_define _ARCH_PPC ; then
262 if check_define _ARCH_PPC64 ; then
267 elif check_define __mips__ ; then
269 elif check_define __ia64__ ; then
271 elif check_define __s390__ ; then
272 if check_define __s390x__ ; then
277 elif check_define __arm__ ; then
279 elif check_define __hppa__ ; then
285 # Normalise host CPU name and set ARCH.
287 ia64|ppc|ppc64|s390|s390x|sparc64)
290 i386|i486|i586|i686|i86pc|BePC)
299 hppa|parisc|parisc64)
313 if test -z "$CC" ; then
314 if test "$targetos" = "FreeBSD"; then
323 cc="${CC-${cross_prefix}gcc}"
325 ##########################################
326 # check cross compile
335 if compile_prog "" "" "cross"; then
336 $TMPE 2>/dev/null || cross_compile="yes"
338 fatal "compile test failed"
341 ##########################################
344 if test "$cross_compile" = "no" ; then
346 #include <inttypes.h>
349 volatile uint32_t i=0x01234567;
350 return (*((uint8_t*)(&i))) == 0x67;
353 if compile_prog "" "" "endian"; then
354 $TMPE && bigendian="yes"
357 # If we're cross compiling, try our best to work it out and rely on the
358 # run-time check to fail if we get it wrong.
363 #if __BYTE_ORDER != __BIG_ENDIAN
364 # error "Unknown endianness"
368 compile_prog "" "" "endian" && bigendian="yes"
369 check_define "__ARMEB__" && bigendian="yes"
370 check_define "__MIPSEB__" && bigendian="yes"
374 echo "Operating system $targetos"
376 echo "Big endian $bigendian"
378 echo "Cross compile $cross_compile"
381 ##########################################
386 #define BUILD_BUG_ON(condition) ((void)sizeof(char[1 - 2*!!(condition)]))
389 BUILD_BUG_ON(sizeof(long)*CHAR_BIT != WORDSIZE);
393 if compile_prog "-DWORDSIZE=32" "" "wordsize"; then
395 elif compile_prog "-DWORDSIZE=64" "" "wordsize"; then
398 fatal "Unknown wordsize"
400 echo "Wordsize $wordsize"
402 ##########################################
410 if (inflateInit(&stream) != Z_OK)
415 if compile_prog "" "-lz" "zlib" ; then
421 ##########################################
433 if compile_prog "" "-laio" "libaio" ; then
437 if test "$libaio" = "yes" ; then
438 feature_not_found "linux AIO" "libaio-dev or libaio-devel"
442 echo "Linux AIO support $libaio"
444 ##########################################
457 if compile_prog "" "" "posixaio" ; then
459 elif compile_prog "" "-lrt" "posixaio"; then
464 echo "POSIX AIO support $posix_aio"
465 echo "POSIX AIO support needs -lrt $posix_aio_lrt"
467 ##########################################
468 # posix aio fsync probe
470 if test "$posix_aio" = "yes" ; then
477 return aio_fsync(O_SYNC, &cb);
481 if compile_prog "" "$LIBS" "posix_aio_fsync" ; then
485 echo "POSIX AIO fsync $posix_aio_fsync"
487 ##########################################
491 #include <sys/types.h>
492 #include <sys/asynch.h>
497 return aioread(0, NULL, 0, 0, SEEK_SET, &res);
501 if compile_prog "" "-laio" "solarisaio" ; then
505 echo "Solaris AIO support $solaris_aio"
507 ##########################################
508 # __sync_fetch_and_and test
511 static int sfaa(int *ptr)
513 return __sync_fetch_and_add(ptr, 0);
516 int main(int argc, char **argv)
523 if compile_prog "" "" "__sync_fetch_and_add()" ; then
526 echo "__sync_fetch_and_add $sfaa"
528 ##########################################
533 #include <infiniband/arch.h>
534 int main(int argc, char **argv)
536 struct ibv_pd *pd = ibv_alloc_pd(NULL);
540 if compile_prog "" "-libverbs" "libverbs" ; then
542 LIBS="-libverbs $LIBS"
544 echo "libverbs $libverbs"
546 ##########################################
551 #include <rdma/rdma_cma.h>
552 int main(int argc, char **argv)
554 rdma_destroy_qp(NULL);
558 if compile_prog "" "-lrdmacm" "rdma"; then
560 LIBS="-lrdmacm $LIBS"
562 echo "rdmacm $rdmacm"
564 ##########################################
565 # Linux fallocate probe
569 #include <linux/falloc.h>
570 int main(int argc, char **argv)
572 int r = fallocate(0, FALLOC_FL_KEEP_SIZE, 0, 1024);
576 if compile_prog "" "" "linux_fallocate"; then
577 linux_fallocate="yes"
579 echo "Linux fallocate $linux_fallocate"
581 ##########################################
582 # POSIX fadvise probe
587 int main(int argc, char **argv)
589 int r = posix_fadvise(0, 0, 0, POSIX_FADV_NORMAL);
593 if compile_prog "" "" "posix_fadvise"; then
596 echo "POSIX fadvise $posix_fadvise"
598 ##########################################
599 # POSIX fallocate probe
604 int main(int argc, char **argv)
606 int r = posix_fallocate(0, 0, 1024);
610 if compile_prog "" "" "posix_fallocate"; then
611 posix_fallocate="yes"
613 echo "POSIX fallocate $posix_fallocate"
615 ##########################################
616 # sched_set/getaffinity 2 or 3 argument test
617 linux_2arg_affinity="no"
618 linux_3arg_affinity="no"
621 int main(int argc, char **argv)
624 return sched_setaffinity(0, sizeof(mask), &mask);
627 if compile_prog "" "" "sched_setaffinity(,,)"; then
628 linux_3arg_affinity="yes"
632 int main(int argc, char **argv)
635 return sched_setaffinity(0, &mask);
638 if compile_prog "" "" "sched_setaffinity(,)"; then
639 linux_2arg_affinity="yes"
642 echo "sched_setaffinity(3 arg) $linux_3arg_affinity"
643 echo "sched_setaffinity(2 arg) $linux_2arg_affinity"
645 ##########################################
646 # clock_gettime probe
651 int main(int argc, char **argv)
653 return clock_gettime(0, NULL);
656 if compile_prog "" "" "clock_gettime"; then
658 elif compile_prog "" "-lrt" "clock_gettime"; then
662 echo "clock_gettime $clock_gettime"
664 ##########################################
665 # CLOCK_MONOTONIC probe
667 if test "$clock_gettime" = "yes" ; then
671 int main(int argc, char **argv)
673 return clock_gettime(CLOCK_MONOTONIC, NULL);
676 if compile_prog "" "$LIBS" "clock monotonic"; then
677 clock_monotonic="yes"
680 echo "CLOCK_MONOTONIC $clock_monotonic"
682 ##########################################
683 # CLOCK_MONOTONIC_PRECISE probe
684 clock_monotonic_precise="no"
685 if test "$clock_gettime" = "yes" ; then
689 int main(int argc, char **argv)
691 return clock_gettime(CLOCK_MONOTONIC_PRECISE, NULL);
694 if compile_prog "" "$LIBS" "clock monotonic precise"; then
695 clock_monotonic_precise="yes"
698 echo "CLOCK_MONOTONIC_PRECISE $clock_monotonic_precise"
700 ##########################################
701 # gettimeofday() probe
704 #include <sys/time.h>
706 int main(int argc, char **argv)
709 return gettimeofday(&tv, NULL);
712 if compile_prog "" "" "gettimeofday"; then
715 echo "gettimeofday $gettimeofday"
717 ##########################################
723 int main(int argc, char **argv)
728 if compile_prog "" "" "fdatasync"; then
731 echo "fdatasync $fdatasync"
733 ##########################################
734 # sync_file_range() probe
740 #include <linux/fs.h>
741 int main(int argc, char **argv)
743 unsigned int flags = SYNC_FILE_RANGE_WAIT_BEFORE | SYNC_FILE_RANGE_WRITE |
744 SYNC_FILE_RANGE_WAIT_AFTER;
745 return sync_file_range(0, 0, 0, flags);
748 if compile_prog "" "" "sync_file_range"; then
749 sync_file_range="yes"
751 echo "sync_file_range $sync_file_range"
753 ##########################################
754 # ext4 move extent probe
758 #include <sys/ioctl.h>
759 int main(int argc, char **argv)
761 struct move_extent me;
762 return ioctl(0, EXT4_IOC_MOVE_EXT, &me);
765 if compile_prog "" "" "ext4 move extent" ; then
767 elif test $targetos = "Linux" ; then
768 # On Linux, just default to it on and let it error at runtime if we really
769 # don't have it. None of my updated systems have it defined, but it does
770 # work. Takes a while to bubble back.
773 echo "EXT4 move extent $ext4_me"
775 ##########################################
781 int main(int argc, char **argv)
783 return splice(0, NULL, 0, NULL, 0, SPLICE_F_NONBLOCK);
786 if compile_prog "" "" "linux splice"; then
789 echo "Linux splice(2) $linux_splice"
791 ##########################################
796 #include <guasi_syscalls.h>
797 int main(int argc, char **argv)
799 guasi_t ctx = guasi_create(0, 0, 0);
803 if compile_prog "" "" "guasi"; then
808 ##########################################
812 #include <nvm/vectored_write.h>
813 int main(int argc, char **argv)
815 struct vsl_iovec iov;
816 return vsl_vectored_write(0, &iov, 0, O_ATOMIC);
819 if compile_prog "" "-L/usr/lib/fio -lnvm-primitives" "fusion-aw"; then
820 LIBS="-L/usr/lib/fio -lnvm-primitives $LIBS"
823 echo "Fusion-io atomic engine $fusion_aw"
825 ##########################################
830 int main(int argc, char **argv)
832 return numa_available();
835 if compile_prog "" "-lnuma" "libnuma"; then
839 echo "libnuma $libnuma"
841 ##########################################
842 # libnuma 2.x version API
843 if test "$libnuma" = "yes" ; then
847 int main(int argc, char **argv)
849 struct bitmask *mask = numa_parse_nodestring(NULL);
853 if compile_prog "" "" "libnuma api"; then
856 echo "libnuma v2 $libnuma_v2"
859 ##########################################
864 int main(int argc, char **argv)
870 if compile_prog "" "" "strsep"; then
873 echo "strsep $strsep"
875 ##########################################
880 int main(int argc, char **argv)
882 strcasestr(NULL, NULL);
886 if compile_prog "" "" "strcasestr"; then
889 echo "strcasestr $strcasestr"
891 ##########################################
892 # getopt_long_only() probe
893 getopt_long_only="no"
897 int main(int argc, char **argv)
899 int c = getopt_long_only(argc, argv, NULL, NULL, NULL);
903 if compile_prog "" "" "getopt_long_only"; then
904 getopt_long_only="yes"
906 echo "getopt_long_only() $getopt_long_only"
908 ##########################################
912 #include <sys/socket.h>
913 #include <arpa/inet.h>
915 int main(int argc, char **argv)
918 return inet_aton(NULL, &in);
921 if compile_prog "" "" "inet_aton"; then
924 echo "inet_aton $inet_aton"
926 ##########################################
930 #include <sys/socket.h>
931 int main(int argc, char **argv)
937 if compile_prog "" "" "socklen_t"; then
940 echo "socklen_t $socklen_t"
942 ##########################################
943 # Whether or not __thread is supported for TLS
947 static int __thread ret;
948 int main(int argc, char **argv)
953 if compile_prog "" "" "__thread"; then
956 echo "__thread $tls_thread"
958 ##########################################
959 # Check if we have required gtk/glib support for gfio
960 if test "$gfio" = "yes" ; then
970 printf("%d", GTK_CHECK_VERSION(2, 18, 0));
973 GTK_CFLAGS=$(pkg-config --cflags gtk+-2.0 gthread-2.0)
974 if test "$?" != "0" ; then
975 echo "configure: gtk and gthread not found"
978 GTK_LIBS=$(pkg-config --libs gtk+-2.0 gthread-2.0)
979 if test "$?" != "0" ; then
980 echo "configure: gtk and gthread not found"
983 if compile_prog "$GTK_CFLAGS" "$GTK_LIBS" "gfio" ; then
985 if test "$r" != "0" ; then
987 LIBS="$LIBS $GTK_LIBS"
988 CFLAGS="$CFLAGS $GTK_CFLAGS"
990 echo "GTK found, but need version 2.18 or higher"
994 echo "Please install gtk and gdk libraries"
999 echo "gtk 2.18 or higher $gfio"
1001 # Check whether we have getrusage(RUSAGE_THREAD)
1004 #include <sys/time.h>
1005 #include <sys/resource.h>
1006 int main(int argc, char **argv)
1009 getrusage(RUSAGE_THREAD, &ru);
1013 if compile_prog "" "" "RUSAGE_THREAD"; then
1016 echo "RUSAGE_THREAD $rusage_thread"
1018 ##########################################
1019 # Check whether we have SCHED_IDLE
1023 int main(int argc, char **argv)
1025 struct sched_param p;
1026 return sched_setscheduler(0, SCHED_IDLE, &p);
1029 if compile_prog "" "" "SCHED_IDLE"; then
1032 echo "SCHED_IDLE $sched_idle"
1034 ##########################################
1035 # Check whether we have TCP_NODELAY
1039 #include <sys/types.h>
1040 #include <sys/socket.h>
1041 #include <netinet/tcp.h>
1042 int main(int argc, char **argv)
1044 return getsockopt(0, 0, TCP_NODELAY, NULL, NULL);
1047 if compile_prog "" "" "TCP_NODELAY"; then
1050 echo "TCP_NODELAY $tcp_nodelay"
1052 ##########################################
1053 # Check whether we have RLIMIT_MEMLOCK
1056 #include <sys/time.h>
1057 #include <sys/resource.h>
1058 int main(int argc, char **argv)
1061 return getrlimit(RLIMIT_MEMLOCK, &rl);
1064 if compile_prog "" "" "RLIMIT_MEMLOCK"; then
1065 rlimit_memlock="yes"
1067 echo "RLIMIT_MEMLOCK $rlimit_memlock"
1069 #############################################################################
1071 if test "$wordsize" = "64" ; then
1072 output_sym "CONFIG_64BIT"
1073 elif test "$wordsize" = "32" ; then
1074 output_sym "CONFIG_32BIT"
1076 fatal "Unknown wordsize!"
1078 if test "$bigendian" = "yes" ; then
1079 output_sym "CONFIG_BIG_ENDIAN"
1081 output_sym "CONFIG_LITTLE_ENDIAN"
1083 if test "$zlib" = "yes" ; then
1084 output_sym "CONFIG_ZLIB"
1086 if test "$libaio" = "yes" ; then
1087 output_sym "CONFIG_LIBAIO"
1089 if test "$posix_aio" = "yes" ; then
1090 output_sym "CONFIG_POSIXAIO"
1092 if test "$posix_aio_fsync" = "yes" ; then
1093 output_sym "CONFIG_POSIXAIO_FSYNC"
1095 if test "$linux_fallocate" = "yes" ; then
1096 output_sym "CONFIG_LINUX_FALLOCATE"
1098 if test "$posix_fallocate" = "yes" ; then
1099 output_sym "CONFIG_POSIX_FALLOCATE"
1101 if test "$fdatasync" = "yes" ; then
1102 output_sym "CONFIG_FDATASYNC"
1104 if test "$sync_file_range" = "yes" ; then
1105 output_sym "CONFIG_SYNC_FILE_RANGE"
1107 if test "$sfaa" = "yes" ; then
1108 output_sym "CONFIG_SFAA"
1110 if test "$libverbs" = "yes" -a "rdmacm" = "yes" ; then
1111 output_sym "CONFIG_RDMA"
1113 if test "$clock_gettime" = "yes" ; then
1114 output_sym "CONFIG_CLOCK_GETTIME"
1116 if test "$clock_monotonic" = "yes" ; then
1117 output_sym "CONFIG_CLOCK_MONOTONIC"
1119 if test "$clock_monotonic_precise" = "yes" ; then
1120 output_sym "CONFIG_CLOCK_MONOTONIC_PRECISE"
1122 if test "$gettimeofday" = "yes" ; then
1123 output_sym "CONFIG_GETTIMEOFDAY"
1125 if test "$posix_fadvise" = "yes" ; then
1126 output_sym "CONFIG_POSIX_FADVISE"
1128 if test "$linux_3arg_affinity" = "yes" ; then
1129 output_sym "CONFIG_3ARG_AFFINITY"
1130 elif test "$linux_2arg_affinity" = "yes" ; then
1131 output_sym "CONFIG_2ARG_AFFINITY"
1133 if test "$strsep" = "yes" ; then
1134 output_sym "CONFIG_STRSEP"
1136 if test "$strcasestr" = "yes" ; then
1137 output_sym "CONFIG_STRCASESTR"
1139 if test "$getopt_long_only" = "yes" ; then
1140 output_sym "CONFIG_GETOPT_LONG_ONLY"
1142 if test "$inet_aton" = "yes" ; then
1143 output_sym "CONFIG_INET_ATON"
1145 if test "$socklen_t" = "yes" ; then
1146 output_sym "CONFIG_SOCKLEN_T"
1148 if test "$ext4_me" = "yes" ; then
1149 output_sym "CONFIG_LINUX_EXT4_MOVE_EXTENT"
1151 if test "$linux_splice" = "yes" ; then
1152 output_sym "CONFIG_LINUX_SPLICE"
1154 if test "$guasi" = "yes" ; then
1155 output_sym "CONFIG_GUASI"
1157 if test "$fusion_aw" = "yes" ; then
1158 output_sym "CONFIG_FUSION_AW"
1160 if test "$libnuma_v2" = "yes" ; then
1161 output_sym "CONFIG_LIBNUMA"
1163 if test "$solaris_aio" = "yes" ; then
1164 output_sym "CONFIG_SOLARISAIO"
1166 if test "$tls_thread" = "yes" ; then
1167 output_sym "CONFIG_TLS_THREAD"
1169 if test "$rusage_thread" = "yes" ; then
1170 output_sym "CONFIG_RUSAGE_THREAD"
1172 if test "$gfio" = "yes" ; then
1173 echo "CONFIG_GFIO=y" >> $config_host_mak
1175 if test "$sched_idle" = "yes" ; then
1176 output_sym "CONFIG_SCHED_IDLE"
1178 if test "$tcp_nodelay" = "yes" ; then
1179 output_sym "CONFIG_TCP_NODELAY"
1181 if test "$rlimit_memlock" = "yes" ; then
1182 output_sym "CONFIG_RLIMIT_MEMLOCK"
1185 echo "LIBS+=$LIBS" >> $config_host_mak
1186 echo "CFLAGS+=$CFLAGS" >> $config_host_mak
1187 echo "CC=$cc" >> $config_host_mak
1188 echo "BUILD_CFLAGS=$BUILD_CFLAGS $CFLAGS" >> $config_host_mak