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 8578 by michael, Sun Oct 14 09:32:34 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 8559 2018-09-23 09:25:41Z 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_openssl
777   enable_assert
778   enable_warnings
779 + enable_efence
780   '
781        ac_precious_vars='build_alias
782   host_alias
# Line 1420 | Line 1422 | Optional Features:
1422    --enable-fast-install[=PKGS]
1423                            optimize for fast installation [default=yes]
1424    --disable-libtool-lock  avoid locking (might break parallel builds)
1425 +  --enable-openssl=DIR       Enable LibreSSL/OpenSSL support (DIR optional).
1426 +  --disable-openssl            Disable LibreSSL/OpenSSL support.
1427    --enable-assert         Enable assert() statements
1428    --enable-warnings       Enable compiler warnings.
1429 +  --enable-efence         Enable linking with Electric Fence 'efence' memory
1430 +                          debugger library.
1431  
1432   Optional Packages:
1433    --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
# Line 12577 | Line 12583 | fi
12583  
12584  
12585  
12586 + # Check whether --enable-openssl was given.
12587 + if test "${enable_openssl+set}" = set; then :
12588 +  enableval=$enable_openssl;  cf_enable_openssl=$enableval
12589 + else
12590 +   cf_enable_openssl="auto"
12591 + fi
12592 +
12593 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LibreSSL/OpenSSL" >&5
12594 + $as_echo_n "checking for LibreSSL/OpenSSL... " >&6; }
12595 + if test "$cf_enable_openssl" != "no"; then
12596 +  cf_openssl_basedir=""
12597 +  if test "$cf_enable_openssl" != "auto" &&
12598 +     test "$cf_enable_openssl" != "yes"; then
12599 +          cf_openssl_basedir="${cf_enable_openssl}"
12600 +  else
12601 +        for dirs in /usr/local/ssl /usr/pkg /usr/local /usr/lib /usr/lib/ssl\
12602 +                /opt /opt/openssl /usr/local/openssl; do
12603 +      if test -f "${dirs}/include/openssl/opensslv.h"; then
12604 +        cf_openssl_basedir="${dirs}"
12605 +        break
12606 +      fi
12607 +    done
12608 +    unset dirs
12609 +  fi
12610 +
12611 +    if test ! -z "$cf_openssl_basedir"; then
12612 +    if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h"; then
12613 +      CPPFLAGS="-I${cf_openssl_basedir}/include $CPPFLAGS"
12614 +      LDFLAGS="-L${cf_openssl_basedir}/lib $LDFLAGS"
12615 +    else
12616 +                  cf_openssl_basedir=""
12617 +    fi
12618 +  else
12619 +                            if test -f "/usr/include/openssl/opensslv.h"; then
12620 +      cf_openssl_basedir="/usr"
12621 +    fi
12622 +  fi
12623 +
12624 +      if test ! -z "$cf_openssl_basedir"; then
12625 +    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5
12626 + $as_echo "$cf_openssl_basedir" >&6; }
12627 +    cf_enable_openssl="yes"
12628 +  else
12629 +    { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Please check your path." >&5
12630 + $as_echo "not found. Please check your path." >&6; }
12631 +    cf_enable_openssl="no"
12632 +  fi
12633 +  unset cf_openssl_basedir
12634 + else
12635 +    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12636 + $as_echo "disabled" >&6; }
12637 + fi
12638 +
12639 + if test "$cf_enable_openssl" != "no"; then :
12640 +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LibreSSL or OpenSSL 1.0.1d and above" >&5
12641 + $as_echo_n "checking for LibreSSL or OpenSSL 1.0.1d and above... " >&6; }
12642 +  if test "$cross_compiling" = yes; then :
12643 +  cf_openssl_version_ok=no
12644 + else
12645 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12646 + /* end confdefs.h.  */
12647 +
12648 +
12649 +    #include <openssl/opensslv.h>
12650 +    #include <stdlib.h>
12651 + int
12652 + main ()
12653 + {
12654 + exit(!(OPENSSL_VERSION_NUMBER >= 0x1000104fL));
12655 +  ;
12656 +  return 0;
12657 + }
12658 + _ACEOF
12659 + if ac_fn_c_try_run "$LINENO"; then :
12660 +  cf_openssl_version_ok=yes
12661 + else
12662 +  cf_openssl_version_ok=no
12663 + fi
12664 + rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12665 +  conftest.$ac_objext conftest.beam conftest.$ac_ext
12666 + fi
12667 +
12668 +
12669 +  if test "$cf_openssl_version_ok" = "yes"; then :
12670 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
12671 + $as_echo "found" >&6; }
12672 +
12673 +    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_free in -lcrypto" >&5
12674 + $as_echo_n "checking for RSA_free in -lcrypto... " >&6; }
12675 + if ${ac_cv_lib_crypto_RSA_free+:} false; then :
12676 +  $as_echo_n "(cached) " >&6
12677 + else
12678 +  ac_check_lib_save_LIBS=$LIBS
12679 + LIBS="-lcrypto  $LIBS"
12680 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12681 + /* end confdefs.h.  */
12682 +
12683 + /* Override any GCC internal prototype to avoid an error.
12684 +   Use char because int might match the return type of a GCC
12685 +   builtin and then its argument prototype would still apply.  */
12686 + #ifdef __cplusplus
12687 + extern "C"
12688 + #endif
12689 + char RSA_free ();
12690 + int
12691 + main ()
12692 + {
12693 + return RSA_free ();
12694 +  ;
12695 +  return 0;
12696 + }
12697 + _ACEOF
12698 + if ac_fn_c_try_link "$LINENO"; then :
12699 +  ac_cv_lib_crypto_RSA_free=yes
12700 + else
12701 +  ac_cv_lib_crypto_RSA_free=no
12702 + fi
12703 + rm -f core conftest.err conftest.$ac_objext \
12704 +    conftest$ac_exeext conftest.$ac_ext
12705 + LIBS=$ac_check_lib_save_LIBS
12706 + fi
12707 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_free" >&5
12708 + $as_echo "$ac_cv_lib_crypto_RSA_free" >&6; }
12709 + if test "x$ac_cv_lib_crypto_RSA_free" = xyes; then :
12710 +  cat >>confdefs.h <<_ACEOF
12711 + #define HAVE_LIBCRYPTO 1
12712 + _ACEOF
12713 +
12714 +  LIBS="-lcrypto $LIBS"
12715 +
12716 + fi
12717 +
12718 +    if test "$ac_cv_lib_crypto_RSA_free" = "yes"; then :
12719 +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
12720 + $as_echo_n "checking for SSL_connect in -lssl... " >&6; }
12721 + if ${ac_cv_lib_ssl_SSL_connect+:} false; then :
12722 +  $as_echo_n "(cached) " >&6
12723 + else
12724 +  ac_check_lib_save_LIBS=$LIBS
12725 + LIBS="-lssl  $LIBS"
12726 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12727 + /* end confdefs.h.  */
12728 +
12729 + /* Override any GCC internal prototype to avoid an error.
12730 +   Use char because int might match the return type of a GCC
12731 +   builtin and then its argument prototype would still apply.  */
12732 + #ifdef __cplusplus
12733 + extern "C"
12734 + #endif
12735 + char SSL_connect ();
12736 + int
12737 + main ()
12738 + {
12739 + return SSL_connect ();
12740 +  ;
12741 +  return 0;
12742 + }
12743 + _ACEOF
12744 + if ac_fn_c_try_link "$LINENO"; then :
12745 +  ac_cv_lib_ssl_SSL_connect=yes
12746 + else
12747 +  ac_cv_lib_ssl_SSL_connect=no
12748 + fi
12749 + rm -f core conftest.err conftest.$ac_objext \
12750 +    conftest$ac_exeext conftest.$ac_ext
12751 + LIBS=$ac_check_lib_save_LIBS
12752 + fi
12753 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
12754 + $as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
12755 + if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then :
12756 +  cat >>confdefs.h <<_ACEOF
12757 + #define HAVE_LIBSSL 1
12758 + _ACEOF
12759 +
12760 +  LIBS="-lssl $LIBS"
12761 +
12762 + fi
12763 +
12764 + fi
12765 +
12766 + else
12767 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - LibreSSL/OpenSSL support disabled" >&5
12768 + $as_echo "no - LibreSSL/OpenSSL support disabled" >&6; }
12769 +    cf_enable_openssl="no"
12770 + fi
12771 + fi
12772 +
12773 +
12774    # Check whether --enable-assert was given.
12775   if test "${enable_assert+set}" = set; then :
12776    enableval=$enable_assert; assert=$enableval
# Line 12981 | Line 13175 | done
13175  
13176  
13177  
13178 + for flag in -Wduplicated-cond; do
13179 +  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
13180 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
13181 + $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
13182 + if eval \${$as_CACHEVAR+:} false; then :
13183 +  $as_echo_n "(cached) " >&6
13184 + else
13185 +
13186 +  ax_check_save_flags=$CFLAGS
13187 +  CFLAGS="$CFLAGS  $flag"
13188 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13189 + /* end confdefs.h.  */
13190 +
13191 + int
13192 + main ()
13193 + {
13194 +
13195 +  ;
13196 +  return 0;
13197 + }
13198 + _ACEOF
13199 + if ac_fn_c_try_compile "$LINENO"; then :
13200 +  eval "$as_CACHEVAR=yes"
13201 + else
13202 +  eval "$as_CACHEVAR=no"
13203 + fi
13204 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13205 +  CFLAGS=$ax_check_save_flags
13206 + fi
13207 + eval ac_res=\$$as_CACHEVAR
13208 +               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13209 + $as_echo "$ac_res" >&6; }
13210 + if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
13211 +
13212 + if ${CFLAGS+:} false; then :
13213 +
13214 +  case " $CFLAGS " in #(
13215 +  *" $flag "*) :
13216 +    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
13217 +  (: CFLAGS already contains $flag) 2>&5
13218 +  ac_status=$?
13219 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13220 +  test $ac_status = 0; } ;; #(
13221 +  *) :
13222 +
13223 +     as_fn_append CFLAGS " $flag"
13224 +     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13225 +  (: CFLAGS="$CFLAGS") 2>&5
13226 +  ac_status=$?
13227 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13228 +  test $ac_status = 0; }
13229 +     ;;
13230 + esac
13231 +
13232 + else
13233 +
13234 +  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 + fi
13242 +
13243 + else
13244 +  :
13245 + fi
13246 +
13247 + done
13248 +
13249 +
13250 +
13251 +
13252 +
13253   for flag in -Wempty-body; do
13254    as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
13255   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
# Line 14031 | Line 14300 | done
14300  
14301  
14302  
14303 < for flag in -Wsign-compare; do
14303 > for flag in -Wshift-negative-value; do
14304    as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14305   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14306   $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
# Line 14106 | Line 14375 | done
14375  
14376  
14377  
14378 < for flag in -Wtype-limits; do
14378 > for flag in -Wsign-compare; do
14379    as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14380   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14381   $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
# Line 14181 | Line 14450 | done
14450  
14451  
14452  
14453 < for flag in -Wundef; do
14453 > for flag in -Wtype-limits; do
14454    as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14455   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14456   $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
# Line 14256 | Line 14525 | done
14525  
14526  
14527  
14528 < for flag in -Wuninitialized; do
14528 > for flag in -Wundef; do
14529    as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14530   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14531   $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
# Line 14331 | Line 14600 | done
14600  
14601  
14602  
14603 < for flag in -Wwrite-strings; do
14603 > for flag in -Wuninitialized; do
14604    as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14605   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14606   $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
# Line 14403 | Line 14672 | fi
14672   done
14673  
14674  
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
14675  
14418 fi
14419 done
14676  
14677  
14678 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14679 < $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14680 < if ${ac_cv_c_bigendian+:} false; then :
14678 > for flag in -Wwrite-strings; do
14679 >  as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14680 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14681 > $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14682 > if eval \${$as_CACHEVAR+:} false; then :
14683    $as_echo_n "(cached) " >&6
14684   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>
14685  
14686 < int
14687 < main ()
14688 < {
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
14686 >  ax_check_save_flags=$CFLAGS
14687 >  CFLAGS="$CFLAGS  $flag"
14688 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14689   /* end confdefs.h.  */
14486 #include <sys/types.h>
14487                #include <sys/param.h>
14690  
14691   int
14692   main ()
14693   {
14492 #if BYTE_ORDER != BIG_ENDIAN
14493                 not big endian
14494                #endif
14694  
14695    ;
14696    return 0;
14697   }
14698   _ACEOF
14699   if ac_fn_c_try_compile "$LINENO"; then :
14700 <  ac_cv_c_bigendian=yes
14700 >  eval "$as_CACHEVAR=yes"
14701   else
14702 <  ac_cv_c_bigendian=no
14702 >  eval "$as_CACHEVAR=no"
14703   fi
14704   rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14705 +  CFLAGS=$ax_check_save_flags
14706   fi
14707 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14708 <    fi
14709 <    if test $ac_cv_c_bigendian = unknown; then
14710 <      # 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>
14707 > eval ac_res=\$$as_CACHEVAR
14708 >               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14709 > $as_echo "$ac_res" >&6; }
14710 > if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
14711  
14712 < int
14516 < main ()
14517 < {
14518 < #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14519 <              bogus endian macros
14520 <             #endif
14712 > if ${CFLAGS+:} false; then :
14713  
14714 <  ;
14715 <  return 0;
14716 < }
14717 < _ACEOF
14718 < if ac_fn_c_try_compile "$LINENO"; then :
14719 <  # It does; now see whether it defined to _BIG_ENDIAN or not.
14720 <         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14721 < /* end confdefs.h.  */
14530 < #include <limits.h>
14714 >  case " $CFLAGS " in #(
14715 >  *" $flag "*) :
14716 >    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14717 >  (: CFLAGS already contains $flag) 2>&5
14718 >  ac_status=$?
14719 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14720 >  test $ac_status = 0; } ;; #(
14721 >  *) :
14722  
14723 < int
14724 < main ()
14725 < {
14726 < #ifndef _BIG_ENDIAN
14727 <                 not big endian
14728 <                #endif
14723 >     as_fn_append CFLAGS " $flag"
14724 >     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14725 >  (: CFLAGS="$CFLAGS") 2>&5
14726 >  ac_status=$?
14727 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14728 >  test $ac_status = 0; }
14729 >     ;;
14730 > esac
14731  
14539  ;
14540  return 0;
14541 }
14542 _ACEOF
14543 if ac_fn_c_try_compile "$LINENO"; then :
14544  ac_cv_c_bigendian=yes
14732   else
14733 <  ac_cv_c_bigendian=no
14733 >
14734 >  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   fi
14742 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14742 >
14743 > else
14744 >  :
14745   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;
14746  
14747 < int
14748 < main ()
14749 < {
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
14747 > done
14748 >
14749 >
14750   fi
14751 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14751 >
14752 >
14753 >  # Check whether --enable-efence was given.
14754 > if test "${enable_efence+set}" = set; then :
14755 >  enableval=$enable_efence; efence="$enableval"
14756   else
14757 <  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14757 >  efence="no"
14758 > fi
14759 >
14760 >
14761 >  if test "$efence" = "yes"; then :
14762 >
14763 >    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing EF_Print" >&5
14764 > $as_echo_n "checking for library containing EF_Print... " >&6; }
14765 > if ${ac_cv_search_EF_Print+:} false; then :
14766 >  $as_echo_n "(cached) " >&6
14767 > else
14768 >  ac_func_search_save_LIBS=$LIBS
14769 > cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14770   /* end confdefs.h.  */
14771 < $ac_includes_default
14771 >
14772 > /* Override any GCC internal prototype to avoid an error.
14773 >   Use char because int might match the return type of a GCC
14774 >   builtin and then its argument prototype would still apply.  */
14775 > #ifdef __cplusplus
14776 > extern "C"
14777 > #endif
14778 > char EF_Print ();
14779   int
14780   main ()
14781   {
14782 <
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 <
14782 > return EF_Print ();
14783    ;
14784    return 0;
14785   }
14786   _ACEOF
14787 < if ac_fn_c_try_run "$LINENO"; then :
14788 <  ac_cv_c_bigendian=no
14787 > for ac_lib in '' efence; do
14788 >  if test -z "$ac_lib"; then
14789 >    ac_res="none required"
14790 >  else
14791 >    ac_res=-l$ac_lib
14792 >    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14793 >  fi
14794 >  if ac_fn_c_try_link "$LINENO"; then :
14795 >  ac_cv_search_EF_Print=$ac_res
14796 > fi
14797 > rm -f core conftest.err conftest.$ac_objext \
14798 >    conftest$ac_exeext
14799 >  if ${ac_cv_search_EF_Print+:} false; then :
14800 >  break
14801 > fi
14802 > done
14803 > if ${ac_cv_search_EF_Print+:} false; then :
14804 >
14805   else
14806 <  ac_cv_c_bigendian=yes
14806 >  ac_cv_search_EF_Print=no
14807   fi
14808 < rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14809 <  conftest.$ac_objext conftest.beam conftest.$ac_ext
14808 > rm conftest.$ac_ext
14809 > LIBS=$ac_func_search_save_LIBS
14810   fi
14811 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_EF_Print" >&5
14812 + $as_echo "$ac_cv_search_EF_Print" >&6; }
14813 + ac_res=$ac_cv_search_EF_Print
14814 + if test "$ac_res" != no; then :
14815 +  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14816  
14817 <    fi
14817 > else
14818 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14819 > $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14820 > as_fn_error $? "Electric Fence 'efence' library not found
14821 > See \`config.log' for more details" "$LINENO" 5; }
14822   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)
14823  
14638 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14824  
14825 <     ;; #(
14826 <   *)
14827 <     as_fn_error $? "unknown endianness
14828 < presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14829 < esac
14825 > fi
14826 >
14827 >
14828 > for ac_func in strlcpy strlcat
14829 > do :
14830 >  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14831 > ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14832 > if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14833 >  cat >>confdefs.h <<_ACEOF
14834 > #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14835 > _ACEOF
14836 >
14837 > fi
14838 > done
14839  
14840  
14841   ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile src/libopm/Makefile src/libopm/src/Makefile"
# Line 14784 | Line 14978 | if test -z "${am__fastdepCC_TRUE}" && te
14978   Usually this means the macro was only invoked conditionally." "$LINENO" 5
14979   fi
14980  
14787
14981   : "${CONFIG_STATUS=./config.status}"
14982   ac_write_fail=0
14983   ac_clean_files_save=$ac_clean_files

Diff Legend

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