configure 38 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated automatically using autoconf version 2.12
  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. # Initialize some variables set by options.
  13. # The variables have the same names as the options, with
  14. # dashes changed to underlines.
  15. build=NONE
  16. cache_file=./config.cache
  17. exec_prefix=NONE
  18. host=NONE
  19. no_create=
  20. nonopt=NONE
  21. no_recursion=
  22. prefix=NONE
  23. program_prefix=NONE
  24. program_suffix=NONE
  25. program_transform_name=s,x,x,
  26. silent=
  27. site=
  28. srcdir=
  29. target=NONE
  30. verbose=
  31. x_includes=NONE
  32. x_libraries=NONE
  33. bindir='${exec_prefix}/bin'
  34. sbindir='${exec_prefix}/sbin'
  35. libexecdir='${exec_prefix}/libexec'
  36. datadir='${prefix}/share'
  37. sysconfdir='${prefix}/etc'
  38. sharedstatedir='${prefix}/com'
  39. localstatedir='${prefix}/var'
  40. libdir='${exec_prefix}/lib'
  41. includedir='${prefix}/include'
  42. oldincludedir='/usr/include'
  43. infodir='${prefix}/info'
  44. mandir='${prefix}/man'
  45. # Initialize some other variables.
  46. subdirs=
  47. MFLAGS= MAKEFLAGS=
  48. # Maximum number of lines to put in a shell here document.
  49. ac_max_here_lines=12
  50. ac_prev=
  51. for ac_option
  52. do
  53. # If the previous option needs an argument, assign it.
  54. if test -n "$ac_prev"; then
  55. eval "$ac_prev=\$ac_option"
  56. ac_prev=
  57. continue
  58. fi
  59. case "$ac_option" in
  60. -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  61. *) ac_optarg= ;;
  62. esac
  63. # Accept the important Cygnus configure options, so we can diagnose typos.
  64. case "$ac_option" in
  65. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  66. ac_prev=bindir ;;
  67. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  68. bindir="$ac_optarg" ;;
  69. -build | --build | --buil | --bui | --bu)
  70. ac_prev=build ;;
  71. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  72. build="$ac_optarg" ;;
  73. -cache-file | --cache-file | --cache-fil | --cache-fi \
  74. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  75. ac_prev=cache_file ;;
  76. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  77. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  78. cache_file="$ac_optarg" ;;
  79. -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  80. ac_prev=datadir ;;
  81. -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  82. | --da=*)
  83. datadir="$ac_optarg" ;;
  84. -disable-* | --disable-*)
  85. ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  86. # Reject names that are not valid shell variable names.
  87. if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  88. { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  89. fi
  90. ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  91. eval "enable_${ac_feature}=no" ;;
  92. -enable-* | --enable-*)
  93. ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  94. # Reject names that are not valid shell variable names.
  95. if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  96. { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  97. fi
  98. ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  99. case "$ac_option" in
  100. *=*) ;;
  101. *) ac_optarg=yes ;;
  102. esac
  103. eval "enable_${ac_feature}='$ac_optarg'" ;;
  104. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  105. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  106. | --exec | --exe | --ex)
  107. ac_prev=exec_prefix ;;
  108. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  109. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  110. | --exec=* | --exe=* | --ex=*)
  111. exec_prefix="$ac_optarg" ;;
  112. -gas | --gas | --ga | --g)
  113. # Obsolete; use --with-gas.
  114. with_gas=yes ;;
  115. -help | --help | --hel | --he)
  116. # Omit some internal or obsolete options to make the list less imposing.
  117. # This message is too long to be a string in the A/UX 3.1 sh.
  118. cat << EOF
  119. Usage: configure [options] [host]
  120. Options: [defaults in brackets after descriptions]
  121. Configuration:
  122. --cache-file=FILE cache test results in FILE
  123. --help print this message
  124. --no-create do not create output files
  125. --quiet, --silent do not print \`checking...' messages
  126. --version print the version of autoconf that created configure
  127. Directory and file names:
  128. --prefix=PREFIX install architecture-independent files in PREFIX
  129. [$ac_default_prefix]
  130. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  131. [same as prefix]
  132. --bindir=DIR user executables in DIR [EPREFIX/bin]
  133. --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
  134. --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
  135. --datadir=DIR read-only architecture-independent data in DIR
  136. [PREFIX/share]
  137. --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
  138. --sharedstatedir=DIR modifiable architecture-independent data in DIR
  139. [PREFIX/com]
  140. --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
  141. --libdir=DIR object code libraries in DIR [EPREFIX/lib]
  142. --includedir=DIR C header files in DIR [PREFIX/include]
  143. --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
  144. --infodir=DIR info documentation in DIR [PREFIX/info]
  145. --mandir=DIR man documentation in DIR [PREFIX/man]
  146. --srcdir=DIR find the sources in DIR [configure dir or ..]
  147. --program-prefix=PREFIX prepend PREFIX to installed program names
  148. --program-suffix=SUFFIX append SUFFIX to installed program names
  149. --program-transform-name=PROGRAM
  150. run sed PROGRAM on installed program names
  151. EOF
  152. cat << EOF
  153. Host type:
  154. --build=BUILD configure for building on BUILD [BUILD=HOST]
  155. --host=HOST configure for HOST [guessed]
  156. --target=TARGET configure for TARGET [TARGET=HOST]
  157. Features and packages:
  158. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  159. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  160. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  161. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  162. --x-includes=DIR X include files are in DIR
  163. --x-libraries=DIR X library files are in DIR
  164. EOF
  165. if test -n "$ac_help"; then
  166. echo "--enable and --with options recognized:$ac_help"
  167. fi
  168. exit 0 ;;
  169. -host | --host | --hos | --ho)
  170. ac_prev=host ;;
  171. -host=* | --host=* | --hos=* | --ho=*)
  172. host="$ac_optarg" ;;
  173. -includedir | --includedir | --includedi | --included | --include \
  174. | --includ | --inclu | --incl | --inc)
  175. ac_prev=includedir ;;
  176. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  177. | --includ=* | --inclu=* | --incl=* | --inc=*)
  178. includedir="$ac_optarg" ;;
  179. -infodir | --infodir | --infodi | --infod | --info | --inf)
  180. ac_prev=infodir ;;
  181. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  182. infodir="$ac_optarg" ;;
  183. -libdir | --libdir | --libdi | --libd)
  184. ac_prev=libdir ;;
  185. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  186. libdir="$ac_optarg" ;;
  187. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  188. | --libexe | --libex | --libe)
  189. ac_prev=libexecdir ;;
  190. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  191. | --libexe=* | --libex=* | --libe=*)
  192. libexecdir="$ac_optarg" ;;
  193. -localstatedir | --localstatedir | --localstatedi | --localstated \
  194. | --localstate | --localstat | --localsta | --localst \
  195. | --locals | --local | --loca | --loc | --lo)
  196. ac_prev=localstatedir ;;
  197. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  198. | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  199. | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  200. localstatedir="$ac_optarg" ;;
  201. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  202. ac_prev=mandir ;;
  203. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  204. mandir="$ac_optarg" ;;
  205. -nfp | --nfp | --nf)
  206. # Obsolete; use --without-fp.
  207. with_fp=no ;;
  208. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  209. | --no-cr | --no-c)
  210. no_create=yes ;;
  211. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  212. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  213. no_recursion=yes ;;
  214. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  215. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  216. | --oldin | --oldi | --old | --ol | --o)
  217. ac_prev=oldincludedir ;;
  218. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  219. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  220. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  221. oldincludedir="$ac_optarg" ;;
  222. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  223. ac_prev=prefix ;;
  224. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  225. prefix="$ac_optarg" ;;
  226. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  227. | --program-pre | --program-pr | --program-p)
  228. ac_prev=program_prefix ;;
  229. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  230. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  231. program_prefix="$ac_optarg" ;;
  232. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  233. | --program-suf | --program-su | --program-s)
  234. ac_prev=program_suffix ;;
  235. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  236. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  237. program_suffix="$ac_optarg" ;;
  238. -program-transform-name | --program-transform-name \
  239. | --program-transform-nam | --program-transform-na \
  240. | --program-transform-n | --program-transform- \
  241. | --program-transform | --program-transfor \
  242. | --program-transfo | --program-transf \
  243. | --program-trans | --program-tran \
  244. | --progr-tra | --program-tr | --program-t)
  245. ac_prev=program_transform_name ;;
  246. -program-transform-name=* | --program-transform-name=* \
  247. | --program-transform-nam=* | --program-transform-na=* \
  248. | --program-transform-n=* | --program-transform-=* \
  249. | --program-transform=* | --program-transfor=* \
  250. | --program-transfo=* | --program-transf=* \
  251. | --program-trans=* | --program-tran=* \
  252. | --progr-tra=* | --program-tr=* | --program-t=*)
  253. program_transform_name="$ac_optarg" ;;
  254. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  255. | -silent | --silent | --silen | --sile | --sil)
  256. silent=yes ;;
  257. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  258. ac_prev=sbindir ;;
  259. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  260. | --sbi=* | --sb=*)
  261. sbindir="$ac_optarg" ;;
  262. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  263. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  264. | --sharedst | --shareds | --shared | --share | --shar \
  265. | --sha | --sh)
  266. ac_prev=sharedstatedir ;;
  267. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  268. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  269. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  270. | --sha=* | --sh=*)
  271. sharedstatedir="$ac_optarg" ;;
  272. -site | --site | --sit)
  273. ac_prev=site ;;
  274. -site=* | --site=* | --sit=*)
  275. site="$ac_optarg" ;;
  276. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  277. ac_prev=srcdir ;;
  278. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  279. srcdir="$ac_optarg" ;;
  280. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  281. | --syscon | --sysco | --sysc | --sys | --sy)
  282. ac_prev=sysconfdir ;;
  283. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  284. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  285. sysconfdir="$ac_optarg" ;;
  286. -target | --target | --targe | --targ | --tar | --ta | --t)
  287. ac_prev=target ;;
  288. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  289. target="$ac_optarg" ;;
  290. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  291. verbose=yes ;;
  292. -version | --version | --versio | --versi | --vers)
  293. echo "configure generated by autoconf version 2.12"
  294. exit 0 ;;
  295. -with-* | --with-*)
  296. ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  297. # Reject names that are not valid shell variable names.
  298. if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  299. { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  300. fi
  301. ac_package=`echo $ac_package| sed 's/-/_/g'`
  302. case "$ac_option" in
  303. *=*) ;;
  304. *) ac_optarg=yes ;;
  305. esac
  306. eval "with_${ac_package}='$ac_optarg'" ;;
  307. -without-* | --without-*)
  308. ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  309. # Reject names that are not valid shell variable names.
  310. if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  311. { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  312. fi
  313. ac_package=`echo $ac_package| sed 's/-/_/g'`
  314. eval "with_${ac_package}=no" ;;
  315. --x)
  316. # Obsolete; use --with-x.
  317. with_x=yes ;;
  318. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  319. | --x-incl | --x-inc | --x-in | --x-i)
  320. ac_prev=x_includes ;;
  321. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  322. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  323. x_includes="$ac_optarg" ;;
  324. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  325. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  326. ac_prev=x_libraries ;;
  327. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  328. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  329. x_libraries="$ac_optarg" ;;
  330. -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  331. ;;
  332. *)
  333. if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  334. echo "configure: warning: $ac_option: invalid host type" 1>&2
  335. fi
  336. if test "x$nonopt" != xNONE; then
  337. { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  338. fi
  339. nonopt="$ac_option"
  340. ;;
  341. esac
  342. done
  343. if test -n "$ac_prev"; then
  344. { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  345. fi
  346. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  347. # File descriptor usage:
  348. # 0 standard input
  349. # 1 file creation
  350. # 2 errors and warnings
  351. # 3 some systems may open it to /dev/tty
  352. # 4 used on the Kubota Titan
  353. # 6 checking for... messages and results
  354. # 5 compiler messages saved in config.log
  355. if test "$silent" = yes; then
  356. exec 6>/dev/null
  357. else
  358. exec 6>&1
  359. fi
  360. exec 5>./config.log
  361. echo "\
  362. This file contains any messages produced by compilers while
  363. running configure, to aid debugging if configure makes a mistake.
  364. " 1>&5
  365. # Strip out --no-create and --no-recursion so they do not pile up.
  366. # Also quote any args containing shell metacharacters.
  367. ac_configure_args=
  368. for ac_arg
  369. do
  370. case "$ac_arg" in
  371. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  372. | --no-cr | --no-c) ;;
  373. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  374. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  375. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  376. ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  377. *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  378. esac
  379. done
  380. # NLS nuisances.
  381. # Only set these to C if already set. These must not be set unconditionally
  382. # because not all systems understand e.g. LANG=C (notably SCO).
  383. # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
  384. # Non-C LC_CTYPE values break the ctype check.
  385. if test "${LANG+set}" = set; then LANG=C; export LANG; fi
  386. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  387. if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
  388. if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
  389. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  390. rm -rf conftest* confdefs.h
  391. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  392. echo > confdefs.h
  393. # A filename unique to this package, relative to the directory that
  394. # configure is in, which we can look for to find out if srcdir is correct.
  395. ac_unique_file=abuse
  396. # Find the source files, if location was not specified.
  397. if test -z "$srcdir"; then
  398. ac_srcdir_defaulted=yes
  399. # Try the directory containing this script, then its parent.
  400. ac_prog=$0
  401. ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  402. test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  403. srcdir=$ac_confdir
  404. if test ! -r $srcdir/$ac_unique_file; then
  405. srcdir=..
  406. fi
  407. else
  408. ac_srcdir_defaulted=no
  409. fi
  410. if test ! -r $srcdir/$ac_unique_file; then
  411. if test "$ac_srcdir_defaulted" = yes; then
  412. { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  413. else
  414. { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  415. fi
  416. fi
  417. srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  418. # Prefer explicitly selected file to automatically selected ones.
  419. if test -z "$CONFIG_SITE"; then
  420. if test "x$prefix" != xNONE; then
  421. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  422. else
  423. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  424. fi
  425. fi
  426. for ac_site_file in $CONFIG_SITE; do
  427. if test -r "$ac_site_file"; then
  428. echo "loading site script $ac_site_file"
  429. . "$ac_site_file"
  430. fi
  431. done
  432. if test -r "$cache_file"; then
  433. echo "loading cache $cache_file"
  434. . $cache_file
  435. else
  436. echo "creating cache $cache_file"
  437. > $cache_file
  438. fi
  439. ac_ext=c
  440. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  441. ac_cpp='$CPP $CPPFLAGS'
  442. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  443. ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  444. cross_compiling=$ac_cv_prog_cc_cross
  445. if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  446. # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  447. if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  448. ac_n= ac_c='
  449. ' ac_t=' '
  450. else
  451. ac_n=-n ac_c= ac_t=
  452. fi
  453. else
  454. ac_n= ac_c='\c' ac_t=
  455. fi
  456. ac_aux_dir=
  457. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  458. if test -f $ac_dir/install-sh; then
  459. ac_aux_dir=$ac_dir
  460. ac_install_sh="$ac_aux_dir/install-sh -c"
  461. break
  462. elif test -f $ac_dir/install.sh; then
  463. ac_aux_dir=$ac_dir
  464. ac_install_sh="$ac_aux_dir/install.sh -c"
  465. break
  466. fi
  467. done
  468. if test -z "$ac_aux_dir"; then
  469. { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  470. fi
  471. ac_config_guess=$ac_aux_dir/config.guess
  472. ac_config_sub=$ac_aux_dir/config.sub
  473. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  474. # Find a good install program. We prefer a C program (faster),
  475. # so one script is as good as another. But avoid the broken or
  476. # incompatible versions:
  477. # SysV /etc/install, /usr/sbin/install
  478. # SunOS /usr/etc/install
  479. # IRIX /sbin/install
  480. # AIX /bin/install
  481. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  482. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  483. # ./install, which can be erroneously created by make from ./install.sh.
  484. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  485. echo "configure:552: checking for a BSD compatible install" >&5
  486. if test -z "$INSTALL"; then
  487. if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  488. echo $ac_n "(cached) $ac_c" 1>&6
  489. else
  490. IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
  491. for ac_dir in $PATH; do
  492. # Account for people who put trailing slashes in PATH elements.
  493. case "$ac_dir/" in
  494. /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  495. *)
  496. # OSF1 and SCO ODT 3.0 have their own names for install.
  497. for ac_prog in ginstall installbsd scoinst install; do
  498. if test -f $ac_dir/$ac_prog; then
  499. if test $ac_prog = install &&
  500. grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  501. # AIX install. It has an incompatible calling convention.
  502. # OSF/1 installbsd also uses dspmsg, but is usable.
  503. :
  504. else
  505. ac_cv_path_install="$ac_dir/$ac_prog -c"
  506. break 2
  507. fi
  508. fi
  509. done
  510. ;;
  511. esac
  512. done
  513. IFS="$ac_save_IFS"
  514. fi
  515. if test "${ac_cv_path_install+set}" = set; then
  516. INSTALL="$ac_cv_path_install"
  517. else
  518. # As a last resort, use the slow shell script. We don't cache a
  519. # path for INSTALL within a source directory, because that will
  520. # break other packages using the cache if that directory is
  521. # removed, or if the path is relative.
  522. INSTALL="$ac_install_sh"
  523. fi
  524. fi
  525. echo "$ac_t""$INSTALL" 1>&6
  526. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  527. # It thinks the first close brace ends the variable substitution.
  528. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  529. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  530. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
  531. PACKAGE=abuse
  532. VERSION=2.0
  533. if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
  534. { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
  535. fi
  536. cat >> confdefs.h <<EOF
  537. #define PACKAGE "$PACKAGE"
  538. EOF
  539. cat >> confdefs.h <<EOF
  540. #define VERSION "$VERSION"
  541. EOF
  542. echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
  543. echo "configure:621: checking whether build environment is sane" >&5
  544. # Just in case
  545. sleep 1
  546. echo timestamp > conftestfile
  547. # Do `set' in a subshell so we don't clobber the current shell's
  548. # arguments. Must try -L first in case configure is actually a
  549. # symlink; some systems play weird games with the mod time of symlinks
  550. # (eg FreeBSD returns the mod time of the symlink's containing
  551. # directory).
  552. if (
  553. set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
  554. if test "" = "X"; then
  555. # -L didn't work.
  556. set X `ls -t $srcdir/configure conftestfile`
  557. fi
  558. test "$2" = conftestfile
  559. )
  560. then
  561. # Ok.
  562. :
  563. else
  564. echo "configure: warning: newly created file is older than distributed files!
  565. Check your system clock" 1>&2
  566. fi
  567. rm -f conftest*
  568. echo "$ac_t""yes" 1>&6
  569. if test "$program_transform_name" = s,x,x,; then
  570. program_transform_name=
  571. else
  572. # Double any \ or $. echo might interpret backslashes.
  573. cat <<\EOF_SED > conftestsed
  574. s,\\,\\\\,g; s,\$,$$,g
  575. EOF_SED
  576. program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
  577. rm -f conftestsed
  578. fi
  579. test "$program_prefix" != NONE &&
  580. program_transform_name="s,^,${program_prefix},; $program_transform_name"
  581. # Use a double $ so make ignores it.
  582. test "$program_suffix" != NONE &&
  583. program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
  584. # sed with no file args requires a program.
  585. test "$program_transform_name" = "" && program_transform_name="s,x,x,"
  586. missing_dir=`cd $ac_aux_dir && pwd`
  587. echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
  588. echo "configure:668: checking for working aclocal" >&5
  589. # Run test in a subshell; some versions of sh will print an error if
  590. # an executable is not found, even if stderr is redirected.
  591. # Redirect stdin to placate older versions of autoconf. Sigh.
  592. if (aclocal --version) < /dev/null > /dev/null 2>&1; then
  593. ACLOCAL=aclocal
  594. echo "$ac_t""found" 1>&6
  595. else
  596. ACLOCAL="$missing_dir/missing aclocal"
  597. echo "$ac_t""missing" 1>&6
  598. fi
  599. echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
  600. echo "configure:681: checking for working autoconf" >&5
  601. # Run test in a subshell; some versions of sh will print an error if
  602. # an executable is not found, even if stderr is redirected.
  603. # Redirect stdin to placate older versions of autoconf. Sigh.
  604. if (autoconf --version) < /dev/null > /dev/null 2>&1; then
  605. AUTOCONF=autoconf
  606. echo "$ac_t""found" 1>&6
  607. else
  608. AUTOCONF="$missing_dir/missing autoconf"
  609. echo "$ac_t""missing" 1>&6
  610. fi
  611. echo $ac_n "checking for working automake""... $ac_c" 1>&6
  612. echo "configure:694: checking for working automake" >&5
  613. # Run test in a subshell; some versions of sh will print an error if
  614. # an executable is not found, even if stderr is redirected.
  615. # Redirect stdin to placate older versions of autoconf. Sigh.
  616. if (automake --version) < /dev/null > /dev/null 2>&1; then
  617. AUTOMAKE=automake
  618. echo "$ac_t""found" 1>&6
  619. else
  620. AUTOMAKE="$missing_dir/missing automake"
  621. echo "$ac_t""missing" 1>&6
  622. fi
  623. echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
  624. echo "configure:707: checking for working autoheader" >&5
  625. # Run test in a subshell; some versions of sh will print an error if
  626. # an executable is not found, even if stderr is redirected.
  627. # Redirect stdin to placate older versions of autoconf. Sigh.
  628. if (autoheader --version) < /dev/null > /dev/null 2>&1; then
  629. AUTOHEADER=autoheader
  630. echo "$ac_t""found" 1>&6
  631. else
  632. AUTOHEADER="$missing_dir/missing autoheader"
  633. echo "$ac_t""missing" 1>&6
  634. fi
  635. echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
  636. echo "configure:720: checking for working makeinfo" >&5
  637. # Run test in a subshell; some versions of sh will print an error if
  638. # an executable is not found, even if stderr is redirected.
  639. # Redirect stdin to placate older versions of autoconf. Sigh.
  640. if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
  641. MAKEINFO=makeinfo
  642. echo "$ac_t""found" 1>&6
  643. else
  644. MAKEINFO="$missing_dir/missing makeinfo"
  645. echo "$ac_t""missing" 1>&6
  646. fi
  647. echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
  648. echo "configure:733: checking whether ${MAKE-make} sets \${MAKE}" >&5
  649. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
  650. if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
  651. echo $ac_n "(cached) $ac_c" 1>&6
  652. else
  653. cat > conftestmake <<\EOF
  654. all:
  655. @echo 'ac_maketemp="${MAKE}"'
  656. EOF
  657. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  658. eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
  659. if test -n "$ac_maketemp"; then
  660. eval ac_cv_prog_make_${ac_make}_set=yes
  661. else
  662. eval ac_cv_prog_make_${ac_make}_set=no
  663. fi
  664. rm -f conftestmake
  665. fi
  666. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  667. echo "$ac_t""yes" 1>&6
  668. SET_MAKE=
  669. else
  670. echo "$ac_t""no" 1>&6
  671. SET_MAKE="MAKE=${MAKE-make}"
  672. fi
  673. subdirs="abuse imlib"
  674. trap '' 1 2 15
  675. cat > confcache <<\EOF
  676. # This file is a shell script that caches the results of configure
  677. # tests run on this system so they can be shared between configure
  678. # scripts and configure runs. It is not useful on other systems.
  679. # If it contains results you don't want to keep, you may remove or edit it.
  680. #
  681. # By default, configure uses ./config.cache as the cache file,
  682. # creating it if it does not exist already. You can give configure
  683. # the --cache-file=FILE option to use a different cache file; that is
  684. # what configure does when it calls configure scripts in
  685. # subdirectories, so they share the cache.
  686. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  687. # config.status only pays attention to the cache file if you give it the
  688. # --recheck option to rerun configure.
  689. #
  690. EOF
  691. # The following way of writing the cache mishandles newlines in values,
  692. # but we know of no workaround that is simple, portable, and efficient.
  693. # So, don't put newlines in cache variables' values.
  694. # Ultrix sh set writes to stderr and can't be redirected directly,
  695. # and sets the high bit in the cache file unless we assign to the vars.
  696. (set) 2>&1 |
  697. case `(ac_space=' '; set) 2>&1` in
  698. *ac_space=\ *)
  699. # `set' does not quote correctly, so add quotes (double-quote substitution
  700. # turns \\\\ into \\, and sed turns \\ into \).
  701. sed -n \
  702. -e "s/'/'\\\\''/g" \
  703. -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
  704. ;;
  705. *)
  706. # `set' quotes correctly as required by POSIX, so do not add quotes.
  707. sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
  708. ;;
  709. esac >> confcache
  710. if cmp -s $cache_file confcache; then
  711. :
  712. else
  713. if test -w $cache_file; then
  714. echo "updating cache $cache_file"
  715. cat confcache > $cache_file
  716. else
  717. echo "not updating unwritable cache $cache_file"
  718. fi
  719. fi
  720. rm -f confcache
  721. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  722. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  723. # Let make expand exec_prefix.
  724. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  725. # Any assignment to VPATH causes Sun make to only execute
  726. # the first set of double-colon rules, so remove it if not needed.
  727. # If there is a colon in the path, we need to keep it.
  728. if test "x$srcdir" = x.; then
  729. ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
  730. fi
  731. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  732. # Transform confdefs.h into DEFS.
  733. # Protect against shell expansion while executing Makefile rules.
  734. # Protect against Makefile macro expansion.
  735. cat > conftest.defs <<\EOF
  736. s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
  737. s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
  738. s%\[%\\&%g
  739. s%\]%\\&%g
  740. s%\$%$$%g
  741. EOF
  742. DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
  743. rm -f conftest.defs
  744. # Without the "./", some shells look in PATH for config.status.
  745. : ${CONFIG_STATUS=./config.status}
  746. echo creating $CONFIG_STATUS
  747. rm -f $CONFIG_STATUS
  748. cat > $CONFIG_STATUS <<EOF
  749. #! /bin/sh
  750. # Generated automatically by configure.
  751. # Run this file to recreate the current configuration.
  752. # This directory was configured as follows,
  753. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  754. #
  755. # $0 $ac_configure_args
  756. #
  757. # Compiler output produced by configure, useful for debugging
  758. # configure, is in ./config.log if it exists.
  759. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  760. for ac_option
  761. do
  762. case "\$ac_option" in
  763. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  764. echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  765. exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  766. -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  767. echo "$CONFIG_STATUS generated by autoconf version 2.12"
  768. exit 0 ;;
  769. -help | --help | --hel | --he | --h)
  770. echo "\$ac_cs_usage"; exit 0 ;;
  771. *) echo "\$ac_cs_usage"; exit 1 ;;
  772. esac
  773. done
  774. ac_given_srcdir=$srcdir
  775. ac_given_INSTALL="$INSTALL"
  776. trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  777. EOF
  778. cat >> $CONFIG_STATUS <<EOF
  779. # Protect against being on the right side of a sed subst in config.status.
  780. sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  781. s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  782. $ac_vpsub
  783. $extrasub
  784. s%@CFLAGS@%$CFLAGS%g
  785. s%@CPPFLAGS@%$CPPFLAGS%g
  786. s%@CXXFLAGS@%$CXXFLAGS%g
  787. s%@DEFS@%$DEFS%g
  788. s%@LDFLAGS@%$LDFLAGS%g
  789. s%@LIBS@%$LIBS%g
  790. s%@exec_prefix@%$exec_prefix%g
  791. s%@prefix@%$prefix%g
  792. s%@program_transform_name@%$program_transform_name%g
  793. s%@bindir@%$bindir%g
  794. s%@sbindir@%$sbindir%g
  795. s%@libexecdir@%$libexecdir%g
  796. s%@datadir@%$datadir%g
  797. s%@sysconfdir@%$sysconfdir%g
  798. s%@sharedstatedir@%$sharedstatedir%g
  799. s%@localstatedir@%$localstatedir%g
  800. s%@libdir@%$libdir%g
  801. s%@includedir@%$includedir%g
  802. s%@oldincludedir@%$oldincludedir%g
  803. s%@infodir@%$infodir%g
  804. s%@mandir@%$mandir%g
  805. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  806. s%@INSTALL_DATA@%$INSTALL_DATA%g
  807. s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
  808. s%@PACKAGE@%$PACKAGE%g
  809. s%@VERSION@%$VERSION%g
  810. s%@ACLOCAL@%$ACLOCAL%g
  811. s%@AUTOCONF@%$AUTOCONF%g
  812. s%@AUTOMAKE@%$AUTOMAKE%g
  813. s%@AUTOHEADER@%$AUTOHEADER%g
  814. s%@MAKEINFO@%$MAKEINFO%g
  815. s%@SET_MAKE@%$SET_MAKE%g
  816. s%@subdirs@%$subdirs%g
  817. CEOF
  818. EOF
  819. cat >> $CONFIG_STATUS <<\EOF
  820. # Split the substitutions into bite-sized pieces for seds with
  821. # small command number limits, like on Digital OSF/1 and HP-UX.
  822. ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
  823. ac_file=1 # Number of current file.
  824. ac_beg=1 # First line for current file.
  825. ac_end=$ac_max_sed_cmds # Line after last line for current file.
  826. ac_more_lines=:
  827. ac_sed_cmds=""
  828. while $ac_more_lines; do
  829. if test $ac_beg -gt 1; then
  830. sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
  831. else
  832. sed "${ac_end}q" conftest.subs > conftest.s$ac_file
  833. fi
  834. if test ! -s conftest.s$ac_file; then
  835. ac_more_lines=false
  836. rm -f conftest.s$ac_file
  837. else
  838. if test -z "$ac_sed_cmds"; then
  839. ac_sed_cmds="sed -f conftest.s$ac_file"
  840. else
  841. ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
  842. fi
  843. ac_file=`expr $ac_file + 1`
  844. ac_beg=$ac_end
  845. ac_end=`expr $ac_end + $ac_max_sed_cmds`
  846. fi
  847. done
  848. if test -z "$ac_sed_cmds"; then
  849. ac_sed_cmds=cat
  850. fi
  851. EOF
  852. cat >> $CONFIG_STATUS <<EOF
  853. CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
  854. EOF
  855. cat >> $CONFIG_STATUS <<\EOF
  856. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  857. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  858. case "$ac_file" in
  859. *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  860. ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  861. *) ac_file_in="${ac_file}.in" ;;
  862. esac
  863. # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
  864. # Remove last slash and all that follows it. Not all systems have dirname.
  865. ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  866. if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  867. # The file is in a subdirectory.
  868. test ! -d "$ac_dir" && mkdir "$ac_dir"
  869. ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  870. # A "../" for each directory in $ac_dir_suffix.
  871. ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  872. else
  873. ac_dir_suffix= ac_dots=
  874. fi
  875. case "$ac_given_srcdir" in
  876. .) srcdir=.
  877. if test -z "$ac_dots"; then top_srcdir=.
  878. else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  879. /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  880. *) # Relative path.
  881. srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  882. top_srcdir="$ac_dots$ac_given_srcdir" ;;
  883. esac
  884. case "$ac_given_INSTALL" in
  885. [/$]*) INSTALL="$ac_given_INSTALL" ;;
  886. *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  887. esac
  888. echo creating "$ac_file"
  889. rm -f "$ac_file"
  890. configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  891. case "$ac_file" in
  892. *Makefile*) ac_comsub="1i\\
  893. # $configure_input" ;;
  894. *) ac_comsub= ;;
  895. esac
  896. ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  897. sed -e "$ac_comsub
  898. s%@configure_input@%$configure_input%g
  899. s%@srcdir@%$srcdir%g
  900. s%@top_srcdir@%$top_srcdir%g
  901. s%@INSTALL@%$INSTALL%g
  902. " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
  903. fi; done
  904. rm -f conftest.s*
  905. EOF
  906. cat >> $CONFIG_STATUS <<EOF
  907. EOF
  908. cat >> $CONFIG_STATUS <<\EOF
  909. exit 0
  910. EOF
  911. chmod +x $CONFIG_STATUS
  912. rm -fr confdefs* $ac_clean_files
  913. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  914. if test "$no_recursion" != yes; then
  915. # Remove --cache-file and --srcdir arguments so they do not pile up.
  916. ac_sub_configure_args=
  917. ac_prev=
  918. for ac_arg in $ac_configure_args; do
  919. if test -n "$ac_prev"; then
  920. ac_prev=
  921. continue
  922. fi
  923. case "$ac_arg" in
  924. -cache-file | --cache-file | --cache-fil | --cache-fi \
  925. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  926. ac_prev=cache_file ;;
  927. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  928. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  929. ;;
  930. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  931. ac_prev=srcdir ;;
  932. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  933. ;;
  934. *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
  935. esac
  936. done
  937. for ac_config_dir in abuse imlib; do
  938. # Do not complain, so a configure script can configure whichever
  939. # parts of a large source tree are present.
  940. if test ! -d $srcdir/$ac_config_dir; then
  941. continue
  942. fi
  943. echo configuring in $ac_config_dir
  944. case "$srcdir" in
  945. .) ;;
  946. *)
  947. if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
  948. else
  949. { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
  950. fi
  951. ;;
  952. esac
  953. ac_popdir=`pwd`
  954. cd $ac_config_dir
  955. # A "../" for each directory in /$ac_config_dir.
  956. ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
  957. case "$srcdir" in
  958. .) # No --srcdir option. We are building in place.
  959. ac_sub_srcdir=$srcdir ;;
  960. /*) # Absolute path.
  961. ac_sub_srcdir=$srcdir/$ac_config_dir ;;
  962. *) # Relative path.
  963. ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
  964. esac
  965. # Check for guested configure; otherwise get Cygnus style configure.
  966. if test -f $ac_sub_srcdir/configure; then
  967. ac_sub_configure=$ac_sub_srcdir/configure
  968. elif test -f $ac_sub_srcdir/configure.in; then
  969. ac_sub_configure=$ac_configure
  970. else
  971. echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
  972. ac_sub_configure=
  973. fi
  974. # The recursion is here.
  975. if test -n "$ac_sub_configure"; then
  976. # Make the cache file name correct relative to the subdirectory.
  977. case "$cache_file" in
  978. /*) ac_sub_cache_file=$cache_file ;;
  979. *) # Relative path.
  980. ac_sub_cache_file="$ac_dots$cache_file" ;;
  981. esac
  982. case "$ac_given_INSTALL" in
  983. [/$]*) INSTALL="$ac_given_INSTALL" ;;
  984. *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  985. esac
  986. echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
  987. # The eval makes quoting arguments work.
  988. if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
  989. then :
  990. else
  991. { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
  992. fi
  993. fi
  994. cd $ac_popdir
  995. done
  996. fi