# HG changeset patch # User Glenn Morris # Date 1226040999 0 # Node ID 71576fddc0a78b521bcea063a54c178b0f12af8a # Parent c3fa57c17d93c5995a5ac6f7c0b9bb970e971bb8 (HAVE_LIB64_DIR): Check for crtn.o. (Bug#1287) diff -r c3fa57c17d93 -r 71576fddc0a7 configure.in --- a/configure.in Fri Nov 07 06:54:07 2008 +0000 +++ b/configure.in Fri Nov 07 06:56:39 2008 +0000 @@ -907,9 +907,11 @@ ### The standard library on x86-64 and s390x GNU/Linux distributions can ### be located in either /usr/lib64 or /usr/lib. +### In some rare cases, /usr/lib64 exists but does not contain the +### relevant files (bug#1287). Hence test for crtn.o. case "${canonical}" in x86_64-*-linux-gnu* | s390x-*-linux-gnu* ) - if test -d /usr/lib64; then + if test -e /usr/lib64/crtn.o; then AC_DEFINE(HAVE_LIB64_DIR, 1, [Define to 1 if the directory /usr/lib64 exists.]) fi