aboutsummaryrefslogtreecommitdiff
path: root/configure
blob: 6ea02183d9fc9fc9f7c88346aeca1c63ad937f80 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#! /bin/sh

quick_fwd=
for arg
do
  case "$arg" in
    -help | --help | --hel | --he)
      quick_fwd=yes
      break ;;
    -version | --version | --versio | --versi | --vers)
      quick_fwd=yes
      break ;;
    *)
      break ;;
  esac
done
if test "x$quick_fwd" = xyes
then
  support/configure $*
else
  echo "retrieving the system name, type and OS release..."
  rev=`support/config.guess`
  if test "${rev}" 		# test for no output
  then
    echo "  your system seems to be ${rev}."
    if test ! -d "${rev}"
    then
      echo "creating directory ${rev}..."
      mkdir "${rev}"
    fi
    cd "${rev}"
    echo "now working in directory ${rev}..."
    cp -p ../support/configure .
   if test ! -f config.h
   then
     echo "copying config.h from config.h.dist..."
     cp -p ../support/config.h.dist config.h
   fi
    ./configure $*
    if test $? = 0
    then
      echo "Have you read doc/README? (I hope so)"
      echo "Next cd ${rev}, edit \"config.h\" and \"Makefile\","
      echo "run \"make all\" to build and \"make install\" to install."
    fi
  else
    echo Failed to determine your host type, giving up.
    echo Perhaps you should specify it manually.
  fi
fi