Skip to content

Commit

Permalink
Search gcc search path for dbm first
Browse files Browse the repository at this point in the history
It's possible to persuade GCC to reveal its search path for header
files, which provides a better default for systems compiling with gcc.
It also means that the mingw-w64 libraries are automatically detected.
  • Loading branch information
dra27 committed May 11, 2018
1 parent fd1eb7d commit e0bebe1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion configure
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ dbm_include="not found"
dbm_link="not found"
dbm_defines=""

for dir in /usr/include /usr/include/db1 /usr/include/gdbm /usr/local/include; do
for dir in `$CC -xc -E -v /dev/null 2>&1 | sed -e '1,/#include <...>/d' -e '/End of search list./,$d'` /usr/include /usr/include/db1 /usr/include/gdbm /usr/local/include ; do
if test -f $dir/ndbm.h; then
dbm_include=$dir
dbm_defines="-DDBM_COMPAT"
Expand Down

0 comments on commit e0bebe1

Please sign in to comment.