File: configure.in

package info (click to toggle)
flwm 1.02%2Bgit2015.10.03%2B7dbb30-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 444 kB
  • ctags: 500
  • sloc: cpp: 4,958; makefile: 183; sh: 179; tcl: 56
file content (57 lines) | stat: -rw-r--r-- 1,594 bytes parent folder | download | duplicates (3)
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
51
52
53
54
55
56
57
dnl# -*- sh -*-
dnl# the "configure" script is made from this by running GNU "autoconf"

AC_INIT(Frame.C)
AC_PROG_CC
AC_PROG_CXX
AC_PROG_INSTALL

AC_PATH_XTRA
dnl# LIBS="$LIBS$X_LIBS$X_PRE_LIBS"
LIBS="$LIBS$X_LIBS"

AC_ARG_ENABLE(fltk2,[  --enable-fltk2          use fltk2 (default=no)])
if test x$enable_fltk2 = xyes; then
    LIBS="-lfltk2 -lXft -lXinerama -lXi $LIBS"
    CXXFLAGS="$CXXFLAGS -I/usr/local/include/fltk/compat"
else
    LIBS="-lfltk $LIBS"
fi

MAKEDEPEND="\$(CXX) -M"

dnl# add warnings and optimization to compiler switches:
dnl# do this last so messing with switches does not break tests
if test -n "$GXX"; then
    # GNU C compiler
    # -Wno-return-type is necessary for Xlib header files on many systems:
    CFLAGS="$CFLAGS -Wall -Wno-return-type $X_CFLAGS"
    CXXFLAGS="$CXXFLAGS -Wall -Wno-return-type $X_CFLAGS"
else
if test "`(uname) 2>/dev/null`" = IRIX; then
  if expr "`(uname -r)`" \>= 6.2; then
    # turn on new "n32" Irix compiler:
    CXX="CC -n32"
    CC="cc -n32"
    LD="ld -n32"
    # but -M is broken so use old compiler:
    MAKEDEPEND="CC -M"
    # -woff 3322 is necessary due to errors in Xlib headers on IRIX
    CFLAGS="$CFLAGS -fullwarn -O2 $X_CFLAGS"
    CXXFLAGS="$CXXFLAGS -fullwarn -woff 3322 -O2 $X_CFLAGS"
  else
    # old Irix compiler:
    CFLAGS="$CFLAGS -O2 $X_CFLAGS"
    CXXFLAGS="$CXXFLAGS +w +pp -O2 $X_CFLAGS"
  fi
else
    # generic C compiler:
    CFLAGS="$CFLAGS $X_CFLAGS"
    CXXFLAGS="$CXXFLAGS $X_CFLAGS"
fi
fi
AC_SUBST(MAKEDEPEND)
dnl# AC_CONFIG_HEADER(config.h:configh.in)
AC_OUTPUT(makeinclude)

dnl# end of configure.in