Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CONFIGURE: Some OpenBSD tweaks + let the endianness check build if there's no __attribute__ #3925

Merged
merged 3 commits into from Jun 12, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
15 changes: 13 additions & 2 deletions configure
Expand Up @@ -2148,6 +2148,9 @@ if test "$have_gcc" = yes ; then
amigaos* | dreamcast | ds | mingw* | mint* | morphos | n64 | ps3 | psp2)
std_variant=gnu++
;;
openbsd*)
pedantic=no
;;
*)
;;
esac
Expand Down Expand Up @@ -2336,6 +2339,9 @@ fi
#
echo_n "Checking endianness... "
cat > tmp_endianness_check.cpp << EOF
#ifndef __GNUC__
#define __attribute__(x)
#endif
__attribute__ ((used)) unsigned short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
__attribute__ ((used)) unsigned short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
const char * _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; return s; }
Expand Down Expand Up @@ -2900,7 +2906,7 @@ EOF
_optimization_level=-O2
fi
;;
freebsd* | openbsd*)
freebsd*)
append_var LDFLAGS "-L/usr/local/lib"
append_var CXXFLAGS "-I/usr/local/include"
;;
Expand Down Expand Up @@ -2996,6 +3002,11 @@ EOF
_detection_features_full=no
_nuked_opl=no
;;
openbsd*)
append_var LDFLAGS "-L/usr/local/lib"
append_var CXXFLAGS "-I/usr/local/include"
_seq_midi=no
;;
ps3)
# Force use of SDL and freetype from the ps3 toolchain
_sdlpath="$PS3DEV/portlibs/ppu:$PS3DEV/portlibs/ppu/bin"
Expand Down Expand Up @@ -4354,7 +4365,7 @@ EOF
cc_check -lspeechd && _tts=yes
;;
darwin*)
# Check the API is available. The most recent API we need is for the NSSpeechSynthesizerDelegate protocole
# Check the API is available. The most recent API we need is for the NSSpeechSynthesizerDelegate protocol
cat > $TMPC << EOF
#include <AppKit/NSSpeechSynthesizer.h>
@interface SpeechDelegate : NSObject<NSSpeechSynthesizerDelegate> {
Expand Down