diff options
author | Daniel Jacobowitz <drow@false.org> | 2008-07-27 21:18:50 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2008-07-27 21:18:50 +0000 |
commit | 064ef605afee6a947892bae4e77de5740b9c3292 (patch) | |
tree | a36cd5e792197549fea688751977432b3968be8b /gdb/configure | |
parent | 57380f4e0bbdfa396ed068db6bd867b4fafd9925 (diff) | |
download | gdb-064ef605afee6a947892bae4e77de5740b9c3292.zip gdb-064ef605afee6a947892bae4e77de5740b9c3292.tar.gz gdb-064ef605afee6a947892bae4e77de5740b9c3292.tar.bz2 |
* configure.ac: Check for the GNU/Linux ptrace signature.
* configure: Regenerated.
Diffstat (limited to 'gdb/configure')
-rwxr-xr-x | gdb/configure | 92 |
1 files changed, 91 insertions, 1 deletions
diff --git a/gdb/configure b/gdb/configure index 139f7e1..09f59ba 100755 --- a/gdb/configure +++ b/gdb/configure @@ -20116,7 +20116,8 @@ _ACEOF fi -# Check return type. +# Check return type. Varargs (used on GNU/Linux) conflict with the +# empty argument list, so check for that explicitly. echo "$as_me:$LINENO: checking return type of ptrace" >&5 echo $ECHO_N "checking return type of ptrace... $ECHO_C" >&6 if test "${gdb_cv_func_ptrace_ret+set}" = set; then @@ -20132,6 +20133,48 @@ $gdb_ptrace_headers int main () { +extern long ptrace (enum __ptrace_request, ...); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + gdb_cv_func_ptrace_ret='long' +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$gdb_ptrace_headers +int +main () +{ extern int ptrace (); ; return 0; @@ -20168,6 +20211,8 @@ gdb_cv_func_ptrace_ret='long' fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext +fi echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_ret" >&5 echo "${ECHO_T}$gdb_cv_func_ptrace_ret" >&6 @@ -20182,6 +20227,49 @@ if test "${gdb_cv_func_ptrace_args+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$gdb_ptrace_headers +int +main () +{ +extern long ptrace (enum __ptrace_request, ...); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + gdb_cv_func_ptrace_args='int,int,long,long' +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + for gdb_arg1 in 'int' 'long'; do for gdb_arg2 in 'pid_t' 'int' 'long'; do for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do @@ -20293,6 +20381,8 @@ done : ${gdb_cv_func_ptrace_args='int,int,long,long'} fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext +fi echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_args" >&5 echo "${ECHO_T}$gdb_cv_func_ptrace_args" >&6 ac_save_IFS=$IFS; IFS=',' |