summaryrefslogtreecommitdiff
path: root/libiberty
diff options
context:
space:
mode:
authorDJ Delorie <dj@delorie.com>2010-10-07 16:20:35 +0000
committerDJ Delorie <dj@delorie.com>2010-10-07 16:20:35 +0000
commit0e7a75f6f7e3894d9574bb5e3b0fe9ca5e2ea0e6 (patch)
tree428b0de52340873bd91b3753901d4e342cb8843a /libiberty
parent43f222f67cc4a0aeeb966c7a9f190eea20459f54 (diff)
downloadgdb-0e7a75f6f7e3894d9574bb5e3b0fe9ca5e2ea0e6.tar.gz
merge from gcc
Diffstat (limited to 'libiberty')
-rw-r--r--libiberty/ChangeLog5
-rwxr-xr-xlibiberty/configure19
-rw-r--r--libiberty/configure.ac2
3 files changed, 13 insertions, 13 deletions
diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog
index 931697500e7..8c9a79f87c3 100644
--- a/libiberty/ChangeLog
+++ b/libiberty/ChangeLog
@@ -1,3 +1,8 @@
+2010-10-07 Andi Kleen <ak@linux.intel.com>
+
+ * configure: Regenerate.
+ * configure.ac: Turn PR_SET_NAME check into link check.
+
2010-10-06 Andi Kleen <ak@linux.intel.com>
* Makefile.in (CFILES): Add setproctitle.
diff --git a/libiberty/configure b/libiberty/configure
index 7ff7792440e..7579000f96e 100755
--- a/libiberty/configure
+++ b/libiberty/configure
@@ -5707,13 +5707,10 @@ fi
# check for prctl PR_SET_NAME
-if test "$cross_compiling" = yes; then :
- { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
-$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
-as_fn_error "cannot run test program while cross compiling
-See \`config.log' for more details." "$LINENO" 5; }
-else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+if test x$gcc_no_link = xyes; then
+ as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
+fi
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include <sys/prctl.h>
@@ -5723,15 +5720,13 @@ int main()
}
_ACEOF
-if ac_fn_c_try_run "$LINENO"; then :
+if ac_fn_c_try_link "$LINENO"; then :
$as_echo "#define HAVE_PRCTL_SET_NAME 1" >>confdefs.h
fi
-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
- conftest.$ac_objext conftest.beam conftest.$ac_ext
-fi
-
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
case "${host}" in
*-*-cygwin* | *-*-mingw*)
diff --git a/libiberty/configure.ac b/libiberty/configure.ac
index 8b7be1835f4..73ea6c96fcc 100644
--- a/libiberty/configure.ac
+++ b/libiberty/configure.ac
@@ -536,7 +536,7 @@ AC_SUBST(CHECK)
AC_SUBST(target_header_dir)
# check for prctl PR_SET_NAME
-AC_RUN_IFELSE([AC_LANG_SOURCE([[
+AC_LINK_IFELSE([AC_LANG_SOURCE([[
#include <sys/prctl.h>
int main()
{