File: configure.in

package info (click to toggle)
explorer 0.72-2.1
  • links: PTS
  • area: contrib
  • in suites: hamm, slink
  • size: 1,556 kB
  • ctags: 1,203
  • sloc: cpp: 10,226; makefile: 384; sh: 206; ansic: 106; lex: 95; csh: 6
file content (107 lines) | stat: -rw-r--r-- 2,896 bytes parent folder | download
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
dnl Process this file with autoconf to produce a configure script.
dnl $Id: configure.in,v 1.4 1997/06/09 12:56:38 ruben Exp $
dnl #####

AC_INIT(INSTALL)
AC_CONFIG_HEADER(config.h)

AC_ARG_ENABLE(motif-look,
    [  --enable-motif-look     If you do not like the win95 look. ],
    [  ac_cv_enable_motif_look="$enableval" ],
    [  ac_cv_enable_motif_look="no" ])

AC_MSG_CHECKING("for use of motif look")
if test "$ac_cv_enable_motif_look" = no; then
    AC_DEFINE(EXPLORER_WIN95_INTERFACE)
fi
AC_MSG_RESULT("$ac_cv_enable_motif_look")

dnl Checks for programs.
AC_PROG_CXX
AC_PROG_CPP

AC_C_GXXFLAGS

AC_PATH_USR_LOCALSHARE

AC_PROG_INSTALL
AC_PROG_MAKE_SET
AC_PROG_RANLIB
AC_PROG_LN_S
AC_PATH_XTRA

AC_PATH_PROG(MKDIRHIER, mkdirhier, no)
if test "$MKDIRHIER" = no; then
	AC_MSG_WARN("It seems my mkdirhier is missing and you don\'t have one available: installation may not be possible")
fi

AC_PATH_QT
dnl AC_PATH_GL dnl Mindseye test

dnl Checks for libraries.

dnl Replace `main' with a function in -ldl:
AC_CHECK_LIB(dl, main)
dnl Checks for header files.
AC_HEADER_DIRENT
AC_HEADER_STDC

AC_LANG_SAVE
AC_LANG_CPLUSPLUS
AC_CHECK_HEADERS(fcntl.h unistd.h sys/ucred.h sys/mount.h sys/param.h mntent.h dlfcn.h dl.h new.h)
AC_LANG_RESTORE


dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_TYPE_OFF_T
AC_TYPE_SIGNAL
AC_SYS_LONG_FILE_NAMES

dnl Start of RTLD_LAZY check

AC_MSG_CHECKING("RTLD_LAZY define in dlfcn.h ...")
AC_EGREP_CPP(yes,
[ #include <dlfcn.h>
#ifdef RTLD_LAZY
 yes
#endif
], rvs_rtld_lazy_def=yes,rvs_rtld_lazy_def=no)

if test "${rvs_rtld_lazy_def}" = "yes"; then
    AC_DEFINE(HAVE_RTLD_LAZY_DEFINE)
fi
AC_MSG_RESULT("${rvs_rtld_lazy_def}")

dnl End of RTLD_LAZY check

dnl Checks for library functions.
AC_FUNC_GETMNTENT
AC_CHECK_FUNCS(getmntinfo umount unmount strerror)
AC_MSG_CHECKING("OS name...")
rvs_uname_s=`uname -s 2> /dev/null`
AC_DEFINE_UNQUOTED(EXPLORER_MACHNAME,"${rvs_uname_s=Unix}")
AC_MSG_RESULT("${rvs_uname_s}")

dnl Start of dlsym needs leading underscore test

dnl borrowed from kaffe, a free java implementation
dnl Some dynamic library need an underscore on the loading name, some don't
AC_CACHE_CHECK(for underscore in dlsym, ac_cv_underscore,
echo "#define _LIBC_ \"`ls /lib/lib*c.so* /usr/lib/lib*c.so.* 2>/dev/null | head -1`\"" >> confdefs.h
AC_TRY_RUN(main()
{[void* lib = (void*)dlopen(_LIBC_);
  if (dlsym(lib, "_printf") != 0) { exit(0); } else { exit(1); } }],
ac_cv_underscore=yes, ac_cv_underscore=no, ac_cv_underscore=cross))
if test "$ac_cv_underscore" = "yes"; then
    AC_DEFINE(HAVE_DLSYM_UNDERSCORE)
fi

dnl End of dlsym needs leading underscore test
dnl check here for HP-UX symbol resolving
dnl HP-UX resolves only one way: the HP-UX way
dnl what about dld ?

AC_DEFINE_UNQUOTED(EXPLORER_DATADIR,"${datadir}")

AC_OUTPUT(Makefile src/Makefile icons/Makefile types/Makefile, echo timestamp > stamp-h)