View | Details | Raw Unified
Collapse All | Expand All

(-) config.old/cxx_find_template_repository.m4 (-1 / +1 lines)
 Lines 80-90    Link Here 
{
{
  i += 2;
  i += 2;
}
}
int
int
main(int argc, char *argv[])
main(int argc, char **argv[])
{
{
  foo<bar> var1(6);
  foo<bar> var1(6);
  foo< foo<bar> > var2(var1);
  foo< foo<bar> > var2(var1);
  some_other_function();
  some_other_function();
(-) config.old/cxx_have_bool.m4 (-1 / +1 lines)
 Lines 40-50    Link Here 
rm -f conftest.cc conftest.o
rm -f conftest.cc conftest.o
cat > conftest.cc <<EOF
cat > conftest.cc <<EOF
#include <stdio.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/types.h>
int main(int argc, char* argv[]) {
int main(int argc, char** argv[]) {
  bool foo = (bool) 0;
  bool foo = (bool) 0;
  printf("so foo is used and the compiler wont complain: %d", (int) foo);
  printf("so foo is used and the compiler wont complain: %d", (int) foo);
  return 0;
  return 0;
}
}
EOF
EOF
(-) config.old/cxx_have_nothrow_new.m4 (-1 / +1 lines)
 Lines 35-45    Link Here 
AC_MSG_CHECKING([whether $CXX has new(std::nothrow)])
AC_MSG_CHECKING([whether $CXX has new(std::nothrow)])
rm -f conftest.cc conftest.o
rm -f conftest.cc conftest.o
cat > conftest.cc <<EOF
cat > conftest.cc <<EOF
#include <new>
#include <new>
int main(int argc, char* argv[]) {
int main(int argc, char** argv[]) {
  int *baz;
  int *baz;
  unsigned int foo = 3;
  unsigned int foo = 3;
  baz = new(std::nothrow) int;
  baz = new(std::nothrow) int;
  baz = new(std::nothrow) int[[foo - 1]];
  baz = new(std::nothrow) int[[foo - 1]];
}
}
(-) config.old/cxx_have_true_false.m4 (-1 / +1 lines)
 Lines 39-49    Link Here 
rm -f conftest.cc conftest.o
rm -f conftest.cc conftest.o
cat > conftest.cc <<EOF
cat > conftest.cc <<EOF
#include <stdio.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/types.h>
int main(int argc, char* argv[]) {
int main(int argc, char** argv[]) {
  int foo;
  int foo;
  foo = (int) true;
  foo = (int) true;
  foo = (int) false;
  foo = (int) false;
  printf("so foo is used and the compiler wont complain: %d", (int) foo);
  printf("so foo is used and the compiler wont complain: %d", (int) foo);
  return 0;
  return 0;
(-) config.old/lam_check_bsd43_fd_passing.m4 (-1 / +1 lines)
 Lines 74-84    Link Here 
 * Global so that we can kill the child if the parent barfs
 * Global so that we can kill the child if the parent barfs
 */
 */
pid_t child_pid = 0;
pid_t child_pid = 0;
int
int
main(int argc, char *argv[])
main(int argc, char **argv[])
{
{
  int fd[2];
  int fd[2];
  int status = 0;
  int status = 0;
  if (socketpair(AF_UNIX, SOCK_STREAM, 0, fd)) {
  if (socketpair(AF_UNIX, SOCK_STREAM, 0, fd)) {
(-) config.old/lam_check_fd_setsize.m4 (-2 / +2 lines)
 Lines 84-94    Link Here 
#include <sys/types.h>
#include <sys/types.h>
#include <sys/time.h>
#include <sys/time.h>
#include <sys/resource.h>
#include <sys/resource.h>
#include <unistd.h>
#include <unistd.h>
int
int
main(int argc, char* argv[])
main(int argc, char** argv[])
{
{
  int fd = 0;
  int fd = 0;
  struct rlimit rlp;
  struct rlimit rlp;
  rlp.rlim_cur = rlp.rlim_max = (rlim_t) LAM_FD_SETSIZE;
  rlp.rlim_cur = rlp.rlim_max = (rlim_t) LAM_FD_SETSIZE;
  setrlimit(RLIMIT_NOFILE, &rlp);
  setrlimit(RLIMIT_NOFILE, &rlp);
 Lines 133-143    Link Here 
#include <sys/types.h>
#include <sys/types.h>
#ifdef HAVE_SYS_SELECT_H
#ifdef HAVE_SYS_SELECT_H
#include <sys/select.h>
#include <sys/select.h>
#endif
#endif
int
int
main(int argc, char* argv[])
main(int argc, char** argv[])
{
{
  int ret;
  int ret;
  fd_set fds;
  fd_set fds;
  struct timeval t;
  struct timeval t;
  t.tv_sec = 0;
  t.tv_sec = 0;
(-) config.old/lam_check_prefix_memcpy.m4 (-1 / +1 lines)
 Lines 26-36    Link Here 
AC_MSG_CHECKING([for glibc])
AC_MSG_CHECKING([for glibc])
AC_TRY_RUN([
AC_TRY_RUN([
#include <stdio.h>
#include <stdio.h>
int main(int argc, char* argv[]) 
int main(int argc, char** argv[]) 
{
{
  FILE *fp = fopen("configtest.out", "w");
  FILE *fp = fopen("configtest.out", "w");
#ifdef __GLIBC__
#ifdef __GLIBC__
  fprintf(fp, "1\n");
  fprintf(fp, "1\n");
#else
#else
(-) config.old/lam_check_pthread_pids.m4 (-1 / +1 lines)
 Lines 42-52    Link Here 
AC_TRY_RUN([#include <pthread.h>
AC_TRY_RUN([#include <pthread.h>
#include <sys/types.h>
#include <sys/types.h>
#include <unistd.h>
#include <unistd.h>
#include <stdlib.h>
#include <stdlib.h>
void *checkpid(void *arg);
void *checkpid(void *arg);
int main(int argc, char* argv[]) {
int main(int argc, char** argv[]) {
  pthread_t thr;
  pthread_t thr;
  int pid, retval;
  int pid, retval;
  pid = getpid();
  pid = getpid();
  pthread_create(&thr, NULL, checkpid, &pid);
  pthread_create(&thr, NULL, checkpid, &pid);
  pthread_join(thr, (void **) &retval);
  pthread_join(thr, (void **) &retval);
(-) config.old/lam_check_stdc.m4 (-1 / +1 lines)
 Lines 21-31    Link Here 
#include <stdio.h>
#include <stdio.h>
#ifdef __cplusplus
#ifdef __cplusplus
extern "C" {
extern "C" {
void exit(int);
void exit(int);
#endif
#endif
int main(int argc, char* argv[])
int main(int argc, char** argv[])
{
{
    FILE *f=fopen("conftestval", "w");
    FILE *f=fopen("conftestval", "w");
#ifndef __STDC__
#ifndef __STDC__
    int val = -1;
    int val = -1;
#else
#else
(-) config.old/lam_get_shmmax.m4 (-1 / +1 lines)
 Lines 42-52    Link Here 
    shmdt(base);
    shmdt(base);
    shmctl(shmid, IPC_RMID, (struct shmid_ds *) 0);
    shmctl(shmid, IPC_RMID, (struct shmid_ds *) 0);
    return(1);
    return(1);
}
}
int
int
main(int argc, char* argv[])
main(int argc, char** argv[])
{
{
    int	poolsize, maxalloc;
    int	poolsize, maxalloc;
    FILE *f=fopen("conftestval", "w");
    FILE *f=fopen("conftestval", "w");
    if (!f) return 1;
    if (!f) return 1;
    if (LAM_SHMPOOL > 0) {
    if (LAM_SHMPOOL > 0) {
(-) config.old/lam_mutex_pshared.m4 (-1 / +1 lines)
 Lines 15-25    Link Here 
dnl
dnl
define(LAM_MUTEX_PSHARED,[
define(LAM_MUTEX_PSHARED,[
AC_MSG_CHECKING(for process shared pthread mutex)
AC_MSG_CHECKING(for process shared pthread mutex)
AC_TRY_RUN([#include <pthread.h>
AC_TRY_RUN([#include <pthread.h>
int main(int argc, char* argv[]) {
int main(int argc, char** argv[]) {
  pthread_mutex_t m; pthread_mutexattr_t mattr;
  pthread_mutex_t m; pthread_mutexattr_t mattr;
  if (pthread_mutexattr_init(&mattr)) return(1);
  if (pthread_mutexattr_init(&mattr)) return(1);
  if (pthread_mutexattr_setpshared(&mattr, PTHREAD_PROCESS_SHARED)) return(1);
  if (pthread_mutexattr_setpshared(&mattr, PTHREAD_PROCESS_SHARED)) return(1);
  if (pthread_mutex_init(&m, &mattr)) return(-1);
  if (pthread_mutex_init(&m, &mattr)) return(-1);
  return(0);
  return(0);
(-) config.old/lam_wrapper_extra_ldflags.m4 (-1 / +1 lines)
 Lines 73-83    Link Here 
    cat > foo.c <<EOF
    cat > foo.c <<EOF
int foo(void) { return 1; }
int foo(void) { return 1; }
EOF
EOF
    cat > conftest.c <<EOF
    cat > conftest.c <<EOF
extern int foo(void);
extern int foo(void);
int main(int argc, char* argv[]) { return foo(); }
int main(int argc, char** argv[]) { return foo(); }
EOF
EOF
    ../libtool --mode=compile $CC foo.c -o foo.lo -c > /dev/null 2>&1
    ../libtool --mode=compile $CC foo.c -o foo.lo -c > /dev/null 2>&1
    ../libtool --mode=link $CC foo.lo -o libfoo.la -rpath $my_libdir > /dev/null 2>&1
    ../libtool --mode=link $CC foo.lo -o libfoo.la -rpath $my_libdir > /dev/null 2>&1