$OpenBSD: patch-configure,v 1.2 2018/08/14 00:50:17 bcallah Exp $

Enable compiler on OpenBSD (regenerated configure script)

Index: configure
--- configure.orig
+++ configure
@@ -708,7 +708,6 @@ infodir
 docdir
 oldincludedir
 includedir
-runstatedir
 localstatedir
 sharedstatedir
 sysconfdir
@@ -792,7 +791,6 @@ datadir='${datarootdir}'
 sysconfdir='${prefix}/etc'
 sharedstatedir='${prefix}/com'
 localstatedir='${prefix}/var'
-runstatedir='${localstatedir}/run'
 includedir='${prefix}/include'
 oldincludedir='/usr/include'
 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
@@ -1045,15 +1043,6 @@ do
   | -silent | --silent | --silen | --sile | --sil)
     silent=yes ;;
 
-  -runstatedir | --runstatedir | --runstatedi | --runstated \
-  | --runstate | --runstat | --runsta | --runst | --runs \
-  | --run | --ru | --r)
-    ac_prev=runstatedir ;;
-  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
-  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
-  | --run=* | --ru=* | --r=*)
-    runstatedir=$ac_optarg ;;
-
   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
     ac_prev=sbindir ;;
   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
@@ -1191,7 +1180,7 @@ fi
 for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
 		datadir sysconfdir sharedstatedir localstatedir includedir \
 		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
-		libdir localedir mandir runstatedir
+		libdir localedir mandir
 do
   eval ac_val=\$$ac_var
   # Remove trailing slashes.
@@ -1344,7 +1333,6 @@ Fine tuning of the installation directories:
   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
-  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
   --libdir=DIR            object code libraries [EPREFIX/lib]
   --includedir=DIR        C header files [PREFIX/include]
   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
@@ -2383,10 +2371,6 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
 
 
-# Check whether $1 is in dl.
-
-
-
 #
 # Platform ids.
 #
@@ -2601,15 +2585,15 @@ $as_echo "netbsd" >&6; }
 #
 # OpenBSD.
 #
-*86-*-openbsd* | *86_64-*-openbsd*)
+i386-*-openbsd* | amd64-*-openbsd* | x86_64-*-openbsd* | arm*-*-openbsd* | aarch64-*-openbsd*)
 
 $as_echo "#define HAVE_OPENBSD 1" >>confdefs.h
 
-  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configuring interpreter-only on OpenBSD" >&5
-$as_echo "$as_me: WARNING: configuring interpreter-only on OpenBSD" >&2;}
+
+$as_echo "#define HAVE_IEEE_754 1" >>confdefs.h
+
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: openbsd" >&5
 $as_echo "openbsd" >&6; }
-  enable_compiler=no
   ;;
 #
 # Others, untested.
@@ -18564,287 +18548,6 @@ fi
 
 
 $as_echo "#define HAVE_POSTGRESQL 1" >>confdefs.h
