AIX always needs the image libraries, since the AIX linker sucks.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2113 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Michael R Sweet 2002-04-26 12:45:16 +00:00
parent 14b93c034b
commit eff01c14e5

View File

@ -1,6 +1,6 @@
#! /bin/sh #! /bin/sh
# #
# "$Id: fltk-config.in,v 1.12.2.10 2002/04/24 12:14:57 easysw Exp $" # "$Id: fltk-config.in,v 1.12.2.11 2002/04/26 12:45:16 easysw Exp $"
# #
# FLTK configuration utility. # FLTK configuration utility.
# #
@ -92,7 +92,8 @@ Option to compile and link an application:
exit $1 exit $1
} }
if test $# -eq 0; then usage 1 if test $# -eq 0; then
usage 1
fi fi
no_plugins=no no_plugins=no
@ -100,90 +101,100 @@ compile=
post= post=
debug= debug=
# AIX has very poor handling of static and shared libraries; always use
# the image libraries under AIX...
if test `uname` = AIX; then
use_images=yes
fi
# Parse command line options # Parse command line options
while test $# -gt 0 while test $# -gt 0
do do
case "$1" in case "$1" in
-*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;; -*=*)
*) optarg= ;; optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'`
esac ;;
*)
optarg=
;;
esac
case $1 in case $1 in
--prefix=*) --prefix=*)
prefix=$optarg prefix=$optarg
if test $exec_prefix_set = no ; then if test $exec_prefix_set = no ; then
exec_prefix=$optarg exec_prefix=$optarg
fi fi
;; ;;
--prefix) --prefix)
echo_prefix=yes echo_prefix=yes
;; ;;
--exec-prefix=*) --exec-prefix=*)
exec_prefix=$optarg exec_prefix=$optarg
exec_prefix_set=yes exec_prefix_set=yes
;; ;;
--exec-prefix) --exec-prefix)
echo_exec_prefix=yes echo_exec_prefix=yes
;; ;;
--version) --version)
echo $VERSION echo $VERSION
;; ;;
--api-version) --api-version)
echo $APIVERSION echo $APIVERSION
;; ;;
--use-gl | --use-glut) --use-gl | --use-glut)
use_gl=yes use_gl=yes
;; ;;
--use-forms) --use-forms)
use_forms=yes use_forms=yes
;; ;;
--use-images) --use-images)
use_images=yes use_images=yes
;; ;;
--cflags) --cflags)
echo_cflags=yes echo_cflags=yes
;; ;;
--cxxflags) --cxxflags)
echo_cxxflags=yes echo_cxxflags=yes
;; ;;
--ldflags) --ldflags)
echo_ldflags=yes echo_ldflags=yes
;; ;;
--ldstaticflags) --ldstaticflags)
echo_ldstaticflags=yes echo_ldstaticflags=yes
;; ;;
--libs) --libs)
echo_libs=yes echo_libs=yes
;; ;;
-g) -g)
debug=-g debug=-g
;; ;;
--compile) --compile)
compile=$2 compile=$2
post=$2 post=$2
shift shift
;; ;;
--post) --post)
post=$2 post=$2
shift shift
;; ;;
*) *)
echo_help=yes echo_help=yes
;; ;;
esac esac
shift shift
done done
if test "$includedir" != /usr/include; then if test "$includedir" != /usr/include; then
includes=-I$includedir includes=-I$includedir
else else
includes= includes=
fi fi
if test "$libdir" != /usr/lib -a "$libdir" != /usr/lib32; then if test "$libdir" != /usr/lib -a "$libdir" != /usr/lib32; then
libs=-L$libdir libs=-L$libdir
else else
libs= libs=
fi fi
# Calculate needed libraries # Calculate needed libraries
@ -210,7 +221,8 @@ LDLIBS="$DSOLINK $LDLIBS -lm"
LDSTATIC="$LDSTATIC -lm" LDSTATIC="$LDSTATIC -lm"
# Answer to user requests # Answer to user requests
if test -n "$echo_help"; then usage 1 if test -n "$echo_help"; then
usage 1
fi fi
if test -n "$compile"; then if test -n "$compile"; then
@ -245,43 +257,45 @@ if test -n "$post" -a "$POSTBUILD" != ":"; then
fi fi
if test "$echo_prefix" = "yes"; then if test "$echo_prefix" = "yes"; then
echo $prefix echo $prefix
fi fi
if test "$echo_exec_prefix" = "yes"; then if test "$echo_exec_prefix" = "yes"; then
echo $exec_prefix echo $exec_prefix
fi fi
if test "$echo_cflags" = "yes"; then if test "$echo_cflags" = "yes"; then
echo $includes $CFLAGS echo $includes $CFLAGS
fi fi
if test "$echo_cxxflags" = "yes"; then if test "$echo_cxxflags" = "yes"; then
echo $includes $CXXFLAGS echo $includes $CXXFLAGS
fi fi
if test "$echo_ldflags" = "yes"; then if test "$echo_ldflags" = "yes"; then
my_libs= my_libs=
libdirs=$libs libdirs=$libs
for i in $LDLIBS ; do for i in $LDLIBS ; do
if test $i != -L$libdir ; then if test $i != -L$libdir ; then
if test -z "$my_libs" ; then if test -z "$my_libs" ; then
my_libs="$i" my_libs="$i"
else else
my_libs="$my_libs $i" my_libs="$my_libs $i"
fi fi
fi fi
done done
echo $libdirs $my_libs echo $libdirs $my_libs
fi fi
if test "$echo_ldstaticflags" = "yes"; then if test "$echo_ldstaticflags" = "yes"; then
echo $LDSTATIC echo $LDSTATIC
fi fi
if test "$echo_libs" = "yes"; then if test "$echo_libs" = "yes"; then
echo $LIBS echo $LIBS
fi fi
# END of fltk-config #
# End of "$Id: fltk-config.in,v 1.12.2.11 2002/04/26 12:45:16 easysw Exp $".
#