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 6183 by michael, Tue Jun 23 16:50:35 2015 UTC vs.
Revision 8559 by michael, Sun Sep 23 09:25:41 2018 UTC

# Line 1 | Line 1
1   #! /bin/sh
2 < # From configure.ac Id: configure.ac 6133 2015-06-11 19:20:00Z michael .
2 > # From configure.ac Id: configure.ac 8550 2018-09-22 20:55:46Z michael .
3   # Guess values for system-dependent variables and create Makefiles.
4   # Generated by GNU Autoconf 2.69 for hopm TRUNK.
5   #
# Line 638 | Line 638 | ac_subst_vars='am__EXEEXT_FALSE
638   am__EXEEXT_TRUE
639   LTLIBOBJS
640   LIBOBJS
641 + ENABLE_SSL_FALSE
642 + ENABLE_SSL_TRUE
643   LEXLIB
644   LEX_OUTPUT_ROOT
645   LEX
# Line 773 | Line 775 | with_aix_soname
775   with_gnu_ld
776   with_sysroot
777   enable_libtool_lock
778 + enable_openssl
779   enable_assert
780   enable_warnings
781 + enable_efence
782   '
783        ac_precious_vars='build_alias
784   host_alias
# Line 1420 | Line 1424 | Optional Features:
1424    --enable-fast-install[=PKGS]
1425                            optimize for fast installation [default=yes]
1426    --disable-libtool-lock  avoid locking (might break parallel builds)
1427 +  --enable-openssl=DIR       Enable LibreSSL/OpenSSL support (DIR optional).
1428 +  --disable-openssl            Disable LibreSSL/OpenSSL support.
1429    --enable-assert         Enable assert() statements
1430    --enable-warnings       Enable compiler warnings.
1431 +  --enable-efence         Enable linking with Electric Fence 'efence' memory
1432 +                          debugger library.
1433  
1434   Optional Packages:
1435    --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
# Line 12577 | Line 12585 | fi
12585  
12586  
12587  
12588 + # Check whether --enable-openssl was given.
12589 + if test "${enable_openssl+set}" = set; then :
12590 +  enableval=$enable_openssl;  cf_enable_openssl=$enableval
12591 + else
12592 +   cf_enable_openssl="auto"
12593 + fi
12594 +
12595 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LibreSSL/OpenSSL" >&5
12596 + $as_echo_n "checking for LibreSSL/OpenSSL... " >&6; }
12597 + if test "$cf_enable_openssl" != "no"; then
12598 +  cf_openssl_basedir=""
12599 +  if test "$cf_enable_openssl" != "auto" &&
12600 +     test "$cf_enable_openssl" != "yes"; then
12601 +          cf_openssl_basedir="${cf_enable_openssl}"
12602 +  else
12603 +        for dirs in /usr/local/ssl /usr/pkg /usr/local /usr/lib /usr/lib/ssl\
12604 +                /opt /opt/openssl /usr/local/openssl; do
12605 +      if test -f "${dirs}/include/openssl/opensslv.h"; then
12606 +        cf_openssl_basedir="${dirs}"
12607 +        break
12608 +      fi
12609 +    done
12610 +    unset dirs
12611 +  fi
12612 +
12613 +    if test ! -z "$cf_openssl_basedir"; then
12614 +    if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h"; then
12615 +      CPPFLAGS="-I${cf_openssl_basedir}/include $CPPFLAGS"
12616 +      LDFLAGS="-L${cf_openssl_basedir}/lib $LDFLAGS"
12617 +    else
12618 +                  cf_openssl_basedir=""
12619 +    fi
12620 +  else
12621 +                            if test -f "/usr/include/openssl/opensslv.h"; then
12622 +      cf_openssl_basedir="/usr"
12623 +    fi
12624 +  fi
12625 +
12626 +      if test ! -z "$cf_openssl_basedir"; then
12627 +    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5
12628 + $as_echo "$cf_openssl_basedir" >&6; }
12629 +    cf_enable_openssl="yes"
12630 +  else
12631 +    { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Please check your path." >&5
12632 + $as_echo "not found. Please check your path." >&6; }
12633 +    cf_enable_openssl="no"
12634 +  fi
12635 +  unset cf_openssl_basedir
12636 + else
12637 +    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12638 + $as_echo "disabled" >&6; }
12639 + fi
12640 +
12641 + if test "$cf_enable_openssl" != "no"; then :
12642 +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LibreSSL or OpenSSL 0.9.8o and above" >&5
12643 + $as_echo_n "checking for LibreSSL or OpenSSL 0.9.8o and above... " >&6; }
12644 +  if test "$cross_compiling" = yes; then :
12645 +  cf_openssl_version_ok=no
12646 + else
12647 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12648 + /* end confdefs.h.  */
12649 +
12650 +
12651 +    #include <openssl/opensslv.h>
12652 +    #include <stdlib.h>
12653 + int
12654 + main ()
12655 + {
12656 + exit(!(OPENSSL_VERSION_NUMBER >= 0x009080ffL));
12657 +  ;
12658 +  return 0;
12659 + }
12660 + _ACEOF
12661 + if ac_fn_c_try_run "$LINENO"; then :
12662 +  cf_openssl_version_ok=yes
12663 + else
12664 +  cf_openssl_version_ok=no
12665 + fi
12666 + rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12667 +  conftest.$ac_objext conftest.beam conftest.$ac_ext
12668 + fi
12669 +
12670 +
12671 +  if test "$cf_openssl_version_ok" = "yes"; then :
12672 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
12673 + $as_echo "found" >&6; }
12674 +
12675 +    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_free in -lcrypto" >&5
12676 + $as_echo_n "checking for RSA_free in -lcrypto... " >&6; }
12677 + if ${ac_cv_lib_crypto_RSA_free+:} false; then :
12678 +  $as_echo_n "(cached) " >&6
12679 + else
12680 +  ac_check_lib_save_LIBS=$LIBS
12681 + LIBS="-lcrypto  $LIBS"
12682 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12683 + /* end confdefs.h.  */
12684 +
12685 + /* Override any GCC internal prototype to avoid an error.
12686 +   Use char because int might match the return type of a GCC
12687 +   builtin and then its argument prototype would still apply.  */
12688 + #ifdef __cplusplus
12689 + extern "C"
12690 + #endif
12691 + char RSA_free ();
12692 + int
12693 + main ()
12694 + {
12695 + return RSA_free ();
12696 +  ;
12697 +  return 0;
12698 + }
12699 + _ACEOF
12700 + if ac_fn_c_try_link "$LINENO"; then :
12701 +  ac_cv_lib_crypto_RSA_free=yes
12702 + else
12703 +  ac_cv_lib_crypto_RSA_free=no
12704 + fi
12705 + rm -f core conftest.err conftest.$ac_objext \
12706 +    conftest$ac_exeext conftest.$ac_ext
12707 + LIBS=$ac_check_lib_save_LIBS
12708 + fi
12709 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_free" >&5
12710 + $as_echo "$ac_cv_lib_crypto_RSA_free" >&6; }
12711 + if test "x$ac_cv_lib_crypto_RSA_free" = xyes; then :
12712 +  cat >>confdefs.h <<_ACEOF
12713 + #define HAVE_LIBCRYPTO 1
12714 + _ACEOF
12715 +
12716 +  LIBS="-lcrypto $LIBS"
12717 +
12718 + fi
12719 +
12720 +    if test "$ac_cv_lib_crypto_RSA_free" = "yes"; then :
12721 +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
12722 + $as_echo_n "checking for SSL_connect in -lssl... " >&6; }
12723 + if ${ac_cv_lib_ssl_SSL_connect+:} false; then :
12724 +  $as_echo_n "(cached) " >&6
12725 + else
12726 +  ac_check_lib_save_LIBS=$LIBS
12727 + LIBS="-lssl  $LIBS"
12728 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12729 + /* end confdefs.h.  */
12730 +
12731 + /* Override any GCC internal prototype to avoid an error.
12732 +   Use char because int might match the return type of a GCC
12733 +   builtin and then its argument prototype would still apply.  */
12734 + #ifdef __cplusplus
12735 + extern "C"
12736 + #endif
12737 + char SSL_connect ();
12738 + int
12739 + main ()
12740 + {
12741 + return SSL_connect ();
12742 +  ;
12743 +  return 0;
12744 + }
12745 + _ACEOF
12746 + if ac_fn_c_try_link "$LINENO"; then :
12747 +  ac_cv_lib_ssl_SSL_connect=yes
12748 + else
12749 +  ac_cv_lib_ssl_SSL_connect=no
12750 + fi
12751 + rm -f core conftest.err conftest.$ac_objext \
12752 +    conftest$ac_exeext conftest.$ac_ext
12753 + LIBS=$ac_check_lib_save_LIBS
12754 + fi
12755 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
12756 + $as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
12757 + if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then :
12758 +  cat >>confdefs.h <<_ACEOF
12759 + #define HAVE_LIBSSL 1
12760 + _ACEOF
12761 +
12762 +  LIBS="-lssl $LIBS"
12763 +
12764 + fi
12765 +
12766 + fi
12767 +
12768 + else
12769 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - LibreSSL/OpenSSL support disabled" >&5
12770 + $as_echo "no - LibreSSL/OpenSSL support disabled" >&6; }
12771 +    cf_enable_openssl="no"
12772 + fi
12773 + fi
12774 +
12775 + if test "$ac_cv_lib_ssl_SSL_connect" = yes; then
12776 +  ENABLE_SSL_TRUE=
12777 +  ENABLE_SSL_FALSE='#'
12778 + else
12779 +  ENABLE_SSL_TRUE='#'
12780 +  ENABLE_SSL_FALSE=
12781 + fi
12782 +
12783 +
12784 +
12785    # Check whether --enable-assert was given.
12786   if test "${enable_assert+set}" = set; then :
12787    enableval=$enable_assert; assert=$enableval
# Line 12981 | Line 13186 | done
13186  
13187  
13188  
13189 + for flag in -Wduplicated-cond; do
13190 +  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
13191 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
13192 + $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
13193 + if eval \${$as_CACHEVAR+:} false; then :
13194 +  $as_echo_n "(cached) " >&6
13195 + else
13196 +
13197 +  ax_check_save_flags=$CFLAGS
13198 +  CFLAGS="$CFLAGS  $flag"
13199 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13200 + /* end confdefs.h.  */
13201 +
13202 + int
13203 + main ()
13204 + {
13205 +
13206 +  ;
13207 +  return 0;
13208 + }
13209 + _ACEOF
13210 + if ac_fn_c_try_compile "$LINENO"; then :
13211 +  eval "$as_CACHEVAR=yes"
13212 + else
13213 +  eval "$as_CACHEVAR=no"
13214 + fi
13215 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13216 +  CFLAGS=$ax_check_save_flags
13217 + fi
13218 + eval ac_res=\$$as_CACHEVAR
13219 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13220 + $as_echo "$ac_res" >&6; }
13221 + if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
13222 +
13223 + if ${CFLAGS+:} false; then :
13224 +
13225 +  case " $CFLAGS " in #(
13226 +  *" $flag "*) :
13227 +    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
13228 +  (: CFLAGS already contains $flag) 2>&5
13229 +  ac_status=$?
13230 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13231 +  test $ac_status = 0; } ;; #(
13232 +  *) :
13233 +
13234 +     as_fn_append CFLAGS " $flag"
13235 +     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13236 +  (: CFLAGS="$CFLAGS") 2>&5
13237 +  ac_status=$?
13238 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13239 +  test $ac_status = 0; }
13240 +     ;;
13241 + esac
13242 +
13243 + else
13244 +
13245 +  CFLAGS=$flag
13246 +  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13247 +  (: CFLAGS="$CFLAGS") 2>&5
13248 +  ac_status=$?
13249 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13250 +  test $ac_status = 0; }
13251 +
13252 + fi
13253 +
13254 + else
13255 +  :
13256 + fi
13257 +
13258 + done
13259 +
13260 +
13261 +
13262 +
13263 +
13264   for flag in -Wempty-body; do
13265    as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
13266   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
# Line 14031 | Line 14311 | done
14311  
14312  
14313  
14314 < for flag in -Wsign-compare; do
14314 > for flag in -Wshift-negative-value; do
14315    as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14316   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14317   $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
# Line 14106 | Line 14386 | done
14386  
14387  
14388  
14389 < for flag in -Wtype-limits; do
14389 > for flag in -Wsign-compare; do
14390    as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14391   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14392   $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
# Line 14181 | Line 14461 | done
14461  
14462  
14463  
14464 < for flag in -Wundef; do
14464 > for flag in -Wtype-limits; do
14465    as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14466   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14467   $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
# Line 14256 | Line 14536 | done
14536  
14537  
14538  
14539 < for flag in -Wuninitialized; do
14539 > for flag in -Wundef; do
14540    as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14541   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14542   $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
# Line 14331 | Line 14611 | done
14611  
14612  
14613  
14614 < for flag in -Wwrite-strings; do
14614 > for flag in -Wuninitialized; do
14615    as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14616   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14617   $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
# Line 14403 | Line 14683 | fi
14683   done
14684  
14685  
14406 fi
14407
14408
14409 for ac_func in strlcpy strlcat
14410 do :
14411  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14412 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14413 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14414  cat >>confdefs.h <<_ACEOF
14415 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14416 _ACEOF
14686  
14418 fi
14419 done
14687  
14688  
14689 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14690 < $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14691 < if ${ac_cv_c_bigendian+:} false; then :
14689 > for flag in -Wwrite-strings; do
14690 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14691 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14692 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14693 > if eval \${$as_CACHEVAR+:} false; then :
14694    $as_echo_n "(cached) " >&6
14695   else
14427  ac_cv_c_bigendian=unknown
14428    # See if we're dealing with a universal compiler.
14429    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14430 /* end confdefs.h.  */
14431 #ifndef __APPLE_CC__
14432               not a universal capable compiler
14433             #endif
14434             typedef int dummy;
14435
14436 _ACEOF
14437 if ac_fn_c_try_compile "$LINENO"; then :
14438
14439        # Check for potential -arch flags.  It is not universal unless
14440        # there are at least two -arch flags with different values.
14441        ac_arch=
14442        ac_prev=
14443        for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14444         if test -n "$ac_prev"; then
14445           case $ac_word in
14446             i?86 | x86_64 | ppc | ppc64)
14447               if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
14448                 ac_arch=$ac_word
14449               else
14450                 ac_cv_c_bigendian=universal
14451                 break
14452               fi
14453               ;;
14454           esac
14455           ac_prev=
14456         elif test "x$ac_word" = "x-arch"; then
14457           ac_prev=arch
14458         fi
14459       done
14460 fi
14461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14462    if test $ac_cv_c_bigendian = unknown; then
14463      # See if sys/param.h defines the BYTE_ORDER macro.
14464      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14465 /* end confdefs.h.  */
14466 #include <sys/types.h>
14467             #include <sys/param.h>
14696  
14697 < int
14698 < main ()
14699 < {
14472 < #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14473 <                     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14474 <                     && LITTLE_ENDIAN)
14475 <              bogus endian macros
14476 <             #endif
14477 <
14478 <  ;
14479 <  return 0;
14480 < }
14481 < _ACEOF
14482 < if ac_fn_c_try_compile "$LINENO"; then :
14483 <  # It does; now see whether it defined to BIG_ENDIAN or not.
14484 <         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14697 >  ax_check_save_flags=$CFLAGS
14698 >  CFLAGS="$CFLAGS  $flag"
14699 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14700   /* end confdefs.h.  */
14486 #include <sys/types.h>
14487                #include <sys/param.h>
14701  
14702   int
14703   main ()
14704   {
14492 #if BYTE_ORDER != BIG_ENDIAN
14493                 not big endian
14494                #endif
14705  
14706    ;
14707    return 0;
14708   }
14709   _ACEOF
14710   if ac_fn_c_try_compile "$LINENO"; then :
14711 <  ac_cv_c_bigendian=yes
14711 >  eval "$as_CACHEVAR=yes"
14712   else
14713 <  ac_cv_c_bigendian=no
14713 >  eval "$as_CACHEVAR=no"
14714   fi
14715   rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14716 +  CFLAGS=$ax_check_save_flags
14717   fi
14718 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14719 <    fi
14720 <    if test $ac_cv_c_bigendian = unknown; then
14721 <      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14511 <      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14512 < /* end confdefs.h.  */
14513 < #include <limits.h>
14718 > eval ac_res=\$$as_CACHEVAR
14719 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14720 > $as_echo "$ac_res" >&6; }
14721 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
14722  
14723 < int
14516 < main ()
14517 < {
14518 < #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14519 <              bogus endian macros
14520 <             #endif
14723 > if ${CFLAGS+:} false; then :
14724  
14725 <  ;
14726 <  return 0;
14727 < }
14728 < _ACEOF
14729 < if ac_fn_c_try_compile "$LINENO"; then :
14730 <  # It does; now see whether it defined to _BIG_ENDIAN or not.
14731 <         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14732 < /* end confdefs.h.  */
14530 < #include <limits.h>
14725 >  case " $CFLAGS " in #(
14726 >  *" $flag "*) :
14727 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14728 >  (: CFLAGS already contains $flag) 2>&5
14729 >  ac_status=$?
14730 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14731 >  test $ac_status = 0; } ;; #(
14732 >  *) :
14733  
14734 < int
14735 < main ()
14736 < {
14737 < #ifndef _BIG_ENDIAN
14738 <                 not big endian
14739 <                #endif
14734 >     as_fn_append CFLAGS " $flag"
14735 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14736 >  (: CFLAGS="$CFLAGS") 2>&5
14737 >  ac_status=$?
14738 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14739 >  test $ac_status = 0; }
14740 >     ;;
14741 > esac
14742  
14539  ;
14540  return 0;
14541 }
14542 _ACEOF
14543 if ac_fn_c_try_compile "$LINENO"; then :
14544  ac_cv_c_bigendian=yes
14743   else
14744 <  ac_cv_c_bigendian=no
14744 >
14745 >  CFLAGS=$flag
14746 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14747 >  (: CFLAGS="$CFLAGS") 2>&5
14748 >  ac_status=$?
14749 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14750 >  test $ac_status = 0; }
14751 >
14752   fi
14753 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14753 >
14754 > else
14755 >  :
14756   fi
14550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14551    fi
14552    if test $ac_cv_c_bigendian = unknown; then
14553      # Compile a test program.
14554      if test "$cross_compiling" = yes; then :
14555  # Try to guess by grepping values from an object file.
14556         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14557 /* end confdefs.h.  */
14558 short int ascii_mm[] =
14559                  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14560                short int ascii_ii[] =
14561                  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14562                int use_ascii (int i) {
14563                  return ascii_mm[i] + ascii_ii[i];
14564                }
14565                short int ebcdic_ii[] =
14566                  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14567                short int ebcdic_mm[] =
14568                  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14569                int use_ebcdic (int i) {
14570                  return ebcdic_mm[i] + ebcdic_ii[i];
14571                }
14572                extern int foo;
14757  
14758 < int
14759 < main ()
14760 < {
14577 < return use_ascii (foo) == use_ebcdic (foo);
14578 <  ;
14579 <  return 0;
14580 < }
14581 < _ACEOF
14582 < if ac_fn_c_try_compile "$LINENO"; then :
14583 <  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14584 <              ac_cv_c_bigendian=yes
14585 <            fi
14586 <            if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14587 <              if test "$ac_cv_c_bigendian" = unknown; then
14588 <                ac_cv_c_bigendian=no
14589 <              else
14590 <                # finding both strings is unlikely to happen, but who knows?
14591 <                ac_cv_c_bigendian=unknown
14592 <              fi
14593 <            fi
14758 > done
14759 >
14760 >
14761   fi
14762 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14762 >
14763 >
14764 >  # Check whether --enable-efence was given.
14765 > if test "${enable_efence+set}" = set; then :
14766 >  enableval=$enable_efence; efence="$enableval"
14767   else
14768 <  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14768 >  efence="no"
14769 > fi
14770 >
14771 >
14772 >  if test "$efence" = "yes"; then :
14773 >
14774 >    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing EF_Print" >&5
14775 > $as_echo_n "checking for library containing EF_Print... " >&6; }
14776 > if ${ac_cv_search_EF_Print+:} false; then :
14777 >  $as_echo_n "(cached) " >&6
14778 > else
14779 >  ac_func_search_save_LIBS=$LIBS
14780 > cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14781   /* end confdefs.h.  */
14782 < $ac_includes_default
14782 >
14783 > /* Override any GCC internal prototype to avoid an error.
14784 >   Use char because int might match the return type of a GCC
14785 >   builtin and then its argument prototype would still apply.  */
14786 > #ifdef __cplusplus
14787 > extern "C"
14788 > #endif
14789 > char EF_Print ();
14790   int
14791   main ()
14792   {
14793 <
14604 <             /* Are we little or big endian?  From Harbison&Steele.  */
14605 <             union
14606 <             {
14607 <               long int l;
14608 <               char c[sizeof (long int)];
14609 <             } u;
14610 <             u.l = 1;
14611 <             return u.c[sizeof (long int) - 1] == 1;
14612 <
14793 > return EF_Print ();
14794    ;
14795    return 0;
14796   }
14797   _ACEOF
14798 < if ac_fn_c_try_run "$LINENO"; then :
14799 <  ac_cv_c_bigendian=no
14798 > for ac_lib in '' efence; do
14799 >  if test -z "$ac_lib"; then
14800 >    ac_res="none required"
14801 >  else
14802 >    ac_res=-l$ac_lib
14803 >    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14804 >  fi
14805 >  if ac_fn_c_try_link "$LINENO"; then :
14806 >  ac_cv_search_EF_Print=$ac_res
14807 > fi
14808 > rm -f core conftest.err conftest.$ac_objext \
14809 >    conftest$ac_exeext
14810 >  if ${ac_cv_search_EF_Print+:} false; then :
14811 >  break
14812 > fi
14813 > done
14814 > if ${ac_cv_search_EF_Print+:} false; then :
14815 >
14816   else
14817 <  ac_cv_c_bigendian=yes
14817 >  ac_cv_search_EF_Print=no
14818   fi
14819 < rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14820 <  conftest.$ac_objext conftest.beam conftest.$ac_ext
14819 > rm conftest.$ac_ext
14820 > LIBS=$ac_func_search_save_LIBS
14821   fi
14822 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_EF_Print" >&5
14823 + $as_echo "$ac_cv_search_EF_Print" >&6; }
14824 + ac_res=$ac_cv_search_EF_Print
14825 + if test "$ac_res" != no; then :
14826 +  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14827  
14828 <    fi
14828 > else
14829 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14830 > $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14831 > as_fn_error $? "Electric Fence 'efence' library not found
14832 > See \`config.log' for more details" "$LINENO" 5; }
14833   fi
14628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14629 $as_echo "$ac_cv_c_bigendian" >&6; }
14630 case $ac_cv_c_bigendian in #(
14631   yes)
14632     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14633 ;; #(
14634   no)
14635      ;; #(
14636   universal)
14834  
14638 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14835  
14836 <     ;; #(
14837 <   *)
14838 <     as_fn_error $? "unknown endianness
14839 < presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14840 < esac
14836 > fi
14837 >
14838 >
14839 > for ac_func in strlcpy strlcat
14840 > do :
14841 >  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14842 > ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14843 > if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14844 >  cat >>confdefs.h <<_ACEOF
14845 > #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14846 > _ACEOF
14847 >
14848 > fi
14849 > done
14850  
14851  
14852   ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile src/libopm/Makefile src/libopm/src/Makefile"
# Line 14783 | Line 14988 | if test -z "${am__fastdepCC_TRUE}" && te
14988    as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14989   Usually this means the macro was only invoked conditionally." "$LINENO" 5
14990   fi
14991 <
14991 > if test -z "${ENABLE_SSL_TRUE}" && test -z "${ENABLE_SSL_FALSE}"; then
14992 >  as_fn_error $? "conditional \"ENABLE_SSL\" was never defined.
14993 > Usually this means the macro was only invoked conditionally." "$LINENO" 5
14994 > fi
14995  
14996   : "${CONFIG_STATUS=./config.status}"
14997   ac_write_fail=0

Diff Legend

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