1#! /bin/sh
2# From configure.in Id: 16b135293616700c63077e9a1a601681d4442fdd .
3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.65.
5#
6#
7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
9# Inc.
10#
11#
12# This configure script is free software; the Free Software Foundation
13# gives unlimited permission to copy, distribute and modify it.
14## -------------------- ##
15## M4sh Initialization. ##
16## -------------------- ##
17
18# Be more Bourne compatible
19DUALCASE=1; export DUALCASE # for MKS sh
20if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21  emulate sh
22  NULLCMD=:
23  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24  # is contrary to our usage.  Disable this feature.
25  alias -g '${1+"$@"}'='"$@"'
26  setopt NO_GLOB_SUBST
27else
28  case `(set -o) 2>/dev/null` in #(
29  *posix*) :
30    set -o posix ;; #(
31  *) :
32     ;;
33esac
34fi
35
36
37as_nl='
38'
39export as_nl
40# Printing a long string crashes Solaris 7 /usr/bin/printf.
41as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
44# Prefer a ksh shell builtin over an external printf program on Solaris,
45# but without wasting forks for bash or zsh.
46if test -z "$BASH_VERSION$ZSH_VERSION" \
47    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48  as_echo='print -r --'
49  as_echo_n='print -rn --'
50elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51  as_echo='printf %s\n'
52  as_echo_n='printf %s'
53else
54  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
55    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
56    as_echo_n='/usr/ucb/echo -n'
57  else
58    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
59    as_echo_n_body='eval
60      arg=$1;
61      case $arg in #(
62      *"$as_nl"*)
63	expr "X$arg" : "X\\(.*\\)$as_nl";
64	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65      esac;
66      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67    '
68    export as_echo_n_body
69    as_echo_n='sh -c $as_echo_n_body as_echo'
70  fi
71  export as_echo_body
72  as_echo='sh -c $as_echo_body as_echo'
73fi
74
75# The user is always right.
76if test "${PATH_SEPARATOR+set}" != set; then
77  PATH_SEPARATOR=:
78  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80      PATH_SEPARATOR=';'
81  }
82fi
83
84
85# IFS
86# We need space, tab and new line, in precisely that order.  Quoting is
87# there to prevent editors from complaining about space-tab.
88# (If _AS_PATH_WALK were called with IFS unset, it would disable word
89# splitting by setting IFS to empty value.)
90IFS=" ""	$as_nl"
91
92# Find who we are.  Look in the path if we contain no directory separator.
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137if test "x$CONFIG_SHELL" = x; then
138  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
139  emulate sh
140  NULLCMD=:
141  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142  # is contrary to our usage.  Disable this feature.
143  alias -g '\${1+\"\$@\"}'='\"\$@\"'
144  setopt NO_GLOB_SUBST
145else
146  case \`(set -o) 2>/dev/null\` in #(
147  *posix*) :
148    set -o posix ;; #(
149  *) :
150     ;;
151esac
152fi
153"
154  as_required="as_fn_return () { (exit \$1); }
155as_fn_success () { as_fn_return 0; }
156as_fn_failure () { as_fn_return 1; }
157as_fn_ret_success () { return 0; }
158as_fn_ret_failure () { return 1; }
159
160exitcode=0
161as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166
167else
168  exitcode=1; echo positional parameters were not saved.
169fi
170test x\$exitcode = x0 || exit 1"
171  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
175  if (eval "$as_required") 2>/dev/null; then :
176  as_have_required=yes
177else
178  as_have_required=no
179fi
180  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182else
183  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184as_found=false
185for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186do
187  IFS=$as_save_IFS
188  test -z "$as_dir" && as_dir=.
189  as_found=:
190  case $as_dir in #(
191	 /*)
192	   for as_base in sh bash ksh sh5; do
193	     # Try only shells that exist, to save several forks.
194	     as_shell=$as_dir/$as_base
195	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197  CONFIG_SHELL=$as_shell as_have_required=yes
198		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199  break 2
200fi
201fi
202	   done;;
203       esac
204  as_found=false
205done
206$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208  CONFIG_SHELL=$SHELL as_have_required=yes
209fi; }
210IFS=$as_save_IFS
211
212
213      if test "x$CONFIG_SHELL" != x; then :
214  # We cannot yet assume a decent shell, so we have to provide a
215	# neutralization value for shells without unset; and this also
216	# works around shells that cannot unset nonexistent variables.
217	BASH_ENV=/dev/null
218	ENV=/dev/null
219	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220	export CONFIG_SHELL
221	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222fi
223
224    if test x$as_have_required = xno; then :
225  $as_echo "$0: This script requires a shell more modern than all"
226  $as_echo "$0: the shells that I found on your system."
227  if test x${ZSH_VERSION+set} = xset ; then
228    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230  else
231    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232$0: including any error possibly output before this
233$0: message. Then install a modern shell, or manually run
234$0: the script under such a shell if you do have one."
235  fi
236  exit 1
237fi
238fi
239fi
240SHELL=${CONFIG_SHELL-/bin/sh}
241export SHELL
242# Unset more variables known to interfere with behavior of common tools.
243CLICOLOR_FORCE= GREP_OPTIONS=
244unset CLICOLOR_FORCE GREP_OPTIONS
245
246## --------------------- ##
247## M4sh Shell Functions. ##
248## --------------------- ##
249# as_fn_unset VAR
250# ---------------
251# Portably unset VAR.
252as_fn_unset ()
253{
254  { eval $1=; unset $1;}
255}
256as_unset=as_fn_unset
257
258# as_fn_set_status STATUS
259# -----------------------
260# Set $? to STATUS, without forking.
261as_fn_set_status ()
262{
263  return $1
264} # as_fn_set_status
265
266# as_fn_exit STATUS
267# -----------------
268# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269as_fn_exit ()
270{
271  set +e
272  as_fn_set_status $1
273  exit $1
274} # as_fn_exit
275
276# as_fn_mkdir_p
277# -------------
278# Create "$as_dir" as a directory, including parents if necessary.
279as_fn_mkdir_p ()
280{
281
282  case $as_dir in #(
283  -*) as_dir=./$as_dir;;
284  esac
285  test -d "$as_dir" || eval $as_mkdir_p || {
286    as_dirs=
287    while :; do
288      case $as_dir in #(
289      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290      *) as_qdir=$as_dir;;
291      esac
292      as_dirs="'$as_qdir' $as_dirs"
293      as_dir=`$as_dirname -- "$as_dir" ||
294$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295	 X"$as_dir" : 'X\(//\)[^/]' \| \
296	 X"$as_dir" : 'X\(//\)$' \| \
297	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298$as_echo X"$as_dir" |
299    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300	    s//\1/
301	    q
302	  }
303	  /^X\(\/\/\)[^/].*/{
304	    s//\1/
305	    q
306	  }
307	  /^X\(\/\/\)$/{
308	    s//\1/
309	    q
310	  }
311	  /^X\(\/\).*/{
312	    s//\1/
313	    q
314	  }
315	  s/.*/./; q'`
316      test -d "$as_dir" && break
317    done
318    test -z "$as_dirs" || eval "mkdir $as_dirs"
319  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
320
321
322} # as_fn_mkdir_p
323# as_fn_append VAR VALUE
324# ----------------------
325# Append the text in VALUE to the end of the definition contained in VAR. Take
326# advantage of any shell optimizations that allow amortized linear growth over
327# repeated appends, instead of the typical quadratic growth present in naive
328# implementations.
329if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330  eval 'as_fn_append ()
331  {
332    eval $1+=\$2
333  }'
334else
335  as_fn_append ()
336  {
337    eval $1=\$$1\$2
338  }
339fi # as_fn_append
340
341# as_fn_arith ARG...
342# ------------------
343# Perform arithmetic evaluation on the ARGs, and store the result in the
344# global $as_val. Take advantage of shells that can avoid forks. The arguments
345# must be portable across $(()) and expr.
346if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347  eval 'as_fn_arith ()
348  {
349    as_val=$(( $* ))
350  }'
351else
352  as_fn_arith ()
353  {
354    as_val=`expr "$@" || test $? -eq 1`
355  }
356fi # as_fn_arith
357
358
359# as_fn_error ERROR [LINENO LOG_FD]
360# ---------------------------------
361# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363# script with status $?, using 1 if that was 0.
364as_fn_error ()
365{
366  as_status=$?; test $as_status -eq 0 && as_status=1
367  if test "$3"; then
368    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
370  fi
371  $as_echo "$as_me: error: $1" >&2
372  as_fn_exit $as_status
373} # as_fn_error
374
375if expr a : '\(a\)' >/dev/null 2>&1 &&
376   test "X`expr 00001 : '.*\(...\)'`" = X001; then
377  as_expr=expr
378else
379  as_expr=false
380fi
381
382if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383  as_basename=basename
384else
385  as_basename=false
386fi
387
388if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389  as_dirname=dirname
390else
391  as_dirname=false
392fi
393
394as_me=`$as_basename -- "$0" ||
395$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396	 X"$0" : 'X\(//\)$' \| \
397	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398$as_echo X/"$0" |
399    sed '/^.*\/\([^/][^/]*\)\/*$/{
400	    s//\1/
401	    q
402	  }
403	  /^X\/\(\/\/\)$/{
404	    s//\1/
405	    q
406	  }
407	  /^X\/\(\/\).*/{
408	    s//\1/
409	    q
410	  }
411	  s/.*/./; q'`
412
413# Avoid depending upon Character Ranges.
414as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417as_cr_digits='0123456789'
418as_cr_alnum=$as_cr_Letters$as_cr_digits
419
420
421  as_lineno_1=$LINENO as_lineno_1a=$LINENO
422  as_lineno_2=$LINENO as_lineno_2a=$LINENO
423  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
426  sed -n '
427    p
428    /[$]LINENO/=
429  ' <$as_myself |
430    sed '
431      s/[$]LINENO.*/&-/
432      t lineno
433      b
434      :lineno
435      N
436      :loop
437      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438      t loop
439      s/-\n.*//
440    ' >$as_me.lineno &&
441  chmod +x "$as_me.lineno" ||
442    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
443
444  # Don't try to exec as it changes $[0], causing all sort of problems
445  # (the dirname of $[0] is not the place where we might find the
446  # original and so on.  Autoconf is especially sensitive to this).
447  . "./$as_me.lineno"
448  # Exit status is that of the last command.
449  exit
450}
451
452ECHO_C= ECHO_N= ECHO_T=
453case `echo -n x` in #(((((
454-n*)
455  case `echo 'xy\c'` in
456  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
457  xy)  ECHO_C='\c';;
458  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
459       ECHO_T='	';;
460  esac;;
461*)
462  ECHO_N='-n';;
463esac
464
465rm -f conf$$ conf$$.exe conf$$.file
466if test -d conf$$.dir; then
467  rm -f conf$$.dir/conf$$.file
468else
469  rm -f conf$$.dir
470  mkdir conf$$.dir 2>/dev/null
471fi
472if (echo >conf$$.file) 2>/dev/null; then
473  if ln -s conf$$.file conf$$ 2>/dev/null; then
474    as_ln_s='ln -s'
475    # ... but there are two gotchas:
476    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478    # In both cases, we have to default to `cp -p'.
479    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480      as_ln_s='cp -p'
481  elif ln conf$$.file conf$$ 2>/dev/null; then
482    as_ln_s=ln
483  else
484    as_ln_s='cp -p'
485  fi
486else
487  as_ln_s='cp -p'
488fi
489rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490rmdir conf$$.dir 2>/dev/null
491
492if mkdir -p . 2>/dev/null; then
493  as_mkdir_p='mkdir -p "$as_dir"'
494else
495  test -d ./-p && rmdir ./-p
496  as_mkdir_p=false
497fi
498
499if test -x / >/dev/null 2>&1; then
500  as_test_x='test -x'
501else
502  if ls -dL / >/dev/null 2>&1; then
503    as_ls_L_option=L
504  else
505    as_ls_L_option=
506  fi
507  as_test_x='
508    eval sh -c '\''
509      if test -d "$1"; then
510	test -d "$1/.";
511      else
512	case $1 in #(
513	-*)set "./$1";;
514	esac;
515	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516	???[sx]*):;;*)false;;esac;fi
517    '\'' sh
518  '
519fi
520as_executable_p=$as_test_x
521
522# Sed expression to map a string onto a valid CPP name.
523as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
524
525# Sed expression to map a string onto a valid variable name.
526as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527
528
529test -n "$DJDIR" || exec 7<&0 </dev/null
530exec 6>&1
531
532# Name of the host.
533# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
534# so uname gets run too.
535ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
536
537#
538# Initializations.
539#
540ac_default_prefix=/usr/local
541ac_clean_files=
542ac_config_libobj_dir=.
543LIBOBJS=
544cross_compiling=no
545subdirs=
546MFLAGS=
547MAKEFLAGS=
548
549# Identity of this package.
550PACKAGE_NAME=
551PACKAGE_TARNAME=
552PACKAGE_VERSION=
553PACKAGE_STRING=
554PACKAGE_BUGREPORT=
555PACKAGE_URL=
556
557ac_unique_file="neoXldap.c"
558ac_subst_vars='LTLIBOBJS
559LIBOBJS
560NEO_VERSION
561NEO_SHLIB_CFLAGS
562NEO_MINOR_VERSION
563NEO_MAJOR_VERSION
564NEO_LIB_SPEC
565NEO_LIB_FILE
566NEO_UNSHARED_LIB_FILE
567NEO_SHARED_LIB_FILE
568NEO_LD_SEARCH_FLAGS
569NEO_BUILD_LIB_SPEC
570TCL_VERSION
571TCL_LIB_HNAME
572TCL_LD_SEARCH_FLAGS
573TCL_LIB_SPEC
574TCL_BIN_DIR
575TCL_SRC_DIR
576TCL_LIBS
577ITCL_LIB_SPEC
578TCLX_LIB_SPEC
579TCLX_TCL_DIR
580TCLX_TOP_DIR
581SHLIB_VERSION
582SHLIB_SUFFIX
583SHLIB_LD_LIBS
584SHLIB_LD
585SHLIB_CFLAGS
586MAKE_LIB
587MATH_LIBS
588LD_FLAGS
589DL_LIBS
590ldapincdir
591ldapdir
592ldapbuild
593ldapinclude
594ldaplibflags
595LDAPWISH
596TKX_LIB_SPEC
597TK_VERSION
598TK_XINCLUDES
599TK_LIB_SPEC
600TK_LIBS
601RANLIB
602INSTALL_DATA
603INSTALL_SCRIPT
604INSTALL_PROGRAM
605OBJEXT
606EXEEXT
607ac_ct_CC
608CPPFLAGS
609LDFLAGS
610CFLAGS
611CC
612target_alias
613host_alias
614build_alias
615LIBS
616ECHO_T
617ECHO_N
618ECHO_C
619DEFS
620mandir
621localedir
622libdir
623psdir
624pdfdir
625dvidir
626htmldir
627infodir
628docdir
629oldincludedir
630includedir
631localstatedir
632sharedstatedir
633sysconfdir
634datadir
635datarootdir
636libexecdir
637sbindir
638bindir
639program_transform_name
640prefix
641exec_prefix
642PACKAGE_URL
643PACKAGE_BUGREPORT
644PACKAGE_STRING
645PACKAGE_VERSION
646PACKAGE_TARNAME
647PACKAGE_NAME
648PATH_SEPARATOR
649SHELL'
650ac_subst_files=''
651ac_user_opts='
652enable_option_checking
653enable_gcc
654with_tk
655with_x
656enable_shared
657with_ldap
658with_ldap_incdir
659with_ldap_libdir
660with_ldap_libraries
661'
662      ac_precious_vars='build_alias
663host_alias
664target_alias
665CC
666CFLAGS
667LDFLAGS
668LIBS
669CPPFLAGS'
670
671
672# Initialize some variables set by options.
673ac_init_help=
674ac_init_version=false
675ac_unrecognized_opts=
676ac_unrecognized_sep=
677# The variables have the same names as the options, with
678# dashes changed to underlines.
679cache_file=/dev/null
680exec_prefix=NONE
681no_create=
682no_recursion=
683prefix=NONE
684program_prefix=NONE
685program_suffix=NONE
686program_transform_name=s,x,x,
687silent=
688site=
689srcdir=
690verbose=
691x_includes=NONE
692x_libraries=NONE
693
694# Installation directory options.
695# These are left unexpanded so users can "make install exec_prefix=/foo"
696# and all the variables that are supposed to be based on exec_prefix
697# by default will actually change.
698# Use braces instead of parens because sh, perl, etc. also accept them.
699# (The list follows the same order as the GNU Coding Standards.)
700bindir='${exec_prefix}/bin'
701sbindir='${exec_prefix}/sbin'
702libexecdir='${exec_prefix}/libexec'
703datarootdir='${prefix}/share'
704datadir='${datarootdir}'
705sysconfdir='${prefix}/etc'
706sharedstatedir='${prefix}/com'
707localstatedir='${prefix}/var'
708includedir='${prefix}/include'
709oldincludedir='/usr/include'
710docdir='${datarootdir}/doc/${PACKAGE}'
711infodir='${datarootdir}/info'
712htmldir='${docdir}'
713dvidir='${docdir}'
714pdfdir='${docdir}'
715psdir='${docdir}'
716libdir='${exec_prefix}/lib'
717localedir='${datarootdir}/locale'
718mandir='${datarootdir}/man'
719
720ac_prev=
721ac_dashdash=
722for ac_option
723do
724  # If the previous option needs an argument, assign it.
725  if test -n "$ac_prev"; then
726    eval $ac_prev=\$ac_option
727    ac_prev=
728    continue
729  fi
730
731  case $ac_option in
732  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
733  *)	ac_optarg=yes ;;
734  esac
735
736  # Accept the important Cygnus configure options, so we can diagnose typos.
737
738  case $ac_dashdash$ac_option in
739  --)
740    ac_dashdash=yes ;;
741
742  -bindir | --bindir | --bindi | --bind | --bin | --bi)
743    ac_prev=bindir ;;
744  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
745    bindir=$ac_optarg ;;
746
747  -build | --build | --buil | --bui | --bu)
748    ac_prev=build_alias ;;
749  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
750    build_alias=$ac_optarg ;;
751
752  -cache-file | --cache-file | --cache-fil | --cache-fi \
753  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
754    ac_prev=cache_file ;;
755  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
756  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
757    cache_file=$ac_optarg ;;
758
759  --config-cache | -C)
760    cache_file=config.cache ;;
761
762  -datadir | --datadir | --datadi | --datad)
763    ac_prev=datadir ;;
764  -datadir=* | --datadir=* | --datadi=* | --datad=*)
765    datadir=$ac_optarg ;;
766
767  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
768  | --dataroo | --dataro | --datar)
769    ac_prev=datarootdir ;;
770  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
771  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
772    datarootdir=$ac_optarg ;;
773
774  -disable-* | --disable-*)
775    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
776    # Reject names that are not valid shell variable names.
777    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
778      as_fn_error "invalid feature name: $ac_useropt"
779    ac_useropt_orig=$ac_useropt
780    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
781    case $ac_user_opts in
782      *"
783"enable_$ac_useropt"
784"*) ;;
785      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
786	 ac_unrecognized_sep=', ';;
787    esac
788    eval enable_$ac_useropt=no ;;
789
790  -docdir | --docdir | --docdi | --doc | --do)
791    ac_prev=docdir ;;
792  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
793    docdir=$ac_optarg ;;
794
795  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
796    ac_prev=dvidir ;;
797  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
798    dvidir=$ac_optarg ;;
799
800  -enable-* | --enable-*)
801    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
802    # Reject names that are not valid shell variable names.
803    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
804      as_fn_error "invalid feature name: $ac_useropt"
805    ac_useropt_orig=$ac_useropt
806    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
807    case $ac_user_opts in
808      *"
809"enable_$ac_useropt"
810"*) ;;
811      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
812	 ac_unrecognized_sep=', ';;
813    esac
814    eval enable_$ac_useropt=\$ac_optarg ;;
815
816  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
817  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
818  | --exec | --exe | --ex)
819    ac_prev=exec_prefix ;;
820  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
821  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
822  | --exec=* | --exe=* | --ex=*)
823    exec_prefix=$ac_optarg ;;
824
825  -gas | --gas | --ga | --g)
826    # Obsolete; use --with-gas.
827    with_gas=yes ;;
828
829  -help | --help | --hel | --he | -h)
830    ac_init_help=long ;;
831  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
832    ac_init_help=recursive ;;
833  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
834    ac_init_help=short ;;
835
836  -host | --host | --hos | --ho)
837    ac_prev=host_alias ;;
838  -host=* | --host=* | --hos=* | --ho=*)
839    host_alias=$ac_optarg ;;
840
841  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
842    ac_prev=htmldir ;;
843  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
844  | --ht=*)
845    htmldir=$ac_optarg ;;
846
847  -includedir | --includedir | --includedi | --included | --include \
848  | --includ | --inclu | --incl | --inc)
849    ac_prev=includedir ;;
850  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
851  | --includ=* | --inclu=* | --incl=* | --inc=*)
852    includedir=$ac_optarg ;;
853
854  -infodir | --infodir | --infodi | --infod | --info | --inf)
855    ac_prev=infodir ;;
856  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
857    infodir=$ac_optarg ;;
858
859  -libdir | --libdir | --libdi | --libd)
860    ac_prev=libdir ;;
861  -libdir=* | --libdir=* | --libdi=* | --libd=*)
862    libdir=$ac_optarg ;;
863
864  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
865  | --libexe | --libex | --libe)
866    ac_prev=libexecdir ;;
867  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
868  | --libexe=* | --libex=* | --libe=*)
869    libexecdir=$ac_optarg ;;
870
871  -localedir | --localedir | --localedi | --localed | --locale)
872    ac_prev=localedir ;;
873  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
874    localedir=$ac_optarg ;;
875
876  -localstatedir | --localstatedir | --localstatedi | --localstated \
877  | --localstate | --localstat | --localsta | --localst | --locals)
878    ac_prev=localstatedir ;;
879  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
880  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
881    localstatedir=$ac_optarg ;;
882
883  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
884    ac_prev=mandir ;;
885  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
886    mandir=$ac_optarg ;;
887
888  -nfp | --nfp | --nf)
889    # Obsolete; use --without-fp.
890    with_fp=no ;;
891
892  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
893  | --no-cr | --no-c | -n)
894    no_create=yes ;;
895
896  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
897  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
898    no_recursion=yes ;;
899
900  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
901  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
902  | --oldin | --oldi | --old | --ol | --o)
903    ac_prev=oldincludedir ;;
904  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
905  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
906  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
907    oldincludedir=$ac_optarg ;;
908
909  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
910    ac_prev=prefix ;;
911  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
912    prefix=$ac_optarg ;;
913
914  -program-prefix | --program-prefix | --program-prefi | --program-pref \
915  | --program-pre | --program-pr | --program-p)
916    ac_prev=program_prefix ;;
917  -program-prefix=* | --program-prefix=* | --program-prefi=* \
918  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
919    program_prefix=$ac_optarg ;;
920
921  -program-suffix | --program-suffix | --program-suffi | --program-suff \
922  | --program-suf | --program-su | --program-s)
923    ac_prev=program_suffix ;;
924  -program-suffix=* | --program-suffix=* | --program-suffi=* \
925  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
926    program_suffix=$ac_optarg ;;
927
928  -program-transform-name | --program-transform-name \
929  | --program-transform-nam | --program-transform-na \
930  | --program-transform-n | --program-transform- \
931  | --program-transform | --program-transfor \
932  | --program-transfo | --program-transf \
933  | --program-trans | --program-tran \
934  | --progr-tra | --program-tr | --program-t)
935    ac_prev=program_transform_name ;;
936  -program-transform-name=* | --program-transform-name=* \
937  | --program-transform-nam=* | --program-transform-na=* \
938  | --program-transform-n=* | --program-transform-=* \
939  | --program-transform=* | --program-transfor=* \
940  | --program-transfo=* | --program-transf=* \
941  | --program-trans=* | --program-tran=* \
942  | --progr-tra=* | --program-tr=* | --program-t=*)
943    program_transform_name=$ac_optarg ;;
944
945  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
946    ac_prev=pdfdir ;;
947  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
948    pdfdir=$ac_optarg ;;
949
950  -psdir | --psdir | --psdi | --psd | --ps)
951    ac_prev=psdir ;;
952  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
953    psdir=$ac_optarg ;;
954
955  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
956  | -silent | --silent | --silen | --sile | --sil)
957    silent=yes ;;
958
959  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
960    ac_prev=sbindir ;;
961  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
962  | --sbi=* | --sb=*)
963    sbindir=$ac_optarg ;;
964
965  -sharedstatedir | --sharedstatedir | --sharedstatedi \
966  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
967  | --sharedst | --shareds | --shared | --share | --shar \
968  | --sha | --sh)
969    ac_prev=sharedstatedir ;;
970  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
971  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
972  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
973  | --sha=* | --sh=*)
974    sharedstatedir=$ac_optarg ;;
975
976  -site | --site | --sit)
977    ac_prev=site ;;
978  -site=* | --site=* | --sit=*)
979    site=$ac_optarg ;;
980
981  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
982    ac_prev=srcdir ;;
983  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
984    srcdir=$ac_optarg ;;
985
986  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
987  | --syscon | --sysco | --sysc | --sys | --sy)
988    ac_prev=sysconfdir ;;
989  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
990  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
991    sysconfdir=$ac_optarg ;;
992
993  -target | --target | --targe | --targ | --tar | --ta | --t)
994    ac_prev=target_alias ;;
995  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
996    target_alias=$ac_optarg ;;
997
998  -v | -verbose | --verbose | --verbos | --verbo | --verb)
999    verbose=yes ;;
1000
1001  -version | --version | --versio | --versi | --vers | -V)
1002    ac_init_version=: ;;
1003
1004  -with-* | --with-*)
1005    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1006    # Reject names that are not valid shell variable names.
1007    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1008      as_fn_error "invalid package name: $ac_useropt"
1009    ac_useropt_orig=$ac_useropt
1010    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1011    case $ac_user_opts in
1012      *"
1013"with_$ac_useropt"
1014"*) ;;
1015      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1016	 ac_unrecognized_sep=', ';;
1017    esac
1018    eval with_$ac_useropt=\$ac_optarg ;;
1019
1020  -without-* | --without-*)
1021    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1022    # Reject names that are not valid shell variable names.
1023    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1024      as_fn_error "invalid package name: $ac_useropt"
1025    ac_useropt_orig=$ac_useropt
1026    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1027    case $ac_user_opts in
1028      *"
1029"with_$ac_useropt"
1030"*) ;;
1031      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1032	 ac_unrecognized_sep=', ';;
1033    esac
1034    eval with_$ac_useropt=no ;;
1035
1036  --x)
1037    # Obsolete; use --with-x.
1038    with_x=yes ;;
1039
1040  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1041  | --x-incl | --x-inc | --x-in | --x-i)
1042    ac_prev=x_includes ;;
1043  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1044  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1045    x_includes=$ac_optarg ;;
1046
1047  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1048  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1049    ac_prev=x_libraries ;;
1050  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1051  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1052    x_libraries=$ac_optarg ;;
1053
1054  -*) as_fn_error "unrecognized option: \`$ac_option'
1055Try \`$0 --help' for more information."
1056    ;;
1057
1058  *=*)
1059    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1060    # Reject names that are not valid shell variable names.
1061    case $ac_envvar in #(
1062      '' | [0-9]* | *[!_$as_cr_alnum]* )
1063      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1064    esac
1065    eval $ac_envvar=\$ac_optarg
1066    export $ac_envvar ;;
1067
1068  *)
1069    # FIXME: should be removed in autoconf 3.0.
1070    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1071    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1072      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1073    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1074    ;;
1075
1076  esac
1077done
1078
1079if test -n "$ac_prev"; then
1080  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1081  as_fn_error "missing argument to $ac_option"
1082fi
1083
1084if test -n "$ac_unrecognized_opts"; then
1085  case $enable_option_checking in
1086    no) ;;
1087    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1088    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1089  esac
1090fi
1091
1092# Check all directory arguments for consistency.
1093for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1094		datadir sysconfdir sharedstatedir localstatedir includedir \
1095		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1096		libdir localedir mandir
1097do
1098  eval ac_val=\$$ac_var
1099  # Remove trailing slashes.
1100  case $ac_val in
1101    */ )
1102      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1103      eval $ac_var=\$ac_val;;
1104  esac
1105  # Be sure to have absolute directory names.
1106  case $ac_val in
1107    [\\/$]* | ?:[\\/]* )  continue;;
1108    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1109  esac
1110  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1111done
1112
1113# There might be people who depend on the old broken behavior: `$host'
1114# used to hold the argument of --host etc.
1115# FIXME: To remove some day.
1116build=$build_alias
1117host=$host_alias
1118target=$target_alias
1119
1120# FIXME: To remove some day.
1121if test "x$host_alias" != x; then
1122  if test "x$build_alias" = x; then
1123    cross_compiling=maybe
1124    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1125    If a cross compiler is detected then cross compile mode will be used." >&2
1126  elif test "x$build_alias" != "x$host_alias"; then
1127    cross_compiling=yes
1128  fi
1129fi
1130
1131ac_tool_prefix=
1132test -n "$host_alias" && ac_tool_prefix=$host_alias-
1133
1134test "$silent" = yes && exec 6>/dev/null
1135
1136
1137ac_pwd=`pwd` && test -n "$ac_pwd" &&
1138ac_ls_di=`ls -di .` &&
1139ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1140  as_fn_error "working directory cannot be determined"
1141test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1142  as_fn_error "pwd does not report name of working directory"
1143
1144
1145# Find the source files, if location was not specified.
1146if test -z "$srcdir"; then
1147  ac_srcdir_defaulted=yes
1148  # Try the directory containing this script, then the parent directory.
1149  ac_confdir=`$as_dirname -- "$as_myself" ||
1150$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1151	 X"$as_myself" : 'X\(//\)[^/]' \| \
1152	 X"$as_myself" : 'X\(//\)$' \| \
1153	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1154$as_echo X"$as_myself" |
1155    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1156	    s//\1/
1157	    q
1158	  }
1159	  /^X\(\/\/\)[^/].*/{
1160	    s//\1/
1161	    q
1162	  }
1163	  /^X\(\/\/\)$/{
1164	    s//\1/
1165	    q
1166	  }
1167	  /^X\(\/\).*/{
1168	    s//\1/
1169	    q
1170	  }
1171	  s/.*/./; q'`
1172  srcdir=$ac_confdir
1173  if test ! -r "$srcdir/$ac_unique_file"; then
1174    srcdir=..
1175  fi
1176else
1177  ac_srcdir_defaulted=no
1178fi
1179if test ! -r "$srcdir/$ac_unique_file"; then
1180  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1181  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1182fi
1183ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1184ac_abs_confdir=`(
1185	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1186	pwd)`
1187# When building in place, set srcdir=.
1188if test "$ac_abs_confdir" = "$ac_pwd"; then
1189  srcdir=.
1190fi
1191# Remove unnecessary trailing slashes from srcdir.
1192# Double slashes in file names in object file debugging info
1193# mess up M-x gdb in Emacs.
1194case $srcdir in
1195*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1196esac
1197for ac_var in $ac_precious_vars; do
1198  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1199  eval ac_env_${ac_var}_value=\$${ac_var}
1200  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1201  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1202done
1203
1204#
1205# Report the --help message.
1206#
1207if test "$ac_init_help" = "long"; then
1208  # Omit some internal or obsolete options to make the list less imposing.
1209  # This message is too long to be a string in the A/UX 3.1 sh.
1210  cat <<_ACEOF
1211\`configure' configures this package to adapt to many kinds of systems.
1212
1213Usage: $0 [OPTION]... [VAR=VALUE]...
1214
1215To assign environment variables (e.g., CC, CFLAGS...), specify them as
1216VAR=VALUE.  See below for descriptions of some of the useful variables.
1217
1218Defaults for the options are specified in brackets.
1219
1220Configuration:
1221  -h, --help              display this help and exit
1222      --help=short        display options specific to this package
1223      --help=recursive    display the short help of all the included packages
1224  -V, --version           display version information and exit
1225  -q, --quiet, --silent   do not print \`checking...' messages
1226      --cache-file=FILE   cache test results in FILE [disabled]
1227  -C, --config-cache      alias for \`--cache-file=config.cache'
1228  -n, --no-create         do not create output files
1229      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1230
1231Installation directories:
1232  --prefix=PREFIX         install architecture-independent files in PREFIX
1233                          [$ac_default_prefix]
1234  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1235                          [PREFIX]
1236
1237By default, \`make install' will install all the files in
1238\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1239an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1240for instance \`--prefix=\$HOME'.
1241
1242For better control, use the options below.
1243
1244Fine tuning of the installation directories:
1245  --bindir=DIR            user executables [EPREFIX/bin]
1246  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1247  --libexecdir=DIR        program executables [EPREFIX/libexec]
1248  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1249  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1250  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1251  --libdir=DIR            object code libraries [EPREFIX/lib]
1252  --includedir=DIR        C header files [PREFIX/include]
1253  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1254  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1255  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1256  --infodir=DIR           info documentation [DATAROOTDIR/info]
1257  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1258  --mandir=DIR            man documentation [DATAROOTDIR/man]
1259  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1260  --htmldir=DIR           html documentation [DOCDIR]
1261  --dvidir=DIR            dvi documentation [DOCDIR]
1262  --pdfdir=DIR            pdf documentation [DOCDIR]
1263  --psdir=DIR             ps documentation [DOCDIR]
1264_ACEOF
1265
1266  cat <<\_ACEOF
1267_ACEOF
1268fi
1269
1270if test -n "$ac_init_help"; then
1271
1272  cat <<\_ACEOF
1273
1274Optional Features:
1275  --disable-option-checking  ignore unrecognized --enable/--with options
1276  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1277  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1278  --enable-gcc            allow use of gcc if available
1279  --enable-shared         build libldaptcl as a shared library
1280
1281Optional Packages:
1282  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1283  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1284  --with-tk=DIR          use Tk 8.0 binaries from DIR
1285  --without-x            do not build/install ldapwish
1286  --with-ldap=<dir>           common parent of ldap include and lib dirs
1287  --with-ldap-incdir=<dir>    path to ldap.h
1288  --with-ldap-libdir=<dir>    path to ldap and lber libs
1289  --with-ldap-libflags=<libnames>   -l flags for ldap libraries
1290
1291Some influential environment variables:
1292  CC          C compiler command
1293  CFLAGS      C compiler flags
1294  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1295              nonstandard directory <lib dir>
1296  LIBS        libraries to pass to the linker, e.g. -l<library>
1297  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1298              you have headers in a nonstandard directory <include dir>
1299
1300Use these variables to override the choices made by `configure' or to help
1301it to find libraries and programs with nonstandard names/locations.
1302
1303Report bugs to the package provider.
1304_ACEOF
1305ac_status=$?
1306fi
1307
1308if test "$ac_init_help" = "recursive"; then
1309  # If there are subdirs, report their specific --help.
1310  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1311    test -d "$ac_dir" ||
1312      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1313      continue
1314    ac_builddir=.
1315
1316case "$ac_dir" in
1317.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1318*)
1319  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1320  # A ".." for each directory in $ac_dir_suffix.
1321  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1322  case $ac_top_builddir_sub in
1323  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1324  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1325  esac ;;
1326esac
1327ac_abs_top_builddir=$ac_pwd
1328ac_abs_builddir=$ac_pwd$ac_dir_suffix
1329# for backward compatibility:
1330ac_top_builddir=$ac_top_build_prefix
1331
1332case $srcdir in
1333  .)  # We are building in place.
1334    ac_srcdir=.
1335    ac_top_srcdir=$ac_top_builddir_sub
1336    ac_abs_top_srcdir=$ac_pwd ;;
1337  [\\/]* | ?:[\\/]* )  # Absolute name.
1338    ac_srcdir=$srcdir$ac_dir_suffix;
1339    ac_top_srcdir=$srcdir
1340    ac_abs_top_srcdir=$srcdir ;;
1341  *) # Relative name.
1342    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1343    ac_top_srcdir=$ac_top_build_prefix$srcdir
1344    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1345esac
1346ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1347
1348    cd "$ac_dir" || { ac_status=$?; continue; }
1349    # Check for guested configure.
1350    if test -f "$ac_srcdir/configure.gnu"; then
1351      echo &&
1352      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1353    elif test -f "$ac_srcdir/configure"; then
1354      echo &&
1355      $SHELL "$ac_srcdir/configure" --help=recursive
1356    else
1357      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1358    fi || ac_status=$?
1359    cd "$ac_pwd" || { ac_status=$?; break; }
1360  done
1361fi
1362
1363test -n "$ac_init_help" && exit $ac_status
1364if $ac_init_version; then
1365  cat <<\_ACEOF
1366configure
1367generated by GNU Autoconf 2.65
1368
1369Copyright (C) 2009 Free Software Foundation, Inc.
1370This configure script is free software; the Free Software Foundation
1371gives unlimited permission to copy, distribute and modify it.
1372_ACEOF
1373  exit
1374fi
1375
1376## ------------------------ ##
1377## Autoconf initialization. ##
1378## ------------------------ ##
1379
1380# ac_fn_c_try_compile LINENO
1381# --------------------------
1382# Try to compile conftest.$ac_ext, and return whether this succeeded.
1383ac_fn_c_try_compile ()
1384{
1385  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1386  rm -f conftest.$ac_objext
1387  if { { ac_try="$ac_compile"
1388case "(($ac_try" in
1389  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1390  *) ac_try_echo=$ac_try;;
1391esac
1392eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1393$as_echo "$ac_try_echo"; } >&5
1394  (eval "$ac_compile") 2>conftest.err
1395  ac_status=$?
1396  if test -s conftest.err; then
1397    grep -v '^ *+' conftest.err >conftest.er1
1398    cat conftest.er1 >&5
1399    mv -f conftest.er1 conftest.err
1400  fi
1401  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1402  test $ac_status = 0; } && {
1403	 test -z "$ac_c_werror_flag" ||
1404	 test ! -s conftest.err
1405       } && test -s conftest.$ac_objext; then :
1406  ac_retval=0
1407else
1408  $as_echo "$as_me: failed program was:" >&5
1409sed 's/^/| /' conftest.$ac_ext >&5
1410
1411	ac_retval=1
1412fi
1413  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1414  as_fn_set_status $ac_retval
1415
1416} # ac_fn_c_try_compile
1417cat >config.log <<_ACEOF
1418This file contains any messages produced by compilers while
1419running configure, to aid debugging if configure makes a mistake.
1420
1421It was created by $as_me, which was
1422generated by GNU Autoconf 2.65.  Invocation command line was
1423
1424  $ $0 $@
1425
1426_ACEOF
1427exec 5>>config.log
1428{
1429cat <<_ASUNAME
1430## --------- ##
1431## Platform. ##
1432## --------- ##
1433
1434hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1435uname -m = `(uname -m) 2>/dev/null || echo unknown`
1436uname -r = `(uname -r) 2>/dev/null || echo unknown`
1437uname -s = `(uname -s) 2>/dev/null || echo unknown`
1438uname -v = `(uname -v) 2>/dev/null || echo unknown`
1439
1440/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1441/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1442
1443/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1444/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1445/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1446/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1447/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1448/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1449/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1450
1451_ASUNAME
1452
1453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1454for as_dir in $PATH
1455do
1456  IFS=$as_save_IFS
1457  test -z "$as_dir" && as_dir=.
1458    $as_echo "PATH: $as_dir"
1459  done
1460IFS=$as_save_IFS
1461
1462} >&5
1463
1464cat >&5 <<_ACEOF
1465
1466
1467## ----------- ##
1468## Core tests. ##
1469## ----------- ##
1470
1471_ACEOF
1472
1473
1474# Keep a trace of the command line.
1475# Strip out --no-create and --no-recursion so they do not pile up.
1476# Strip out --silent because we don't want to record it for future runs.
1477# Also quote any args containing shell meta-characters.
1478# Make two passes to allow for proper duplicate-argument suppression.
1479ac_configure_args=
1480ac_configure_args0=
1481ac_configure_args1=
1482ac_must_keep_next=false
1483for ac_pass in 1 2
1484do
1485  for ac_arg
1486  do
1487    case $ac_arg in
1488    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1489    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1490    | -silent | --silent | --silen | --sile | --sil)
1491      continue ;;
1492    *\'*)
1493      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1494    esac
1495    case $ac_pass in
1496    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1497    2)
1498      as_fn_append ac_configure_args1 " '$ac_arg'"
1499      if test $ac_must_keep_next = true; then
1500	ac_must_keep_next=false # Got value, back to normal.
1501      else
1502	case $ac_arg in
1503	  *=* | --config-cache | -C | -disable-* | --disable-* \
1504	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1505	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1506	  | -with-* | --with-* | -without-* | --without-* | --x)
1507	    case "$ac_configure_args0 " in
1508	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1509	    esac
1510	    ;;
1511	  -* ) ac_must_keep_next=true ;;
1512	esac
1513      fi
1514      as_fn_append ac_configure_args " '$ac_arg'"
1515      ;;
1516    esac
1517  done
1518done
1519{ ac_configure_args0=; unset ac_configure_args0;}
1520{ ac_configure_args1=; unset ac_configure_args1;}
1521
1522# When interrupted or exit'd, cleanup temporary files, and complete
1523# config.log.  We remove comments because anyway the quotes in there
1524# would cause problems or look ugly.
1525# WARNING: Use '\'' to represent an apostrophe within the trap.
1526# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1527trap 'exit_status=$?
1528  # Save into config.log some information that might help in debugging.
1529  {
1530    echo
1531
1532    cat <<\_ASBOX
1533## ---------------- ##
1534## Cache variables. ##
1535## ---------------- ##
1536_ASBOX
1537    echo
1538    # The following way of writing the cache mishandles newlines in values,
1539(
1540  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1541    eval ac_val=\$$ac_var
1542    case $ac_val in #(
1543    *${as_nl}*)
1544      case $ac_var in #(
1545      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1546$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1547      esac
1548      case $ac_var in #(
1549      _ | IFS | as_nl) ;; #(
1550      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1551      *) { eval $ac_var=; unset $ac_var;} ;;
1552      esac ;;
1553    esac
1554  done
1555  (set) 2>&1 |
1556    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1557    *${as_nl}ac_space=\ *)
1558      sed -n \
1559	"s/'\''/'\''\\\\'\'''\''/g;
1560	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1561      ;; #(
1562    *)
1563      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1564      ;;
1565    esac |
1566    sort
1567)
1568    echo
1569
1570    cat <<\_ASBOX
1571## ----------------- ##
1572## Output variables. ##
1573## ----------------- ##
1574_ASBOX
1575    echo
1576    for ac_var in $ac_subst_vars
1577    do
1578      eval ac_val=\$$ac_var
1579      case $ac_val in
1580      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1581      esac
1582      $as_echo "$ac_var='\''$ac_val'\''"
1583    done | sort
1584    echo
1585
1586    if test -n "$ac_subst_files"; then
1587      cat <<\_ASBOX
1588## ------------------- ##
1589## File substitutions. ##
1590## ------------------- ##
1591_ASBOX
1592      echo
1593      for ac_var in $ac_subst_files
1594      do
1595	eval ac_val=\$$ac_var
1596	case $ac_val in
1597	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1598	esac
1599	$as_echo "$ac_var='\''$ac_val'\''"
1600      done | sort
1601      echo
1602    fi
1603
1604    if test -s confdefs.h; then
1605      cat <<\_ASBOX
1606## ----------- ##
1607## confdefs.h. ##
1608## ----------- ##
1609_ASBOX
1610      echo
1611      cat confdefs.h
1612      echo
1613    fi
1614    test "$ac_signal" != 0 &&
1615      $as_echo "$as_me: caught signal $ac_signal"
1616    $as_echo "$as_me: exit $exit_status"
1617  } >&5
1618  rm -f core *.core core.conftest.* &&
1619    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1620    exit $exit_status
1621' 0
1622for ac_signal in 1 2 13 15; do
1623  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1624done
1625ac_signal=0
1626
1627# confdefs.h avoids OS command line length limits that DEFS can exceed.
1628rm -f -r conftest* confdefs.h
1629
1630$as_echo "/* confdefs.h */" > confdefs.h
1631
1632# Predefined preprocessor variables.
1633
1634cat >>confdefs.h <<_ACEOF
1635#define PACKAGE_NAME "$PACKAGE_NAME"
1636_ACEOF
1637
1638cat >>confdefs.h <<_ACEOF
1639#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1640_ACEOF
1641
1642cat >>confdefs.h <<_ACEOF
1643#define PACKAGE_VERSION "$PACKAGE_VERSION"
1644_ACEOF
1645
1646cat >>confdefs.h <<_ACEOF
1647#define PACKAGE_STRING "$PACKAGE_STRING"
1648_ACEOF
1649
1650cat >>confdefs.h <<_ACEOF
1651#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1652_ACEOF
1653
1654cat >>confdefs.h <<_ACEOF
1655#define PACKAGE_URL "$PACKAGE_URL"
1656_ACEOF
1657
1658
1659# Let the site file select an alternate cache file if it wants to.
1660# Prefer an explicitly selected file to automatically selected ones.
1661ac_site_file1=NONE
1662ac_site_file2=NONE
1663if test -n "$CONFIG_SITE"; then
1664  ac_site_file1=$CONFIG_SITE
1665elif test "x$prefix" != xNONE; then
1666  ac_site_file1=$prefix/share/config.site
1667  ac_site_file2=$prefix/etc/config.site
1668else
1669  ac_site_file1=$ac_default_prefix/share/config.site
1670  ac_site_file2=$ac_default_prefix/etc/config.site
1671fi
1672for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1673do
1674  test "x$ac_site_file" = xNONE && continue
1675  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1676    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1677$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1678    sed 's/^/| /' "$ac_site_file" >&5
1679    . "$ac_site_file"
1680  fi
1681done
1682
1683if test -r "$cache_file"; then
1684  # Some versions of bash will fail to source /dev/null (special files
1685  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
1686  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1687    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1688$as_echo "$as_me: loading cache $cache_file" >&6;}
1689    case $cache_file in
1690      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1691      *)                      . "./$cache_file";;
1692    esac
1693  fi
1694else
1695  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1696$as_echo "$as_me: creating cache $cache_file" >&6;}
1697  >$cache_file
1698fi
1699
1700# Check that the precious variables saved in the cache have kept the same
1701# value.
1702ac_cache_corrupted=false
1703for ac_var in $ac_precious_vars; do
1704  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1705  eval ac_new_set=\$ac_env_${ac_var}_set
1706  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1707  eval ac_new_val=\$ac_env_${ac_var}_value
1708  case $ac_old_set,$ac_new_set in
1709    set,)
1710      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1711$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1712      ac_cache_corrupted=: ;;
1713    ,set)
1714      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1715$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1716      ac_cache_corrupted=: ;;
1717    ,);;
1718    *)
1719      if test "x$ac_old_val" != "x$ac_new_val"; then
1720	# differences in whitespace do not lead to failure.
1721	ac_old_val_w=`echo x $ac_old_val`
1722	ac_new_val_w=`echo x $ac_new_val`
1723	if test "$ac_old_val_w" != "$ac_new_val_w"; then
1724	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1725$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1726	  ac_cache_corrupted=:
1727	else
1728	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1729$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1730	  eval $ac_var=\$ac_old_val
1731	fi
1732	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
1733$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1734	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
1735$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1736      fi;;
1737  esac
1738  # Pass precious variables to config.status.
1739  if test "$ac_new_set" = set; then
1740    case $ac_new_val in
1741    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1742    *) ac_arg=$ac_var=$ac_new_val ;;
1743    esac
1744    case " $ac_configure_args " in
1745      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1746      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1747    esac
1748  fi
1749done
1750if $ac_cache_corrupted; then
1751  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1752$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1753  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
1754$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1755  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1756fi
1757## -------------------- ##
1758## Main body of script. ##
1759## -------------------- ##
1760
1761ac_ext=c
1762ac_cpp='$CPP $CPPFLAGS'
1763ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1764ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1765ac_compiler_gnu=$ac_cv_c_compiler_gnu
1766
1767
1768# $OpenLDAP$
1769
1770
1771
1772NEO_VERSION=2.0
1773NEO_MAJOR_VERSION=2
1774NEO_MINOR_VERSION=0
1775VERSION=${NEO_VERSION}
1776
1777if test "${prefix}" = "NONE"; then
1778    prefix=/usr/local
1779fi
1780if test "${exec_prefix}" = "NONE"; then
1781    exec_prefix=$prefix
1782fi
1783
1784# Check whether --enable-gcc was given.
1785if test "${enable_gcc+set}" = set; then :
1786  enableval=$enable_gcc; neo_ok=$enableval
1787else
1788  neo_ok=no
1789fi
1790
1791if test "$neo_ok" = "yes"; then
1792    ac_ext=c
1793ac_cpp='$CPP $CPPFLAGS'
1794ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1795ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1796ac_compiler_gnu=$ac_cv_c_compiler_gnu
1797if test -n "$ac_tool_prefix"; then
1798  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1799set dummy ${ac_tool_prefix}gcc; ac_word=$2
1800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1801$as_echo_n "checking for $ac_word... " >&6; }
1802if test "${ac_cv_prog_CC+set}" = set; then :
1803  $as_echo_n "(cached) " >&6
1804else
1805  if test -n "$CC"; then
1806  ac_cv_prog_CC="$CC" # Let the user override the test.
1807else
1808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1809for as_dir in $PATH
1810do
1811  IFS=$as_save_IFS
1812  test -z "$as_dir" && as_dir=.
1813    for ac_exec_ext in '' $ac_executable_extensions; do
1814  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1815    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1816    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1817    break 2
1818  fi
1819done
1820  done
1821IFS=$as_save_IFS
1822
1823fi
1824fi
1825CC=$ac_cv_prog_CC
1826if test -n "$CC"; then
1827  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
1828$as_echo "$CC" >&6; }
1829else
1830  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1831$as_echo "no" >&6; }
1832fi
1833
1834
1835fi
1836if test -z "$ac_cv_prog_CC"; then
1837  ac_ct_CC=$CC
1838  # Extract the first word of "gcc", so it can be a program name with args.
1839set dummy gcc; ac_word=$2
1840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1841$as_echo_n "checking for $ac_word... " >&6; }
1842if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
1843  $as_echo_n "(cached) " >&6
1844else
1845  if test -n "$ac_ct_CC"; then
1846  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1847else
1848as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1849for as_dir in $PATH
1850do
1851  IFS=$as_save_IFS
1852  test -z "$as_dir" && as_dir=.
1853    for ac_exec_ext in '' $ac_executable_extensions; do
1854  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1855    ac_cv_prog_ac_ct_CC="gcc"
1856    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1857    break 2
1858  fi
1859done
1860  done
1861IFS=$as_save_IFS
1862
1863fi
1864fi
1865ac_ct_CC=$ac_cv_prog_ac_ct_CC
1866if test -n "$ac_ct_CC"; then
1867  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
1868$as_echo "$ac_ct_CC" >&6; }
1869else
1870  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1871$as_echo "no" >&6; }
1872fi
1873
1874  if test "x$ac_ct_CC" = x; then
1875    CC=""
1876  else
1877    case $cross_compiling:$ac_tool_warned in
1878yes:)
1879{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
1880$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1881ac_tool_warned=yes ;;
1882esac
1883    CC=$ac_ct_CC
1884  fi
1885else
1886  CC="$ac_cv_prog_CC"
1887fi
1888
1889if test -z "$CC"; then
1890          if test -n "$ac_tool_prefix"; then
1891    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1892set dummy ${ac_tool_prefix}cc; ac_word=$2
1893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1894$as_echo_n "checking for $ac_word... " >&6; }
1895if test "${ac_cv_prog_CC+set}" = set; then :
1896  $as_echo_n "(cached) " >&6
1897else
1898  if test -n "$CC"; then
1899  ac_cv_prog_CC="$CC" # Let the user override the test.
1900else
1901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1902for as_dir in $PATH
1903do
1904  IFS=$as_save_IFS
1905  test -z "$as_dir" && as_dir=.
1906    for ac_exec_ext in '' $ac_executable_extensions; do
1907  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1908    ac_cv_prog_CC="${ac_tool_prefix}cc"
1909    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1910    break 2
1911  fi
1912done
1913  done
1914IFS=$as_save_IFS
1915
1916fi
1917fi
1918CC=$ac_cv_prog_CC
1919if test -n "$CC"; then
1920  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
1921$as_echo "$CC" >&6; }
1922else
1923  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1924$as_echo "no" >&6; }
1925fi
1926
1927
1928  fi
1929fi
1930if test -z "$CC"; then
1931  # Extract the first word of "cc", so it can be a program name with args.
1932set dummy cc; ac_word=$2
1933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1934$as_echo_n "checking for $ac_word... " >&6; }
1935if test "${ac_cv_prog_CC+set}" = set; then :
1936  $as_echo_n "(cached) " >&6
1937else
1938  if test -n "$CC"; then
1939  ac_cv_prog_CC="$CC" # Let the user override the test.
1940else
1941  ac_prog_rejected=no
1942as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1943for as_dir in $PATH
1944do
1945  IFS=$as_save_IFS
1946  test -z "$as_dir" && as_dir=.
1947    for ac_exec_ext in '' $ac_executable_extensions; do
1948  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1949    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1950       ac_prog_rejected=yes
1951       continue
1952     fi
1953    ac_cv_prog_CC="cc"
1954    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1955    break 2
1956  fi
1957done
1958  done
1959IFS=$as_save_IFS
1960
1961if test $ac_prog_rejected = yes; then
1962  # We found a bogon in the path, so make sure we never use it.
1963  set dummy $ac_cv_prog_CC
1964  shift
1965  if test $# != 0; then
1966    # We chose a different compiler from the bogus one.
1967    # However, it has the same basename, so the bogon will be chosen
1968    # first if we set CC to just the basename; use the full file name.
1969    shift
1970    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1971  fi
1972fi
1973fi
1974fi
1975CC=$ac_cv_prog_CC
1976if test -n "$CC"; then
1977  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
1978$as_echo "$CC" >&6; }
1979else
1980  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1981$as_echo "no" >&6; }
1982fi
1983
1984
1985fi
1986if test -z "$CC"; then
1987  if test -n "$ac_tool_prefix"; then
1988  for ac_prog in cl.exe
1989  do
1990    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1991set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1993$as_echo_n "checking for $ac_word... " >&6; }
1994if test "${ac_cv_prog_CC+set}" = set; then :
1995  $as_echo_n "(cached) " >&6
1996else
1997  if test -n "$CC"; then
1998  ac_cv_prog_CC="$CC" # Let the user override the test.
1999else
2000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2001for as_dir in $PATH
2002do
2003  IFS=$as_save_IFS
2004  test -z "$as_dir" && as_dir=.
2005    for ac_exec_ext in '' $ac_executable_extensions; do
2006  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2007    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2008    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2009    break 2
2010  fi
2011done
2012  done
2013IFS=$as_save_IFS
2014
2015fi
2016fi
2017CC=$ac_cv_prog_CC
2018if test -n "$CC"; then
2019  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2020$as_echo "$CC" >&6; }
2021else
2022  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2023$as_echo "no" >&6; }
2024fi
2025
2026
2027    test -n "$CC" && break
2028  done
2029fi
2030if test -z "$CC"; then
2031  ac_ct_CC=$CC
2032  for ac_prog in cl.exe
2033do
2034  # Extract the first word of "$ac_prog", so it can be a program name with args.
2035set dummy $ac_prog; ac_word=$2
2036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2037$as_echo_n "checking for $ac_word... " >&6; }
2038if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2039  $as_echo_n "(cached) " >&6
2040else
2041  if test -n "$ac_ct_CC"; then
2042  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2043else
2044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2045for as_dir in $PATH
2046do
2047  IFS=$as_save_IFS
2048  test -z "$as_dir" && as_dir=.
2049    for ac_exec_ext in '' $ac_executable_extensions; do
2050  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2051    ac_cv_prog_ac_ct_CC="$ac_prog"
2052    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2053    break 2
2054  fi
2055done
2056  done
2057IFS=$as_save_IFS
2058
2059fi
2060fi
2061ac_ct_CC=$ac_cv_prog_ac_ct_CC
2062if test -n "$ac_ct_CC"; then
2063  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2064$as_echo "$ac_ct_CC" >&6; }
2065else
2066  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2067$as_echo "no" >&6; }
2068fi
2069
2070
2071  test -n "$ac_ct_CC" && break
2072done
2073
2074  if test "x$ac_ct_CC" = x; then
2075    CC=""
2076  else
2077    case $cross_compiling:$ac_tool_warned in
2078yes:)
2079{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2080$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2081ac_tool_warned=yes ;;
2082esac
2083    CC=$ac_ct_CC
2084  fi
2085fi
2086
2087fi
2088
2089
2090test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2091$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2092as_fn_error "no acceptable C compiler found in \$PATH
2093See \`config.log' for more details." "$LINENO" 5; }
2094
2095# Provide some information about the compiler.
2096$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2097set X $ac_compile
2098ac_compiler=$2
2099for ac_option in --version -v -V -qversion; do
2100  { { ac_try="$ac_compiler $ac_option >&5"
2101case "(($ac_try" in
2102  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2103  *) ac_try_echo=$ac_try;;
2104esac
2105eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2106$as_echo "$ac_try_echo"; } >&5
2107  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2108  ac_status=$?
2109  if test -s conftest.err; then
2110    sed '10a\
2111... rest of stderr output deleted ...
2112         10q' conftest.err >conftest.er1
2113    cat conftest.er1 >&5
2114  fi
2115  rm -f conftest.er1 conftest.err
2116  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2117  test $ac_status = 0; }
2118done
2119
2120cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2121/* end confdefs.h.  */
2122
2123int
2124main ()
2125{
2126
2127  ;
2128  return 0;
2129}
2130_ACEOF
2131ac_clean_files_save=$ac_clean_files
2132ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2133# Try to create an executable without -o first, disregard a.out.
2134# It will help us diagnose broken compilers, and finding out an intuition
2135# of exeext.
2136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2137$as_echo_n "checking whether the C compiler works... " >&6; }
2138ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2139
2140# The possible output files:
2141ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2142
2143ac_rmfiles=
2144for ac_file in $ac_files
2145do
2146  case $ac_file in
2147    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2148    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2149  esac
2150done
2151rm -f $ac_rmfiles
2152
2153if { { ac_try="$ac_link_default"
2154case "(($ac_try" in
2155  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2156  *) ac_try_echo=$ac_try;;
2157esac
2158eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2159$as_echo "$ac_try_echo"; } >&5
2160  (eval "$ac_link_default") 2>&5
2161  ac_status=$?
2162  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2163  test $ac_status = 0; }; then :
2164  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2165# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2166# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2167# so that the user can short-circuit this test for compilers unknown to
2168# Autoconf.
2169for ac_file in $ac_files ''
2170do
2171  test -f "$ac_file" || continue
2172  case $ac_file in
2173    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2174	;;
2175    [ab].out )
2176	# We found the default executable, but exeext='' is most
2177	# certainly right.
2178	break;;
2179    *.* )
2180	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2181	then :; else
2182	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2183	fi
2184	# We set ac_cv_exeext here because the later test for it is not
2185	# safe: cross compilers may not add the suffix if given an `-o'
2186	# argument, so we may need to know it at that point already.
2187	# Even if this section looks crufty: it has the advantage of
2188	# actually working.
2189	break;;
2190    * )
2191	break;;
2192  esac
2193done
2194test "$ac_cv_exeext" = no && ac_cv_exeext=
2195
2196else
2197  ac_file=''
2198fi
2199if test -z "$ac_file"; then :
2200  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2201$as_echo "no" >&6; }
2202$as_echo "$as_me: failed program was:" >&5
2203sed 's/^/| /' conftest.$ac_ext >&5
2204
2205{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2206$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2207{ as_fn_set_status 77
2208as_fn_error "C compiler cannot create executables
2209See \`config.log' for more details." "$LINENO" 5; }; }
2210else
2211  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2212$as_echo "yes" >&6; }
2213fi
2214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2215$as_echo_n "checking for C compiler default output file name... " >&6; }
2216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2217$as_echo "$ac_file" >&6; }
2218ac_exeext=$ac_cv_exeext
2219
2220rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2221ac_clean_files=$ac_clean_files_save
2222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2223$as_echo_n "checking for suffix of executables... " >&6; }
2224if { { ac_try="$ac_link"
2225case "(($ac_try" in
2226  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2227  *) ac_try_echo=$ac_try;;
2228esac
2229eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2230$as_echo "$ac_try_echo"; } >&5
2231  (eval "$ac_link") 2>&5
2232  ac_status=$?
2233  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2234  test $ac_status = 0; }; then :
2235  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2236# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2237# work properly (i.e., refer to `conftest.exe'), while it won't with
2238# `rm'.
2239for ac_file in conftest.exe conftest conftest.*; do
2240  test -f "$ac_file" || continue
2241  case $ac_file in
2242    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2243    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2244	  break;;
2245    * ) break;;
2246  esac
2247done
2248else
2249  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2250$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2251as_fn_error "cannot compute suffix of executables: cannot compile and link
2252See \`config.log' for more details." "$LINENO" 5; }
2253fi
2254rm -f conftest conftest$ac_cv_exeext
2255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2256$as_echo "$ac_cv_exeext" >&6; }
2257
2258rm -f conftest.$ac_ext
2259EXEEXT=$ac_cv_exeext
2260ac_exeext=$EXEEXT
2261cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2262/* end confdefs.h.  */
2263#include <stdio.h>
2264int
2265main ()
2266{
2267FILE *f = fopen ("conftest.out", "w");
2268 return ferror (f) || fclose (f) != 0;
2269
2270  ;
2271  return 0;
2272}
2273_ACEOF
2274ac_clean_files="$ac_clean_files conftest.out"
2275# Check that the compiler produces executables we can run.  If not, either
2276# the compiler is broken, or we cross compile.
2277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2278$as_echo_n "checking whether we are cross compiling... " >&6; }
2279if test "$cross_compiling" != yes; then
2280  { { ac_try="$ac_link"
2281case "(($ac_try" in
2282  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2283  *) ac_try_echo=$ac_try;;
2284esac
2285eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2286$as_echo "$ac_try_echo"; } >&5
2287  (eval "$ac_link") 2>&5
2288  ac_status=$?
2289  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2290  test $ac_status = 0; }
2291  if { ac_try='./conftest$ac_cv_exeext'
2292  { { case "(($ac_try" in
2293  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2294  *) ac_try_echo=$ac_try;;
2295esac
2296eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2297$as_echo "$ac_try_echo"; } >&5
2298  (eval "$ac_try") 2>&5
2299  ac_status=$?
2300  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2301  test $ac_status = 0; }; }; then
2302    cross_compiling=no
2303  else
2304    if test "$cross_compiling" = maybe; then
2305	cross_compiling=yes
2306    else
2307	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2308$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2309as_fn_error "cannot run C compiled programs.
2310If you meant to cross compile, use \`--host'.
2311See \`config.log' for more details." "$LINENO" 5; }
2312    fi
2313  fi
2314fi
2315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2316$as_echo "$cross_compiling" >&6; }
2317
2318rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2319ac_clean_files=$ac_clean_files_save
2320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2321$as_echo_n "checking for suffix of object files... " >&6; }
2322if test "${ac_cv_objext+set}" = set; then :
2323  $as_echo_n "(cached) " >&6
2324else
2325  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2326/* end confdefs.h.  */
2327
2328int
2329main ()
2330{
2331
2332  ;
2333  return 0;
2334}
2335_ACEOF
2336rm -f conftest.o conftest.obj
2337if { { ac_try="$ac_compile"
2338case "(($ac_try" in
2339  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2340  *) ac_try_echo=$ac_try;;
2341esac
2342eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2343$as_echo "$ac_try_echo"; } >&5
2344  (eval "$ac_compile") 2>&5
2345  ac_status=$?
2346  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2347  test $ac_status = 0; }; then :
2348  for ac_file in conftest.o conftest.obj conftest.*; do
2349  test -f "$ac_file" || continue;
2350  case $ac_file in
2351    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2352    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2353       break;;
2354  esac
2355done
2356else
2357  $as_echo "$as_me: failed program was:" >&5
2358sed 's/^/| /' conftest.$ac_ext >&5
2359
2360{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2361$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2362as_fn_error "cannot compute suffix of object files: cannot compile
2363See \`config.log' for more details." "$LINENO" 5; }
2364fi
2365rm -f conftest.$ac_cv_objext conftest.$ac_ext
2366fi
2367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2368$as_echo "$ac_cv_objext" >&6; }
2369OBJEXT=$ac_cv_objext
2370ac_objext=$OBJEXT
2371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2372$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2373if test "${ac_cv_c_compiler_gnu+set}" = set; then :
2374  $as_echo_n "(cached) " >&6
2375else
2376  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2377/* end confdefs.h.  */
2378
2379int
2380main ()
2381{
2382#ifndef __GNUC__
2383       choke me
2384#endif
2385
2386  ;
2387  return 0;
2388}
2389_ACEOF
2390if ac_fn_c_try_compile "$LINENO"; then :
2391  ac_compiler_gnu=yes
2392else
2393  ac_compiler_gnu=no
2394fi
2395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2396ac_cv_c_compiler_gnu=$ac_compiler_gnu
2397
2398fi
2399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2400$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2401if test $ac_compiler_gnu = yes; then
2402  GCC=yes
2403else
2404  GCC=
2405fi
2406ac_test_CFLAGS=${CFLAGS+set}
2407ac_save_CFLAGS=$CFLAGS
2408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2409$as_echo_n "checking whether $CC accepts -g... " >&6; }
2410if test "${ac_cv_prog_cc_g+set}" = set; then :
2411  $as_echo_n "(cached) " >&6
2412else
2413  ac_save_c_werror_flag=$ac_c_werror_flag
2414   ac_c_werror_flag=yes
2415   ac_cv_prog_cc_g=no
2416   CFLAGS="-g"
2417   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2418/* end confdefs.h.  */
2419
2420int
2421main ()
2422{
2423
2424  ;
2425  return 0;
2426}
2427_ACEOF
2428if ac_fn_c_try_compile "$LINENO"; then :
2429  ac_cv_prog_cc_g=yes
2430else
2431  CFLAGS=""
2432      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2433/* end confdefs.h.  */
2434
2435int
2436main ()
2437{
2438
2439  ;
2440  return 0;
2441}
2442_ACEOF
2443if ac_fn_c_try_compile "$LINENO"; then :
2444
2445else
2446  ac_c_werror_flag=$ac_save_c_werror_flag
2447	 CFLAGS="-g"
2448	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2449/* end confdefs.h.  */
2450
2451int
2452main ()
2453{
2454
2455  ;
2456  return 0;
2457}
2458_ACEOF
2459if ac_fn_c_try_compile "$LINENO"; then :
2460  ac_cv_prog_cc_g=yes
2461fi
2462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2463fi
2464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2465fi
2466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2467   ac_c_werror_flag=$ac_save_c_werror_flag
2468fi
2469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2470$as_echo "$ac_cv_prog_cc_g" >&6; }
2471if test "$ac_test_CFLAGS" = set; then
2472  CFLAGS=$ac_save_CFLAGS
2473elif test $ac_cv_prog_cc_g = yes; then
2474  if test "$GCC" = yes; then
2475    CFLAGS="-g -O2"
2476  else
2477    CFLAGS="-g"
2478  fi
2479else
2480  if test "$GCC" = yes; then
2481    CFLAGS="-O2"
2482  else
2483    CFLAGS=
2484  fi
2485fi
2486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2487$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2488if test "${ac_cv_prog_cc_c89+set}" = set; then :
2489  $as_echo_n "(cached) " >&6
2490else
2491  ac_cv_prog_cc_c89=no
2492ac_save_CC=$CC
2493cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2494/* end confdefs.h.  */
2495#include <stdarg.h>
2496#include <stdio.h>
2497#include <sys/types.h>
2498#include <sys/stat.h>
2499/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2500struct buf { int x; };
2501FILE * (*rcsopen) (struct buf *, struct stat *, int);
2502static char *e (p, i)
2503     char **p;
2504     int i;
2505{
2506  return p[i];
2507}
2508static char *f (char * (*g) (char **, int), char **p, ...)
2509{
2510  char *s;
2511  va_list v;
2512  va_start (v,p);
2513  s = g (p, va_arg (v,int));
2514  va_end (v);
2515  return s;
2516}
2517
2518/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2519   function prototypes and stuff, but not '\xHH' hex character constants.
2520   These don't provoke an error unfortunately, instead are silently treated
2521   as 'x'.  The following induces an error, until -std is added to get
2522   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2523   array size at least.  It's necessary to write '\x00'==0 to get something
2524   that's true only with -std.  */
2525int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2526
2527/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2528   inside strings and character constants.  */
2529#define FOO(x) 'x'
2530int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2531
2532int test (int i, double x);
2533struct s1 {int (*f) (int a);};
2534struct s2 {int (*f) (double a);};
2535int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2536int argc;
2537char **argv;
2538int
2539main ()
2540{
2541return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2542  ;
2543  return 0;
2544}
2545_ACEOF
2546for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2547	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2548do
2549  CC="$ac_save_CC $ac_arg"
2550  if ac_fn_c_try_compile "$LINENO"; then :
2551  ac_cv_prog_cc_c89=$ac_arg
2552fi
2553rm -f core conftest.err conftest.$ac_objext
2554  test "x$ac_cv_prog_cc_c89" != "xno" && break
2555done
2556rm -f conftest.$ac_ext
2557CC=$ac_save_CC
2558
2559fi
2560# AC_CACHE_VAL
2561case "x$ac_cv_prog_cc_c89" in
2562  x)
2563    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2564$as_echo "none needed" >&6; } ;;
2565  xno)
2566    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2567$as_echo "unsupported" >&6; } ;;
2568  *)
2569    CC="$CC $ac_cv_prog_cc_c89"
2570    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
2571$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2572esac
2573if test "x$ac_cv_prog_cc_c89" != xno; then :
2574
2575fi
2576
2577ac_ext=c
2578ac_cpp='$CPP $CPPFLAGS'
2579ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2580ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2581ac_compiler_gnu=$ac_cv_c_compiler_gnu
2582
2583else
2584    CC=${CC-cc}
2585
2586fi
2587
2588ac_aux_dir=
2589for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2590  for ac_t in install-sh install.sh shtool; do
2591    if test -f "$ac_dir/$ac_t"; then
2592      ac_aux_dir=$ac_dir
2593      ac_install_sh="$ac_aux_dir/$ac_t -c"
2594      break 2
2595    fi
2596  done
2597done
2598if test -z "$ac_aux_dir"; then
2599  as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2600fi
2601
2602# These three variables are undocumented and unsupported,
2603# and are intended to be withdrawn in a future Autoconf release.
2604# They can cause serious problems if a builder's source tree is in a directory
2605# whose full name contains unusual characters.
2606ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2607ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2608ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2609
2610
2611# Find a good install program.  We prefer a C program (faster),
2612# so one script is as good as another.  But avoid the broken or
2613# incompatible versions:
2614# SysV /etc/install, /usr/sbin/install
2615# SunOS /usr/etc/install
2616# IRIX /sbin/install
2617# AIX /bin/install
2618# AmigaOS /C/install, which installs bootblocks on floppy discs
2619# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2620# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2621# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2622# OS/2's system install, which has a completely different semantic
2623# ./install, which can be erroneously created by make from ./install.sh.
2624# Reject install programs that cannot install multiple files.
2625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2626$as_echo_n "checking for a BSD-compatible install... " >&6; }
2627if test -z "$INSTALL"; then
2628if test "${ac_cv_path_install+set}" = set; then :
2629  $as_echo_n "(cached) " >&6
2630else
2631  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2632for as_dir in $PATH
2633do
2634  IFS=$as_save_IFS
2635  test -z "$as_dir" && as_dir=.
2636    # Account for people who put trailing slashes in PATH elements.
2637case $as_dir/ in #((
2638  ./ | .// | /[cC]/* | \
2639  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2640  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2641  /usr/ucb/* ) ;;
2642  *)
2643    # OSF1 and SCO ODT 3.0 have their own names for install.
2644    # Don't use installbsd from OSF since it installs stuff as root
2645    # by default.
2646    for ac_prog in ginstall scoinst install; do
2647      for ac_exec_ext in '' $ac_executable_extensions; do
2648	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2649	  if test $ac_prog = install &&
2650	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2651	    # AIX install.  It has an incompatible calling convention.
2652	    :
2653	  elif test $ac_prog = install &&
2654	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2655	    # program-specific install script used by HP pwplus--don't use.
2656	    :
2657	  else
2658	    rm -rf conftest.one conftest.two conftest.dir
2659	    echo one > conftest.one
2660	    echo two > conftest.two
2661	    mkdir conftest.dir
2662	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2663	      test -s conftest.one && test -s conftest.two &&
2664	      test -s conftest.dir/conftest.one &&
2665	      test -s conftest.dir/conftest.two
2666	    then
2667	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2668	      break 3
2669	    fi
2670	  fi
2671	fi
2672      done
2673    done
2674    ;;
2675esac
2676
2677  done
2678IFS=$as_save_IFS
2679
2680rm -rf conftest.one conftest.two conftest.dir
2681
2682fi
2683  if test "${ac_cv_path_install+set}" = set; then
2684    INSTALL=$ac_cv_path_install
2685  else
2686    # As a last resort, use the slow shell script.  Don't cache a
2687    # value for INSTALL within a source directory, because that will
2688    # break other packages using the cache if that directory is
2689    # removed, or if the value is a relative name.
2690    INSTALL=$ac_install_sh
2691  fi
2692fi
2693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2694$as_echo "$INSTALL" >&6; }
2695
2696# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2697# It thinks the first close brace ends the variable substitution.
2698test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2699
2700test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2701
2702test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2703
2704if test -n "$ac_tool_prefix"; then
2705  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2706set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2708$as_echo_n "checking for $ac_word... " >&6; }
2709if test "${ac_cv_prog_RANLIB+set}" = set; then :
2710  $as_echo_n "(cached) " >&6
2711else
2712  if test -n "$RANLIB"; then
2713  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2714else
2715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2716for as_dir in $PATH
2717do
2718  IFS=$as_save_IFS
2719  test -z "$as_dir" && as_dir=.
2720    for ac_exec_ext in '' $ac_executable_extensions; do
2721  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2722    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2723    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2724    break 2
2725  fi
2726done
2727  done
2728IFS=$as_save_IFS
2729
2730fi
2731fi
2732RANLIB=$ac_cv_prog_RANLIB
2733if test -n "$RANLIB"; then
2734  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
2735$as_echo "$RANLIB" >&6; }
2736else
2737  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2738$as_echo "no" >&6; }
2739fi
2740
2741
2742fi
2743if test -z "$ac_cv_prog_RANLIB"; then
2744  ac_ct_RANLIB=$RANLIB
2745  # Extract the first word of "ranlib", so it can be a program name with args.
2746set dummy ranlib; ac_word=$2
2747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2748$as_echo_n "checking for $ac_word... " >&6; }
2749if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
2750  $as_echo_n "(cached) " >&6
2751else
2752  if test -n "$ac_ct_RANLIB"; then
2753  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2754else
2755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2756for as_dir in $PATH
2757do
2758  IFS=$as_save_IFS
2759  test -z "$as_dir" && as_dir=.
2760    for ac_exec_ext in '' $ac_executable_extensions; do
2761  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2762    ac_cv_prog_ac_ct_RANLIB="ranlib"
2763    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2764    break 2
2765  fi
2766done
2767  done
2768IFS=$as_save_IFS
2769
2770fi
2771fi
2772ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2773if test -n "$ac_ct_RANLIB"; then
2774  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
2775$as_echo "$ac_ct_RANLIB" >&6; }
2776else
2777  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2778$as_echo "no" >&6; }
2779fi
2780
2781  if test "x$ac_ct_RANLIB" = x; then
2782    RANLIB=":"
2783  else
2784    case $cross_compiling:$ac_tool_warned in
2785yes:)
2786{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2787$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2788ac_tool_warned=yes ;;
2789esac
2790    RANLIB=$ac_ct_RANLIB
2791  fi
2792else
2793  RANLIB="$ac_cv_prog_RANLIB"
2794fi
2795
2796
2797if test ! -f $exec_prefix/lib/tclConfig.sh
2798then
2799    as_fn_error "Tcl must be installed first" "$LINENO" 5
2800fi
2801
2802. $exec_prefix/lib/tclConfig.sh
2803
2804if test ! -f $exec_prefix/lib/tclxConfig.sh
2805then
2806    as_fn_error "Extended Tcl must be installed first" "$LINENO" 5
2807fi
2808. $exec_prefix/lib/tclxConfig.sh
2809
2810
2811#--------------------------------------------------------------------
2812#	See if there was a command-line option for where Tk is;  if
2813#	not, assume that its top-level directory is a sibling of ours.
2814#--------------------------------------------------------------------
2815
2816
2817# Check whether --with-tk was given.
2818if test "${with_tk+set}" = set; then :
2819  withval=$with_tk;
2820else
2821  with_tk=yes
2822fi
2823
2824
2825case "$with_tk" in
2826    yes)
2827	if test -f $exec_prefix/lib/tkConfig.sh &&
2828	   test -f $exec_prefix/lib/tkxConfig.sh
2829	then
2830	    :
2831	else
2832	    as_fn_error "Tk does not appear to be installed at $exec_prefix" "$LINENO" 5
2833	fi
2834	;;
2835    no) ;;
2836    *)  as_fn_error "Tk cannot be specified and must be in $exec_prefix" "$LINENO" 5
2837	;;
2838esac
2839
2840
2841# Check whether --with-x was given.
2842if test "${with_x+set}" = set; then :
2843  withval=$with_x;
2844fi
2845
2846if test "$with_x" = "no"
2847then
2848    with_tk=no
2849fi
2850
2851if test "$with_tk" != "no"
2852then
2853    LDAPWISH=ldapwish
2854    . $exec_prefix/lib/tkConfig.sh
2855    . $exec_prefix/lib/tkxConfig.sh
2856fi
2857
2858
2859
2860
2861
2862
2863
2864#--------------------------------------------------------------------
2865#	Read in configuration information generated by Tcl for shared
2866#	libraries, and arrange for it to be substituted into our
2867#	Makefile.
2868#--------------------------------------------------------------------
2869
2870CC=$TCL_CC
2871SHLIB_CFLAGS=$TCL_SHLIB_CFLAGS
2872SHLIB_LD=$TCL_SHLIB_LD
2873SHLIB_LD_LIBS=$TCL_SHLIB_LD_LIBS
2874SHLIB_SUFFIX=$TCL_SHLIB_SUFFIX
2875SHLIB_VERSION=$TCL_SHLIB_VERSION
2876DL_LIBS=$TCL_DL_LIBS
2877LD_FLAGS=$TCL_LD_FLAGS
2878NEO_LD_SEARCH_FLAGS=$TCL_LD_SEARCH_FLAGS
2879
2880eval "NEO_SHARED_LIB_FILE=libldaptcl${TCL_SHARED_LIB_SUFFIX}"
2881eval "NEO_UNSHARED_LIB_FILE=libldaptcl${TCL_UNSHARED_LIB_SUFFIX}"
2882
2883#--------------------------------------------------------------------
2884#	The statements below define a collection of symbols related to
2885#	building libldap as a shared library instead of a static library.
2886#--------------------------------------------------------------------
2887
2888# Warning: in order to use the following code for libldap and libdb versions,
2889# the VERSION shell variable is modified, and then is restored after.
2890
2891# Check whether --enable-shared was given.
2892if test "${enable_shared+set}" = set; then :
2893  enableval=$enable_shared; ok=$enableval
2894else
2895  ok=no
2896fi
2897
2898if test "$ok" = "yes" && test "${SHLIB_SUFFIX}" != ""; then
2899    NEO_SHLIB_CFLAGS="${SHLIB_CFLAGS}"
2900    eval "NEO_LIB_FILE=libldaptcl${TCL_SHARED_LIB_SUFFIX}"
2901    MAKE_LIB="\${SHLIB_LD} $TCL_LIB_HNAME -o ${NEO_LIB_FILE} \${OBJS} \${LDAP_LIBFLAGS}"
2902    RANLIB=":"
2903else
2904    NEO_SHLIB_CFLAGS=""
2905    eval "NEO_LIB_FILE=libldaptcl${TCL_UNSHARED_LIB_SUFFIX}"
2906    MAKE_LIB="ar cr ${NEO_LIB_FILE} \${OBJS}"
2907fi
2908
2909
2910# Check whether --with-ldap was given.
2911if test "${with_ldap+set}" = set; then :
2912  withval=$with_ldap; neo_ldap=$withval
2913	case $withval in
2914	    yes) ldapdir=/usr/local
2915		 ;;
2916	    no)  ;;
2917	    *)	 ldapdir=$withval
2918		 neo_ldap=yes
2919		 ;;
2920	esac
2921
2922else
2923
2924	    neo_ldap=yes
2925	    ldapdir=/usr/local
2926
2927fi
2928
2929
2930ldapincdir=$ldapdir/include
2931
2932# Check whether --with-ldap-incdir was given.
2933if test "${with_ldap_incdir+set}" = set; then :
2934  withval=$with_ldap_incdir; ldapincdir=$withval
2935fi
2936
2937
2938ldaplibdir=$ldapdir/lib
2939
2940# Check whether --with-ldap-libdir was given.
2941if test "${with_ldap_libdir+set}" = set; then :
2942  withval=$with_ldap_libdir; ldaplibdir=$withval
2943fi
2944
2945
2946
2947# Check whether --with-ldap-libraries was given.
2948if test "${with_ldap_libraries+set}" = set; then :
2949  withval=$with_ldap_libraries; ldaplibflags="-L$ldaplibdir $withval"
2950else
2951  ldaplibflags="-L$ldaplibdir -lldap -llber"
2952fi
2953
2954
2955ldapinclude="-I$ldapincdir"
2956
2957ldapbuild=yes
2958
2959
2960
2961
2962
2963
2964
2965
2966VERSION=${NEO_VERSION}
2967# Note:  in the following variable, it's important to use the absolute
2968# path name of the Tcl directory rather than "..":  this is because
2969# AIX remembers this path and will attempt to use it at run-time to look
2970# up the Tcl library.
2971
2972if test "${TCL_LIB_VERSIONS_OK}" = "ok"; then
2973    NEO_BUILD_LIB_SPEC="-L`pwd` -lldaptcl${VERSION}"
2974    NEO_LIB_SPEC="-L${exec_prefix}/lib -lldaptcl${VERSION}"
2975else
2976    NEO_BUILD_LIB_SPEC="-L`pwd` -lldaptcl`echo ${VERSION} | tr -d .`"
2977    NEO_LIB_SPEC="-L${exec_prefix}/lib -lldaptcl`echo ${VERSION} | tr -d .`"
2978fi
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014ac_config_files="$ac_config_files Makefile pkgIndex.tcl"
3015
3016cat >confcache <<\_ACEOF
3017# This file is a shell script that caches the results of configure
3018# tests run on this system so they can be shared between configure
3019# scripts and configure runs, see configure's option --config-cache.
3020# It is not useful on other systems.  If it contains results you don't
3021# want to keep, you may remove or edit it.
3022#
3023# config.status only pays attention to the cache file if you give it
3024# the --recheck option to rerun configure.
3025#
3026# `ac_cv_env_foo' variables (set or unset) will be overridden when
3027# loading this file, other *unset* `ac_cv_foo' will be assigned the
3028# following values.
3029
3030_ACEOF
3031
3032# The following way of writing the cache mishandles newlines in values,
3033# but we know of no workaround that is simple, portable, and efficient.
3034# So, we kill variables containing newlines.
3035# Ultrix sh set writes to stderr and can't be redirected directly,
3036# and sets the high bit in the cache file unless we assign to the vars.
3037(
3038  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
3039    eval ac_val=\$$ac_var
3040    case $ac_val in #(
3041    *${as_nl}*)
3042      case $ac_var in #(
3043      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3044$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3045      esac
3046      case $ac_var in #(
3047      _ | IFS | as_nl) ;; #(
3048      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3049      *) { eval $ac_var=; unset $ac_var;} ;;
3050      esac ;;
3051    esac
3052  done
3053
3054  (set) 2>&1 |
3055    case $as_nl`(ac_space=' '; set) 2>&1` in #(
3056    *${as_nl}ac_space=\ *)
3057      # `set' does not quote correctly, so add quotes: double-quote
3058      # substitution turns \\\\ into \\, and sed turns \\ into \.
3059      sed -n \
3060	"s/'/'\\\\''/g;
3061	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3062      ;; #(
3063    *)
3064      # `set' quotes correctly as required by POSIX, so do not add quotes.
3065      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3066      ;;
3067    esac |
3068    sort
3069) |
3070  sed '
3071     /^ac_cv_env_/b end
3072     t clear
3073     :clear
3074     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3075     t end
3076     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3077     :end' >>confcache
3078if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
3079  if test -w "$cache_file"; then
3080    test "x$cache_file" != "x/dev/null" &&
3081      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
3082$as_echo "$as_me: updating cache $cache_file" >&6;}
3083    cat confcache >$cache_file
3084  else
3085    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
3086$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
3087  fi
3088fi
3089rm -f confcache
3090
3091test "x$prefix" = xNONE && prefix=$ac_default_prefix
3092# Let make expand exec_prefix.
3093test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3094
3095# Transform confdefs.h into DEFS.
3096# Protect against shell expansion while executing Makefile rules.
3097# Protect against Makefile macro expansion.
3098#
3099# If the first sed substitution is executed (which looks for macros that
3100# take arguments), then branch to the quote section.  Otherwise,
3101# look for a macro that doesn't take arguments.
3102ac_script='
3103:mline
3104/\\$/{
3105 N
3106 s,\\\n,,
3107 b mline
3108}
3109t clear
3110:clear
3111s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\)/-D\1=\2/g
3112t quote
3113s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)/-D\1=\2/g
3114t quote
3115b any
3116:quote
3117s/[	 `~#$^&*(){}\\|;'\''"<>?]/\\&/g
3118s/\[/\\&/g
3119s/\]/\\&/g
3120s/\$/$$/g
3121H
3122:any
3123${
3124	g
3125	s/^\n//
3126	s/\n/ /g
3127	p
3128}
3129'
3130DEFS=`sed -n "$ac_script" confdefs.h`
3131
3132
3133ac_libobjs=
3134ac_ltlibobjs=
3135for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3136  # 1. Remove the extension, and $U if already installed.
3137  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
3138  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
3139  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
3140  #    will be set to the directory where LIBOBJS objects are built.
3141  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
3142  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
3143done
3144LIBOBJS=$ac_libobjs
3145
3146LTLIBOBJS=$ac_ltlibobjs
3147
3148
3149
3150: ${CONFIG_STATUS=./config.status}
3151ac_write_fail=0
3152ac_clean_files_save=$ac_clean_files
3153ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3154{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
3155$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
3156as_write_fail=0
3157cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
3158#! $SHELL
3159# Generated by $as_me.
3160# Run this file to recreate the current configuration.
3161# Compiler output produced by configure, useful for debugging
3162# configure, is in config.log if it exists.
3163
3164debug=false
3165ac_cs_recheck=false
3166ac_cs_silent=false
3167
3168SHELL=\${CONFIG_SHELL-$SHELL}
3169export SHELL
3170_ASEOF
3171cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
3172## -------------------- ##
3173## M4sh Initialization. ##
3174## -------------------- ##
3175
3176# Be more Bourne compatible
3177DUALCASE=1; export DUALCASE # for MKS sh
3178if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
3179  emulate sh
3180  NULLCMD=:
3181  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
3182  # is contrary to our usage.  Disable this feature.
3183  alias -g '${1+"$@"}'='"$@"'
3184  setopt NO_GLOB_SUBST
3185else
3186  case `(set -o) 2>/dev/null` in #(
3187  *posix*) :
3188    set -o posix ;; #(
3189  *) :
3190     ;;
3191esac
3192fi
3193
3194
3195as_nl='
3196'
3197export as_nl
3198# Printing a long string crashes Solaris 7 /usr/bin/printf.
3199as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3200as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
3201as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
3202# Prefer a ksh shell builtin over an external printf program on Solaris,
3203# but without wasting forks for bash or zsh.
3204if test -z "$BASH_VERSION$ZSH_VERSION" \
3205    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
3206  as_echo='print -r --'
3207  as_echo_n='print -rn --'
3208elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
3209  as_echo='printf %s\n'
3210  as_echo_n='printf %s'
3211else
3212  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
3213    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
3214    as_echo_n='/usr/ucb/echo -n'
3215  else
3216    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
3217    as_echo_n_body='eval
3218      arg=$1;
3219      case $arg in #(
3220      *"$as_nl"*)
3221	expr "X$arg" : "X\\(.*\\)$as_nl";
3222	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
3223      esac;
3224      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
3225    '
3226    export as_echo_n_body
3227    as_echo_n='sh -c $as_echo_n_body as_echo'
3228  fi
3229  export as_echo_body
3230  as_echo='sh -c $as_echo_body as_echo'
3231fi
3232
3233# The user is always right.
3234if test "${PATH_SEPARATOR+set}" != set; then
3235  PATH_SEPARATOR=:
3236  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
3237    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
3238      PATH_SEPARATOR=';'
3239  }
3240fi
3241
3242
3243# IFS
3244# We need space, tab and new line, in precisely that order.  Quoting is
3245# there to prevent editors from complaining about space-tab.
3246# (If _AS_PATH_WALK were called with IFS unset, it would disable word
3247# splitting by setting IFS to empty value.)
3248IFS=" ""	$as_nl"
3249
3250# Find who we are.  Look in the path if we contain no directory separator.
3251case $0 in #((
3252  *[\\/]* ) as_myself=$0 ;;
3253  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3254for as_dir in $PATH
3255do
3256  IFS=$as_save_IFS
3257  test -z "$as_dir" && as_dir=.
3258    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3259  done
3260IFS=$as_save_IFS
3261
3262     ;;
3263esac
3264# We did not find ourselves, most probably we were run as `sh COMMAND'
3265# in which case we are not to be found in the path.
3266if test "x$as_myself" = x; then
3267  as_myself=$0
3268fi
3269if test ! -f "$as_myself"; then
3270  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
3271  exit 1
3272fi
3273
3274# Unset variables that we do not need and which cause bugs (e.g. in
3275# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
3276# suppresses any "Segmentation fault" message there.  '((' could
3277# trigger a bug in pdksh 5.2.14.
3278for as_var in BASH_ENV ENV MAIL MAILPATH
3279do eval test x\${$as_var+set} = xset \
3280  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
3281done
3282PS1='$ '
3283PS2='> '
3284PS4='+ '
3285
3286# NLS nuisances.
3287LC_ALL=C
3288export LC_ALL
3289LANGUAGE=C
3290export LANGUAGE
3291
3292# CDPATH.
3293(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
3294
3295
3296# as_fn_error ERROR [LINENO LOG_FD]
3297# ---------------------------------
3298# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
3299# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
3300# script with status $?, using 1 if that was 0.
3301as_fn_error ()
3302{
3303  as_status=$?; test $as_status -eq 0 && as_status=1
3304  if test "$3"; then
3305    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3306    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
3307  fi
3308  $as_echo "$as_me: error: $1" >&2
3309  as_fn_exit $as_status
3310} # as_fn_error
3311
3312
3313# as_fn_set_status STATUS
3314# -----------------------
3315# Set $? to STATUS, without forking.
3316as_fn_set_status ()
3317{
3318  return $1
3319} # as_fn_set_status
3320
3321# as_fn_exit STATUS
3322# -----------------
3323# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
3324as_fn_exit ()
3325{
3326  set +e
3327  as_fn_set_status $1
3328  exit $1
3329} # as_fn_exit
3330
3331# as_fn_unset VAR
3332# ---------------
3333# Portably unset VAR.
3334as_fn_unset ()
3335{
3336  { eval $1=; unset $1;}
3337}
3338as_unset=as_fn_unset
3339# as_fn_append VAR VALUE
3340# ----------------------
3341# Append the text in VALUE to the end of the definition contained in VAR. Take
3342# advantage of any shell optimizations that allow amortized linear growth over
3343# repeated appends, instead of the typical quadratic growth present in naive
3344# implementations.
3345if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
3346  eval 'as_fn_append ()
3347  {
3348    eval $1+=\$2
3349  }'
3350else
3351  as_fn_append ()
3352  {
3353    eval $1=\$$1\$2
3354  }
3355fi # as_fn_append
3356
3357# as_fn_arith ARG...
3358# ------------------
3359# Perform arithmetic evaluation on the ARGs, and store the result in the
3360# global $as_val. Take advantage of shells that can avoid forks. The arguments
3361# must be portable across $(()) and expr.
3362if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
3363  eval 'as_fn_arith ()
3364  {
3365    as_val=$(( $* ))
3366  }'
3367else
3368  as_fn_arith ()
3369  {
3370    as_val=`expr "$@" || test $? -eq 1`
3371  }
3372fi # as_fn_arith
3373
3374
3375if expr a : '\(a\)' >/dev/null 2>&1 &&
3376   test "X`expr 00001 : '.*\(...\)'`" = X001; then
3377  as_expr=expr
3378else
3379  as_expr=false
3380fi
3381
3382if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
3383  as_basename=basename
3384else
3385  as_basename=false
3386fi
3387
3388if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
3389  as_dirname=dirname
3390else
3391  as_dirname=false
3392fi
3393
3394as_me=`$as_basename -- "$0" ||
3395$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3396	 X"$0" : 'X\(//\)$' \| \
3397	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
3398$as_echo X/"$0" |
3399    sed '/^.*\/\([^/][^/]*\)\/*$/{
3400	    s//\1/
3401	    q
3402	  }
3403	  /^X\/\(\/\/\)$/{
3404	    s//\1/
3405	    q
3406	  }
3407	  /^X\/\(\/\).*/{
3408	    s//\1/
3409	    q
3410	  }
3411	  s/.*/./; q'`
3412
3413# Avoid depending upon Character Ranges.
3414as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3415as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3416as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3417as_cr_digits='0123456789'
3418as_cr_alnum=$as_cr_Letters$as_cr_digits
3419
3420ECHO_C= ECHO_N= ECHO_T=
3421case `echo -n x` in #(((((
3422-n*)
3423  case `echo 'xy\c'` in
3424  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
3425  xy)  ECHO_C='\c';;
3426  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
3427       ECHO_T='	';;
3428  esac;;
3429*)
3430  ECHO_N='-n';;
3431esac
3432
3433rm -f conf$$ conf$$.exe conf$$.file
3434if test -d conf$$.dir; then
3435  rm -f conf$$.dir/conf$$.file
3436else
3437  rm -f conf$$.dir
3438  mkdir conf$$.dir 2>/dev/null
3439fi
3440if (echo >conf$$.file) 2>/dev/null; then
3441  if ln -s conf$$.file conf$$ 2>/dev/null; then
3442    as_ln_s='ln -s'
3443    # ... but there are two gotchas:
3444    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
3445    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
3446    # In both cases, we have to default to `cp -p'.
3447    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
3448      as_ln_s='cp -p'
3449  elif ln conf$$.file conf$$ 2>/dev/null; then
3450    as_ln_s=ln
3451  else
3452    as_ln_s='cp -p'
3453  fi
3454else
3455  as_ln_s='cp -p'
3456fi
3457rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
3458rmdir conf$$.dir 2>/dev/null
3459
3460
3461# as_fn_mkdir_p
3462# -------------
3463# Create "$as_dir" as a directory, including parents if necessary.
3464as_fn_mkdir_p ()
3465{
3466
3467  case $as_dir in #(
3468  -*) as_dir=./$as_dir;;
3469  esac
3470  test -d "$as_dir" || eval $as_mkdir_p || {
3471    as_dirs=
3472    while :; do
3473      case $as_dir in #(
3474      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
3475      *) as_qdir=$as_dir;;
3476      esac
3477      as_dirs="'$as_qdir' $as_dirs"
3478      as_dir=`$as_dirname -- "$as_dir" ||
3479$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3480	 X"$as_dir" : 'X\(//\)[^/]' \| \
3481	 X"$as_dir" : 'X\(//\)$' \| \
3482	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
3483$as_echo X"$as_dir" |
3484    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3485	    s//\1/
3486	    q
3487	  }
3488	  /^X\(\/\/\)[^/].*/{
3489	    s//\1/
3490	    q
3491	  }
3492	  /^X\(\/\/\)$/{
3493	    s//\1/
3494	    q
3495	  }
3496	  /^X\(\/\).*/{
3497	    s//\1/
3498	    q
3499	  }
3500	  s/.*/./; q'`
3501      test -d "$as_dir" && break
3502    done
3503    test -z "$as_dirs" || eval "mkdir $as_dirs"
3504  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
3505
3506
3507} # as_fn_mkdir_p
3508if mkdir -p . 2>/dev/null; then
3509  as_mkdir_p='mkdir -p "$as_dir"'
3510else
3511  test -d ./-p && rmdir ./-p
3512  as_mkdir_p=false
3513fi
3514
3515if test -x / >/dev/null 2>&1; then
3516  as_test_x='test -x'
3517else
3518  if ls -dL / >/dev/null 2>&1; then
3519    as_ls_L_option=L
3520  else
3521    as_ls_L_option=
3522  fi
3523  as_test_x='
3524    eval sh -c '\''
3525      if test -d "$1"; then
3526	test -d "$1/.";
3527      else
3528	case $1 in #(
3529	-*)set "./$1";;
3530	esac;
3531	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
3532	???[sx]*):;;*)false;;esac;fi
3533    '\'' sh
3534  '
3535fi
3536as_executable_p=$as_test_x
3537
3538# Sed expression to map a string onto a valid CPP name.
3539as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
3540
3541# Sed expression to map a string onto a valid variable name.
3542as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
3543
3544
3545exec 6>&1
3546## ----------------------------------- ##
3547## Main body of $CONFIG_STATUS script. ##
3548## ----------------------------------- ##
3549_ASEOF
3550test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
3551
3552cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3553# Save the log message, to keep $0 and so on meaningful, and to
3554# report actual input values of CONFIG_FILES etc. instead of their
3555# values after options handling.
3556ac_log="
3557This file was extended by $as_me, which was
3558generated by GNU Autoconf 2.65.  Invocation command line was
3559
3560  CONFIG_FILES    = $CONFIG_FILES
3561  CONFIG_HEADERS  = $CONFIG_HEADERS
3562  CONFIG_LINKS    = $CONFIG_LINKS
3563  CONFIG_COMMANDS = $CONFIG_COMMANDS
3564  $ $0 $@
3565
3566on `(hostname || uname -n) 2>/dev/null | sed 1q`
3567"
3568
3569_ACEOF
3570
3571case $ac_config_files in *"
3572"*) set x $ac_config_files; shift; ac_config_files=$*;;
3573esac
3574
3575
3576
3577cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3578# Files that config.status was made for.
3579config_files="$ac_config_files"
3580
3581_ACEOF
3582
3583cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3584ac_cs_usage="\
3585\`$as_me' instantiates files and other configuration actions
3586from templates according to the current configuration.  Unless the files
3587and actions are specified as TAGs, all are instantiated by default.
3588
3589Usage: $0 [OPTION]... [TAG]...
3590
3591  -h, --help       print this help, then exit
3592  -V, --version    print version number and configuration settings, then exit
3593      --config     print configuration, then exit
3594  -q, --quiet, --silent
3595                   do not print progress messages
3596  -d, --debug      don't remove temporary files
3597      --recheck    update $as_me by reconfiguring in the same conditions
3598      --file=FILE[:TEMPLATE]
3599                   instantiate the configuration file FILE
3600
3601Configuration files:
3602$config_files
3603
3604Report bugs to the package provider."
3605
3606_ACEOF
3607cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3608ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
3609ac_cs_version="\\
3610config.status
3611configured by $0, generated by GNU Autoconf 2.65,
3612  with options \\"\$ac_cs_config\\"
3613
3614Copyright (C) 2009 Free Software Foundation, Inc.
3615This config.status script is free software; the Free Software Foundation
3616gives unlimited permission to copy, distribute and modify it."
3617
3618ac_pwd='$ac_pwd'
3619srcdir='$srcdir'
3620INSTALL='$INSTALL'
3621test -n "\$AWK" || AWK=awk
3622_ACEOF
3623
3624cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3625# The default lists apply if the user does not specify any file.
3626ac_need_defaults=:
3627while test $# != 0
3628do
3629  case $1 in
3630  --*=*)
3631    ac_option=`expr "X$1" : 'X\([^=]*\)='`
3632    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
3633    ac_shift=:
3634    ;;
3635  *)
3636    ac_option=$1
3637    ac_optarg=$2
3638    ac_shift=shift
3639    ;;
3640  esac
3641
3642  case $ac_option in
3643  # Handling of the options.
3644  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3645    ac_cs_recheck=: ;;
3646  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
3647    $as_echo "$ac_cs_version"; exit ;;
3648  --config | --confi | --conf | --con | --co | --c )
3649    $as_echo "$ac_cs_config"; exit ;;
3650  --debug | --debu | --deb | --de | --d | -d )
3651    debug=: ;;
3652  --file | --fil | --fi | --f )
3653    $ac_shift
3654    case $ac_optarg in
3655    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
3656    esac
3657    as_fn_append CONFIG_FILES " '$ac_optarg'"
3658    ac_need_defaults=false;;
3659  --he | --h |  --help | --hel | -h )
3660    $as_echo "$ac_cs_usage"; exit ;;
3661  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3662  | -silent | --silent | --silen | --sile | --sil | --si | --s)
3663    ac_cs_silent=: ;;
3664
3665  # This is an error.
3666  -*) as_fn_error "unrecognized option: \`$1'
3667Try \`$0 --help' for more information." ;;
3668
3669  *) as_fn_append ac_config_targets " $1"
3670     ac_need_defaults=false ;;
3671
3672  esac
3673  shift
3674done
3675
3676ac_configure_extra_args=
3677
3678if $ac_cs_silent; then
3679  exec 6>/dev/null
3680  ac_configure_extra_args="$ac_configure_extra_args --silent"
3681fi
3682
3683_ACEOF
3684cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3685if \$ac_cs_recheck; then
3686  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
3687  shift
3688  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
3689  CONFIG_SHELL='$SHELL'
3690  export CONFIG_SHELL
3691  exec "\$@"
3692fi
3693
3694_ACEOF
3695cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3696exec 5>>config.log
3697{
3698  echo
3699  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
3700## Running $as_me. ##
3701_ASBOX
3702  $as_echo "$ac_log"
3703} >&5
3704
3705_ACEOF
3706cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3707_ACEOF
3708
3709cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3710
3711# Handling of arguments.
3712for ac_config_target in $ac_config_targets
3713do
3714  case $ac_config_target in
3715    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
3716    "pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES pkgIndex.tcl" ;;
3717
3718  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
3719  esac
3720done
3721
3722
3723# If the user did not use the arguments to specify the items to instantiate,
3724# then the envvar interface is used.  Set only those that are not.
3725# We use the long form for the default assignment because of an extremely
3726# bizarre bug on SunOS 4.1.3.
3727if $ac_need_defaults; then
3728  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
3729fi
3730
3731# Have a temporary directory for convenience.  Make it in the build tree
3732# simply because there is no reason against having it here, and in addition,
3733# creating and moving files from /tmp can sometimes cause problems.
3734# Hook for its removal unless debugging.
3735# Note that there is a small window in which the directory will not be cleaned:
3736# after its creation but before its name has been assigned to `$tmp'.
3737$debug ||
3738{
3739  tmp=
3740  trap 'exit_status=$?
3741  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
3742' 0
3743  trap 'as_fn_exit 1' 1 2 13 15
3744}
3745# Create a (secure) tmp directory for tmp files.
3746
3747{
3748  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
3749  test -n "$tmp" && test -d "$tmp"
3750}  ||
3751{
3752  tmp=./conf$$-$RANDOM
3753  (umask 077 && mkdir "$tmp")
3754} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
3755
3756# Set up the scripts for CONFIG_FILES section.
3757# No need to generate them if there are no CONFIG_FILES.
3758# This happens for instance with `./config.status config.h'.
3759if test -n "$CONFIG_FILES"; then
3760
3761
3762ac_cr=`echo X | tr X '\015'`
3763# On cygwin, bash can eat \r inside `` if the user requested igncr.
3764# But we know of no other shell where ac_cr would be empty at this
3765# point, so we can use a bashism as a fallback.
3766if test "x$ac_cr" = x; then
3767  eval ac_cr=\$\'\\r\'
3768fi
3769ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
3770if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
3771  ac_cs_awk_cr='\r'
3772else
3773  ac_cs_awk_cr=$ac_cr
3774fi
3775
3776echo 'BEGIN {' >"$tmp/subs1.awk" &&
3777_ACEOF
3778
3779
3780{
3781  echo "cat >conf$$subs.awk <<_ACEOF" &&
3782  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
3783  echo "_ACEOF"
3784} >conf$$subs.sh ||
3785  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
3786ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
3787ac_delim='%!_!# '
3788for ac_last_try in false false false false false :; do
3789  . ./conf$$subs.sh ||
3790    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
3791
3792  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
3793  if test $ac_delim_n = $ac_delim_num; then
3794    break
3795  elif $ac_last_try; then
3796    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
3797  else
3798    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
3799  fi
3800done
3801rm -f conf$$subs.sh
3802
3803cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3804cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
3805_ACEOF
3806sed -n '
3807h
3808s/^/S["/; s/!.*/"]=/
3809p
3810g
3811s/^[^!]*!//
3812:repl
3813t repl
3814s/'"$ac_delim"'$//
3815t delim
3816:nl
3817h
3818s/\(.\{148\}\)..*/\1/
3819t more1
3820s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
3821p
3822n
3823b repl
3824:more1
3825s/["\\]/\\&/g; s/^/"/; s/$/"\\/
3826p
3827g
3828s/.\{148\}//
3829t nl
3830:delim
3831h
3832s/\(.\{148\}\)..*/\1/
3833t more2
3834s/["\\]/\\&/g; s/^/"/; s/$/"/
3835p
3836b
3837:more2
3838s/["\\]/\\&/g; s/^/"/; s/$/"\\/
3839p
3840g
3841s/.\{148\}//
3842t delim
3843' <conf$$subs.awk | sed '
3844/^[^""]/{
3845  N
3846  s/\n//
3847}
3848' >>$CONFIG_STATUS || ac_write_fail=1
3849rm -f conf$$subs.awk
3850cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3851_ACAWK
3852cat >>"\$tmp/subs1.awk" <<_ACAWK &&
3853  for (key in S) S_is_set[key] = 1
3854  FS = ""
3855
3856}
3857{
3858  line = $ 0
3859  nfields = split(line, field, "@")
3860  substed = 0
3861  len = length(field[1])
3862  for (i = 2; i < nfields; i++) {
3863    key = field[i]
3864    keylen = length(key)
3865    if (S_is_set[key]) {
3866      value = S[key]
3867      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
3868      len += length(value) + length(field[++i])
3869      substed = 1
3870    } else
3871      len += 1 + keylen
3872  }
3873
3874  print line
3875}
3876
3877_ACAWK
3878_ACEOF
3879cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3880if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
3881  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
3882else
3883  cat
3884fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
3885  || as_fn_error "could not setup config files machinery" "$LINENO" 5
3886_ACEOF
3887
3888# VPATH may cause trouble with some makes, so we remove $(srcdir),
3889# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
3890# trailing colons and then remove the whole line if VPATH becomes empty
3891# (actually we leave an empty line to preserve line numbers).
3892if test "x$srcdir" = x.; then
3893  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
3894s/:*\$(srcdir):*/:/
3895s/:*\${srcdir}:*/:/
3896s/:*@srcdir@:*/:/
3897s/^\([^=]*=[	 ]*\):*/\1/
3898s/:*$//
3899s/^[^=]*=[	 ]*$//
3900}'
3901fi
3902
3903cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3904fi # test -n "$CONFIG_FILES"
3905
3906
3907eval set X "  :F $CONFIG_FILES      "
3908shift
3909for ac_tag
3910do
3911  case $ac_tag in
3912  :[FHLC]) ac_mode=$ac_tag; continue;;
3913  esac
3914  case $ac_mode$ac_tag in
3915  :[FHL]*:*);;
3916  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
3917  :[FH]-) ac_tag=-:-;;
3918  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
3919  esac
3920  ac_save_IFS=$IFS
3921  IFS=:
3922  set x $ac_tag
3923  IFS=$ac_save_IFS
3924  shift
3925  ac_file=$1
3926  shift
3927
3928  case $ac_mode in
3929  :L) ac_source=$1;;
3930  :[FH])
3931    ac_file_inputs=
3932    for ac_f
3933    do
3934      case $ac_f in
3935      -) ac_f="$tmp/stdin";;
3936      *) # Look for the file first in the build tree, then in the source tree
3937	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
3938	 # because $ac_f cannot contain `:'.
3939	 test -f "$ac_f" ||
3940	   case $ac_f in
3941	   [\\/$]*) false;;
3942	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
3943	   esac ||
3944	   as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
3945      esac
3946      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
3947      as_fn_append ac_file_inputs " '$ac_f'"
3948    done
3949
3950    # Let's still pretend it is `configure' which instantiates (i.e., don't
3951    # use $as_me), people would be surprised to read:
3952    #    /* config.h.  Generated by config.status.  */
3953    configure_input='Generated from '`
3954	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
3955	`' by configure.'
3956    if test x"$ac_file" != x-; then
3957      configure_input="$ac_file.  $configure_input"
3958      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
3959$as_echo "$as_me: creating $ac_file" >&6;}
3960    fi
3961    # Neutralize special characters interpreted by sed in replacement strings.
3962    case $configure_input in #(
3963    *\&* | *\|* | *\\* )
3964       ac_sed_conf_input=`$as_echo "$configure_input" |
3965       sed 's/[\\\\&|]/\\\\&/g'`;; #(
3966    *) ac_sed_conf_input=$configure_input;;
3967    esac
3968
3969    case $ac_tag in
3970    *:-:* | *:-) cat >"$tmp/stdin" \
3971      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
3972    esac
3973    ;;
3974  esac
3975
3976  ac_dir=`$as_dirname -- "$ac_file" ||
3977$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3978	 X"$ac_file" : 'X\(//\)[^/]' \| \
3979	 X"$ac_file" : 'X\(//\)$' \| \
3980	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
3981$as_echo X"$ac_file" |
3982    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3983	    s//\1/
3984	    q
3985	  }
3986	  /^X\(\/\/\)[^/].*/{
3987	    s//\1/
3988	    q
3989	  }
3990	  /^X\(\/\/\)$/{
3991	    s//\1/
3992	    q
3993	  }
3994	  /^X\(\/\).*/{
3995	    s//\1/
3996	    q
3997	  }
3998	  s/.*/./; q'`
3999  as_dir="$ac_dir"; as_fn_mkdir_p
4000  ac_builddir=.
4001
4002case "$ac_dir" in
4003.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
4004*)
4005  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
4006  # A ".." for each directory in $ac_dir_suffix.
4007  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
4008  case $ac_top_builddir_sub in
4009  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
4010  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
4011  esac ;;
4012esac
4013ac_abs_top_builddir=$ac_pwd
4014ac_abs_builddir=$ac_pwd$ac_dir_suffix
4015# for backward compatibility:
4016ac_top_builddir=$ac_top_build_prefix
4017
4018case $srcdir in
4019  .)  # We are building in place.
4020    ac_srcdir=.
4021    ac_top_srcdir=$ac_top_builddir_sub
4022    ac_abs_top_srcdir=$ac_pwd ;;
4023  [\\/]* | ?:[\\/]* )  # Absolute name.
4024    ac_srcdir=$srcdir$ac_dir_suffix;
4025    ac_top_srcdir=$srcdir
4026    ac_abs_top_srcdir=$srcdir ;;
4027  *) # Relative name.
4028    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
4029    ac_top_srcdir=$ac_top_build_prefix$srcdir
4030    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
4031esac
4032ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
4033
4034
4035  case $ac_mode in
4036  :F)
4037  #
4038  # CONFIG_FILE
4039  #
4040
4041  case $INSTALL in
4042  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
4043  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
4044  esac
4045_ACEOF
4046
4047cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4048# If the template does not know about datarootdir, expand it.
4049# FIXME: This hack should be removed a few years after 2.60.
4050ac_datarootdir_hack=; ac_datarootdir_seen=
4051ac_sed_dataroot='
4052/datarootdir/ {
4053  p
4054  q
4055}
4056/@datadir@/p
4057/@docdir@/p
4058/@infodir@/p
4059/@localedir@/p
4060/@mandir@/p'
4061case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
4062*datarootdir*) ac_datarootdir_seen=yes;;
4063*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
4064  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
4065$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
4066_ACEOF
4067cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4068  ac_datarootdir_hack='
4069  s&@datadir@&$datadir&g
4070  s&@docdir@&$docdir&g
4071  s&@infodir@&$infodir&g
4072  s&@localedir@&$localedir&g
4073  s&@mandir@&$mandir&g
4074  s&\\\${datarootdir}&$datarootdir&g' ;;
4075esac
4076_ACEOF
4077
4078# Neutralize VPATH when `$srcdir' = `.'.
4079# Shell code in configure.ac might set extrasub.
4080# FIXME: do we really want to maintain this feature?
4081cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4082ac_sed_extra="$ac_vpsub
4083$extrasub
4084_ACEOF
4085cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4086:t
4087/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4088s|@configure_input@|$ac_sed_conf_input|;t t
4089s&@top_builddir@&$ac_top_builddir_sub&;t t
4090s&@top_build_prefix@&$ac_top_build_prefix&;t t
4091s&@srcdir@&$ac_srcdir&;t t
4092s&@abs_srcdir@&$ac_abs_srcdir&;t t
4093s&@top_srcdir@&$ac_top_srcdir&;t t
4094s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
4095s&@builddir@&$ac_builddir&;t t
4096s&@abs_builddir@&$ac_abs_builddir&;t t
4097s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
4098s&@INSTALL@&$ac_INSTALL&;t t
4099$ac_datarootdir_hack
4100"
4101eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
4102  || as_fn_error "could not create $ac_file" "$LINENO" 5
4103
4104test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
4105  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
4106  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
4107  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4108which seems to be undefined.  Please make sure it is defined." >&5
4109$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4110which seems to be undefined.  Please make sure it is defined." >&2;}
4111
4112  rm -f "$tmp/stdin"
4113  case $ac_file in
4114  -) cat "$tmp/out" && rm -f "$tmp/out";;
4115  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
4116  esac \
4117  || as_fn_error "could not create $ac_file" "$LINENO" 5
4118 ;;
4119
4120
4121
4122  esac
4123
4124done # for ac_tag
4125
4126
4127as_fn_exit 0
4128_ACEOF
4129ac_clean_files=$ac_clean_files_save
4130
4131test $ac_write_fail = 0 ||
4132  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
4133
4134
4135# configure is writing to config.log, and then calls config.status.
4136# config.status does its own redirection, appending to config.log.
4137# Unfortunately, on DOS this fails, as config.log is still kept open
4138# by configure, so config.status won't be able to write to it; its
4139# output is simply discarded.  So we exec the FD to /dev/null,
4140# effectively closing config.log, so it can be properly (re)opened and
4141# appended to by config.status.  When coming back to configure, we
4142# need to make the FD available again.
4143if test "$no_create" != yes; then
4144  ac_cs_success=:
4145  ac_config_status_args=
4146  test "$silent" = yes &&
4147    ac_config_status_args="$ac_config_status_args --quiet"
4148  exec 5>/dev/null
4149  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4150  exec 5>>config.log
4151  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4152  # would make configure fail if this is the last instruction.
4153  $ac_cs_success || as_fn_exit $?
4154fi
4155if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
4156  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
4157$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
4158fi
4159
4160