aboutsummaryrefslogtreecommitdiff
path: root/libjava/classpath/configure.ac
diff options
context:
space:
mode:
authorAnthony Green <green@redhat.com>2005-12-01 19:33:42 +0000
committerAnthony Green <green@gcc.gnu.org>2005-12-01 19:33:42 +0000
commitf860c253dfd42d6473f5f44c3b98f7c3244bf05d (patch)
tree0c6b3edcb7e84f7f20cfd6f32a31e06acf7aba31 /libjava/classpath/configure.ac
parentb71b808628f0ea532035beeadb6e97419ed8a80e (diff)
downloadgcc-f860c253dfd42d6473f5f44c3b98f7c3244bf05d.zip
gcc-f860c253dfd42d6473f5f44c3b98f7c3244bf05d.tar.gz
gcc-f860c253dfd42d6473f5f44c3b98f7c3244bf05d.tar.bz2
re PR bootstrap/25207 (bootstrap fails on libjava if alsa headers present but no -lasound.)
2005-12-01 Anthony Green <green@redhat.com> PR bootstrap/25207 * configure.ac: Make sure we have an alsa library in addition to the headers. This extra test is required for systems with multilibs. * configure: Rebuilt. From-SVN: r107828
Diffstat (limited to 'libjava/classpath/configure.ac')
-rw-r--r--libjava/classpath/configure.ac4
1 files changed, 3 insertions, 1 deletions
diff --git a/libjava/classpath/configure.ac b/libjava/classpath/configure.ac
index d13526b..c7eacca 100644
--- a/libjava/classpath/configure.ac
+++ b/libjava/classpath/configure.ac
@@ -112,7 +112,9 @@ AC_ARG_ENABLE([alsa],
no) COMPILE_ALSA=no ;;
*) COMPILE_ALSA=yes ;;
esac],
- [AC_CHECK_HEADERS([alsa/asoundlib.h],COMPILE_ALSA=yes,COMPILE_ALSA=no)])
+ [AC_CHECK_HEADERS([alsa/asoundlib.h],
+ [AC_CHECK_LIB([asound], [snd_seq_open], COMPILE_ALSA=yes,COMPILE_ALSA=no)],
+ COMPILE_ALSA=no)])
AM_CONDITIONAL(CREATE_ALSA_LIBRARIES, test "x${COMPILE_ALSA}" = xyes)
dnl -----------------------------------------------------------