
	
			;;
			gnu_ld=true ;;
		/*gnu*/ld|/*GNU*/ld)
		;;
		awk '{print $NF}'  | sed 's/specs$/include/'`
		case `which ld` in
		cat <<END >&2
		esac
		gnu_ld=true ;;
		no\ ld\ in*|[Cc]ommand\ not\ found*)
	    ;;
	    cat <<END >&2
	#
	# Determine if the fixed-includes look like they'll work.
	# Doesn't work anymore for gcc-2.7.2.
	# Get gcc to share its secrets.
	# Not using gcc.
	# See if as(1) is GNU as(1).  GNU as(1) won't work for this job.
	# See if ld(1) is GNU ld(1).  GNU ld(1) won't work for this job.
	# Using gcc.
	# as of ld version 2.6, so we need to be more strict. TWP 9/5/96
	# ld --version doesn't properly report itself as a GNU tool,
	#echo Not using gcc
	#echo Using gcc
	*)
	*) ;;
	*/usr/ccs/bin/as*) ;;
	*/usr/ccs/bin/ld*) ;;
	*GNU*)
	*GNU*|ld\ version\ 2*)
	- don't use GNU as or GNU ld
	- run fixincludes
	- run fixincludes correctly
	;;
	;; #not using gcc
	;; #using gcc
	case $verbose in
	case `as --version < /dev/null 2>&1` in
	case `ld --version < /dev/null 2>&1` in
	cat <<END >&4
	echo 'main() { return 0; }' > try.c
	else
	esac
	fi
	ftp.fwi.uva.nl:/pub/solaris
	gnu_ld=false
	if $gnu_ld ; then
	if $gnu_ld ; then :
	rm -f try try.c
	rtfm.mit.edu:/pub/usenet-by-group/comp.sys.sun.admin
	tmp=`echo "$verbose" | grep '^Reading' |
	verbose=`${cc:-cc} -v -o try try.c 2>&1`
 
    	archname="${archname}-${osname}"
        archname=`/usr/bin/arch`
        archname=`/usr/ucb/arch`
    -I/usr/ucbinclude] -traditional -Dvolatile=__volatile__
    -lucb] -lsocket -lnsl  -lm
    3) Gcc.
    ;;
    ??????s*)
    Another possible cause is using ``gcc -I/usr/include.''
    Any additional cc flags? [ -traditional -Dvolatile=__volatile__
    Any additional libraries? [-lsocket -lnsl -ldbm -lmalloc -lm
    Are your system (especially dbm) libraries compiled with gcc? [y] y
    Don't include -ldbm, -lmalloc and -lucb.
    GNU as or GNU ld.  Make sure you run just-fixinc if you use
    GNU binutils or GNU libc, they are not as capable as their
    Gcc is available from the GNU archives in source and binary
    If there's a tmp directory in gcc's include directory, fixincludes
    Perl 5 compiled out of the box.
    Remove /usr/ucbinclude.
    Run Configure, and use the solaris_2_0 hints, *don't* use
    Some questions need a special answer.
    When you install gcc, don't make the mistake of installing
    You're using gcc without properly installing the gcc fixed
    [...]
    a binary distribution.  Better is to get a binary version and
    already have.  First you must make sure Configure and make
    binaries.  You need gcc 2.3.3 or later.  You should not use
    case "`/usr/bin/ls -l $tmp`" in
    cc='gcc', optimize='-O', ld='gcc'
    cccdlflags='-fpic', ccdlflags=' ', lddlflags='-G'
    ccflags =''
    compiler: /opt/SUNWspro/bin/cc)
    conventions, same as Sun's C.
    counterparts you get with Solaris 2.x.
    cppflags=''
    didn't complete.  You should have run "just-fixinc" instead.
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef
    don't find /usr/ucb/cc.  (It must use gcc or the native C
    elif test -f /usr/ucb/arch; then
    esac
    fi
    form.  Look in a directory called sparc-sun-solaris2 for
    happens when people install gcc from a binary distribution.
    hint=recommended
    if test -f /usr/bin/arch; then
    include files.  Or you ran fixincludes after installing gcc
    intsize=4, alignbytes=8, usemymalloc=y, randbits=15
    ldflags =''
    libc=/usr/lib/libc.so
    libpth=/lib /usr/lib /usr/ccs/lib /usr/local/lib
    libs=-lsocket -lnsl -ldl -lm -lc -lcrypt
    osname=solaris, osver=2.4, archname=sun4-solaris
    out of the way and moving them back again later.  This often
    so=so
    stdchar='unsigned char', d_stdstdio=define, usevfork=false
    the solaris_2_1 hints and don't use the config.sh you may
    tmp=`/usr/bin/which make`
    uname='sunos poplar 5.4 generic_101945-27 sun4d sparc '
    use that to bootstrap gcc from source.
    voidflags=15, castflags=0, d_casti32=define, d_castneg=define
    w/o moving the gcc supplied varargs.h and stdarg.h files
    yes: gcc 2.3.3 or later uses the standard calling
  Compiler:
  Dynamic Linking:
  Libraries:
  Platform:
#
# 
#     sh Configure -Dcc='gcc -B/usr/ccs/bin/'
#   - check as(1) and ld(1), they should not be GNU
#   - check the fixed-includes
# -lld doesn't do anything useful.
# -lmalloc can cause a problem with GNU CC & Solaris.  Specifically,
# Andy Dougherty  <doughera@lafcol.lafayette.edu>
# Avoid all libraries in /usr/ucblib.
# Based on input from lots of folks, especially
# Check that /dev/fd is mounted.  If it is not mounted, let the
# Date: Thu, 7 Sep 1995 16:31:40 -0500
# Dean Roehrich <roehrich@ironwood-fddi.cray.com>
# From roehrich@ironwood-fddi.cray.com Wed Sep 27 12:51:46 1995
# From: Dean Roehrich <roehrich@ironwood-fddi.cray.com>
# GNU CC on the Sparc assumes that doubles are 8 byte aligned.
# General sanity testing.  See below for excerpts from the Solaris FAQ.
# Here's another draft of the perl5/solaris/gcc sanity-checker. 
# If it is, make sure the setgid bit is not set.
# If perl fails tests that involve dynamic loading of extensions, and
# If the C compiler is gcc:
# If the C compiler is not gcc:
# Last modified:  Thu Feb  8 11:38:12 EST 1996
# Look for architecture name.  We want to suggest a useful default.
# Remove bad libraries.  -lucb contains incompatible routines.
# See if libucb can be found in /usr/lib.  If it is, warn the user
# See if make(1) is GNU make(1).
# See man vfork.
# Subject: Re: On perl5/solaris/gcc
# Thanks to  Hallvard B. Furuseth <h.b.furuseth@usit.uio.no>
# This is just a trick to include some useful notes.
# To: perl5-porters@africa.nicoh.com
# Watch out in case they have not set $cc.
# as --version or ld --version might dump core.
# hints/solaris_2.sh
# libmalloc.a may allocate memory that is only 4 byte aligned, but
# that this may cause problems while building Perl extensions.
# user know that suid scripts may not work.
# way to do that is to invoke Configure with
# you are using gcc, be sure that you are NOT using GNU as and ld.  One
######################################################
'')
(Note that the trailing "/" is required.)
*)
*/usr/ucb*:/usr/bin:*|*/usr/ucb*:/usr/bin) cat <<END >&4
*gcc*)
- /dev/fd must be mounted if you want set-uid scripts to work.
- Do not build on SunOS 4 and expect it to work properly on SunOS 5.
- Do not change Configure's default answers, except for the path names.
- Do not use -lmalloc.
- Do not use /usr/ucb/cc.
- Do not use GNU as or GNU ld, or any of GNU binutils or GNU libc.
- If you use GNU make, remove its setgid bit.
- Make sure libucb is not in /usr/lib (it should be in /usr/ucblib).
- Remove all instances of *ucb* from your path.
- Use /usr/ccs/bin/make.
-----
-----------
/usr/bin/df /dev/fd 2>&1 > /dev/null
/usr/bin/ls /usr/lib/libucb* >/dev/null 2>&1
/usr/ucblib.  You may have trouble while building Perl extensions.
0)
0) ;;
5.7) Why do I get __builtin_va_alist or __builtin_va_arg_incr undefined?
6.1) Where is the C compiler or where can I get one?
6.9) I can't get perl 4.036 to compile or run.
9/7/95
;;
Date: 25 Jul 1995 12:20:18 GMT
Dean
END
End_of_Solaris_Notes
From: Casper.Dik@Holland.Sun.COM (Casper H.S. Dik - Network Security Engineer)
GCC_EXEC_PREFIX or by including -B/usr/ccs/bin/ in your cc command.
GNU utilities or you must ask your system administrator to disable the
Generic notes about building Perl5 on Solaris:
Here are some notes kindly contributed by Dean Roehrich.
Here are the gcc-related questions and answers from the Solaris 2 FAQ.  Note
NOTE:  Some people have reported problems with /usr/ucb/cc.  
NOTE: You are using GNU as(1).  GNU as(1) will not build Perl.
NOTE: You are using GNU ld(1).  GNU ld(1) will not build Perl.
NOTE: Your PATH points to GNU make, and your GNU make has the set-group-id
NOTE: Your system does not have /dev/fd mounted.  If you want to
NOTE: libucb has been found in /usr/lib.  libucb should reside in
Perl5 comes with a script in the top-level directory called "myconfig" which
Perl5.001, patch.1m.
Question 5.7 covers the __builtin_va_alist problem people are always seeing.
Question 6.1.3 covers the GNU as and GNU ld issues which are always biting
Question 6.9 is for those who are still trying to compile Perl4.
Remove /usr/ucb from your PATH if you have difficulties.
Solaris 2.4 and gcc 2.6.3 follows.  I have also built with gcc 2.7.0 and the
Subject: Solaris 2 Frequently Asked Questions (FAQ) 1.48
Summary of my perl5 (patchlevel 1) configuration:
The latest Solaris 2 FAQ can be found in the following locations:
You must arrange to use /usr/ccs/bin, perhaps by adding it to the
You must arrange to use /usr/ccs/bin/as, perhaps by setting
You must arrange to use /usr/ccs/bin/ld, perhaps by setting
be able to use set-uid scripts you must ask your system administrator
beginning of your PATH.
bit set.  You must either rearrange your PATH to put /usr/ccs/bin before the
case "$archname" in
case "`${cc:-cc} -v 2>&1`" in
case $? in
case $PATH in
cat > /dev/null <<'End_of_Solaris_Notes'
d_suidsafe=define
esac
fi
glibpth="$*"
if grep GNU make.vers > /dev/null 2>&1; then
libswanted="$*"
make -v > make.vers 2>&1
option (take all defaults, don't bother prompting me).  All tests pass for
people.
results are identical.  This configuration was generated with Configure's -d
rm -f core
rm -f make.vers
roehrich@cray.com
set `echo " $libswanted " | sed -e 's@ ld @ @' -e 's@ malloc @ @' -e 's@ ucb @ @'`
set `echo $glibpth | sed -e 's@/usr/ucblib@@'`
set-group-id bit on GNU make.
the themes:
to mount /dev/fd.
usevfork=false
will print a summary of the configuration in your config.sh.  My summary for
