aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac28
1 files changed, 14 insertions, 14 deletions
diff --git a/configure.ac b/configure.ac
index 78a6269c..6037e061 100644
--- a/configure.ac
+++ b/configure.ac
@@ -102,7 +102,7 @@ AS_VAR_IF([enable_build_type], ["debugger"],
102 [ # Build only static version unless something else is specified by the user 102 [ # Build only static version unless something else is specified by the user
103 AS_IF([test -z "${enable_static}" || test "x${enable_static}" = "xyes"], 103 AS_IF([test -z "${enable_static}" || test "x${enable_static}" = "xyes"],
104 [ 104 [
105 AS_IF([test -z "${enable_shared}"], 105 AS_IF([test -z "${enable_shared}"],
106 [ 106 [
107 enable_shared="no" 107 enable_shared="no"
108 enable_static="yes" 108 enable_static="yes"
@@ -191,7 +191,7 @@ AS_CASE([${enable_compact_code}], [auto],
191 ],[],[/* no includes */] 191 ],[],[/* no includes */]
192 ) 192 )
193 193
194 AS_VAR_IF([enable_compact_code], ["auto"], 194 AS_VAR_IF([enable_compact_code], ["auto"],
195 [ 195 [
196 # No preference by preprocessor macros 196 # No preference by preprocessor macros
197 AC_CACHE_CHECK([whether compiler is configured to optimize for size], 197 AC_CACHE_CHECK([whether compiler is configured to optimize for size],
@@ -220,7 +220,7 @@ choke me now
220 ] 220 ]
221 ) 221 )
222 222
223 AS_VAR_IF([enable_compact_code], ["auto"], 223 AS_VAR_IF([enable_compact_code], ["auto"],
224 [ 224 [
225 # No preference by preprocessor macros and compiler flags 225 # No preference by preprocessor macros and compiler flags
226 AS_CASE([${enable_build_type}],[*-compact], 226 AS_CASE([${enable_build_type}],[*-compact],
@@ -233,7 +233,7 @@ choke me now
233 ] 233 ]
234 ) 234 )
235 235
236 AS_VAR_IF([enable_compact_code], ["auto"], 236 AS_VAR_IF([enable_compact_code], ["auto"],
237 [ 237 [
238 # No preference 238 # No preference
239 enable_compact_code="no" 239 enable_compact_code="no"
@@ -560,12 +560,12 @@ static int cmp_func(const void *p1, const void *p2)
560 560
561int main(void) 561int main(void)
562{ 562{
563 int ret = 0; 563 int ret = 0;
564 void *root_ptr = NULL; 564 void *root_ptr = NULL;
565 int element1 = 1; 565 int element1 = 1;
566 int **element_ptr_ptr1; 566 int **element_ptr_ptr1;
567 int **element_ptr_ptr2; 567 int **element_ptr_ptr2;
568 568
569 element_ptr_ptr1 = 569 element_ptr_ptr1 =
570 (int **) tsearch ((void*) &element1, &root_ptr, &cmp_func); 570 (int **) tsearch ((void*) &element1, &root_ptr, &cmp_func);
571 if (NULL == element_ptr_ptr1) 571 if (NULL == element_ptr_ptr1)
@@ -583,7 +583,7 @@ int main(void)
583 fprintf (stderr, "Root pointer has not been set by tsearch().\n"); 583 fprintf (stderr, "Root pointer has not been set by tsearch().\n");
584 return ++ret; 584 return ++ret;
585 } 585 }
586 586
587 element_ptr_ptr2 = 587 element_ptr_ptr2 =
588 (int **) tsearch ((void*) &element1, &root_ptr, &cmp_func); 588 (int **) tsearch ((void*) &element1, &root_ptr, &cmp_func);
589 if (NULL == element_ptr_ptr2) 589 if (NULL == element_ptr_ptr2)
@@ -601,7 +601,7 @@ int main(void)
601 fprintf (stderr, "Wrong element has been returned when tsearch() called for the second time.\n"); 601 fprintf (stderr, "Wrong element has been returned when tsearch() called for the second time.\n");
602 ++ret; 602 ++ret;
603 } 603 }
604 604
605 element_ptr_ptr2 = 605 element_ptr_ptr2 =
606 (int **) tfind ((void*) &element1, &root_ptr, &cmp_func); 606 (int **) tfind ((void*) &element1, &root_ptr, &cmp_func);
607 if (NULL == element_ptr_ptr2) 607 if (NULL == element_ptr_ptr2)
@@ -619,7 +619,7 @@ int main(void)
619 fprintf (stderr, "Wrong element has been returned when tsearch() called for the second time.\n"); 619 fprintf (stderr, "Wrong element has been returned when tsearch() called for the second time.\n");
620 ++ret; 620 ++ret;
621 } 621 }
622 622
623 element_ptr_ptr1 = 623 element_ptr_ptr1 =
624 (int **) tdelete ((void*) &element1, &root_ptr, &cmp_func); 624 (int **) tdelete ((void*) &element1, &root_ptr, &cmp_func);
625 if (NULL == element_ptr_ptr1) 625 if (NULL == element_ptr_ptr1)
@@ -632,7 +632,7 @@ int main(void)
632 fprintf (stderr, "Root pointer has not been set to NULL by tdelete().\n"); 632 fprintf (stderr, "Root pointer has not been set to NULL by tdelete().\n");
633 ++ret; 633 ++ret;
634 } 634 }
635 635
636 return ret; 636 return ret;
637} 637}
638 ]] 638 ]]
@@ -1600,7 +1600,7 @@ MHD_FIND_LIB([socket],
1600#if defined(_WIN32) && ! defined(__CYGWIN__) 1600#if defined(_WIN32) && ! defined(__CYGWIN__)
1601#include <winsock2.h> 1601#include <winsock2.h>
1602#endif 1602#endif
1603 ]], 1603 ]],
1604 [(void)socket(0, 0, 0);], 1604 [(void)socket(0, 0, 0);],
1605 [socket ws2_32 xnet], 1605 [socket ws2_32 xnet],
1606 [ 1606 [
@@ -1789,12 +1789,12 @@ AS_IF([test "$enable_poll" != "no"],
1789 ]], 1789 ]],
1790 [[ 1790 [[
1791 struct pollfd fds[2]; 1791 struct pollfd fds[2];
1792 1792
1793 fds[0].fd = 0; 1793 fds[0].fd = 0;
1794 fds[0].events = POLLIN; 1794 fds[0].events = POLLIN;
1795 if (0 > poll(fds, 1, 0)) 1795 if (0 > poll(fds, 1, 0))
1796 return 2; 1796 return 2;
1797 ]], 1797 ]],
1798 [have_poll='yes'], [have_poll='no'] 1798 [have_poll='yes'], [have_poll='no']
1799 ) 1799 )
1800 ], [], [AC_INCLUDES_DEFAULT] 1800 ], [], [AC_INCLUDES_DEFAULT]
@@ -2436,7 +2436,7 @@ MHD_CHECK_FUNC([snprintf],
2436 ]], 2436 ]],
2437 [[ 2437 [[
2438 char buf[2]; 2438 char buf[2];
2439 2439
2440 i][f (1 != snprintf(buf, 2, "a")) 2440 i][f (1 != snprintf(buf, 2, "a"))
2441 return 3; 2441 return 3;
2442 /* Do not use the next check to avoid compiler warning */ 2442 /* Do not use the next check to avoid compiler warning */