/[path-sandbox]/trunk/configure.in
Gentoo

Diff of /trunk/configure.in

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 53 Revision 55
66dnl but we have to know which symbols the libc supports first 66dnl but we have to know which symbols the libc supports first
67AC_MSG_CHECKING(libc path) 67AC_MSG_CHECKING(libc path)
68echo "int main(void) { return 0; }" > libctest.c 68echo "int main(void) { return 0; }" > libctest.c
69$CC -Wall -o libctest libctest.c 69$CC -Wall -o libctest libctest.c
70LIBC_PATH=`$CC $CFLAGS -Wl,-verbose -o libctest libctest.c 2>&1 | \ 70LIBC_PATH=`$CC $CFLAGS -Wl,-verbose -o libctest libctest.c 2>&1 | \
71 gawk '/attempt to open/ { if (($4 ~ /libc\.so/) && ($5 == "succeeded")) LIBC = $4; }; END {print LIBC}'` 71 $AWK '/attempt to open/ { if (($4 ~ /libc\.so/) && ($5 == "succeeded")) LIBC = $4; }; END {print LIBC}'`
72if test "$LIBC_PATH"x = x ; then 72if test "$LIBC_PATH"x = x ; then
73 AC_MSG_ERROR(Unable to determine LIBC PATH) 73 AC_MSG_ERROR(Unable to determine LIBC PATH)
74fi 74fi
75AC_MSG_RESULT($LIBC_PATH) 75AC_MSG_RESULT($LIBC_PATH)
76AC_SUBST(LIBC_PATH) 76AC_SUBST(LIBC_PATH)

Legend:
Removed from v.53  
changed lines
  Added in v.55

  ViewVC Help
Powered by ViewVC 1.1.20