ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/hopm/trunk/configure
(Generate patch)

Comparing hopm/trunk/configure (file contents):
Revision 6104 by michael, Thu Jun 11 12:31:29 2015 UTC vs.
Revision 6105 by michael, Thu Jun 11 12:45:27 2015 UTC

# Line 1 | Line 1
1   #! /bin/sh
2 < # From configure.ac Id: configure.ac 5943 2015-05-06 19:09:49Z michael .
2 > # From configure.ac Id: configure.ac 6102 2015-06-11 12:38:55Z michael .
3   # Guess values for system-dependent variables and create Makefiles.
4   # Generated by GNU Autoconf 2.69 for hopm TRUNK.
5   #
# Line 773 | Line 773 | with_aix_soname
773   with_gnu_ld
774   with_sysroot
775   enable_libtool_lock
776 + enable_assert
777   '
778        ac_precious_vars='build_alias
779   host_alias
# Line 1418 | Line 1419 | Optional Features:
1419    --enable-fast-install[=PKGS]
1420                            optimize for fast installation [default=yes]
1421    --disable-libtool-lock  avoid locking (might break parallel builds)
1422 +  --enable-assert         Enable assert() statements
1423  
1424   Optional Packages:
1425    --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
# Line 12275 | Line 12277 | if test "$LEX" = :; then
12277    LEX=${am_missing_run}flex
12278   fi
12279  
12280 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
12281 < $as_echo_n "checking for library containing socket... " >&6; }
12282 < if ${ac_cv_search_socket+:} false; then :
12280 >
12281 >
12282 >  if test "X$CC" != "X"; then
12283 >    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fstack-protector-strong" >&5
12284 > $as_echo_n "checking whether ${CC} accepts -fstack-protector-strong... " >&6; }
12285 > if ${ssp_cv_cc+:} false; then :
12286    $as_echo_n "(cached) " >&6
12287   else
12288 <  ac_func_search_save_LIBS=$LIBS
12289 < cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12288 >  ssp_old_cflags="$CFLAGS"
12289 >       CFLAGS="$CFLAGS -fstack-protector-strong"
12290 >       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12291   /* end confdefs.h.  */
12292  
12287 /* Override any GCC internal prototype to avoid an error.
12288   Use char because int might match the return type of a GCC
12289   builtin and then its argument prototype would still apply.  */
12290 #ifdef __cplusplus
12291 extern "C"
12292 #endif
12293 char socket ();
12293   int
12294   main ()
12295   {
12296 < return socket ();
12296 >
12297    ;
12298    return 0;
12299   }
12300   _ACEOF
12301 < for ac_lib in '' socket; do
12302 <  if test -z "$ac_lib"; then
12303 <    ac_res="none required"
12304 <  else
12306 <    ac_res=-l$ac_lib
12307 <    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12308 <  fi
12309 <  if ac_fn_c_try_link "$LINENO"; then :
12310 <  ac_cv_search_socket=$ac_res
12301 > if ac_fn_c_try_compile "$LINENO"; then :
12302 >  ssp_cv_cc=yes
12303 > else
12304 >  ssp_cv_cc=no
12305   fi
12306 < rm -f core conftest.err conftest.$ac_objext \
12307 <    conftest$ac_exeext
12308 <  if ${ac_cv_search_socket+:} false; then :
12315 <  break
12306 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12307 >       CFLAGS="$ssp_old_cflags"
12308 >
12309   fi
12310 < done
12311 < if ${ac_cv_search_socket+:} false; then :
12310 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssp_cv_cc" >&5
12311 > $as_echo "$ssp_cv_cc" >&6; }
12312 >    if test $ssp_cv_cc = yes; then
12313 >      CFLAGS="$CFLAGS -fstack-protector-strong"
12314 >
12315 > $as_echo "#define ENABLE_SSP_CC 1" >>confdefs.h
12316  
12317 +    else
12318 +      unset ssp_cv_cc
12319 +      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fstack-protector" >&5
12320 + $as_echo_n "checking whether ${CC} accepts -fstack-protector... " >&6; }
12321 + if ${ssp_cv_cc+:} false; then :
12322 +  $as_echo_n "(cached) " >&6
12323   else
12324 <  ac_cv_search_socket=no
12324 >  ssp_old_cflags="$CFLAGS"
12325 >         CFLAGS="$CFLAGS -fstack-protector"
12326 >         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12327 > /* end confdefs.h.  */
12328 >
12329 > int
12330 > main ()
12331 > {
12332 >
12333 >  ;
12334 >  return 0;
12335 > }
12336 > _ACEOF
12337 > if ac_fn_c_try_compile "$LINENO"; then :
12338 >  ssp_cv_cc=yes
12339 > else
12340 >  ssp_cv_cc=no
12341   fi
12342 < rm conftest.$ac_ext
12343 < LIBS=$ac_func_search_save_LIBS
12342 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12343 >         CFLAGS="$ssp_old_cflags"
12344 >
12345   fi
12346 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
12347 < $as_echo "$ac_cv_search_socket" >&6; }
12348 < ac_res=$ac_cv_search_socket
12349 < if test "$ac_res" != no; then :
12350 <  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12346 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssp_cv_cc" >&5
12347 > $as_echo "$ssp_cv_cc" >&6; }
12348 >      if test $ssp_cv_cc = yes; then
12349 >        CFLAGS="$CFLAGS -fstack-protector"
12350 >
12351 > $as_echo "#define ENABLE_SSP_CC 1" >>confdefs.h
12352 >
12353 >      fi
12354 >    fi
12355 >  fi
12356 >
12357  
12358 +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libssp exists" >&5
12359 + $as_echo_n "checking whether libssp exists... " >&6; }
12360 + if ${ssp_cv_lib+:} false; then :
12361 +  $as_echo_n "(cached) " >&6
12362   else
12363 <  as_fn_error $? "socket library not found" "$LINENO" 5
12363 >  ssp_old_libs="$LIBS"
12364 >     LIBS="$LIBS -lssp"
12365 >     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12366 > /* end confdefs.h.  */
12367 >
12368 > int
12369 > main ()
12370 > {
12371 >
12372 >  ;
12373 >  return 0;
12374 > }
12375 > _ACEOF
12376 > if ac_fn_c_try_link "$LINENO"; then :
12377 >  ssp_cv_lib=yes
12378 > else
12379 >  ssp_cv_lib=no
12380 > fi
12381 > rm -f core conftest.err conftest.$ac_objext \
12382 >    conftest$ac_exeext conftest.$ac_ext
12383 >     LIBS="$ssp_old_libs"
12384 >
12385   fi
12386 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssp_cv_lib" >&5
12387 + $as_echo "$ssp_cv_lib" >&6; }
12388 +  if test $ssp_cv_lib = yes; then
12389 +    LIBS="$LIBS -lssp"
12390 +  fi
12391 +
12392 +
12393  
12394 < ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
12394 >  ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
12395   if test "x$ac_cv_func_getaddrinfo" = xyes; then :
12396  
12397   else
# Line 12395 | Line 12453 | fi
12453  
12454   fi
12455  
12456 < ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
12456 >  ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
12457   if test "x$ac_cv_func_getnameinfo" = xyes; then :
12458  
12459   else
# Line 12457 | Line 12515 | fi
12515  
12516   fi
12517  
12518 +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
12519 + $as_echo_n "checking for library containing socket... " >&6; }
12520 + if ${ac_cv_search_socket+:} false; then :
12521 +  $as_echo_n "(cached) " >&6
12522 + else
12523 +  ac_func_search_save_LIBS=$LIBS
12524 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12525 + /* end confdefs.h.  */
12526 +
12527 + /* Override any GCC internal prototype to avoid an error.
12528 +   Use char because int might match the return type of a GCC
12529 +   builtin and then its argument prototype would still apply.  */
12530 + #ifdef __cplusplus
12531 + extern "C"
12532 + #endif
12533 + char socket ();
12534 + int
12535 + main ()
12536 + {
12537 + return socket ();
12538 +  ;
12539 +  return 0;
12540 + }
12541 + _ACEOF
12542 + for ac_lib in '' socket; do
12543 +  if test -z "$ac_lib"; then
12544 +    ac_res="none required"
12545 +  else
12546 +    ac_res=-l$ac_lib
12547 +    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12548 +  fi
12549 +  if ac_fn_c_try_link "$LINENO"; then :
12550 +  ac_cv_search_socket=$ac_res
12551 + fi
12552 + rm -f core conftest.err conftest.$ac_objext \
12553 +    conftest$ac_exeext
12554 +  if ${ac_cv_search_socket+:} false; then :
12555 +  break
12556 + fi
12557 + done
12558 + if ${ac_cv_search_socket+:} false; then :
12559 +
12560 + else
12561 +  ac_cv_search_socket=no
12562 + fi
12563 + rm conftest.$ac_ext
12564 + LIBS=$ac_func_search_save_LIBS
12565 + fi
12566 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
12567 + $as_echo "$ac_cv_search_socket" >&6; }
12568 + ac_res=$ac_cv_search_socket
12569 + if test "$ac_res" != no; then :
12570 +  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12571 +
12572 + else
12573 +  as_fn_error $? "socket library not found" "$LINENO" 5
12574 + fi
12575 +
12576 +
12577 +
12578 +  # Check whether --enable-assert was given.
12579 + if test "${enable_assert+set}" = set; then :
12580 +  enableval=$enable_assert; assert=$enableval
12581 + else
12582 +  assert=no
12583 + fi
12584 +
12585 +
12586 +  if test "$assert" = "no"; then :
12587 +
12588 + $as_echo "#define NDEBUG 1" >>confdefs.h
12589 +
12590 + fi
12591 +
12592  
12593   for ac_func in strlcpy strlcat
12594   do :

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)