-
-  fi
-fi
-
-if test "x$enable_compiler" = "xyes"; then
-  { $as_echo "$as_me:${as_lineno-$LINENO}: Dynamic loader..." >&5
-$as_echo "$as_me: Dynamic loader..." >&6;}
-  for ac_header in dlfcn.h
-do :
-  ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
-if test "x$ac_cv_header_dlfcn_h" = xyes; then :
-  cat >>confdefs.h <<_ACEOF
-#define HAVE_DLFCN_H 1
-_ACEOF
-
-fi
-
-done
-
-  ac_fn_c_check_decl "$LINENO" "dlopen" "ac_cv_have_decl_dlopen" "
-#include <dlfcn.h>
-
-"
-if test "x$ac_cv_have_decl_dlopen" = xyes; then :
-
-else
-  enable_compiler=no
-fi
-
-  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
-$as_echo_n "checking for dlopen in -ldl... " >&6; }
-if ${ac_cv_lib_dl_dlopen+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  ac_check_lib_save_LIBS=$LIBS
-LIBS="-ldl  $LIBS"
-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h.  */
-
-/* Override any GCC internal prototype to avoid an error.
-   Use char because int might match the return type of a GCC
-   builtin and then its argument prototype would still apply.  */
-#ifdef __cplusplus
-extern "C"
-#endif
-char dlopen ();
-int
-main ()
-{
-return dlopen ();
-  ;
-  return 0;
-}
-_ACEOF
-if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_dl_dlopen=yes
-else
-  ac_cv_lib_dl_dlopen=no
-fi
-rm -f core conftest.err conftest.$ac_objext \
-    conftest$ac_exeext conftest.$ac_ext
-LIBS=$ac_check_lib_save_LIBS
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
-$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
-if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
-  a68g_unexpected=yes
-else
-  enable_compiler=no
-fi
-
-
-  if test "x$enable_compiler" = "xyes"; then
-    ac_fn_c_check_decl "$LINENO" "dlsym" "ac_cv_have_decl_dlsym" "
-#include <dlfcn.h>
-
-"
-if test "x$ac_cv_have_decl_dlsym" = xyes; then :
-
-else
-  enable_compiler=no
-fi
-
-  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
-$as_echo_n "checking for dlsym in -ldl... " >&6; }
-if ${ac_cv_lib_dl_dlsym+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  ac_check_lib_save_LIBS=$LIBS
-LIBS="-ldl  $LIBS"
-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h.  */
-
-/* Override any GCC internal prototype to avoid an error.
-   Use char because int might match the return type of a GCC
-   builtin and then its argument prototype would still apply.  */
-#ifdef __cplusplus
-extern "C"
-#endif
-char dlsym ();
-int
-main ()
-{
-return dlsym ();
-  ;
-  return 0;
-}
-_ACEOF
-if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_dl_dlsym=yes
-else
-  ac_cv_lib_dl_dlsym=no
-fi
-rm -f core conftest.err conftest.$ac_objext \
-    conftest$ac_exeext conftest.$ac_ext
-LIBS=$ac_check_lib_save_LIBS
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
-$as_echo "$ac_cv_lib_dl_dlsym" >&6; }
-if test "x$ac_cv_lib_dl_dlsym" = xyes; then :
-  a68g_unexpected=yes
-else
-  enable_compiler=no
-fi
-
-
-    ac_fn_c_check_decl "$LINENO" "dlerror" "ac_cv_have_decl_dlerror" "
-#include <dlfcn.h>
-
-"
-if test "x$ac_cv_have_decl_dlerror" = xyes; then :
-
-else
-  enable_compiler=no
-fi
-
-  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlerror in -ldl" >&5
-$as_echo_n "checking for dlerror in -ldl... " >&6; }
-if ${ac_cv_lib_dl_dlerror+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  ac_check_lib_save_LIBS=$LIBS
-LIBS="-ldl  $LIBS"
-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h.  */
-
-/* Override any GCC internal prototype to avoid an error.
-   Use char because int might match the return type of a GCC
-   builtin and then its argument prototype would still apply.  */
-#ifdef __cplusplus
-extern "C"
-#endif
-char dlerror ();
-int
-main ()
-{
-return dlerror ();
-  ;
-  return 0;
-}
-_ACEOF
-if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_dl_dlerror=yes
-else
-  ac_cv_lib_dl_dlerror=no
-fi
-rm -f core conftest.err conftest.$ac_objext \
-    conftest$ac_exeext conftest.$ac_ext
-LIBS=$ac_check_lib_save_LIBS
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlerror" >&5
-$as_echo "$ac_cv_lib_dl_dlerror" >&6; }
-if test "x$ac_cv_lib_dl_dlerror" = xyes; then :
-  a68g_unexpected=yes
-else
-  enable_compiler=no
-fi
-
-
-    ac_fn_c_check_decl "$LINENO" "dlclose" "ac_cv_have_decl_dlclose" "
-#include <dlfcn.h>
-
-"
-if test "x$ac_cv_have_decl_dlclose" = xyes; then :
-
-else
-  enable_compiler=no
-fi
-
-  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlclose in -ldl" >&5
-$as_echo_n "checking for dlclose in -ldl... " >&6; }
-if ${ac_cv_lib_dl_dlclose+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  ac_check_lib_save_LIBS=$LIBS
-LIBS="-ldl  $LIBS"
-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h.  */
-
-/* Override any GCC internal prototype to avoid an error.
-   Use char because int might match the return type of a GCC
-   builtin and then its argument prototype would still apply.  */
-#ifdef __cplusplus
-extern "C"
-#endif
-char dlclose ();
-int
-main ()
-{
-return dlclose ();
-  ;
-  return 0;
-}
-_ACEOF
-if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_dl_dlclose=yes
-else
-  ac_cv_lib_dl_dlclose=no
-fi
-rm -f core conftest.err conftest.$ac_objext \
-    conftest$ac_exeext conftest.$ac_ext
-LIBS=$ac_check_lib_save_LIBS
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlclose" >&5
-$as_echo "$ac_cv_lib_dl_dlclose" >&6; }
-if test "x$ac_cv_lib_dl_dlclose" = xyes; then :
-  a68g_unexpected=yes
-else
-  enable_compiler=no
-fi
-
-
-  fi
-  if test "x$enable_compiler" = "xyes"; then
-    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
-$as_echo_n "checking for dlopen in -ldl... " >&6; }
-if ${ac_cv_lib_dl_dlopen+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  ac_check_lib_save_LIBS=$LIBS
-LIBS="-ldl  $LIBS"
-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h.  */
-
-/* Override any GCC internal prototype to avoid an error.
-   Use char because int might match the return type of a GCC
-   builtin and then its argument prototype would still apply.  */
-#ifdef __cplusplus
-extern "C"
-#endif
-char dlopen ();
-int
-main ()
-{
-return dlopen ();
-  ;
-  return 0;
-}
-_ACEOF
-if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_dl_dlopen=yes
-else
-  ac_cv_lib_dl_dlopen=no
-fi
-rm -f core conftest.err conftest.$ac_objext \
-    conftest$ac_exeext conftest.$ac_ext
-LIBS=$ac_check_lib_save_LIBS
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
-$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
-if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
-  cat >>confdefs.h <<_ACEOF
-#define HAVE_LIBDL 1
-_ACEOF
-
-  LIBS="-ldl $LIBS"
-
-fi
-
-
-$as_echo "#define HAVE_DL 1" >>confdefs.h
 
   fi
 fi
