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

Diff of /trunk/configure.ac

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

Revision 238 Revision 239
116echo "int main(void) { return 0; }" > libctest.c 116echo "int main(void) { return 0; }" > libctest.c
117$CC $CFLAGS -Wl,-verbose -o libctest libctest.c &> libctest.log 117$CC $CFLAGS -Wl,-verbose -o libctest libctest.c &> libctest.log
118cat libctest.log 1>&AS_MESSAGE_LOG_FD 118cat libctest.log 1>&AS_MESSAGE_LOG_FD
119LIBC_PATH=`$AWK '/attempt to open/ { if (($4 ~ /\/libc\.so/) && ($5 == "succeeded")) LIBC = $4; }; END {print LIBC}' libctest.log` 119LIBC_PATH=`$AWK '/attempt to open/ { if (($4 ~ /\/libc\.so/) && ($5 == "succeeded")) LIBC = $4; }; END {print LIBC}' libctest.log`
120rm -f libctest* 120rm -f libctest*
121if test "$LIBC_PATH"x = x || ! test -r "$LIBC_PATH"; then 121if test x"$LIBC_PATH" = x || ! test -r "$LIBC_PATH" ; then
122 AC_MSG_ERROR([Unable to determine LIBC PATH ($LIBC_PATH)]) 122 AC_MSG_ERROR([Unable to determine LIBC PATH ($LIBC_PATH)])
123fi 123fi
124AC_MSG_RESULT([$LIBC_PATH]) 124AC_MSG_RESULT([$LIBC_PATH])
125AC_SUBST([LIBC_PATH]) 125AC_SUBST([LIBC_PATH])
126 126
155 Makefile 155 Makefile
156 scripts/Makefile 156 scripts/Makefile
157 data/Makefile 157 data/Makefile
158 src/Makefile 158 src/Makefile
159]) 159])
160

Legend:
Removed from v.238  
changed lines
  Added in v.239

  ViewVC Help
Powered by ViewVC 1.1.20