openbsd-ports/devel/gettext/patches/patch-configure

170 lines
5.5 KiB
Plaintext
Raw Normal View History

2001-09-23 01:08:45 -04:00
$OpenBSD: patch-configure,v 1.7 2001/09/23 05:08:45 brad Exp $
2001-09-18 23:37:20 -04:00
--- configure.orig Fri Sep 14 20:47:29 2001
2001-09-23 01:08:45 -04:00
+++ configure Sat Sep 22 18:33:32 2001
2001-09-18 23:37:20 -04:00
@@ -1220,52 +1220,32 @@ echo "configure:1220: checking for worki
# Run test in a subshell; some versions of sh will print an error if
# an executable is not found, even if stderr is redirected.
# Redirect stdin to placate older versions of autoconf. Sigh.
-if (aclocal --version) < /dev/null > /dev/null 2>&1; then
- ACLOCAL=aclocal
- echo "$ac_t""found" 1>&6
-else
2001-04-04 15:51:40 -04:00
- ACLOCAL="$missing_dir/missing aclocal"
- echo "$ac_t""missing" 1>&6
-fi
2001-04-04 15:51:40 -04:00
+ACLOCAL="$missing_dir/missing aclocal"
+echo "$ac_t""missing" 1>&6
echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
2001-09-18 23:37:20 -04:00
echo "configure:1233: checking for working autoconf" >&5
2001-04-04 15:51:40 -04:00
# Run test in a subshell; some versions of sh will print an error if
# an executable is not found, even if stderr is redirected.
# Redirect stdin to placate older versions of autoconf. Sigh.
-if (autoconf --version) < /dev/null > /dev/null 2>&1; then
- AUTOCONF=autoconf
- echo "$ac_t""found" 1>&6
-else
- AUTOCONF="$missing_dir/missing autoconf"
- echo "$ac_t""missing" 1>&6
-fi
+AUTOCONF="$missing_dir/missing autoconf"
+echo "$ac_t""missing" 1>&6
echo $ac_n "checking for working automake""... $ac_c" 1>&6
2001-09-18 23:37:20 -04:00
echo "configure:1246: checking for working automake" >&5
# Run test in a subshell; some versions of sh will print an error if
# an executable is not found, even if stderr is redirected.
# Redirect stdin to placate older versions of autoconf. Sigh.
-if (automake --version) < /dev/null > /dev/null 2>&1; then
- AUTOMAKE=automake
- echo "$ac_t""found" 1>&6
-else
2001-04-04 15:51:40 -04:00
- AUTOMAKE="$missing_dir/missing automake"
- echo "$ac_t""missing" 1>&6
-fi
2001-04-04 15:51:40 -04:00
+AUTOMAKE="$missing_dir/missing automake"
+echo "$ac_t""missing" 1>&6
echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
2001-09-18 23:37:20 -04:00
echo "configure:1259: checking for working autoheader" >&5
2001-04-04 15:51:40 -04:00
# Run test in a subshell; some versions of sh will print an error if
# an executable is not found, even if stderr is redirected.
# Redirect stdin to placate older versions of autoconf. Sigh.
-if (autoheader --version) < /dev/null > /dev/null 2>&1; then
- AUTOHEADER=autoheader
- echo "$ac_t""found" 1>&6
-else
- AUTOHEADER="$missing_dir/missing autoheader"
- echo "$ac_t""missing" 1>&6
-fi
+AUTOHEADER="$missing_dir/missing autoheader"
+echo "$ac_t""missing" 1>&6
1999-03-29 17:44:23 -05:00
2001-04-04 15:51:40 -04:00
echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
2001-09-18 23:37:20 -04:00
echo "configure:1272: checking for working makeinfo" >&5
@@ -2260,6 +2240,16 @@ newos6*)
lt_cv_file_magic_test_file=/usr/lib/libnls.so
;;
+openbsd*)
+ lt_cv_file_magic_cmd=/usr/bin/file
+ lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
+ if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
+ lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
+ else
+ lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
+ fi
+ ;;
+
osf3* | osf4* | osf5*)
# this will be overridden with pass_all, but let us keep it just in case
lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
@@ -2968,7 +2958,14 @@ old_postuninstall_cmds=
2001-08-27 15:16:00 -04:00
if test -n "$RANLIB"; then
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
- old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
+ case "$host_os" in
+ openbsd*)
+ old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
+ ;;
+ *)
+ old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
+ ;;
+ esac
fi
# Allow CC to be a program name with arguments.
2001-09-18 23:37:20 -04:00
@@ -3465,7 +3462,9 @@ cygwin* | mingw* | pw32* )
2001-08-27 15:16:00 -04:00
with_gnu_ld=no
fi
;;
-
+openbsd*)
+ with_gnu_ld=no
+ ;;
esac
ld_shlibs=yes
2001-09-18 23:37:20 -04:00
@@ -3869,10 +3868,24 @@ else
2001-08-27 15:16:00 -04:00
;;
openbsd*)
- archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
- hardcode_libdir_flag_spec='-R$libdir'
hardcode_direct=yes
hardcode_shlibpath_var=no
2001-09-18 23:37:20 -04:00
+ if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
+ archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
+ hardcode_libdir_flag_spec='${wl}-R$libdir'
+ export_dynamic_flag_spec='${wl}-E'
+ else
+ case "$host_os" in
+ openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
2001-08-27 15:16:00 -04:00
+ archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
+ hardcode_libdir_flag_spec='-R$libdir'
2001-09-18 23:37:20 -04:00
+ ;;
+ *)
+ archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
+ hardcode_libdir_flag_spec='${wl}-R$libdir'
+ ;;
+ esac
+ fi
2001-08-27 15:16:00 -04:00
;;
os2*)
2001-09-18 23:37:20 -04:00
@@ -4349,9 +4362,21 @@ newsos6)
2001-08-27 15:16:00 -04:00
openbsd*)
version_type=sunos
- if test "$with_gnu_ld" = yes; then
- need_lib_prefix=no
- need_version=no
+ need_lib_prefix=no
+ need_version=no
2001-09-18 23:37:20 -04:00
+ sys_lib_search_path_spec="/usr/lib"
2001-09-23 01:08:45 -04:00
+ sys_lib_dlsearch_path_spec="/usr/lib /usr/local/lib"
2001-09-18 23:37:20 -04:00
+ if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2001-08-27 15:16:00 -04:00
+ case "$host_os" in
+ openbsd2.[89] | openbsd2.[89].*)
+ shlibpath_overrides_runpath=no
2001-09-18 23:37:20 -04:00
+ ;;
2001-08-27 15:16:00 -04:00
+ *)
+ shlibpath_overrides_runpath=yes
2001-09-18 23:37:20 -04:00
+ ;;
2001-08-27 15:16:00 -04:00
+ esac
+ else
+ shlibpath_overrides_runpath=yes
fi
library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2001-09-18 23:37:20 -04:00
@@ -8375,7 +8400,7 @@ else
1999-03-29 17:44:23 -05:00
;;
esac
fi
-EMACS="$ac_cv_path_EMACS"
+EMACS=no
if test -n "$EMACS"; then
echo "$ac_t""$EMACS" 1>&6
else