PageRenderTime 51ms CodeModel.GetById 16ms RepoModel.GetById 1ms app.codeStats 0ms

/tags/sdcc-290-pre1/sdcc/sim/ucsim/libltdl/configure

#
Shell | 2088 lines | 1684 code | 183 blank | 221 comment | 234 complexity | f3820a8d1e023f446f9451eade48bfc5 MD5 | raw file
Possible License(s): GPL-2.0, LGPL-2.0, LGPL-2.1, GPL-3.0

Large files files are truncated, but you can click here to view the full file

  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. --with-auxdir=DIR path to autoconf auxiliary files"
  14. ac_help="$ac_help
  15. --disable-dependency-tracking Speeds up one-time builds
  16. --enable-dependency-tracking Do not reject slow dependency extractors"
  17. ac_help="$ac_help
  18. --enable-maintainer-mode enable make rules and dependencies not useful
  19. (and sometimes confusing) to the casual installer"
  20. ac_help="$ac_help
  21. --enable-shared[=PKGS] build shared libraries [default=yes]"
  22. ac_help="$ac_help
  23. --enable-static[=PKGS] build static libraries [default=yes]"
  24. ac_help="$ac_help
  25. --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
  26. ac_help="$ac_help
  27. --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
  28. # Find the correct PATH separator. Usually this is `:', but
  29. # DJGPP uses `;' like DOS.
  30. if test "X${PATH_SEPARATOR+set}" != Xset; then
  31. UNAME=${UNAME-`uname 2>/dev/null`}
  32. case X$UNAME in
  33. *-DOS) lt_cv_sys_path_separator=';' ;;
  34. *) lt_cv_sys_path_separator=':' ;;
  35. esac
  36. PATH_SEPARATOR=$lt_cv_sys_path_separator
  37. fi
  38. # Check that we are running under the correct shell.
  39. SHELL=${CONFIG_SHELL-/bin/sh}
  40. case X$ECHO in
  41. X*--fallback-echo)
  42. # Remove one level of quotation (which was required for Make).
  43. ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
  44. ;;
  45. esac
  46. echo=${ECHO-echo}
  47. if test "X$1" = X--no-reexec; then
  48. # Discard the --no-reexec flag, and continue.
  49. shift
  50. elif test "X$1" = X--fallback-echo; then
  51. # Avoid inline document here, it may be left over
  52. :
  53. elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
  54. # Yippee, $echo works!
  55. :
  56. else
  57. # Restart under the correct shell.
  58. exec $SHELL "$0" --no-reexec ${1+"$@"}
  59. fi
  60. if test "X$1" = X--fallback-echo; then
  61. # used as fallback echo
  62. shift
  63. cat <<EOF
  64. EOF
  65. exit 0
  66. fi
  67. # The HP-UX ksh and POSIX shell print the target directory to stdout
  68. # if CDPATH is set.
  69. if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
  70. if test -z "$ECHO"; then
  71. if test "X${echo_test_string+set}" != Xset; then
  72. # find a string as large as possible, as long as the shell can cope with it
  73. for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  74. # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  75. if (echo_test_string="`eval $cmd`") 2>/dev/null &&
  76. echo_test_string="`eval $cmd`" &&
  77. (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
  78. then
  79. break
  80. fi
  81. done
  82. fi
  83. if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  84. echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  85. test "X$echo_testing_string" = "X$echo_test_string"; then
  86. :
  87. else
  88. # The Solaris, AIX, and Digital Unix default echo programs unquote
  89. # backslashes. This makes it impossible to quote backslashes using
  90. # echo "$something" | sed 's/\\/\\\\/g'
  91. #
  92. # So, first we look for a working echo in the user's PATH.
  93. IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  94. for dir in $PATH /usr/ucb; do
  95. if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  96. test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  97. echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  98. test "X$echo_testing_string" = "X$echo_test_string"; then
  99. echo="$dir/echo"
  100. break
  101. fi
  102. done
  103. IFS="$save_ifs"
  104. if test "X$echo" = Xecho; then
  105. # We didn't find a better echo, so look for alternatives.
  106. if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
  107. echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
  108. test "X$echo_testing_string" = "X$echo_test_string"; then
  109. # This shell has a builtin print -r that does the trick.
  110. echo='print -r'
  111. elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
  112. test "X$CONFIG_SHELL" != X/bin/ksh; then
  113. # If we have ksh, try running configure again with it.
  114. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  115. export ORIGINAL_CONFIG_SHELL
  116. CONFIG_SHELL=/bin/ksh
  117. export CONFIG_SHELL
  118. exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  119. else
  120. # Try using printf.
  121. echo='printf %s\n'
  122. if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  123. echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  124. test "X$echo_testing_string" = "X$echo_test_string"; then
  125. # Cool, printf works
  126. :
  127. elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  128. test "X$echo_testing_string" = 'X\t' &&
  129. echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  130. test "X$echo_testing_string" = "X$echo_test_string"; then
  131. CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  132. export CONFIG_SHELL
  133. SHELL="$CONFIG_SHELL"
  134. export SHELL
  135. echo="$CONFIG_SHELL $0 --fallback-echo"
  136. elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  137. test "X$echo_testing_string" = 'X\t' &&
  138. echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  139. test "X$echo_testing_string" = "X$echo_test_string"; then
  140. echo="$CONFIG_SHELL $0 --fallback-echo"
  141. else
  142. # maybe with a smaller string...
  143. prev=:
  144. for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  145. if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
  146. then
  147. break
  148. fi
  149. prev="$cmd"
  150. done
  151. if test "$prev" != 'sed 50q "$0"'; then
  152. echo_test_string=`eval $prev`
  153. export echo_test_string
  154. exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  155. else
  156. # Oops. We lost completely, so just stick with echo.
  157. echo=echo
  158. fi
  159. fi
  160. fi
  161. fi
  162. fi
  163. fi
  164. # Copy echo and quote the copy suitably for passing to libtool from
  165. # the Makefile, instead of quoting the original, which is used later.
  166. ECHO=$echo
  167. if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  168. ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  169. fi
  170. ac_help="$ac_help
  171. --disable-libtool-lock avoid locking (might break parallel builds)"
  172. ac_help="$ac_help
  173. --with-pic try to use only PIC/non-PIC objects [default=use both]"
  174. ac_help="$ac_help
  175. --enable-ltdl-install install libltdl"
  176. # Initialize some variables set by options.
  177. # The variables have the same names as the options, with
  178. # dashes changed to underlines.
  179. build=NONE
  180. cache_file=./config.cache
  181. exec_prefix=NONE
  182. host=NONE
  183. no_create=
  184. nonopt=NONE
  185. no_recursion=
  186. prefix=NONE
  187. program_prefix=NONE
  188. program_suffix=NONE
  189. program_transform_name=s,x,x,
  190. silent=
  191. site=
  192. srcdir=
  193. target=NONE
  194. verbose=
  195. x_includes=NONE
  196. x_libraries=NONE
  197. bindir='${exec_prefix}/bin'
  198. sbindir='${exec_prefix}/sbin'
  199. libexecdir='${exec_prefix}/libexec'
  200. datadir='${prefix}/share'
  201. sysconfdir='${prefix}/etc'
  202. sharedstatedir='${prefix}/com'
  203. localstatedir='${prefix}/var'
  204. libdir='${exec_prefix}/lib'
  205. includedir='${prefix}/include'
  206. oldincludedir='/usr/include'
  207. infodir='${prefix}/info'
  208. mandir='${prefix}/man'
  209. # Initialize some other variables.
  210. subdirs=
  211. MFLAGS= MAKEFLAGS=
  212. SHELL=${CONFIG_SHELL-/bin/sh}
  213. # Maximum number of lines to put in a shell here document.
  214. ac_max_here_lines=12
  215. ac_prev=
  216. for ac_option
  217. do
  218. # If the previous option needs an argument, assign it.
  219. if test -n "$ac_prev"; then
  220. eval "$ac_prev=\$ac_option"
  221. ac_prev=
  222. continue
  223. fi
  224. case "$ac_option" in
  225. -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  226. *) ac_optarg= ;;
  227. esac
  228. # Accept the important Cygnus configure options, so we can diagnose typos.
  229. case "$ac_option" in
  230. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  231. ac_prev=bindir ;;
  232. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  233. bindir="$ac_optarg" ;;
  234. -build | --build | --buil | --bui | --bu)
  235. ac_prev=build ;;
  236. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  237. build="$ac_optarg" ;;
  238. -cache-file | --cache-file | --cache-fil | --cache-fi \
  239. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  240. ac_prev=cache_file ;;
  241. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  242. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  243. cache_file="$ac_optarg" ;;
  244. -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  245. ac_prev=datadir ;;
  246. -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  247. | --da=*)
  248. datadir="$ac_optarg" ;;
  249. -disable-* | --disable-*)
  250. ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  251. # Reject names that are not valid shell variable names.
  252. if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  253. { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  254. fi
  255. ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  256. eval "enable_${ac_feature}=no" ;;
  257. -enable-* | --enable-*)
  258. ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  259. # Reject names that are not valid shell variable names.
  260. if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  261. { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  262. fi
  263. ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  264. case "$ac_option" in
  265. *=*) ;;
  266. *) ac_optarg=yes ;;
  267. esac
  268. eval "enable_${ac_feature}='$ac_optarg'" ;;
  269. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  270. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  271. | --exec | --exe | --ex)
  272. ac_prev=exec_prefix ;;
  273. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  274. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  275. | --exec=* | --exe=* | --ex=*)
  276. exec_prefix="$ac_optarg" ;;
  277. -gas | --gas | --ga | --g)
  278. # Obsolete; use --with-gas.
  279. with_gas=yes ;;
  280. -help | --help | --hel | --he)
  281. # Omit some internal or obsolete options to make the list less imposing.
  282. # This message is too long to be a string in the A/UX 3.1 sh.
  283. cat << EOF
  284. Usage: configure [options] [host]
  285. Options: [defaults in brackets after descriptions]
  286. Configuration:
  287. --cache-file=FILE cache test results in FILE
  288. --help print this message
  289. --no-create do not create output files
  290. --quiet, --silent do not print \`checking...' messages
  291. --version print the version of autoconf that created configure
  292. Directory and file names:
  293. --prefix=PREFIX install architecture-independent files in PREFIX
  294. [$ac_default_prefix]
  295. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  296. [same as prefix]
  297. --bindir=DIR user executables in DIR [EPREFIX/bin]
  298. --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
  299. --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
  300. --datadir=DIR read-only architecture-independent data in DIR
  301. [PREFIX/share]
  302. --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
  303. --sharedstatedir=DIR modifiable architecture-independent data in DIR
  304. [PREFIX/com]
  305. --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
  306. --libdir=DIR object code libraries in DIR [EPREFIX/lib]
  307. --includedir=DIR C header files in DIR [PREFIX/include]
  308. --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
  309. --infodir=DIR info documentation in DIR [PREFIX/info]
  310. --mandir=DIR man documentation in DIR [PREFIX/man]
  311. --srcdir=DIR find the sources in DIR [configure dir or ..]
  312. --program-prefix=PREFIX prepend PREFIX to installed program names
  313. --program-suffix=SUFFIX append SUFFIX to installed program names
  314. --program-transform-name=PROGRAM
  315. run sed PROGRAM on installed program names
  316. EOF
  317. cat << EOF
  318. Host type:
  319. --build=BUILD configure for building on BUILD [BUILD=HOST]
  320. --host=HOST configure for HOST [guessed]
  321. --target=TARGET configure for TARGET [TARGET=HOST]
  322. Features and packages:
  323. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  324. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  325. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  326. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  327. --x-includes=DIR X include files are in DIR
  328. --x-libraries=DIR X library files are in DIR
  329. EOF
  330. if test -n "$ac_help"; then
  331. echo "--enable and --with options recognized:$ac_help"
  332. fi
  333. exit 0 ;;
  334. -host | --host | --hos | --ho)
  335. ac_prev=host ;;
  336. -host=* | --host=* | --hos=* | --ho=*)
  337. host="$ac_optarg" ;;
  338. -includedir | --includedir | --includedi | --included | --include \
  339. | --includ | --inclu | --incl | --inc)
  340. ac_prev=includedir ;;
  341. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  342. | --includ=* | --inclu=* | --incl=* | --inc=*)
  343. includedir="$ac_optarg" ;;
  344. -infodir | --infodir | --infodi | --infod | --info | --inf)
  345. ac_prev=infodir ;;
  346. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  347. infodir="$ac_optarg" ;;
  348. -libdir | --libdir | --libdi | --libd)
  349. ac_prev=libdir ;;
  350. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  351. libdir="$ac_optarg" ;;
  352. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  353. | --libexe | --libex | --libe)
  354. ac_prev=libexecdir ;;
  355. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  356. | --libexe=* | --libex=* | --libe=*)
  357. libexecdir="$ac_optarg" ;;
  358. -localstatedir | --localstatedir | --localstatedi | --localstated \
  359. | --localstate | --localstat | --localsta | --localst \
  360. | --locals | --local | --loca | --loc | --lo)
  361. ac_prev=localstatedir ;;
  362. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  363. | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  364. | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  365. localstatedir="$ac_optarg" ;;
  366. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  367. ac_prev=mandir ;;
  368. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  369. mandir="$ac_optarg" ;;
  370. -nfp | --nfp | --nf)
  371. # Obsolete; use --without-fp.
  372. with_fp=no ;;
  373. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  374. | --no-cr | --no-c)
  375. no_create=yes ;;
  376. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  377. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  378. no_recursion=yes ;;
  379. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  380. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  381. | --oldin | --oldi | --old | --ol | --o)
  382. ac_prev=oldincludedir ;;
  383. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  384. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  385. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  386. oldincludedir="$ac_optarg" ;;
  387. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  388. ac_prev=prefix ;;
  389. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  390. prefix="$ac_optarg" ;;
  391. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  392. | --program-pre | --program-pr | --program-p)
  393. ac_prev=program_prefix ;;
  394. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  395. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  396. program_prefix="$ac_optarg" ;;
  397. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  398. | --program-suf | --program-su | --program-s)
  399. ac_prev=program_suffix ;;
  400. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  401. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  402. program_suffix="$ac_optarg" ;;
  403. -program-transform-name | --program-transform-name \
  404. | --program-transform-nam | --program-transform-na \
  405. | --program-transform-n | --program-transform- \
  406. | --program-transform | --program-transfor \
  407. | --program-transfo | --program-transf \
  408. | --program-trans | --program-tran \
  409. | --progr-tra | --program-tr | --program-t)
  410. ac_prev=program_transform_name ;;
  411. -program-transform-name=* | --program-transform-name=* \
  412. | --program-transform-nam=* | --program-transform-na=* \
  413. | --program-transform-n=* | --program-transform-=* \
  414. | --program-transform=* | --program-transfor=* \
  415. | --program-transfo=* | --program-transf=* \
  416. | --program-trans=* | --program-tran=* \
  417. | --progr-tra=* | --program-tr=* | --program-t=*)
  418. program_transform_name="$ac_optarg" ;;
  419. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  420. | -silent | --silent | --silen | --sile | --sil)
  421. silent=yes ;;
  422. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  423. ac_prev=sbindir ;;
  424. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  425. | --sbi=* | --sb=*)
  426. sbindir="$ac_optarg" ;;
  427. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  428. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  429. | --sharedst | --shareds | --shared | --share | --shar \
  430. | --sha | --sh)
  431. ac_prev=sharedstatedir ;;
  432. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  433. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  434. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  435. | --sha=* | --sh=*)
  436. sharedstatedir="$ac_optarg" ;;
  437. -site | --site | --sit)
  438. ac_prev=site ;;
  439. -site=* | --site=* | --sit=*)
  440. site="$ac_optarg" ;;
  441. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  442. ac_prev=srcdir ;;
  443. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  444. srcdir="$ac_optarg" ;;
  445. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  446. | --syscon | --sysco | --sysc | --sys | --sy)
  447. ac_prev=sysconfdir ;;
  448. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  449. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  450. sysconfdir="$ac_optarg" ;;
  451. -target | --target | --targe | --targ | --tar | --ta | --t)
  452. ac_prev=target ;;
  453. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  454. target="$ac_optarg" ;;
  455. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  456. verbose=yes ;;
  457. -version | --version | --versio | --versi | --vers)
  458. echo "configure generated by autoconf version 2.13"
  459. exit 0 ;;
  460. -with-* | --with-*)
  461. ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  462. # Reject names that are not valid shell variable names.
  463. if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  464. { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  465. fi
  466. ac_package=`echo $ac_package| sed 's/-/_/g'`
  467. case "$ac_option" in
  468. *=*) ;;
  469. *) ac_optarg=yes ;;
  470. esac
  471. eval "with_${ac_package}='$ac_optarg'" ;;
  472. -without-* | --without-*)
  473. ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  474. # Reject names that are not valid shell variable names.
  475. if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  476. { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  477. fi
  478. ac_package=`echo $ac_package| sed 's/-/_/g'`
  479. eval "with_${ac_package}=no" ;;
  480. --x)
  481. # Obsolete; use --with-x.
  482. with_x=yes ;;
  483. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  484. | --x-incl | --x-inc | --x-in | --x-i)
  485. ac_prev=x_includes ;;
  486. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  487. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  488. x_includes="$ac_optarg" ;;
  489. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  490. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  491. ac_prev=x_libraries ;;
  492. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  493. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  494. x_libraries="$ac_optarg" ;;
  495. -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  496. ;;
  497. *)
  498. if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  499. echo "configure: warning: $ac_option: invalid host type" 1>&2
  500. fi
  501. if test "x$nonopt" != xNONE; then
  502. { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  503. fi
  504. nonopt="$ac_option"
  505. ;;
  506. esac
  507. done
  508. if test -n "$ac_prev"; then
  509. { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  510. fi
  511. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  512. # File descriptor usage:
  513. # 0 standard input
  514. # 1 file creation
  515. # 2 errors and warnings
  516. # 3 some systems may open it to /dev/tty
  517. # 4 used on the Kubota Titan
  518. # 6 checking for... messages and results
  519. # 5 compiler messages saved in config.log
  520. if test "$silent" = yes; then
  521. exec 6>/dev/null
  522. else
  523. exec 6>&1
  524. fi
  525. exec 5>./config.log
  526. echo "\
  527. This file contains any messages produced by compilers while
  528. running configure, to aid debugging if configure makes a mistake.
  529. " 1>&5
  530. # Strip out --no-create and --no-recursion so they do not pile up.
  531. # Also quote any args containing shell metacharacters.
  532. ac_configure_args=
  533. for ac_arg
  534. do
  535. case "$ac_arg" in
  536. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  537. | --no-cr | --no-c) ;;
  538. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  539. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  540. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  541. ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  542. *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  543. esac
  544. done
  545. # NLS nuisances.
  546. # Only set these to C if already set. These must not be set unconditionally
  547. # because not all systems understand e.g. LANG=C (notably SCO).
  548. # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
  549. # Non-C LC_CTYPE values break the ctype check.
  550. if test "${LANG+set}" = set; then LANG=C; export LANG; fi
  551. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  552. if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
  553. if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
  554. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  555. rm -rf conftest* confdefs.h
  556. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  557. echo > confdefs.h
  558. # A filename unique to this package, relative to the directory that
  559. # configure is in, which we can look for to find out if srcdir is correct.
  560. ac_unique_file=ltdl.c
  561. # Find the source files, if location was not specified.
  562. if test -z "$srcdir"; then
  563. ac_srcdir_defaulted=yes
  564. # Try the directory containing this script, then its parent.
  565. ac_prog=$0
  566. ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  567. test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  568. srcdir=$ac_confdir
  569. if test ! -r $srcdir/$ac_unique_file; then
  570. srcdir=..
  571. fi
  572. else
  573. ac_srcdir_defaulted=no
  574. fi
  575. if test ! -r $srcdir/$ac_unique_file; then
  576. if test "$ac_srcdir_defaulted" = yes; then
  577. { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  578. else
  579. { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  580. fi
  581. fi
  582. srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  583. # Prefer explicitly selected file to automatically selected ones.
  584. if test -z "$CONFIG_SITE"; then
  585. if test "x$prefix" != xNONE; then
  586. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  587. else
  588. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  589. fi
  590. fi
  591. for ac_site_file in $CONFIG_SITE; do
  592. if test -r "$ac_site_file"; then
  593. echo "loading site script $ac_site_file"
  594. . "$ac_site_file"
  595. fi
  596. done
  597. if test -r "$cache_file"; then
  598. echo "loading cache $cache_file"
  599. . $cache_file
  600. else
  601. echo "creating cache $cache_file"
  602. > $cache_file
  603. fi
  604. ac_ext=c
  605. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  606. ac_cpp='$CPP $CPPFLAGS'
  607. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  608. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  609. cross_compiling=$ac_cv_prog_cc_cross
  610. ac_exeext=
  611. ac_objext=o
  612. if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  613. # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  614. if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  615. ac_n= ac_c='
  616. ' ac_t=' '
  617. else
  618. ac_n=-n ac_c= ac_t=
  619. fi
  620. else
  621. ac_n= ac_c='\c' ac_t=
  622. fi
  623. # Check whether --with-auxdir or --without-auxdir was given.
  624. if test "${with_auxdir+set}" = set; then
  625. withval="$with_auxdir"
  626. ac_aux_dir=
  627. for ac_dir in $with_auxdir; do
  628. if test -f $ac_dir/install-sh; then
  629. ac_aux_dir=$ac_dir
  630. ac_install_sh="$ac_aux_dir/install-sh -c"
  631. break
  632. elif test -f $ac_dir/install.sh; then
  633. ac_aux_dir=$ac_dir
  634. ac_install_sh="$ac_aux_dir/install.sh -c"
  635. break
  636. fi
  637. done
  638. if test -z "$ac_aux_dir"; then
  639. { echo "configure: error: can not find install-sh or install.sh in $with_auxdir" 1>&2; exit 1; }
  640. fi
  641. ac_config_guess=$ac_aux_dir/config.guess
  642. ac_config_sub=$ac_aux_dir/config.sub
  643. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  644. else
  645. ac_aux_dir=
  646. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  647. if test -f $ac_dir/install-sh; then
  648. ac_aux_dir=$ac_dir
  649. ac_install_sh="$ac_aux_dir/install-sh -c"
  650. break
  651. elif test -f $ac_dir/install.sh; then
  652. ac_aux_dir=$ac_dir
  653. ac_install_sh="$ac_aux_dir/install.sh -c"
  654. break
  655. fi
  656. done
  657. if test -z "$ac_aux_dir"; then
  658. { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  659. fi
  660. ac_config_guess=$ac_aux_dir/config.guess
  661. ac_config_sub=$ac_aux_dir/config.sub
  662. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  663. fi
  664. if test -z "$enable_ltdl_install$enable_ltdl_convenience"; then
  665. if test -f ${srcdir}/ltmain.sh; then
  666. # if libltdl is libtoolized, it is assumed to be stand-alone and
  667. # installed unless the command line overrides it (tested above)
  668. enable_ltdl_install=yes
  669. else
  670. echo "configure: warning: *** The top-level configure must select either" 1>&2
  671. echo "configure: warning: *** A""C_LIBLTDL_INSTALLABLE or A""C_LIBLTDL_CONVENIENCE." 1>&2
  672. { echo "configure: error: *** Maybe you want to --enable-ltdl-install?" 1>&2; exit 1; }
  673. fi
  674. fi
  675. # expand $ac_aux_dir to an absolute path
  676. am_aux_dir=`CDPATH=:; cd $ac_aux_dir && pwd`
  677. # Find a good install program. We prefer a C program (faster),
  678. # so one script is as good as another. But avoid the broken or
  679. # incompatible versions:
  680. # SysV /etc/install, /usr/sbin/install
  681. # SunOS /usr/etc/install
  682. # IRIX /sbin/install
  683. # AIX /bin/install
  684. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  685. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  686. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  687. # ./install, which can be erroneously created by make from ./install.sh.
  688. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  689. echo "configure:780: checking for a BSD compatible install" >&5
  690. if test -z "$INSTALL"; then
  691. if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  692. echo $ac_n "(cached) $ac_c" 1>&6
  693. else
  694. IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
  695. for ac_dir in $PATH; do
  696. # Account for people who put trailing slashes in PATH elements.
  697. case "$ac_dir/" in
  698. /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  699. *)
  700. # OSF1 and SCO ODT 3.0 have their own names for install.
  701. # Don't use installbsd from OSF since it installs stuff as root
  702. # by default.
  703. for ac_prog in ginstall scoinst install; do
  704. if test -f $ac_dir/$ac_prog; then
  705. if test $ac_prog = install &&
  706. grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  707. # AIX install. It has an incompatible calling convention.
  708. :
  709. else
  710. ac_cv_path_install="$ac_dir/$ac_prog -c"
  711. break 2
  712. fi
  713. fi
  714. done
  715. ;;
  716. esac
  717. done
  718. IFS="$ac_save_IFS"
  719. fi
  720. if test "${ac_cv_path_install+set}" = set; then
  721. INSTALL="$ac_cv_path_install"
  722. else
  723. # As a last resort, use the slow shell script. We don't cache a
  724. # path for INSTALL within a source directory, because that will
  725. # break other packages using the cache if that directory is
  726. # removed, or if the path is relative.
  727. INSTALL="$ac_install_sh"
  728. fi
  729. fi
  730. echo "$ac_t""$INSTALL" 1>&6
  731. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  732. # It thinks the first close brace ends the variable substitution.
  733. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  734. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
  735. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  736. echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
  737. echo "configure:833: checking whether build environment is sane" >&5
  738. # Just in case
  739. sleep 1
  740. echo timestamp > conftest.file
  741. # Do `set' in a subshell so we don't clobber the current shell's
  742. # arguments. Must try -L first in case configure is actually a
  743. # symlink; some systems play weird games with the mod time of symlinks
  744. # (eg FreeBSD returns the mod time of the symlink's containing
  745. # directory).
  746. if (
  747. set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  748. if test "$*" = "X"; then
  749. # -L didn't work.
  750. set X `ls -t $srcdir/configure conftest.file`
  751. fi
  752. rm -f conftest.file
  753. if test "$*" != "X $srcdir/configure conftest.file" \
  754. && test "$*" != "X conftest.file $srcdir/configure"; then
  755. # If neither matched, then we have a broken ls. This can happen
  756. # if, for instance, CONFIG_SHELL is bash and it inherits a
  757. # broken ls alias from the environment. This has actually
  758. # happened. Such a system could not be considered "sane".
  759. { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
  760. alias in your environment" 1>&2; exit 1; }
  761. fi
  762. test "$2" = conftest.file
  763. )
  764. then
  765. # Ok.
  766. :
  767. else
  768. { echo "configure: error: newly created file is older than distributed files!
  769. Check your system clock" 1>&2; exit 1; }
  770. fi
  771. echo "$ac_t""yes" 1>&6
  772. if test "$program_transform_name" = s,x,x,; then
  773. program_transform_name=
  774. else
  775. # Double any \ or $. echo might interpret backslashes.
  776. cat <<\EOF_SED > conftestsed
  777. s,\\,\\\\,g; s,\$,$$,g
  778. EOF_SED
  779. program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
  780. rm -f conftestsed
  781. fi
  782. test "$program_prefix" != NONE &&
  783. program_transform_name="s,^,${program_prefix},; $program_transform_name"
  784. # Use a double $ so make ignores it.
  785. test "$program_suffix" != NONE &&
  786. program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
  787. # sed with no file args requires a program.
  788. test "$program_transform_name" = "" && program_transform_name="s,x,x,"
  789. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  790. # Use eval to expand $SHELL
  791. if eval "$MISSING --run true"; then
  792. am_missing_run="$MISSING --run "
  793. else
  794. am_missing_run=
  795. am_backtick='`'
  796. echo "configure: warning: ${am_backtick}missing' script is too old or missing" 1>&2
  797. fi
  798. for ac_prog in mawk gawk nawk awk
  799. do
  800. # Extract the first word of "$ac_prog", so it can be a program name with args.
  801. set dummy $ac_prog; ac_word=$2
  802. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  803. echo "configure:904: checking for $ac_word" >&5
  804. if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
  805. echo $ac_n "(cached) $ac_c" 1>&6
  806. else
  807. if test -n "$AWK"; then
  808. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  809. else
  810. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  811. ac_dummy="$PATH"
  812. for ac_dir in $ac_dummy; do
  813. test -z "$ac_dir" && ac_dir=.
  814. if test -f $ac_dir/$ac_word; then
  815. ac_cv_prog_AWK="$ac_prog"
  816. break
  817. fi
  818. done
  819. IFS="$ac_save_ifs"
  820. fi
  821. fi
  822. AWK="$ac_cv_prog_AWK"
  823. if test -n "$AWK"; then
  824. echo "$ac_t""$AWK" 1>&6
  825. else
  826. echo "$ac_t""no" 1>&6
  827. fi
  828. test -n "$AWK" && break
  829. done
  830. echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
  831. echo "configure:934: checking whether ${MAKE-make} sets \${MAKE}" >&5
  832. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
  833. if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
  834. echo $ac_n "(cached) $ac_c" 1>&6
  835. else
  836. cat > conftestmake <<\EOF
  837. all:
  838. @echo 'ac_maketemp="${MAKE}"'
  839. EOF
  840. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  841. eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
  842. if test -n "$ac_maketemp"; then
  843. eval ac_cv_prog_make_${ac_make}_set=yes
  844. else
  845. eval ac_cv_prog_make_${ac_make}_set=no
  846. fi
  847. rm -f conftestmake
  848. fi
  849. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  850. echo "$ac_t""yes" 1>&6
  851. SET_MAKE=
  852. else
  853. echo "$ac_t""no" 1>&6
  854. SET_MAKE="MAKE=${MAKE-make}"
  855. fi
  856. # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
  857. if test "${enable_dependency_tracking+set}" = set; then
  858. enableval="$enable_dependency_tracking"
  859. :
  860. fi
  861. if test "x$enable_dependency_tracking" != xno; then
  862. am_depcomp="$ac_aux_dir/depcomp"
  863. AMDEPBACKSLASH='\'
  864. fi
  865. if test "x$enable_dependency_tracking" != xno; then
  866. AMDEP_TRUE=
  867. AMDEP_FALSE='#'
  868. else
  869. AMDEP_TRUE='#'
  870. AMDEP_FALSE=
  871. fi
  872. rm -f .deps 2>/dev/null
  873. mkdir .deps 2>/dev/null
  874. if test -d .deps; then
  875. DEPDIR=.deps
  876. else
  877. # MS-DOS does not allow filenames that begin with a dot.
  878. DEPDIR=_deps
  879. fi
  880. rmdir .deps 2>/dev/null
  881. # test to see if srcdir already configured
  882. if test "`CDPATH=:; cd $srcdir && pwd`" != "`pwd`" &&
  883. test -f $srcdir/config.status; then
  884. { echo "configure: error: source directory already configured; run \"make distclean\" there first" 1>&2; exit 1; }
  885. fi
  886. # Define the identity of the package.
  887. PACKAGE=libltdl
  888. VERSION=1.2
  889. # Autoconf 2.50 wants to disallow AM_ names. We explicitly allow
  890. # the ones we care about.
  891. # Autoconf 2.50 always computes EXEEXT. However we need to be
  892. # compatible with 2.13, for now. So we always define EXEEXT, but we
  893. # don't compute it.
  894. # Similar for OBJEXT -- only we only use OBJEXT if the user actually
  895. # requests that it be used. This is a bit dumb.
  896. : ${OBJEXT=o}
  897. # Some tools Automake needs.
  898. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
  899. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  900. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
  901. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  902. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  903. AMTAR=${AMTAR-"${am_missing_run}tar"}
  904. install_sh=${install_sh-"$am_aux_dir/install-sh"}
  905. INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  906. # We need awk for the "check" target. The system "awk" is bad on
  907. # some platforms.
  908. echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
  909. echo "configure:1047: checking whether to enable maintainer-specific portions of Makefiles" >&5
  910. # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
  911. if test "${enable_maintainer_mode+set}" = set; then
  912. enableval="$enable_maintainer_mode"
  913. USE_MAINTAINER_MODE=$enableval
  914. else
  915. USE_MAINTAINER_MODE=no
  916. fi
  917. echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
  918. if test $USE_MAINTAINER_MODE = yes; then
  919. MAINTAINER_MODE_TRUE=
  920. MAINTAINER_MODE_FALSE='#'
  921. else
  922. MAINTAINER_MODE_TRUE='#'
  923. MAINTAINER_MODE_FALSE=
  924. fi
  925. MAINT=$MAINTAINER_MODE_TRUE
  926. # Extract the first word of "gcc", so it can be a program name with args.
  927. set dummy gcc; ac_word=$2
  928. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  929. echo "configure:1073: checking for $ac_word" >&5
  930. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  931. echo $ac_n "(cached) $ac_c" 1>&6
  932. else
  933. if test -n "$CC"; then
  934. ac_cv_prog_CC="$CC" # Let the user override the test.
  935. else
  936. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  937. ac_dummy="$PATH"
  938. for ac_dir in $ac_dummy; do
  939. test -z "$ac_dir" && ac_dir=.
  940. if test -f $ac_dir/$ac_word; then
  941. ac_cv_prog_CC="gcc"
  942. break
  943. fi
  944. done
  945. IFS="$ac_save_ifs"
  946. fi
  947. fi
  948. CC="$ac_cv_prog_CC"
  949. if test -n "$CC"; then
  950. echo "$ac_t""$CC" 1>&6
  951. else
  952. echo "$ac_t""no" 1>&6
  953. fi
  954. if test -z "$CC"; then
  955. # Extract the first word of "cc", so it can be a program name with args.
  956. set dummy cc; ac_word=$2
  957. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  958. echo "configure:1103: checking for $ac_word" >&5
  959. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  960. echo $ac_n "(cached) $ac_c" 1>&6
  961. else
  962. if test -n "$CC"; then
  963. ac_cv_prog_CC="$CC" # Let the user override the test.
  964. else
  965. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  966. ac_prog_rejected=no
  967. ac_dummy="$PATH"
  968. for ac_dir in $ac_dummy; do
  969. test -z "$ac_dir" && ac_dir=.
  970. if test -f $ac_dir/$ac_word; then
  971. if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  972. ac_prog_rejected=yes
  973. continue
  974. fi
  975. ac_cv_prog_CC="cc"
  976. break
  977. fi
  978. done
  979. IFS="$ac_save_ifs"
  980. if test $ac_prog_rejected = yes; then
  981. # We found a bogon in the path, so make sure we never use it.
  982. set dummy $ac_cv_prog_CC
  983. shift
  984. if test $# -gt 0; then
  985. # We chose a different compiler from the bogus one.
  986. # However, it has the same basename, so the bogon will be chosen
  987. # first if we set CC to just the basename; use the full file name.
  988. shift
  989. set dummy "$ac_dir/$ac_word" "$@"
  990. shift
  991. ac_cv_prog_CC="$@"
  992. fi
  993. fi
  994. fi
  995. fi
  996. CC="$ac_cv_prog_CC"
  997. if test -n "$CC"; then
  998. echo "$ac_t""$CC" 1>&6
  999. else
  1000. echo "$ac_t""no" 1>&6
  1001. fi
  1002. if test -z "$CC"; then
  1003. case "`uname -s`" in
  1004. *win32* | *WIN32*)
  1005. # Extract the first word of "cl", so it can be a program name with args.
  1006. set dummy cl; ac_word=$2
  1007. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1008. echo "configure:1154: checking for $ac_word" >&5
  1009. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  1010. echo $ac_n "(cached) $ac_c" 1>&6
  1011. else
  1012. if test -n "$CC"; then
  1013. ac_cv_prog_CC="$CC" # Let the user override the test.
  1014. else
  1015. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1016. ac_dummy="$PATH"
  1017. for ac_dir in $ac_dummy; do
  1018. test -z "$ac_dir" && ac_dir=.
  1019. if test -f $ac_dir/$ac_word; then
  1020. ac_cv_prog_CC="cl"
  1021. break
  1022. fi
  1023. done
  1024. IFS="$ac_save_ifs"
  1025. fi
  1026. fi
  1027. CC="$ac_cv_prog_CC"
  1028. if test -n "$CC"; then
  1029. echo "$ac_t""$CC" 1>&6
  1030. else
  1031. echo "$ac_t""no" 1>&6
  1032. fi
  1033. ;;
  1034. esac
  1035. fi
  1036. test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  1037. fi
  1038. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  1039. echo "configure:1186: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
  1040. ac_ext=c
  1041. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  1042. ac_cpp='$CPP $CPPFLAGS'
  1043. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  1044. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  1045. cross_compiling=$ac_cv_prog_cc_cross
  1046. cat > conftest.$ac_ext << EOF
  1047. #line 1197 "configure"
  1048. #include "confdefs.h"
  1049. main(){return(0);}
  1050. EOF
  1051. if { (eval echo configure:1202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1052. ac_cv_prog_cc_works=yes
  1053. # If we can't run a trivial program, we are probably using a cross compiler.
  1054. if (./conftest; exit) 2>/dev/null; then
  1055. ac_cv_prog_cc_cross=no
  1056. else
  1057. ac_cv_prog_cc_cross=yes
  1058. fi
  1059. else
  1060. echo "configure: failed program was:" >&5
  1061. cat conftest.$ac_ext >&5
  1062. ac_cv_prog_cc_works=no
  1063. fi
  1064. rm -fr conftest*
  1065. ac_ext=c
  1066. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  1067. ac_cpp='$CPP $CPPFLAGS'
  1068. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  1069. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  1070. cross_compiling=$ac_cv_prog_cc_cross
  1071. echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
  1072. if test $ac_cv_prog_cc_works = no; then
  1073. { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
  1074. fi
  1075. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  1076. echo "configure:1228: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
  1077. echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
  1078. cross_compiling=$ac_cv_prog_cc_cross
  1079. echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  1080. echo "configure:1233: checking whether we are using GNU C" >&5
  1081. if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  1082. echo $ac_n "(cached) $ac_c" 1>&6
  1083. else
  1084. cat > conftest.c <<EOF
  1085. #ifdef __GNUC__
  1086. yes;
  1087. #endif
  1088. EOF
  1089. if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1242: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  1090. ac_cv_prog_gcc=yes
  1091. else
  1092. ac_cv_prog_gcc=no
  1093. fi
  1094. fi
  1095. echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  1096. if test $ac_cv_prog_gcc = yes; then
  1097. GCC=yes
  1098. else
  1099. GCC=
  1100. fi
  1101. ac_test_CFLAGS="${CFLAGS+set}"
  1102. ac_save_CFLAGS="$CFLAGS"
  1103. CFLAGS=
  1104. echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  1105. echo "configure:1261: checking whether ${CC-cc} accepts -g" >&5
  1106. if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
  1107. echo $ac_n "(cached) $ac_c" 1>&6
  1108. else
  1109. echo 'void f(){}' > conftest.c
  1110. if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  1111. ac_cv_prog_cc_g=yes
  1112. else
  1113. ac_cv_prog_cc_g=no
  1114. fi
  1115. rm -f conftest*
  1116. fi
  1117. echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
  1118. if test "$ac_test_CFLAGS" = set; then
  1119. CFLAGS="$ac_save_CFLAGS"
  1120. elif test $ac_cv_prog_cc_g = yes; then
  1121. if test "$GCC" = yes; then
  1122. CFLAGS="-g -O2"
  1123. else
  1124. CFLAGS="-g"
  1125. fi
  1126. else
  1127. if test "$GCC" = yes; then
  1128. CFLAGS="-O2"
  1129. else
  1130. CFLAGS=
  1131. fi
  1132. fi
  1133. am_make=${MAKE-make}
  1134. cat > confinc << 'END'
  1135. doit:
  1136. @echo done
  1137. END
  1138. # If we don't find an include directive, just comment out the code.
  1139. echo $ac_n "checking for style of include used by $am_make""... $ac_c" 1>&6
  1140. echo "configure:1300: checking for style of include used by $am_make" >&5
  1141. am__include='#'
  1142. am__quote=
  1143. _am_result=none
  1144. # First try GNU make style include.
  1145. echo "include confinc" > confmf
  1146. # We grep out `Entering directory' and `Leaving directory'
  1147. # messages which can occur if `w' ends up in MAKEFLAGS.
  1148. # In particular we don't look at `^make:' because GNU make might
  1149. # be invoked under some other name (usually "gmake"), in which
  1150. # case it prints its new name instead of `make'.
  1151. if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
  1152. am__include=include
  1153. am__quote=
  1154. _am_result=GNU
  1155. fi
  1156. # Now try BSD make style include.
  1157. if test "$am__include" = "#"; then
  1158. echo '.include "confinc"' > confmf
  1159. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  1160. am__include=.include
  1161. am__quote='"'
  1162. _am_result=BSD
  1163. fi
  1164. fi
  1165. echo "$ac_t""$_am_result" 1>&6
  1166. rm -f confinc confmf
  1167. depcc="$CC" am_compiler_list=
  1168. echo $ac_n "checking dependency style of $depcc""... $ac_c" 1>&6
  1169. echo "configure:1334: checking dependency style of $depcc" >&5
  1170. if eval "test \"`echo '$''{'am_cv_CC_dependencies_compiler_type'+set}'`\" = set"; then
  1171. echo $ac_n "(cached) $ac_c" 1>&6
  1172. else
  1173. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  1174. # We make a subdir and do the tests there. Otherwise we can end up
  1175. # making bogus files that we don't know about and never remove. For
  1176. # instance it was reported that on HP-UX the gcc test will end up
  1177. # making a dummy file named `D' -- because `-MD' means `put the output
  1178. # in D'.
  1179. mkdir conftest.dir
  1180. # Copy depcomp to subdir because otherwise we won't find it if we're
  1181. # using a relative directory.
  1182. cp "$am_depcomp" conftest.dir
  1183. cd conftest.dir
  1184. am_cv_CC_dependencies_compiler_type=none
  1185. if test "$am_compiler_list" = ""; then
  1186. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  1187. fi
  1188. for depmode in $am_compiler_list; do
  1189. # We need to recreate these files for each test, as the compiler may
  1190. # overwrite some of them when testing with obscure command lines.
  1191. # This happens at least with the AIX C compiler.
  1192. echo '#include "conftest.h"' > conftest.c
  1193. echo 'int i;' > conftest.h
  1194. echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
  1195. case $depmode in
  1196. nosideeffect)
  1197. # after this tag, mechanisms are not by side-effect, so they'll
  1198. # only be used when explicitly requested
  1199. if test "x$enable_dependency_tracking" = xyes; then
  1200. continue
  1201. else
  1202. break
  1203. fi
  1204. ;;
  1205. none) break ;;
  1206. esac
  1207. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  1208. # mode. It turns out that the SunPro C++ compiler does not properly
  1209. # handle `-M -o', and we need to detect this.
  1210. if depmode=$depmode \
  1211. source=conftest.c object=conftest.o \
  1212. depfile=conftest.Po tmpdepfile=conftest.TPo \
  1213. $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
  1214. grep conftest.h conftest.Po > /dev/null 2>&1 &&
  1215. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  1216. am_cv_CC_dependencies_compiler_type=$depmode
  1217. break
  1218. fi
  1219. done
  1220. cd ..
  1221. rm -rf conftest.dir
  1222. else
  1223. am_cv_CC_dependencies_compiler_type=none
  1224. fi
  1225. fi
  1226. echo "$ac_t""$am_cv_CC_dependencies_compiler_type" 1>&6
  1227. CCDEPMODE="depmode=$am_cv_CC_dependencies_compiler_type"
  1228. echo $ac_n "checking for working const""... $ac_c" 1>&6
  1229. echo "configure:1401: checking for working const" >&5
  1230. if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
  1231. echo $ac_n "(cached) $ac_c" 1>&6
  1232. else
  1233. cat > conftest.$ac_ext <<EOF
  1234. #line 1406 "configure"
  1235. #include "confdefs.h"
  1236. int main() {
  1237. /* Ultrix mips cc rejects this. */
  1238. typedef int charset[2]; const charset x;
  1239. /* SunOS 4.1.1 cc rejects this. */
  1240. char const *const *ccp;
  1241. char **p;
  1242. /* NEC SVR4.0.2 mips cc rejects this. */
  1243. struct point {int x, y;};
  1244. static struct point const zero = {0,0};
  1245. /* AIX XL C 1.02.0.0 rejects this.
  1246. It does not let you subtract one const X* pointer from another in an arm
  1247. of an if-expression whose if-part is not a constant expression */
  1248. const char *g = "string";
  1249. ccp = &g + (g ? g-g : 0);
  1250. /* HPUX 7.0 cc rejects these. */
  1251. ++ccp;
  1252. p = (char**) ccp;
  1253. ccp = (char const *const *) p;
  1254. { /* SCO 3.2v4 cc rejects this. */
  1255. char *t;
  1256. char const *s = 0 ? (char *) 0 : (char const *) 0;
  1257. *t++ = 0;
  1258. }
  1259. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  1260. int x[] = {25, 17};
  1261. const int *foo = &x[0];
  1262. ++foo;
  1263. }
  1264. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  1265. typedef const int *iptr;
  1266. iptr p = 0;
  1267. ++p;
  1268. }
  1269. { /* AIX XL C 1.02.0.0 rejects this saying
  1270. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  1271. struct s { int j; const int *ap[3]; };
  1272. struct s *b; b->j = 5;
  1273. }
  1274. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  1275. const int foo = 10;
  1276. }
  1277. ; return 0; }
  1278. EOF
  1279. if { (eval echo configure:1455: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1280. rm -rf conftest*
  1281. ac_cv_c_const=yes
  1282. else
  1283. echo "configure: failed program was:" >&5
  1284. cat conftest.$ac_ext >&5
  1285. rm -rf conftest*
  1286. ac_cv_c_const=no
  1287. fi
  1288. rm -f conftest*
  1289. fi
  1290. echo "$ac_t""$ac_cv_c_const" 1>&6
  1291. if test $ac_cv_c_const = no; then
  1292. cat >> confdefs.h <<\EOF
  1293. #define const
  1294. EOF
  1295. fi
  1296. echo $ac_n "checking for inline""... $ac_c" 1>&6
  1297. echo "configure:1476: checking for inline" >&5
  1298. if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
  1299. echo $ac_n "(cached) $ac_c" 1>&6
  1300. else
  1301. ac_cv_c_inline=no
  1302. for ac_kw in inline __inline__ __inline; do
  1303. cat > conftest.$ac_ext <<EOF
  1304. #line 1483 "configure"
  1305. #include "confdefs.h"
  1306. int main() {
  1307. } $ac_kw foo() {
  1308. ; return 0; }
  1309. EOF
  1310. if { (eval echo configure:1490: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1311. rm -rf conftest*
  1312. ac_cv_c_inline=$ac_kw; break
  1313. else
  1314. echo "configure: failed program was:" >&5
  1315. cat conftest.$ac_ext >&5
  1316. fi
  1317. rm -f conftest*
  1318. done
  1319. fi
  1320. echo "$ac_t""$ac_cv_c_inline" 1>&6
  1321. case "$ac_cv_c_inline" in
  1322. inline | yes) ;;
  1323. no) cat >> confdefs.h <<\EOF
  1324. #define inline
  1325. EOF
  1326. ;;
  1327. *) cat >> confdefs.h <<EOF
  1328. #define inline $ac_cv_c_inline
  1329. EOF
  1330. ;;
  1331. esac
  1332. # Find the correct PATH separator. Usually this is `:', but
  1333. # DJGPP uses `;' like DOS.
  1334. if test "X${PATH_SEPARATOR+set}" != Xset; then
  1335. UNAME=${UNAME-`uname 2>/dev/null`}
  1336. case X$UNAME in
  1337. *-DOS) lt_cv_sys_path_separator=';' ;;
  1338. *) lt_cv_sys_path_separator=':' ;;
  1339. esac
  1340. PATH_SEPARATOR=$lt_cv_sys_path_separator
  1341. fi
  1342. echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
  1343. echo "configure:1529: checking for Cygwin environment" >&5
  1344. if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
  1345. echo $ac_n "(cached) $ac_c" 1>&6
  1346. else
  1347. cat > conftest.$ac_ext <<EOF
  1348. #line 1534 "configure"
  1349. #include "confdefs.h"
  1350. int main() {
  1351. #ifndef __CYGWIN__
  1352. #define __CYGWIN__ __CYGWIN32__
  1353. #endif
  1354. return __CYGWIN__;
  1355. ; return 0; }
  1356. EOF
  1357. if { (eval echo configure:1545: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1358. rm -rf conftest*
  1359. ac_cv_cygwin=yes
  1360. else
  1361. echo "configure: failed program was:" >&5
  1362. cat conftest.$ac_ext >&5
  1363. rm -rf conftest*
  1364. ac_cv_cygwin=no
  1365. fi
  1366. rm -f conftest*
  1367. rm -f conftest*
  1368. fi
  1369. echo "$ac_t""$ac_cv_cygwin" 1>&6
  1370. CYGWIN=
  1371. test "$ac_cv_cygwin" = yes && CYGWIN=yes
  1372. echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
  1373. echo "configure:1562: checking for mingw32 environment" >&5
  1374. if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
  1375. echo $ac_n "(cached) $ac_c" 1>&6
  1376. else
  1377. cat > conftest.$ac_ext <<EOF
  1378. #line 1567 "configure"
  1379. #include "confdefs.h"
  1380. int main() {
  1381. return __MINGW32__;
  1382. ; return 0; }
  1383. EOF
  1384. if { (eval echo configure:1574: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1385. rm -rf conftest*
  1386. ac_cv_mingw32=yes
  1387. else
  1388. echo "configure: failed program was:" >&5
  1389. cat conftes…

Large files files are truncated, but you can click here to view the full file