Portability fixes for ./configure

Fix portability of ./configure by defaulting to a more generic POSIX
setup for all values of `uname -s` apart from "Darwin"
This commit is contained in:
XANTRONIX Development 2020-08-10 18:54:57 -04:00 committed by XANTRONIX Industrial
parent 3e51b48453
commit 4c427854da

14
configure vendored
View file

@ -4,7 +4,7 @@ OS=`uname -s`
DEBUG=0 DEBUG=0
PREFIX=/usr/local PREFIX=/usr/local
create_linux_config_h() { create_generic_config_h() {
cat <<EOF > src/config.h cat <<EOF > src/config.h
#ifndef _CONFIG_H #ifndef _CONFIG_H
#define _CONFIG_H #define _CONFIG_H
@ -55,7 +55,7 @@ CFLAGS = $(CGFLAGS) $(CWFLAGS) $(COFLAGS)
EOF EOF
} }
create_linux_build_mk() { create_generic_build_mk() {
create_common_build_mk $@ create_common_build_mk $@
cat <<'EOF' >> mk/build.mk cat <<'EOF' >> mk/build.mk
@ -106,13 +106,13 @@ if [ ! -d "mk" ]; then
fi fi
case $OS in case $OS in
Linux)
create_linux_config_h
create_linux_build_mk
;;
Darwin) Darwin)
create_darwin_config_h create_darwin_config_h
create_darwin_build_mk create_darwin_build_mk
;; ;;
*)
create_generic_config_h
create_generic_build_mk
;;
esac esac