This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
RE: [perl #26136] localtime(3) calls tzset(3), but localtime_r(3) may not.
[metaconfig.git] / U / modified / d_dlopen.U
1 ?RCS: $Id: d_dlopen.U,v 3.0.1.2 1995/07/25 13:52:56 ram Exp $
2 ?RCS:
3 ?RCS: Copyright (c) 1991-1993, Raphael Manfredi
4 ?RCS: 
5 ?RCS: You may redistribute only under the terms of the Artistic Licence,
6 ?RCS: as specified in the README file that comes with the distribution.
7 ?RCS: You may reuse parts of this distribution only within the terms of
8 ?RCS: that same Artistic Licence; a copy of which may be found at the root
9 ?RCS: of the source tree for dist 3.0.
10 ?RCS:
11 ?RCS: Original Author: Andy Dougherty <doughera@lafcol.lafayette.edu>
12 ?RCS:
13 ?RCS: $Log: d_dlopen.U,v $
14 ?RCS: Revision 3.0.1.2  1995/07/25  13:52:56  ram
15 ?RCS: patch56: force compile-link test since symbol might lie in crt0.o (ADO)
16 ?RCS:
17 ?RCS: Revision 3.0.1.1  1994/08/29  16:07:34  ram
18 ?RCS: patch32: created by ADO
19 ?RCS:
20 ?MAKE:d_dlopen: Inlibc runnm d_cplusplus ccflags gccversion
21 ?MAKE:  -pick add $@ %<
22 ?S:d_dlopen:
23 ?S:     This variable conditionally defines the HAS_DLOPEN symbol, which
24 ?S:     indicates to the C program that the dlopen() routine is available.
25 ?S:.
26 ?C:HAS_DLOPEN :
27 ?C:     This symbol, if defined, indicates that the dlopen routine is
28 ?C:     available.
29 ?C:.
30 ?H:#$d_dlopen HAS_DLOPEN                /**/
31 ?H:.
32 ?T: xxx_runnm
33 ?T: xxx_ccflags
34 ?LINT:set d_dlopen
35 ?X: We don't permanently change runnm and ccflags, but we do temporarily.
36 ?LINT: change runnm
37 ?LINT: change ccflags
38 : see if dlopen exists
39 ?X: On NetBSD and FreeBSD, dlopen is available, but it is in 
40 ?X: /usr/lib/crt0.o, not in any of the libraries.  Therefore, do not
41 ?X: use the nm extraction, but use a real compile and link test instead.
42 xxx_runnm="$runnm"
43 xxx_ccflags="$ccflags"
44 runnm=false
45 : with g++ one needs -shared to get is-in-libc to work for dlopen
46 case "$gccversion" in
47 '')     ;;
48 *)      case "$d_cplusplus" in
49         "$define") ccflags="$ccflags -shared" ;;
50         esac
51         ;;
52 esac
53 set dlopen d_dlopen
54 eval $inlibc
55 runnm="$xxx_runnm"
56 ccflags="$xxx_ccflags"
57