The R Project SVN R

Rev

Rev 71977 | Rev 80285 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 71977 Rev 75796
Line 1... Line 1...
1
/*
1
/*
2
 *  R : A Computer Language for Statistical Data Analysis
2
 *  R : A Computer Language for Statistical Data Analysis
3
 *  Copyright (C) 1995-1996 Robert Gentleman and Ross Ihaka
3
 *  Copyright (C) 1995-1996 Robert Gentleman and Ross Ihaka
4
 *  Copyright (C) 1997-2016 The R Core Team
4
 *  Copyright (C) 1997-2018 The R Core Team
5
 *
5
 *
6
 *  This program is free software; you can redistribute it and/or modify
6
 *  This program is free software; you can redistribute it and/or modify
7
 *  it under the terms of the GNU General Public License as published by
7
 *  it under the terms of the GNU General Public License as published by
8
 *  the Free Software Foundation; either version 2 of the License, or
8
 *  the Free Software Foundation; either version 2 of the License, or
9
 *  (at your option) any later version.
9
 *  (at your option) any later version.
Line 35... Line 35...
35
 
35
 
36
#ifdef HAVE_UNISTD_H
36
#ifdef HAVE_UNISTD_H
37
#include <unistd.h>
37
#include <unistd.h>
38
#endif
38
#endif
39
 
39
 
40
/* HP-UX 11.0 has dlfcn.h, but according to libtool as of Dec 2001
-
 
41
   this support is broken. So we force use of shlib even when dlfcn.h
-
 
42
   is available */
-
 
43
# ifdef __hpux
-
 
44
#  ifdef HAVE_DL_H
-
 
45
#   include "hpdlfcn.c"
-
 
46
#   define HAVE_DYNAMIC_LOADING
-
 
47
#  endif
-
 
48
# else
-
 
49
#  ifdef HAVE_DLFCN_H
40
#ifdef HAVE_DLFCN_H
50
#   include <dlfcn.h>
41
# include <dlfcn.h>
51
#   define HAVE_DYNAMIC_LOADING
42
# define HAVE_DYNAMIC_LOADING
52
#  endif
-
 
53
# endif
43
#endif
54
 
44
 
55
#ifdef HAVE_DYNAMIC_LOADING
45
#ifdef HAVE_DYNAMIC_LOADING
56
 
46
 
57
static void *loadLibrary(const char *path, int asLocal, int now,
47
static void *loadLibrary(const char *path, int asLocal, int now,
58
			 const char *search);
48
			 const char *search);