version 1.82, 2011/09/16 17:57:16
|
version 1.85, 2011/09/21 09:09:21
|
Line 1889 $as_echo "$ac_res" >&6; }
|
Line 1889 $as_echo "$ac_res" >&6; }
|
|
|
} # ac_fn_c_check_func |
} # ac_fn_c_check_func |
|
|
|
# ac_fn_c_try_run LINENO |
|
# ---------------------- |
|
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
|
# that executables *can* be run. |
|
ac_fn_c_try_run () |
|
{ |
|
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|
if { { ac_try="$ac_link" |
|
case "(($ac_try" in |
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
*) ac_try_echo=$ac_try;; |
|
esac |
|
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|
$as_echo "$ac_try_echo"; } >&5 |
|
(eval "$ac_link") 2>&5 |
|
ac_status=$? |
|
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
|
{ { case "(($ac_try" in |
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
*) ac_try_echo=$ac_try;; |
|
esac |
|
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|
$as_echo "$ac_try_echo"; } >&5 |
|
(eval "$ac_try") 2>&5 |
|
ac_status=$? |
|
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
test $ac_status = 0; }; }; then : |
|
ac_retval=0 |
|
else |
|
$as_echo "$as_me: program exited with status $ac_status" >&5 |
|
$as_echo "$as_me: failed program was:" >&5 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
ac_retval=$ac_status |
|
fi |
|
rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
|
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
|
as_fn_set_status $ac_retval |
|
|
|
} # ac_fn_c_try_run |
|
|
# ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
# ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
# ------------------------------------------- |
# ------------------------------------------- |
# Tests whether TYPE exists after having included INCLUDES, setting cache |
# Tests whether TYPE exists after having included INCLUDES, setting cache |
Line 1943 $as_echo "$ac_res" >&6; }
|
Line 1985 $as_echo "$ac_res" >&6; }
|
|
|
} # ac_fn_c_check_type |
} # ac_fn_c_check_type |
|
|
# ac_fn_c_try_run LINENO |
|
# ---------------------- |
|
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
|
# that executables *can* be run. |
|
ac_fn_c_try_run () |
|
{ |
|
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|
if { { ac_try="$ac_link" |
|
case "(($ac_try" in |
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
*) ac_try_echo=$ac_try;; |
|
esac |
|
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|
$as_echo "$ac_try_echo"; } >&5 |
|
(eval "$ac_link") 2>&5 |
|
ac_status=$? |
|
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
|
{ { case "(($ac_try" in |
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
*) ac_try_echo=$ac_try;; |
|
esac |
|
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|
$as_echo "$ac_try_echo"; } >&5 |
|
(eval "$ac_try") 2>&5 |
|
ac_status=$? |
|
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
test $ac_status = 0; }; }; then : |
|
ac_retval=0 |
|
else |
|
$as_echo "$as_me: program exited with status $ac_status" >&5 |
|
$as_echo "$as_me: failed program was:" >&5 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
ac_retval=$ac_status |
|
fi |
|
rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
|
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
|
as_fn_set_status $ac_retval |
|
|
|
} # ac_fn_c_try_run |
|
|
|
# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES |
# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES |
# -------------------------------------------- |
# -------------------------------------------- |
# Tries to find the compile-time value of EXPR in a program that includes |
# Tries to find the compile-time value of EXPR in a program that includes |
Line 6004 else
|
Line 6004 else
|
IPCS_SYSV=yes |
IPCS_SYSV=yes |
fi |
fi |
else |
else |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for POSIX semaphores" >&5 |
REG=$LDFLAGS |
$as_echo_n "checking for POSIX semaphores... " >&6; } |
LDFLAGS=-lrt |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for POSIX semaphores and shared objects" >&5 |
|
$as_echo_n "checking for POSIX semaphores and shared objects... " >&6; } |
|
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 |
/* end confdefs.h. */ |
/* end confdefs.h. */ |
#include <sys/mman.h> |
#include <sys/mman.h> |
#include <sys/stat.h> |
#include <sys/stat.h> |
Line 6015 cat confdefs.h - <<_ACEOF >conftest.$ac_
|
Line 6023 cat confdefs.h - <<_ACEOF >conftest.$ac_
|
int |
int |
main () |
main () |
{ |
{ |
int fd; char *sem = "/sem.test"; |
int fd; char *sem = "/test"; |
fd = shm_open(sem , O_CREAT | O_RDWR, S_IRUSR | S_IWUSR); |
fd = shm_open(sem , O_CREAT | O_RDWR, S_IRUSR | S_IWUSR); |
close(fd); |
close(fd); |
shm_unlink(sem); |
shm_unlink(sem); |
|
fd = sem_open(sem, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR, 0); |
|
close(fd); |
|
sem_unlink(sem); |
return(0); |
return(0); |
|
|
; |
; |
return 0; |
return 0; |
} |
} |
_ACEOF |
_ACEOF |
if ac_fn_c_try_compile "$LINENO"; then : |
if ac_fn_c_try_run "$LINENO"; then : |
IPCS_SYSV=-UIPCS_SYSV; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
IPCS_SYSV=-UIPCS_SYSV; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
$as_echo "yes" >&6; } |
$as_echo "yes" >&6; } |
else |
else |
Line 6033 else
|
Line 6044 else
|
$as_echo "no" >&6; } |
$as_echo "no" >&6; } |
|
|
fi |
fi |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
|
conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
fi |
|
|
|
LDFLAGS=$REG |
|
|
fi |
fi |
|
|
Line 6041 fi
|
Line 6056 fi
|
if test "$IPCS_SYSV" = "-UIPCS_SYSV"; then |
if test "$IPCS_SYSV" = "-UIPCS_SYSV"; then |
REG=$LDFLAGS |
REG=$LDFLAGS |
LDFLAGS=-pthread |
LDFLAGS=-pthread |
AC_MSG_CHECKING([for POSIX anonymous semaphores]) |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for POSIX anonymous semaphores" >&5 |
AC_RUN_IFELSE( |
$as_echo_n "checking for POSIX anonymous semaphores... " >&6; } |
[AC_LANG_PROGRAM([#include <semaphore.h> |
if test "$cross_compiling" = yes; then : |
], |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
[ sem_t sem; |
$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 |
|
/* end confdefs.h. */ |
|
#include <semaphore.h> |
|
|
|
int |
|
main () |
|
{ |
|
sem_t sem; |
if (sem_init(&sem, 1, 0) != 0) return(1); |
if (sem_init(&sem, 1, 0) != 0) return(1); |
sem_destroy(&sem); |
sem_destroy(&sem); |
return(0); |
return(0); |
])], |
|
[SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES; AC_MSG_RESULT(yes)], |
; |
[SEMAPHORES_NOMMES=-DSEMAPHORES_NOMMES; AC_MSG_RESULT(no)], |
return 0; |
) |
} |
|
_ACEOF |
|
if ac_fn_c_try_run "$LINENO"; then : |
|
SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
|
$as_echo "yes" >&6; } |
|
else |
|
SEMAPHORES_NOMMES=-DSEMAPHORES_NOMMES; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
$as_echo "no" >&6; } |
|
|
|
fi |
|
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
|
conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
fi |
|
|
LDFLAGS=$REG |
LDFLAGS=$REG |
REG="" |
REG="" |
else |
else |
Line 6323 if test ! -d "$srcdir"/rplcas/$GIAC; the
|
Line 6362 if test ! -d "$srcdir"/rplcas/$GIAC; the
|
(cd "$srcdir/rplcas" && tar -xf -) |
(cd "$srcdir/rplcas" && tar -xf -) |
fi |
fi |
|
|
|
touch tools/openmotif.lib |
|
|
|
|
|
|
# Check whether --enable-final-run-path was given. |
# Check whether --enable-final-run-path was given. |