Skip to content

Commit

Permalink
Add configure option to build without drivers
Browse files Browse the repository at this point in the history
  • Loading branch information
amadvance committed Nov 2, 2016
1 parent ff18c0f commit 840d2ba
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ sudo: false

language: c

script: sh autogen.sh && ./configure && make
script: sh autogen.sh && ./configure --enable-bare && make

compiler:
- gcc
Expand Down
9 changes: 9 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,13 @@ AC_ARG_ENABLE(
[ac_enable_static=no]
)

AC_ARG_ENABLE(
[bare],
AC_HELP_STRING([--enable-bare],[enable compilation without drivers. (default no)]),
[ac_enable_bare=$enableval],
[ac_enable_bare=no]
)

if test $ac_auto_cflags = yes; then
if test $ac_enable_debug = yes ; then
CFLAGS="-O0 -g -Wall -Wno-sign-compare -Wno-unused"
Expand Down Expand Up @@ -1192,6 +1199,7 @@ echo "Joystick :" $ac_lib_joystick
echo "Mouse :" $ac_lib_mouse
echo "Misc :" $ac_lib_other

if test $ac_enable_bare = no ; then
if test $ac_enable_debug = no ; then
if test $ac_lib_video_flag = no; then
AC_MSG_ERROR([no video library found. If you have the SDL library installed somewhere try using the --with-sdl-prefix option.])
Expand All @@ -1207,6 +1215,7 @@ if test $ac_enable_debug = no ; then
AC_MSG_WARN([no text video mode library found. The advv/advcfg utilities will not work!])
fi
fi
fi

echo ""
echo "== Compiler =="
Expand Down

0 comments on commit 840d2ba

Please sign in to comment.