freetype-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Devel] Fix to freetype-config.in


From: Matthew Crosby
Subject: [Devel] Fix to freetype-config.in
Date: Wed, 10 Jan 2001 10:02:15 -0700 (MST)

Hi!  I just installed freetype 2.0.1 under Solaris (2.5.1).  A couple
of minor niggles with the install, figured you've probably fixed them
already but thought I'd report them anyway.
First off, the make install failes because 
freetype-2.0.1/builds/unix/install-sh is not executable in the tar file,
should be easy to fix.
Second, the shipped version freetype-config.in has problems with seperate
--prefix and --exec-prefix.  Because it always sets exec_prefix_set to no,
it ignores the default --exec-prefix as put there by configure.  The
below install-sh fixes that issue, but also allows different ordering
of --exec-prefix and --prefix (which is where the gtk-config and so forth
fall down).
Third, Solaris will probably want a address@hidden@ as well as address@hidden@
under echo_libs.  No patch yet....

---
#!/bin/sh

address@hidden@
address@hidden@

usage()
{
  cat <<EOF
Usage: freetype-config [OPTIONS] [LIBRARIES]
Options:
 [--prefix[=DIR]]
 [--exec-prefix[=DIR]]
 [--version]
 [--libs]
 [--libtool]
 [--cflags]
EOF
  exit $1
}

if test $# -eq 0; then
  usage 1 1>&2
fi

while test $# -gt 0; do
  case "$1" in
  -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  *) optarg= ;;
  esac

  case $1 in
  --prefix=*)
    prefix=$optarg
    local_prefix=yes
    ;;
  --prefix)
    echo_prefix=yes
    ;;
  --exec-prefix=*)
    exec_prefix=$optarg
    exec_prefix_set=yes
    local_prefix=yes
    ;;
  --exec-prefix)
    echo_exec_prefix=yes
    ;;
  --version)
    echo @version_info@
    exit 0
    ;;
  --cflags)
    echo_cflags=yes
    ;;
  --libs)
    echo_libs=yes
    ;;
  --libtool)
    echo_libtool=yes
    ;;
  *)
    usage 1 1>&2
    ;;
  esac
  shift
done

if test "$local_prefix" = "yes" ; then
    if test "$exec_prefix_set" != "yes"; then
      exec_prefix=$prefix
    fi
fi

if test "$echo_prefix" = "yes"; then
 echo $prefix
fi
if test "$echo_exec_prefix" = "yes"; then
 echo $exec_prefix
fi
if test "$echo_cflags" = "yes"; then
 cflags="address@hidden@/freetype2"
 echo $cflags $includes
fi
if test "$echo_libs" = "yes"; then
 libs="-lfreetype"
 echo address@hidden@ $libs
fi
if test "$echo_libtool" = "yes"; then
 convlib="libfreetype.la"
 echo @libdir@/$convlib
fi

# EOF




reply via email to

[Prev in Thread] Current Thread [Next in Thread]