Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 219675
Collapse All | Expand All

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

Return to bug 219675