]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
test: objc tests on openbsd.
authorBogdan <bogdro_rep@gmx.us>
Sun, 26 May 2024 22:35:58 +0000 (15:35 -0700)
committerKarl Berry <karl@freefriends.org>
Sun, 26 May 2024 22:35:58 +0000 (15:35 -0700)
Fixes https://bugs.gnu.org/68179.

* t/objcxx-deps.sh: test for objc_getProperty and other
functions in the objc library.
* t/objcxx-minidemo.sh: likewise.
* t/strip2.sh (STRIP): use -x instead of --verbose to test
strip with multiple words, to work with openbsd (and aix) strip.

t/objcxx-deps.sh
t/objcxx-minidemo.sh
t/strip2.sh

index 1f39507fd199d41312a5629543692bfedf4808db..519c33244890d269de07974504d16c7603bb1d0f 100644 (file)
 
 cat >> configure.ac << 'END'
 AC_PROG_OBJCXX
+AC_CHECK_LIB([objc],[__objc_exec_class])
+AC_CHECK_LIB([objc],[objc_getProperty])
+AC_CHECK_LIB([objc],[objc_msg_lookup_sender])
+AC_CHECK_LIB([objc],[objc_msg_lookup])
 AC_OUTPUT
 END
 
index ec0e8e1295886832255d05dc0af49dc8601e2d6f..f6f53c151cb0dd7044bd0a8551542a0e8aa9ac14 100644 (file)
@@ -23,6 +23,10 @@ required=native
 cat >> configure.ac << 'END'
 AC_PROG_OBJCXX
 AC_CONFIG_HEADERS([config.h])
+AC_CHECK_LIB([objc],[__objc_exec_class])
+AC_CHECK_LIB([objc],[objc_getProperty])
+AC_CHECK_LIB([objc],[objc_msg_lookup_sender])
+AC_CHECK_LIB([objc],[objc_msg_lookup])
 AC_OUTPUT
 END
 
index a367dd0fe67bade33ad22fbd1430d822a1c7d748..e48dddc7a0adfdf53a9da0c6226ae7feb67e350c 100644 (file)
@@ -15,7 +15,7 @@
 # along with this program.  If not, see <https://www.gnu.org/licenses/>.
 
 # Ensure install-strip works when STRIP consists of more than one word.
-# This test needs GNU binutils strip.  See sister test 'strip3.sh'.
+# See sister test 'strip3.sh'.
 
 required='cc strip'
 . test-init.sh
@@ -39,7 +39,7 @@ $ACLOCAL
 $AUTOCONF
 $AUTOMAKE -a
 
-./configure --prefix="$(pwd)/inst" STRIP='strip --verbose'
+./configure --prefix="$(pwd)/inst" STRIP='strip -x'
 $MAKE
 $MAKE install-strip