PageRenderTime 30ms CodeModel.GetById 22ms RepoModel.GetById 0ms app.codeStats 1ms

/exult/tags/Release0_25/configure

#
Shell | 2098 lines | 1746 code | 146 blank | 206 comment | 240 complexity | e3308e3c4001443beb65fa114c8c2c91 MD5 | raw file
Possible License(s): GPL-2.0
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated automatically using autoconf version 2.13
  4. # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
  5. #
  6. # This configure script is free software; the Free Software Foundation
  7. # gives unlimited permission to copy, distribute and modify it.
  8. # Defaults:
  9. ac_help=
  10. ac_default_prefix=/usr/local
  11. # Any additions from configure.in:
  12. ac_help="$ac_help
  13. --enable-win32 force exult build for windows [default no]"
  14. ac_help="$ac_help
  15. --disable-kmid force exult not to use kmid [default no]"
  16. ac_help="$ac_help
  17. --enable-shared[=PKGS] build shared libraries [default=yes]"
  18. ac_help="$ac_help
  19. --enable-static[=PKGS] build static libraries [default=no]"
  20. ac_help="$ac_help
  21. --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
  22. ac_help="$ac_help
  23. --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
  24. ac_help="$ac_help
  25. --disable-libtool-lock avoid locking (might break parallel builds)"
  26. ac_help="$ac_help
  27. --with-pic try to use only PIC/non-PIC objects [default=use both]"
  28. ac_help="$ac_help
  29. --enable-debug enable debug messages [default no]"
  30. # Initialize some variables set by options.
  31. # The variables have the same names as the options, with
  32. # dashes changed to underlines.
  33. build=NONE
  34. cache_file=./config.cache
  35. exec_prefix=NONE
  36. host=NONE
  37. no_create=
  38. nonopt=NONE
  39. no_recursion=
  40. prefix=NONE
  41. program_prefix=NONE
  42. program_suffix=NONE
  43. program_transform_name=s,x,x,
  44. silent=
  45. site=
  46. srcdir=
  47. target=NONE
  48. verbose=
  49. x_includes=NONE
  50. x_libraries=NONE
  51. bindir='${exec_prefix}/bin'
  52. sbindir='${exec_prefix}/sbin'
  53. libexecdir='${exec_prefix}/libexec'
  54. datadir='${prefix}/share'
  55. sysconfdir='${prefix}/etc'
  56. sharedstatedir='${prefix}/com'
  57. localstatedir='${prefix}/var'
  58. libdir='${exec_prefix}/lib'
  59. includedir='${prefix}/include'
  60. oldincludedir='/usr/include'
  61. infodir='${prefix}/info'
  62. mandir='${prefix}/man'
  63. # Initialize some other variables.
  64. subdirs=
  65. MFLAGS= MAKEFLAGS=
  66. SHELL=${CONFIG_SHELL-/bin/sh}
  67. # Maximum number of lines to put in a shell here document.
  68. ac_max_here_lines=12
  69. ac_prev=
  70. for ac_option
  71. do
  72. # If the previous option needs an argument, assign it.
  73. if test -n "$ac_prev"; then
  74. eval "$ac_prev=\$ac_option"
  75. ac_prev=
  76. continue
  77. fi
  78. case "$ac_option" in
  79. -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  80. *) ac_optarg= ;;
  81. esac
  82. # Accept the important Cygnus configure options, so we can diagnose typos.
  83. case "$ac_option" in
  84. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  85. ac_prev=bindir ;;
  86. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  87. bindir="$ac_optarg" ;;
  88. -build | --build | --buil | --bui | --bu)
  89. ac_prev=build ;;
  90. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  91. build="$ac_optarg" ;;
  92. -cache-file | --cache-file | --cache-fil | --cache-fi \
  93. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  94. ac_prev=cache_file ;;
  95. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  96. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  97. cache_file="$ac_optarg" ;;
  98. -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  99. ac_prev=datadir ;;
  100. -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  101. | --da=*)
  102. datadir="$ac_optarg" ;;
  103. -disable-* | --disable-*)
  104. ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  105. # Reject names that are not valid shell variable names.
  106. if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  107. { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  108. fi
  109. ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  110. eval "enable_${ac_feature}=no" ;;
  111. -enable-* | --enable-*)
  112. ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  113. # Reject names that are not valid shell variable names.
  114. if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  115. { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  116. fi
  117. ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  118. case "$ac_option" in
  119. *=*) ;;
  120. *) ac_optarg=yes ;;
  121. esac
  122. eval "enable_${ac_feature}='$ac_optarg'" ;;
  123. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  124. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  125. | --exec | --exe | --ex)
  126. ac_prev=exec_prefix ;;
  127. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  128. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  129. | --exec=* | --exe=* | --ex=*)
  130. exec_prefix="$ac_optarg" ;;
  131. -gas | --gas | --ga | --g)
  132. # Obsolete; use --with-gas.
  133. with_gas=yes ;;
  134. -help | --help | --hel | --he)
  135. # Omit some internal or obsolete options to make the list less imposing.
  136. # This message is too long to be a string in the A/UX 3.1 sh.
  137. cat << EOF
  138. Usage: configure [options] [host]
  139. Options: [defaults in brackets after descriptions]
  140. Configuration:
  141. --cache-file=FILE cache test results in FILE
  142. --help print this message
  143. --no-create do not create output files
  144. --quiet, --silent do not print \`checking...' messages
  145. --version print the version of autoconf that created configure
  146. Directory and file names:
  147. --prefix=PREFIX install architecture-independent files in PREFIX
  148. [$ac_default_prefix]
  149. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  150. [same as prefix]
  151. --bindir=DIR user executables in DIR [EPREFIX/bin]
  152. --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
  153. --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
  154. --datadir=DIR read-only architecture-independent data in DIR
  155. [PREFIX/share]
  156. --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
  157. --sharedstatedir=DIR modifiable architecture-independent data in DIR
  158. [PREFIX/com]
  159. --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
  160. --libdir=DIR object code libraries in DIR [EPREFIX/lib]
  161. --includedir=DIR C header files in DIR [PREFIX/include]
  162. --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
  163. --infodir=DIR info documentation in DIR [PREFIX/info]
  164. --mandir=DIR man documentation in DIR [PREFIX/man]
  165. --srcdir=DIR find the sources in DIR [configure dir or ..]
  166. --program-prefix=PREFIX prepend PREFIX to installed program names
  167. --program-suffix=SUFFIX append SUFFIX to installed program names
  168. --program-transform-name=PROGRAM
  169. run sed PROGRAM on installed program names
  170. EOF
  171. cat << EOF
  172. Host type:
  173. --build=BUILD configure for building on BUILD [BUILD=HOST]
  174. --host=HOST configure for HOST [guessed]
  175. --target=TARGET configure for TARGET [TARGET=HOST]
  176. Features and packages:
  177. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  178. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  179. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  180. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  181. --x-includes=DIR X include files are in DIR
  182. --x-libraries=DIR X library files are in DIR
  183. EOF
  184. if test -n "$ac_help"; then
  185. echo "--enable and --with options recognized:$ac_help"
  186. fi
  187. exit 0 ;;
  188. -host | --host | --hos | --ho)
  189. ac_prev=host ;;
  190. -host=* | --host=* | --hos=* | --ho=*)
  191. host="$ac_optarg" ;;
  192. -includedir | --includedir | --includedi | --included | --include \
  193. | --includ | --inclu | --incl | --inc)
  194. ac_prev=includedir ;;
  195. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  196. | --includ=* | --inclu=* | --incl=* | --inc=*)
  197. includedir="$ac_optarg" ;;
  198. -infodir | --infodir | --infodi | --infod | --info | --inf)
  199. ac_prev=infodir ;;
  200. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  201. infodir="$ac_optarg" ;;
  202. -libdir | --libdir | --libdi | --libd)
  203. ac_prev=libdir ;;
  204. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  205. libdir="$ac_optarg" ;;
  206. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  207. | --libexe | --libex | --libe)
  208. ac_prev=libexecdir ;;
  209. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  210. | --libexe=* | --libex=* | --libe=*)
  211. libexecdir="$ac_optarg" ;;
  212. -localstatedir | --localstatedir | --localstatedi | --localstated \
  213. | --localstate | --localstat | --localsta | --localst \
  214. | --locals | --local | --loca | --loc | --lo)
  215. ac_prev=localstatedir ;;
  216. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  217. | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  218. | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  219. localstatedir="$ac_optarg" ;;
  220. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  221. ac_prev=mandir ;;
  222. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  223. mandir="$ac_optarg" ;;
  224. -nfp | --nfp | --nf)
  225. # Obsolete; use --without-fp.
  226. with_fp=no ;;
  227. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  228. | --no-cr | --no-c)
  229. no_create=yes ;;
  230. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  231. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  232. no_recursion=yes ;;
  233. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  234. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  235. | --oldin | --oldi | --old | --ol | --o)
  236. ac_prev=oldincludedir ;;
  237. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  238. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  239. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  240. oldincludedir="$ac_optarg" ;;
  241. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  242. ac_prev=prefix ;;
  243. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  244. prefix="$ac_optarg" ;;
  245. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  246. | --program-pre | --program-pr | --program-p)
  247. ac_prev=program_prefix ;;
  248. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  249. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  250. program_prefix="$ac_optarg" ;;
  251. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  252. | --program-suf | --program-su | --program-s)
  253. ac_prev=program_suffix ;;
  254. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  255. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  256. program_suffix="$ac_optarg" ;;
  257. -program-transform-name | --program-transform-name \
  258. | --program-transform-nam | --program-transform-na \
  259. | --program-transform-n | --program-transform- \
  260. | --program-transform | --program-transfor \
  261. | --program-transfo | --program-transf \
  262. | --program-trans | --program-tran \
  263. | --progr-tra | --program-tr | --program-t)
  264. ac_prev=program_transform_name ;;
  265. -program-transform-name=* | --program-transform-name=* \
  266. | --program-transform-nam=* | --program-transform-na=* \
  267. | --program-transform-n=* | --program-transform-=* \
  268. | --program-transform=* | --program-transfor=* \
  269. | --program-transfo=* | --program-transf=* \
  270. | --program-trans=* | --program-tran=* \
  271. | --progr-tra=* | --program-tr=* | --program-t=*)
  272. program_transform_name="$ac_optarg" ;;
  273. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  274. | -silent | --silent | --silen | --sile | --sil)
  275. silent=yes ;;
  276. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  277. ac_prev=sbindir ;;
  278. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  279. | --sbi=* | --sb=*)
  280. sbindir="$ac_optarg" ;;
  281. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  282. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  283. | --sharedst | --shareds | --shared | --share | --shar \
  284. | --sha | --sh)
  285. ac_prev=sharedstatedir ;;
  286. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  287. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  288. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  289. | --sha=* | --sh=*)
  290. sharedstatedir="$ac_optarg" ;;
  291. -site | --site | --sit)
  292. ac_prev=site ;;
  293. -site=* | --site=* | --sit=*)
  294. site="$ac_optarg" ;;
  295. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  296. ac_prev=srcdir ;;
  297. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  298. srcdir="$ac_optarg" ;;
  299. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  300. | --syscon | --sysco | --sysc | --sys | --sy)
  301. ac_prev=sysconfdir ;;
  302. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  303. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  304. sysconfdir="$ac_optarg" ;;
  305. -target | --target | --targe | --targ | --tar | --ta | --t)
  306. ac_prev=target ;;
  307. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  308. target="$ac_optarg" ;;
  309. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  310. verbose=yes ;;
  311. -version | --version | --versio | --versi | --vers)
  312. echo "configure generated by autoconf version 2.13"
  313. exit 0 ;;
  314. -with-* | --with-*)
  315. ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  316. # Reject names that are not valid shell variable names.
  317. if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  318. { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  319. fi
  320. ac_package=`echo $ac_package| sed 's/-/_/g'`
  321. case "$ac_option" in
  322. *=*) ;;
  323. *) ac_optarg=yes ;;
  324. esac
  325. eval "with_${ac_package}='$ac_optarg'" ;;
  326. -without-* | --without-*)
  327. ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  328. # Reject names that are not valid shell variable names.
  329. if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  330. { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  331. fi
  332. ac_package=`echo $ac_package| sed 's/-/_/g'`
  333. eval "with_${ac_package}=no" ;;
  334. --x)
  335. # Obsolete; use --with-x.
  336. with_x=yes ;;
  337. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  338. | --x-incl | --x-inc | --x-in | --x-i)
  339. ac_prev=x_includes ;;
  340. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  341. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  342. x_includes="$ac_optarg" ;;
  343. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  344. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  345. ac_prev=x_libraries ;;
  346. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  347. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  348. x_libraries="$ac_optarg" ;;
  349. -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  350. ;;
  351. *)
  352. if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  353. echo "configure: warning: $ac_option: invalid host type" 1>&2
  354. fi
  355. if test "x$nonopt" != xNONE; then
  356. { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  357. fi
  358. nonopt="$ac_option"
  359. ;;
  360. esac
  361. done
  362. if test -n "$ac_prev"; then
  363. { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  364. fi
  365. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  366. # File descriptor usage:
  367. # 0 standard input
  368. # 1 file creation
  369. # 2 errors and warnings
  370. # 3 some systems may open it to /dev/tty
  371. # 4 used on the Kubota Titan
  372. # 6 checking for... messages and results
  373. # 5 compiler messages saved in config.log
  374. if test "$silent" = yes; then
  375. exec 6>/dev/null
  376. else
  377. exec 6>&1
  378. fi
  379. exec 5>./config.log
  380. echo "\
  381. This file contains any messages produced by compilers while
  382. running configure, to aid debugging if configure makes a mistake.
  383. " 1>&5
  384. # Strip out --no-create and --no-recursion so they do not pile up.
  385. # Also quote any args containing shell metacharacters.
  386. ac_configure_args=
  387. for ac_arg
  388. do
  389. case "$ac_arg" in
  390. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  391. | --no-cr | --no-c) ;;
  392. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  393. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  394. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  395. ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  396. *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  397. esac
  398. done
  399. # NLS nuisances.
  400. # Only set these to C if already set. These must not be set unconditionally
  401. # because not all systems understand e.g. LANG=C (notably SCO).
  402. # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
  403. # Non-C LC_CTYPE values break the ctype check.
  404. if test "${LANG+set}" = set; then LANG=C; export LANG; fi
  405. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  406. if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
  407. if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
  408. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  409. rm -rf conftest* confdefs.h
  410. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  411. echo > confdefs.h
  412. # A filename unique to this package, relative to the directory that
  413. # configure is in, which we can look for to find out if srcdir is correct.
  414. ac_unique_file=acinclude.m4
  415. # Find the source files, if location was not specified.
  416. if test -z "$srcdir"; then
  417. ac_srcdir_defaulted=yes
  418. # Try the directory containing this script, then its parent.
  419. ac_prog=$0
  420. ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  421. test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  422. srcdir=$ac_confdir
  423. if test ! -r $srcdir/$ac_unique_file; then
  424. srcdir=..
  425. fi
  426. else
  427. ac_srcdir_defaulted=no
  428. fi
  429. if test ! -r $srcdir/$ac_unique_file; then
  430. if test "$ac_srcdir_defaulted" = yes; then
  431. { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  432. else
  433. { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  434. fi
  435. fi
  436. srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  437. # Prefer explicitly selected file to automatically selected ones.
  438. if test -z "$CONFIG_SITE"; then
  439. if test "x$prefix" != xNONE; then
  440. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  441. else
  442. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  443. fi
  444. fi
  445. for ac_site_file in $CONFIG_SITE; do
  446. if test -r "$ac_site_file"; then
  447. echo "loading site script $ac_site_file"
  448. . "$ac_site_file"
  449. fi
  450. done
  451. if test -r "$cache_file"; then
  452. echo "loading cache $cache_file"
  453. . $cache_file
  454. else
  455. echo "creating cache $cache_file"
  456. > $cache_file
  457. fi
  458. ac_ext=c
  459. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  460. ac_cpp='$CPP $CPPFLAGS'
  461. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  462. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  463. cross_compiling=$ac_cv_prog_cc_cross
  464. ac_exeext=
  465. ac_objext=o
  466. if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  467. # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  468. if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  469. ac_n= ac_c='
  470. ' ac_t=' '
  471. else
  472. ac_n=-n ac_c= ac_t=
  473. fi
  474. else
  475. ac_n= ac_c='\c' ac_t=
  476. fi
  477. PACKAGE=exult
  478. MAJOR=0
  479. RELNUM=25
  480. VERSION=$MAJOR.$RELNUM
  481. ac_aux_dir=
  482. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  483. if test -f $ac_dir/install-sh; then
  484. ac_aux_dir=$ac_dir
  485. ac_install_sh="$ac_aux_dir/install-sh -c"
  486. break
  487. elif test -f $ac_dir/install.sh; then
  488. ac_aux_dir=$ac_dir
  489. ac_install_sh="$ac_aux_dir/install.sh -c"
  490. break
  491. fi
  492. done
  493. if test -z "$ac_aux_dir"; then
  494. { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  495. fi
  496. ac_config_guess=$ac_aux_dir/config.guess
  497. ac_config_sub=$ac_aux_dir/config.sub
  498. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  499. # Find a good install program. We prefer a C program (faster),
  500. # so one script is as good as another. But avoid the broken or
  501. # incompatible versions:
  502. # SysV /etc/install, /usr/sbin/install
  503. # SunOS /usr/etc/install
  504. # IRIX /sbin/install
  505. # AIX /bin/install
  506. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  507. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  508. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  509. # ./install, which can be erroneously created by make from ./install.sh.
  510. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  511. echo "configure:580: checking for a BSD compatible install" >&5
  512. if test -z "$INSTALL"; then
  513. if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  514. echo $ac_n "(cached) $ac_c" 1>&6
  515. else
  516. IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
  517. for ac_dir in $PATH; do
  518. # Account for people who put trailing slashes in PATH elements.
  519. case "$ac_dir/" in
  520. /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  521. *)
  522. # OSF1 and SCO ODT 3.0 have their own names for install.
  523. # Don't use installbsd from OSF since it installs stuff as root
  524. # by default.
  525. for ac_prog in ginstall scoinst install; do
  526. if test -f $ac_dir/$ac_prog; then
  527. if test $ac_prog = install &&
  528. grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  529. # AIX install. It has an incompatible calling convention.
  530. :
  531. else
  532. ac_cv_path_install="$ac_dir/$ac_prog -c"
  533. break 2
  534. fi
  535. fi
  536. done
  537. ;;
  538. esac
  539. done
  540. IFS="$ac_save_IFS"
  541. fi
  542. if test "${ac_cv_path_install+set}" = set; then
  543. INSTALL="$ac_cv_path_install"
  544. else
  545. # As a last resort, use the slow shell script. We don't cache a
  546. # path for INSTALL within a source directory, because that will
  547. # break other packages using the cache if that directory is
  548. # removed, or if the path is relative.
  549. INSTALL="$ac_install_sh"
  550. fi
  551. fi
  552. echo "$ac_t""$INSTALL" 1>&6
  553. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  554. # It thinks the first close brace ends the variable substitution.
  555. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  556. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
  557. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  558. echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
  559. echo "configure:633: checking whether build environment is sane" >&5
  560. # Just in case
  561. sleep 1
  562. echo timestamp > conftestfile
  563. # Do `set' in a subshell so we don't clobber the current shell's
  564. # arguments. Must try -L first in case configure is actually a
  565. # symlink; some systems play weird games with the mod time of symlinks
  566. # (eg FreeBSD returns the mod time of the symlink's containing
  567. # directory).
  568. if (
  569. set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
  570. if test "$*" = "X"; then
  571. # -L didn't work.
  572. set X `ls -t $srcdir/configure conftestfile`
  573. fi
  574. if test "$*" != "X $srcdir/configure conftestfile" \
  575. && test "$*" != "X conftestfile $srcdir/configure"; then
  576. # If neither matched, then we have a broken ls. This can happen
  577. # if, for instance, CONFIG_SHELL is bash and it inherits a
  578. # broken ls alias from the environment. This has actually
  579. # happened. Such a system could not be considered "sane".
  580. { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
  581. alias in your environment" 1>&2; exit 1; }
  582. fi
  583. test "$2" = conftestfile
  584. )
  585. then
  586. # Ok.
  587. :
  588. else
  589. { echo "configure: error: newly created file is older than distributed files!
  590. Check your system clock" 1>&2; exit 1; }
  591. fi
  592. rm -f conftest*
  593. echo "$ac_t""yes" 1>&6
  594. if test "$program_transform_name" = s,x,x,; then
  595. program_transform_name=
  596. else
  597. # Double any \ or $. echo might interpret backslashes.
  598. cat <<\EOF_SED > conftestsed
  599. s,\\,\\\\,g; s,\$,$$,g
  600. EOF_SED
  601. program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
  602. rm -f conftestsed
  603. fi
  604. test "$program_prefix" != NONE &&
  605. program_transform_name="s,^,${program_prefix},; $program_transform_name"
  606. # Use a double $ so make ignores it.
  607. test "$program_suffix" != NONE &&
  608. program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
  609. # sed with no file args requires a program.
  610. test "$program_transform_name" = "" && program_transform_name="s,x,x,"
  611. echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
  612. echo "configure:690: checking whether ${MAKE-make} sets \${MAKE}" >&5
  613. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
  614. if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
  615. echo $ac_n "(cached) $ac_c" 1>&6
  616. else
  617. cat > conftestmake <<\EOF
  618. all:
  619. @echo 'ac_maketemp="${MAKE}"'
  620. EOF
  621. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  622. eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
  623. if test -n "$ac_maketemp"; then
  624. eval ac_cv_prog_make_${ac_make}_set=yes
  625. else
  626. eval ac_cv_prog_make_${ac_make}_set=no
  627. fi
  628. rm -f conftestmake
  629. fi
  630. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  631. echo "$ac_t""yes" 1>&6
  632. SET_MAKE=
  633. else
  634. echo "$ac_t""no" 1>&6
  635. SET_MAKE="MAKE=${MAKE-make}"
  636. fi
  637. PACKAGE=$PACKAGE
  638. VERSION=$VERSION
  639. if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
  640. { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
  641. fi
  642. missing_dir=`cd $ac_aux_dir && pwd`
  643. echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
  644. echo "configure:729: checking for working aclocal" >&5
  645. # Run test in a subshell; some versions of sh will print an error if
  646. # an executable is not found, even if stderr is redirected.
  647. # Redirect stdin to placate older versions of autoconf. Sigh.
  648. if (aclocal --version) < /dev/null > /dev/null 2>&1; then
  649. ACLOCAL=aclocal
  650. echo "$ac_t""found" 1>&6
  651. else
  652. ACLOCAL="$missing_dir/missing aclocal"
  653. echo "$ac_t""missing" 1>&6
  654. fi
  655. echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
  656. echo "configure:742: checking for working autoconf" >&5
  657. # Run test in a subshell; some versions of sh will print an error if
  658. # an executable is not found, even if stderr is redirected.
  659. # Redirect stdin to placate older versions of autoconf. Sigh.
  660. if (autoconf --version) < /dev/null > /dev/null 2>&1; then
  661. AUTOCONF=autoconf
  662. echo "$ac_t""found" 1>&6
  663. else
  664. AUTOCONF="$missing_dir/missing autoconf"
  665. echo "$ac_t""missing" 1>&6
  666. fi
  667. echo $ac_n "checking for working automake""... $ac_c" 1>&6
  668. echo "configure:755: checking for working automake" >&5
  669. # Run test in a subshell; some versions of sh will print an error if
  670. # an executable is not found, even if stderr is redirected.
  671. # Redirect stdin to placate older versions of autoconf. Sigh.
  672. if (automake --version) < /dev/null > /dev/null 2>&1; then
  673. AUTOMAKE=automake
  674. echo "$ac_t""found" 1>&6
  675. else
  676. AUTOMAKE="$missing_dir/missing automake"
  677. echo "$ac_t""missing" 1>&6
  678. fi
  679. echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
  680. echo "configure:768: checking for working autoheader" >&5
  681. # Run test in a subshell; some versions of sh will print an error if
  682. # an executable is not found, even if stderr is redirected.
  683. # Redirect stdin to placate older versions of autoconf. Sigh.
  684. if (autoheader --version) < /dev/null > /dev/null 2>&1; then
  685. AUTOHEADER=autoheader
  686. echo "$ac_t""found" 1>&6
  687. else
  688. AUTOHEADER="$missing_dir/missing autoheader"
  689. echo "$ac_t""missing" 1>&6
  690. fi
  691. echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
  692. echo "configure:781: checking for working makeinfo" >&5
  693. # Run test in a subshell; some versions of sh will print an error if
  694. # an executable is not found, even if stderr is redirected.
  695. # Redirect stdin to placate older versions of autoconf. Sigh.
  696. if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
  697. MAKEINFO=makeinfo
  698. echo "$ac_t""found" 1>&6
  699. else
  700. MAKEINFO="$missing_dir/missing makeinfo"
  701. echo "$ac_t""missing" 1>&6
  702. fi
  703. cat >> confdefs.h <<EOF
  704. #define PACKAGE "$PACKAGE"
  705. EOF
  706. cat >> confdefs.h <<EOF
  707. #define VERSION "$VERSION"
  708. EOF
  709. # Extract the first word of "gcc", so it can be a program name with args.
  710. set dummy gcc; ac_word=$2
  711. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  712. echo "configure:813: checking for $ac_word" >&5
  713. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  714. echo $ac_n "(cached) $ac_c" 1>&6
  715. else
  716. if test -n "$CC"; then
  717. ac_cv_prog_CC="$CC" # Let the user override the test.
  718. else
  719. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  720. ac_dummy="$PATH"
  721. for ac_dir in $ac_dummy; do
  722. test -z "$ac_dir" && ac_dir=.
  723. if test -f $ac_dir/$ac_word; then
  724. ac_cv_prog_CC="gcc"
  725. break
  726. fi
  727. done
  728. IFS="$ac_save_ifs"
  729. fi
  730. fi
  731. CC="$ac_cv_prog_CC"
  732. if test -n "$CC"; then
  733. echo "$ac_t""$CC" 1>&6
  734. else
  735. echo "$ac_t""no" 1>&6
  736. fi
  737. if test -z "$CC"; then
  738. # Extract the first word of "cc", so it can be a program name with args.
  739. set dummy cc; ac_word=$2
  740. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  741. echo "configure:843: checking for $ac_word" >&5
  742. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  743. echo $ac_n "(cached) $ac_c" 1>&6
  744. else
  745. if test -n "$CC"; then
  746. ac_cv_prog_CC="$CC" # Let the user override the test.
  747. else
  748. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  749. ac_prog_rejected=no
  750. ac_dummy="$PATH"
  751. for ac_dir in $ac_dummy; do
  752. test -z "$ac_dir" && ac_dir=.
  753. if test -f $ac_dir/$ac_word; then
  754. if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  755. ac_prog_rejected=yes
  756. continue
  757. fi
  758. ac_cv_prog_CC="cc"
  759. break
  760. fi
  761. done
  762. IFS="$ac_save_ifs"
  763. if test $ac_prog_rejected = yes; then
  764. # We found a bogon in the path, so make sure we never use it.
  765. set dummy $ac_cv_prog_CC
  766. shift
  767. if test $# -gt 0; then
  768. # We chose a different compiler from the bogus one.
  769. # However, it has the same basename, so the bogon will be chosen
  770. # first if we set CC to just the basename; use the full file name.
  771. shift
  772. set dummy "$ac_dir/$ac_word" "$@"
  773. shift
  774. ac_cv_prog_CC="$@"
  775. fi
  776. fi
  777. fi
  778. fi
  779. CC="$ac_cv_prog_CC"
  780. if test -n "$CC"; then
  781. echo "$ac_t""$CC" 1>&6
  782. else
  783. echo "$ac_t""no" 1>&6
  784. fi
  785. if test -z "$CC"; then
  786. case "`uname -s`" in
  787. *win32* | *WIN32*)
  788. # Extract the first word of "cl", so it can be a program name with args.
  789. set dummy cl; ac_word=$2
  790. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  791. echo "configure:894: checking for $ac_word" >&5
  792. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  793. echo $ac_n "(cached) $ac_c" 1>&6
  794. else
  795. if test -n "$CC"; then
  796. ac_cv_prog_CC="$CC" # Let the user override the test.
  797. else
  798. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  799. ac_dummy="$PATH"
  800. for ac_dir in $ac_dummy; do
  801. test -z "$ac_dir" && ac_dir=.
  802. if test -f $ac_dir/$ac_word; then
  803. ac_cv_prog_CC="cl"
  804. break
  805. fi
  806. done
  807. IFS="$ac_save_ifs"
  808. fi
  809. fi
  810. CC="$ac_cv_prog_CC"
  811. if test -n "$CC"; then
  812. echo "$ac_t""$CC" 1>&6
  813. else
  814. echo "$ac_t""no" 1>&6
  815. fi
  816. ;;
  817. esac
  818. fi
  819. test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  820. fi
  821. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  822. echo "configure:926: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
  823. ac_ext=c
  824. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  825. ac_cpp='$CPP $CPPFLAGS'
  826. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  827. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  828. cross_compiling=$ac_cv_prog_cc_cross
  829. cat > conftest.$ac_ext << EOF
  830. #line 937 "configure"
  831. #include "confdefs.h"
  832. main(){return(0);}
  833. EOF
  834. if { (eval echo configure:942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  835. ac_cv_prog_cc_works=yes
  836. # If we can't run a trivial program, we are probably using a cross compiler.
  837. if (./conftest; exit) 2>/dev/null; then
  838. ac_cv_prog_cc_cross=no
  839. else
  840. ac_cv_prog_cc_cross=yes
  841. fi
  842. else
  843. echo "configure: failed program was:" >&5
  844. cat conftest.$ac_ext >&5
  845. ac_cv_prog_cc_works=no
  846. fi
  847. rm -fr conftest*
  848. ac_ext=c
  849. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  850. ac_cpp='$CPP $CPPFLAGS'
  851. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  852. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  853. cross_compiling=$ac_cv_prog_cc_cross
  854. echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
  855. if test $ac_cv_prog_cc_works = no; then
  856. { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
  857. fi
  858. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  859. echo "configure:968: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
  860. echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
  861. cross_compiling=$ac_cv_prog_cc_cross
  862. echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  863. echo "configure:973: checking whether we are using GNU C" >&5
  864. if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  865. echo $ac_n "(cached) $ac_c" 1>&6
  866. else
  867. cat > conftest.c <<EOF
  868. #ifdef __GNUC__
  869. yes;
  870. #endif
  871. EOF
  872. if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:982: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  873. ac_cv_prog_gcc=yes
  874. else
  875. ac_cv_prog_gcc=no
  876. fi
  877. fi
  878. echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  879. if test $ac_cv_prog_gcc = yes; then
  880. GCC=yes
  881. else
  882. GCC=
  883. fi
  884. ac_test_CFLAGS="${CFLAGS+set}"
  885. ac_save_CFLAGS="$CFLAGS"
  886. CFLAGS=
  887. echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  888. echo "configure:1001: checking whether ${CC-cc} accepts -g" >&5
  889. if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
  890. echo $ac_n "(cached) $ac_c" 1>&6
  891. else
  892. echo 'void f(){}' > conftest.c
  893. if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  894. ac_cv_prog_cc_g=yes
  895. else
  896. ac_cv_prog_cc_g=no
  897. fi
  898. rm -f conftest*
  899. fi
  900. echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
  901. if test "$ac_test_CFLAGS" = set; then
  902. CFLAGS="$ac_save_CFLAGS"
  903. elif test $ac_cv_prog_cc_g = yes; then
  904. if test "$GCC" = yes; then
  905. CFLAGS="-g -O2"
  906. else
  907. CFLAGS="-g"
  908. fi
  909. else
  910. if test "$GCC" = yes; then
  911. CFLAGS="-O2"
  912. else
  913. CFLAGS=
  914. fi
  915. fi
  916. echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  917. echo "configure:1034: checking how to run the C preprocessor" >&5
  918. # On Suns, sometimes $CPP names a directory.
  919. if test -n "$CPP" && test -d "$CPP"; then
  920. CPP=
  921. fi
  922. if test -z "$CPP"; then
  923. if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  924. echo $ac_n "(cached) $ac_c" 1>&6
  925. else
  926. # This must be in double quotes, not single quotes, because CPP may get
  927. # substituted into the Makefile and "${CC-cc}" will confuse make.
  928. CPP="${CC-cc} -E"
  929. # On the NeXT, cc -E runs the code through the compiler's parser,
  930. # not just through cpp.
  931. cat > conftest.$ac_ext <<EOF
  932. #line 1049 "configure"
  933. #include "confdefs.h"
  934. #include <assert.h>
  935. Syntax Error
  936. EOF
  937. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  938. { (eval echo configure:1055: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  939. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  940. if test -z "$ac_err"; then
  941. :
  942. else
  943. echo "$ac_err" >&5
  944. echo "configure: failed program was:" >&5
  945. cat conftest.$ac_ext >&5
  946. rm -rf conftest*
  947. CPP="${CC-cc} -E -traditional-cpp"
  948. cat > conftest.$ac_ext <<EOF
  949. #line 1066 "configure"
  950. #include "confdefs.h"
  951. #include <assert.h>
  952. Syntax Error
  953. EOF
  954. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  955. { (eval echo configure:1072: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  956. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  957. if test -z "$ac_err"; then
  958. :
  959. else
  960. echo "$ac_err" >&5
  961. echo "configure: failed program was:" >&5
  962. cat conftest.$ac_ext >&5
  963. rm -rf conftest*
  964. CPP="${CC-cc} -nologo -E"
  965. cat > conftest.$ac_ext <<EOF
  966. #line 1083 "configure"
  967. #include "confdefs.h"
  968. #include <assert.h>
  969. Syntax Error
  970. EOF
  971. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  972. { (eval echo configure:1089: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  973. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  974. if test -z "$ac_err"; then
  975. :
  976. else
  977. echo "$ac_err" >&5
  978. echo "configure: failed program was:" >&5
  979. cat conftest.$ac_ext >&5
  980. rm -rf conftest*
  981. CPP=/lib/cpp
  982. fi
  983. rm -f conftest*
  984. fi
  985. rm -f conftest*
  986. fi
  987. rm -f conftest*
  988. ac_cv_prog_CPP="$CPP"
  989. fi
  990. CPP="$ac_cv_prog_CPP"
  991. else
  992. ac_cv_prog_CPP="$CPP"
  993. fi
  994. echo "$ac_t""$CPP" 1>&6
  995. echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  996. echo "configure:1114: checking how to run the C preprocessor" >&5
  997. # On Suns, sometimes $CPP names a directory.
  998. if test -n "$CPP" && test -d "$CPP"; then
  999. CPP=
  1000. fi
  1001. if test -z "$CPP"; then
  1002. if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  1003. echo $ac_n "(cached) $ac_c" 1>&6
  1004. else
  1005. # This must be in double quotes, not single quotes, because CPP may get
  1006. # substituted into the Makefile and "${CC-cc}" will confuse make.
  1007. CPP="${CC-cc} -E"
  1008. # On the NeXT, cc -E runs the code through the compiler's parser,
  1009. # not just through cpp.
  1010. cat > conftest.$ac_ext <<EOF
  1011. #line 1129 "configure"
  1012. #include "confdefs.h"
  1013. #include <assert.h>
  1014. Syntax Error
  1015. EOF
  1016. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1017. { (eval echo configure:1135: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1018. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1019. if test -z "$ac_err"; then
  1020. :
  1021. else
  1022. echo "$ac_err" >&5
  1023. echo "configure: failed program was:" >&5
  1024. cat conftest.$ac_ext >&5
  1025. rm -rf conftest*
  1026. CPP="${CC-cc} -E -traditional-cpp"
  1027. cat > conftest.$ac_ext <<EOF
  1028. #line 1146 "configure"
  1029. #include "confdefs.h"
  1030. #include <assert.h>
  1031. Syntax Error
  1032. EOF
  1033. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1034. { (eval echo configure:1152: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1035. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1036. if test -z "$ac_err"; then
  1037. :
  1038. else
  1039. echo "$ac_err" >&5
  1040. echo "configure: failed program was:" >&5
  1041. cat conftest.$ac_ext >&5
  1042. rm -rf conftest*
  1043. CPP="${CC-cc} -nologo -E"
  1044. cat > conftest.$ac_ext <<EOF
  1045. #line 1163 "configure"
  1046. #include "confdefs.h"
  1047. #include <assert.h>
  1048. Syntax Error
  1049. EOF
  1050. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1051. { (eval echo configure:1169: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1052. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1053. if test -z "$ac_err"; then
  1054. :
  1055. else
  1056. echo "$ac_err" >&5
  1057. echo "configure: failed program was:" >&5
  1058. cat conftest.$ac_ext >&5
  1059. rm -rf conftest*
  1060. CPP=/lib/cpp
  1061. fi
  1062. rm -f conftest*
  1063. fi
  1064. rm -f conftest*
  1065. fi
  1066. rm -f conftest*
  1067. ac_cv_prog_CPP="$CPP"
  1068. fi
  1069. CPP="$ac_cv_prog_CPP"
  1070. else
  1071. ac_cv_prog_CPP="$CPP"
  1072. fi
  1073. echo "$ac_t""$CPP" 1>&6
  1074. # Find a good install program. We prefer a C program (faster),
  1075. # so one script is as good as another. But avoid the broken or
  1076. # incompatible versions:
  1077. # SysV /etc/install, /usr/sbin/install
  1078. # SunOS /usr/etc/install
  1079. # IRIX /sbin/install
  1080. # AIX /bin/install
  1081. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1082. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1083. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1084. # ./install, which can be erroneously created by make from ./install.sh.
  1085. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  1086. echo "configure:1205: checking for a BSD compatible install" >&5
  1087. if test -z "$INSTALL"; then
  1088. if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  1089. echo $ac_n "(cached) $ac_c" 1>&6
  1090. else
  1091. IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
  1092. for ac_dir in $PATH; do
  1093. # Account for people who put trailing slashes in PATH elements.
  1094. case "$ac_dir/" in
  1095. /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  1096. *)
  1097. # OSF1 and SCO ODT 3.0 have their own names for install.
  1098. # Don't use installbsd from OSF since it installs stuff as root
  1099. # by default.
  1100. for ac_prog in ginstall scoinst install; do
  1101. if test -f $ac_dir/$ac_prog; then
  1102. if test $ac_prog = install &&
  1103. grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  1104. # AIX install. It has an incompatible calling convention.
  1105. :
  1106. else
  1107. ac_cv_path_install="$ac_dir/$ac_prog -c"
  1108. break 2
  1109. fi
  1110. fi
  1111. done
  1112. ;;
  1113. esac
  1114. done
  1115. IFS="$ac_save_IFS"
  1116. fi
  1117. if test "${ac_cv_path_install+set}" = set; then
  1118. INSTALL="$ac_cv_path_install"
  1119. else
  1120. # As a last resort, use the slow shell script. We don't cache a
  1121. # path for INSTALL within a source directory, because that will
  1122. # break other packages using the cache if that directory is
  1123. # removed, or if the path is relative.
  1124. INSTALL="$ac_install_sh"
  1125. fi
  1126. fi
  1127. echo "$ac_t""$INSTALL" 1>&6
  1128. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1129. # It thinks the first close brace ends the variable substitution.
  1130. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1131. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
  1132. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1133. echo "Wondering what our windowing system is... "
  1134. # Check whether --enable-win32 or --disable-win32 was given.
  1135. if test "${enable_win32+set}" = set; then
  1136. enableval="$enable_win32"
  1137. :
  1138. else
  1139. enable_win32=no
  1140. fi
  1141. # Check whether --enable-kmid or --disable-kmid was given.
  1142. if test "${enable_kmid+set}" = set; then
  1143. enableval="$enable_kmid"
  1144. :
  1145. else
  1146. disable_kmid=no
  1147. fi
  1148. if test x$enable_win32 = xno; then
  1149. WINDOWING_SYSTEM=""
  1150. if test -d "/etc/X11" ; then
  1151. WINDOWING_SYSTEM="-DXWIN"
  1152. fi
  1153. if test -d "/usr/X11" ; then
  1154. WINDOWING_SYSTEM="-DXWIN"
  1155. fi
  1156. else
  1157. WINDOWING_SYSTEM="-DWIN32"
  1158. fi
  1159. if test "$WINDOWING_SYSTEM" = "-DXWIN"; then
  1160. echo "Smells like X11"
  1161. TOP_LEVEL_SUBDIRS="audio conf"
  1162. AUDIO_LIBRARY="-Laudio -laudio"
  1163. AUDIO_INCLUDES="-Iaudio"
  1164. EXE_TARGET="exult"
  1165. SYSLIBS="-L /usr/X11R6/lib -L /usr/local/lib -lX11 -lXext -lstdc++ -lgcc -lc -lgcc -Lconf -lconf"
  1166. else
  1167. echo "Umm. Doesn't seem to be X11."
  1168. echo "Let's assume it's Windows as an alternative."
  1169. WINDOWING_SYSTEM="-DWIN32"
  1170. TOP_LEVEL_SUBDIRS="conf"
  1171. AUDIO_LIBRARY=""
  1172. AUDIO_INCLUDES="-Iaudio"
  1173. EXE_TARGET="exult.exe"
  1174. disable_kmid="yes"
  1175. SYSLIBS="-Lconf -lconf"
  1176. fi
  1177. cat >> confdefs.h <<\EOF
  1178. #define AUTOCONFIGURED 1
  1179. EOF
  1180. echo $ac_n "checking for a timidity binary""... $ac_c" 1>&6
  1181. echo "configure:1315: checking for a timidity binary" >&5
  1182. # Extract the first word of "timidity", so it can be a program name with args.
  1183. set dummy timidity; ac_word=$2
  1184. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1185. echo "configure:1319: checking for $ac_word" >&5
  1186. if eval "test \"`echo '$''{'ac_cv_prog_HAVE_TIMIDITY_BIN'+set}'`\" = set"; then
  1187. echo $ac_n "(cached) $ac_c" 1>&6
  1188. else
  1189. if test -n "$HAVE_TIMIDITY_BIN"; then
  1190. ac_cv_prog_HAVE_TIMIDITY_BIN="$HAVE_TIMIDITY_BIN" # Let the user override the test.
  1191. else
  1192. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1193. ac_dummy="$PATH"
  1194. for ac_dir in $ac_dummy; do
  1195. test -z "$ac_dir" && ac_dir=.
  1196. if test -f $ac_dir/$ac_word; then
  1197. ac_cv_prog_HAVE_TIMIDITY_BIN="yes"
  1198. break
  1199. fi
  1200. done
  1201. IFS="$ac_save_ifs"
  1202. test -z "$ac_cv_prog_HAVE_TIMIDITY_BIN" && ac_cv_prog_HAVE_TIMIDITY_BIN="no"
  1203. fi
  1204. fi
  1205. HAVE_TIMIDITY_BIN="$ac_cv_prog_HAVE_TIMIDITY_BIN"
  1206. if test -n "$HAVE_TIMIDITY_BIN"; then
  1207. echo "$ac_t""$HAVE_TIMIDITY_BIN" 1>&6
  1208. else
  1209. echo "$ac_t""no" 1>&6
  1210. fi
  1211. if test "$HAVE_TIMIDITY_BIN" = "yes"; then
  1212. echo "$ac_t""Found a binary. We'll build a driver for it" 1>&6
  1213. cat >> confdefs.h <<\EOF
  1214. #define HAVE_TIMIDITY_BIN 1
  1215. EOF
  1216. fi
  1217. echo $ac_n "checking the SDL installation""... $ac_c" 1>&6
  1218. echo "configure:1355: checking the SDL installation" >&5
  1219. # Extract the first word of "sdl-config", so it can be a program name with args.
  1220. set dummy sdl-config; ac_word=$2
  1221. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1222. echo "configure:1359: checking for $ac_word" >&5
  1223. if eval "test \"`echo '$''{'ac_cv_prog_HAVE_SDL_CONFIG'+set}'`\" = set"; then
  1224. echo $ac_n "(cached) $ac_c" 1>&6
  1225. else
  1226. if test -n "$HAVE_SDL_CONFIG"; then
  1227. ac_cv_prog_HAVE_SDL_CONFIG="$HAVE_SDL_CONFIG" # Let the user override the test.
  1228. else
  1229. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1230. ac_dummy="$PATH"
  1231. for ac_dir in $ac_dummy; do
  1232. test -z "$ac_dir" && ac_dir=.
  1233. if test -f $ac_dir/$ac_word; then
  1234. ac_cv_prog_HAVE_SDL_CONFIG="yes"
  1235. break
  1236. fi
  1237. done
  1238. IFS="$ac_save_ifs"
  1239. test -z "$ac_cv_prog_HAVE_SDL_CONFIG" && ac_cv_prog_HAVE_SDL_CONFIG="no"
  1240. fi
  1241. fi
  1242. HAVE_SDL_CONFIG="$ac_cv_prog_HAVE_SDL_CONFIG"
  1243. if test -n "$HAVE_SDL_CONFIG"; then
  1244. echo "$ac_t""$HAVE_SDL_CONFIG" 1>&6
  1245. else
  1246. echo "$ac_t""no" 1>&6
  1247. fi
  1248. if test "$HAVE_SDL_CONFIG" != "yes"; then
  1249. echo "You must have SDL installed."
  1250. exit 1
  1251. fi
  1252. SDL_INCLUDES=`sdl-config --cflags`
  1253. SDL_LIBS=`sdl-config --libs`
  1254. cat >> confdefs.h <<\EOF
  1255. #define HAVE_SDL 1
  1256. EOF
  1257. echo "$ac_t""Now we know lots about how SDL is installed locally" 1>&6
  1258. echo $ac_n "checking whether to disable kmid""... $ac_c" 1>&6
  1259. echo "configure:1406: checking whether to disable kmid" >&5
  1260. if test x$disable_kmid = xno; then
  1261. echo "$ac_t""no" 1>&6
  1262. echo $ac_n "checking for libkmid""... $ac_c" 1>&6
  1263. echo "configure:1410: checking for libkmid" >&5
  1264. KMID_INCLUDES=""
  1265. KMID_LIBS=""
  1266. for i in /usr/include/libkmid.h /usr/include/libkmid/libkmid.h /usr/local/include/libkmid.h /usr/local/include/libkmid/libkmid.h
  1267. do
  1268. test -f "$i" && KMID_INCLUDES=`dirname $i` && HAVE_KMID="yes"
  1269. done
  1270. for i in /lib /usr/lib /usr/local/lib
  1271. do
  1272. test -f "$i/libkmid.so" && KMID_LIBS="-L$i -lkmid"
  1273. done
  1274. if test "$HAVE_KMID" != "yes" ; then
  1275. echo "If you don't have kmid installed try $0 --disable-kmid"
  1276. exit 1
  1277. else
  1278. echo "$ac_t""Found it. Neat." 1>&6
  1279. cat >> confdefs.h <<\EOF
  1280. #define HAVE_LIBKMIDI 1
  1281. EOF
  1282. fi
  1283. KMID_INCLUDES="-I$KMID_INCLUDES"
  1284. else
  1285. echo "$ac_t""yes" 1>&6
  1286. echo "Okay. No Kmid in this binary."
  1287. fi
  1288. echo $ac_n "checking for freetype""... $ac_c" 1>&6
  1289. echo "configure:1443: checking for freetype" >&5
  1290. FREETYPE_DIR=""
  1291. if test -f "/usr/include/freetype.h"; then
  1292. FREETYPE_DIR="/usr/include"
  1293. fi
  1294. if test -f "/usr/include/freetype/freetype.h"; then
  1295. FREETYPE_DIR="/usr/include/freetype"
  1296. fi
  1297. if test -f "/usr/local/include/freetype.h"; then
  1298. FREETYPE_DIR="/usr/local/include"
  1299. fi
  1300. if test "$FREETYPE_DIR" != ""; then
  1301. echo "$ac_t""$FREETYPE_DIR" 1>&6
  1302. cat >> confdefs.h <<\EOF
  1303. #define HAVE_FREETYPE 1
  1304. EOF
  1305. FREETYPE_LIBS="-lfreetype"
  1306. fi
  1307. echo $ac_n "checking for a C++-Compiler""... $ac_c" 1>&6
  1308. echo "configure:1467: checking for a C++-Compiler" >&5
  1309. echo "$ac_t""$CXX" 1>&6
  1310. if test -z "$CXX"; then
  1311. # Extract the first word of "g++", so it can be a program name with args.
  1312. set dummy g++; ac_word=$2
  1313. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1314. echo "configure:1474: checking for $ac_word" >&5
  1315. if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
  1316. echo $ac_n "(cached) $ac_c" 1>&6
  1317. else
  1318. if test -n "$CXX"; then
  1319. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  1320. else
  1321. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1322. ac_dummy="$PATH"
  1323. for ac_dir in $ac_dummy; do
  1324. test -z "$ac_dir" && ac_dir=.
  1325. if test -f $ac_dir/$ac_word; then
  1326. ac_cv_prog_CXX="g++"
  1327. break
  1328. fi
  1329. done
  1330. IFS="$ac_save_ifs"
  1331. fi
  1332. fi
  1333. CXX="$ac_cv_prog_CXX"
  1334. if test -n "$CXX"; then
  1335. echo "$ac_t""$CXX" 1>&6
  1336. else
  1337. echo "$ac_t""no" 1>&6
  1338. fi
  1339. CXXFLAGS="$CXXFLAGS --pedantic"
  1340. PEDANTIC="--pedantic"
  1341. fi
  1342. if test -z "$CXX"; then # Extract the first word of "CC", so it can be a program name with args.
  1343. set dummy CC; ac_word=$2
  1344. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1345. echo "configure:1506: checking for $ac_word" >&5
  1346. if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
  1347. echo $ac_n "(cached) $ac_c" 1>&6
  1348. else
  1349. if test -n "$CXX"; then
  1350. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  1351. else
  1352. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1353. ac_dummy="$PATH"
  1354. for ac_dir in $ac_dummy; do
  1355. test -z "$ac_dir" && ac_dir=.
  1356. if test -f $ac_dir/$ac_word; then
  1357. ac_cv_prog_CXX="CC"
  1358. break
  1359. fi
  1360. done
  1361. IFS="$ac_save_ifs"
  1362. fi
  1363. fi
  1364. CXX="$ac_cv_prog_CXX"
  1365. if test -n "$CXX"; then
  1366. echo "$ac_t""$CXX" 1>&6
  1367. else
  1368. echo "$ac_t""no" 1>&6
  1369. fi
  1370. fi
  1371. if test -z "$CXX"; then # Extract the first word of "xlC", so it can be a program name with args.
  1372. set dummy xlC; ac_word=$2
  1373. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1374. echo "configure:1535: checking for $ac_word" >&5
  1375. if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
  1376. echo $ac_n "(cached) $ac_c" 1>&6
  1377. else
  1378. if test -n "$CXX"; then
  1379. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  1380. else
  1381. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1382. ac_dummy="$PATH"
  1383. for ac_dir in $ac_dummy; do
  1384. test -z "$ac_dir" && ac_dir=.
  1385. if test -f $ac_dir/$ac_word; then
  1386. ac_cv_prog_CXX="xlC"
  1387. break
  1388. fi
  1389. done
  1390. IFS="$ac_save_ifs"
  1391. fi
  1392. fi
  1393. CXX="$ac_cv_prog_CXX"
  1394. if test -n "$CXX"; then
  1395. echo "$ac_t""$CXX" 1>&6
  1396. else
  1397. echo "$ac_t""no" 1>&6
  1398. fi
  1399. fi
  1400. if test -z "$CXX"; then # Extract the first word of "DCC", so it can be a program name with args.
  1401. set dummy DCC; ac_word=$2
  1402. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1403. echo "configure:1564: checking for $ac_word" >&5
  1404. if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
  1405. echo $ac_n "(cached) $ac_c" 1>&6
  1406. else
  1407. if test -n "$CXX"; then
  1408. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  1409. else
  1410. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1411. ac_dummy="$PATH"
  1412. for ac_dir in $ac_dummy; do
  1413. test -z "$ac_dir" && ac_dir=.
  1414. if test -f $ac_dir/$ac_word; then
  1415. ac_cv_prog_CXX="DCC"
  1416. break
  1417. fi
  1418. done
  1419. IFS="$ac_save_ifs"
  1420. fi
  1421. fi
  1422. CXX="$ac_cv_prog_CXX"
  1423. if test -n "$CXX"; then
  1424. echo "$ac_t""$CXX" 1>&6
  1425. else
  1426. echo "$ac_t""no" 1>&6
  1427. fi
  1428. fi
  1429. test -z "$CXX" && { echo "configure: error: no acceptable C++-compiler found in \$PATH" 1>&2; exit 1; }
  1430. echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  1431. echo "configure:1593: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
  1432. ac_ext=C
  1433. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  1434. ac_cpp='$CXXCPP $CPPFLAGS'
  1435. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  1436. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  1437. cross_compiling=$ac_cv_prog_cxx_cross
  1438. cat > conftest.$ac_ext << EOF
  1439. #line 1604 "configure"
  1440. #include "confdefs.h"
  1441. int main(){return(0);}
  1442. EOF
  1443. if { (eval echo configure:1609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1444. ac_cv_prog_cxx_works=yes
  1445. # If we can't run a trivial program, we are probably using a cross compiler.
  1446. if (./conftest; exit) 2>/dev/null; then
  1447. ac_cv_prog_cxx_cross=no
  1448. else
  1449. ac_cv_prog_cxx_cross=yes
  1450. fi
  1451. else
  1452. echo "configure: failed program was:" >&5
  1453. cat conftest.$ac_ext >&5
  1454. ac_cv_prog_cxx_works=no
  1455. fi
  1456. rm -fr conftest*
  1457. ac_ext=c
  1458. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  1459. ac_cpp='$CPP $CPPFLAGS'
  1460. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  1461. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  1462. cross_compiling=$ac_cv_prog_cc_cross
  1463. echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
  1464. if test $ac_cv_prog_cxx_works = no; then
  1465. { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
  1466. fi
  1467. echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  1468. echo "configure:1635: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
  1469. echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
  1470. cross_compiling=$ac_cv_prog_cxx_cross
  1471. echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
  1472. echo "configure:1640: checking whether we are using GNU C++" >&5
  1473. if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
  1474. echo $ac_n "(cached) $ac_c" 1>&6
  1475. else
  1476. cat > conftest.C <<EOF
  1477. #ifdef __GNUC__
  1478. yes;
  1479. #endif
  1480. EOF
  1481. if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1649: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  1482. ac_cv_prog_gxx=yes
  1483. else
  1484. ac_cv_prog_gxx=no
  1485. fi
  1486. fi
  1487. echo "$ac_t""$ac_cv_prog_gxx" 1>&6
  1488. # Check whether --enable-shared or --disable-shared was given.
  1489. if test "${enable_shared+set}" = set; then
  1490. enableval="$enable_shared"
  1491. p=${PACKAGE-default}
  1492. case "$enableval" in
  1493. yes) enable_shared=yes ;;
  1494. no) enable_shared=no ;;
  1495. *)
  1496. enable_shared=no
  1497. # Look at the argument we got. We use all the common list separators.
  1498. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  1499. for pkg in $enableval; do
  1500. if test "X$pkg" = "X$p"; then
  1501. enable_shared=yes
  1502. fi
  1503. done
  1504. IFS="$ac_save_ifs"
  1505. ;;
  1506. esac
  1507. else
  1508. enable_shared=yes
  1509. fi
  1510. # Check whether --enable-static or --disable-static was given.
  1511. if test "${enable_static+set}" = set; then
  1512. enableval="$enable_static"
  1513. p=${PACKAGE-default}
  1514. case "$enableval" in
  1515. yes) enable_static=yes ;;
  1516. no) enable_static=no ;;
  1517. *)
  1518. enable_static=no
  1519. # Look at the argument we got. We use all the common list separators.
  1520. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  1521. for pkg in $enableval; do
  1522. if test "X$pkg" = "X$p"; then
  1523. enable_static=yes
  1524. fi
  1525. done
  1526. IFS="$ac_save_ifs"
  1527. ;;
  1528. esac
  1529. else
  1530. enable_static=no
  1531. fi
  1532. echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
  1533. echo "configure:1705: checking for Cygwin environment" >&5
  1534. if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
  1535. echo $ac_n "(cached) $ac_c" 1>&6
  1536. else
  1537. cat > conftest.$ac_ext <<EOF
  1538. #line 1710 "configure"
  1539. #include "confdefs.h"
  1540. int main() {
  1541. #ifndef __CYGWIN__
  1542. #define __CYGWIN__ __CYGWIN32__
  1543. #endif
  1544. return __CYGWIN__;
  1545. ; return 0; }
  1546. EOF
  1547. if { (eval echo configure:1721: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1548. rm -rf conftest*
  1549. ac_cv_cygwin=yes
  1550. else
  1551. echo "configure: failed program was:" >&5
  1552. cat conftest.$ac_ext >&5
  1553. rm -rf conftest*
  1554. ac_cv_cygwin=no
  1555. fi
  1556. rm -f conftest*
  1557. rm -f conftest*
  1558. fi
  1559. echo "$ac_t""$ac_cv_cygwin" 1>&6
  1560. CYGWIN=
  1561. test "$ac_cv_cygwin" = yes && CYGWIN=yes
  1562. echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
  1563. echo "configure:1738: checking for mingw32 environment" >&5
  1564. if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
  1565. echo $ac_n "(cached) $ac_c" 1>&6
  1566. else
  1567. cat > conftest.$ac_ext <<EOF
  1568. #line 1743 "configure"
  1569. #include "confdefs.h"
  1570. int main() {
  1571. return __MINGW32__;
  1572. ; return 0; }
  1573. EOF
  1574. if { (eval echo configure:1750: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1575. rm -rf conftest*
  1576. ac_cv_mingw32=yes
  1577. else
  1578. echo "configure: failed program was:" >&5
  1579. cat conftest.$ac_ext >&5
  1580. rm -rf conftest*
  1581. ac_cv_mingw32=no
  1582. fi
  1583. rm -f conftest*
  1584. rm -f conftest*
  1585. fi
  1586. echo "$ac_t""$ac_cv_mingw32" 1>&6
  1587. MINGW32=
  1588. test "$ac_cv_mingw32" = yes && MINGW32=yes
  1589. # Check whether --enable-fast-install or --disable-fast-install was given.
  1590. if test "${enable_fast_install+set}" = set; then
  1591. enableval="$enable_fast_install"
  1592. p=${PACKAGE-default}
  1593. case "$enableval" in
  1594. yes) enable_fast_install=yes ;;
  1595. no) enable_fast_install=no ;;
  1596. *)
  1597. enable_fast_install=no
  1598. # Look at the argument we got. We use all the common list separators.
  1599. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  1600. for pkg in $enableval; do
  1601. if test "X$pkg" = "X$p"; then
  1602. enable_fast_install=yes
  1603. fi
  1604. done
  1605. IFS="$ac_save_ifs"
  1606. ;;
  1607. esac
  1608. else
  1609. enable_fast_install=yes
  1610. fi
  1611. # Make sure we can run config.sub.
  1612. if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
  1613. else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
  1614. fi
  1615. echo $ac_n "checking host system type""... $ac_c" 1>&6
  1616. echo "configure:1796: checking host system type" >&5
  1617. host_alias=$host
  1618. case "$host_alias" in
  1619. NONE)
  1620. case $nonopt in
  1621. NONE)
  1622. if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
  1623. else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
  1624. fi ;;
  1625. *) host_alias=$nonopt ;;
  1626. esac ;;
  1627. esac
  1628. host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
  1629. host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1630. host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1631. host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1632. echo "$ac_t""$host" 1>&6
  1633. echo $ac_n "checking build system type""... $ac_c" 1>&6
  1634. echo "configure:1817: checking build system type" >&5
  1635. build_alias=$build
  1636. case "$build_alias" in
  1637. NONE)
  1638. case $nonopt in
  1639. NONE) build_alias=$host_alias ;;
  1640. *) build_alias=$nonopt ;;
  1641. esac ;;
  1642. esac
  1643. build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
  1644. build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1645. build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1646. build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1647. echo "$ac_t""$build" 1>&6
  1648. # Check whether --with-gnu-ld or --without-gnu-ld was given.
  1649. if test "${with_gnu_ld+set}" = set; then
  1650. withval="$with_gnu_ld"
  1651. test "$withval" = no || with_gnu_ld=yes
  1652. else
  1653. with_gnu_ld=no
  1654. fi
  1655. ac_prog=ld
  1656. if test "$ac_cv_prog_gcc" = yes; then
  1657. # Check if gcc -print-prog-name=ld gives a path.
  1658. echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
  1659. echo "configure:1846: checking for ld used by GCC" >&5
  1660. case $lt_target in
  1661. *-*-mingw*)
  1662. # gcc leaves a trailing carriage return which upsets mingw
  1663. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  1664. *)
  1665. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  1666. esac
  1667. case "$ac_prog" in
  1668. # Accept absolute paths.
  1669. [\\/]* | [A-Za-z]:[\\/]*)
  1670. re_direlt='/[^/][^/]*/\.\./'
  1671. # Canonicalize the path of ld
  1672. ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  1673. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  1674. ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  1675. done
  1676. test -z "$LD" && LD="$ac_prog"
  1677. ;;
  1678. "")
  1679. # If it fails, then pretend we aren't using GCC.
  1680. ac_prog=ld
  1681. ;;
  1682. *)
  1683. # If it is relative, then search for the first ld in PATH.
  1684. with_gnu_ld=unknown
  1685. ;;
  1686. esac
  1687. elif test "$with_gnu_ld" = yes; then
  1688. echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
  1689. echo "configure:1876: checking for GNU ld" >&5
  1690. else
  1691. echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
  1692. echo "configure:1879: checking for non-GNU ld" >&5
  1693. fi
  1694. if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
  1695. echo $ac_n "(cached) $ac_c" 1>&6
  1696. else
  1697. if test -z "$LD"; then
  1698. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  1699. for ac_dir in $PATH; do
  1700. test -z "$ac_dir" && ac_dir=.
  1701. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  1702. ac_cv_path_LD="$ac_dir/$ac_prog"
  1703. # Check to see if the program is GNU ld. I'd rather use --version,
  1704. # but apparently some GNU ld's only accept -v.
  1705. # Break only if it was the GNU/non-GNU ld that we prefer.
  1706. if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
  1707. test "$with_gnu_ld" != no && break
  1708. else
  1709. test "$with_gnu_ld" != yes && break
  1710. fi
  1711. fi
  1712. done
  1713. IFS="$ac_save_ifs"
  1714. else
  1715. ac_cv_path_LD="$LD" # Let the user override the test with a path.
  1716. fi
  1717. fi
  1718. LD="$ac_cv_path_LD"
  1719. if test -n "$LD"; then
  1720. echo "$ac_t""$LD" 1>&6
  1721. else
  1722. echo "$ac_t""no" 1>&6
  1723. fi
  1724. test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
  1725. echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
  1726. echo "configure:1914: checking if the linker ($LD) is GNU ld" >&5
  1727. if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
  1728. echo $ac_n "(cached) $ac_c" 1>&6
  1729. else
  1730. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  1731. if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
  1732. ac_cv_prog_gnu_ld=yes
  1733. else
  1734. ac_cv_prog_gnu_ld=no
  1735. fi
  1736. fi
  1737. echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
  1738. with_gnu_ld=$ac_cv_prog_gnu_ld
  1739. echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
  1740. echo "configure:1931: checking for $LD option to reload object files" >&5
  1741. if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
  1742. echo $ac_n "(cached) $ac_c" 1>&6
  1743. else
  1744. lt_cv_ld_reload_flag='-r'
  1745. fi
  1746. echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
  1747. reload_flag=$lt_cv_ld_reload_flag
  1748. test -n "$reload_flag" && reload_flag=" $reload_flag"
  1749. echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
  1750. echo "configure:1943: checking for BSD-compatible nm" >&5
  1751. if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
  1752. echo $ac_n "(cached) $ac_c" 1>&6
  1753. else
  1754. if test -n "$NM"; then
  1755. # Let the user override the test.
  1756. ac_cv_path_NM="$NM"
  1757. else
  1758. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  1759. for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
  1760. test -z "$ac_dir" && ac_dir=.
  1761. if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
  1762. # Check to see if the nm accepts a BSD-compat flag.
  1763. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  1764. # nm: unknown option "B" ignored
  1765. if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
  1766. ac_cv_path_NM="$ac_dir/nm -B"
  1767. break
  1768. elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
  1769. ac_cv_path_NM="$ac_dir/nm -p"
  1770. break
  1771. else
  1772. ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
  1773. continue # so that we can try to find one that supports BSD flags
  1774. fi
  1775. fi
  1776. done
  1777. IFS="$ac_save_ifs"
  1778. test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
  1779. fi
  1780. fi
  1781. NM="$ac_cv_path_NM"
  1782. echo "$ac_t""$NM" 1>&6
  1783. echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
  1784. echo "configure:1979: checking whether ln -s works" >&5
  1785. if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
  1786. echo $ac_n "(cached) $ac_c" 1>&6
  1787. else
  1788. rm -f conftestdata
  1789. if ln -s X conftestdata 2>/dev/null
  1790. then
  1791. rm -f conftestdata
  1792. ac_cv_prog_LN_S="ln -s"
  1793. else
  1794. ac_cv_prog_LN_S=ln
  1795. fi
  1796. fi
  1797. LN_S="$ac_cv_prog_LN_S"
  1798. if test "$ac_cv_prog_LN_S" = "ln -s"; then
  1799. echo "$ac_t""yes" 1>&6
  1800. else
  1801. echo "$ac_t""no" 1>&6
  1802. fi
  1803. echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
  1804. echo "configure:2000: checking how to recognise dependant libraries" >&5
  1805. if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
  1806. echo $ac_n "(cached) $ac_c" 1>&6
  1807. else
  1808. lt_cv_file_magic_cmd='$FILE'
  1809. lt_cv_file_magic_test_file=
  1810. lt_cv_deplibs_check_method='unknown'
  1811. # Need to set the preceding variable on all platforms that support
  1812. # interlibrary dependencies.
  1813. # 'none' -- dependencies not supported.
  1814. # `unknown' -- same as none, but documents that we really don't know.
  1815. # 'pass_all' -- all dependencies passed with no checks.
  1816. # 'test_compile' -- check by making test program.
  1817. # 'file_magic [regex]' -- check by looking for files in library path
  1818. # which responds to the $file_magic_cmd with a given egrep regex.
  1819. # If you have `file' or equivalent on your system and you're not sure
  1820. # whether `pass_all' will *always* work, you probably want this one.
  1821. case "$host_os" in
  1822. aix4* | beos*)
  1823. lt_cv_deplibs_check_method=pass_all
  1824. ;;
  1825. bsdi4*)
  1826. lt_cv_deplibs_check_method='file_magic ELF 0-90-9*-bit MLSB (shared object|dynamic lib)'
  1827. lt_cv_file_magic_test_file=/shlib/libc.so
  1828. ;;
  1829. cygwin* | mingw*)
  1830. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  1831. lt_cv_file_magic_cmd='${OBJDUMP} -f'
  1832. ;;
  1833. # FIXME:
  1834. # I don't know if this would apply to all versions of FreeBSD, although
  1835. # based on what I've been told by jdp, I would assume it *should* work
  1836. # but hey, if someone actually wants to test this, go right ahead.
  1837. freebsdelf* | freebsd34*)
  1838. lt_cv_deplibs_check_method=pass_all
  1839. ;;
  1840. gnu*)
  1841. lt_cv_deplibs_check_method=pass_all
  1842. ;;
  1843. irix5* | irix6*)
  1844. case "$host_os" in
  1845. irix5*)
  1846. # this will be overridden with pass_all, but let us keep it just in case
  1847. lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
  1848. ;;
  1849. *)
  1850. case "$LD" in
  1851. *-32|*"-32 ") libmagic=32-bit;;
  1852. *-n32|*"-n32 ") libmagic=N32;;
  1853. *-64|*"-64 ") libmagic=64-bit;;
  1854. *) libmagic=never-match;;
  1855. esac
  1856. # this will be overridden with pass_all, but let us keep it just in case
  1857. lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-1234 dynamic lib MIPS - version 1"
  1858. ;;
  1859. esac
  1860. lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
  1861. lt_cv_deplibs_check_method=pass_all
  1862. ;;
  1863. # This must be Linux ELF.
  1864. linux-gnu*)
  1865. case "$host_cpu" in
  1866. alpha* | i*86 | sparc* )
  1867. lt_cv_deplibs_check_method=pass_all ;;
  1868. *)
  1869. # glibc up to 2.1.1 does not perform some relocations on ARM
  1870. lt_cv_deplibs_check_method='file_magic ELF 0-90-9*-bit LMSB (shared object|dynamic lib )' ;;
  1871. esac
  1872. lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
  1873. ;;
  1874. osf3* | osf4* | osf5*)
  1875. # this will be overridden with pass_all, but let us keep it just in case
  1876. lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
  1877. lt_cv_file_magic_test_file=/shlib/libc.so
  1878. lt_cv_deplibs_check_method=pass_all
  1879. ;;
  1880. sco3.2v5*)
  1881. lt_cv_deplibs_check_method=pass_all
  1882. ;;
  1883. solaris*)
  1884. lt_cv_deplibs_check_method=pass_all
  1885. lt_cv_file_magic_test_file=/lib/libc.so
  1886. ;;
  1887. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  1888. case "$host_vendor" in
  1889. ncr)
  1890. lt_cv_deplibs_check_method=pass_all
  1891. ;;
  1892. motorol