aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authornytpu <alex@nytpu.com>2021-06-02 13:13:03 -0600
committernytpu <alex@nytpu.com>2021-06-02 13:13:03 -0600
commit8f6161eb16e549a7a5849f3d42d378fdd4a3466a (patch)
treee95d810d3f0decfcfb4cfd03e85d0fc815c1e1fc /configure
parentadd tests to gitignore (diff)
downloaded-8f6161eb16e549a7a5849f3d42d378fdd4a3466a.tar.bz2
ed-8f6161eb16e549a7a5849f3d42d378fdd4a3466a.zip
fixup makefile and configure
Diffstat (limited to '')
-rwxr-xr-xconfigure10
1 files changed, 7 insertions, 3 deletions
diff --git a/configure b/configure
index 3d17fec..85dbed9 100755
--- a/configure
+++ b/configure
@@ -40,13 +40,14 @@ for opt in "$@"; do
echo
echo "Options and variables: [defaults in brackets]"
echo " -h, --help display this help text"
- echo " --prefix=DIR install into DIR [/usr]"
+ echo " --prefix=DIR install into DIR [/usr/local]"
echo " --bindir=DIR location to install executables [\$(PREFIX)/bin]"
echo " --mandir=DIR location to install man pages [\$(PREFIX)/share/man]"
echo " --cc=COMPILER command to invoke the C11 compiler [cc]"
- echo " --cflags=FLAGS command line options for the C compiler [-Wall -Wextra -Wfatal-errors -Wno-missing-field-initializers -Wno-unused-parameter -std=c11 -O2]"
+ echo " --cflags=FLAGS command line options for the C compiler [-Wall -Wextra -pedantic -Wfatal-errors -std=c11 -Wno-missing-field-initializers -Wno-unused-parameter -Werror=return-type]"
echo " --ldflags=FLAGS command line options for the linker []"
echo " --pkgconfig=COMMAND command to run to configure packages [pkg-config]"
+ exit 0
;;
--prefix=*) echo "PREFIX = ${opt#*=}" ;;
--bindir=*) echo "BINDIR = ${opt#*=}" ;;
@@ -55,6 +56,9 @@ for opt in "$@"; do
--cflags=*) echo "CFLAGS = ${opt#*=}" ;;
--ldflags=*) echo "LDFLAGS = ${opt#*=}" ;;
--pkg-config=*) pkgconfig=${opt#*=} ;;
- *) echo "warning: unsupported option ${opt}" >&2 ;;
+ *)
+ echo "warning: unsupported option ${opt}" >&2
+ exit 1
+ ;;
esac
done