File: configure.in

package info (click to toggle)
erlang 1%3A19.2.1%2Bdfsg-2%2Bdeb9u3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 175,856 kB
  • sloc: erlang: 1,414,205; xml: 397,681; ansic: 345,439; cpp: 51,554; makefile: 23,040; java: 11,480; sh: 10,128; lisp: 9,231; python: 4,853; pascal: 3,273; perl: 2,970; asm: 2,900; javascript: 700; tcl: 245; sed: 86
file content (46 lines) | stat: -rw-r--r-- 1,261 bytes parent folder | download | duplicates (11)
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
define([AC_CACHE_LOAD], )dnl
define([AC_CACHE_SAVE], )dnl

dnl Process this file with autoconf to produce a configure script.
AC_INIT(src/gs.erl)

if test -z "$ERL_TOP" || test ! -d $ERL_TOP ; then
  AC_MSG_ERROR(You need to set the environment variable ERL_TOP!)
fi
erl_top=${ERL_TOP}
AC_CONFIG_AUX_DIRS($erl_top/erts/autoconf)

dnl FIXME: Should be AC_CANONICAL_TARGET but we follow pattern in
dnl main configure.in.

if test "X$host" != "Xfree_source" -a "X$host" != "Xwin32"; then
    AC_CANONICAL_HOST
    system_type=${host_cpu}_`echo $host_os | sed 's/^\([[^\.]]*\)\.\(.*\)$/\1/'`
else
    system_type=$host
fi



dnl
dnl We try to find a prebuilt Tcl/Tk distribution that will later
dnl be unpacked into "priv/tcl". The 'gstk_port_handler' module
dnl seach for the "wish" program int this direcory first before
dnl searching the operating system executable search path.
dnl

AC_SUBST(TCL_TAR)

AC_MSG_CHECKING(for prebuilt tcl/tk in tcl/binaries/$system_type.tar.gz)
if test -f "tcl/binaries/$system_type.tar.gz" ; then
    TCL_TAR="binaries/$system_type.tar.gz"
    AC_MSG_RESULT(found)
else
    TCL_TAR=""
    AC_MSG_RESULT(not found, using PATH at runtime)
fi

AC_OUTPUT(
  tcl/$host/Makefile:tcl/Makefile.in
  tcl/win32/Makefile:tcl/Makefile.in
  )