Properly find the debug variant and adjust the library search order.
treee01af9ec005ae2f01262ff636b3cd5bc9781bd0a
-rw-r--r-- 20 .gitignore
-rw-r--r-- 37 AUTHORS
-rw-r--r-- 35147 COPYING
-rw-r--r-- 15228 ChangeLog
-rw-r--r-- 746 Makefile.am
-rw-r--r-- 1034 NEWS
-rw-r--r-- 7967 README
-rw-r--r-- 256 THANKS
-rwxr-xr-x 722 bootstrap
drwxr-xr-x - build-aux
-rw-r--r-- 1152 configure.ac
drwxr-xr-x - tests