New Unix configure system

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@443 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
1998-08-06 16:18:34 +00:00
parent df9067d85c
commit a1a2adef07
55 changed files with 6002 additions and 185 deletions

View File

@@ -0,0 +1,26 @@
#! /bin/sh
COMPILER=$1
LIBRARY_BASE=$2
LIBRARY_MAJOR=$3
LIBRARY_MINOR=$4
shift 3
LIBRARY_OBJS=
while (test $# -ne 1) do
shift;
LIBRARY_OBJS="$LIBRARY_OBJS $1sh";
done
LIBRARY_BASE=`echo $LIBRARY_BASE | sed 's/.so/.sa/'`
LIBRARY_NAME=`basename $LIBRARY_BASE`
LIBRARY_FILE=$LIBRARY_BASE
echo "Creating shared library: $LIBRARY_FILE"
ar cr $LIBRARY_FILE~ $LIBRARY_OBJS
nm $LIBRARY_OBJS | awk '/ [BD] /{print $$3}' | sort | uniq > ${LIBRARY_FILE}.syms
ld -o shr.o $LIBRARY_FILE~ -lX11 -lXt -lc -lm -H512 -T512 -bE:${LIBRARY_FILE}.syms -bM:SRE
rm -f $LIBRARY_FILE~
ar ruv $LIBRARY_FILE shr.o
chmod a+x $LIBRARY_FILE

View File

@@ -0,0 +1,33 @@
#! /bin/sh
#LIBRARY_BASE=`echo $1 | sed 's/.a/.so/'`
COMPILER=$1
LIBRARY_BASE=$2
LIBRARY_MAJOR=$3
LIBRARY_MINOR=$4
shift 3
LIBRARY_OBJS=
while (test $# -ne 1) do
shift;
LIBRARY_OBJS="$LIBRARY_OBJS $1sh";
done
LIBRARY_NAME=`basename $LIBRARY_BASE`
LIBRARY_FILE=$LIBRARY_BASE.$LIBRARY_MAJOR.$LIBRARY_MINOR
echo "Creating shared library: $LIBRARY_FILE"
if test "x$COMPILER" = xgcc ; then
gcc -shared -o $LIBRARY_FILE $LIBRARY_OBJS
else
CC -Bshareable -Bforcearchive -o $LIBRARY_FILE $LIBRARY_OBJS
fi
chmod a+x $LIBRARY_FILE
rm -f $LIBRARY_BASE.$LIBRARY_MAJOR
ln -s $LIBRARY_NAME.$LIBRARY_MAJOR.$LIBRARY_MINOR $LIBRARY_BASE.$LIBRARY_MAJOR
rm -f $LIBRARY_BASE
ln -s $LIBRARY_NAME.$LIBRARY_MAJOR $LIBRARY_BASE

View File

@@ -0,0 +1,29 @@
#! /bin/sh
COMPILER=$1
LIBRARY_BASE=$2
LIBRARY_MAJOR=$3
LIBRARY_MINOR=$4
shift 3
LIBRARY_OBJS=
while (test $# -ne 1) do
shift;
LIBRARY_OBJS="$LIBRARY_OBJS $1sh";
done
LIBRARY_BASE=`echo $LIBRARY_BASE | sed 's/.so/.sl/'`
LIBRARY_NAME=`basename $LIBRARY_BASE`
LIBRARY_FILE=$LIBRARY_BASE
echo "Creating shared library: $LIBRARY_FILE"
if test "x$COMPILER" = xgcc ; then
gcc -shared -h $LIBRARY_NAME -o $LIBRARY_FILE $LIBRARY_OBJS
else
CC -G -h $LIBRARY_NAME -o $LIBRARY_FILE $LIBRARY_OBJS
fi
chmod a+x $LIBRARY_FILE

View File

@@ -0,0 +1,29 @@
#! /bin/sh
COMPILER=$1
LIBRARY_BASE=$2
LIBRARY_MAJOR=$3
LIBRARY_MINOR=$4
shift 3
LIBRARY_OBJS=
while (test $# -ne 1) do
shift;
LIBRARY_OBJS="$LIBRARY_OBJS $1sh";
done
LIBRARY_BASE=`echo $LIBRARY_BASE | sed 's/.so/.sl/'`
LIBRARY_NAME=`basename $LIBRARY_BASE`
LIBRARY_FILE=$LIBRARY_BASE
echo "Creating shared library: $LIBRARY_FILE"
if test "x$COMPILER" = xgcc ; then
gcc -shared -o $LIBRARY_FILE $LIBRARY_OBJS
else
CC -Wl,+s -o $LIBRARY_FILE $LIBRARY_OBJS
fi
chmod a+x $LIBRARY_FILE

View File

@@ -0,0 +1,45 @@
#! /bin/sh
# on Irix, position independent code is the default
#LIBRARY_BASE=`echo $1 | sed 's/.a/.so/'`
COMPILER=$1
LIBRARY_BASE=$2
LIBRARY_MAJOR=$3
LIBRARY_MINOR=$4
shift 3
LIBRARY_OBJS=
while (test $# -ne 1) do
shift;
LIBRARY_OBJS="$LIBRARY_OBJS $1";
done
LIBRARY_NAME=`basename $LIBRARY_BASE`
LIBRARY_FILE=$LIBRARY_BASE.$LIBRARY_MAJOR.$LIBRARY_MINOR
echo "Creating shared library: $LIBRARY_FILE"
if test ! -f /tmp/so_locations; then
if test -f /usr/lib/so_locations; then
cp /usr/lib/so_locations /tmp
else
touch /tmp/so_locations
fi
fi
chmod u+w /tmp/so_locations
if test "x$COMPILER" = xgcc ; then
gcc -shared -Wl,-update_registry,/tmp/so_locations \
-Wl,-soname,$LIBRARY_NAME.$LIBRARY_MAJOR -o $LIBRARY_FILE $LIBRARY_OBJS
else
CC -shared -update_registry /tmp/so_locations \
-soname $LIBRARY_NAME.$LIBRARY_MAJOR -o $LIBRARY_FILE $LIBRARY_OBJS
fi
chmod a+x $LIBRARY_FILE
rm -f $LIBRARY_BASE.$LIBRARY_MAJOR
ln -s $LIBRARY_NAME.$LIBRARY_MAJOR.$LIBRARY_MINOR $LIBRARY_BASE.$LIBRARY_MAJOR
rm -f $LIBRARY_BASE
ln -s $LIBRARY_NAME.$LIBRARY_MAJOR $LIBRARY_BASE

View File

@@ -0,0 +1,34 @@
#! /bin/sh
#LIBRARY_BASE=`echo $1 | sed 's/.a/.so/'`
COMPILER=$1
LIBRARY_BASE=$2
LIBRARY_MAJOR=$3
LIBRARY_MINOR=$4
shift 3
LIBRARY_OBJS=
while (test $# -ne 1) do
shift;
LIBRARY_OBJS="$LIBRARY_OBJS $1sh";
done
LIBRARY_NAME=`basename $LIBRARY_BASE`
LIBRARY_FILE=$LIBRARY_BASE.$LIBRARY_MAJOR.$LIBRARY_MINOR
echo "Creating shared library: $LIBRARY_FILE"
case $COMPILER in gcc*|*gcc)
$COMPILER -shared -Wl,-soname,$LIBRARY_NAME.$LIBRARY_MAJOR -o $LIBRARY_FILE $LIBRARY_OBJS
;;
*)
$COMPILER -shared -soname $LIBRARY_NAME.$LIBRARY_MAJOR -o $LIBRARY_FILE $LIBRARY_OBJS
esac
chmod a+x $LIBRARY_FILE
rm -f $LIBRARY_BASE.$LIBRARY_MAJOR
ln -s $LIBRARY_NAME.$LIBRARY_MAJOR.$LIBRARY_MINOR $LIBRARY_BASE.$LIBRARY_MAJOR
rm -f $LIBRARY_BASE
ln -s $LIBRARY_NAME.$LIBRARY_MAJOR $LIBRARY_BASE

View File

@@ -0,0 +1,33 @@
#! /bin/sh
#LIBRARY_BASE=`echo $1 | sed 's/.a/.so/'`
COMPILER=$1
LIBRARY_BASE=$2
LIBRARY_MAJOR=$3
LIBRARY_MINOR=$4
shift 3
LIBRARY_OBJS=
while (test $# -ne 1) do
shift;
LIBRARY_OBJS="$LIBRARY_OBJS $1sh";
done
LIBRARY_NAME=`basename $LIBRARY_BASE`
LIBRARY_FILE=$LIBRARY_BASE.$LIBRARY_MAJOR.$LIBRARY_MINOR
echo "Creating shared library: $LIBRARY_FILE"
if test "x$COMPILER" = xgcc ; then
gcc -shared -Wl,-soname,$LIBRARY_NAME -o $LIBRARY_FILE $LIBRARY_OBJS
else
$COMPILER -shared -soname $LIBRARY_NAME -o $LIBRARY_FILE $LIBRARY_OBJS
fi
chmod a+x $LIBRARY_FILE
rm -f $LIBRARY_BASE.$LIBRARY_MAJOR
ln -s $LIBRARY_NAME.$LIBRARY_MAJOR.$LIBRARY_MINOR $LIBRARY_BASE.$LIBRARY_MAJOR
rm -f $LIBRARY_BASE
ln -s $LIBRARY_NAME.$LIBRARY_MAJOR $LIBRARY_BASE

View File

@@ -0,0 +1,33 @@
#! /bin/sh
#LIBRARY_BASE=`echo $1 | sed 's/.a/.so/'`
COMPILER=$1
LIBRARY_BASE=$2
LIBRARY_MAJOR=$3
LIBRARY_MINOR=$4
shift 3
LIBRARY_OBJS=
while (test $# -ne 1) do
shift;
LIBRARY_OBJS="$LIBRARY_OBJS $1sh";
done
LIBRARY_NAME=`basename $LIBRARY_BASE`
LIBRARY_FILE=$LIBRARY_BASE.$LIBRARY_MAJOR.$LIBRARY_MINOR
echo "Creating shared library: $LIBRARY_FILE"
if test "x$COMPILER" = xgcc ; then
gcc -shared -h $LIBRARY_NAME -o $LIBRARY_FILE $LIBRARY_OBJS
else
CC -G -h $LIBRARY_NAME -o $LIBRARY_FILE $LIBRARY_OBJS
fi
chmod a+x $LIBRARY_FILE
rm -f $LIBRARY_BASE.$LIBRARY_MAJOR
ln -s $LIBRARY_NAME.$LIBRARY_MAJOR.$LIBRARY_MINOR $LIBRARY_BASE.$LIBRARY_MAJOR
rm -f $LIBRARY_BASE
ln -s $LIBRARY_NAME.$LIBRARY_MAJOR $LIBRARY_BASE

View File

@@ -0,0 +1,33 @@
#! /bin/sh
#LIBRARY_BASE=`echo $1 | sed 's/.a/.so/'`
COMPILER=$1
LIBRARY_BASE=$2
LIBRARY_MAJOR=$3
LIBRARY_MINOR=$4
shift 3
LIBRARY_OBJS=
while (test $# -ne 1) do
shift;
LIBRARY_OBJS="$LIBRARY_OBJS $1sh";
done
LIBRARY_NAME=`basename $LIBRARY_BASE`
LIBRARY_FILE=$LIBRARY_BASE.$LIBRARY_MAJOR.$LIBRARY_MINOR
echo "Creating shared library: $LIBRARY_FILE"
if test "x$COMPILER" = xgcc ; then
gcc -shared -o $LIBRARY_FILE $LIBRARY_OBJS
else
CC -assert pure-text -o $LIBRARY_FILE $LIBRARY_OBJS
fi
chmod a+x $LIBRARY_FILE
rm -f $LIBRARY_BASE.$LIBRARY_MAJOR
ln -s $LIBRARY_NAME.$LIBRARY_MAJOR.$LIBRARY_MINOR $LIBRARY_BASE.$LIBRARY_MAJOR
rm -f $LIBRARY_BASE
ln -s $LIBRARY_NAME.$LIBRARY_MAJOR $LIBRARY_BASE

View File

@@ -0,0 +1,29 @@
#! /bin/sh
COMPILER=$1
LIBRARY_BASE=$2
LIBRARY_MAJOR=$3
LIBRARY_MINOR=$4
shift 3
LIBRARY_OBJS=
while (test $# -ne 1) do
shift;
LIBRARY_OBJS="$LIBRARY_OBJS $1sh";
done
LIBRARY_BASE=`echo $LIBRARY_BASE | sed 's/.so/.sl/'`
LIBRARY_NAME=`basename $LIBRARY_BASE`
LIBRARY_FILE=$LIBRARY_BASE
echo "Creating shared library: $LIBRARY_FILE"
if test "x$COMPILER" = xgcc ; then
gcc -shared -h $LIBRARY_NAME -o $LIBRARY_FILE $LIBRARY_OBJS
else
CC -G -h $LIBRARY_NAME -o $LIBRARY_FILE $LIBRARY_OBJS
fi
chmod a+x $LIBRARY_FILE