Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Blame | Last modification | View Log | Download | RSS feed

  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for FreeType 2.5.
  4. #
  5. # Report bugs to <freetype@nongnu.org>.
  6. #
  7. #
  8. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  9. #
  10. #
  11. # This configure script is free software; the Free Software Foundation
  12. # gives unlimited permission to copy, distribute and modify it.
  13. ## -------------------- ##
  14. ## M4sh Initialization. ##
  15. ## -------------------- ##
  16.  
  17. # Be more Bourne compatible
  18. DUALCASE=1; export DUALCASE # for MKS sh
  19. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  20.   emulate sh
  21.   NULLCMD=:
  22.   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  23.   # is contrary to our usage.  Disable this feature.
  24.   alias -g '${1+"$@"}'='"$@"'
  25.   setopt NO_GLOB_SUBST
  26. else
  27.   case `(set -o) 2>/dev/null` in #(
  28.   *posix*) :
  29.     set -o posix ;; #(
  30.   *) :
  31.      ;;
  32. esac
  33. fi
  34.  
  35.  
  36. as_nl='
  37. '
  38. export as_nl
  39. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  40. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  41. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  42. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  43. # Prefer a ksh shell builtin over an external printf program on Solaris,
  44. # but without wasting forks for bash or zsh.
  45. if test -z "$BASH_VERSION$ZSH_VERSION" \
  46.     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  47.   as_echo='print -r --'
  48.   as_echo_n='print -rn --'
  49. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  50.   as_echo='printf %s\n'
  51.   as_echo_n='printf %s'
  52. else
  53.   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  54.     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  55.     as_echo_n='/usr/ucb/echo -n'
  56.   else
  57.     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  58.     as_echo_n_body='eval
  59.       arg=$1;
  60.       case $arg in #(
  61.       *"$as_nl"*)
  62.         expr "X$arg" : "X\\(.*\\)$as_nl";
  63.         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  64.       esac;
  65.       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  66.     '
  67.     export as_echo_n_body
  68.     as_echo_n='sh -c $as_echo_n_body as_echo'
  69.   fi
  70.   export as_echo_body
  71.   as_echo='sh -c $as_echo_body as_echo'
  72. fi
  73.  
  74. # The user is always right.
  75. if test "${PATH_SEPARATOR+set}" != set; then
  76.   PATH_SEPARATOR=:
  77.   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  78.     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  79.       PATH_SEPARATOR=';'
  80.   }
  81. fi
  82.  
  83.  
  84. # IFS
  85. # We need space, tab and new line, in precisely that order.  Quoting is
  86. # there to prevent editors from complaining about space-tab.
  87. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  88. # splitting by setting IFS to empty value.)
  89. IFS=" ""        $as_nl"
  90.  
  91. # Find who we are.  Look in the path if we contain no directory separator.
  92. as_myself=
  93. case $0 in #((
  94.   *[\\/]* ) as_myself=$0 ;;
  95.   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  96. for as_dir in $PATH
  97. do
  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
  102. IFS=$as_save_IFS
  103.  
  104.      ;;
  105. esac
  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.
  108. if test "x$as_myself" = x; then
  109.   as_myself=$0
  110. fi
  111. if test ! -f "$as_myself"; then
  112.   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  113.   exit 1
  114. fi
  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.
  120. for as_var in BASH_ENV ENV MAIL MAILPATH
  121. do eval test x\${$as_var+set} = xset \
  122.   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  123. done
  124. PS1='$ '
  125. PS2='> '
  126. PS4='+ '
  127.  
  128. # NLS nuisances.
  129. LC_ALL=C
  130. export LC_ALL
  131. LANGUAGE=C
  132. export LANGUAGE
  133.  
  134. # CDPATH.
  135. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  136.  
  137. # Use a proper internal environment variable to ensure we don't fall
  138.   # into an infinite loop, continuously re-executing ourselves.
  139.   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  140.     _as_can_reexec=no; export _as_can_reexec;
  141.     # We cannot yet assume a decent shell, so we have to provide a
  142. # neutralization value for shells without unset; and this also
  143. # works around shells that cannot unset nonexistent variables.
  144. # Preserve -v and -x to the replacement shell.
  145. BASH_ENV=/dev/null
  146. ENV=/dev/null
  147. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  148. case $- in # ((((
  149.   *v*x* | *x*v* ) as_opts=-vx ;;
  150.   *v* ) as_opts=-v ;;
  151.   *x* ) as_opts=-x ;;
  152.   * ) as_opts= ;;
  153. esac
  154. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  155. # Admittedly, this is quite paranoid, since all the known shells bail
  156. # out after a failed `exec'.
  157. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  158. as_fn_exit 255
  159.   fi
  160.   # We don't want this to propagate to other subprocesses.
  161.           { _as_can_reexec=; unset _as_can_reexec;}
  162. if test "x$CONFIG_SHELL" = x; then
  163.   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  164.   emulate sh
  165.   NULLCMD=:
  166.   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  167.   # is contrary to our usage.  Disable this feature.
  168.   alias -g '\${1+\"\$@\"}'='\"\$@\"'
  169.   setopt NO_GLOB_SUBST
  170. else
  171.   case \`(set -o) 2>/dev/null\` in #(
  172.   *posix*) :
  173.     set -o posix ;; #(
  174.   *) :
  175.      ;;
  176. esac
  177. fi
  178. "
  179.   as_required="as_fn_return () { (exit \$1); }
  180. as_fn_success () { as_fn_return 0; }
  181. as_fn_failure () { as_fn_return 1; }
  182. as_fn_ret_success () { return 0; }
  183. as_fn_ret_failure () { return 1; }
  184.  
  185. exitcode=0
  186. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  187. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  188. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  189. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  190. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  191.  
  192. else
  193.   exitcode=1; echo positional parameters were not saved.
  194. fi
  195. test x\$exitcode = x0 || exit 1
  196. test -x / || exit 1"
  197.   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  198.   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  199.   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  200.   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  201. test \$(( 1 + 1 )) = 2 || exit 1
  202.  
  203.   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  204.     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  205.     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  206.     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  207.     PATH=/empty FPATH=/empty; export PATH FPATH
  208.     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  209.       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
  210.   if (eval "$as_required") 2>/dev/null; then :
  211.   as_have_required=yes
  212. else
  213.   as_have_required=no
  214. fi
  215.   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  216.  
  217. else
  218.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  219. as_found=false
  220. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  221. do
  222.   IFS=$as_save_IFS
  223.   test -z "$as_dir" && as_dir=.
  224.   as_found=:
  225.   case $as_dir in #(
  226.          /*)
  227.            for as_base in sh bash ksh sh5; do
  228.              # Try only shells that exist, to save several forks.
  229.              as_shell=$as_dir/$as_base
  230.              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  231.                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  232.   CONFIG_SHELL=$as_shell as_have_required=yes
  233.                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  234.   break 2
  235. fi
  236. fi
  237.            done;;
  238.        esac
  239.   as_found=false
  240. done
  241. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  242.               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  243.   CONFIG_SHELL=$SHELL as_have_required=yes
  244. fi; }
  245. IFS=$as_save_IFS
  246.  
  247.  
  248.       if test "x$CONFIG_SHELL" != x; then :
  249.   export CONFIG_SHELL
  250.              # We cannot yet assume a decent shell, so we have to provide a
  251. # neutralization value for shells without unset; and this also
  252. # works around shells that cannot unset nonexistent variables.
  253. # Preserve -v and -x to the replacement shell.
  254. BASH_ENV=/dev/null
  255. ENV=/dev/null
  256. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  257. case $- in # ((((
  258.   *v*x* | *x*v* ) as_opts=-vx ;;
  259.   *v* ) as_opts=-v ;;
  260.   *x* ) as_opts=-x ;;
  261.   * ) as_opts= ;;
  262. esac
  263. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  264. # Admittedly, this is quite paranoid, since all the known shells bail
  265. # out after a failed `exec'.
  266. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  267. exit 255
  268. fi
  269.  
  270.     if test x$as_have_required = xno; then :
  271.   $as_echo "$0: This script requires a shell more modern than all"
  272.   $as_echo "$0: the shells that I found on your system."
  273.   if test x${ZSH_VERSION+set} = xset ; then
  274.     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  275.     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  276.   else
  277.     $as_echo "$0: Please tell bug-autoconf@gnu.org and
  278. $0: freetype@nongnu.org about your system, including any
  279. $0: error possibly output before this message. Then install
  280. $0: a modern shell, or manually run the script under such a
  281. $0: shell if you do have one."
  282.   fi
  283.   exit 1
  284. fi
  285. fi
  286. fi
  287. SHELL=${CONFIG_SHELL-/bin/sh}
  288. export SHELL
  289. # Unset more variables known to interfere with behavior of common tools.
  290. CLICOLOR_FORCE= GREP_OPTIONS=
  291. unset CLICOLOR_FORCE GREP_OPTIONS
  292.  
  293. ## --------------------- ##
  294. ## M4sh Shell Functions. ##
  295. ## --------------------- ##
  296. # as_fn_unset VAR
  297. # ---------------
  298. # Portably unset VAR.
  299. as_fn_unset ()
  300. {
  301.   { eval $1=; unset $1;}
  302. }
  303. as_unset=as_fn_unset
  304.  
  305. # as_fn_set_status STATUS
  306. # -----------------------
  307. # Set $? to STATUS, without forking.
  308. as_fn_set_status ()
  309. {
  310.   return $1
  311. } # as_fn_set_status
  312.  
  313. # as_fn_exit STATUS
  314. # -----------------
  315. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  316. as_fn_exit ()
  317. {
  318.   set +e
  319.   as_fn_set_status $1
  320.   exit $1
  321. } # as_fn_exit
  322.  
  323. # as_fn_mkdir_p
  324. # -------------
  325. # Create "$as_dir" as a directory, including parents if necessary.
  326. as_fn_mkdir_p ()
  327. {
  328.  
  329.   case $as_dir in #(
  330.   -*) as_dir=./$as_dir;;
  331.   esac
  332.   test -d "$as_dir" || eval $as_mkdir_p || {
  333.     as_dirs=
  334.     while :; do
  335.       case $as_dir in #(
  336.       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  337.       *) as_qdir=$as_dir;;
  338.       esac
  339.       as_dirs="'$as_qdir' $as_dirs"
  340.       as_dir=`$as_dirname -- "$as_dir" ||
  341. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  342.          X"$as_dir" : 'X\(//\)[^/]' \| \
  343.          X"$as_dir" : 'X\(//\)$' \| \
  344.          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  345. $as_echo X"$as_dir" |
  346.     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  347.             s//\1/
  348.             q
  349.           }
  350.           /^X\(\/\/\)[^/].*/{
  351.             s//\1/
  352.             q
  353.           }
  354.           /^X\(\/\/\)$/{
  355.             s//\1/
  356.             q
  357.           }
  358.           /^X\(\/\).*/{
  359.             s//\1/
  360.             q
  361.           }
  362.           s/.*/./; q'`
  363.       test -d "$as_dir" && break
  364.     done
  365.     test -z "$as_dirs" || eval "mkdir $as_dirs"
  366.   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  367.  
  368.  
  369. } # as_fn_mkdir_p
  370.  
  371. # as_fn_executable_p FILE
  372. # -----------------------
  373. # Test if FILE is an executable regular file.
  374. as_fn_executable_p ()
  375. {
  376.   test -f "$1" && test -x "$1"
  377. } # as_fn_executable_p
  378. # as_fn_append VAR VALUE
  379. # ----------------------
  380. # Append the text in VALUE to the end of the definition contained in VAR. Take
  381. # advantage of any shell optimizations that allow amortized linear growth over
  382. # repeated appends, instead of the typical quadratic growth present in naive
  383. # implementations.
  384. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  385.   eval 'as_fn_append ()
  386.   {
  387.     eval $1+=\$2
  388.   }'
  389. else
  390.   as_fn_append ()
  391.   {
  392.     eval $1=\$$1\$2
  393.   }
  394. fi # as_fn_append
  395.  
  396. # as_fn_arith ARG...
  397. # ------------------
  398. # Perform arithmetic evaluation on the ARGs, and store the result in the
  399. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  400. # must be portable across $(()) and expr.
  401. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  402.   eval 'as_fn_arith ()
  403.   {
  404.     as_val=$(( $* ))
  405.   }'
  406. else
  407.   as_fn_arith ()
  408.   {
  409.     as_val=`expr "$@" || test $? -eq 1`
  410.   }
  411. fi # as_fn_arith
  412.  
  413.  
  414. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  415. # ----------------------------------------
  416. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  417. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  418. # script with STATUS, using 1 if that was 0.
  419. as_fn_error ()
  420. {
  421.   as_status=$1; test $as_status -eq 0 && as_status=1
  422.   if test "$4"; then
  423.     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  424.     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  425.   fi
  426.   $as_echo "$as_me: error: $2" >&2
  427.   as_fn_exit $as_status
  428. } # as_fn_error
  429.  
  430. if expr a : '\(a\)' >/dev/null 2>&1 &&
  431.    test "X`expr 00001 : '.*\(...\)'`" = X001; then
  432.   as_expr=expr
  433. else
  434.   as_expr=false
  435. fi
  436.  
  437. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  438.   as_basename=basename
  439. else
  440.   as_basename=false
  441. fi
  442.  
  443. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  444.   as_dirname=dirname
  445. else
  446.   as_dirname=false
  447. fi
  448.  
  449. as_me=`$as_basename -- "$0" ||
  450. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  451.          X"$0" : 'X\(//\)$' \| \
  452.          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  453. $as_echo X/"$0" |
  454.     sed '/^.*\/\([^/][^/]*\)\/*$/{
  455.             s//\1/
  456.             q
  457.           }
  458.           /^X\/\(\/\/\)$/{
  459.             s//\1/
  460.             q
  461.           }
  462.           /^X\/\(\/\).*/{
  463.             s//\1/
  464.             q
  465.           }
  466.           s/.*/./; q'`
  467.  
  468. # Avoid depending upon Character Ranges.
  469. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  470. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  471. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  472. as_cr_digits='0123456789'
  473. as_cr_alnum=$as_cr_Letters$as_cr_digits
  474.  
  475.  
  476.   as_lineno_1=$LINENO as_lineno_1a=$LINENO
  477.   as_lineno_2=$LINENO as_lineno_2a=$LINENO
  478.   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  479.   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  480.   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
  481.   sed -n '
  482.     p
  483.     /[$]LINENO/=
  484.   ' <$as_myself |
  485.     sed '
  486.       s/[$]LINENO.*/&-/
  487.       t lineno
  488.       b
  489.       :lineno
  490.       N
  491.       :loop
  492.       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  493.       t loop
  494.       s/-\n.*//
  495.     ' >$as_me.lineno &&
  496.   chmod +x "$as_me.lineno" ||
  497.     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  498.  
  499.   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  500.   # already done that, so ensure we don't try to do so again and fall
  501.   # in an infinite loop.  This has already happened in practice.
  502.   _as_can_reexec=no; export _as_can_reexec
  503.   # Don't try to exec as it changes $[0], causing all sort of problems
  504.   # (the dirname of $[0] is not the place where we might find the
  505.   # original and so on.  Autoconf is especially sensitive to this).
  506.   . "./$as_me.lineno"
  507.   # Exit status is that of the last command.
  508.   exit
  509. }
  510.  
  511. ECHO_C= ECHO_N= ECHO_T=
  512. case `echo -n x` in #(((((
  513. -n*)
  514.   case `echo 'xy\c'` in
  515.   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
  516.   xy)  ECHO_C='\c';;
  517.   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
  518.        ECHO_T=' ';;
  519.   esac;;
  520. *)
  521.   ECHO_N='-n';;
  522. esac
  523.  
  524. rm -f conf$$ conf$$.exe conf$$.file
  525. if test -d conf$$.dir; then
  526.   rm -f conf$$.dir/conf$$.file
  527. else
  528.   rm -f conf$$.dir
  529.   mkdir conf$$.dir 2>/dev/null
  530. fi
  531. if (echo >conf$$.file) 2>/dev/null; then
  532.   if ln -s conf$$.file conf$$ 2>/dev/null; then
  533.     as_ln_s='ln -s'
  534.     # ... but there are two gotchas:
  535.     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  536.     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  537.     # In both cases, we have to default to `cp -pR'.
  538.     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  539.       as_ln_s='cp -pR'
  540.   elif ln conf$$.file conf$$ 2>/dev/null; then
  541.     as_ln_s=ln
  542.   else
  543.     as_ln_s='cp -pR'
  544.   fi
  545. else
  546.   as_ln_s='cp -pR'
  547. fi
  548. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  549. rmdir conf$$.dir 2>/dev/null
  550.  
  551. if mkdir -p . 2>/dev/null; then
  552.   as_mkdir_p='mkdir -p "$as_dir"'
  553. else
  554.   test -d ./-p && rmdir ./-p
  555.   as_mkdir_p=false
  556. fi
  557.  
  558. as_test_x='test -x'
  559. as_executable_p=as_fn_executable_p
  560.  
  561. # Sed expression to map a string onto a valid CPP name.
  562. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  563.  
  564. # Sed expression to map a string onto a valid variable name.
  565. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  566.  
  567. SHELL=${CONFIG_SHELL-/bin/sh}
  568.  
  569.  
  570. test -n "$DJDIR" || exec 7<&0 </dev/null
  571. exec 6>&1
  572.  
  573. # Name of the host.
  574. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  575. # so uname gets run too.
  576. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  577.  
  578. #
  579. # Initializations.
  580. #
  581. ac_default_prefix=/usr/local
  582. ac_clean_files=
  583. ac_config_libobj_dir=.
  584. LIBOBJS=
  585. cross_compiling=no
  586. subdirs=
  587. MFLAGS=
  588. MAKEFLAGS=
  589.  
  590. # Identity of this package.
  591. PACKAGE_NAME='FreeType'
  592. PACKAGE_TARNAME='freetype'
  593. PACKAGE_VERSION='2.5'
  594. PACKAGE_STRING='FreeType 2.5'
  595. PACKAGE_BUGREPORT='freetype@nongnu.org'
  596. PACKAGE_URL=''
  597.  
  598. ac_unique_file="ftconfig.in"
  599. # Factoring default headers for most tests.
  600. ac_includes_default="\
  601. #include <stdio.h>
  602. #ifdef HAVE_SYS_TYPES_H
  603. # include <sys/types.h>
  604. #endif
  605. #ifdef HAVE_SYS_STAT_H
  606. # include <sys/stat.h>
  607. #endif
  608. #ifdef STDC_HEADERS
  609. # include <stdlib.h>
  610. # include <stddef.h>
  611. #else
  612. # ifdef HAVE_STDLIB_H
  613. #  include <stdlib.h>
  614. # endif
  615. #endif
  616. #ifdef HAVE_STRING_H
  617. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  618. #  include <memory.h>
  619. # endif
  620. # include <string.h>
  621. #endif
  622. #ifdef HAVE_STRINGS_H
  623. # include <strings.h>
  624. #endif
  625. #ifdef HAVE_INTTYPES_H
  626. # include <inttypes.h>
  627. #endif
  628. #ifdef HAVE_STDINT_H
  629. # include <stdint.h>
  630. #endif
  631. #ifdef HAVE_UNISTD_H
  632. # include <unistd.h>
  633. #endif"
  634.  
  635. ac_header_list=
  636. ac_subst_vars='LTLIBOBJS
  637. LIBOBJS
  638. build_libtool_libs
  639. wl
  640. hardcode_libdir_flag_spec
  641. OTOOL64
  642. OTOOL
  643. LIPO
  644. NMEDIT
  645. DSYMUTIL
  646. MANIFEST_TOOL
  647. AWK
  648. RANLIB
  649. STRIP
  650. ac_ct_AR
  651. AR
  652. LN_S
  653. NM
  654. ac_ct_DUMPBIN
  655. DUMPBIN
  656. LD
  657. FGREP
  658. SED
  659. LIBTOOL
  660. OBJDUMP
  661. DLLTOOL
  662. AS
  663. SYSTEM_ZLIB
  664. FT2_EXTRA_LIBS
  665. LIBBZ2
  666. LIBZ
  667. ftmac_c
  668. XX_ANSIFLAGS
  669. XX_CFLAGS
  670. FTSYS_SRC
  671. EGREP
  672. GREP
  673. INSTALL_DATA
  674. INSTALL_SCRIPT
  675. INSTALL_PROGRAM
  676. RMDIR
  677. EXEEXT_BUILD
  678. CC_BUILD
  679. CPP
  680. OBJEXT
  681. EXEEXT
  682. ac_ct_CC
  683. CPPFLAGS
  684. LDFLAGS
  685. CFLAGS
  686. CC
  687. host_os
  688. host_vendor
  689. host_cpu
  690. host
  691. build_os
  692. build_vendor
  693. build_cpu
  694. build
  695. ft_version
  696. version_info
  697. target_alias
  698. host_alias
  699. build_alias
  700. LIBS
  701. ECHO_T
  702. ECHO_N
  703. ECHO_C
  704. DEFS
  705. mandir
  706. localedir
  707. libdir
  708. psdir
  709. pdfdir
  710. dvidir
  711. htmldir
  712. infodir
  713. docdir
  714. oldincludedir
  715. includedir
  716. localstatedir
  717. sharedstatedir
  718. sysconfdir
  719. datadir
  720. datarootdir
  721. libexecdir
  722. sbindir
  723. bindir
  724. program_transform_name
  725. prefix
  726. exec_prefix
  727. PACKAGE_URL
  728. PACKAGE_BUGREPORT
  729. PACKAGE_STRING
  730. PACKAGE_VERSION
  731. PACKAGE_TARNAME
  732. PACKAGE_NAME
  733. PATH_SEPARATOR
  734. SHELL'
  735. ac_subst_files=''
  736. ac_user_opts='
  737. enable_option_checking
  738. enable_biarch_config
  739. enable_mmap
  740. with_zlib
  741. with_bzip2
  742. with_png
  743. with_old_mac_fonts
  744. with_fsspec
  745. with_fsref
  746. with_quickdraw_toolbox
  747. with_quickdraw_carbon
  748. with_ats
  749. enable_shared
  750. enable_static
  751. with_pic
  752. enable_fast_install
  753. with_gnu_ld
  754. with_sysroot
  755. enable_libtool_lock
  756. '
  757.       ac_precious_vars='build_alias
  758. host_alias
  759. target_alias
  760. CC
  761. CFLAGS
  762. LDFLAGS
  763. LIBS
  764. CPPFLAGS
  765. CPP'
  766.  
  767.  
  768. # Initialize some variables set by options.
  769. ac_init_help=
  770. ac_init_version=false
  771. ac_unrecognized_opts=
  772. ac_unrecognized_sep=
  773. # The variables have the same names as the options, with
  774. # dashes changed to underlines.
  775. cache_file=/dev/null
  776. exec_prefix=NONE
  777. no_create=
  778. no_recursion=
  779. prefix=NONE
  780. program_prefix=NONE
  781. program_suffix=NONE
  782. program_transform_name=s,x,x,
  783. silent=
  784. site=
  785. srcdir=
  786. verbose=
  787. x_includes=NONE
  788. x_libraries=NONE
  789.  
  790. # Installation directory options.
  791. # These are left unexpanded so users can "make install exec_prefix=/foo"
  792. # and all the variables that are supposed to be based on exec_prefix
  793. # by default will actually change.
  794. # Use braces instead of parens because sh, perl, etc. also accept them.
  795. # (The list follows the same order as the GNU Coding Standards.)
  796. bindir='${exec_prefix}/bin'
  797. sbindir='${exec_prefix}/sbin'
  798. libexecdir='${exec_prefix}/libexec'
  799. datarootdir='${prefix}/share'
  800. datadir='${datarootdir}'
  801. sysconfdir='${prefix}/etc'
  802. sharedstatedir='${prefix}/com'
  803. localstatedir='${prefix}/var'
  804. includedir='${prefix}/include'
  805. oldincludedir='/usr/include'
  806. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  807. infodir='${datarootdir}/info'
  808. htmldir='${docdir}'
  809. dvidir='${docdir}'
  810. pdfdir='${docdir}'
  811. psdir='${docdir}'
  812. libdir='${exec_prefix}/lib'
  813. localedir='${datarootdir}/locale'
  814. mandir='${datarootdir}/man'
  815.  
  816. ac_prev=
  817. ac_dashdash=
  818. for ac_option
  819. do
  820.   # If the previous option needs an argument, assign it.
  821.   if test -n "$ac_prev"; then
  822.     eval $ac_prev=\$ac_option
  823.     ac_prev=
  824.     continue
  825.   fi
  826.  
  827.   case $ac_option in
  828.   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  829.   *=)   ac_optarg= ;;
  830.   *)    ac_optarg=yes ;;
  831.   esac
  832.  
  833.   # Accept the important Cygnus configure options, so we can diagnose typos.
  834.  
  835.   case $ac_dashdash$ac_option in
  836.   --)
  837.     ac_dashdash=yes ;;
  838.  
  839.   -bindir | --bindir | --bindi | --bind | --bin | --bi)
  840.     ac_prev=bindir ;;
  841.   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  842.     bindir=$ac_optarg ;;
  843.  
  844.   -build | --build | --buil | --bui | --bu)
  845.     ac_prev=build_alias ;;
  846.   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  847.     build_alias=$ac_optarg ;;
  848.  
  849.   -cache-file | --cache-file | --cache-fil | --cache-fi \
  850.   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  851.     ac_prev=cache_file ;;
  852.   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  853.   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  854.     cache_file=$ac_optarg ;;
  855.  
  856.   --config-cache | -C)
  857.     cache_file=config.cache ;;
  858.  
  859.   -datadir | --datadir | --datadi | --datad)
  860.     ac_prev=datadir ;;
  861.   -datadir=* | --datadir=* | --datadi=* | --datad=*)
  862.     datadir=$ac_optarg ;;
  863.  
  864.   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  865.   | --dataroo | --dataro | --datar)
  866.     ac_prev=datarootdir ;;
  867.   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  868.   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  869.     datarootdir=$ac_optarg ;;
  870.  
  871.   -disable-* | --disable-*)
  872.     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  873.     # Reject names that are not valid shell variable names.
  874.     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  875.       as_fn_error $? "invalid feature name: $ac_useropt"
  876.     ac_useropt_orig=$ac_useropt
  877.     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  878.     case $ac_user_opts in
  879.       *"
  880. "enable_$ac_useropt"
  881. "*) ;;
  882.       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  883.          ac_unrecognized_sep=', ';;
  884.     esac
  885.     eval enable_$ac_useropt=no ;;
  886.  
  887.   -docdir | --docdir | --docdi | --doc | --do)
  888.     ac_prev=docdir ;;
  889.   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  890.     docdir=$ac_optarg ;;
  891.  
  892.   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  893.     ac_prev=dvidir ;;
  894.   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  895.     dvidir=$ac_optarg ;;
  896.  
  897.   -enable-* | --enable-*)
  898.     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  899.     # Reject names that are not valid shell variable names.
  900.     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  901.       as_fn_error $? "invalid feature name: $ac_useropt"
  902.     ac_useropt_orig=$ac_useropt
  903.     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  904.     case $ac_user_opts in
  905.       *"
  906. "enable_$ac_useropt"
  907. "*) ;;
  908.       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  909.          ac_unrecognized_sep=', ';;
  910.     esac
  911.     eval enable_$ac_useropt=\$ac_optarg ;;
  912.  
  913.   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  914.   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  915.   | --exec | --exe | --ex)
  916.     ac_prev=exec_prefix ;;
  917.   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  918.   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  919.   | --exec=* | --exe=* | --ex=*)
  920.     exec_prefix=$ac_optarg ;;
  921.  
  922.   -gas | --gas | --ga | --g)
  923.     # Obsolete; use --with-gas.
  924.     with_gas=yes ;;
  925.  
  926.   -help | --help | --hel | --he | -h)
  927.     ac_init_help=long ;;
  928.   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  929.     ac_init_help=recursive ;;
  930.   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  931.     ac_init_help=short ;;
  932.  
  933.   -host | --host | --hos | --ho)
  934.     ac_prev=host_alias ;;
  935.   -host=* | --host=* | --hos=* | --ho=*)
  936.     host_alias=$ac_optarg ;;
  937.  
  938.   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  939.     ac_prev=htmldir ;;
  940.   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  941.   | --ht=*)
  942.     htmldir=$ac_optarg ;;
  943.  
  944.   -includedir | --includedir | --includedi | --included | --include \
  945.   | --includ | --inclu | --incl | --inc)
  946.     ac_prev=includedir ;;
  947.   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  948.   | --includ=* | --inclu=* | --incl=* | --inc=*)
  949.     includedir=$ac_optarg ;;
  950.  
  951.   -infodir | --infodir | --infodi | --infod | --info | --inf)
  952.     ac_prev=infodir ;;
  953.   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  954.     infodir=$ac_optarg ;;
  955.  
  956.   -libdir | --libdir | --libdi | --libd)
  957.     ac_prev=libdir ;;
  958.   -libdir=* | --libdir=* | --libdi=* | --libd=*)
  959.     libdir=$ac_optarg ;;
  960.  
  961.   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  962.   | --libexe | --libex | --libe)
  963.     ac_prev=libexecdir ;;
  964.   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  965.   | --libexe=* | --libex=* | --libe=*)
  966.     libexecdir=$ac_optarg ;;
  967.  
  968.   -localedir | --localedir | --localedi | --localed | --locale)
  969.     ac_prev=localedir ;;
  970.   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  971.     localedir=$ac_optarg ;;
  972.  
  973.   -localstatedir | --localstatedir | --localstatedi | --localstated \
  974.   | --localstate | --localstat | --localsta | --localst | --locals)
  975.     ac_prev=localstatedir ;;
  976.   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  977.   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  978.     localstatedir=$ac_optarg ;;
  979.  
  980.   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  981.     ac_prev=mandir ;;
  982.   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  983.     mandir=$ac_optarg ;;
  984.  
  985.   -nfp | --nfp | --nf)
  986.     # Obsolete; use --without-fp.
  987.     with_fp=no ;;
  988.  
  989.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  990.   | --no-cr | --no-c | -n)
  991.     no_create=yes ;;
  992.  
  993.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  994.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  995.     no_recursion=yes ;;
  996.  
  997.   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  998.   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  999.   | --oldin | --oldi | --old | --ol | --o)
  1000.     ac_prev=oldincludedir ;;
  1001.   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1002.   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1003.   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1004.     oldincludedir=$ac_optarg ;;
  1005.  
  1006.   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1007.     ac_prev=prefix ;;
  1008.   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1009.     prefix=$ac_optarg ;;
  1010.  
  1011.   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1012.   | --program-pre | --program-pr | --program-p)
  1013.     ac_prev=program_prefix ;;
  1014.   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1015.   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1016.     program_prefix=$ac_optarg ;;
  1017.  
  1018.   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1019.   | --program-suf | --program-su | --program-s)
  1020.     ac_prev=program_suffix ;;
  1021.   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1022.   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1023.     program_suffix=$ac_optarg ;;
  1024.  
  1025.   -program-transform-name | --program-transform-name \
  1026.   | --program-transform-nam | --program-transform-na \
  1027.   | --program-transform-n | --program-transform- \
  1028.   | --program-transform | --program-transfor \
  1029.   | --program-transfo | --program-transf \
  1030.   | --program-trans | --program-tran \
  1031.   | --progr-tra | --program-tr | --program-t)
  1032.     ac_prev=program_transform_name ;;
  1033.   -program-transform-name=* | --program-transform-name=* \
  1034.   | --program-transform-nam=* | --program-transform-na=* \
  1035.   | --program-transform-n=* | --program-transform-=* \
  1036.   | --program-transform=* | --program-transfor=* \
  1037.   | --program-transfo=* | --program-transf=* \
  1038.   | --program-trans=* | --program-tran=* \
  1039.   | --progr-tra=* | --program-tr=* | --program-t=*)
  1040.     program_transform_name=$ac_optarg ;;
  1041.  
  1042.   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1043.     ac_prev=pdfdir ;;
  1044.   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1045.     pdfdir=$ac_optarg ;;
  1046.  
  1047.   -psdir | --psdir | --psdi | --psd | --ps)
  1048.     ac_prev=psdir ;;
  1049.   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1050.     psdir=$ac_optarg ;;
  1051.  
  1052.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1053.   | -silent | --silent | --silen | --sile | --sil)
  1054.     silent=yes ;;
  1055.  
  1056.   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1057.     ac_prev=sbindir ;;
  1058.   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1059.   | --sbi=* | --sb=*)
  1060.     sbindir=$ac_optarg ;;
  1061.  
  1062.   -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1063.   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1064.   | --sharedst | --shareds | --shared | --share | --shar \
  1065.   | --sha | --sh)
  1066.     ac_prev=sharedstatedir ;;
  1067.   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1068.   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1069.   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1070.   | --sha=* | --sh=*)
  1071.     sharedstatedir=$ac_optarg ;;
  1072.  
  1073.   -site | --site | --sit)
  1074.     ac_prev=site ;;
  1075.   -site=* | --site=* | --sit=*)
  1076.     site=$ac_optarg ;;
  1077.  
  1078.   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1079.     ac_prev=srcdir ;;
  1080.   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1081.     srcdir=$ac_optarg ;;
  1082.  
  1083.   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1084.   | --syscon | --sysco | --sysc | --sys | --sy)
  1085.     ac_prev=sysconfdir ;;
  1086.   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1087.   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1088.     sysconfdir=$ac_optarg ;;
  1089.  
  1090.   -target | --target | --targe | --targ | --tar | --ta | --t)
  1091.     ac_prev=target_alias ;;
  1092.   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1093.     target_alias=$ac_optarg ;;
  1094.  
  1095.   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1096.     verbose=yes ;;
  1097.  
  1098.   -version | --version | --versio | --versi | --vers | -V)
  1099.     ac_init_version=: ;;
  1100.  
  1101.   -with-* | --with-*)
  1102.     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1103.     # Reject names that are not valid shell variable names.
  1104.     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1105.       as_fn_error $? "invalid package name: $ac_useropt"
  1106.     ac_useropt_orig=$ac_useropt
  1107.     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1108.     case $ac_user_opts in
  1109.       *"
  1110. "with_$ac_useropt"
  1111. "*) ;;
  1112.       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1113.          ac_unrecognized_sep=', ';;
  1114.     esac
  1115.     eval with_$ac_useropt=\$ac_optarg ;;
  1116.  
  1117.   -without-* | --without-*)
  1118.     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1119.     # Reject names that are not valid shell variable names.
  1120.     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1121.       as_fn_error $? "invalid package name: $ac_useropt"
  1122.     ac_useropt_orig=$ac_useropt
  1123.     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1124.     case $ac_user_opts in
  1125.       *"
  1126. "with_$ac_useropt"
  1127. "*) ;;
  1128.       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1129.          ac_unrecognized_sep=', ';;
  1130.     esac
  1131.     eval with_$ac_useropt=no ;;
  1132.  
  1133.   --x)
  1134.     # Obsolete; use --with-x.
  1135.     with_x=yes ;;
  1136.  
  1137.   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1138.   | --x-incl | --x-inc | --x-in | --x-i)
  1139.     ac_prev=x_includes ;;
  1140.   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1141.   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1142.     x_includes=$ac_optarg ;;
  1143.  
  1144.   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1145.   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1146.     ac_prev=x_libraries ;;
  1147.   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1148.   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1149.     x_libraries=$ac_optarg ;;
  1150.  
  1151.   -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1152. Try \`$0 --help' for more information"
  1153.     ;;
  1154.  
  1155.   *=*)
  1156.     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1157.     # Reject names that are not valid shell variable names.
  1158.     case $ac_envvar in #(
  1159.       '' | [0-9]* | *[!_$as_cr_alnum]* )
  1160.       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1161.     esac
  1162.     eval $ac_envvar=\$ac_optarg
  1163.     export $ac_envvar ;;
  1164.  
  1165.   *)
  1166.     # FIXME: should be removed in autoconf 3.0.
  1167.     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1168.     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1169.       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1170.     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1171.     ;;
  1172.  
  1173.   esac
  1174. done
  1175.  
  1176. if test -n "$ac_prev"; then
  1177.   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1178.   as_fn_error $? "missing argument to $ac_option"
  1179. fi
  1180.  
  1181. if test -n "$ac_unrecognized_opts"; then
  1182.   case $enable_option_checking in
  1183.     no) ;;
  1184.     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1185.     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1186.   esac
  1187. fi
  1188.  
  1189. # Check all directory arguments for consistency.
  1190. for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1191.                 datadir sysconfdir sharedstatedir localstatedir includedir \
  1192.                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1193.                 libdir localedir mandir
  1194. do
  1195.   eval ac_val=\$$ac_var
  1196.   # Remove trailing slashes.
  1197.   case $ac_val in
  1198.     */ )
  1199.       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1200.       eval $ac_var=\$ac_val;;
  1201.   esac
  1202.   # Be sure to have absolute directory names.
  1203.   case $ac_val in
  1204.     [\\/$]* | ?:[\\/]* )  continue;;
  1205.     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1206.   esac
  1207.   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1208. done
  1209.  
  1210. # There might be people who depend on the old broken behavior: `$host'
  1211. # used to hold the argument of --host etc.
  1212. # FIXME: To remove some day.
  1213. build=$build_alias
  1214. host=$host_alias
  1215. target=$target_alias
  1216.  
  1217. # FIXME: To remove some day.
  1218. if test "x$host_alias" != x; then
  1219.   if test "x$build_alias" = x; then
  1220.     cross_compiling=maybe
  1221.   elif test "x$build_alias" != "x$host_alias"; then
  1222.     cross_compiling=yes
  1223.   fi
  1224. fi
  1225.  
  1226. ac_tool_prefix=
  1227. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1228.  
  1229. test "$silent" = yes && exec 6>/dev/null
  1230.  
  1231.  
  1232. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1233. ac_ls_di=`ls -di .` &&
  1234. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1235.   as_fn_error $? "working directory cannot be determined"
  1236. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1237.   as_fn_error $? "pwd does not report name of working directory"
  1238.  
  1239.  
  1240. # Find the source files, if location was not specified.
  1241. if test -z "$srcdir"; then
  1242.   ac_srcdir_defaulted=yes
  1243.   # Try the directory containing this script, then the parent directory.
  1244.   ac_confdir=`$as_dirname -- "$as_myself" ||
  1245. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1246.          X"$as_myself" : 'X\(//\)[^/]' \| \
  1247.          X"$as_myself" : 'X\(//\)$' \| \
  1248.          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1249. $as_echo X"$as_myself" |
  1250.     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1251.             s//\1/
  1252.             q
  1253.           }
  1254.           /^X\(\/\/\)[^/].*/{
  1255.             s//\1/
  1256.             q
  1257.           }
  1258.           /^X\(\/\/\)$/{
  1259.             s//\1/
  1260.             q
  1261.           }
  1262.           /^X\(\/\).*/{
  1263.             s//\1/
  1264.             q
  1265.           }
  1266.           s/.*/./; q'`
  1267.   srcdir=$ac_confdir
  1268.   if test ! -r "$srcdir/$ac_unique_file"; then
  1269.     srcdir=..
  1270.   fi
  1271. else
  1272.   ac_srcdir_defaulted=no
  1273. fi
  1274. if test ! -r "$srcdir/$ac_unique_file"; then
  1275.   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1276.   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1277. fi
  1278. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1279. ac_abs_confdir=`(
  1280.         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1281.         pwd)`
  1282. # When building in place, set srcdir=.
  1283. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1284.   srcdir=.
  1285. fi
  1286. # Remove unnecessary trailing slashes from srcdir.
  1287. # Double slashes in file names in object file debugging info
  1288. # mess up M-x gdb in Emacs.
  1289. case $srcdir in
  1290. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1291. esac
  1292. for ac_var in $ac_precious_vars; do
  1293.   eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1294.   eval ac_env_${ac_var}_value=\$${ac_var}
  1295.   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1296.   eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1297. done
  1298.  
  1299. #
  1300. # Report the --help message.
  1301. #
  1302. if test "$ac_init_help" = "long"; then
  1303.   # Omit some internal or obsolete options to make the list less imposing.
  1304.   # This message is too long to be a string in the A/UX 3.1 sh.
  1305.   cat <<_ACEOF
  1306. \`configure' configures FreeType 2.5 to adapt to many kinds of systems.
  1307.  
  1308. Usage: $0 [OPTION]... [VAR=VALUE]...
  1309.  
  1310. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1311. VAR=VALUE.  See below for descriptions of some of the useful variables.
  1312.  
  1313. Defaults for the options are specified in brackets.
  1314.  
  1315. Configuration:
  1316.   -h, --help              display this help and exit
  1317.       --help=short        display options specific to this package
  1318.       --help=recursive    display the short help of all the included packages
  1319.   -V, --version           display version information and exit
  1320.   -q, --quiet, --silent   do not print \`checking ...' messages
  1321.       --cache-file=FILE   cache test results in FILE [disabled]
  1322.   -C, --config-cache      alias for \`--cache-file=config.cache'
  1323.   -n, --no-create         do not create output files
  1324.       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
  1325.  
  1326. Installation directories:
  1327.   --prefix=PREFIX         install architecture-independent files in PREFIX
  1328.                           [$ac_default_prefix]
  1329.   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  1330.                           [PREFIX]
  1331.  
  1332. By default, \`make install' will install all the files in
  1333. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
  1334. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1335. for instance \`--prefix=\$HOME'.
  1336.  
  1337. For better control, use the options below.
  1338.  
  1339. Fine tuning of the installation directories:
  1340.   --bindir=DIR            user executables [EPREFIX/bin]
  1341.   --sbindir=DIR           system admin executables [EPREFIX/sbin]
  1342.   --libexecdir=DIR        program executables [EPREFIX/libexec]
  1343.   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
  1344.   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
  1345.   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
  1346.   --libdir=DIR            object code libraries [EPREFIX/lib]
  1347.   --includedir=DIR        C header files [PREFIX/include]
  1348.   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
  1349.   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
  1350.   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
  1351.   --infodir=DIR           info documentation [DATAROOTDIR/info]
  1352.   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
  1353.   --mandir=DIR            man documentation [DATAROOTDIR/man]
  1354.   --docdir=DIR            documentation root [DATAROOTDIR/doc/freetype]
  1355.   --htmldir=DIR           html documentation [DOCDIR]
  1356.   --dvidir=DIR            dvi documentation [DOCDIR]
  1357.   --pdfdir=DIR            pdf documentation [DOCDIR]
  1358.   --psdir=DIR             ps documentation [DOCDIR]
  1359. _ACEOF
  1360.  
  1361.   cat <<\_ACEOF
  1362.  
  1363. System types:
  1364.   --build=BUILD     configure for building on BUILD [guessed]
  1365.   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
  1366. _ACEOF
  1367. fi
  1368.  
  1369. if test -n "$ac_init_help"; then
  1370.   case $ac_init_help in
  1371.      short | recursive ) echo "Configuration of FreeType 2.5:";;
  1372.    esac
  1373.   cat <<\_ACEOF
  1374.  
  1375. Optional Features:
  1376.   --disable-option-checking  ignore unrecognized --enable/--with options
  1377.   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  1378.   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  1379.   --enable-biarch-config  install biarch ftconfig.h to support multiple
  1380.                           architectures by single file
  1381.   --disable-mmap          do not check mmap() and do not use
  1382.   --enable-shared[=PKGS]  build shared libraries [default=yes]
  1383.   --enable-static[=PKGS]  build static libraries [default=yes]
  1384.   --enable-fast-install[=PKGS]
  1385.                           optimize for fast installation [default=yes]
  1386.   --disable-libtool-lock  avoid locking (might break parallel builds)
  1387.  
  1388. Optional Packages:
  1389.   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  1390.   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  1391.   --without-zlib          use internal zlib instead of system-wide
  1392.   --without-bzip2         do not support bzip2 compressed fonts
  1393.   --without-png           do not support png compressed OpenType embedded
  1394.                           bitmaps
  1395.   --with-old-mac-fonts    allow Mac resource-based fonts to be used
  1396.   --with-fsspec           use obsolete FSSpec API of MacOS, if available
  1397.                           (default=yes)
  1398.   --with-fsref            use Carbon FSRef API of MacOS, if available
  1399.                           (default=yes)
  1400.   --with-quickdraw-toolbox
  1401.                           use MacOS QuickDraw in ToolBox, if available
  1402.                           (default=yes)
  1403.   --with-quickdraw-carbon use MacOS QuickDraw in Carbon, if available
  1404.                           (default=yes)
  1405.   --with-ats              use AppleTypeService, if available (default=yes)
  1406.   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
  1407.                           both]
  1408.   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
  1409.   --with-sysroot=DIR Search for dependent libraries within DIR
  1410.                         (or the compiler's sysroot if not specified).
  1411.  
  1412. Some influential environment variables:
  1413.   CC          C compiler command
  1414.   CFLAGS      C compiler flags
  1415.   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
  1416.               nonstandard directory <lib dir>
  1417.   LIBS        libraries to pass to the linker, e.g. -l<library>
  1418.   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1419.               you have headers in a nonstandard directory <include dir>
  1420.   CPP         C preprocessor
  1421.  
  1422. Use these variables to override the choices made by `configure' or to help
  1423. it to find libraries and programs with nonstandard names/locations.
  1424.  
  1425. Report bugs to <freetype@nongnu.org>.
  1426. _ACEOF
  1427. ac_status=$?
  1428. fi
  1429.  
  1430. if test "$ac_init_help" = "recursive"; then
  1431.   # If there are subdirs, report their specific --help.
  1432.   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1433.     test -d "$ac_dir" ||
  1434.       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1435.       continue
  1436.     ac_builddir=.
  1437.  
  1438. case "$ac_dir" in
  1439. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1440. *)
  1441.   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1442.   # A ".." for each directory in $ac_dir_suffix.
  1443.   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1444.   case $ac_top_builddir_sub in
  1445.   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1446.   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1447.   esac ;;
  1448. esac
  1449. ac_abs_top_builddir=$ac_pwd
  1450. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1451. # for backward compatibility:
  1452. ac_top_builddir=$ac_top_build_prefix
  1453.  
  1454. case $srcdir in
  1455.   .)  # We are building in place.
  1456.     ac_srcdir=.
  1457.     ac_top_srcdir=$ac_top_builddir_sub
  1458.     ac_abs_top_srcdir=$ac_pwd ;;
  1459.   [\\/]* | ?:[\\/]* )  # Absolute name.
  1460.     ac_srcdir=$srcdir$ac_dir_suffix;
  1461.     ac_top_srcdir=$srcdir
  1462.     ac_abs_top_srcdir=$srcdir ;;
  1463.   *) # Relative name.
  1464.     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1465.     ac_top_srcdir=$ac_top_build_prefix$srcdir
  1466.     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1467. esac
  1468. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1469.  
  1470.     cd "$ac_dir" || { ac_status=$?; continue; }
  1471.     # Check for guested configure.
  1472.     if test -f "$ac_srcdir/configure.gnu"; then
  1473.       echo &&
  1474.       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1475.     elif test -f "$ac_srcdir/configure"; then
  1476.       echo &&
  1477.       $SHELL "$ac_srcdir/configure" --help=recursive
  1478.     else
  1479.       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1480.     fi || ac_status=$?
  1481.     cd "$ac_pwd" || { ac_status=$?; break; }
  1482.   done
  1483. fi
  1484.  
  1485. test -n "$ac_init_help" && exit $ac_status
  1486. if $ac_init_version; then
  1487.   cat <<\_ACEOF
  1488. FreeType configure 2.5
  1489. generated by GNU Autoconf 2.69
  1490.  
  1491. Copyright (C) 2012 Free Software Foundation, Inc.
  1492. This configure script is free software; the Free Software Foundation
  1493. gives unlimited permission to copy, distribute and modify it.
  1494. _ACEOF
  1495.   exit
  1496. fi
  1497.  
  1498. ## ------------------------ ##
  1499. ## Autoconf initialization. ##
  1500. ## ------------------------ ##
  1501.  
  1502. # ac_fn_c_try_compile LINENO
  1503. # --------------------------
  1504. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1505. ac_fn_c_try_compile ()
  1506. {
  1507.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1508.   rm -f conftest.$ac_objext
  1509.   if { { ac_try="$ac_compile"
  1510. case "(($ac_try" in
  1511.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1512.   *) ac_try_echo=$ac_try;;
  1513. esac
  1514. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1515. $as_echo "$ac_try_echo"; } >&5
  1516.   (eval "$ac_compile") 2>conftest.err
  1517.   ac_status=$?
  1518.   if test -s conftest.err; then
  1519.     grep -v '^ *+' conftest.err >conftest.er1
  1520.     cat conftest.er1 >&5
  1521.     mv -f conftest.er1 conftest.err
  1522.   fi
  1523.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1524.   test $ac_status = 0; } && {
  1525.          test -z "$ac_c_werror_flag" ||
  1526.          test ! -s conftest.err
  1527.        } && test -s conftest.$ac_objext; then :
  1528.   ac_retval=0
  1529. else
  1530.   $as_echo "$as_me: failed program was:" >&5
  1531. sed 's/^/| /' conftest.$ac_ext >&5
  1532.  
  1533.         ac_retval=1
  1534. fi
  1535.   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1536.   as_fn_set_status $ac_retval
  1537.  
  1538. } # ac_fn_c_try_compile
  1539.  
  1540. # ac_fn_c_try_cpp LINENO
  1541. # ----------------------
  1542. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1543. ac_fn_c_try_cpp ()
  1544. {
  1545.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1546.   if { { ac_try="$ac_cpp conftest.$ac_ext"
  1547. case "(($ac_try" in
  1548.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1549.   *) ac_try_echo=$ac_try;;
  1550. esac
  1551. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1552. $as_echo "$ac_try_echo"; } >&5
  1553.   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1554.   ac_status=$?
  1555.   if test -s conftest.err; then
  1556.     grep -v '^ *+' conftest.err >conftest.er1
  1557.     cat conftest.er1 >&5
  1558.     mv -f conftest.er1 conftest.err
  1559.   fi
  1560.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1561.   test $ac_status = 0; } > conftest.i && {
  1562.          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1563.          test ! -s conftest.err
  1564.        }; then :
  1565.   ac_retval=0
  1566. else
  1567.   $as_echo "$as_me: failed program was:" >&5
  1568. sed 's/^/| /' conftest.$ac_ext >&5
  1569.  
  1570.     ac_retval=1
  1571. fi
  1572.   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1573.   as_fn_set_status $ac_retval
  1574.  
  1575. } # ac_fn_c_try_cpp
  1576.  
  1577. # ac_fn_c_try_run LINENO
  1578. # ----------------------
  1579. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1580. # that executables *can* be run.
  1581. ac_fn_c_try_run ()
  1582. {
  1583.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1584.   if { { ac_try="$ac_link"
  1585. case "(($ac_try" in
  1586.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1587.   *) ac_try_echo=$ac_try;;
  1588. esac
  1589. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1590. $as_echo "$ac_try_echo"; } >&5
  1591.   (eval "$ac_link") 2>&5
  1592.   ac_status=$?
  1593.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1594.   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1595.   { { case "(($ac_try" in
  1596.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1597.   *) ac_try_echo=$ac_try;;
  1598. esac
  1599. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1600. $as_echo "$ac_try_echo"; } >&5
  1601.   (eval "$ac_try") 2>&5
  1602.   ac_status=$?
  1603.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1604.   test $ac_status = 0; }; }; then :
  1605.   ac_retval=0
  1606. else
  1607.   $as_echo "$as_me: program exited with status $ac_status" >&5
  1608.        $as_echo "$as_me: failed program was:" >&5
  1609. sed 's/^/| /' conftest.$ac_ext >&5
  1610.  
  1611.        ac_retval=$ac_status
  1612. fi
  1613.   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1614.   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1615.   as_fn_set_status $ac_retval
  1616.  
  1617. } # ac_fn_c_try_run
  1618.  
  1619. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1620. # -------------------------------------------------------
  1621. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1622. # the include files in INCLUDES and setting the cache variable VAR
  1623. # accordingly.
  1624. ac_fn_c_check_header_mongrel ()
  1625. {
  1626.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1627.   if eval \${$3+:} false; then :
  1628.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1629. $as_echo_n "checking for $2... " >&6; }
  1630. if eval \${$3+:} false; then :
  1631.   $as_echo_n "(cached) " >&6
  1632. fi
  1633. eval ac_res=\$$3
  1634.                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1635. $as_echo "$ac_res" >&6; }
  1636. else
  1637.   # Is the header compilable?
  1638. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1639. $as_echo_n "checking $2 usability... " >&6; }
  1640. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1641. /* end confdefs.h.  */
  1642. $4
  1643. #include <$2>
  1644. _ACEOF
  1645. if ac_fn_c_try_compile "$LINENO"; then :
  1646.   ac_header_compiler=yes
  1647. else
  1648.   ac_header_compiler=no
  1649. fi
  1650. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1652. $as_echo "$ac_header_compiler" >&6; }
  1653.  
  1654. # Is the header present?
  1655. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1656. $as_echo_n "checking $2 presence... " >&6; }
  1657. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1658. /* end confdefs.h.  */
  1659. #include <$2>
  1660. _ACEOF
  1661. if ac_fn_c_try_cpp "$LINENO"; then :
  1662.   ac_header_preproc=yes
  1663. else
  1664.   ac_header_preproc=no
  1665. fi
  1666. rm -f conftest.err conftest.i conftest.$ac_ext
  1667. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1668. $as_echo "$ac_header_preproc" >&6; }
  1669.  
  1670. # So?  What about this header?
  1671. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1672.   yes:no: )
  1673.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1674. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1675.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1676. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1677.     ;;
  1678.   no:yes:* )
  1679.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1680. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1681.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
  1682. $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
  1683.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1684. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1685.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
  1686. $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
  1687.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1688. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1689. ( $as_echo "## ---------------------------------- ##
  1690. ## Report this to freetype@nongnu.org ##
  1691. ## ---------------------------------- ##"
  1692.      ) | sed "s/^/$as_me: WARNING:     /" >&2
  1693.     ;;
  1694. esac
  1695.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1696. $as_echo_n "checking for $2... " >&6; }
  1697. if eval \${$3+:} false; then :
  1698.   $as_echo_n "(cached) " >&6
  1699. else
  1700.   eval "$3=\$ac_header_compiler"
  1701. fi
  1702. eval ac_res=\$$3
  1703.                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1704. $as_echo "$ac_res" >&6; }
  1705. fi
  1706.   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1707.  
  1708. } # ac_fn_c_check_header_mongrel
  1709.  
  1710. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1711. # -------------------------------------------------------
  1712. # Tests whether HEADER exists and can be compiled using the include files in
  1713. # INCLUDES, setting the cache variable VAR accordingly.
  1714. ac_fn_c_check_header_compile ()
  1715. {
  1716.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1717.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1718. $as_echo_n "checking for $2... " >&6; }
  1719. if eval \${$3+:} false; then :
  1720.   $as_echo_n "(cached) " >&6
  1721. else
  1722.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1723. /* end confdefs.h.  */
  1724. $4
  1725. #include <$2>
  1726. _ACEOF
  1727. if ac_fn_c_try_compile "$LINENO"; then :
  1728.   eval "$3=yes"
  1729. else
  1730.   eval "$3=no"
  1731. fi
  1732. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1733. fi
  1734. eval ac_res=\$$3
  1735.                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1736. $as_echo "$ac_res" >&6; }
  1737.   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1738.  
  1739. } # ac_fn_c_check_header_compile
  1740.  
  1741. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  1742. # --------------------------------------------
  1743. # Tries to find the compile-time value of EXPR in a program that includes
  1744. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  1745. # computed
  1746. ac_fn_c_compute_int ()
  1747. {
  1748.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1749.   if test "$cross_compiling" = yes; then
  1750.     # Depending upon the size, compute the lo and hi bounds.
  1751. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1752. /* end confdefs.h.  */
  1753. $4
  1754. int
  1755. main ()
  1756. {
  1757. static int test_array [1 - 2 * !(($2) >= 0)];
  1758. test_array [0] = 0;
  1759. return test_array [0];
  1760.  
  1761.   ;
  1762.   return 0;
  1763. }
  1764. _ACEOF
  1765. if ac_fn_c_try_compile "$LINENO"; then :
  1766.   ac_lo=0 ac_mid=0
  1767.   while :; do
  1768.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1769. /* end confdefs.h.  */
  1770. $4
  1771. int
  1772. main ()
  1773. {
  1774. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1775. test_array [0] = 0;
  1776. return test_array [0];
  1777.  
  1778.   ;
  1779.   return 0;
  1780. }
  1781. _ACEOF
  1782. if ac_fn_c_try_compile "$LINENO"; then :
  1783.   ac_hi=$ac_mid; break
  1784. else
  1785.   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  1786.                         if test $ac_lo -le $ac_mid; then
  1787.                           ac_lo= ac_hi=
  1788.                           break
  1789.                         fi
  1790.                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  1791. fi
  1792. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1793.   done
  1794. else
  1795.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1796. /* end confdefs.h.  */
  1797. $4
  1798. int
  1799. main ()
  1800. {
  1801. static int test_array [1 - 2 * !(($2) < 0)];
  1802. test_array [0] = 0;
  1803. return test_array [0];
  1804.  
  1805.   ;
  1806.   return 0;
  1807. }
  1808. _ACEOF
  1809. if ac_fn_c_try_compile "$LINENO"; then :
  1810.   ac_hi=-1 ac_mid=-1
  1811.   while :; do
  1812.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1813. /* end confdefs.h.  */
  1814. $4
  1815. int
  1816. main ()
  1817. {
  1818. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  1819. test_array [0] = 0;
  1820. return test_array [0];
  1821.  
  1822.   ;
  1823.   return 0;
  1824. }
  1825. _ACEOF
  1826. if ac_fn_c_try_compile "$LINENO"; then :
  1827.   ac_lo=$ac_mid; break
  1828. else
  1829.   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  1830.                         if test $ac_mid -le $ac_hi; then
  1831.                           ac_lo= ac_hi=
  1832.                           break
  1833.                         fi
  1834.                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  1835. fi
  1836. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1837.   done
  1838. else
  1839.   ac_lo= ac_hi=
  1840. fi
  1841. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1842. fi
  1843. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1844. # Binary search between lo and hi bounds.
  1845. while test "x$ac_lo" != "x$ac_hi"; do
  1846.   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  1847.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1848. /* end confdefs.h.  */
  1849. $4
  1850. int
  1851. main ()
  1852. {
  1853. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1854. test_array [0] = 0;
  1855. return test_array [0];
  1856.  
  1857.   ;
  1858.   return 0;
  1859. }
  1860. _ACEOF
  1861. if ac_fn_c_try_compile "$LINENO"; then :
  1862.   ac_hi=$ac_mid
  1863. else
  1864.   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  1865. fi
  1866. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1867. done
  1868. case $ac_lo in #((
  1869. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  1870. '') ac_retval=1 ;;
  1871. esac
  1872.   else
  1873.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1874. /* end confdefs.h.  */
  1875. $4
  1876. static long int longval () { return $2; }
  1877. static unsigned long int ulongval () { return $2; }
  1878. #include <stdio.h>
  1879. #include <stdlib.h>
  1880. int
  1881. main ()
  1882. {
  1883.  
  1884.   FILE *f = fopen ("conftest.val", "w");
  1885.   if (! f)
  1886.     return 1;
  1887.   if (($2) < 0)
  1888.     {
  1889.       long int i = longval ();
  1890.       if (i != ($2))
  1891.         return 1;
  1892.       fprintf (f, "%ld", i);
  1893.     }
  1894.   else
  1895.     {
  1896.       unsigned long int i = ulongval ();
  1897.       if (i != ($2))
  1898.         return 1;
  1899.       fprintf (f, "%lu", i);
  1900.     }
  1901.   /* Do not output a trailing newline, as this causes \r\n confusion
  1902.      on some platforms.  */
  1903.   return ferror (f) || fclose (f) != 0;
  1904.  
  1905.   ;
  1906.   return 0;
  1907. }
  1908. _ACEOF
  1909. if ac_fn_c_try_run "$LINENO"; then :
  1910.   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  1911. else
  1912.   ac_retval=1
  1913. fi
  1914. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  1915.   conftest.$ac_objext conftest.beam conftest.$ac_ext
  1916. rm -f conftest.val
  1917.  
  1918.   fi
  1919.   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1920.   as_fn_set_status $ac_retval
  1921.  
  1922. } # ac_fn_c_compute_int
  1923.  
  1924. # ac_fn_c_try_link LINENO
  1925. # -----------------------
  1926. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1927. ac_fn_c_try_link ()
  1928. {
  1929.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1930.   rm -f conftest.$ac_objext conftest$ac_exeext
  1931.   if { { ac_try="$ac_link"
  1932. case "(($ac_try" in
  1933.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1934.   *) ac_try_echo=$ac_try;;
  1935. esac
  1936. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1937. $as_echo "$ac_try_echo"; } >&5
  1938.   (eval "$ac_link") 2>conftest.err
  1939.   ac_status=$?
  1940.   if test -s conftest.err; then
  1941.     grep -v '^ *+' conftest.err >conftest.er1
  1942.     cat conftest.er1 >&5
  1943.     mv -f conftest.er1 conftest.err
  1944.   fi
  1945.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1946.   test $ac_status = 0; } && {
  1947.          test -z "$ac_c_werror_flag" ||
  1948.          test ! -s conftest.err
  1949.        } && test -s conftest$ac_exeext && {
  1950.          test "$cross_compiling" = yes ||
  1951.          test -x conftest$ac_exeext
  1952.        }; then :
  1953.   ac_retval=0
  1954. else
  1955.   $as_echo "$as_me: failed program was:" >&5
  1956. sed 's/^/| /' conftest.$ac_ext >&5
  1957.  
  1958.         ac_retval=1
  1959. fi
  1960.   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1961.   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1962.   # interfere with the next link command; also delete a directory that is
  1963.   # left behind by Apple's compiler.  We do this before executing the actions.
  1964.   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1965.   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1966.   as_fn_set_status $ac_retval
  1967.  
  1968. } # ac_fn_c_try_link
  1969.  
  1970. # ac_fn_c_check_func LINENO FUNC VAR
  1971. # ----------------------------------
  1972. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1973. ac_fn_c_check_func ()
  1974. {
  1975.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1976.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1977. $as_echo_n "checking for $2... " >&6; }
  1978. if eval \${$3+:} false; then :
  1979.   $as_echo_n "(cached) " >&6
  1980. else
  1981.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1982. /* end confdefs.h.  */
  1983. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1984.    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  1985. #define $2 innocuous_$2
  1986.  
  1987. /* System header to define __stub macros and hopefully few prototypes,
  1988.     which can conflict with char $2 (); below.
  1989.     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1990.     <limits.h> exists even on freestanding compilers.  */
  1991.  
  1992. #ifdef __STDC__
  1993. # include <limits.h>
  1994. #else
  1995. # include <assert.h>
  1996. #endif
  1997.  
  1998. #undef $2
  1999.  
  2000. /* Override any GCC internal prototype to avoid an error.
  2001.    Use char because int might match the return type of a GCC
  2002.    builtin and then its argument prototype would still apply.  */
  2003. #ifdef __cplusplus
  2004. extern "C"
  2005. #endif
  2006. char $2 ();
  2007. /* The GNU C library defines this for functions which it implements
  2008.     to always fail with ENOSYS.  Some functions are actually named
  2009.     something starting with __ and the normal name is an alias.  */
  2010. #if defined __stub_$2 || defined __stub___$2
  2011. choke me
  2012. #endif
  2013.  
  2014. int
  2015. main ()
  2016. {
  2017. return $2 ();
  2018.   ;
  2019.   return 0;
  2020. }
  2021. _ACEOF
  2022. if ac_fn_c_try_link "$LINENO"; then :
  2023.   eval "$3=yes"
  2024. else
  2025.   eval "$3=no"
  2026. fi
  2027. rm -f core conftest.err conftest.$ac_objext \
  2028.     conftest$ac_exeext conftest.$ac_ext
  2029. fi
  2030. eval ac_res=\$$3
  2031.                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2032. $as_echo "$ac_res" >&6; }
  2033.   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2034.  
  2035. } # ac_fn_c_check_func
  2036.  
  2037. # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
  2038. # ---------------------------------------------
  2039. # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  2040. # accordingly.
  2041. ac_fn_c_check_decl ()
  2042. {
  2043.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2044.   as_decl_name=`echo $2|sed 's/ *(.*//'`
  2045.   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  2046.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  2047. $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
  2048. if eval \${$3+:} false; then :
  2049.   $as_echo_n "(cached) " >&6
  2050. else
  2051.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2052. /* end confdefs.h.  */
  2053. $4
  2054. int
  2055. main ()
  2056. {
  2057. #ifndef $as_decl_name
  2058. #ifdef __cplusplus
  2059.   (void) $as_decl_use;
  2060. #else
  2061.   (void) $as_decl_name;
  2062. #endif
  2063. #endif
  2064.  
  2065.   ;
  2066.   return 0;
  2067. }
  2068. _ACEOF
  2069. if ac_fn_c_try_compile "$LINENO"; then :
  2070.   eval "$3=yes"
  2071. else
  2072.   eval "$3=no"
  2073. fi
  2074. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2075. fi
  2076. eval ac_res=\$$3
  2077.                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2078. $as_echo "$ac_res" >&6; }
  2079.   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2080.  
  2081. } # ac_fn_c_check_decl
  2082. cat >config.log <<_ACEOF
  2083. This file contains any messages produced by compilers while
  2084. running configure, to aid debugging if configure makes a mistake.
  2085.  
  2086. It was created by FreeType $as_me 2.5, which was
  2087. generated by GNU Autoconf 2.69.  Invocation command line was
  2088.  
  2089.   $ $0 $@
  2090.  
  2091. _ACEOF
  2092. exec 5>>config.log
  2093. {
  2094. cat <<_ASUNAME
  2095. ## --------- ##
  2096. ## Platform. ##
  2097. ## --------- ##
  2098.  
  2099. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2100. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2101. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2102. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2103. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2104.  
  2105. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2106. /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
  2107.  
  2108. /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
  2109. /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
  2110. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2111. /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
  2112. /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
  2113. /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
  2114. /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
  2115.  
  2116. _ASUNAME
  2117.  
  2118. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2119. for as_dir in $PATH
  2120. do
  2121.   IFS=$as_save_IFS
  2122.   test -z "$as_dir" && as_dir=.
  2123.     $as_echo "PATH: $as_dir"
  2124.   done
  2125. IFS=$as_save_IFS
  2126.  
  2127. } >&5
  2128.  
  2129. cat >&5 <<_ACEOF
  2130.  
  2131.  
  2132. ## ----------- ##
  2133. ## Core tests. ##
  2134. ## ----------- ##
  2135.  
  2136. _ACEOF
  2137.  
  2138.  
  2139. # Keep a trace of the command line.
  2140. # Strip out --no-create and --no-recursion so they do not pile up.
  2141. # Strip out --silent because we don't want to record it for future runs.
  2142. # Also quote any args containing shell meta-characters.
  2143. # Make two passes to allow for proper duplicate-argument suppression.
  2144. ac_configure_args=
  2145. ac_configure_args0=
  2146. ac_configure_args1=
  2147. ac_must_keep_next=false
  2148. for ac_pass in 1 2
  2149. do
  2150.   for ac_arg
  2151.   do
  2152.     case $ac_arg in
  2153.     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2154.     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2155.     | -silent | --silent | --silen | --sile | --sil)
  2156.       continue ;;
  2157.     *\'*)
  2158.       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2159.     esac
  2160.     case $ac_pass in
  2161.     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2162.     2)
  2163.       as_fn_append ac_configure_args1 " '$ac_arg'"
  2164.       if test $ac_must_keep_next = true; then
  2165.         ac_must_keep_next=false # Got value, back to normal.
  2166.       else
  2167.         case $ac_arg in
  2168.           *=* | --config-cache | -C | -disable-* | --disable-* \
  2169.           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2170.           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2171.           | -with-* | --with-* | -without-* | --without-* | --x)
  2172.             case "$ac_configure_args0 " in
  2173.               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2174.             esac
  2175.             ;;
  2176.           -* ) ac_must_keep_next=true ;;
  2177.         esac
  2178.       fi
  2179.       as_fn_append ac_configure_args " '$ac_arg'"
  2180.       ;;
  2181.     esac
  2182.   done
  2183. done
  2184. { ac_configure_args0=; unset ac_configure_args0;}
  2185. { ac_configure_args1=; unset ac_configure_args1;}
  2186.  
  2187. # When interrupted or exit'd, cleanup temporary files, and complete
  2188. # config.log.  We remove comments because anyway the quotes in there
  2189. # would cause problems or look ugly.
  2190. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2191. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2192. trap 'exit_status=$?
  2193.   # Save into config.log some information that might help in debugging.
  2194.   {
  2195.     echo
  2196.  
  2197.     $as_echo "## ---------------- ##
  2198. ## Cache variables. ##
  2199. ## ---------------- ##"
  2200.     echo
  2201.     # The following way of writing the cache mishandles newlines in values,
  2202. (
  2203.   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2204.     eval ac_val=\$$ac_var
  2205.     case $ac_val in #(
  2206.     *${as_nl}*)
  2207.       case $ac_var in #(
  2208.       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2209. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2210.       esac
  2211.       case $ac_var in #(
  2212.       _ | IFS | as_nl) ;; #(
  2213.       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2214.       *) { eval $ac_var=; unset $ac_var;} ;;
  2215.       esac ;;
  2216.     esac
  2217.   done
  2218.   (set) 2>&1 |
  2219.     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2220.     *${as_nl}ac_space=\ *)
  2221.       sed -n \
  2222.         "s/'\''/'\''\\\\'\'''\''/g;
  2223.           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2224.       ;; #(
  2225.     *)
  2226.       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2227.       ;;
  2228.     esac |
  2229.     sort
  2230. )
  2231.     echo
  2232.  
  2233.     $as_echo "## ----------------- ##
  2234. ## Output variables. ##
  2235. ## ----------------- ##"
  2236.     echo
  2237.     for ac_var in $ac_subst_vars
  2238.     do
  2239.       eval ac_val=\$$ac_var
  2240.       case $ac_val in
  2241.       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2242.       esac
  2243.       $as_echo "$ac_var='\''$ac_val'\''"
  2244.     done | sort
  2245.     echo
  2246.  
  2247.     if test -n "$ac_subst_files"; then
  2248.       $as_echo "## ------------------- ##
  2249. ## File substitutions. ##
  2250. ## ------------------- ##"
  2251.       echo
  2252.       for ac_var in $ac_subst_files
  2253.       do
  2254.         eval ac_val=\$$ac_var
  2255.         case $ac_val in
  2256.         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2257.         esac
  2258.         $as_echo "$ac_var='\''$ac_val'\''"
  2259.       done | sort
  2260.       echo
  2261.     fi
  2262.  
  2263.     if test -s confdefs.h; then
  2264.       $as_echo "## ----------- ##
  2265. ## confdefs.h. ##
  2266. ## ----------- ##"
  2267.       echo
  2268.       cat confdefs.h
  2269.       echo
  2270.     fi
  2271.     test "$ac_signal" != 0 &&
  2272.       $as_echo "$as_me: caught signal $ac_signal"
  2273.     $as_echo "$as_me: exit $exit_status"
  2274.   } >&5
  2275.   rm -f core *.core core.conftest.* &&
  2276.     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2277.     exit $exit_status
  2278. ' 0
  2279. for ac_signal in 1 2 13 15; do
  2280.   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2281. done
  2282. ac_signal=0
  2283.  
  2284. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2285. rm -f -r conftest* confdefs.h
  2286.  
  2287. $as_echo "/* confdefs.h */" > confdefs.h
  2288.  
  2289. # Predefined preprocessor variables.
  2290.  
  2291. cat >>confdefs.h <<_ACEOF
  2292. #define PACKAGE_NAME "$PACKAGE_NAME"
  2293. _ACEOF
  2294.  
  2295. cat >>confdefs.h <<_ACEOF
  2296. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2297. _ACEOF
  2298.  
  2299. cat >>confdefs.h <<_ACEOF
  2300. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2301. _ACEOF
  2302.  
  2303. cat >>confdefs.h <<_ACEOF
  2304. #define PACKAGE_STRING "$PACKAGE_STRING"
  2305. _ACEOF
  2306.  
  2307. cat >>confdefs.h <<_ACEOF
  2308. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2309. _ACEOF
  2310.  
  2311. cat >>confdefs.h <<_ACEOF
  2312. #define PACKAGE_URL "$PACKAGE_URL"
  2313. _ACEOF
  2314.  
  2315.  
  2316. # Let the site file select an alternate cache file if it wants to.
  2317. # Prefer an explicitly selected file to automatically selected ones.
  2318. ac_site_file1=NONE
  2319. ac_site_file2=NONE
  2320. if test -n "$CONFIG_SITE"; then
  2321.   # We do not want a PATH search for config.site.
  2322.   case $CONFIG_SITE in #((
  2323.     -*)  ac_site_file1=./$CONFIG_SITE;;
  2324.     */*) ac_site_file1=$CONFIG_SITE;;
  2325.     *)   ac_site_file1=./$CONFIG_SITE;;
  2326.   esac
  2327. elif test "x$prefix" != xNONE; then
  2328.   ac_site_file1=$prefix/share/config.site
  2329.   ac_site_file2=$prefix/etc/config.site
  2330. else
  2331.   ac_site_file1=$ac_default_prefix/share/config.site
  2332.   ac_site_file2=$ac_default_prefix/etc/config.site
  2333. fi
  2334. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2335. do
  2336.   test "x$ac_site_file" = xNONE && continue
  2337.   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2338.     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2339. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2340.     sed 's/^/| /' "$ac_site_file" >&5
  2341.     . "$ac_site_file" \
  2342.       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2343. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2344. as_fn_error $? "failed to load site script $ac_site_file
  2345. See \`config.log' for more details" "$LINENO" 5; }
  2346.   fi
  2347. done
  2348.  
  2349. if test -r "$cache_file"; then
  2350.   # Some versions of bash will fail to source /dev/null (special files
  2351.   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
  2352.   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2353.     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2354. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2355.     case $cache_file in
  2356.       [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2357.       *)                      . "./$cache_file";;
  2358.     esac
  2359.   fi
  2360. else
  2361.   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2362. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2363.   >$cache_file
  2364. fi
  2365.  
  2366. as_fn_append ac_header_list " stdlib.h"
  2367. as_fn_append ac_header_list " unistd.h"
  2368. as_fn_append ac_header_list " sys/param.h"
  2369. # Check that the precious variables saved in the cache have kept the same
  2370. # value.
  2371. ac_cache_corrupted=false
  2372. for ac_var in $ac_precious_vars; do
  2373.   eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2374.   eval ac_new_set=\$ac_env_${ac_var}_set
  2375.   eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2376.   eval ac_new_val=\$ac_env_${ac_var}_value
  2377.   case $ac_old_set,$ac_new_set in
  2378.     set,)
  2379.       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2380. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2381.       ac_cache_corrupted=: ;;
  2382.     ,set)
  2383.       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2384. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2385.       ac_cache_corrupted=: ;;
  2386.     ,);;
  2387.     *)
  2388.       if test "x$ac_old_val" != "x$ac_new_val"; then
  2389.         # differences in whitespace do not lead to failure.
  2390.         ac_old_val_w=`echo x $ac_old_val`
  2391.         ac_new_val_w=`echo x $ac_new_val`
  2392.         if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2393.           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2394. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2395.           ac_cache_corrupted=:
  2396.         else
  2397.           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2398. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2399.           eval $ac_var=\$ac_old_val
  2400.         fi
  2401.         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
  2402. $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
  2403.         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
  2404. $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
  2405.       fi;;
  2406.   esac
  2407.   # Pass precious variables to config.status.
  2408.   if test "$ac_new_set" = set; then
  2409.     case $ac_new_val in
  2410.     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2411.     *) ac_arg=$ac_var=$ac_new_val ;;
  2412.     esac
  2413.     case " $ac_configure_args " in
  2414.       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
  2415.       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2416.     esac
  2417.   fi
  2418. done
  2419. if $ac_cache_corrupted; then
  2420.   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2421. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2422.   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2423. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2424.   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2425. fi
  2426. ## -------------------- ##
  2427. ## Main body of script. ##
  2428. ## -------------------- ##
  2429.  
  2430. ac_ext=c
  2431. ac_cpp='$CPP $CPPFLAGS'
  2432. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2433. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2434. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2435.  
  2436.  
  2437.  
  2438.  
  2439.  
  2440. # Don't forget to update docs/VERSION.DLL!
  2441.  
  2442. version_info='16:2:10'
  2443.  
  2444. ft_version=`echo $version_info | tr : .`
  2445.  
  2446.  
  2447.  
  2448. # checks for system type
  2449.  
  2450. ac_aux_dir=
  2451. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2452.   if test -f "$ac_dir/install-sh"; then
  2453.     ac_aux_dir=$ac_dir
  2454.     ac_install_sh="$ac_aux_dir/install-sh -c"
  2455.     break
  2456.   elif test -f "$ac_dir/install.sh"; then
  2457.     ac_aux_dir=$ac_dir
  2458.     ac_install_sh="$ac_aux_dir/install.sh -c"
  2459.     break
  2460.   elif test -f "$ac_dir/shtool"; then
  2461.     ac_aux_dir=$ac_dir
  2462.     ac_install_sh="$ac_aux_dir/shtool install -c"
  2463.     break
  2464.   fi
  2465. done
  2466. if test -z "$ac_aux_dir"; then
  2467.   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2468. fi
  2469.  
  2470. # These three variables are undocumented and unsupported,
  2471. # and are intended to be withdrawn in a future Autoconf release.
  2472. # They can cause serious problems if a builder's source tree is in a directory
  2473. # whose full name contains unusual characters.
  2474. ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
  2475. ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
  2476. ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
  2477.  
  2478.  
  2479. # Make sure we can run config.sub.
  2480. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2481.   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2482.  
  2483. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2484. $as_echo_n "checking build system type... " >&6; }
  2485. if ${ac_cv_build+:} false; then :
  2486.   $as_echo_n "(cached) " >&6
  2487. else
  2488.   ac_build_alias=$build_alias
  2489. test "x$ac_build_alias" = x &&
  2490.   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2491. test "x$ac_build_alias" = x &&
  2492.   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2493. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2494.   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2495.  
  2496. fi
  2497. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2498. $as_echo "$ac_cv_build" >&6; }
  2499. case $ac_cv_build in
  2500. *-*-*) ;;
  2501. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2502. esac
  2503. build=$ac_cv_build
  2504. ac_save_IFS=$IFS; IFS='-'
  2505. set x $ac_cv_build
  2506. shift
  2507. build_cpu=$1
  2508. build_vendor=$2
  2509. shift; shift
  2510. # Remember, the first character of IFS is used to create $*,
  2511. # except with old shells:
  2512. build_os=$*
  2513. IFS=$ac_save_IFS
  2514. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2515.  
  2516.  
  2517. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2518. $as_echo_n "checking host system type... " >&6; }
  2519. if ${ac_cv_host+:} false; then :
  2520.   $as_echo_n "(cached) " >&6
  2521. else
  2522.   if test "x$host_alias" = x; then
  2523.   ac_cv_host=$ac_cv_build
  2524. else
  2525.   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2526.     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2527. fi
  2528.  
  2529. fi
  2530. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2531. $as_echo "$ac_cv_host" >&6; }
  2532. case $ac_cv_host in
  2533. *-*-*) ;;
  2534. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2535. esac
  2536. host=$ac_cv_host
  2537. ac_save_IFS=$IFS; IFS='-'
  2538. set x $ac_cv_host
  2539. shift
  2540. host_cpu=$1
  2541. host_vendor=$2
  2542. shift; shift
  2543. # Remember, the first character of IFS is used to create $*,
  2544. # except with old shells:
  2545. host_os=$*
  2546. IFS=$ac_save_IFS
  2547. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2548.  
  2549.  
  2550.  
  2551.  
  2552. # checks for programs
  2553.  
  2554. ac_ext=c
  2555. ac_cpp='$CPP $CPPFLAGS'
  2556. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2557. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2558. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2559. if test -n "$ac_tool_prefix"; then
  2560.   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2561. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2562. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2563. $as_echo_n "checking for $ac_word... " >&6; }
  2564. if ${ac_cv_prog_CC+:} false; then :
  2565.   $as_echo_n "(cached) " >&6
  2566. else
  2567.   if test -n "$CC"; then
  2568.   ac_cv_prog_CC="$CC" # Let the user override the test.
  2569. else
  2570. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2571. for as_dir in $PATH
  2572. do
  2573.   IFS=$as_save_IFS
  2574.   test -z "$as_dir" && as_dir=.
  2575.     for ac_exec_ext in '' $ac_executable_extensions; do
  2576.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2577.     ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2578.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2579.     break 2
  2580.   fi
  2581. done
  2582.   done
  2583. IFS=$as_save_IFS
  2584.  
  2585. fi
  2586. fi
  2587. CC=$ac_cv_prog_CC
  2588. if test -n "$CC"; then
  2589.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2590. $as_echo "$CC" >&6; }
  2591. else
  2592.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2593. $as_echo "no" >&6; }
  2594. fi
  2595.  
  2596.  
  2597. fi
  2598. if test -z "$ac_cv_prog_CC"; then
  2599.   ac_ct_CC=$CC
  2600.   # Extract the first word of "gcc", so it can be a program name with args.
  2601. set dummy gcc; ac_word=$2
  2602. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2603. $as_echo_n "checking for $ac_word... " >&6; }
  2604. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2605.   $as_echo_n "(cached) " >&6
  2606. else
  2607.   if test -n "$ac_ct_CC"; then
  2608.   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2609. else
  2610. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2611. for as_dir in $PATH
  2612. do
  2613.   IFS=$as_save_IFS
  2614.   test -z "$as_dir" && as_dir=.
  2615.     for ac_exec_ext in '' $ac_executable_extensions; do
  2616.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2617.     ac_cv_prog_ac_ct_CC="gcc"
  2618.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2619.     break 2
  2620.   fi
  2621. done
  2622.   done
  2623. IFS=$as_save_IFS
  2624.  
  2625. fi
  2626. fi
  2627. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2628. if test -n "$ac_ct_CC"; then
  2629.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2630. $as_echo "$ac_ct_CC" >&6; }
  2631. else
  2632.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2633. $as_echo "no" >&6; }
  2634. fi
  2635.  
  2636.   if test "x$ac_ct_CC" = x; then
  2637.     CC=""
  2638.   else
  2639.     case $cross_compiling:$ac_tool_warned in
  2640. yes:)
  2641. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2642. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2643. ac_tool_warned=yes ;;
  2644. esac
  2645.     CC=$ac_ct_CC
  2646.   fi
  2647. else
  2648.   CC="$ac_cv_prog_CC"
  2649. fi
  2650.  
  2651. if test -z "$CC"; then
  2652.           if test -n "$ac_tool_prefix"; then
  2653.     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2654. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2655. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2656. $as_echo_n "checking for $ac_word... " >&6; }
  2657. if ${ac_cv_prog_CC+:} false; then :
  2658.   $as_echo_n "(cached) " >&6
  2659. else
  2660.   if test -n "$CC"; then
  2661.   ac_cv_prog_CC="$CC" # Let the user override the test.
  2662. else
  2663. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2664. for as_dir in $PATH
  2665. do
  2666.   IFS=$as_save_IFS
  2667.   test -z "$as_dir" && as_dir=.
  2668.     for ac_exec_ext in '' $ac_executable_extensions; do
  2669.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2670.     ac_cv_prog_CC="${ac_tool_prefix}cc"
  2671.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2672.     break 2
  2673.   fi
  2674. done
  2675.   done
  2676. IFS=$as_save_IFS
  2677.  
  2678. fi
  2679. fi
  2680. CC=$ac_cv_prog_CC
  2681. if test -n "$CC"; then
  2682.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2683. $as_echo "$CC" >&6; }
  2684. else
  2685.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2686. $as_echo "no" >&6; }
  2687. fi
  2688.  
  2689.  
  2690.   fi
  2691. fi
  2692. if test -z "$CC"; then
  2693.   # Extract the first word of "cc", so it can be a program name with args.
  2694. set dummy cc; ac_word=$2
  2695. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2696. $as_echo_n "checking for $ac_word... " >&6; }
  2697. if ${ac_cv_prog_CC+:} false; then :
  2698.   $as_echo_n "(cached) " >&6
  2699. else
  2700.   if test -n "$CC"; then
  2701.   ac_cv_prog_CC="$CC" # Let the user override the test.
  2702. else
  2703.   ac_prog_rejected=no
  2704. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2705. for as_dir in $PATH
  2706. do
  2707.   IFS=$as_save_IFS
  2708.   test -z "$as_dir" && as_dir=.
  2709.     for ac_exec_ext in '' $ac_executable_extensions; do
  2710.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2711.     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2712.        ac_prog_rejected=yes
  2713.        continue
  2714.      fi
  2715.     ac_cv_prog_CC="cc"
  2716.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2717.     break 2
  2718.   fi
  2719. done
  2720.   done
  2721. IFS=$as_save_IFS
  2722.  
  2723. if test $ac_prog_rejected = yes; then
  2724.   # We found a bogon in the path, so make sure we never use it.
  2725.   set dummy $ac_cv_prog_CC
  2726.   shift
  2727.   if test $# != 0; then
  2728.     # We chose a different compiler from the bogus one.
  2729.     # However, it has the same basename, so the bogon will be chosen
  2730.     # first if we set CC to just the basename; use the full file name.
  2731.     shift
  2732.     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2733.   fi
  2734. fi
  2735. fi
  2736. fi
  2737. CC=$ac_cv_prog_CC
  2738. if test -n "$CC"; then
  2739.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2740. $as_echo "$CC" >&6; }
  2741. else
  2742.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2743. $as_echo "no" >&6; }
  2744. fi
  2745.  
  2746.  
  2747. fi
  2748. if test -z "$CC"; then
  2749.   if test -n "$ac_tool_prefix"; then
  2750.   for ac_prog in cl.exe
  2751.   do
  2752.     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2753. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2754. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2755. $as_echo_n "checking for $ac_word... " >&6; }
  2756. if ${ac_cv_prog_CC+:} false; then :
  2757.   $as_echo_n "(cached) " >&6
  2758. else
  2759.   if test -n "$CC"; then
  2760.   ac_cv_prog_CC="$CC" # Let the user override the test.
  2761. else
  2762. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2763. for as_dir in $PATH
  2764. do
  2765.   IFS=$as_save_IFS
  2766.   test -z "$as_dir" && as_dir=.
  2767.     for ac_exec_ext in '' $ac_executable_extensions; do
  2768.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2769.     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2770.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2771.     break 2
  2772.   fi
  2773. done
  2774.   done
  2775. IFS=$as_save_IFS
  2776.  
  2777. fi
  2778. fi
  2779. CC=$ac_cv_prog_CC
  2780. if test -n "$CC"; then
  2781.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2782. $as_echo "$CC" >&6; }
  2783. else
  2784.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2785. $as_echo "no" >&6; }
  2786. fi
  2787.  
  2788.  
  2789.     test -n "$CC" && break
  2790.   done
  2791. fi
  2792. if test -z "$CC"; then
  2793.   ac_ct_CC=$CC
  2794.   for ac_prog in cl.exe
  2795. do
  2796.   # Extract the first word of "$ac_prog", so it can be a program name with args.
  2797. set dummy $ac_prog; ac_word=$2
  2798. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2799. $as_echo_n "checking for $ac_word... " >&6; }
  2800. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2801.   $as_echo_n "(cached) " >&6
  2802. else
  2803.   if test -n "$ac_ct_CC"; then
  2804.   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2805. else
  2806. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2807. for as_dir in $PATH
  2808. do
  2809.   IFS=$as_save_IFS
  2810.   test -z "$as_dir" && as_dir=.
  2811.     for ac_exec_ext in '' $ac_executable_extensions; do
  2812.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2813.     ac_cv_prog_ac_ct_CC="$ac_prog"
  2814.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2815.     break 2
  2816.   fi
  2817. done
  2818.   done
  2819. IFS=$as_save_IFS
  2820.  
  2821. fi
  2822. fi
  2823. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2824. if test -n "$ac_ct_CC"; then
  2825.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2826. $as_echo "$ac_ct_CC" >&6; }
  2827. else
  2828.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2829. $as_echo "no" >&6; }
  2830. fi
  2831.  
  2832.  
  2833.   test -n "$ac_ct_CC" && break
  2834. done
  2835.  
  2836.   if test "x$ac_ct_CC" = x; then
  2837.     CC=""
  2838.   else
  2839.     case $cross_compiling:$ac_tool_warned in
  2840. yes:)
  2841. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2842. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2843. ac_tool_warned=yes ;;
  2844. esac
  2845.     CC=$ac_ct_CC
  2846.   fi
  2847. fi
  2848.  
  2849. fi
  2850.  
  2851.  
  2852. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2853. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2854. as_fn_error $? "no acceptable C compiler found in \$PATH
  2855. See \`config.log' for more details" "$LINENO" 5; }
  2856.  
  2857. # Provide some information about the compiler.
  2858. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2859. set X $ac_compile
  2860. ac_compiler=$2
  2861. for ac_option in --version -v -V -qversion; do
  2862.   { { ac_try="$ac_compiler $ac_option >&5"
  2863. case "(($ac_try" in
  2864.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2865.   *) ac_try_echo=$ac_try;;
  2866. esac
  2867. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2868. $as_echo "$ac_try_echo"; } >&5
  2869.   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2870.   ac_status=$?
  2871.   if test -s conftest.err; then
  2872.     sed '10a\
  2873. ... rest of stderr output deleted ...
  2874.          10q' conftest.err >conftest.er1
  2875.     cat conftest.er1 >&5
  2876.   fi
  2877.   rm -f conftest.er1 conftest.err
  2878.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2879.   test $ac_status = 0; }
  2880. done
  2881.  
  2882. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2883. /* end confdefs.h.  */
  2884.  
  2885. int
  2886. main ()
  2887. {
  2888.  
  2889.   ;
  2890.   return 0;
  2891. }
  2892. _ACEOF
  2893. ac_clean_files_save=$ac_clean_files
  2894. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2895. # Try to create an executable without -o first, disregard a.out.
  2896. # It will help us diagnose broken compilers, and finding out an intuition
  2897. # of exeext.
  2898. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2899. $as_echo_n "checking whether the C compiler works... " >&6; }
  2900. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2901.  
  2902. # The possible output files:
  2903. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2904.  
  2905. ac_rmfiles=
  2906. for ac_file in $ac_files
  2907. do
  2908.   case $ac_file in
  2909.     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2910.     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2911.   esac
  2912. done
  2913. rm -f $ac_rmfiles
  2914.  
  2915. if { { ac_try="$ac_link_default"
  2916. case "(($ac_try" in
  2917.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2918.   *) ac_try_echo=$ac_try;;
  2919. esac
  2920. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2921. $as_echo "$ac_try_echo"; } >&5
  2922.   (eval "$ac_link_default") 2>&5
  2923.   ac_status=$?
  2924.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2925.   test $ac_status = 0; }; then :
  2926.   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2927. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2928. # in a Makefile.  We should not override ac_cv_exeext if it was cached,
  2929. # so that the user can short-circuit this test for compilers unknown to
  2930. # Autoconf.
  2931. for ac_file in $ac_files ''
  2932. do
  2933.   test -f "$ac_file" || continue
  2934.   case $ac_file in
  2935.     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2936.         ;;
  2937.     [ab].out )
  2938.         # We found the default executable, but exeext='' is most
  2939.         # certainly right.
  2940.         break;;
  2941.     *.* )
  2942.         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2943.         then :; else
  2944.            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2945.         fi
  2946.         # We set ac_cv_exeext here because the later test for it is not
  2947.         # safe: cross compilers may not add the suffix if given an `-o'
  2948.         # argument, so we may need to know it at that point already.
  2949.         # Even if this section looks crufty: it has the advantage of
  2950.         # actually working.
  2951.         break;;
  2952.     * )
  2953.         break;;
  2954.   esac
  2955. done
  2956. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2957.  
  2958. else
  2959.   ac_file=''
  2960. fi
  2961. if test -z "$ac_file"; then :
  2962.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2963. $as_echo "no" >&6; }
  2964. $as_echo "$as_me: failed program was:" >&5
  2965. sed 's/^/| /' conftest.$ac_ext >&5
  2966.  
  2967. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2968. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2969. as_fn_error 77 "C compiler cannot create executables
  2970. See \`config.log' for more details" "$LINENO" 5; }
  2971. else
  2972.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2973. $as_echo "yes" >&6; }
  2974. fi
  2975. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2976. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2977. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2978. $as_echo "$ac_file" >&6; }
  2979. ac_exeext=$ac_cv_exeext
  2980.  
  2981. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2982. ac_clean_files=$ac_clean_files_save
  2983. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2984. $as_echo_n "checking for suffix of executables... " >&6; }
  2985. if { { ac_try="$ac_link"
  2986. case "(($ac_try" in
  2987.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2988.   *) ac_try_echo=$ac_try;;
  2989. esac
  2990. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2991. $as_echo "$ac_try_echo"; } >&5
  2992.   (eval "$ac_link") 2>&5
  2993.   ac_status=$?
  2994.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2995.   test $ac_status = 0; }; then :
  2996.   # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2997. # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
  2998. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2999. # `rm'.
  3000. for ac_file in conftest.exe conftest conftest.*; do
  3001.   test -f "$ac_file" || continue
  3002.   case $ac_file in
  3003.     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3004.     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3005.           break;;
  3006.     * ) break;;
  3007.   esac
  3008. done
  3009. else
  3010.   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3011. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3012. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3013. See \`config.log' for more details" "$LINENO" 5; }
  3014. fi
  3015. rm -f conftest conftest$ac_cv_exeext
  3016. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3017. $as_echo "$ac_cv_exeext" >&6; }
  3018.  
  3019. rm -f conftest.$ac_ext
  3020. EXEEXT=$ac_cv_exeext
  3021. ac_exeext=$EXEEXT
  3022. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3023. /* end confdefs.h.  */
  3024. #include <stdio.h>
  3025. int
  3026. main ()
  3027. {
  3028. FILE *f = fopen ("conftest.out", "w");
  3029.  return ferror (f) || fclose (f) != 0;
  3030.  
  3031.   ;
  3032.   return 0;
  3033. }
  3034. _ACEOF
  3035. ac_clean_files="$ac_clean_files conftest.out"
  3036. # Check that the compiler produces executables we can run.  If not, either
  3037. # the compiler is broken, or we cross compile.
  3038. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3039. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3040. if test "$cross_compiling" != yes; then
  3041.   { { ac_try="$ac_link"
  3042. case "(($ac_try" in
  3043.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3044.   *) ac_try_echo=$ac_try;;
  3045. esac
  3046. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3047. $as_echo "$ac_try_echo"; } >&5
  3048.   (eval "$ac_link") 2>&5
  3049.   ac_status=$?
  3050.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3051.   test $ac_status = 0; }
  3052.   if { ac_try='./conftest$ac_cv_exeext'
  3053.   { { case "(($ac_try" in
  3054.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3055.   *) ac_try_echo=$ac_try;;
  3056. esac
  3057. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3058. $as_echo "$ac_try_echo"; } >&5
  3059.   (eval "$ac_try") 2>&5
  3060.   ac_status=$?
  3061.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3062.   test $ac_status = 0; }; }; then
  3063.     cross_compiling=no
  3064.   else
  3065.     if test "$cross_compiling" = maybe; then
  3066.         cross_compiling=yes
  3067.     else
  3068.         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3069. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3070. as_fn_error $? "cannot run C compiled programs.
  3071. If you meant to cross compile, use \`--host'.
  3072. See \`config.log' for more details" "$LINENO" 5; }
  3073.     fi
  3074.   fi
  3075. fi
  3076. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3077. $as_echo "$cross_compiling" >&6; }
  3078.  
  3079. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3080. ac_clean_files=$ac_clean_files_save
  3081. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3082. $as_echo_n "checking for suffix of object files... " >&6; }
  3083. if ${ac_cv_objext+:} false; then :
  3084.   $as_echo_n "(cached) " >&6
  3085. else
  3086.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3087. /* end confdefs.h.  */
  3088.  
  3089. int
  3090. main ()
  3091. {
  3092.  
  3093.   ;
  3094.   return 0;
  3095. }
  3096. _ACEOF
  3097. rm -f conftest.o conftest.obj
  3098. if { { ac_try="$ac_compile"
  3099. case "(($ac_try" in
  3100.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3101.   *) ac_try_echo=$ac_try;;
  3102. esac
  3103. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3104. $as_echo "$ac_try_echo"; } >&5
  3105.   (eval "$ac_compile") 2>&5
  3106.   ac_status=$?
  3107.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3108.   test $ac_status = 0; }; then :
  3109.   for ac_file in conftest.o conftest.obj conftest.*; do
  3110.   test -f "$ac_file" || continue;
  3111.   case $ac_file in
  3112.     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3113.     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3114.        break;;
  3115.   esac
  3116. done
  3117. else
  3118.   $as_echo "$as_me: failed program was:" >&5
  3119. sed 's/^/| /' conftest.$ac_ext >&5
  3120.  
  3121. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3122. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3123. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3124. See \`config.log' for more details" "$LINENO" 5; }
  3125. fi
  3126. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3127. fi
  3128. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3129. $as_echo "$ac_cv_objext" >&6; }
  3130. OBJEXT=$ac_cv_objext
  3131. ac_objext=$OBJEXT
  3132. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3133. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3134. if ${ac_cv_c_compiler_gnu+:} false; then :
  3135.   $as_echo_n "(cached) " >&6
  3136. else
  3137.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3138. /* end confdefs.h.  */
  3139.  
  3140. int
  3141. main ()
  3142. {
  3143. #ifndef __GNUC__
  3144.        choke me
  3145. #endif
  3146.  
  3147.   ;
  3148.   return 0;
  3149. }
  3150. _ACEOF
  3151. if ac_fn_c_try_compile "$LINENO"; then :
  3152.   ac_compiler_gnu=yes
  3153. else
  3154.   ac_compiler_gnu=no
  3155. fi
  3156. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3157. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3158.  
  3159. fi
  3160. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3161. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3162. if test $ac_compiler_gnu = yes; then
  3163.   GCC=yes
  3164. else
  3165.   GCC=
  3166. fi
  3167. ac_test_CFLAGS=${CFLAGS+set}
  3168. ac_save_CFLAGS=$CFLAGS
  3169. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3170. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3171. if ${ac_cv_prog_cc_g+:} false; then :
  3172.   $as_echo_n "(cached) " >&6
  3173. else
  3174.   ac_save_c_werror_flag=$ac_c_werror_flag
  3175.    ac_c_werror_flag=yes
  3176.    ac_cv_prog_cc_g=no
  3177.    CFLAGS="-g"
  3178.    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3179. /* end confdefs.h.  */
  3180.  
  3181. int
  3182. main ()
  3183. {
  3184.  
  3185.   ;
  3186.   return 0;
  3187. }
  3188. _ACEOF
  3189. if ac_fn_c_try_compile "$LINENO"; then :
  3190.   ac_cv_prog_cc_g=yes
  3191. else
  3192.   CFLAGS=""
  3193.       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3194. /* end confdefs.h.  */
  3195.  
  3196. int
  3197. main ()
  3198. {
  3199.  
  3200.   ;
  3201.   return 0;
  3202. }
  3203. _ACEOF
  3204. if ac_fn_c_try_compile "$LINENO"; then :
  3205.  
  3206. else
  3207.   ac_c_werror_flag=$ac_save_c_werror_flag
  3208.          CFLAGS="-g"
  3209.          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3210. /* end confdefs.h.  */
  3211.  
  3212. int
  3213. main ()
  3214. {
  3215.  
  3216.   ;
  3217.   return 0;
  3218. }
  3219. _ACEOF
  3220. if ac_fn_c_try_compile "$LINENO"; then :
  3221.   ac_cv_prog_cc_g=yes
  3222. fi
  3223. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3224. fi
  3225. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3226. fi
  3227. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3228.    ac_c_werror_flag=$ac_save_c_werror_flag
  3229. fi
  3230. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3231. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3232. if test "$ac_test_CFLAGS" = set; then
  3233.   CFLAGS=$ac_save_CFLAGS
  3234. elif test $ac_cv_prog_cc_g = yes; then
  3235.   if test "$GCC" = yes; then
  3236.     CFLAGS="-g -O2"
  3237.   else
  3238.     CFLAGS="-g"
  3239.   fi
  3240. else
  3241.   if test "$GCC" = yes; then
  3242.     CFLAGS="-O2"
  3243.   else
  3244.     CFLAGS=
  3245.   fi
  3246. fi
  3247. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3248. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3249. if ${ac_cv_prog_cc_c89+:} false; then :
  3250.   $as_echo_n "(cached) " >&6
  3251. else
  3252.   ac_cv_prog_cc_c89=no
  3253. ac_save_CC=$CC
  3254. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3255. /* end confdefs.h.  */
  3256. #include <stdarg.h>
  3257. #include <stdio.h>
  3258. struct stat;
  3259. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  3260. struct buf { int x; };
  3261. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3262. static char *e (p, i)
  3263.      char **p;
  3264.      int i;
  3265. {
  3266.   return p[i];
  3267. }
  3268. static char *f (char * (*g) (char **, int), char **p, ...)
  3269. {
  3270.   char *s;
  3271.   va_list v;
  3272.   va_start (v,p);
  3273.   s = g (p, va_arg (v,int));
  3274.   va_end (v);
  3275.   return s;
  3276. }
  3277.  
  3278. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
  3279.    function prototypes and stuff, but not '\xHH' hex character constants.
  3280.    These don't provoke an error unfortunately, instead are silently treated
  3281.    as 'x'.  The following induces an error, until -std is added to get
  3282.    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
  3283.    array size at least.  It's necessary to write '\x00'==0 to get something
  3284.    that's true only with -std.  */
  3285. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3286.  
  3287. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3288.    inside strings and character constants.  */
  3289. #define FOO(x) 'x'
  3290. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3291.  
  3292. int test (int i, double x);
  3293. struct s1 {int (*f) (int a);};
  3294. struct s2 {int (*f) (double a);};
  3295. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3296. int argc;
  3297. char **argv;
  3298. int
  3299. main ()
  3300. {
  3301. return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  3302.   ;
  3303.   return 0;
  3304. }
  3305. _ACEOF
  3306. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3307.         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3308. do
  3309.   CC="$ac_save_CC $ac_arg"
  3310.   if ac_fn_c_try_compile "$LINENO"; then :
  3311.   ac_cv_prog_cc_c89=$ac_arg
  3312. fi
  3313. rm -f core conftest.err conftest.$ac_objext
  3314.   test "x$ac_cv_prog_cc_c89" != "xno" && break
  3315. done
  3316. rm -f conftest.$ac_ext
  3317. CC=$ac_save_CC
  3318.  
  3319. fi
  3320. # AC_CACHE_VAL
  3321. case "x$ac_cv_prog_cc_c89" in
  3322.   x)
  3323.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3324. $as_echo "none needed" >&6; } ;;
  3325.   xno)
  3326.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3327. $as_echo "unsupported" >&6; } ;;
  3328.   *)
  3329.     CC="$CC $ac_cv_prog_cc_c89"
  3330.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3331. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3332. esac
  3333. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3334.  
  3335. fi
  3336.  
  3337. ac_ext=c
  3338. ac_cpp='$CPP $CPPFLAGS'
  3339. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3340. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3341. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3342.  
  3343. ac_ext=c
  3344. ac_cpp='$CPP $CPPFLAGS'
  3345. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3346. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3347. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3348. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  3349. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  3350. # On Suns, sometimes $CPP names a directory.
  3351. if test -n "$CPP" && test -d "$CPP"; then
  3352.   CPP=
  3353. fi
  3354. if test -z "$CPP"; then
  3355.   if ${ac_cv_prog_CPP+:} false; then :
  3356.   $as_echo_n "(cached) " >&6
  3357. else
  3358.       # Double quotes because CPP needs to be expanded
  3359.     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3360.     do
  3361.       ac_preproc_ok=false
  3362. for ac_c_preproc_warn_flag in '' yes
  3363. do
  3364.   # Use a header file that comes with gcc, so configuring glibc
  3365.   # with a fresh cross-compiler works.
  3366.   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3367.   # <limits.h> exists even on freestanding compilers.
  3368.   # On the NeXT, cc -E runs the code through the compiler's parser,
  3369.   # not just through cpp. "Syntax error" is here to catch this case.
  3370.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3371. /* end confdefs.h.  */
  3372. #ifdef __STDC__
  3373. # include <limits.h>
  3374. #else
  3375. # include <assert.h>
  3376. #endif
  3377.                      Syntax error
  3378. _ACEOF
  3379. if ac_fn_c_try_cpp "$LINENO"; then :
  3380.  
  3381. else
  3382.   # Broken: fails on valid input.
  3383. continue
  3384. fi
  3385. rm -f conftest.err conftest.i conftest.$ac_ext
  3386.  
  3387.   # OK, works on sane cases.  Now check whether nonexistent headers
  3388.   # can be detected and how.
  3389.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3390. /* end confdefs.h.  */
  3391. #include <ac_nonexistent.h>
  3392. _ACEOF
  3393. if ac_fn_c_try_cpp "$LINENO"; then :
  3394.   # Broken: success on invalid input.
  3395. continue
  3396. else
  3397.   # Passes both tests.
  3398. ac_preproc_ok=:
  3399. break
  3400. fi
  3401. rm -f conftest.err conftest.i conftest.$ac_ext
  3402.  
  3403. done
  3404. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3405. rm -f conftest.i conftest.err conftest.$ac_ext
  3406. if $ac_preproc_ok; then :
  3407.   break
  3408. fi
  3409.  
  3410.     done
  3411.     ac_cv_prog_CPP=$CPP
  3412.  
  3413. fi
  3414.   CPP=$ac_cv_prog_CPP
  3415. else
  3416.   ac_cv_prog_CPP=$CPP
  3417. fi
  3418. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  3419. $as_echo "$CPP" >&6; }
  3420. ac_preproc_ok=false
  3421. for ac_c_preproc_warn_flag in '' yes
  3422. do
  3423.   # Use a header file that comes with gcc, so configuring glibc
  3424.   # with a fresh cross-compiler works.
  3425.   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3426.   # <limits.h> exists even on freestanding compilers.
  3427.   # On the NeXT, cc -E runs the code through the compiler's parser,
  3428.   # not just through cpp. "Syntax error" is here to catch this case.
  3429.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3430. /* end confdefs.h.  */
  3431. #ifdef __STDC__
  3432. # include <limits.h>
  3433. #else
  3434. # include <assert.h>
  3435. #endif
  3436.                      Syntax error
  3437. _ACEOF
  3438. if ac_fn_c_try_cpp "$LINENO"; then :
  3439.  
  3440. else
  3441.   # Broken: fails on valid input.
  3442. continue
  3443. fi
  3444. rm -f conftest.err conftest.i conftest.$ac_ext
  3445.  
  3446.   # OK, works on sane cases.  Now check whether nonexistent headers
  3447.   # can be detected and how.
  3448.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3449. /* end confdefs.h.  */
  3450. #include <ac_nonexistent.h>
  3451. _ACEOF
  3452. if ac_fn_c_try_cpp "$LINENO"; then :
  3453.   # Broken: success on invalid input.
  3454. continue
  3455. else
  3456.   # Passes both tests.
  3457. ac_preproc_ok=:
  3458. break
  3459. fi
  3460. rm -f conftest.err conftest.i conftest.$ac_ext
  3461.  
  3462. done
  3463. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3464. rm -f conftest.i conftest.err conftest.$ac_ext
  3465. if $ac_preproc_ok; then :
  3466.  
  3467. else
  3468.   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3469. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3470. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  3471. See \`config.log' for more details" "$LINENO" 5; }
  3472. fi
  3473.  
  3474. ac_ext=c
  3475. ac_cpp='$CPP $CPPFLAGS'
  3476. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3477. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3478. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3479.  
  3480.  
  3481.  
  3482.  
  3483. # checks for native programs to generate building tool
  3484.  
  3485. if test ${cross_compiling} = yes; then
  3486.   # Extract the first word of "${build}-gcc", so it can be a program name with args.
  3487. set dummy ${build}-gcc; ac_word=$2
  3488. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3489. $as_echo_n "checking for $ac_word... " >&6; }
  3490. if ${ac_cv_prog_CC_BUILD+:} false; then :
  3491.   $as_echo_n "(cached) " >&6
  3492. else
  3493.   if test -n "$CC_BUILD"; then
  3494.   ac_cv_prog_CC_BUILD="$CC_BUILD" # Let the user override the test.
  3495. else
  3496. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3497. for as_dir in $PATH
  3498. do
  3499.   IFS=$as_save_IFS
  3500.   test -z "$as_dir" && as_dir=.
  3501.     for ac_exec_ext in '' $ac_executable_extensions; do
  3502.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3503.     ac_cv_prog_CC_BUILD="${build}-gcc"
  3504.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3505.     break 2
  3506.   fi
  3507. done
  3508.   done
  3509. IFS=$as_save_IFS
  3510.  
  3511. fi
  3512. fi
  3513. CC_BUILD=$ac_cv_prog_CC_BUILD
  3514. if test -n "$CC_BUILD"; then
  3515.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_BUILD" >&5
  3516. $as_echo "$CC_BUILD" >&6; }
  3517. else
  3518.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3519. $as_echo "no" >&6; }
  3520. fi
  3521.  
  3522.  
  3523.   test -z "${CC_BUILD}" && # Extract the first word of "gcc", so it can be a program name with args.
  3524. set dummy gcc; ac_word=$2
  3525. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3526. $as_echo_n "checking for $ac_word... " >&6; }
  3527. if ${ac_cv_prog_CC_BUILD+:} false; then :
  3528.   $as_echo_n "(cached) " >&6
  3529. else
  3530.   if test -n "$CC_BUILD"; then
  3531.   ac_cv_prog_CC_BUILD="$CC_BUILD" # Let the user override the test.
  3532. else
  3533. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3534. for as_dir in $PATH
  3535. do
  3536.   IFS=$as_save_IFS
  3537.   test -z "$as_dir" && as_dir=.
  3538.     for ac_exec_ext in '' $ac_executable_extensions; do
  3539.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3540.     ac_cv_prog_CC_BUILD="gcc"
  3541.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3542.     break 2
  3543.   fi
  3544. done
  3545.   done
  3546. IFS=$as_save_IFS
  3547.  
  3548. fi
  3549. fi
  3550. CC_BUILD=$ac_cv_prog_CC_BUILD
  3551. if test -n "$CC_BUILD"; then
  3552.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_BUILD" >&5
  3553. $as_echo "$CC_BUILD" >&6; }
  3554. else
  3555.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3556. $as_echo "no" >&6; }
  3557. fi
  3558.  
  3559.  
  3560.   test -z "${CC_BUILD}" && # Extract the first word of "cc", so it can be a program name with args.
  3561. set dummy cc; ac_word=$2
  3562. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3563. $as_echo_n "checking for $ac_word... " >&6; }
  3564. if ${ac_cv_prog_CC_BUILD+:} false; then :
  3565.   $as_echo_n "(cached) " >&6
  3566. else
  3567.   if test -n "$CC_BUILD"; then
  3568.   ac_cv_prog_CC_BUILD="$CC_BUILD" # Let the user override the test.
  3569. else
  3570.   ac_prog_rejected=no
  3571. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3572. for as_dir in $PATH
  3573. do
  3574.   IFS=$as_save_IFS
  3575.   test -z "$as_dir" && as_dir=.
  3576.     for ac_exec_ext in '' $ac_executable_extensions; do
  3577.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3578.     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3579.        ac_prog_rejected=yes
  3580.        continue
  3581.      fi
  3582.     ac_cv_prog_CC_BUILD="cc"
  3583.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3584.     break 2
  3585.   fi
  3586. done
  3587.   done
  3588. IFS=$as_save_IFS
  3589.  
  3590. if test $ac_prog_rejected = yes; then
  3591.   # We found a bogon in the path, so make sure we never use it.
  3592.   set dummy $ac_cv_prog_CC_BUILD
  3593.   shift
  3594.   if test $# != 0; then
  3595.     # We chose a different compiler from the bogus one.
  3596.     # However, it has the same basename, so the bogon will be chosen
  3597.     # first if we set CC_BUILD to just the basename; use the full file name.
  3598.     shift
  3599.     ac_cv_prog_CC_BUILD="$as_dir/$ac_word${1+' '}$@"
  3600.   fi
  3601. fi
  3602. fi
  3603. fi
  3604. CC_BUILD=$ac_cv_prog_CC_BUILD
  3605. if test -n "$CC_BUILD"; then
  3606.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_BUILD" >&5
  3607. $as_echo "$CC_BUILD" >&6; }
  3608. else
  3609.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3610. $as_echo "no" >&6; }
  3611. fi
  3612.  
  3613.  
  3614.   test -z "${CC_BUILD}" && as_fn_error $? "cannot find native C compiler" "$LINENO" 5
  3615.  
  3616.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of native executables" >&5
  3617. $as_echo_n "checking for suffix of native executables... " >&6; }
  3618.   rm -f a.* b.* a_out.exe conftest.*
  3619.   echo > conftest.c "int main() { return 0;}"
  3620.   ${CC_BUILD} conftest.c || as_fn_error $? "native C compiler is not working" "$LINENO" 5
  3621.   rm -f conftest.c
  3622.   if test -x a.out -o -x b.out -o -x conftest; then
  3623.     EXEEXT_BUILD=""
  3624.   elif test -x a_out.exe -o -x conftest.exe; then
  3625.     EXEEXT_BUILD=".exe"
  3626.   elif test -x conftest.*; then
  3627.     EXEEXT_BUILD=`echo conftest.* | sed -n '1s/^.*\././'`
  3628.   fi
  3629.   rm -f a.* b.* a_out.exe conftest.*
  3630.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXEEXT_BUILD" >&5
  3631. $as_echo "$EXEEXT_BUILD" >&6; }
  3632. else
  3633.   CC_BUILD=${CC}
  3634.   EXEEXT_BUILD=${EXEEXT}
  3635. fi
  3636.  
  3637.  
  3638.  
  3639.  
  3640.  
  3641. # auxiliary programs
  3642.  
  3643. # Extract the first word of "rmdir", so it can be a program name with args.
  3644. set dummy rmdir; ac_word=$2
  3645. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3646. $as_echo_n "checking for $ac_word... " >&6; }
  3647. if ${ac_cv_prog_RMDIR+:} false; then :
  3648.   $as_echo_n "(cached) " >&6
  3649. else
  3650.   if test -n "$RMDIR"; then
  3651.   ac_cv_prog_RMDIR="$RMDIR" # Let the user override the test.
  3652. else
  3653. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3654. for as_dir in $PATH
  3655. do
  3656.   IFS=$as_save_IFS
  3657.   test -z "$as_dir" && as_dir=.
  3658.     for ac_exec_ext in '' $ac_executable_extensions; do
  3659.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3660.     ac_cv_prog_RMDIR="rmdir"
  3661.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3662.     break 2
  3663.   fi
  3664. done
  3665.   done
  3666. IFS=$as_save_IFS
  3667.  
  3668. fi
  3669. fi
  3670. RMDIR=$ac_cv_prog_RMDIR
  3671. if test -n "$RMDIR"; then
  3672.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5
  3673. $as_echo "$RMDIR" >&6; }
  3674. else
  3675.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3676. $as_echo "no" >&6; }
  3677. fi
  3678.  
  3679.  
  3680.  
  3681.  
  3682. # Since this file will be finally moved to another directory we make
  3683. # the path of the install script absolute.  This small code snippet has
  3684. # been taken from automake's `ylwrap' script.
  3685.  
  3686. # Find a good install program.  We prefer a C program (faster),
  3687. # so one script is as good as another.  But avoid the broken or
  3688. # incompatible versions:
  3689. # SysV /etc/install, /usr/sbin/install
  3690. # SunOS /usr/etc/install
  3691. # IRIX /sbin/install
  3692. # AIX /bin/install
  3693. # AmigaOS /C/install, which installs bootblocks on floppy discs
  3694. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  3695. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  3696. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  3697. # OS/2's system install, which has a completely different semantic
  3698. # ./install, which can be erroneously created by make from ./install.sh.
  3699. # Reject install programs that cannot install multiple files.
  3700. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  3701. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  3702. if test -z "$INSTALL"; then
  3703. if ${ac_cv_path_install+:} false; then :
  3704.   $as_echo_n "(cached) " >&6
  3705. else
  3706.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3707. for as_dir in $PATH
  3708. do
  3709.   IFS=$as_save_IFS
  3710.   test -z "$as_dir" && as_dir=.
  3711.     # Account for people who put trailing slashes in PATH elements.
  3712. case $as_dir/ in #((
  3713.   ./ | .// | /[cC]/* | \
  3714.   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  3715.   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  3716.   /usr/ucb/* ) ;;
  3717.   *)
  3718.     # OSF1 and SCO ODT 3.0 have their own names for install.
  3719.     # Don't use installbsd from OSF since it installs stuff as root
  3720.     # by default.
  3721.     for ac_prog in ginstall scoinst install; do
  3722.       for ac_exec_ext in '' $ac_executable_extensions; do
  3723.         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  3724.           if test $ac_prog = install &&
  3725.             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3726.             # AIX install.  It has an incompatible calling convention.
  3727.             :
  3728.           elif test $ac_prog = install &&
  3729.             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3730.             # program-specific install script used by HP pwplus--don't use.
  3731.             :
  3732.           else
  3733.             rm -rf conftest.one conftest.two conftest.dir
  3734.             echo one > conftest.one
  3735.             echo two > conftest.two
  3736.             mkdir conftest.dir
  3737.             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  3738.               test -s conftest.one && test -s conftest.two &&
  3739.               test -s conftest.dir/conftest.one &&
  3740.               test -s conftest.dir/conftest.two
  3741.             then
  3742.               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  3743.               break 3
  3744.             fi
  3745.           fi
  3746.         fi
  3747.       done
  3748.     done
  3749.     ;;
  3750. esac
  3751.  
  3752.   done
  3753. IFS=$as_save_IFS
  3754.  
  3755. rm -rf conftest.one conftest.two conftest.dir
  3756.  
  3757. fi
  3758.   if test "${ac_cv_path_install+set}" = set; then
  3759.     INSTALL=$ac_cv_path_install
  3760.   else
  3761.     # As a last resort, use the slow shell script.  Don't cache a
  3762.     # value for INSTALL within a source directory, because that will
  3763.     # break other packages using the cache if that directory is
  3764.     # removed, or if the value is a relative name.
  3765.     INSTALL=$ac_install_sh
  3766.   fi
  3767. fi
  3768. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  3769. $as_echo "$INSTALL" >&6; }
  3770.  
  3771. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  3772. # It thinks the first close brace ends the variable substitution.
  3773. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  3774.  
  3775. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  3776.  
  3777. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  3778.  
  3779. case "$INSTALL" in
  3780. /*)
  3781.   ;;
  3782. */*)
  3783.   INSTALL="`pwd`/$INSTALL"
  3784.   ;;
  3785. esac
  3786.  
  3787.  
  3788. # checks for header files
  3789.  
  3790.  
  3791.  
  3792. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3793. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3794. if ${ac_cv_path_GREP+:} false; then :
  3795.   $as_echo_n "(cached) " >&6
  3796. else
  3797.   if test -z "$GREP"; then
  3798.   ac_path_GREP_found=false
  3799.   # Loop through the user's path and test for each of PROGNAME-LIST
  3800.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3801. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3802. do
  3803.   IFS=$as_save_IFS
  3804.   test -z "$as_dir" && as_dir=.
  3805.     for ac_prog in grep ggrep; do
  3806.     for ac_exec_ext in '' $ac_executable_extensions; do
  3807.       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3808.       as_fn_executable_p "$ac_path_GREP" || continue
  3809. # Check for GNU ac_path_GREP and select it if it is found.
  3810.   # Check for GNU $ac_path_GREP
  3811. case `"$ac_path_GREP" --version 2>&1` in
  3812. *GNU*)
  3813.   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3814. *)
  3815.   ac_count=0
  3816.   $as_echo_n 0123456789 >"conftest.in"
  3817.   while :
  3818.   do
  3819.     cat "conftest.in" "conftest.in" >"conftest.tmp"
  3820.     mv "conftest.tmp" "conftest.in"
  3821.     cp "conftest.in" "conftest.nl"
  3822.     $as_echo 'GREP' >> "conftest.nl"
  3823.     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3824.     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3825.     as_fn_arith $ac_count + 1 && ac_count=$as_val
  3826.     if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3827.       # Best one so far, save it but keep looking for a better one
  3828.       ac_cv_path_GREP="$ac_path_GREP"
  3829.       ac_path_GREP_max=$ac_count
  3830.     fi
  3831.     # 10*(2^10) chars as input seems more than enough
  3832.     test $ac_count -gt 10 && break
  3833.   done
  3834.   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3835. esac
  3836.  
  3837.       $ac_path_GREP_found && break 3
  3838.     done
  3839.   done
  3840.   done
  3841. IFS=$as_save_IFS
  3842.   if test -z "$ac_cv_path_GREP"; then
  3843.     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3844.   fi
  3845. else
  3846.   ac_cv_path_GREP=$GREP
  3847. fi
  3848.  
  3849. fi
  3850. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3851. $as_echo "$ac_cv_path_GREP" >&6; }
  3852.  GREP="$ac_cv_path_GREP"
  3853.  
  3854.  
  3855. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3856. $as_echo_n "checking for egrep... " >&6; }
  3857. if ${ac_cv_path_EGREP+:} false; then :
  3858.   $as_echo_n "(cached) " >&6
  3859. else
  3860.   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3861.    then ac_cv_path_EGREP="$GREP -E"
  3862.    else
  3863.      if test -z "$EGREP"; then
  3864.   ac_path_EGREP_found=false
  3865.   # Loop through the user's path and test for each of PROGNAME-LIST
  3866.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3867. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3868. do
  3869.   IFS=$as_save_IFS
  3870.   test -z "$as_dir" && as_dir=.
  3871.     for ac_prog in egrep; do
  3872.     for ac_exec_ext in '' $ac_executable_extensions; do
  3873.       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3874.       as_fn_executable_p "$ac_path_EGREP" || continue
  3875. # Check for GNU ac_path_EGREP and select it if it is found.
  3876.   # Check for GNU $ac_path_EGREP
  3877. case `"$ac_path_EGREP" --version 2>&1` in
  3878. *GNU*)
  3879.   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3880. *)
  3881.   ac_count=0
  3882.   $as_echo_n 0123456789 >"conftest.in"
  3883.   while :
  3884.   do
  3885.     cat "conftest.in" "conftest.in" >"conftest.tmp"
  3886.     mv "conftest.tmp" "conftest.in"
  3887.     cp "conftest.in" "conftest.nl"
  3888.     $as_echo 'EGREP' >> "conftest.nl"
  3889.     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3890.     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3891.     as_fn_arith $ac_count + 1 && ac_count=$as_val
  3892.     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3893.       # Best one so far, save it but keep looking for a better one
  3894.       ac_cv_path_EGREP="$ac_path_EGREP"
  3895.       ac_path_EGREP_max=$ac_count
  3896.     fi
  3897.     # 10*(2^10) chars as input seems more than enough
  3898.     test $ac_count -gt 10 && break
  3899.   done
  3900.   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3901. esac
  3902.  
  3903.       $ac_path_EGREP_found && break 3
  3904.     done
  3905.   done
  3906.   done
  3907. IFS=$as_save_IFS
  3908.   if test -z "$ac_cv_path_EGREP"; then
  3909.     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3910.   fi
  3911. else
  3912.   ac_cv_path_EGREP=$EGREP
  3913. fi
  3914.  
  3915.    fi
  3916. fi
  3917. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3918. $as_echo "$ac_cv_path_EGREP" >&6; }
  3919.  EGREP="$ac_cv_path_EGREP"
  3920.  
  3921.  
  3922. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  3923. $as_echo_n "checking for ANSI C header files... " >&6; }
  3924. if ${ac_cv_header_stdc+:} false; then :
  3925.   $as_echo_n "(cached) " >&6
  3926. else
  3927.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3928. /* end confdefs.h.  */
  3929. #include <stdlib.h>
  3930. #include <stdarg.h>
  3931. #include <string.h>
  3932. #include <float.h>
  3933.  
  3934. int
  3935. main ()
  3936. {
  3937.  
  3938.   ;
  3939.   return 0;
  3940. }
  3941. _ACEOF
  3942. if ac_fn_c_try_compile "$LINENO"; then :
  3943.   ac_cv_header_stdc=yes
  3944. else
  3945.   ac_cv_header_stdc=no
  3946. fi
  3947. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3948.  
  3949. if test $ac_cv_header_stdc = yes; then
  3950.   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3951.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3952. /* end confdefs.h.  */
  3953. #include <string.h>
  3954.  
  3955. _ACEOF
  3956. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3957.   $EGREP "memchr" >/dev/null 2>&1; then :
  3958.  
  3959. else
  3960.   ac_cv_header_stdc=no
  3961. fi
  3962. rm -f conftest*
  3963.  
  3964. fi
  3965.  
  3966. if test $ac_cv_header_stdc = yes; then
  3967.   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3968.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3969. /* end confdefs.h.  */
  3970. #include <stdlib.h>
  3971.  
  3972. _ACEOF
  3973. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3974.   $EGREP "free" >/dev/null 2>&1; then :
  3975.  
  3976. else
  3977.   ac_cv_header_stdc=no
  3978. fi
  3979. rm -f conftest*
  3980.  
  3981. fi
  3982.  
  3983. if test $ac_cv_header_stdc = yes; then
  3984.   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3985.   if test "$cross_compiling" = yes; then :
  3986.   :
  3987. else
  3988.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3989. /* end confdefs.h.  */
  3990. #include <ctype.h>
  3991. #include <stdlib.h>
  3992. #if ((' ' & 0x0FF) == 0x020)
  3993. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3994. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3995. #else
  3996. # define ISLOWER(c) \
  3997.                    (('a' <= (c) && (c) <= 'i') \
  3998.                      || ('j' <= (c) && (c) <= 'r') \
  3999.                      || ('s' <= (c) && (c) <= 'z'))
  4000. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4001. #endif
  4002.  
  4003. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4004. int
  4005. main ()
  4006. {
  4007.   int i;
  4008.   for (i = 0; i < 256; i++)
  4009.     if (XOR (islower (i), ISLOWER (i))
  4010.         || toupper (i) != TOUPPER (i))
  4011.       return 2;
  4012.   return 0;
  4013. }
  4014. _ACEOF
  4015. if ac_fn_c_try_run "$LINENO"; then :
  4016.  
  4017. else
  4018.   ac_cv_header_stdc=no
  4019. fi
  4020. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4021.   conftest.$ac_objext conftest.beam conftest.$ac_ext
  4022. fi
  4023.  
  4024. fi
  4025. fi
  4026. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  4027. $as_echo "$ac_cv_header_stdc" >&6; }
  4028. if test $ac_cv_header_stdc = yes; then
  4029.  
  4030. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  4031.  
  4032. fi
  4033.  
  4034. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4035. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4036.                   inttypes.h stdint.h unistd.h
  4037. do :
  4038.   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4039. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  4040. "
  4041. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4042.   cat >>confdefs.h <<_ACEOF
  4043. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4044. _ACEOF
  4045.  
  4046. fi
  4047.  
  4048. done
  4049.  
  4050.  
  4051. for ac_header in fcntl.h unistd.h
  4052. do :
  4053.   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4054. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  4055. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4056.   cat >>confdefs.h <<_ACEOF
  4057. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4058. _ACEOF
  4059.  
  4060. fi
  4061.  
  4062. done
  4063.  
  4064.  
  4065.  
  4066. # checks for typedefs, structures, and compiler characteristics
  4067.  
  4068. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  4069. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  4070. if ${ac_cv_c_const+:} false; then :
  4071.   $as_echo_n "(cached) " >&6
  4072. else
  4073.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4074. /* end confdefs.h.  */
  4075.  
  4076. int
  4077. main ()
  4078. {
  4079.  
  4080. #ifndef __cplusplus
  4081.   /* Ultrix mips cc rejects this sort of thing.  */
  4082.   typedef int charset[2];
  4083.   const charset cs = { 0, 0 };
  4084.   /* SunOS 4.1.1 cc rejects this.  */
  4085.   char const *const *pcpcc;
  4086.   char **ppc;
  4087.   /* NEC SVR4.0.2 mips cc rejects this.  */
  4088.   struct point {int x, y;};
  4089.   static struct point const zero = {0,0};
  4090.   /* AIX XL C 1.02.0.0 rejects this.
  4091.      It does not let you subtract one const X* pointer from another in
  4092.      an arm of an if-expression whose if-part is not a constant
  4093.      expression */
  4094.   const char *g = "string";
  4095.   pcpcc = &g + (g ? g-g : 0);
  4096.   /* HPUX 7.0 cc rejects these. */
  4097.   ++pcpcc;
  4098.   ppc = (char**) pcpcc;
  4099.   pcpcc = (char const *const *) ppc;
  4100.   { /* SCO 3.2v4 cc rejects this sort of thing.  */
  4101.     char tx;
  4102.     char *t = &tx;
  4103.     char const *s = 0 ? (char *) 0 : (char const *) 0;
  4104.  
  4105.     *t++ = 0;
  4106.     if (s) return 0;
  4107.   }
  4108.   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
  4109.     int x[] = {25, 17};
  4110.     const int *foo = &x[0];
  4111.     ++foo;
  4112.   }
  4113.   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  4114.     typedef const int *iptr;
  4115.     iptr p = 0;
  4116.     ++p;
  4117.   }
  4118.   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  4119.        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  4120.     struct s { int j; const int *ap[3]; } bx;
  4121.     struct s *b = &bx; b->j = 5;
  4122.   }
  4123.   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  4124.     const int foo = 10;
  4125.     if (!foo) return 0;
  4126.   }
  4127.   return !cs[0] && !zero.x;
  4128. #endif
  4129.  
  4130.   ;
  4131.   return 0;
  4132. }
  4133. _ACEOF
  4134. if ac_fn_c_try_compile "$LINENO"; then :
  4135.   ac_cv_c_const=yes
  4136. else
  4137.   ac_cv_c_const=no
  4138. fi
  4139. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4140. fi
  4141. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  4142. $as_echo "$ac_cv_c_const" >&6; }
  4143. if test $ac_cv_c_const = no; then
  4144.  
  4145. $as_echo "#define const /**/" >>confdefs.h
  4146.  
  4147. fi
  4148.  
  4149. # The cast to long int works around a bug in the HP C Compiler
  4150. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  4151. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  4152. # This bug is HP SR number 8606223364.
  4153. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
  4154. $as_echo_n "checking size of int... " >&6; }
  4155. if ${ac_cv_sizeof_int+:} false; then :
  4156.   $as_echo_n "(cached) " >&6
  4157. else
  4158.   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
  4159.  
  4160. else
  4161.   if test "$ac_cv_type_int" = yes; then
  4162.      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4163. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4164. as_fn_error 77 "cannot compute sizeof (int)
  4165. See \`config.log' for more details" "$LINENO" 5; }
  4166.    else
  4167.      ac_cv_sizeof_int=0
  4168.    fi
  4169. fi
  4170.  
  4171. fi
  4172. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
  4173. $as_echo "$ac_cv_sizeof_int" >&6; }
  4174.  
  4175.  
  4176.  
  4177. cat >>confdefs.h <<_ACEOF
  4178. #define SIZEOF_INT $ac_cv_sizeof_int
  4179. _ACEOF
  4180.  
  4181.  
  4182. # The cast to long int works around a bug in the HP C Compiler
  4183. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  4184. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  4185. # This bug is HP SR number 8606223364.
  4186. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  4187. $as_echo_n "checking size of long... " >&6; }
  4188. if ${ac_cv_sizeof_long+:} false; then :
  4189.   $as_echo_n "(cached) " >&6
  4190. else
  4191.   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
  4192.  
  4193. else
  4194.   if test "$ac_cv_type_long" = yes; then
  4195.      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4196. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4197. as_fn_error 77 "cannot compute sizeof (long)
  4198. See \`config.log' for more details" "$LINENO" 5; }
  4199.    else
  4200.      ac_cv_sizeof_long=0
  4201.    fi
  4202. fi
  4203.  
  4204. fi
  4205. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  4206. $as_echo "$ac_cv_sizeof_long" >&6; }
  4207.  
  4208.  
  4209.  
  4210. cat >>confdefs.h <<_ACEOF
  4211. #define SIZEOF_LONG $ac_cv_sizeof_long
  4212. _ACEOF
  4213.  
  4214.  
  4215.  
  4216.  
  4217. # check whether cpp computation of size of int and long in ftconfig.in works
  4218.  
  4219. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cpp computation of bit length in ftconfig.in works" >&5
  4220. $as_echo_n "checking whether cpp computation of bit length in ftconfig.in works... " >&6; }
  4221. orig_CPPFLAGS="${CPPFLAGS}"
  4222. CPPFLAGS="-I${srcdir} -I. ${CPPFLAGS}"
  4223.  
  4224. ac_clean_files=
  4225. for f in ft2build.h ftoption.h ftstdlib.h; do
  4226.   if test ! -f $f; then
  4227.     ac_clean_files="$ac_clean_files $f"
  4228.     touch $f
  4229.   fi
  4230. done
  4231.  
  4232. cat > conftest.c <<\_ACEOF
  4233. #include <limits.h>
  4234. #define FT_CONFIG_OPTIONS_H "ftoption.h"
  4235. #define FT_CONFIG_STANDARD_LIBRARY_H "ftstdlib.h"
  4236. #define FT_UINT_MAX  UINT_MAX
  4237. #define FT_ULONG_MAX ULONG_MAX
  4238. #include "ftconfig.in"
  4239. _ACEOF
  4240. echo >> conftest.c "#if FT_SIZEOF_INT == "${ac_cv_sizeof_int}
  4241. echo >> conftest.c "ac_cpp_ft_sizeof_int="${ac_cv_sizeof_int}
  4242. echo >> conftest.c "#endif"
  4243. echo >> conftest.c "#if FT_SIZEOF_LONG == "${ac_cv_sizeof_long}
  4244. echo >> conftest.c "ac_cpp_ft_sizeof_long="${ac_cv_sizeof_long}
  4245. echo >> conftest.c "#endif"
  4246.  
  4247. ${CPP} ${CPPFLAGS} conftest.c | ${GREP} ac_cpp_ft > conftest.sh
  4248. eval `cat conftest.sh`
  4249. rm -f conftest.* $ac_clean_files
  4250.  
  4251. if test x != "x${ac_cpp_ft_sizeof_int}" \
  4252.    -a x != x"${ac_cpp_ft_sizeof_long}"; then
  4253.   unset ft_use_autoconf_sizeof_types
  4254. else
  4255.   ft_use_autoconf_sizeof_types=yes
  4256. fi
  4257.  
  4258. # Check whether --enable-biarch-config was given.
  4259. if test "${enable_biarch_config+set}" = set; then :
  4260.   enableval=$enable_biarch_config;
  4261. fi
  4262.  
  4263.  
  4264. case :${ft_use_autoconf_sizeof_types}:${enable_biarch_config}: in
  4265.   :yes:yes:)
  4266.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: broken but use it" >&5
  4267. $as_echo "broken but use it" >&6; }
  4268.     unset ft_use_autoconf_sizeof_types
  4269.     ;;
  4270.   ::no:)
  4271.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: works but ignore it" >&5
  4272. $as_echo "works but ignore it" >&6; }
  4273.     ft_use_autoconf_sizeof_types=yes
  4274.     ;;
  4275.   ::yes: | :::)
  4276.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4277. $as_echo "yes" >&6; }
  4278.     unset ft_use_autoconf_sizeof_types
  4279.     ;;
  4280.   *)
  4281.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4282. $as_echo "no" >&6; }
  4283.     ft_use_autoconf_sizeof_types=yes
  4284.     ;;
  4285. esac
  4286.  
  4287. if test x"${ft_use_autoconf_sizeof_types}" = xyes; then
  4288.  
  4289. $as_echo "#define FT_USE_AUTOCONF_SIZEOF_TYPES /**/" >>confdefs.h
  4290.  
  4291. fi
  4292.  
  4293. CPPFLAGS="${orig_CPPFLAGS}"
  4294.  
  4295.  
  4296. # checks for library functions
  4297.  
  4298. # Here we check whether we can use our mmap file component.
  4299.  
  4300. # Check whether --enable-mmap was given.
  4301. if test "${enable_mmap+set}" = set; then :
  4302.   enableval=$enable_mmap; enable_mmap="no"
  4303. else
  4304.   enable_mmap="yes"
  4305. fi
  4306.  
  4307. if test "x${enable_mmap}" != "xno"; then
  4308.  
  4309.  
  4310.  
  4311.   for ac_header in $ac_header_list
  4312. do :
  4313.   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4314. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  4315. "
  4316. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4317.   cat >>confdefs.h <<_ACEOF
  4318. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4319. _ACEOF
  4320.  
  4321. fi
  4322.  
  4323. done
  4324.  
  4325.  
  4326.  
  4327.  
  4328.  
  4329.  
  4330.  
  4331.  
  4332. for ac_func in getpagesize
  4333. do :
  4334.   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  4335. if test "x$ac_cv_func_getpagesize" = xyes; then :
  4336.   cat >>confdefs.h <<_ACEOF
  4337. #define HAVE_GETPAGESIZE 1
  4338. _ACEOF
  4339.  
  4340. fi
  4341. done
  4342.  
  4343. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  4344. $as_echo_n "checking for working mmap... " >&6; }
  4345. if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
  4346.   $as_echo_n "(cached) " >&6
  4347. else
  4348.   if test "$cross_compiling" = yes; then :
  4349.   ac_cv_func_mmap_fixed_mapped=no
  4350. else
  4351.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4352. /* end confdefs.h.  */
  4353. $ac_includes_default
  4354. /* malloc might have been renamed as rpl_malloc. */
  4355. #undef malloc
  4356.  
  4357. /* Thanks to Mike Haertel and Jim Avera for this test.
  4358.    Here is a matrix of mmap possibilities:
  4359.         mmap private not fixed
  4360.         mmap private fixed at somewhere currently unmapped
  4361.         mmap private fixed at somewhere already mapped
  4362.         mmap shared not fixed
  4363.         mmap shared fixed at somewhere currently unmapped
  4364.         mmap shared fixed at somewhere already mapped
  4365.    For private mappings, we should verify that changes cannot be read()
  4366.    back from the file, nor mmap's back from the file at a different
  4367.    address.  (There have been systems where private was not correctly
  4368.    implemented like the infamous i386 svr4.0, and systems where the
  4369.    VM page cache was not coherent with the file system buffer cache
  4370.    like early versions of FreeBSD and possibly contemporary NetBSD.)
  4371.    For shared mappings, we should conversely verify that changes get
  4372.    propagated back to all the places they're supposed to be.
  4373.  
  4374.    Grep wants private fixed already mapped.
  4375.    The main things grep needs to know about mmap are:
  4376.    * does it exist and is it safe to write into the mmap'd area
  4377.    * how to use it (BSD variants)  */
  4378.  
  4379. #include <fcntl.h>
  4380. #include <sys/mman.h>
  4381.  
  4382. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  4383. char *malloc ();
  4384. #endif
  4385.  
  4386. /* This mess was copied from the GNU getpagesize.h.  */
  4387. #ifndef HAVE_GETPAGESIZE
  4388. # ifdef _SC_PAGESIZE
  4389. #  define getpagesize() sysconf(_SC_PAGESIZE)
  4390. # else /* no _SC_PAGESIZE */
  4391. #  ifdef HAVE_SYS_PARAM_H
  4392. #   include <sys/param.h>
  4393. #   ifdef EXEC_PAGESIZE
  4394. #    define getpagesize() EXEC_PAGESIZE
  4395. #   else /* no EXEC_PAGESIZE */
  4396. #    ifdef NBPG
  4397. #     define getpagesize() NBPG * CLSIZE
  4398. #     ifndef CLSIZE
  4399. #      define CLSIZE 1
  4400. #     endif /* no CLSIZE */
  4401. #    else /* no NBPG */
  4402. #     ifdef NBPC
  4403. #      define getpagesize() NBPC
  4404. #     else /* no NBPC */
  4405. #      ifdef PAGESIZE
  4406. #       define getpagesize() PAGESIZE
  4407. #      endif /* PAGESIZE */
  4408. #     endif /* no NBPC */
  4409. #    endif /* no NBPG */
  4410. #   endif /* no EXEC_PAGESIZE */
  4411. #  else /* no HAVE_SYS_PARAM_H */
  4412. #   define getpagesize() 8192   /* punt totally */
  4413. #  endif /* no HAVE_SYS_PARAM_H */
  4414. # endif /* no _SC_PAGESIZE */
  4415.  
  4416. #endif /* no HAVE_GETPAGESIZE */
  4417.  
  4418. int
  4419. main ()
  4420. {
  4421.   char *data, *data2, *data3;
  4422.   const char *cdata2;
  4423.   int i, pagesize;
  4424.   int fd, fd2;
  4425.  
  4426.   pagesize = getpagesize ();
  4427.  
  4428.   /* First, make a file with some known garbage in it. */
  4429.   data = (char *) malloc (pagesize);
  4430.   if (!data)
  4431.     return 1;
  4432.   for (i = 0; i < pagesize; ++i)
  4433.     *(data + i) = rand ();
  4434.   umask (0);
  4435.   fd = creat ("conftest.mmap", 0600);
  4436.   if (fd < 0)
  4437.     return 2;
  4438.   if (write (fd, data, pagesize) != pagesize)
  4439.     return 3;
  4440.   close (fd);
  4441.  
  4442.   /* Next, check that the tail of a page is zero-filled.  File must have
  4443.      non-zero length, otherwise we risk SIGBUS for entire page.  */
  4444.   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
  4445.   if (fd2 < 0)
  4446.     return 4;
  4447.   cdata2 = "";
  4448.   if (write (fd2, cdata2, 1) != 1)
  4449.     return 5;
  4450.   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
  4451.   if (data2 == MAP_FAILED)
  4452.     return 6;
  4453.   for (i = 0; i < pagesize; ++i)
  4454.     if (*(data2 + i))
  4455.       return 7;
  4456.   close (fd2);
  4457.   if (munmap (data2, pagesize))
  4458.     return 8;
  4459.  
  4460.   /* Next, try to mmap the file at a fixed address which already has
  4461.      something else allocated at it.  If we can, also make sure that
  4462.      we see the same garbage.  */
  4463.   fd = open ("conftest.mmap", O_RDWR);
  4464.   if (fd < 0)
  4465.     return 9;
  4466.   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  4467.                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
  4468.     return 10;
  4469.   for (i = 0; i < pagesize; ++i)
  4470.     if (*(data + i) != *(data2 + i))
  4471.       return 11;
  4472.  
  4473.   /* Finally, make sure that changes to the mapped area do not
  4474.      percolate back to the file as seen by read().  (This is a bug on
  4475.      some variants of i386 svr4.0.)  */
  4476.   for (i = 0; i < pagesize; ++i)
  4477.     *(data2 + i) = *(data2 + i) + 1;
  4478.   data3 = (char *) malloc (pagesize);
  4479.   if (!data3)
  4480.     return 12;
  4481.   if (read (fd, data3, pagesize) != pagesize)
  4482.     return 13;
  4483.   for (i = 0; i < pagesize; ++i)
  4484.     if (*(data + i) != *(data3 + i))
  4485.       return 14;
  4486.   close (fd);
  4487.   return 0;
  4488. }
  4489. _ACEOF
  4490. if ac_fn_c_try_run "$LINENO"; then :
  4491.   ac_cv_func_mmap_fixed_mapped=yes
  4492. else
  4493.   ac_cv_func_mmap_fixed_mapped=no
  4494. fi
  4495. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4496.   conftest.$ac_objext conftest.beam conftest.$ac_ext
  4497. fi
  4498.  
  4499. fi
  4500. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  4501. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  4502. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  4503.  
  4504. $as_echo "#define HAVE_MMAP 1" >>confdefs.h
  4505.  
  4506. fi
  4507. rm -f conftest.mmap conftest.txt
  4508.  
  4509. fi
  4510. if test "x${enable_mmap}" = "xno" \
  4511.    -o "$ac_cv_func_mmap_fixed_mapped" != "yes"; then
  4512.   FTSYS_SRC='$(BASE_DIR)/ftsystem.c'
  4513. else
  4514.   FTSYS_SRC='$(BUILD_DIR)/ftsystem.c'
  4515.  
  4516.   ac_fn_c_check_decl "$LINENO" "munmap" "ac_cv_have_decl_munmap" "
  4517.  
  4518. #ifdef HAVE_UNISTD_H
  4519. #include <unistd.h>
  4520. #endif
  4521. #include <sys/mman.h>
  4522.  
  4523.  
  4524. "
  4525. if test "x$ac_cv_have_decl_munmap" = xyes; then :
  4526.   ac_have_decl=1
  4527. else
  4528.   ac_have_decl=0
  4529. fi
  4530.  
  4531. cat >>confdefs.h <<_ACEOF
  4532. #define HAVE_DECL_MUNMAP $ac_have_decl
  4533. _ACEOF
  4534.  
  4535.  
  4536.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for munmap's first parameter type" >&5
  4537. $as_echo_n "checking for munmap's first parameter type... " >&6; }
  4538.    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4539. /* end confdefs.h.  */
  4540.  
  4541.  
  4542.  
  4543. #include <unistd.h>
  4544. #include <sys/mman.h>
  4545. int munmap(void *, size_t);
  4546.  
  4547.  
  4548.  
  4549. _ACEOF
  4550. if ac_fn_c_try_compile "$LINENO"; then :
  4551.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: void *" >&5
  4552. $as_echo "void *" >&6; }
  4553.  
  4554. $as_echo "#define MUNMAP_USES_VOIDP /**/" >>confdefs.h
  4555.  
  4556. else
  4557.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: char *" >&5
  4558. $as_echo "char *" >&6; }
  4559. fi
  4560. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4561.  
  4562. fi
  4563.  
  4564.  
  4565. for ac_func in memcpy memmove
  4566. do :
  4567.   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  4568. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  4569. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  4570.   cat >>confdefs.h <<_ACEOF
  4571. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  4572. _ACEOF
  4573.  
  4574. fi
  4575. done
  4576.  
  4577.  
  4578.  
  4579. # get compiler flags right
  4580. #  we try to make the compiler work for C89-strict source.
  4581. #  even if C compiler is GCC and C89 flags are available,
  4582. #  some system headers (e.g. Android Bionic libc) is broken
  4583. #  in C89 mode. we have to check the compilation finishes
  4584. #  successfully.
  4585. #
  4586. if test "x$GCC" = xyes; then
  4587.   XX_CFLAGS="-Wall"
  4588.   XX_ANSIFLAGS=""
  4589.   for a in -pedantic -ansi
  4590.   do
  4591.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking gcc compiler flag ${a} to assure ANSI C works correctly" >&5
  4592. $as_echo_n "checking gcc compiler flag ${a} to assure ANSI C works correctly... " >&6; }
  4593.     orig_CFLAGS="${CFLAGS}"
  4594.     CFLAGS="${CFLAGS} ${XX_ANSIFLAGS} ${a}"
  4595.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4596. /* end confdefs.h.  */
  4597.  
  4598.         #include <stdio.h>
  4599. int
  4600. main ()
  4601. {
  4602. {puts("");return 0;}
  4603.   ;
  4604.   return 0;
  4605. }
  4606.  
  4607. _ACEOF
  4608. if ac_fn_c_try_compile "$LINENO"; then :
  4609.  
  4610.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok, add it to XX_ANSIFLAGS" >&5
  4611. $as_echo "ok, add it to XX_ANSIFLAGS" >&6; }
  4612.         XX_ANSIFLAGS="${XX_ANSIFLAGS} ${a}"
  4613.  
  4614. else
  4615.  
  4616.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4617. $as_echo "no" >&6; }
  4618.  
  4619. fi
  4620. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4621.     CFLAGS="${orig_CFLAGS}"
  4622.   done
  4623. else
  4624.   case "$host" in
  4625.   *-dec-osf*)
  4626.     CFLAGS=
  4627.     XX_CFLAGS="-std1 -g3"
  4628.     XX_ANSIFLAGS=
  4629.     ;;
  4630.   *)
  4631.     XX_CFLAGS=
  4632.     XX_ANSIFLAGS=
  4633.     ;;
  4634.   esac
  4635. fi
  4636.  
  4637.  
  4638.  
  4639.  
  4640. # check for system zlib
  4641.  
  4642. # don't quote AS_HELP_STRING!
  4643.  
  4644. # Check whether --with-zlib was given.
  4645. if test "${with_zlib+set}" = set; then :
  4646.   withval=$with_zlib;
  4647. fi
  4648.  
  4649. if test x$with_zlib != xno && test -z "$LIBZ"; then
  4650.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzsetparams in -lz" >&5
  4651. $as_echo_n "checking for gzsetparams in -lz... " >&6; }
  4652. if ${ac_cv_lib_z_gzsetparams+:} false; then :
  4653.   $as_echo_n "(cached) " >&6
  4654. else
  4655.   ac_check_lib_save_LIBS=$LIBS
  4656. LIBS="-lz  $LIBS"
  4657. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4658. /* end confdefs.h.  */
  4659.  
  4660. /* Override any GCC internal prototype to avoid an error.
  4661.    Use char because int might match the return type of a GCC
  4662.    builtin and then its argument prototype would still apply.  */
  4663. #ifdef __cplusplus
  4664. extern "C"
  4665. #endif
  4666. char gzsetparams ();
  4667. int
  4668. main ()
  4669. {
  4670. return gzsetparams ();
  4671.   ;
  4672.   return 0;
  4673. }
  4674. _ACEOF
  4675. if ac_fn_c_try_link "$LINENO"; then :
  4676.   ac_cv_lib_z_gzsetparams=yes
  4677. else
  4678.   ac_cv_lib_z_gzsetparams=no
  4679. fi
  4680. rm -f core conftest.err conftest.$ac_objext \
  4681.     conftest$ac_exeext conftest.$ac_ext
  4682. LIBS=$ac_check_lib_save_LIBS
  4683. fi
  4684. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzsetparams" >&5
  4685. $as_echo "$ac_cv_lib_z_gzsetparams" >&6; }
  4686. if test "x$ac_cv_lib_z_gzsetparams" = xyes; then :
  4687.   ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
  4688. if test "x$ac_cv_header_zlib_h" = xyes; then :
  4689.   LIBZ='-lz'
  4690. fi
  4691.  
  4692.  
  4693. fi
  4694.  
  4695. fi
  4696. if test x$with_zlib != xno && test -n "$LIBZ"; then
  4697.   SYSTEM_ZLIB=yes
  4698. fi
  4699.  
  4700.  
  4701. # check for system libbz2
  4702.  
  4703. # don't quote AS_HELP_STRING!
  4704.  
  4705. # Check whether --with-bzip2 was given.
  4706. if test "${with_bzip2+set}" = set; then :
  4707.   withval=$with_bzip2;
  4708. fi
  4709.  
  4710. if test x$with_bzip2 != xno && test -z "$LIBBZ2"; then
  4711.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
  4712. $as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
  4713. if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then :
  4714.   $as_echo_n "(cached) " >&6
  4715. else
  4716.   ac_check_lib_save_LIBS=$LIBS
  4717. LIBS="-lbz2  $LIBS"
  4718. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4719. /* end confdefs.h.  */
  4720.  
  4721. /* Override any GCC internal prototype to avoid an error.
  4722.    Use char because int might match the return type of a GCC
  4723.    builtin and then its argument prototype would still apply.  */
  4724. #ifdef __cplusplus
  4725. extern "C"
  4726. #endif
  4727. char BZ2_bzDecompress ();
  4728. int
  4729. main ()
  4730. {
  4731. return BZ2_bzDecompress ();
  4732.   ;
  4733.   return 0;
  4734. }
  4735. _ACEOF
  4736. if ac_fn_c_try_link "$LINENO"; then :
  4737.   ac_cv_lib_bz2_BZ2_bzDecompress=yes
  4738. else
  4739.   ac_cv_lib_bz2_BZ2_bzDecompress=no
  4740. fi
  4741. rm -f core conftest.err conftest.$ac_objext \
  4742.     conftest$ac_exeext conftest.$ac_ext
  4743. LIBS=$ac_check_lib_save_LIBS
  4744. fi
  4745. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
  4746. $as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
  4747. if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then :
  4748.   ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
  4749. if test "x$ac_cv_header_bzlib_h" = xyes; then :
  4750.   LIBBZ2='-lbz2'
  4751. fi
  4752.  
  4753.  
  4754. fi
  4755.  
  4756. fi
  4757. if test x$with_bzip2 != xno && test -n "$LIBBZ2"; then
  4758.   SYSTEM_LIBBZ2=yes
  4759. fi
  4760.  
  4761.  
  4762. # check for system libpng
  4763.  
  4764. HAVE_LIBPNG=no
  4765.  
  4766. # Check whether --with-png was given.
  4767. if test "${with_png+set}" = set; then :
  4768.   withval=$with_png;
  4769. fi
  4770.  
  4771. if test x$with_png != xno; then
  4772.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpng" >&5
  4773. $as_echo_n "checking for libpng... " >&6; }
  4774.   if test -z "$LIBPNG_CFLAGS" -a -z "$LIBPNG_LDFLAGS"; then
  4775.     if ! which libpng-config >/dev/null; then
  4776.       as_fn_error $? "\`libpng-config' not found;
  4777. either set the LIBPNG_CFLAGS and LIBPNG_LDFLAGS environment variables,
  4778. or pass \`--without-png' to the \`configure' script." "$LINENO" 5
  4779.     fi
  4780.     LIBPNG_CFLAGS="`libpng-config --cflags`"
  4781.     LIBPNG_LDFLAGS="`libpng-config --ldflags`"
  4782.   fi
  4783.   HAVE_LIBPNG=yes
  4784.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBPNG_LDFLAGS" >&5
  4785. $as_echo "$LIBPNG_LDFLAGS" >&6; }
  4786. fi
  4787.  
  4788.  
  4789. # Some options handling SDKs/archs in CFLAGS should be copied
  4790. # to LDFLAGS. Apple TechNote 2137 recommends to include these
  4791. # options in CFLAGS but not in LDFLAGS.
  4792.  
  4793. save_config_args=$*
  4794. set dummy ${CFLAGS}
  4795. i=1
  4796. while test $i -le $#
  4797. do
  4798.   c=$1
  4799.  
  4800.   case "${c}" in
  4801.   -isysroot|-arch) # options taking 1 argument
  4802.     a=$2
  4803.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CFLAGS and LDFLAGS share ${c} ${a}" >&5
  4804. $as_echo_n "checking whether CFLAGS and LDFLAGS share ${c} ${a}... " >&6; }
  4805.     if expr " ${LDFLAGS} " : ".* ${c} *${a}.*" > /dev/null
  4806.     then
  4807.       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4808. $as_echo "yes" >&6; }
  4809.     else
  4810.       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, copy to LDFLAGS" >&5
  4811. $as_echo "no, copy to LDFLAGS" >&6; }
  4812.       LDFLAGS="${LDFLAGS} ${c} ${a}"
  4813.     fi
  4814.     shift 1
  4815.     ;;
  4816.   -m32|-m64|-march=*|-mcpu=*) # options taking no argument
  4817.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CFLAGS and LDFLAGS share ${c}" >&5
  4818. $as_echo_n "checking whether CFLAGS and LDFLAGS share ${c}... " >&6; }
  4819.     if expr " ${LDFLAGS} " : ".* ${c} *${a}.*" > /dev/null
  4820.     then
  4821.       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4822. $as_echo "yes" >&6; }
  4823.     else
  4824.       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, copy to LDFLAGS" >&5
  4825. $as_echo "no, copy to LDFLAGS" >&6; }
  4826.       LDFLAGS="${LDFLAGS} ${c}"
  4827.     fi
  4828.     ;;
  4829.   # *)
  4830.   #   AC_MSG_RESULT([${c} is not copied to LDFLAGS])
  4831.   #   ;;
  4832.   esac
  4833.  
  4834.   shift 1
  4835. done
  4836. set ${save_config_args}
  4837.  
  4838.  
  4839. # Whether to use Mac OS resource-based fonts.
  4840.  
  4841. ftmac_c="" # src/base/ftmac.c should not be included in makefiles by default
  4842.  
  4843. # don't quote AS_HELP_STRING!
  4844.  
  4845. # Check whether --with-old-mac-fonts was given.
  4846. if test "${with_old_mac_fonts+set}" = set; then :
  4847.   withval=$with_old_mac_fonts;
  4848. fi
  4849.  
  4850. if test x$with_old_mac_fonts = xyes; then
  4851.   orig_LDFLAGS="${LDFLAGS}"
  4852.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking CoreServices & ApplicationServices of Mac OS X" >&5
  4853. $as_echo_n "checking CoreServices & ApplicationServices of Mac OS X... " >&6; }
  4854.   FT2_EXTRA_LIBS="-Wl,-framework,CoreServices -Wl,-framework,ApplicationServices"
  4855.   LDFLAGS="$LDFLAGS $FT2_EXTRA_LIBS"
  4856.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4857. /* end confdefs.h.  */
  4858.  
  4859.  
  4860.  
  4861. #if defined(__GNUC__) && defined(__APPLE_CC__)
  4862. # include <CoreServices/CoreServices.h>
  4863. # include <ApplicationServices/ApplicationServices.h>
  4864. #else
  4865. # include <ConditionalMacros.h>
  4866. # include <Files.h>
  4867. #endif
  4868.  
  4869.  
  4870. int
  4871. main ()
  4872. {
  4873.  
  4874.  
  4875.         short res = 0;
  4876.  
  4877.  
  4878.         UseResFile( res );
  4879.  
  4880.  
  4881.   ;
  4882.   return 0;
  4883. }
  4884. _ACEOF
  4885. if ac_fn_c_try_link "$LINENO"; then :
  4886.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  4887. $as_echo "ok" >&6; }
  4888.      ftmac_c='ftmac.c'
  4889.      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OS_INLINE macro is ANSI compatible" >&5
  4890. $as_echo_n "checking whether OS_INLINE macro is ANSI compatible... " >&6; }
  4891.      orig_CFLAGS="$CFLAGS -DFT_MACINTOSH"
  4892.      CFLAGS="$CFLAGS $XX_CFLAGS $XX_ANSIFLAGS"
  4893.      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4894. /* end confdefs.h.  */
  4895.  
  4896.  
  4897.  
  4898. #if defined(__GNUC__) && defined(__APPLE_CC__)
  4899. # include <CoreServices/CoreServices.h>
  4900. # include <ApplicationServices/ApplicationServices.h>
  4901. #else
  4902. # include <ConditionalMacros.h>
  4903. # include <Files.h>
  4904. #endif
  4905.  
  4906.  
  4907. int
  4908. main ()
  4909. {
  4910.  
  4911.  
  4912.            /* OSHostByteOrder() is typed as OS_INLINE */
  4913.            int32_t  os_byte_order = OSHostByteOrder();
  4914.  
  4915.  
  4916.            if ( OSBigEndian != os_byte_order )
  4917.              return 1;
  4918.  
  4919.  
  4920.   ;
  4921.   return 0;
  4922. }
  4923. _ACEOF
  4924. if ac_fn_c_try_compile "$LINENO"; then :
  4925.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  4926. $as_echo "ok" >&6; }
  4927.         CFLAGS="$orig_CFLAGS"
  4928.         CFLAGS="$CFLAGS -DHAVE_ANSI_OS_INLINE=1"
  4929.  
  4930. else
  4931.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, ANSI incompatible" >&5
  4932. $as_echo "no, ANSI incompatible" >&6; }
  4933.         CFLAGS="$orig_CFLAGS"
  4934.  
  4935. fi
  4936. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4937.      { $as_echo "$as_me:${as_lineno-$LINENO}: checking type ResourceIndex" >&5
  4938. $as_echo_n "checking type ResourceIndex... " >&6; }
  4939.      orig_CFLAGS="$CFLAGS"
  4940.      CFLAGS="$CFLAGS $XX_CFLAGS $XX_ANSIFLAGS"
  4941.      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4942. /* end confdefs.h.  */
  4943.  
  4944.  
  4945.  
  4946. #if defined(__GNUC__) && defined(__APPLE_CC__)
  4947. # include <CoreServices/CoreServices.h>
  4948. # include <ApplicationServices/ApplicationServices.h>
  4949. #else
  4950. # include <ConditionalMacros.h>
  4951. # include <Files.h>
  4952. # include <Resources.h>
  4953. #endif
  4954.  
  4955.  
  4956. int
  4957. main ()
  4958. {
  4959.  
  4960.  
  4961.            ResourceIndex i = 0;
  4962.            return i;
  4963.  
  4964.  
  4965.   ;
  4966.   return 0;
  4967. }
  4968. _ACEOF
  4969. if ac_fn_c_try_compile "$LINENO"; then :
  4970.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  4971. $as_echo "ok" >&6; }
  4972.         CFLAGS="$orig_CFLAGS"
  4973.         CFLAGS="$CFLAGS -DHAVE_TYPE_RESOURCE_INDEX=1"
  4974.  
  4975. else
  4976.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4977. $as_echo "no" >&6; }
  4978.         CFLAGS="$orig_CFLAGS"
  4979.         CFLAGS="$CFLAGS -DHAVE_TYPE_RESOURCE_INDEX=0"
  4980.  
  4981. fi
  4982. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4983. else
  4984.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
  4985. $as_echo "not found" >&6; }
  4986.      FT2_EXTRA_LIBS=""
  4987.      LDFLAGS="${orig_LDFLAGS}"
  4988.      CFLAGS="$CFLAGS -DDARWIN_NO_CARBON"
  4989. fi
  4990. rm -f core conftest.err conftest.$ac_objext \
  4991.     conftest$ac_exeext conftest.$ac_ext
  4992. else
  4993.   case x$host_os in
  4994.   xdarwin*)
  4995.         CFLAGS="$CFLAGS -DDARWIN_NO_CARBON"
  4996.     ;;
  4997.   *)
  4998.     ;;
  4999.   esac
  5000. fi
  5001.  
  5002.  
  5003. # Whether to use FileManager which is deprecated since Mac OS X 10.4.
  5004.  
  5005.  
  5006. # Check whether --with-fsspec was given.
  5007. if test "${with_fsspec+set}" = set; then :
  5008.   withval=$with_fsspec;
  5009. fi
  5010.  
  5011. if test x$with_fsspec = xno; then
  5012.   CFLAGS="$CFLAGS -DHAVE_FSSPEC=0"
  5013. elif test x$with_old_mac_fonts = xyes -a x$with_fsspec != x; then
  5014.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking FSSpec-based FileManager" >&5
  5015. $as_echo_n "checking FSSpec-based FileManager... " >&6; }
  5016.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5017. /* end confdefs.h.  */
  5018.  
  5019.  
  5020.  
  5021. #if defined(__GNUC__) && defined(__APPLE_CC__)
  5022. # include <CoreServices/CoreServices.h>
  5023. # include <ApplicationServices/ApplicationServices.h>
  5024. #else
  5025. # include <ConditionalMacros.h>
  5026. # include <Files.h>
  5027. #endif
  5028.  
  5029.  
  5030. int
  5031. main ()
  5032. {
  5033.  
  5034.  
  5035.         FCBPBPtr          paramBlock;
  5036.         short             vRefNum;
  5037.         long              dirID;
  5038.         ConstStr255Param  fileName;
  5039.         FSSpec*           spec;
  5040.  
  5041.  
  5042.         /* FSSpec functions: deprecated since Mac OS X 10.4 */
  5043.         PBGetFCBInfoSync( paramBlock );
  5044.         FSMakeFSSpec( vRefNum, dirID, fileName, spec );
  5045.  
  5046.  
  5047.   ;
  5048.   return 0;
  5049. }
  5050. _ACEOF
  5051. if ac_fn_c_try_link "$LINENO"; then :
  5052.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5053. $as_echo "ok" >&6; }
  5054.      CFLAGS="$CFLAGS -DHAVE_FSSPEC=1"
  5055. else
  5056.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
  5057. $as_echo "not found" >&6; }
  5058.      CFLAGS="$CFLAGS -DHAVE_FSSPEC=0"
  5059. fi
  5060. rm -f core conftest.err conftest.$ac_objext \
  5061.     conftest$ac_exeext conftest.$ac_ext
  5062. fi
  5063.  
  5064.  
  5065. # Whether to use FileManager in Carbon since MacOS 9.x.
  5066.  
  5067.  
  5068. # Check whether --with-fsref was given.
  5069. if test "${with_fsref+set}" = set; then :
  5070.   withval=$with_fsref;
  5071. fi
  5072.  
  5073. if test x$with_fsref = xno; then
  5074.   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
  5075. *** WARNING
  5076.     FreeType2 built without FSRef API cannot load
  5077.     data-fork fonts on MacOS, except of XXX.dfont.
  5078.     " >&5
  5079. $as_echo "$as_me: WARNING:
  5080. *** WARNING
  5081.     FreeType2 built without FSRef API cannot load
  5082.     data-fork fonts on MacOS, except of XXX.dfont.
  5083.     " >&2;}
  5084.   CFLAGS="$CFLAGS -DHAVE_FSREF=0"
  5085. elif test x$with_old_mac_fonts = xyes -a x$with_fsref != x; then
  5086.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking FSRef-based FileManager" >&5
  5087. $as_echo_n "checking FSRef-based FileManager... " >&6; }
  5088.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5089. /* end confdefs.h.  */
  5090.  
  5091.  
  5092.  
  5093. #if defined(__GNUC__) && defined(__APPLE_CC__)
  5094. # include <CoreServices/CoreServices.h>
  5095. # include <ApplicationServices/ApplicationServices.h>
  5096. #else
  5097. # include <ConditionalMacros.h>
  5098. # include <Files.h>
  5099. #endif
  5100.  
  5101.  
  5102. int
  5103. main ()
  5104. {
  5105.  
  5106.  
  5107.         short                vRefNum;
  5108.         long                 dirID;
  5109.         ConstStr255Param     fileName;
  5110.  
  5111.         Boolean*             isDirectory;
  5112.         UInt8*               path;
  5113.         SInt16               desiredRefNum;
  5114.         SInt16*              iterator;
  5115.         SInt16*              actualRefNum;
  5116.         HFSUniStr255*        outForkName;
  5117.         FSVolumeRefNum       volume;
  5118.         FSCatalogInfoBitmap  whichInfo;
  5119.         FSCatalogInfo*       catalogInfo;
  5120.         FSForkInfo*          forkInfo;
  5121.         FSRef*               ref;
  5122.  
  5123. #if HAVE_FSSPEC
  5124.         FSSpec*              spec;
  5125. #endif
  5126.  
  5127.         /* FSRef functions: no need to check? */
  5128.         FSGetForkCBInfo( desiredRefNum, volume, iterator,
  5129.                          actualRefNum, forkInfo, ref,
  5130.                          outForkName );
  5131.         FSPathMakeRef( path, ref, isDirectory );
  5132.  
  5133. #if HAVE_FSSPEC
  5134.         FSpMakeFSRef ( spec, ref );
  5135.         FSGetCatalogInfo( ref, whichInfo, catalogInfo,
  5136.                           outForkName, spec, ref );
  5137. #endif
  5138.  
  5139.   ;
  5140.   return 0;
  5141. }
  5142. _ACEOF
  5143. if ac_fn_c_try_link "$LINENO"; then :
  5144.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5145. $as_echo "ok" >&6; }
  5146.      CFLAGS="$CFLAGS -DHAVE_FSREF=1"
  5147. else
  5148.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
  5149. $as_echo "not found" >&6; }
  5150.      CFLAGS="$CFLAGS -DHAVE_FSREF=0"
  5151. fi
  5152. rm -f core conftest.err conftest.$ac_objext \
  5153.     conftest$ac_exeext conftest.$ac_ext
  5154. fi
  5155.  
  5156.  
  5157. # Whether to use QuickDraw API in ToolBox which is deprecated since
  5158. # Mac OS X 10.4.
  5159.  
  5160.  
  5161. # Check whether --with-quickdraw-toolbox was given.
  5162. if test "${with_quickdraw_toolbox+set}" = set; then :
  5163.   withval=$with_quickdraw_toolbox;
  5164. fi
  5165.  
  5166. if test x$with_quickdraw_toolbox = xno; then
  5167.   CFLAGS="$CFLAGS -DHAVE_QUICKDRAW_TOOLBOX=0"
  5168. elif test x$with_old_mac_fonts = xyes -a x$with_quickdraw_toolbox != x; then
  5169.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking QuickDraw FontManager functions in ToolBox" >&5
  5170. $as_echo_n "checking QuickDraw FontManager functions in ToolBox... " >&6; }
  5171.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5172. /* end confdefs.h.  */
  5173.  
  5174.  
  5175.  
  5176. #if defined(__GNUC__) && defined(__APPLE_CC__)
  5177. # include <CoreServices/CoreServices.h>
  5178. # include <ApplicationServices/ApplicationServices.h>
  5179. #else
  5180. # include <ConditionalMacros.h>
  5181. # include <Fonts.h>
  5182. #endif
  5183.  
  5184.  
  5185. int
  5186. main ()
  5187. {
  5188.  
  5189.  
  5190.         Str255     familyName;
  5191.         SInt16     familyID   = 0;
  5192.         FMInput*   fmIn       = NULL;
  5193.         FMOutput*  fmOut      = NULL;
  5194.  
  5195.  
  5196.         GetFontName( familyID, familyName );
  5197.         GetFNum( familyName, &familyID );
  5198.         fmOut = FMSwapFont( fmIn );
  5199.  
  5200.  
  5201.   ;
  5202.   return 0;
  5203. }
  5204. _ACEOF
  5205. if ac_fn_c_try_link "$LINENO"; then :
  5206.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5207. $as_echo "ok" >&6; }
  5208.      CFLAGS="$CFLAGS -DHAVE_QUICKDRAW_TOOLBOX=1"
  5209. else
  5210.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
  5211. $as_echo "not found" >&6; }
  5212.      CFLAGS="$CFLAGS -DHAVE_QUICKDRAW_TOOLBOX=0"
  5213. fi
  5214. rm -f core conftest.err conftest.$ac_objext \
  5215.     conftest$ac_exeext conftest.$ac_ext
  5216. fi
  5217.  
  5218.  
  5219. # Whether to use QuickDraw API in Carbon which is deprecated since
  5220. # Mac OS X 10.4.
  5221.  
  5222.  
  5223. # Check whether --with-quickdraw-carbon was given.
  5224. if test "${with_quickdraw_carbon+set}" = set; then :
  5225.   withval=$with_quickdraw_carbon;
  5226. fi
  5227.  
  5228. if test x$with_quickdraw_carbon = xno; then
  5229.   CFLAGS="$CFLAGS -DHAVE_QUICKDRAW_CARBON=0"
  5230. elif test x$with_old_mac_fonts = xyes -a x$with_quickdraw_carbon != x; then
  5231.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking QuickDraw FontManager functions in Carbon" >&5
  5232. $as_echo_n "checking QuickDraw FontManager functions in Carbon... " >&6; }
  5233.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5234. /* end confdefs.h.  */
  5235.  
  5236.  
  5237.  
  5238. #if defined(__GNUC__) && defined(__APPLE_CC__)
  5239. # include <CoreServices/CoreServices.h>
  5240. # include <ApplicationServices/ApplicationServices.h>
  5241. #else
  5242. # include <ConditionalMacros.h>
  5243. # include <Fonts.h>
  5244. #endif
  5245.  
  5246.  
  5247. int
  5248. main ()
  5249. {
  5250.  
  5251.  
  5252.         FMFontFamilyIterator          famIter;
  5253.         FMFontFamily                  family;
  5254.         Str255                        famNameStr;
  5255.         FMFontFamilyInstanceIterator  instIter;
  5256.         FMFontStyle                   style;
  5257.         FMFontSize                    size;
  5258.         FMFont                        font;
  5259.         FSSpec*                       pathSpec;
  5260.  
  5261.  
  5262.         FMCreateFontFamilyIterator( NULL, NULL, kFMUseGlobalScopeOption,
  5263.                                     &famIter );
  5264.         FMGetNextFontFamily( &famIter, &family );
  5265.         FMGetFontFamilyName( family, famNameStr );
  5266.         FMCreateFontFamilyInstanceIterator( family, &instIter );
  5267.         FMGetNextFontFamilyInstance( &instIter, &font, &style, &size );
  5268.         FMDisposeFontFamilyInstanceIterator( &instIter );
  5269.         FMDisposeFontFamilyIterator( &famIter );
  5270.         FMGetFontContainer( font, pathSpec );
  5271.  
  5272.  
  5273.   ;
  5274.   return 0;
  5275. }
  5276. _ACEOF
  5277. if ac_fn_c_try_link "$LINENO"; then :
  5278.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5279. $as_echo "ok" >&6; }
  5280.      CFLAGS="$CFLAGS -DHAVE_QUICKDRAW_CARBON=1"
  5281. else
  5282.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
  5283. $as_echo "not found" >&6; }
  5284.      CFLAGS="$CFLAGS -DHAVE_QUICKDRAW_CARBON=0"
  5285. fi
  5286. rm -f core conftest.err conftest.$ac_objext \
  5287.     conftest$ac_exeext conftest.$ac_ext
  5288. fi
  5289.  
  5290.  
  5291. # Whether to use AppleTypeService since Mac OS X.
  5292.  
  5293. # don't quote AS_HELP_STRING!
  5294.  
  5295. # Check whether --with-ats was given.
  5296. if test "${with_ats+set}" = set; then :
  5297.   withval=$with_ats;
  5298. fi
  5299.  
  5300. if test x$with_ats = xno; then
  5301.   CFLAGS="$CFLAGS -DHAVE_ATS=0"
  5302. elif test x$with_old_mac_fonts = xyes -a x$with_ats != x; then
  5303.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking AppleTypeService functions" >&5
  5304. $as_echo_n "checking AppleTypeService functions... " >&6; }
  5305.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5306. /* end confdefs.h.  */
  5307.  
  5308.  
  5309.  
  5310. #if defined(__GNUC__) && defined(__APPLE_CC__)
  5311. # include <CoreServices/CoreServices.h>
  5312. # include <ApplicationServices/ApplicationServices.h>
  5313. #else
  5314. # include <ConditionalMacros.h>
  5315. # include <Files.h>
  5316. #endif
  5317.  
  5318.  
  5319. int
  5320. main ()
  5321. {
  5322.  
  5323.  
  5324.         FSSpec*  pathSpec;
  5325.  
  5326.  
  5327.         ATSFontFindFromName( NULL, kATSOptionFlagsUnRestrictedScope );
  5328. #if HAVE_FSSPEC
  5329.         ATSFontGetFileSpecification( 0, pathSpec );
  5330. #endif
  5331.  
  5332.  
  5333.   ;
  5334.   return 0;
  5335. }
  5336. _ACEOF
  5337. if ac_fn_c_try_link "$LINENO"; then :
  5338.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5339. $as_echo "ok" >&6; }
  5340.      CFLAGS="$CFLAGS -DHAVE_ATS=1"
  5341. else
  5342.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
  5343. $as_echo "not found" >&6; }
  5344.      CFLAGS="$CFLAGS -DHAVE_ATS=0"
  5345. fi
  5346. rm -f core conftest.err conftest.$ac_objext \
  5347.     conftest$ac_exeext conftest.$ac_ext
  5348. fi
  5349.  
  5350. case "$CFLAGS" in
  5351.   *HAVE_FSSPEC* | *HAVE_FSREF* | *HAVE_QUICKDRAW* | *HAVE_ATS* )
  5352.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
  5353. *** WARNING
  5354.     FSSpec/FSRef/QuickDraw/ATS options are explicitly given,
  5355.     thus it is recommended to replace src/base/ftmac.c by builds/mac/ftmac.c.
  5356.     " >&5
  5357. $as_echo "$as_me: WARNING:
  5358. *** WARNING
  5359.     FSSpec/FSRef/QuickDraw/ATS options are explicitly given,
  5360.     thus it is recommended to replace src/base/ftmac.c by builds/mac/ftmac.c.
  5361.     " >&2;}
  5362.     CFLAGS="$CFLAGS "'-I$(TOP_DIR)/builds/mac/'
  5363.     ;;
  5364.   *)
  5365.     ;;
  5366. esac
  5367.  
  5368.  
  5369.  
  5370.  
  5371.  
  5372.  
  5373.  
  5374.  
  5375. case `pwd` in
  5376.   *\ * | *\     *)
  5377.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  5378. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  5379. esac
  5380.  
  5381.  
  5382.  
  5383. macro_version='2.4.2'
  5384. macro_revision='1.3337'
  5385.  
  5386.  
  5387.  
  5388.  
  5389.  
  5390.  
  5391.  
  5392.  
  5393.  
  5394.  
  5395.  
  5396.  
  5397.  
  5398. ltmain="$ac_aux_dir/ltmain.sh"
  5399.  
  5400. # Backslashify metacharacters that are still active within
  5401. # double-quoted strings.
  5402. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  5403.  
  5404. # Same as above, but do not quote variable references.
  5405. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  5406.  
  5407. # Sed substitution to delay expansion of an escaped shell variable in a
  5408. # double_quote_subst'ed string.
  5409. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  5410.  
  5411. # Sed substitution to delay expansion of an escaped single quote.
  5412. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  5413.  
  5414. # Sed substitution to avoid accidental globbing in evaled expressions
  5415. no_glob_subst='s/\*/\\\*/g'
  5416.  
  5417. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  5418. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  5419. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  5420.  
  5421. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  5422. $as_echo_n "checking how to print strings... " >&6; }
  5423. # Test print first, because it will be a builtin if present.
  5424. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  5425.    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  5426.   ECHO='print -r --'
  5427. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  5428.   ECHO='printf %s\n'
  5429. else
  5430.   # Use this function as a fallback that always works.
  5431.   func_fallback_echo ()
  5432.   {
  5433.     eval 'cat <<_LTECHO_EOF
  5434. $1
  5435. _LTECHO_EOF'
  5436.   }
  5437.   ECHO='func_fallback_echo'
  5438. fi
  5439.  
  5440. # func_echo_all arg...
  5441. # Invoke $ECHO with all args, space-separated.
  5442. func_echo_all ()
  5443. {
  5444.     $ECHO ""
  5445. }
  5446.  
  5447. case "$ECHO" in
  5448.   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  5449. $as_echo "printf" >&6; } ;;
  5450.   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  5451. $as_echo "print -r" >&6; } ;;
  5452.   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  5453. $as_echo "cat" >&6; } ;;
  5454. esac
  5455.  
  5456.  
  5457.  
  5458.  
  5459.  
  5460.  
  5461.  
  5462.  
  5463.  
  5464.  
  5465.  
  5466.  
  5467.  
  5468.  
  5469. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  5470. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  5471. if ${ac_cv_path_SED+:} false; then :
  5472.   $as_echo_n "(cached) " >&6
  5473. else
  5474.             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  5475.      for ac_i in 1 2 3 4 5 6 7; do
  5476.        ac_script="$ac_script$as_nl$ac_script"
  5477.      done
  5478.      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  5479.      { ac_script=; unset ac_script;}
  5480.      if test -z "$SED"; then
  5481.   ac_path_SED_found=false
  5482.   # Loop through the user's path and test for each of PROGNAME-LIST
  5483.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5484. for as_dir in $PATH
  5485. do
  5486.   IFS=$as_save_IFS
  5487.   test -z "$as_dir" && as_dir=.
  5488.     for ac_prog in sed gsed; do
  5489.     for ac_exec_ext in '' $ac_executable_extensions; do
  5490.       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  5491.       as_fn_executable_p "$ac_path_SED" || continue
  5492. # Check for GNU ac_path_SED and select it if it is found.
  5493.   # Check for GNU $ac_path_SED
  5494. case `"$ac_path_SED" --version 2>&1` in
  5495. *GNU*)
  5496.   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  5497. *)
  5498.   ac_count=0
  5499.   $as_echo_n 0123456789 >"conftest.in"
  5500.   while :
  5501.   do
  5502.     cat "conftest.in" "conftest.in" >"conftest.tmp"
  5503.     mv "conftest.tmp" "conftest.in"
  5504.     cp "conftest.in" "conftest.nl"
  5505.     $as_echo '' >> "conftest.nl"
  5506.     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5507.     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5508.     as_fn_arith $ac_count + 1 && ac_count=$as_val
  5509.     if test $ac_count -gt ${ac_path_SED_max-0}; then
  5510.       # Best one so far, save it but keep looking for a better one
  5511.       ac_cv_path_SED="$ac_path_SED"
  5512.       ac_path_SED_max=$ac_count
  5513.     fi
  5514.     # 10*(2^10) chars as input seems more than enough
  5515.     test $ac_count -gt 10 && break
  5516.   done
  5517.   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5518. esac
  5519.  
  5520.       $ac_path_SED_found && break 3
  5521.     done
  5522.   done
  5523.   done
  5524. IFS=$as_save_IFS
  5525.   if test -z "$ac_cv_path_SED"; then
  5526.     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  5527.   fi
  5528. else
  5529.   ac_cv_path_SED=$SED
  5530. fi
  5531.  
  5532. fi
  5533. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  5534. $as_echo "$ac_cv_path_SED" >&6; }
  5535.  SED="$ac_cv_path_SED"
  5536.   rm -f conftest.sed
  5537.  
  5538. test -z "$SED" && SED=sed
  5539. Xsed="$SED -e 1s/^X//"
  5540.  
  5541.  
  5542.  
  5543.  
  5544.  
  5545.  
  5546.  
  5547.  
  5548.  
  5549.  
  5550.  
  5551. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  5552. $as_echo_n "checking for fgrep... " >&6; }
  5553. if ${ac_cv_path_FGREP+:} false; then :
  5554.   $as_echo_n "(cached) " >&6
  5555. else
  5556.   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  5557.    then ac_cv_path_FGREP="$GREP -F"
  5558.    else
  5559.      if test -z "$FGREP"; then
  5560.   ac_path_FGREP_found=false
  5561.   # Loop through the user's path and test for each of PROGNAME-LIST
  5562.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5563. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5564. do
  5565.   IFS=$as_save_IFS
  5566.   test -z "$as_dir" && as_dir=.
  5567.     for ac_prog in fgrep; do
  5568.     for ac_exec_ext in '' $ac_executable_extensions; do
  5569.       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  5570.       as_fn_executable_p "$ac_path_FGREP" || continue
  5571. # Check for GNU ac_path_FGREP and select it if it is found.
  5572.   # Check for GNU $ac_path_FGREP
  5573. case `"$ac_path_FGREP" --version 2>&1` in
  5574. *GNU*)
  5575.   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  5576. *)
  5577.   ac_count=0
  5578.   $as_echo_n 0123456789 >"conftest.in"
  5579.   while :
  5580.   do
  5581.     cat "conftest.in" "conftest.in" >"conftest.tmp"
  5582.     mv "conftest.tmp" "conftest.in"
  5583.     cp "conftest.in" "conftest.nl"
  5584.     $as_echo 'FGREP' >> "conftest.nl"
  5585.     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5586.     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5587.     as_fn_arith $ac_count + 1 && ac_count=$as_val
  5588.     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  5589.       # Best one so far, save it but keep looking for a better one
  5590.       ac_cv_path_FGREP="$ac_path_FGREP"
  5591.       ac_path_FGREP_max=$ac_count
  5592.     fi
  5593.     # 10*(2^10) chars as input seems more than enough
  5594.     test $ac_count -gt 10 && break
  5595.   done
  5596.   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5597. esac
  5598.  
  5599.       $ac_path_FGREP_found && break 3
  5600.     done
  5601.   done
  5602.   done
  5603. IFS=$as_save_IFS
  5604.   if test -z "$ac_cv_path_FGREP"; then
  5605.     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5606.   fi
  5607. else
  5608.   ac_cv_path_FGREP=$FGREP
  5609. fi
  5610.  
  5611.    fi
  5612. fi
  5613. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  5614. $as_echo "$ac_cv_path_FGREP" >&6; }
  5615.  FGREP="$ac_cv_path_FGREP"
  5616.  
  5617.  
  5618. test -z "$GREP" && GREP=grep
  5619.  
  5620.  
  5621.  
  5622.  
  5623.  
  5624.  
  5625.  
  5626.  
  5627.  
  5628.  
  5629.  
  5630.  
  5631.  
  5632.  
  5633.  
  5634.  
  5635.  
  5636.  
  5637.  
  5638. # Check whether --with-gnu-ld was given.
  5639. if test "${with_gnu_ld+set}" = set; then :
  5640.   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  5641. else
  5642.   with_gnu_ld=no
  5643. fi
  5644.  
  5645. ac_prog=ld
  5646. if test "$GCC" = yes; then
  5647.   # Check if gcc -print-prog-name=ld gives a path.
  5648.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  5649. $as_echo_n "checking for ld used by $CC... " >&6; }
  5650.   case $host in
  5651.   *-*-mingw*)
  5652.     # gcc leaves a trailing carriage return which upsets mingw
  5653.     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  5654.   *)
  5655.     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  5656.   esac
  5657.   case $ac_prog in
  5658.     # Accept absolute paths.
  5659.     [\\/]* | ?:[\\/]*)
  5660.       re_direlt='/[^/][^/]*/\.\./'
  5661.       # Canonicalize the pathname of ld
  5662.       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  5663.       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  5664.         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  5665.       done
  5666.       test -z "$LD" && LD="$ac_prog"
  5667.       ;;
  5668.   "")
  5669.     # If it fails, then pretend we aren't using GCC.
  5670.     ac_prog=ld
  5671.     ;;
  5672.   *)
  5673.     # If it is relative, then search for the first ld in PATH.
  5674.     with_gnu_ld=unknown
  5675.     ;;
  5676.   esac
  5677. elif test "$with_gnu_ld" = yes; then
  5678.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  5679. $as_echo_n "checking for GNU ld... " >&6; }
  5680. else
  5681.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  5682. $as_echo_n "checking for non-GNU ld... " >&6; }
  5683. fi
  5684. if ${lt_cv_path_LD+:} false; then :
  5685.   $as_echo_n "(cached) " >&6
  5686. else
  5687.   if test -z "$LD"; then
  5688.   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5689.   for ac_dir in $PATH; do
  5690.     IFS="$lt_save_ifs"
  5691.     test -z "$ac_dir" && ac_dir=.
  5692.     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  5693.       lt_cv_path_LD="$ac_dir/$ac_prog"
  5694.       # Check to see if the program is GNU ld.  I'd rather use --version,
  5695.       # but apparently some variants of GNU ld only accept -v.
  5696.       # Break only if it was the GNU/non-GNU ld that we prefer.
  5697.       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  5698.       *GNU* | *'with BFD'*)
  5699.         test "$with_gnu_ld" != no && break
  5700.         ;;
  5701.       *)
  5702.         test "$with_gnu_ld" != yes && break
  5703.         ;;
  5704.       esac
  5705.     fi
  5706.   done
  5707.   IFS="$lt_save_ifs"
  5708. else
  5709.   lt_cv_path_LD="$LD" # Let the user override the test with a path.
  5710. fi
  5711. fi
  5712.  
  5713. LD="$lt_cv_path_LD"
  5714. if test -n "$LD"; then
  5715.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  5716. $as_echo "$LD" >&6; }
  5717. else
  5718.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5719. $as_echo "no" >&6; }
  5720. fi
  5721. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  5722. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  5723. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  5724. if ${lt_cv_prog_gnu_ld+:} false; then :
  5725.   $as_echo_n "(cached) " >&6
  5726. else
  5727.   # I'd rather use --version here, but apparently some GNU lds only accept -v.
  5728. case `$LD -v 2>&1 </dev/null` in
  5729. *GNU* | *'with BFD'*)
  5730.   lt_cv_prog_gnu_ld=yes
  5731.   ;;
  5732. *)
  5733.   lt_cv_prog_gnu_ld=no
  5734.   ;;
  5735. esac
  5736. fi
  5737. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  5738. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  5739. with_gnu_ld=$lt_cv_prog_gnu_ld
  5740.  
  5741.  
  5742.  
  5743.  
  5744.  
  5745.  
  5746.  
  5747.  
  5748.  
  5749. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  5750. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  5751. if ${lt_cv_path_NM+:} false; then :
  5752.   $as_echo_n "(cached) " >&6
  5753. else
  5754.   if test -n "$NM"; then
  5755.   # Let the user override the test.
  5756.   lt_cv_path_NM="$NM"
  5757. else
  5758.   lt_nm_to_check="${ac_tool_prefix}nm"
  5759.   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  5760.     lt_nm_to_check="$lt_nm_to_check nm"
  5761.   fi
  5762.   for lt_tmp_nm in $lt_nm_to_check; do
  5763.     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5764.     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  5765.       IFS="$lt_save_ifs"
  5766.       test -z "$ac_dir" && ac_dir=.
  5767.       tmp_nm="$ac_dir/$lt_tmp_nm"
  5768.       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  5769.         # Check to see if the nm accepts a BSD-compat flag.
  5770.         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  5771.         #   nm: unknown option "B" ignored
  5772.         # Tru64's nm complains that /dev/null is an invalid object file
  5773.         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  5774.         */dev/null* | *'Invalid file or object type'*)
  5775.           lt_cv_path_NM="$tmp_nm -B"
  5776.           break
  5777.           ;;
  5778.         *)
  5779.           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  5780.           */dev/null*)
  5781.             lt_cv_path_NM="$tmp_nm -p"
  5782.             break
  5783.             ;;
  5784.           *)
  5785.             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  5786.             continue # so that we can try to find one that supports BSD flags
  5787.             ;;
  5788.           esac
  5789.           ;;
  5790.         esac
  5791.       fi
  5792.     done
  5793.     IFS="$lt_save_ifs"
  5794.   done
  5795.   : ${lt_cv_path_NM=no}
  5796. fi
  5797. fi
  5798. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  5799. $as_echo "$lt_cv_path_NM" >&6; }
  5800. if test "$lt_cv_path_NM" != "no"; then
  5801.   NM="$lt_cv_path_NM"
  5802. else
  5803.   # Didn't find any BSD compatible name lister, look for dumpbin.
  5804.   if test -n "$DUMPBIN"; then :
  5805.     # Let the user override the test.
  5806.   else
  5807.     if test -n "$ac_tool_prefix"; then
  5808.   for ac_prog in dumpbin "link -dump"
  5809.   do
  5810.     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5811. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5812. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5813. $as_echo_n "checking for $ac_word... " >&6; }
  5814. if ${ac_cv_prog_DUMPBIN+:} false; then :
  5815.   $as_echo_n "(cached) " >&6
  5816. else
  5817.   if test -n "$DUMPBIN"; then
  5818.   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  5819. else
  5820. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5821. for as_dir in $PATH
  5822. do
  5823.   IFS=$as_save_IFS
  5824.   test -z "$as_dir" && as_dir=.
  5825.     for ac_exec_ext in '' $ac_executable_extensions; do
  5826.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5827.     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  5828.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5829.     break 2
  5830.   fi
  5831. done
  5832.   done
  5833. IFS=$as_save_IFS
  5834.  
  5835. fi
  5836. fi
  5837. DUMPBIN=$ac_cv_prog_DUMPBIN
  5838. if test -n "$DUMPBIN"; then
  5839.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  5840. $as_echo "$DUMPBIN" >&6; }
  5841. else
  5842.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5843. $as_echo "no" >&6; }
  5844. fi
  5845.  
  5846.  
  5847.     test -n "$DUMPBIN" && break
  5848.   done
  5849. fi
  5850. if test -z "$DUMPBIN"; then
  5851.   ac_ct_DUMPBIN=$DUMPBIN
  5852.   for ac_prog in dumpbin "link -dump"
  5853. do
  5854.   # Extract the first word of "$ac_prog", so it can be a program name with args.
  5855. set dummy $ac_prog; ac_word=$2
  5856. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5857. $as_echo_n "checking for $ac_word... " >&6; }
  5858. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  5859.   $as_echo_n "(cached) " >&6
  5860. else
  5861.   if test -n "$ac_ct_DUMPBIN"; then
  5862.   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  5863. else
  5864. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5865. for as_dir in $PATH
  5866. do
  5867.   IFS=$as_save_IFS
  5868.   test -z "$as_dir" && as_dir=.
  5869.     for ac_exec_ext in '' $ac_executable_extensions; do
  5870.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5871.     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  5872.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5873.     break 2
  5874.   fi
  5875. done
  5876.   done
  5877. IFS=$as_save_IFS
  5878.  
  5879. fi
  5880. fi
  5881. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  5882. if test -n "$ac_ct_DUMPBIN"; then
  5883.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  5884. $as_echo "$ac_ct_DUMPBIN" >&6; }
  5885. else
  5886.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5887. $as_echo "no" >&6; }
  5888. fi
  5889.  
  5890.  
  5891.   test -n "$ac_ct_DUMPBIN" && break
  5892. done
  5893.  
  5894.   if test "x$ac_ct_DUMPBIN" = x; then
  5895.     DUMPBIN=":"
  5896.   else
  5897.     case $cross_compiling:$ac_tool_warned in
  5898. yes:)
  5899. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5900. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5901. ac_tool_warned=yes ;;
  5902. esac
  5903.     DUMPBIN=$ac_ct_DUMPBIN
  5904.   fi
  5905. fi
  5906.  
  5907.     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  5908.     *COFF*)
  5909.       DUMPBIN="$DUMPBIN -symbols"
  5910.       ;;
  5911.     *)
  5912.       DUMPBIN=:
  5913.       ;;
  5914.     esac
  5915.   fi
  5916.  
  5917.   if test "$DUMPBIN" != ":"; then
  5918.     NM="$DUMPBIN"
  5919.   fi
  5920. fi
  5921. test -z "$NM" && NM=nm
  5922.  
  5923.  
  5924.  
  5925.  
  5926.  
  5927.  
  5928. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  5929. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  5930. if ${lt_cv_nm_interface+:} false; then :
  5931.   $as_echo_n "(cached) " >&6
  5932. else
  5933.   lt_cv_nm_interface="BSD nm"
  5934.   echo "int some_variable = 0;" > conftest.$ac_ext
  5935.   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  5936.   (eval "$ac_compile" 2>conftest.err)
  5937.   cat conftest.err >&5
  5938.   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  5939.   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  5940.   cat conftest.err >&5
  5941.   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  5942.   cat conftest.out >&5
  5943.   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  5944.     lt_cv_nm_interface="MS dumpbin"
  5945.   fi
  5946.   rm -f conftest*
  5947. fi
  5948. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  5949. $as_echo "$lt_cv_nm_interface" >&6; }
  5950.  
  5951. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  5952. $as_echo_n "checking whether ln -s works... " >&6; }
  5953. LN_S=$as_ln_s
  5954. if test "$LN_S" = "ln -s"; then
  5955.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5956. $as_echo "yes" >&6; }
  5957. else
  5958.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  5959. $as_echo "no, using $LN_S" >&6; }
  5960. fi
  5961.  
  5962. # find the maximum length of command line arguments
  5963. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  5964. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  5965. if ${lt_cv_sys_max_cmd_len+:} false; then :
  5966.   $as_echo_n "(cached) " >&6
  5967. else
  5968.     i=0
  5969.   teststring="ABCD"
  5970.  
  5971.   case $build_os in
  5972.   msdosdjgpp*)
  5973.     # On DJGPP, this test can blow up pretty badly due to problems in libc
  5974.     # (any single argument exceeding 2000 bytes causes a buffer overrun
  5975.     # during glob expansion).  Even if it were fixed, the result of this
  5976.     # check would be larger than it should be.
  5977.     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
  5978.     ;;
  5979.  
  5980.   gnu*)
  5981.     # Under GNU Hurd, this test is not required because there is
  5982.     # no limit to the length of command line arguments.
  5983.     # Libtool will interpret -1 as no limit whatsoever
  5984.     lt_cv_sys_max_cmd_len=-1;
  5985.     ;;
  5986.  
  5987.   cygwin* | mingw* | cegcc*)
  5988.     # On Win9x/ME, this test blows up -- it succeeds, but takes
  5989.     # about 5 minutes as the teststring grows exponentially.
  5990.     # Worse, since 9x/ME are not pre-emptively multitasking,
  5991.     # you end up with a "frozen" computer, even though with patience
  5992.     # the test eventually succeeds (with a max line length of 256k).
  5993.     # Instead, let's just punt: use the minimum linelength reported by
  5994.     # all of the supported platforms: 8192 (on NT/2K/XP).
  5995.     lt_cv_sys_max_cmd_len=8192;
  5996.     ;;
  5997.  
  5998.   mint*)
  5999.     # On MiNT this can take a long time and run out of memory.
  6000.     lt_cv_sys_max_cmd_len=8192;
  6001.     ;;
  6002.  
  6003.   amigaos*)
  6004.     # On AmigaOS with pdksh, this test takes hours, literally.
  6005.     # So we just punt and use a minimum line length of 8192.
  6006.     lt_cv_sys_max_cmd_len=8192;
  6007.     ;;
  6008.  
  6009.   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  6010.     # This has been around since 386BSD, at least.  Likely further.
  6011.     if test -x /sbin/sysctl; then
  6012.       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  6013.     elif test -x /usr/sbin/sysctl; then
  6014.       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  6015.     else
  6016.       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
  6017.     fi
  6018.     # And add a safety zone
  6019.     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  6020.     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  6021.     ;;
  6022.  
  6023.   interix*)
  6024.     # We know the value 262144 and hardcode it with a safety zone (like BSD)
  6025.     lt_cv_sys_max_cmd_len=196608
  6026.     ;;
  6027.  
  6028.   os2*)
  6029.     # The test takes a long time on OS/2.
  6030.     lt_cv_sys_max_cmd_len=8192
  6031.     ;;
  6032.  
  6033.   osf*)
  6034.     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  6035.     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  6036.     # nice to cause kernel panics so lets avoid the loop below.
  6037.     # First set a reasonable default.
  6038.     lt_cv_sys_max_cmd_len=16384
  6039.     #
  6040.     if test -x /sbin/sysconfig; then
  6041.       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  6042.         *1*) lt_cv_sys_max_cmd_len=-1 ;;
  6043.       esac
  6044.     fi
  6045.     ;;
  6046.   sco3.2v5*)
  6047.     lt_cv_sys_max_cmd_len=102400
  6048.     ;;
  6049.   sysv5* | sco5v6* | sysv4.2uw2*)
  6050.     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  6051.     if test -n "$kargmax"; then
  6052.       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
  6053.     else
  6054.       lt_cv_sys_max_cmd_len=32768
  6055.     fi
  6056.     ;;
  6057.   *)
  6058.     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  6059.     if test -n "$lt_cv_sys_max_cmd_len"; then
  6060.       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  6061.       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  6062.     else
  6063.       # Make teststring a little bigger before we do anything with it.
  6064.       # a 1K string should be a reasonable start.
  6065.       for i in 1 2 3 4 5 6 7 8 ; do
  6066.         teststring=$teststring$teststring
  6067.       done
  6068.       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  6069.       # If test is not a shell built-in, we'll probably end up computing a
  6070.       # maximum length that is only half of the actual maximum length, but
  6071.       # we can't tell.
  6072.       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  6073.                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  6074.               test $i != 17 # 1/2 MB should be enough
  6075.       do
  6076.         i=`expr $i + 1`
  6077.         teststring=$teststring$teststring
  6078.       done
  6079.       # Only check the string length outside the loop.
  6080.       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  6081.       teststring=
  6082.       # Add a significant safety factor because C++ compilers can tack on
  6083.       # massive amounts of additional arguments before passing them to the
  6084.       # linker.  It appears as though 1/2 is a usable value.
  6085.       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  6086.     fi
  6087.     ;;
  6088.   esac
  6089.  
  6090. fi
  6091.  
  6092. if test -n $lt_cv_sys_max_cmd_len ; then
  6093.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  6094. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  6095. else
  6096.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  6097. $as_echo "none" >&6; }
  6098. fi
  6099. max_cmd_len=$lt_cv_sys_max_cmd_len
  6100.  
  6101.  
  6102.  
  6103.  
  6104.  
  6105.  
  6106. : ${CP="cp -f"}
  6107. : ${MV="mv -f"}
  6108. : ${RM="rm -f"}
  6109.  
  6110. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  6111. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  6112. # Try some XSI features
  6113. xsi_shell=no
  6114. ( _lt_dummy="a/b/c"
  6115.   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  6116.       = c,a/b,b/c, \
  6117.     && eval 'test $(( 1 + 1 )) -eq 2 \
  6118.     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  6119.   && xsi_shell=yes
  6120. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  6121. $as_echo "$xsi_shell" >&6; }
  6122.  
  6123.  
  6124. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  6125. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  6126. lt_shell_append=no
  6127. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  6128.     >/dev/null 2>&1 \
  6129.   && lt_shell_append=yes
  6130. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  6131. $as_echo "$lt_shell_append" >&6; }
  6132.  
  6133.  
  6134. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  6135.   lt_unset=unset
  6136. else
  6137.   lt_unset=false
  6138. fi
  6139.  
  6140.  
  6141.  
  6142.  
  6143.  
  6144. # test EBCDIC or ASCII
  6145. case `echo X|tr X '\101'` in
  6146.  A) # ASCII based system
  6147.     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  6148.   lt_SP2NL='tr \040 \012'
  6149.   lt_NL2SP='tr \015\012 \040\040'
  6150.   ;;
  6151.  *) # EBCDIC based system
  6152.   lt_SP2NL='tr \100 \n'
  6153.   lt_NL2SP='tr \r\n \100\100'
  6154.   ;;
  6155. esac
  6156.  
  6157.  
  6158.  
  6159.  
  6160.  
  6161.  
  6162.  
  6163.  
  6164.  
  6165. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  6166. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  6167. if ${lt_cv_to_host_file_cmd+:} false; then :
  6168.   $as_echo_n "(cached) " >&6
  6169. else
  6170.   case $host in
  6171.   *-*-mingw* )
  6172.     case $build in
  6173.       *-*-mingw* ) # actually msys
  6174.         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  6175.         ;;
  6176.       *-*-cygwin* )
  6177.         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  6178.         ;;
  6179.       * ) # otherwise, assume *nix
  6180.         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  6181.         ;;
  6182.     esac
  6183.     ;;
  6184.   *-*-cygwin* )
  6185.     case $build in
  6186.       *-*-mingw* ) # actually msys
  6187.         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  6188.         ;;
  6189.       *-*-cygwin* )
  6190.         lt_cv_to_host_file_cmd=func_convert_file_noop
  6191.         ;;
  6192.       * ) # otherwise, assume *nix
  6193.         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  6194.         ;;
  6195.     esac
  6196.     ;;
  6197.   * ) # unhandled hosts (and "normal" native builds)
  6198.     lt_cv_to_host_file_cmd=func_convert_file_noop
  6199.     ;;
  6200. esac
  6201.  
  6202. fi
  6203.  
  6204. to_host_file_cmd=$lt_cv_to_host_file_cmd
  6205. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  6206. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  6207.  
  6208.  
  6209.  
  6210.  
  6211.  
  6212. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  6213. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  6214. if ${lt_cv_to_tool_file_cmd+:} false; then :
  6215.   $as_echo_n "(cached) " >&6
  6216. else
  6217.   #assume ordinary cross tools, or native build.
  6218. lt_cv_to_tool_file_cmd=func_convert_file_noop
  6219. case $host in
  6220.   *-*-mingw* )
  6221.     case $build in
  6222.       *-*-mingw* ) # actually msys
  6223.         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  6224.         ;;
  6225.     esac
  6226.     ;;
  6227. esac
  6228.  
  6229. fi
  6230.  
  6231. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  6232. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  6233. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  6234.  
  6235.  
  6236.  
  6237.  
  6238.  
  6239. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  6240. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  6241. if ${lt_cv_ld_reload_flag+:} false; then :
  6242.   $as_echo_n "(cached) " >&6
  6243. else
  6244.   lt_cv_ld_reload_flag='-r'
  6245. fi
  6246. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  6247. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  6248. reload_flag=$lt_cv_ld_reload_flag
  6249. case $reload_flag in
  6250. "" | " "*) ;;
  6251. *) reload_flag=" $reload_flag" ;;
  6252. esac
  6253. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  6254. case $host_os in
  6255.   cygwin* | mingw* | pw32* | cegcc*)
  6256.     if test "$GCC" != yes; then
  6257.       reload_cmds=false
  6258.     fi
  6259.     ;;
  6260.   darwin*)
  6261.     if test "$GCC" = yes; then
  6262.       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  6263.     else
  6264.       reload_cmds='$LD$reload_flag -o $output$reload_objs'
  6265.     fi
  6266.     ;;
  6267. esac
  6268.  
  6269.  
  6270.  
  6271.  
  6272.  
  6273.  
  6274.  
  6275.  
  6276.  
  6277. if test -n "$ac_tool_prefix"; then
  6278.   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  6279. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  6280. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6281. $as_echo_n "checking for $ac_word... " >&6; }
  6282. if ${ac_cv_prog_OBJDUMP+:} false; then :
  6283.   $as_echo_n "(cached) " >&6
  6284. else
  6285.   if test -n "$OBJDUMP"; then
  6286.   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  6287. else
  6288. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6289. for as_dir in $PATH
  6290. do
  6291.   IFS=$as_save_IFS
  6292.   test -z "$as_dir" && as_dir=.
  6293.     for ac_exec_ext in '' $ac_executable_extensions; do
  6294.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6295.     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  6296.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6297.     break 2
  6298.   fi
  6299. done
  6300.   done
  6301. IFS=$as_save_IFS
  6302.  
  6303. fi
  6304. fi
  6305. OBJDUMP=$ac_cv_prog_OBJDUMP
  6306. if test -n "$OBJDUMP"; then
  6307.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  6308. $as_echo "$OBJDUMP" >&6; }
  6309. else
  6310.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6311. $as_echo "no" >&6; }
  6312. fi
  6313.  
  6314.  
  6315. fi
  6316. if test -z "$ac_cv_prog_OBJDUMP"; then
  6317.   ac_ct_OBJDUMP=$OBJDUMP
  6318.   # Extract the first word of "objdump", so it can be a program name with args.
  6319. set dummy objdump; ac_word=$2
  6320. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6321. $as_echo_n "checking for $ac_word... " >&6; }
  6322. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  6323.   $as_echo_n "(cached) " >&6
  6324. else
  6325.   if test -n "$ac_ct_OBJDUMP"; then
  6326.   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  6327. else
  6328. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6329. for as_dir in $PATH
  6330. do
  6331.   IFS=$as_save_IFS
  6332.   test -z "$as_dir" && as_dir=.
  6333.     for ac_exec_ext in '' $ac_executable_extensions; do
  6334.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6335.     ac_cv_prog_ac_ct_OBJDUMP="objdump"
  6336.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6337.     break 2
  6338.   fi
  6339. done
  6340.   done
  6341. IFS=$as_save_IFS
  6342.  
  6343. fi
  6344. fi
  6345. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  6346. if test -n "$ac_ct_OBJDUMP"; then
  6347.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  6348. $as_echo "$ac_ct_OBJDUMP" >&6; }
  6349. else
  6350.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6351. $as_echo "no" >&6; }
  6352. fi
  6353.  
  6354.   if test "x$ac_ct_OBJDUMP" = x; then
  6355.     OBJDUMP="false"
  6356.   else
  6357.     case $cross_compiling:$ac_tool_warned in
  6358. yes:)
  6359. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6360. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6361. ac_tool_warned=yes ;;
  6362. esac
  6363.     OBJDUMP=$ac_ct_OBJDUMP
  6364.   fi
  6365. else
  6366.   OBJDUMP="$ac_cv_prog_OBJDUMP"
  6367. fi
  6368.  
  6369. test -z "$OBJDUMP" && OBJDUMP=objdump
  6370.  
  6371.  
  6372.  
  6373.  
  6374.  
  6375.  
  6376. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  6377. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  6378. if ${lt_cv_deplibs_check_method+:} false; then :
  6379.   $as_echo_n "(cached) " >&6
  6380. else
  6381.   lt_cv_file_magic_cmd='$MAGIC_CMD'
  6382. lt_cv_file_magic_test_file=
  6383. lt_cv_deplibs_check_method='unknown'
  6384. # Need to set the preceding variable on all platforms that support
  6385. # interlibrary dependencies.
  6386. # 'none' -- dependencies not supported.
  6387. # `unknown' -- same as none, but documents that we really don't know.
  6388. # 'pass_all' -- all dependencies passed with no checks.
  6389. # 'test_compile' -- check by making test program.
  6390. # 'file_magic [[regex]]' -- check by looking for files in library path
  6391. # which responds to the $file_magic_cmd with a given extended regex.
  6392. # If you have `file' or equivalent on your system and you're not sure
  6393. # whether `pass_all' will *always* work, you probably want this one.
  6394.  
  6395. case $host_os in
  6396. aix[4-9]*)
  6397.   lt_cv_deplibs_check_method=pass_all
  6398.   ;;
  6399.  
  6400. beos*)
  6401.   lt_cv_deplibs_check_method=pass_all
  6402.   ;;
  6403.  
  6404. bsdi[45]*)
  6405.   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  6406.   lt_cv_file_magic_cmd='/usr/bin/file -L'
  6407.   lt_cv_file_magic_test_file=/shlib/libc.so
  6408.   ;;
  6409.  
  6410. cygwin*)
  6411.   # func_win32_libid is a shell function defined in ltmain.sh
  6412.   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  6413.   lt_cv_file_magic_cmd='func_win32_libid'
  6414.   ;;
  6415.  
  6416. mingw* | pw32*)
  6417.   # Base MSYS/MinGW do not provide the 'file' command needed by
  6418.   # func_win32_libid shell function, so use a weaker test based on 'objdump',
  6419.   # unless we find 'file', for example because we are cross-compiling.
  6420.   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  6421.   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  6422.     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  6423.     lt_cv_file_magic_cmd='func_win32_libid'
  6424.   else
  6425.     # Keep this pattern in sync with the one in func_win32_libid.
  6426.     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  6427.     lt_cv_file_magic_cmd='$OBJDUMP -f'
  6428.   fi
  6429.   ;;
  6430.  
  6431. cegcc*)
  6432.   # use the weaker test based on 'objdump'. See mingw*.
  6433.   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  6434.   lt_cv_file_magic_cmd='$OBJDUMP -f'
  6435.   ;;
  6436.  
  6437. darwin* | rhapsody*)
  6438.   lt_cv_deplibs_check_method=pass_all
  6439.   ;;
  6440.  
  6441. freebsd* | dragonfly*)
  6442.   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  6443.     case $host_cpu in
  6444.     i*86 )
  6445.       # Not sure whether the presence of OpenBSD here was a mistake.
  6446.       # Let's accept both of them until this is cleared up.
  6447.       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  6448.       lt_cv_file_magic_cmd=/usr/bin/file
  6449.       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  6450.       ;;
  6451.     esac
  6452.   else
  6453.     lt_cv_deplibs_check_method=pass_all
  6454.   fi
  6455.   ;;
  6456.  
  6457. gnu*)
  6458.   lt_cv_deplibs_check_method=pass_all
  6459.   ;;
  6460.  
  6461. haiku*)
  6462.   lt_cv_deplibs_check_method=pass_all
  6463.   ;;
  6464.  
  6465. hpux10.20* | hpux11*)
  6466.   lt_cv_file_magic_cmd=/usr/bin/file
  6467.   case $host_cpu in
  6468.   ia64*)
  6469.     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  6470.     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  6471.     ;;
  6472.   hppa*64*)
  6473.     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
  6474.     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  6475.     ;;
  6476.   *)
  6477.     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  6478.     lt_cv_file_magic_test_file=/usr/lib/libc.sl
  6479.     ;;
  6480.   esac
  6481.   ;;
  6482.  
  6483. interix[3-9]*)
  6484.   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  6485.   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  6486.   ;;
  6487.  
  6488. irix5* | irix6* | nonstopux*)
  6489.   case $LD in
  6490.   *-32|*"-32 ") libmagic=32-bit;;
  6491.   *-n32|*"-n32 ") libmagic=N32;;
  6492.   *-64|*"-64 ") libmagic=64-bit;;
  6493.   *) libmagic=never-match;;
  6494.   esac
  6495.   lt_cv_deplibs_check_method=pass_all
  6496.   ;;
  6497.  
  6498. # This must be glibc/ELF.
  6499. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  6500.   lt_cv_deplibs_check_method=pass_all
  6501.   ;;
  6502.  
  6503. netbsd*)
  6504.   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  6505.     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  6506.   else
  6507.     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  6508.   fi
  6509.   ;;
  6510.  
  6511. newos6*)
  6512.   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  6513.   lt_cv_file_magic_cmd=/usr/bin/file
  6514.   lt_cv_file_magic_test_file=/usr/lib/libnls.so
  6515.   ;;
  6516.  
  6517. *nto* | *qnx*)
  6518.   lt_cv_deplibs_check_method=pass_all
  6519.   ;;
  6520.  
  6521. openbsd*)
  6522.   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  6523.     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  6524.   else
  6525.     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  6526.   fi
  6527.   ;;
  6528.  
  6529. osf3* | osf4* | osf5*)
  6530.   lt_cv_deplibs_check_method=pass_all
  6531.   ;;
  6532.  
  6533. rdos*)
  6534.   lt_cv_deplibs_check_method=pass_all
  6535.   ;;
  6536.  
  6537. solaris*)
  6538.   lt_cv_deplibs_check_method=pass_all
  6539.   ;;
  6540.  
  6541. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  6542.   lt_cv_deplibs_check_method=pass_all
  6543.   ;;
  6544.  
  6545. sysv4 | sysv4.3*)
  6546.   case $host_vendor in
  6547.   motorola)
  6548.     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
  6549.     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  6550.     ;;
  6551.   ncr)
  6552.     lt_cv_deplibs_check_method=pass_all
  6553.     ;;
  6554.   sequent)
  6555.     lt_cv_file_magic_cmd='/bin/file'
  6556.     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  6557.     ;;
  6558.   sni)
  6559.     lt_cv_file_magic_cmd='/bin/file'
  6560.     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  6561.     lt_cv_file_magic_test_file=/lib/libc.so
  6562.     ;;
  6563.   siemens)
  6564.     lt_cv_deplibs_check_method=pass_all
  6565.     ;;
  6566.   pc)
  6567.     lt_cv_deplibs_check_method=pass_all
  6568.     ;;
  6569.   esac
  6570.   ;;
  6571.  
  6572. tpf*)
  6573.   lt_cv_deplibs_check_method=pass_all
  6574.   ;;
  6575. esac
  6576.  
  6577. fi
  6578. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  6579. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  6580.  
  6581. file_magic_glob=
  6582. want_nocaseglob=no
  6583. if test "$build" = "$host"; then
  6584.   case $host_os in
  6585.   mingw* | pw32*)
  6586.     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  6587.       want_nocaseglob=yes
  6588.     else
  6589.       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  6590.     fi
  6591.     ;;
  6592.   esac
  6593. fi
  6594.  
  6595. file_magic_cmd=$lt_cv_file_magic_cmd
  6596. deplibs_check_method=$lt_cv_deplibs_check_method
  6597. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  6598.  
  6599.  
  6600.  
  6601.  
  6602.  
  6603.  
  6604.  
  6605.  
  6606.  
  6607.  
  6608.  
  6609.  
  6610.  
  6611.  
  6612.  
  6613.  
  6614.  
  6615.  
  6616.  
  6617.  
  6618.  
  6619.  
  6620. if test -n "$ac_tool_prefix"; then
  6621.   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  6622. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  6623. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6624. $as_echo_n "checking for $ac_word... " >&6; }
  6625. if ${ac_cv_prog_DLLTOOL+:} false; then :
  6626.   $as_echo_n "(cached) " >&6
  6627. else
  6628.   if test -n "$DLLTOOL"; then
  6629.   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  6630. else
  6631. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6632. for as_dir in $PATH
  6633. do
  6634.   IFS=$as_save_IFS
  6635.   test -z "$as_dir" && as_dir=.
  6636.     for ac_exec_ext in '' $ac_executable_extensions; do
  6637.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6638.     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  6639.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6640.     break 2
  6641.   fi
  6642. done
  6643.   done
  6644. IFS=$as_save_IFS
  6645.  
  6646. fi
  6647. fi
  6648. DLLTOOL=$ac_cv_prog_DLLTOOL
  6649. if test -n "$DLLTOOL"; then
  6650.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  6651. $as_echo "$DLLTOOL" >&6; }
  6652. else
  6653.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6654. $as_echo "no" >&6; }
  6655. fi
  6656.  
  6657.  
  6658. fi
  6659. if test -z "$ac_cv_prog_DLLTOOL"; then
  6660.   ac_ct_DLLTOOL=$DLLTOOL
  6661.   # Extract the first word of "dlltool", so it can be a program name with args.
  6662. set dummy dlltool; ac_word=$2
  6663. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6664. $as_echo_n "checking for $ac_word... " >&6; }
  6665. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  6666.   $as_echo_n "(cached) " >&6
  6667. else
  6668.   if test -n "$ac_ct_DLLTOOL"; then
  6669.   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  6670. else
  6671. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6672. for as_dir in $PATH
  6673. do
  6674.   IFS=$as_save_IFS
  6675.   test -z "$as_dir" && as_dir=.
  6676.     for ac_exec_ext in '' $ac_executable_extensions; do
  6677.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6678.     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  6679.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6680.     break 2
  6681.   fi
  6682. done
  6683.   done
  6684. IFS=$as_save_IFS
  6685.  
  6686. fi
  6687. fi
  6688. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  6689. if test -n "$ac_ct_DLLTOOL"; then
  6690.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  6691. $as_echo "$ac_ct_DLLTOOL" >&6; }
  6692. else
  6693.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6694. $as_echo "no" >&6; }
  6695. fi
  6696.  
  6697.   if test "x$ac_ct_DLLTOOL" = x; then
  6698.     DLLTOOL="false"
  6699.   else
  6700.     case $cross_compiling:$ac_tool_warned in
  6701. yes:)
  6702. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6703. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6704. ac_tool_warned=yes ;;
  6705. esac
  6706.     DLLTOOL=$ac_ct_DLLTOOL
  6707.   fi
  6708. else
  6709.   DLLTOOL="$ac_cv_prog_DLLTOOL"
  6710. fi
  6711.  
  6712. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6713.  
  6714.  
  6715.  
  6716.  
  6717.  
  6718.  
  6719.  
  6720. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  6721. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  6722. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  6723.   $as_echo_n "(cached) " >&6
  6724. else
  6725.   lt_cv_sharedlib_from_linklib_cmd='unknown'
  6726.  
  6727. case $host_os in
  6728. cygwin* | mingw* | pw32* | cegcc*)
  6729.   # two different shell functions defined in ltmain.sh
  6730.   # decide which to use based on capabilities of $DLLTOOL
  6731.   case `$DLLTOOL --help 2>&1` in
  6732.   *--identify-strict*)
  6733.     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  6734.     ;;
  6735.   *)
  6736.     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  6737.     ;;
  6738.   esac
  6739.   ;;
  6740. *)
  6741.   # fallback: assume linklib IS sharedlib
  6742.   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  6743.   ;;
  6744. esac
  6745.  
  6746. fi
  6747. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  6748. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  6749. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  6750. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  6751.  
  6752.  
  6753.  
  6754.  
  6755.  
  6756.  
  6757.  
  6758. if test -n "$ac_tool_prefix"; then
  6759.   for ac_prog in ar
  6760.   do
  6761.     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  6762. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  6763. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6764. $as_echo_n "checking for $ac_word... " >&6; }
  6765. if ${ac_cv_prog_AR+:} false; then :
  6766.   $as_echo_n "(cached) " >&6
  6767. else
  6768.   if test -n "$AR"; then
  6769.   ac_cv_prog_AR="$AR" # Let the user override the test.
  6770. else
  6771. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6772. for as_dir in $PATH
  6773. do
  6774.   IFS=$as_save_IFS
  6775.   test -z "$as_dir" && as_dir=.
  6776.     for ac_exec_ext in '' $ac_executable_extensions; do
  6777.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6778.     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  6779.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6780.     break 2
  6781.   fi
  6782. done
  6783.   done
  6784. IFS=$as_save_IFS
  6785.  
  6786. fi
  6787. fi
  6788. AR=$ac_cv_prog_AR
  6789. if test -n "$AR"; then
  6790.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  6791. $as_echo "$AR" >&6; }
  6792. else
  6793.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6794. $as_echo "no" >&6; }
  6795. fi
  6796.  
  6797.  
  6798.     test -n "$AR" && break
  6799.   done
  6800. fi
  6801. if test -z "$AR"; then
  6802.   ac_ct_AR=$AR
  6803.   for ac_prog in ar
  6804. do
  6805.   # Extract the first word of "$ac_prog", so it can be a program name with args.
  6806. set dummy $ac_prog; ac_word=$2
  6807. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6808. $as_echo_n "checking for $ac_word... " >&6; }
  6809. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  6810.   $as_echo_n "(cached) " >&6
  6811. else
  6812.   if test -n "$ac_ct_AR"; then
  6813.   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  6814. else
  6815. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6816. for as_dir in $PATH
  6817. do
  6818.   IFS=$as_save_IFS
  6819.   test -z "$as_dir" && as_dir=.
  6820.     for ac_exec_ext in '' $ac_executable_extensions; do
  6821.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6822.     ac_cv_prog_ac_ct_AR="$ac_prog"
  6823.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6824.     break 2
  6825.   fi
  6826. done
  6827.   done
  6828. IFS=$as_save_IFS
  6829.  
  6830. fi
  6831. fi
  6832. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  6833. if test -n "$ac_ct_AR"; then
  6834.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  6835. $as_echo "$ac_ct_AR" >&6; }
  6836. else
  6837.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6838. $as_echo "no" >&6; }
  6839. fi
  6840.  
  6841.  
  6842.   test -n "$ac_ct_AR" && break
  6843. done
  6844.  
  6845.   if test "x$ac_ct_AR" = x; then
  6846.     AR="false"
  6847.   else
  6848.     case $cross_compiling:$ac_tool_warned in
  6849. yes:)
  6850. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6851. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6852. ac_tool_warned=yes ;;
  6853. esac
  6854.     AR=$ac_ct_AR
  6855.   fi
  6856. fi
  6857.  
  6858. : ${AR=ar}
  6859. : ${AR_FLAGS=cru}
  6860.  
  6861.  
  6862.  
  6863.  
  6864.  
  6865.  
  6866.  
  6867.  
  6868.  
  6869.  
  6870.  
  6871. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  6872. $as_echo_n "checking for archiver @FILE support... " >&6; }
  6873. if ${lt_cv_ar_at_file+:} false; then :
  6874.   $as_echo_n "(cached) " >&6
  6875. else
  6876.   lt_cv_ar_at_file=no
  6877.    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6878. /* end confdefs.h.  */
  6879.  
  6880. int
  6881. main ()
  6882. {
  6883.  
  6884.   ;
  6885.   return 0;
  6886. }
  6887. _ACEOF
  6888. if ac_fn_c_try_compile "$LINENO"; then :
  6889.   echo conftest.$ac_objext > conftest.lst
  6890.       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  6891.       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  6892.   (eval $lt_ar_try) 2>&5
  6893.   ac_status=$?
  6894.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6895.   test $ac_status = 0; }
  6896.       if test "$ac_status" -eq 0; then
  6897.         # Ensure the archiver fails upon bogus file names.
  6898.         rm -f conftest.$ac_objext libconftest.a
  6899.         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  6900.   (eval $lt_ar_try) 2>&5
  6901.   ac_status=$?
  6902.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6903.   test $ac_status = 0; }
  6904.         if test "$ac_status" -ne 0; then
  6905.           lt_cv_ar_at_file=@
  6906.         fi
  6907.       fi
  6908.       rm -f conftest.* libconftest.a
  6909.  
  6910. fi
  6911. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6912.  
  6913. fi
  6914. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  6915. $as_echo "$lt_cv_ar_at_file" >&6; }
  6916.  
  6917. if test "x$lt_cv_ar_at_file" = xno; then
  6918.   archiver_list_spec=
  6919. else
  6920.   archiver_list_spec=$lt_cv_ar_at_file
  6921. fi
  6922.  
  6923.  
  6924.  
  6925.  
  6926.  
  6927.  
  6928.  
  6929. if test -n "$ac_tool_prefix"; then
  6930.   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  6931. set dummy ${ac_tool_prefix}strip; ac_word=$2
  6932. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6933. $as_echo_n "checking for $ac_word... " >&6; }
  6934. if ${ac_cv_prog_STRIP+:} false; then :
  6935.   $as_echo_n "(cached) " >&6
  6936. else
  6937.   if test -n "$STRIP"; then
  6938.   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  6939. else
  6940. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6941. for as_dir in $PATH
  6942. do
  6943.   IFS=$as_save_IFS
  6944.   test -z "$as_dir" && as_dir=.
  6945.     for ac_exec_ext in '' $ac_executable_extensions; do
  6946.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6947.     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  6948.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6949.     break 2
  6950.   fi
  6951. done
  6952.   done
  6953. IFS=$as_save_IFS
  6954.  
  6955. fi
  6956. fi
  6957. STRIP=$ac_cv_prog_STRIP
  6958. if test -n "$STRIP"; then
  6959.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  6960. $as_echo "$STRIP" >&6; }
  6961. else
  6962.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6963. $as_echo "no" >&6; }
  6964. fi
  6965.  
  6966.  
  6967. fi
  6968. if test -z "$ac_cv_prog_STRIP"; then
  6969.   ac_ct_STRIP=$STRIP
  6970.   # Extract the first word of "strip", so it can be a program name with args.
  6971. set dummy strip; ac_word=$2
  6972. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6973. $as_echo_n "checking for $ac_word... " >&6; }
  6974. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  6975.   $as_echo_n "(cached) " >&6
  6976. else
  6977.   if test -n "$ac_ct_STRIP"; then
  6978.   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  6979. else
  6980. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6981. for as_dir in $PATH
  6982. do
  6983.   IFS=$as_save_IFS
  6984.   test -z "$as_dir" && as_dir=.
  6985.     for ac_exec_ext in '' $ac_executable_extensions; do
  6986.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6987.     ac_cv_prog_ac_ct_STRIP="strip"
  6988.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6989.     break 2
  6990.   fi
  6991. done
  6992.   done
  6993. IFS=$as_save_IFS
  6994.  
  6995. fi
  6996. fi
  6997. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  6998. if test -n "$ac_ct_STRIP"; then
  6999.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  7000. $as_echo "$ac_ct_STRIP" >&6; }
  7001. else
  7002.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7003. $as_echo "no" >&6; }
  7004. fi
  7005.  
  7006.   if test "x$ac_ct_STRIP" = x; then
  7007.     STRIP=":"
  7008.   else
  7009.     case $cross_compiling:$ac_tool_warned in
  7010. yes:)
  7011. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7012. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7013. ac_tool_warned=yes ;;
  7014. esac
  7015.     STRIP=$ac_ct_STRIP
  7016.   fi
  7017. else
  7018.   STRIP="$ac_cv_prog_STRIP"
  7019. fi
  7020.  
  7021. test -z "$STRIP" && STRIP=:
  7022.  
  7023.  
  7024.  
  7025.  
  7026.  
  7027.  
  7028. if test -n "$ac_tool_prefix"; then
  7029.   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  7030. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  7031. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7032. $as_echo_n "checking for $ac_word... " >&6; }
  7033. if ${ac_cv_prog_RANLIB+:} false; then :
  7034.   $as_echo_n "(cached) " >&6
  7035. else
  7036.   if test -n "$RANLIB"; then
  7037.   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  7038. else
  7039. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7040. for as_dir in $PATH
  7041. do
  7042.   IFS=$as_save_IFS
  7043.   test -z "$as_dir" && as_dir=.
  7044.     for ac_exec_ext in '' $ac_executable_extensions; do
  7045.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7046.     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  7047.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7048.     break 2
  7049.   fi
  7050. done
  7051.   done
  7052. IFS=$as_save_IFS
  7053.  
  7054. fi
  7055. fi
  7056. RANLIB=$ac_cv_prog_RANLIB
  7057. if test -n "$RANLIB"; then
  7058.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  7059. $as_echo "$RANLIB" >&6; }
  7060. else
  7061.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7062. $as_echo "no" >&6; }
  7063. fi
  7064.  
  7065.  
  7066. fi
  7067. if test -z "$ac_cv_prog_RANLIB"; then
  7068.   ac_ct_RANLIB=$RANLIB
  7069.   # Extract the first word of "ranlib", so it can be a program name with args.
  7070. set dummy ranlib; ac_word=$2
  7071. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7072. $as_echo_n "checking for $ac_word... " >&6; }
  7073. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  7074.   $as_echo_n "(cached) " >&6
  7075. else
  7076.   if test -n "$ac_ct_RANLIB"; then
  7077.   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  7078. else
  7079. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7080. for as_dir in $PATH
  7081. do
  7082.   IFS=$as_save_IFS
  7083.   test -z "$as_dir" && as_dir=.
  7084.     for ac_exec_ext in '' $ac_executable_extensions; do
  7085.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7086.     ac_cv_prog_ac_ct_RANLIB="ranlib"
  7087.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7088.     break 2
  7089.   fi
  7090. done
  7091.   done
  7092. IFS=$as_save_IFS
  7093.  
  7094. fi
  7095. fi
  7096. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  7097. if test -n "$ac_ct_RANLIB"; then
  7098.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  7099. $as_echo "$ac_ct_RANLIB" >&6; }
  7100. else
  7101.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7102. $as_echo "no" >&6; }
  7103. fi
  7104.  
  7105.   if test "x$ac_ct_RANLIB" = x; then
  7106.     RANLIB=":"
  7107.   else
  7108.     case $cross_compiling:$ac_tool_warned in
  7109. yes:)
  7110. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7111. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7112. ac_tool_warned=yes ;;
  7113. esac
  7114.     RANLIB=$ac_ct_RANLIB
  7115.   fi
  7116. else
  7117.   RANLIB="$ac_cv_prog_RANLIB"
  7118. fi
  7119.  
  7120. test -z "$RANLIB" && RANLIB=:
  7121.  
  7122.  
  7123.  
  7124.  
  7125.  
  7126.  
  7127. # Determine commands to create old-style static archives.
  7128. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  7129. old_postinstall_cmds='chmod 644 $oldlib'
  7130. old_postuninstall_cmds=
  7131.  
  7132. if test -n "$RANLIB"; then
  7133.   case $host_os in
  7134.   openbsd*)
  7135.     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  7136.     ;;
  7137.   *)
  7138.     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  7139.     ;;
  7140.   esac
  7141.   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  7142. fi
  7143.  
  7144. case $host_os in
  7145.   darwin*)
  7146.     lock_old_archive_extraction=yes ;;
  7147.   *)
  7148.     lock_old_archive_extraction=no ;;
  7149. esac
  7150.  
  7151.  
  7152.  
  7153.  
  7154.  
  7155.  
  7156.  
  7157.  
  7158.  
  7159.  
  7160.  
  7161.  
  7162.  
  7163.  
  7164.  
  7165.  
  7166.  
  7167.  
  7168.  
  7169.  
  7170.  
  7171. for ac_prog in gawk mawk nawk awk
  7172. do
  7173.   # Extract the first word of "$ac_prog", so it can be a program name with args.
  7174. set dummy $ac_prog; ac_word=$2
  7175. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7176. $as_echo_n "checking for $ac_word... " >&6; }
  7177. if ${ac_cv_prog_AWK+:} false; then :
  7178.   $as_echo_n "(cached) " >&6
  7179. else
  7180.   if test -n "$AWK"; then
  7181.   ac_cv_prog_AWK="$AWK" # Let the user override the test.
  7182. else
  7183. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7184. for as_dir in $PATH
  7185. do
  7186.   IFS=$as_save_IFS
  7187.   test -z "$as_dir" && as_dir=.
  7188.     for ac_exec_ext in '' $ac_executable_extensions; do
  7189.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7190.     ac_cv_prog_AWK="$ac_prog"
  7191.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7192.     break 2
  7193.   fi
  7194. done
  7195.   done
  7196. IFS=$as_save_IFS
  7197.  
  7198. fi
  7199. fi
  7200. AWK=$ac_cv_prog_AWK
  7201. if test -n "$AWK"; then
  7202.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  7203. $as_echo "$AWK" >&6; }
  7204. else
  7205.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7206. $as_echo "no" >&6; }
  7207. fi
  7208.  
  7209.  
  7210.   test -n "$AWK" && break
  7211. done
  7212.  
  7213.  
  7214.  
  7215.  
  7216.  
  7217.  
  7218.  
  7219.  
  7220.  
  7221.  
  7222.  
  7223.  
  7224.  
  7225.  
  7226.  
  7227.  
  7228.  
  7229.  
  7230.  
  7231. # If no C compiler was specified, use CC.
  7232. LTCC=${LTCC-"$CC"}
  7233.  
  7234. # If no C compiler flags were specified, use CFLAGS.
  7235. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7236.  
  7237. # Allow CC to be a program name with arguments.
  7238. compiler=$CC
  7239.  
  7240.  
  7241. # Check for command to grab the raw symbol name followed by C symbol from nm.
  7242. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  7243. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  7244. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  7245.   $as_echo_n "(cached) " >&6
  7246. else
  7247.  
  7248. # These are sane defaults that work on at least a few old systems.
  7249. # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
  7250.  
  7251. # Character class describing NM global symbol codes.
  7252. symcode='[BCDEGRST]'
  7253.  
  7254. # Regexp to match symbols that can be accessed directly from C.
  7255. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  7256.  
  7257. # Define system-specific variables.
  7258. case $host_os in
  7259. aix*)
  7260.   symcode='[BCDT]'
  7261.   ;;
  7262. cygwin* | mingw* | pw32* | cegcc*)
  7263.   symcode='[ABCDGISTW]'
  7264.   ;;
  7265. hpux*)
  7266.   if test "$host_cpu" = ia64; then
  7267.     symcode='[ABCDEGRST]'
  7268.   fi
  7269.   ;;
  7270. irix* | nonstopux*)
  7271.   symcode='[BCDEGRST]'
  7272.   ;;
  7273. osf*)
  7274.   symcode='[BCDEGQRST]'
  7275.   ;;
  7276. solaris*)
  7277.   symcode='[BDRT]'
  7278.   ;;
  7279. sco3.2v5*)
  7280.   symcode='[DT]'
  7281.   ;;
  7282. sysv4.2uw2*)
  7283.   symcode='[DT]'
  7284.   ;;
  7285. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  7286.   symcode='[ABDT]'
  7287.   ;;
  7288. sysv4)
  7289.   symcode='[DFNSTU]'
  7290.   ;;
  7291. esac
  7292.  
  7293. # If we're using GNU nm, then use its standard symbol codes.
  7294. case `$NM -V 2>&1` in
  7295. *GNU* | *'with BFD'*)
  7296.   symcode='[ABCDGIRSTW]' ;;
  7297. esac
  7298.  
  7299. # Transform an extracted symbol line into a proper C declaration.
  7300. # Some systems (esp. on ia64) link data and code symbols differently,
  7301. # so use this general approach.
  7302. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  7303.  
  7304. # Transform an extracted symbol line into symbol name and symbol address
  7305. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
  7306. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
  7307.  
  7308. # Handle CRLF in mingw tool chain
  7309. opt_cr=
  7310. case $build_os in
  7311. mingw*)
  7312.   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  7313.   ;;
  7314. esac
  7315.  
  7316. # Try without a prefix underscore, then with it.
  7317. for ac_symprfx in "" "_"; do
  7318.  
  7319.   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  7320.   symxfrm="\\1 $ac_symprfx\\2 \\2"
  7321.  
  7322.   # Write the raw and C identifiers.
  7323.   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  7324.     # Fake it for dumpbin and say T for any non-static function
  7325.     # and D for any global variable.
  7326.     # Also find C++ and __fastcall symbols from MSVC++,
  7327.     # which start with @ or ?.
  7328.     lt_cv_sys_global_symbol_pipe="$AWK '"\
  7329. "     {last_section=section; section=\$ 3};"\
  7330. "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  7331. "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  7332. "     \$ 0!~/External *\|/{next};"\
  7333. "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  7334. "     {if(hide[section]) next};"\
  7335. "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  7336. "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  7337. "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
  7338. "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  7339. "     ' prfx=^$ac_symprfx"
  7340.   else
  7341.     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  7342.   fi
  7343.   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  7344.  
  7345.   # Check to see that the pipe works correctly.
  7346.   pipe_works=no
  7347.  
  7348.   rm -f conftest*
  7349.   cat > conftest.$ac_ext <<_LT_EOF
  7350. #ifdef __cplusplus
  7351. extern "C" {
  7352. #endif
  7353. char nm_test_var;
  7354. void nm_test_func(void);
  7355. void nm_test_func(void){}
  7356. #ifdef __cplusplus
  7357. }
  7358. #endif
  7359. int main(){nm_test_var='a';nm_test_func();return(0);}
  7360. _LT_EOF
  7361.  
  7362.   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7363.   (eval $ac_compile) 2>&5
  7364.   ac_status=$?
  7365.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7366.   test $ac_status = 0; }; then
  7367.     # Now try to grab the symbols.
  7368.     nlist=conftest.nm
  7369.     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  7370.   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  7371.   ac_status=$?
  7372.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7373.   test $ac_status = 0; } && test -s "$nlist"; then
  7374.       # Try sorting and uniquifying the output.
  7375.       if sort "$nlist" | uniq > "$nlist"T; then
  7376.         mv -f "$nlist"T "$nlist"
  7377.       else
  7378.         rm -f "$nlist"T
  7379.       fi
  7380.  
  7381.       # Make sure that we snagged all the symbols we need.
  7382.       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  7383.         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  7384.           cat <<_LT_EOF > conftest.$ac_ext
  7385. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
  7386. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  7387. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  7388.    relocations are performed -- see ld's documentation on pseudo-relocs.  */
  7389. # define LT_DLSYM_CONST
  7390. #elif defined(__osf__)
  7391. /* This system does not cope well with relocations in const data.  */
  7392. # define LT_DLSYM_CONST
  7393. #else
  7394. # define LT_DLSYM_CONST const
  7395. #endif
  7396.  
  7397. #ifdef __cplusplus
  7398. extern "C" {
  7399. #endif
  7400.  
  7401. _LT_EOF
  7402.           # Now generate the symbol file.
  7403.           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  7404.  
  7405.           cat <<_LT_EOF >> conftest.$ac_ext
  7406.  
  7407. /* The mapping between symbol names and symbols.  */
  7408. LT_DLSYM_CONST struct {
  7409.   const char *name;
  7410.   void       *address;
  7411. }
  7412. lt__PROGRAM__LTX_preloaded_symbols[] =
  7413. {
  7414.   { "@PROGRAM@", (void *) 0 },
  7415. _LT_EOF
  7416.           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  7417.           cat <<\_LT_EOF >> conftest.$ac_ext
  7418.   {0, (void *) 0}
  7419. };
  7420.  
  7421. /* This works around a problem in FreeBSD linker */
  7422. #ifdef FREEBSD_WORKAROUND
  7423. static const void *lt_preloaded_setup() {
  7424.   return lt__PROGRAM__LTX_preloaded_symbols;
  7425. }
  7426. #endif
  7427.  
  7428. #ifdef __cplusplus
  7429. }
  7430. #endif
  7431. _LT_EOF
  7432.           # Now try linking the two files.
  7433.           mv conftest.$ac_objext conftstm.$ac_objext
  7434.           lt_globsym_save_LIBS=$LIBS
  7435.           lt_globsym_save_CFLAGS=$CFLAGS
  7436.           LIBS="conftstm.$ac_objext"
  7437.           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  7438.           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  7439.   (eval $ac_link) 2>&5
  7440.   ac_status=$?
  7441.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7442.   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  7443.             pipe_works=yes
  7444.           fi
  7445.           LIBS=$lt_globsym_save_LIBS
  7446.           CFLAGS=$lt_globsym_save_CFLAGS
  7447.         else
  7448.           echo "cannot find nm_test_func in $nlist" >&5
  7449.         fi
  7450.       else
  7451.         echo "cannot find nm_test_var in $nlist" >&5
  7452.       fi
  7453.     else
  7454.       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  7455.     fi
  7456.   else
  7457.     echo "$progname: failed program was:" >&5
  7458.     cat conftest.$ac_ext >&5
  7459.   fi
  7460.   rm -rf conftest* conftst*
  7461.  
  7462.   # Do not use the global_symbol_pipe unless it works.
  7463.   if test "$pipe_works" = yes; then
  7464.     break
  7465.   else
  7466.     lt_cv_sys_global_symbol_pipe=
  7467.   fi
  7468. done
  7469.  
  7470. fi
  7471.  
  7472. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  7473.   lt_cv_sys_global_symbol_to_cdecl=
  7474. fi
  7475. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  7476.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  7477. $as_echo "failed" >&6; }
  7478. else
  7479.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  7480. $as_echo "ok" >&6; }
  7481. fi
  7482.  
  7483. # Response file support.
  7484. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  7485.   nm_file_list_spec='@'
  7486. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  7487.   nm_file_list_spec='@'
  7488. fi
  7489.  
  7490.  
  7491.  
  7492.  
  7493.  
  7494.  
  7495.  
  7496.  
  7497.  
  7498.  
  7499.  
  7500.  
  7501.  
  7502.  
  7503.  
  7504.  
  7505.  
  7506.  
  7507.  
  7508.  
  7509.  
  7510.  
  7511.  
  7512.  
  7513.  
  7514.  
  7515.  
  7516. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  7517. $as_echo_n "checking for sysroot... " >&6; }
  7518.  
  7519. # Check whether --with-sysroot was given.
  7520. if test "${with_sysroot+set}" = set; then :
  7521.   withval=$with_sysroot;
  7522. else
  7523.   with_sysroot=no
  7524. fi
  7525.  
  7526.  
  7527. lt_sysroot=
  7528. case ${with_sysroot} in #(
  7529.  yes)
  7530.    if test "$GCC" = yes; then
  7531.      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  7532.    fi
  7533.    ;; #(
  7534.  /*)
  7535.    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  7536.    ;; #(
  7537.  no|'')
  7538.    ;; #(
  7539.  *)
  7540.    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  7541. $as_echo "${with_sysroot}" >&6; }
  7542.    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  7543.    ;;
  7544. esac
  7545.  
  7546.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  7547. $as_echo "${lt_sysroot:-no}" >&6; }
  7548.  
  7549.  
  7550.  
  7551.  
  7552.  
  7553. # Check whether --enable-libtool-lock was given.
  7554. if test "${enable_libtool_lock+set}" = set; then :
  7555.   enableval=$enable_libtool_lock;
  7556. fi
  7557.  
  7558. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  7559.  
  7560. # Some flags need to be propagated to the compiler or linker for good
  7561. # libtool support.
  7562. case $host in
  7563. ia64-*-hpux*)
  7564.   # Find out which ABI we are using.
  7565.   echo 'int i;' > conftest.$ac_ext
  7566.   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7567.   (eval $ac_compile) 2>&5
  7568.   ac_status=$?
  7569.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7570.   test $ac_status = 0; }; then
  7571.     case `/usr/bin/file conftest.$ac_objext` in
  7572.       *ELF-32*)
  7573.         HPUX_IA64_MODE="32"
  7574.         ;;
  7575.       *ELF-64*)
  7576.         HPUX_IA64_MODE="64"
  7577.         ;;
  7578.     esac
  7579.   fi
  7580.   rm -rf conftest*
  7581.   ;;
  7582. *-*-irix6*)
  7583.   # Find out which ABI we are using.
  7584.   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  7585.   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7586.   (eval $ac_compile) 2>&5
  7587.   ac_status=$?
  7588.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7589.   test $ac_status = 0; }; then
  7590.     if test "$lt_cv_prog_gnu_ld" = yes; then
  7591.       case `/usr/bin/file conftest.$ac_objext` in
  7592.         *32-bit*)
  7593.           LD="${LD-ld} -melf32bsmip"
  7594.           ;;
  7595.         *N32*)
  7596.           LD="${LD-ld} -melf32bmipn32"
  7597.           ;;
  7598.         *64-bit*)
  7599.           LD="${LD-ld} -melf64bmip"
  7600.         ;;
  7601.       esac
  7602.     else
  7603.       case `/usr/bin/file conftest.$ac_objext` in
  7604.         *32-bit*)
  7605.           LD="${LD-ld} -32"
  7606.           ;;
  7607.         *N32*)
  7608.           LD="${LD-ld} -n32"
  7609.           ;;
  7610.         *64-bit*)
  7611.           LD="${LD-ld} -64"
  7612.           ;;
  7613.       esac
  7614.     fi
  7615.   fi
  7616.   rm -rf conftest*
  7617.   ;;
  7618.  
  7619. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  7620. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  7621.   # Find out which ABI we are using.
  7622.   echo 'int i;' > conftest.$ac_ext
  7623.   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7624.   (eval $ac_compile) 2>&5
  7625.   ac_status=$?
  7626.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7627.   test $ac_status = 0; }; then
  7628.     case `/usr/bin/file conftest.o` in
  7629.       *32-bit*)
  7630.         case $host in
  7631.           x86_64-*kfreebsd*-gnu)
  7632.             LD="${LD-ld} -m elf_i386_fbsd"
  7633.             ;;
  7634.           x86_64-*linux*)
  7635.             LD="${LD-ld} -m elf_i386"
  7636.             ;;
  7637.           ppc64-*linux*|powerpc64-*linux*)
  7638.             LD="${LD-ld} -m elf32ppclinux"
  7639.             ;;
  7640.           s390x-*linux*)
  7641.             LD="${LD-ld} -m elf_s390"
  7642.             ;;
  7643.           sparc64-*linux*)
  7644.             LD="${LD-ld} -m elf32_sparc"
  7645.             ;;
  7646.         esac
  7647.         ;;
  7648.       *64-bit*)
  7649.         case $host in
  7650.           x86_64-*kfreebsd*-gnu)
  7651.             LD="${LD-ld} -m elf_x86_64_fbsd"
  7652.             ;;
  7653.           x86_64-*linux*)
  7654.             LD="${LD-ld} -m elf_x86_64"
  7655.             ;;
  7656.           ppc*-*linux*|powerpc*-*linux*)
  7657.             LD="${LD-ld} -m elf64ppc"
  7658.             ;;
  7659.           s390*-*linux*|s390*-*tpf*)
  7660.             LD="${LD-ld} -m elf64_s390"
  7661.             ;;
  7662.           sparc*-*linux*)
  7663.             LD="${LD-ld} -m elf64_sparc"
  7664.             ;;
  7665.         esac
  7666.         ;;
  7667.     esac
  7668.   fi
  7669.   rm -rf conftest*
  7670.   ;;
  7671.  
  7672. *-*-sco3.2v5*)
  7673.   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  7674.   SAVE_CFLAGS="$CFLAGS"
  7675.   CFLAGS="$CFLAGS -belf"
  7676.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  7677. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  7678. if ${lt_cv_cc_needs_belf+:} false; then :
  7679.   $as_echo_n "(cached) " >&6
  7680. else
  7681.   ac_ext=c
  7682. ac_cpp='$CPP $CPPFLAGS'
  7683. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7684. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7685. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7686.  
  7687.      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7688. /* end confdefs.h.  */
  7689.  
  7690. int
  7691. main ()
  7692. {
  7693.  
  7694.   ;
  7695.   return 0;
  7696. }
  7697. _ACEOF
  7698. if ac_fn_c_try_link "$LINENO"; then :
  7699.   lt_cv_cc_needs_belf=yes
  7700. else
  7701.   lt_cv_cc_needs_belf=no
  7702. fi
  7703. rm -f core conftest.err conftest.$ac_objext \
  7704.     conftest$ac_exeext conftest.$ac_ext
  7705.      ac_ext=c
  7706. ac_cpp='$CPP $CPPFLAGS'
  7707. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7708. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7709. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7710.  
  7711. fi
  7712. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  7713. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  7714.   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  7715.     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  7716.     CFLAGS="$SAVE_CFLAGS"
  7717.   fi
  7718.   ;;
  7719. *-*solaris*)
  7720.   # Find out which ABI we are using.
  7721.   echo 'int i;' > conftest.$ac_ext
  7722.   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7723.   (eval $ac_compile) 2>&5
  7724.   ac_status=$?
  7725.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7726.   test $ac_status = 0; }; then
  7727.     case `/usr/bin/file conftest.o` in
  7728.     *64-bit*)
  7729.       case $lt_cv_prog_gnu_ld in
  7730.       yes*)
  7731.         case $host in
  7732.         i?86-*-solaris*)
  7733.           LD="${LD-ld} -m elf_x86_64"
  7734.           ;;
  7735.         sparc*-*-solaris*)
  7736.           LD="${LD-ld} -m elf64_sparc"
  7737.           ;;
  7738.         esac
  7739.         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
  7740.         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  7741.           LD="${LD-ld}_sol2"
  7742.         fi
  7743.         ;;
  7744.       *)
  7745.         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  7746.           LD="${LD-ld} -64"
  7747.         fi
  7748.         ;;
  7749.       esac
  7750.       ;;
  7751.     esac
  7752.   fi
  7753.   rm -rf conftest*
  7754.   ;;
  7755. esac
  7756.  
  7757. need_locks="$enable_libtool_lock"
  7758.  
  7759. if test -n "$ac_tool_prefix"; then
  7760.   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  7761. set dummy ${ac_tool_prefix}mt; ac_word=$2
  7762. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7763. $as_echo_n "checking for $ac_word... " >&6; }
  7764. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  7765.   $as_echo_n "(cached) " >&6
  7766. else
  7767.   if test -n "$MANIFEST_TOOL"; then
  7768.   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  7769. else
  7770. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7771. for as_dir in $PATH
  7772. do
  7773.   IFS=$as_save_IFS
  7774.   test -z "$as_dir" && as_dir=.
  7775.     for ac_exec_ext in '' $ac_executable_extensions; do
  7776.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7777.     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  7778.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7779.     break 2
  7780.   fi
  7781. done
  7782.   done
  7783. IFS=$as_save_IFS
  7784.  
  7785. fi
  7786. fi
  7787. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  7788. if test -n "$MANIFEST_TOOL"; then
  7789.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  7790. $as_echo "$MANIFEST_TOOL" >&6; }
  7791. else
  7792.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7793. $as_echo "no" >&6; }
  7794. fi
  7795.  
  7796.  
  7797. fi
  7798. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  7799.   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  7800.   # Extract the first word of "mt", so it can be a program name with args.
  7801. set dummy mt; ac_word=$2
  7802. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7803. $as_echo_n "checking for $ac_word... " >&6; }
  7804. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  7805.   $as_echo_n "(cached) " >&6
  7806. else
  7807.   if test -n "$ac_ct_MANIFEST_TOOL"; then
  7808.   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  7809. else
  7810. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7811. for as_dir in $PATH
  7812. do
  7813.   IFS=$as_save_IFS
  7814.   test -z "$as_dir" && as_dir=.
  7815.     for ac_exec_ext in '' $ac_executable_extensions; do
  7816.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7817.     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  7818.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7819.     break 2
  7820.   fi
  7821. done
  7822.   done
  7823. IFS=$as_save_IFS
  7824.  
  7825. fi
  7826. fi
  7827. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  7828. if test -n "$ac_ct_MANIFEST_TOOL"; then
  7829.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  7830. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  7831. else
  7832.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7833. $as_echo "no" >&6; }
  7834. fi
  7835.  
  7836.   if test "x$ac_ct_MANIFEST_TOOL" = x; then
  7837.     MANIFEST_TOOL=":"
  7838.   else
  7839.     case $cross_compiling:$ac_tool_warned in
  7840. yes:)
  7841. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7842. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7843. ac_tool_warned=yes ;;
  7844. esac
  7845.     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  7846.   fi
  7847. else
  7848.   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  7849. fi
  7850.  
  7851. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  7852. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  7853. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  7854. if ${lt_cv_path_mainfest_tool+:} false; then :
  7855.   $as_echo_n "(cached) " >&6
  7856. else
  7857.   lt_cv_path_mainfest_tool=no
  7858.   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  7859.   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  7860.   cat conftest.err >&5
  7861.   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  7862.     lt_cv_path_mainfest_tool=yes
  7863.   fi
  7864.   rm -f conftest*
  7865. fi
  7866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  7867. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  7868. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  7869.   MANIFEST_TOOL=:
  7870. fi
  7871.  
  7872.  
  7873.  
  7874.  
  7875.  
  7876.  
  7877.   case $host_os in
  7878.     rhapsody* | darwin*)
  7879.     if test -n "$ac_tool_prefix"; then
  7880.   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  7881. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  7882. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7883. $as_echo_n "checking for $ac_word... " >&6; }
  7884. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  7885.   $as_echo_n "(cached) " >&6
  7886. else
  7887.   if test -n "$DSYMUTIL"; then
  7888.   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  7889. else
  7890. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7891. for as_dir in $PATH
  7892. do
  7893.   IFS=$as_save_IFS
  7894.   test -z "$as_dir" && as_dir=.
  7895.     for ac_exec_ext in '' $ac_executable_extensions; do
  7896.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7897.     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  7898.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7899.     break 2
  7900.   fi
  7901. done
  7902.   done
  7903. IFS=$as_save_IFS
  7904.  
  7905. fi
  7906. fi
  7907. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  7908. if test -n "$DSYMUTIL"; then
  7909.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  7910. $as_echo "$DSYMUTIL" >&6; }
  7911. else
  7912.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7913. $as_echo "no" >&6; }
  7914. fi
  7915.  
  7916.  
  7917. fi
  7918. if test -z "$ac_cv_prog_DSYMUTIL"; then
  7919.   ac_ct_DSYMUTIL=$DSYMUTIL
  7920.   # Extract the first word of "dsymutil", so it can be a program name with args.
  7921. set dummy dsymutil; ac_word=$2
  7922. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7923. $as_echo_n "checking for $ac_word... " >&6; }
  7924. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  7925.   $as_echo_n "(cached) " >&6
  7926. else
  7927.   if test -n "$ac_ct_DSYMUTIL"; then
  7928.   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  7929. else
  7930. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7931. for as_dir in $PATH
  7932. do
  7933.   IFS=$as_save_IFS
  7934.   test -z "$as_dir" && as_dir=.
  7935.     for ac_exec_ext in '' $ac_executable_extensions; do
  7936.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7937.     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  7938.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7939.     break 2
  7940.   fi
  7941. done
  7942.   done
  7943. IFS=$as_save_IFS
  7944.  
  7945. fi
  7946. fi
  7947. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  7948. if test -n "$ac_ct_DSYMUTIL"; then
  7949.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  7950. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  7951. else
  7952.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7953. $as_echo "no" >&6; }
  7954. fi
  7955.  
  7956.   if test "x$ac_ct_DSYMUTIL" = x; then
  7957.     DSYMUTIL=":"
  7958.   else
  7959.     case $cross_compiling:$ac_tool_warned in
  7960. yes:)
  7961. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7962. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7963. ac_tool_warned=yes ;;
  7964. esac
  7965.     DSYMUTIL=$ac_ct_DSYMUTIL
  7966.   fi
  7967. else
  7968.   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  7969. fi
  7970.  
  7971.     if test -n "$ac_tool_prefix"; then
  7972.   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  7973. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  7974. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7975. $as_echo_n "checking for $ac_word... " >&6; }
  7976. if ${ac_cv_prog_NMEDIT+:} false; then :
  7977.   $as_echo_n "(cached) " >&6
  7978. else
  7979.   if test -n "$NMEDIT"; then
  7980.   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  7981. else
  7982. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7983. for as_dir in $PATH
  7984. do
  7985.   IFS=$as_save_IFS
  7986.   test -z "$as_dir" && as_dir=.
  7987.     for ac_exec_ext in '' $ac_executable_extensions; do
  7988.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7989.     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  7990.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7991.     break 2
  7992.   fi
  7993. done
  7994.   done
  7995. IFS=$as_save_IFS
  7996.  
  7997. fi
  7998. fi
  7999. NMEDIT=$ac_cv_prog_NMEDIT
  8000. if test -n "$NMEDIT"; then
  8001.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  8002. $as_echo "$NMEDIT" >&6; }
  8003. else
  8004.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8005. $as_echo "no" >&6; }
  8006. fi
  8007.  
  8008.  
  8009. fi
  8010. if test -z "$ac_cv_prog_NMEDIT"; then
  8011.   ac_ct_NMEDIT=$NMEDIT
  8012.   # Extract the first word of "nmedit", so it can be a program name with args.
  8013. set dummy nmedit; ac_word=$2
  8014. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8015. $as_echo_n "checking for $ac_word... " >&6; }
  8016. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  8017.   $as_echo_n "(cached) " >&6
  8018. else
  8019.   if test -n "$ac_ct_NMEDIT"; then
  8020.   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  8021. else
  8022. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8023. for as_dir in $PATH
  8024. do
  8025.   IFS=$as_save_IFS
  8026.   test -z "$as_dir" && as_dir=.
  8027.     for ac_exec_ext in '' $ac_executable_extensions; do
  8028.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8029.     ac_cv_prog_ac_ct_NMEDIT="nmedit"
  8030.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8031.     break 2
  8032.   fi
  8033. done
  8034.   done
  8035. IFS=$as_save_IFS
  8036.  
  8037. fi
  8038. fi
  8039. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  8040. if test -n "$ac_ct_NMEDIT"; then
  8041.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  8042. $as_echo "$ac_ct_NMEDIT" >&6; }
  8043. else
  8044.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8045. $as_echo "no" >&6; }
  8046. fi
  8047.  
  8048.   if test "x$ac_ct_NMEDIT" = x; then
  8049.     NMEDIT=":"
  8050.   else
  8051.     case $cross_compiling:$ac_tool_warned in
  8052. yes:)
  8053. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8054. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8055. ac_tool_warned=yes ;;
  8056. esac
  8057.     NMEDIT=$ac_ct_NMEDIT
  8058.   fi
  8059. else
  8060.   NMEDIT="$ac_cv_prog_NMEDIT"
  8061. fi
  8062.  
  8063.     if test -n "$ac_tool_prefix"; then
  8064.   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  8065. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  8066. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8067. $as_echo_n "checking for $ac_word... " >&6; }
  8068. if ${ac_cv_prog_LIPO+:} false; then :
  8069.   $as_echo_n "(cached) " >&6
  8070. else
  8071.   if test -n "$LIPO"; then
  8072.   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  8073. else
  8074. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8075. for as_dir in $PATH
  8076. do
  8077.   IFS=$as_save_IFS
  8078.   test -z "$as_dir" && as_dir=.
  8079.     for ac_exec_ext in '' $ac_executable_extensions; do
  8080.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8081.     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  8082.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8083.     break 2
  8084.   fi
  8085. done
  8086.   done
  8087. IFS=$as_save_IFS
  8088.  
  8089. fi
  8090. fi
  8091. LIPO=$ac_cv_prog_LIPO
  8092. if test -n "$LIPO"; then
  8093.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  8094. $as_echo "$LIPO" >&6; }
  8095. else
  8096.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8097. $as_echo "no" >&6; }
  8098. fi
  8099.  
  8100.  
  8101. fi
  8102. if test -z "$ac_cv_prog_LIPO"; then
  8103.   ac_ct_LIPO=$LIPO
  8104.   # Extract the first word of "lipo", so it can be a program name with args.
  8105. set dummy lipo; ac_word=$2
  8106. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8107. $as_echo_n "checking for $ac_word... " >&6; }
  8108. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  8109.   $as_echo_n "(cached) " >&6
  8110. else
  8111.   if test -n "$ac_ct_LIPO"; then
  8112.   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  8113. else
  8114. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8115. for as_dir in $PATH
  8116. do
  8117.   IFS=$as_save_IFS
  8118.   test -z "$as_dir" && as_dir=.
  8119.     for ac_exec_ext in '' $ac_executable_extensions; do
  8120.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8121.     ac_cv_prog_ac_ct_LIPO="lipo"
  8122.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8123.     break 2
  8124.   fi
  8125. done
  8126.   done
  8127. IFS=$as_save_IFS
  8128.  
  8129. fi
  8130. fi
  8131. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  8132. if test -n "$ac_ct_LIPO"; then
  8133.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  8134. $as_echo "$ac_ct_LIPO" >&6; }
  8135. else
  8136.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8137. $as_echo "no" >&6; }
  8138. fi
  8139.  
  8140.   if test "x$ac_ct_LIPO" = x; then
  8141.     LIPO=":"
  8142.   else
  8143.     case $cross_compiling:$ac_tool_warned in
  8144. yes:)
  8145. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8146. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8147. ac_tool_warned=yes ;;
  8148. esac
  8149.     LIPO=$ac_ct_LIPO
  8150.   fi
  8151. else
  8152.   LIPO="$ac_cv_prog_LIPO"
  8153. fi
  8154.  
  8155.     if test -n "$ac_tool_prefix"; then
  8156.   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  8157. set dummy ${ac_tool_prefix}otool; ac_word=$2
  8158. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8159. $as_echo_n "checking for $ac_word... " >&6; }
  8160. if ${ac_cv_prog_OTOOL+:} false; then :
  8161.   $as_echo_n "(cached) " >&6
  8162. else
  8163.   if test -n "$OTOOL"; then
  8164.   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  8165. else
  8166. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8167. for as_dir in $PATH
  8168. do
  8169.   IFS=$as_save_IFS
  8170.   test -z "$as_dir" && as_dir=.
  8171.     for ac_exec_ext in '' $ac_executable_extensions; do
  8172.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8173.     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  8174.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8175.     break 2
  8176.   fi
  8177. done
  8178.   done
  8179. IFS=$as_save_IFS
  8180.  
  8181. fi
  8182. fi
  8183. OTOOL=$ac_cv_prog_OTOOL
  8184. if test -n "$OTOOL"; then
  8185.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  8186. $as_echo "$OTOOL" >&6; }
  8187. else
  8188.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8189. $as_echo "no" >&6; }
  8190. fi
  8191.  
  8192.  
  8193. fi
  8194. if test -z "$ac_cv_prog_OTOOL"; then
  8195.   ac_ct_OTOOL=$OTOOL
  8196.   # Extract the first word of "otool", so it can be a program name with args.
  8197. set dummy otool; ac_word=$2
  8198. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8199. $as_echo_n "checking for $ac_word... " >&6; }
  8200. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  8201.   $as_echo_n "(cached) " >&6
  8202. else
  8203.   if test -n "$ac_ct_OTOOL"; then
  8204.   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  8205. else
  8206. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8207. for as_dir in $PATH
  8208. do
  8209.   IFS=$as_save_IFS
  8210.   test -z "$as_dir" && as_dir=.
  8211.     for ac_exec_ext in '' $ac_executable_extensions; do
  8212.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8213.     ac_cv_prog_ac_ct_OTOOL="otool"
  8214.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8215.     break 2
  8216.   fi
  8217. done
  8218.   done
  8219. IFS=$as_save_IFS
  8220.  
  8221. fi
  8222. fi
  8223. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  8224. if test -n "$ac_ct_OTOOL"; then
  8225.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  8226. $as_echo "$ac_ct_OTOOL" >&6; }
  8227. else
  8228.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8229. $as_echo "no" >&6; }
  8230. fi
  8231.  
  8232.   if test "x$ac_ct_OTOOL" = x; then
  8233.     OTOOL=":"
  8234.   else
  8235.     case $cross_compiling:$ac_tool_warned in
  8236. yes:)
  8237. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8238. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8239. ac_tool_warned=yes ;;
  8240. esac
  8241.     OTOOL=$ac_ct_OTOOL
  8242.   fi
  8243. else
  8244.   OTOOL="$ac_cv_prog_OTOOL"
  8245. fi
  8246.  
  8247.     if test -n "$ac_tool_prefix"; then
  8248.   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  8249. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  8250. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8251. $as_echo_n "checking for $ac_word... " >&6; }
  8252. if ${ac_cv_prog_OTOOL64+:} false; then :
  8253.   $as_echo_n "(cached) " >&6
  8254. else
  8255.   if test -n "$OTOOL64"; then
  8256.   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  8257. else
  8258. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8259. for as_dir in $PATH
  8260. do
  8261.   IFS=$as_save_IFS
  8262.   test -z "$as_dir" && as_dir=.
  8263.     for ac_exec_ext in '' $ac_executable_extensions; do
  8264.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8265.     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  8266.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8267.     break 2
  8268.   fi
  8269. done
  8270.   done
  8271. IFS=$as_save_IFS
  8272.  
  8273. fi
  8274. fi
  8275. OTOOL64=$ac_cv_prog_OTOOL64
  8276. if test -n "$OTOOL64"; then
  8277.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  8278. $as_echo "$OTOOL64" >&6; }
  8279. else
  8280.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8281. $as_echo "no" >&6; }
  8282. fi
  8283.  
  8284.  
  8285. fi
  8286. if test -z "$ac_cv_prog_OTOOL64"; then
  8287.   ac_ct_OTOOL64=$OTOOL64
  8288.   # Extract the first word of "otool64", so it can be a program name with args.
  8289. set dummy otool64; ac_word=$2
  8290. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8291. $as_echo_n "checking for $ac_word... " >&6; }
  8292. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  8293.   $as_echo_n "(cached) " >&6
  8294. else
  8295.   if test -n "$ac_ct_OTOOL64"; then
  8296.   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  8297. else
  8298. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8299. for as_dir in $PATH
  8300. do
  8301.   IFS=$as_save_IFS
  8302.   test -z "$as_dir" && as_dir=.
  8303.     for ac_exec_ext in '' $ac_executable_extensions; do
  8304.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8305.     ac_cv_prog_ac_ct_OTOOL64="otool64"
  8306.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8307.     break 2
  8308.   fi
  8309. done
  8310.   done
  8311. IFS=$as_save_IFS
  8312.  
  8313. fi
  8314. fi
  8315. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  8316. if test -n "$ac_ct_OTOOL64"; then
  8317.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  8318. $as_echo "$ac_ct_OTOOL64" >&6; }
  8319. else
  8320.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8321. $as_echo "no" >&6; }
  8322. fi
  8323.  
  8324.   if test "x$ac_ct_OTOOL64" = x; then
  8325.     OTOOL64=":"
  8326.   else
  8327.     case $cross_compiling:$ac_tool_warned in
  8328. yes:)
  8329. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8330. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8331. ac_tool_warned=yes ;;
  8332. esac
  8333.     OTOOL64=$ac_ct_OTOOL64
  8334.   fi
  8335. else
  8336.   OTOOL64="$ac_cv_prog_OTOOL64"
  8337. fi
  8338.  
  8339.  
  8340.  
  8341.  
  8342.  
  8343.  
  8344.  
  8345.  
  8346.  
  8347.  
  8348.  
  8349.  
  8350.  
  8351.  
  8352.  
  8353.  
  8354.  
  8355.  
  8356.  
  8357.  
  8358.  
  8359.  
  8360.  
  8361.  
  8362.  
  8363.  
  8364.  
  8365.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  8366. $as_echo_n "checking for -single_module linker flag... " >&6; }
  8367. if ${lt_cv_apple_cc_single_mod+:} false; then :
  8368.   $as_echo_n "(cached) " >&6
  8369. else
  8370.   lt_cv_apple_cc_single_mod=no
  8371.       if test -z "${LT_MULTI_MODULE}"; then
  8372.         # By default we will add the -single_module flag. You can override
  8373.         # by either setting the environment variable LT_MULTI_MODULE
  8374.         # non-empty at configure time, or by adding -multi_module to the
  8375.         # link flags.
  8376.         rm -rf libconftest.dylib*
  8377.         echo "int foo(void){return 1;}" > conftest.c
  8378.         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  8379. -dynamiclib -Wl,-single_module conftest.c" >&5
  8380.         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  8381.           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  8382.         _lt_result=$?
  8383.         # If there is a non-empty error log, and "single_module"
  8384.         # appears in it, assume the flag caused a linker warning
  8385.         if test -s conftest.err && $GREP single_module conftest.err; then
  8386.           cat conftest.err >&5
  8387.         # Otherwise, if the output was created with a 0 exit code from
  8388.         # the compiler, it worked.
  8389.         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  8390.           lt_cv_apple_cc_single_mod=yes
  8391.         else
  8392.           cat conftest.err >&5
  8393.         fi
  8394.         rm -rf libconftest.dylib*
  8395.         rm -f conftest.*
  8396.       fi
  8397. fi
  8398. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  8399. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  8400.  
  8401.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  8402. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  8403. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  8404.   $as_echo_n "(cached) " >&6
  8405. else
  8406.   lt_cv_ld_exported_symbols_list=no
  8407.       save_LDFLAGS=$LDFLAGS
  8408.       echo "_main" > conftest.sym
  8409.       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  8410.       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8411. /* end confdefs.h.  */
  8412.  
  8413. int
  8414. main ()
  8415. {
  8416.  
  8417.   ;
  8418.   return 0;
  8419. }
  8420. _ACEOF
  8421. if ac_fn_c_try_link "$LINENO"; then :
  8422.   lt_cv_ld_exported_symbols_list=yes
  8423. else
  8424.   lt_cv_ld_exported_symbols_list=no
  8425. fi
  8426. rm -f core conftest.err conftest.$ac_objext \
  8427.     conftest$ac_exeext conftest.$ac_ext
  8428.         LDFLAGS="$save_LDFLAGS"
  8429.  
  8430. fi
  8431. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  8432. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  8433.  
  8434.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  8435. $as_echo_n "checking for -force_load linker flag... " >&6; }
  8436. if ${lt_cv_ld_force_load+:} false; then :
  8437.   $as_echo_n "(cached) " >&6
  8438. else
  8439.   lt_cv_ld_force_load=no
  8440.       cat > conftest.c << _LT_EOF
  8441. int forced_loaded() { return 2;}
  8442. _LT_EOF
  8443.       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  8444.       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  8445.       echo "$AR cru libconftest.a conftest.o" >&5
  8446.       $AR cru libconftest.a conftest.o 2>&5
  8447.       echo "$RANLIB libconftest.a" >&5
  8448.       $RANLIB libconftest.a 2>&5
  8449.       cat > conftest.c << _LT_EOF
  8450. int main() { return 0;}
  8451. _LT_EOF
  8452.       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  8453.       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  8454.       _lt_result=$?
  8455.       if test -s conftest.err && $GREP force_load conftest.err; then
  8456.         cat conftest.err >&5
  8457.       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  8458.         lt_cv_ld_force_load=yes
  8459.       else
  8460.         cat conftest.err >&5
  8461.       fi
  8462.         rm -f conftest.err libconftest.a conftest conftest.c
  8463.         rm -rf conftest.dSYM
  8464.  
  8465. fi
  8466. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  8467. $as_echo "$lt_cv_ld_force_load" >&6; }
  8468.     case $host_os in
  8469.     rhapsody* | darwin1.[012])
  8470.       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  8471.     darwin1.*)
  8472.       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  8473.     darwin*) # darwin 5.x on
  8474.       # if running on 10.5 or later, the deployment target defaults
  8475.       # to the OS version, if on x86, and 10.4, the deployment
  8476.       # target defaults to 10.4. Don't you love it?
  8477.       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  8478.         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  8479.           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  8480.         10.[012]*)
  8481.           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  8482.         10.*)
  8483.           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  8484.       esac
  8485.     ;;
  8486.   esac
  8487.     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  8488.       _lt_dar_single_mod='$single_module'
  8489.     fi
  8490.     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  8491.       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  8492.     else
  8493.       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  8494.     fi
  8495.     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  8496.       _lt_dsymutil='~$DSYMUTIL $lib || :'
  8497.     else
  8498.       _lt_dsymutil=
  8499.     fi
  8500.     ;;
  8501.   esac
  8502.  
  8503. for ac_header in dlfcn.h
  8504. do :
  8505.   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  8506. "
  8507. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  8508.   cat >>confdefs.h <<_ACEOF
  8509. #define HAVE_DLFCN_H 1
  8510. _ACEOF
  8511.  
  8512. fi
  8513.  
  8514. done
  8515.  
  8516.  
  8517.  
  8518.  
  8519.  
  8520. # Set options
  8521. enable_win32_dll=yes
  8522.  
  8523. case $host in
  8524. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  8525.   if test -n "$ac_tool_prefix"; then
  8526.   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  8527. set dummy ${ac_tool_prefix}as; ac_word=$2
  8528. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8529. $as_echo_n "checking for $ac_word... " >&6; }
  8530. if ${ac_cv_prog_AS+:} false; then :
  8531.   $as_echo_n "(cached) " >&6
  8532. else
  8533.   if test -n "$AS"; then
  8534.   ac_cv_prog_AS="$AS" # Let the user override the test.
  8535. else
  8536. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8537. for as_dir in $PATH
  8538. do
  8539.   IFS=$as_save_IFS
  8540.   test -z "$as_dir" && as_dir=.
  8541.     for ac_exec_ext in '' $ac_executable_extensions; do
  8542.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8543.     ac_cv_prog_AS="${ac_tool_prefix}as"
  8544.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8545.     break 2
  8546.   fi
  8547. done
  8548.   done
  8549. IFS=$as_save_IFS
  8550.  
  8551. fi
  8552. fi
  8553. AS=$ac_cv_prog_AS
  8554. if test -n "$AS"; then
  8555.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  8556. $as_echo "$AS" >&6; }
  8557. else
  8558.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8559. $as_echo "no" >&6; }
  8560. fi
  8561.  
  8562.  
  8563. fi
  8564. if test -z "$ac_cv_prog_AS"; then
  8565.   ac_ct_AS=$AS
  8566.   # Extract the first word of "as", so it can be a program name with args.
  8567. set dummy as; ac_word=$2
  8568. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8569. $as_echo_n "checking for $ac_word... " >&6; }
  8570. if ${ac_cv_prog_ac_ct_AS+:} false; then :
  8571.   $as_echo_n "(cached) " >&6
  8572. else
  8573.   if test -n "$ac_ct_AS"; then
  8574.   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  8575. else
  8576. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8577. for as_dir in $PATH
  8578. do
  8579.   IFS=$as_save_IFS
  8580.   test -z "$as_dir" && as_dir=.
  8581.     for ac_exec_ext in '' $ac_executable_extensions; do
  8582.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8583.     ac_cv_prog_ac_ct_AS="as"
  8584.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8585.     break 2
  8586.   fi
  8587. done
  8588.   done
  8589. IFS=$as_save_IFS
  8590.  
  8591. fi
  8592. fi
  8593. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  8594. if test -n "$ac_ct_AS"; then
  8595.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  8596. $as_echo "$ac_ct_AS" >&6; }
  8597. else
  8598.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8599. $as_echo "no" >&6; }
  8600. fi
  8601.  
  8602.   if test "x$ac_ct_AS" = x; then
  8603.     AS="false"
  8604.   else
  8605.     case $cross_compiling:$ac_tool_warned in
  8606. yes:)
  8607. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8608. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8609. ac_tool_warned=yes ;;
  8610. esac
  8611.     AS=$ac_ct_AS
  8612.   fi
  8613. else
  8614.   AS="$ac_cv_prog_AS"
  8615. fi
  8616.  
  8617.   if test -n "$ac_tool_prefix"; then
  8618.   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  8619. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  8620. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8621. $as_echo_n "checking for $ac_word... " >&6; }
  8622. if ${ac_cv_prog_DLLTOOL+:} false; then :
  8623.   $as_echo_n "(cached) " >&6
  8624. else
  8625.   if test -n "$DLLTOOL"; then
  8626.   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  8627. else
  8628. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8629. for as_dir in $PATH
  8630. do
  8631.   IFS=$as_save_IFS
  8632.   test -z "$as_dir" && as_dir=.
  8633.     for ac_exec_ext in '' $ac_executable_extensions; do
  8634.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8635.     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  8636.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8637.     break 2
  8638.   fi
  8639. done
  8640.   done
  8641. IFS=$as_save_IFS
  8642.  
  8643. fi
  8644. fi
  8645. DLLTOOL=$ac_cv_prog_DLLTOOL
  8646. if test -n "$DLLTOOL"; then
  8647.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  8648. $as_echo "$DLLTOOL" >&6; }
  8649. else
  8650.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8651. $as_echo "no" >&6; }
  8652. fi
  8653.  
  8654.  
  8655. fi
  8656. if test -z "$ac_cv_prog_DLLTOOL"; then
  8657.   ac_ct_DLLTOOL=$DLLTOOL
  8658.   # Extract the first word of "dlltool", so it can be a program name with args.
  8659. set dummy dlltool; ac_word=$2
  8660. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8661. $as_echo_n "checking for $ac_word... " >&6; }
  8662. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  8663.   $as_echo_n "(cached) " >&6
  8664. else
  8665.   if test -n "$ac_ct_DLLTOOL"; then
  8666.   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  8667. else
  8668. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8669. for as_dir in $PATH
  8670. do
  8671.   IFS=$as_save_IFS
  8672.   test -z "$as_dir" && as_dir=.
  8673.     for ac_exec_ext in '' $ac_executable_extensions; do
  8674.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8675.     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  8676.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8677.     break 2
  8678.   fi
  8679. done
  8680.   done
  8681. IFS=$as_save_IFS
  8682.  
  8683. fi
  8684. fi
  8685. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  8686. if test -n "$ac_ct_DLLTOOL"; then
  8687.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  8688. $as_echo "$ac_ct_DLLTOOL" >&6; }
  8689. else
  8690.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8691. $as_echo "no" >&6; }
  8692. fi
  8693.  
  8694.   if test "x$ac_ct_DLLTOOL" = x; then
  8695.     DLLTOOL="false"
  8696.   else
  8697.     case $cross_compiling:$ac_tool_warned in
  8698. yes:)
  8699. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8700. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8701. ac_tool_warned=yes ;;
  8702. esac
  8703.     DLLTOOL=$ac_ct_DLLTOOL
  8704.   fi
  8705. else
  8706.   DLLTOOL="$ac_cv_prog_DLLTOOL"
  8707. fi
  8708.  
  8709.   if test -n "$ac_tool_prefix"; then
  8710.   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  8711. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  8712. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8713. $as_echo_n "checking for $ac_word... " >&6; }
  8714. if ${ac_cv_prog_OBJDUMP+:} false; then :
  8715.   $as_echo_n "(cached) " >&6
  8716. else
  8717.   if test -n "$OBJDUMP"; then
  8718.   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  8719. else
  8720. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8721. for as_dir in $PATH
  8722. do
  8723.   IFS=$as_save_IFS
  8724.   test -z "$as_dir" && as_dir=.
  8725.     for ac_exec_ext in '' $ac_executable_extensions; do
  8726.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8727.     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  8728.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8729.     break 2
  8730.   fi
  8731. done
  8732.   done
  8733. IFS=$as_save_IFS
  8734.  
  8735. fi
  8736. fi
  8737. OBJDUMP=$ac_cv_prog_OBJDUMP
  8738. if test -n "$OBJDUMP"; then
  8739.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  8740. $as_echo "$OBJDUMP" >&6; }
  8741. else
  8742.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8743. $as_echo "no" >&6; }
  8744. fi
  8745.  
  8746.  
  8747. fi
  8748. if test -z "$ac_cv_prog_OBJDUMP"; then
  8749.   ac_ct_OBJDUMP=$OBJDUMP
  8750.   # Extract the first word of "objdump", so it can be a program name with args.
  8751. set dummy objdump; ac_word=$2
  8752. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8753. $as_echo_n "checking for $ac_word... " >&6; }
  8754. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  8755.   $as_echo_n "(cached) " >&6
  8756. else
  8757.   if test -n "$ac_ct_OBJDUMP"; then
  8758.   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  8759. else
  8760. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8761. for as_dir in $PATH
  8762. do
  8763.   IFS=$as_save_IFS
  8764.   test -z "$as_dir" && as_dir=.
  8765.     for ac_exec_ext in '' $ac_executable_extensions; do
  8766.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8767.     ac_cv_prog_ac_ct_OBJDUMP="objdump"
  8768.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8769.     break 2
  8770.   fi
  8771. done
  8772.   done
  8773. IFS=$as_save_IFS
  8774.  
  8775. fi
  8776. fi
  8777. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  8778. if test -n "$ac_ct_OBJDUMP"; then
  8779.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  8780. $as_echo "$ac_ct_OBJDUMP" >&6; }
  8781. else
  8782.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8783. $as_echo "no" >&6; }
  8784. fi
  8785.  
  8786.   if test "x$ac_ct_OBJDUMP" = x; then
  8787.     OBJDUMP="false"
  8788.   else
  8789.     case $cross_compiling:$ac_tool_warned in
  8790. yes:)
  8791. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8792. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8793. ac_tool_warned=yes ;;
  8794. esac
  8795.     OBJDUMP=$ac_ct_OBJDUMP
  8796.   fi
  8797. else
  8798.   OBJDUMP="$ac_cv_prog_OBJDUMP"
  8799. fi
  8800.  
  8801.   ;;
  8802. esac
  8803.  
  8804. test -z "$AS" && AS=as
  8805.  
  8806.  
  8807.  
  8808.  
  8809.  
  8810. test -z "$DLLTOOL" && DLLTOOL=dlltool
  8811.  
  8812.  
  8813.  
  8814.  
  8815.  
  8816. test -z "$OBJDUMP" && OBJDUMP=objdump
  8817.  
  8818.  
  8819.  
  8820.  
  8821.  
  8822.  
  8823.  
  8824.         enable_dlopen=no
  8825.  
  8826.  
  8827.  
  8828.             # Check whether --enable-shared was given.
  8829. if test "${enable_shared+set}" = set; then :
  8830.   enableval=$enable_shared; p=${PACKAGE-default}
  8831.     case $enableval in
  8832.     yes) enable_shared=yes ;;
  8833.     no) enable_shared=no ;;
  8834.     *)
  8835.       enable_shared=no
  8836.       # Look at the argument we got.  We use all the common list separators.
  8837.       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  8838.       for pkg in $enableval; do
  8839.         IFS="$lt_save_ifs"
  8840.         if test "X$pkg" = "X$p"; then
  8841.           enable_shared=yes
  8842.         fi
  8843.       done
  8844.       IFS="$lt_save_ifs"
  8845.       ;;
  8846.     esac
  8847. else
  8848.   enable_shared=yes
  8849. fi
  8850.  
  8851.  
  8852.  
  8853.  
  8854.  
  8855.  
  8856.  
  8857.  
  8858.  
  8859.   # Check whether --enable-static was given.
  8860. if test "${enable_static+set}" = set; then :
  8861.   enableval=$enable_static; p=${PACKAGE-default}
  8862.     case $enableval in
  8863.     yes) enable_static=yes ;;
  8864.     no) enable_static=no ;;
  8865.     *)
  8866.      enable_static=no
  8867.       # Look at the argument we got.  We use all the common list separators.
  8868.       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  8869.       for pkg in $enableval; do
  8870.         IFS="$lt_save_ifs"
  8871.         if test "X$pkg" = "X$p"; then
  8872.           enable_static=yes
  8873.         fi
  8874.       done
  8875.       IFS="$lt_save_ifs"
  8876.       ;;
  8877.     esac
  8878. else
  8879.   enable_static=yes
  8880. fi
  8881.  
  8882.  
  8883.  
  8884.  
  8885.  
  8886.  
  8887.  
  8888.  
  8889.  
  8890.  
  8891. # Check whether --with-pic was given.
  8892. if test "${with_pic+set}" = set; then :
  8893.   withval=$with_pic; lt_p=${PACKAGE-default}
  8894.     case $withval in
  8895.     yes|no) pic_mode=$withval ;;
  8896.     *)
  8897.       pic_mode=default
  8898.       # Look at the argument we got.  We use all the common list separators.
  8899.       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  8900.       for lt_pkg in $withval; do
  8901.         IFS="$lt_save_ifs"
  8902.         if test "X$lt_pkg" = "X$lt_p"; then
  8903.           pic_mode=yes
  8904.         fi
  8905.       done
  8906.       IFS="$lt_save_ifs"
  8907.       ;;
  8908.     esac
  8909. else
  8910.   pic_mode=default
  8911. fi
  8912.  
  8913.  
  8914. test -z "$pic_mode" && pic_mode=default
  8915.  
  8916.  
  8917.  
  8918.  
  8919.  
  8920.  
  8921.  
  8922.   # Check whether --enable-fast-install was given.
  8923. if test "${enable_fast_install+set}" = set; then :
  8924.   enableval=$enable_fast_install; p=${PACKAGE-default}
  8925.     case $enableval in
  8926.     yes) enable_fast_install=yes ;;
  8927.     no) enable_fast_install=no ;;
  8928.     *)
  8929.       enable_fast_install=no
  8930.       # Look at the argument we got.  We use all the common list separators.
  8931.       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  8932.       for pkg in $enableval; do
  8933.         IFS="$lt_save_ifs"
  8934.         if test "X$pkg" = "X$p"; then
  8935.           enable_fast_install=yes
  8936.         fi
  8937.       done
  8938.       IFS="$lt_save_ifs"
  8939.       ;;
  8940.     esac
  8941. else
  8942.   enable_fast_install=yes
  8943. fi
  8944.  
  8945.  
  8946.  
  8947.  
  8948.  
  8949.  
  8950.  
  8951.  
  8952.  
  8953.  
  8954.  
  8955. # This can be used to rebuild libtool when needed
  8956. LIBTOOL_DEPS="$ltmain"
  8957.  
  8958. # Always use our own libtool.
  8959. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  8960.  
  8961.  
  8962.  
  8963.  
  8964.  
  8965.  
  8966.  
  8967.  
  8968.  
  8969.  
  8970.  
  8971.  
  8972.  
  8973.  
  8974.  
  8975.  
  8976.  
  8977.  
  8978.  
  8979.  
  8980.  
  8981.  
  8982.  
  8983.  
  8984.  
  8985.  
  8986.  
  8987.  
  8988.  
  8989.  
  8990. test -z "$LN_S" && LN_S="ln -s"
  8991.  
  8992.  
  8993.  
  8994.  
  8995.  
  8996.  
  8997.  
  8998.  
  8999.  
  9000.  
  9001.  
  9002.  
  9003.  
  9004.  
  9005. if test -n "${ZSH_VERSION+set}" ; then
  9006.    setopt NO_GLOB_SUBST
  9007. fi
  9008.  
  9009. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  9010. $as_echo_n "checking for objdir... " >&6; }
  9011. if ${lt_cv_objdir+:} false; then :
  9012.   $as_echo_n "(cached) " >&6
  9013. else
  9014.   rm -f .libs 2>/dev/null
  9015. mkdir .libs 2>/dev/null
  9016. if test -d .libs; then
  9017.   lt_cv_objdir=.libs
  9018. else
  9019.   # MS-DOS does not allow filenames that begin with a dot.
  9020.   lt_cv_objdir=_libs
  9021. fi
  9022. rmdir .libs 2>/dev/null
  9023. fi
  9024. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  9025. $as_echo "$lt_cv_objdir" >&6; }
  9026. objdir=$lt_cv_objdir
  9027.  
  9028.  
  9029.  
  9030.  
  9031.  
  9032. cat >>confdefs.h <<_ACEOF
  9033. #define LT_OBJDIR "$lt_cv_objdir/"
  9034. _ACEOF
  9035.  
  9036.  
  9037.  
  9038.  
  9039. case $host_os in
  9040. aix3*)
  9041.   # AIX sometimes has problems with the GCC collect2 program.  For some
  9042.   # reason, if we set the COLLECT_NAMES environment variable, the problems
  9043.   # vanish in a puff of smoke.
  9044.   if test "X${COLLECT_NAMES+set}" != Xset; then
  9045.     COLLECT_NAMES=
  9046.     export COLLECT_NAMES
  9047.   fi
  9048.   ;;
  9049. esac
  9050.  
  9051. # Global variables:
  9052. ofile=libtool
  9053. can_build_shared=yes
  9054.  
  9055. # All known linkers require a `.a' archive for static linking (except MSVC,
  9056. # which needs '.lib').
  9057. libext=a
  9058.  
  9059. with_gnu_ld="$lt_cv_prog_gnu_ld"
  9060.  
  9061. old_CC="$CC"
  9062. old_CFLAGS="$CFLAGS"
  9063.  
  9064. # Set sane defaults for various variables
  9065. test -z "$CC" && CC=cc
  9066. test -z "$LTCC" && LTCC=$CC
  9067. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  9068. test -z "$LD" && LD=ld
  9069. test -z "$ac_objext" && ac_objext=o
  9070.  
  9071. for cc_temp in $compiler""; do
  9072.   case $cc_temp in
  9073.     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  9074.     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  9075.     \-*) ;;
  9076.     *) break;;
  9077.   esac
  9078. done
  9079. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  9080.  
  9081.  
  9082. # Only perform the check for file, if the check method requires it
  9083. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  9084. case $deplibs_check_method in
  9085. file_magic*)
  9086.   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  9087.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  9088. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  9089. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  9090.   $as_echo_n "(cached) " >&6
  9091. else
  9092.   case $MAGIC_CMD in
  9093. [\\/*] |  ?:[\\/]*)
  9094.   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  9095.   ;;
  9096. *)
  9097.   lt_save_MAGIC_CMD="$MAGIC_CMD"
  9098.   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  9099.   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  9100.   for ac_dir in $ac_dummy; do
  9101.     IFS="$lt_save_ifs"
  9102.     test -z "$ac_dir" && ac_dir=.
  9103.     if test -f $ac_dir/${ac_tool_prefix}file; then
  9104.       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  9105.       if test -n "$file_magic_test_file"; then
  9106.         case $deplibs_check_method in
  9107.         "file_magic "*)
  9108.           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  9109.           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  9110.           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  9111.             $EGREP "$file_magic_regex" > /dev/null; then
  9112.             :
  9113.           else
  9114.             cat <<_LT_EOF 1>&2
  9115.  
  9116. *** Warning: the command libtool uses to detect shared libraries,
  9117. *** $file_magic_cmd, produces output that libtool cannot recognize.
  9118. *** The result is that libtool may fail to recognize shared libraries
  9119. *** as such.  This will affect the creation of libtool libraries that
  9120. *** depend on shared libraries, but programs linked with such libtool
  9121. *** libraries will work regardless of this problem.  Nevertheless, you
  9122. *** may want to report the problem to your system manager and/or to
  9123. *** bug-libtool@gnu.org
  9124.  
  9125. _LT_EOF
  9126.           fi ;;
  9127.         esac
  9128.       fi
  9129.       break
  9130.     fi
  9131.   done
  9132.   IFS="$lt_save_ifs"
  9133.   MAGIC_CMD="$lt_save_MAGIC_CMD"
  9134.   ;;
  9135. esac
  9136. fi
  9137.  
  9138. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  9139. if test -n "$MAGIC_CMD"; then
  9140.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  9141. $as_echo "$MAGIC_CMD" >&6; }
  9142. else
  9143.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9144. $as_echo "no" >&6; }
  9145. fi
  9146.  
  9147.  
  9148.  
  9149.  
  9150.  
  9151. if test -z "$lt_cv_path_MAGIC_CMD"; then
  9152.   if test -n "$ac_tool_prefix"; then
  9153.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  9154. $as_echo_n "checking for file... " >&6; }
  9155. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  9156.   $as_echo_n "(cached) " >&6
  9157. else
  9158.   case $MAGIC_CMD in
  9159. [\\/*] |  ?:[\\/]*)
  9160.   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  9161.   ;;
  9162. *)
  9163.   lt_save_MAGIC_CMD="$MAGIC_CMD"
  9164.   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  9165.   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  9166.   for ac_dir in $ac_dummy; do
  9167.     IFS="$lt_save_ifs"
  9168.     test -z "$ac_dir" && ac_dir=.
  9169.     if test -f $ac_dir/file; then
  9170.       lt_cv_path_MAGIC_CMD="$ac_dir/file"
  9171.       if test -n "$file_magic_test_file"; then
  9172.         case $deplibs_check_method in
  9173.         "file_magic "*)
  9174.           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  9175.           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  9176.           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  9177.             $EGREP "$file_magic_regex" > /dev/null; then
  9178.             :
  9179.           else
  9180.             cat <<_LT_EOF 1>&2
  9181.  
  9182. *** Warning: the command libtool uses to detect shared libraries,
  9183. *** $file_magic_cmd, produces output that libtool cannot recognize.
  9184. *** The result is that libtool may fail to recognize shared libraries
  9185. *** as such.  This will affect the creation of libtool libraries that
  9186. *** depend on shared libraries, but programs linked with such libtool
  9187. *** libraries will work regardless of this problem.  Nevertheless, you
  9188. *** may want to report the problem to your system manager and/or to
  9189. *** bug-libtool@gnu.org
  9190.  
  9191. _LT_EOF
  9192.           fi ;;
  9193.         esac
  9194.       fi
  9195.       break
  9196.     fi
  9197.   done
  9198.   IFS="$lt_save_ifs"
  9199.   MAGIC_CMD="$lt_save_MAGIC_CMD"
  9200.   ;;
  9201. esac
  9202. fi
  9203.  
  9204. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  9205. if test -n "$MAGIC_CMD"; then
  9206.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  9207. $as_echo "$MAGIC_CMD" >&6; }
  9208. else
  9209.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9210. $as_echo "no" >&6; }
  9211. fi
  9212.  
  9213.  
  9214.   else
  9215.     MAGIC_CMD=:
  9216.   fi
  9217. fi
  9218.  
  9219.   fi
  9220.   ;;
  9221. esac
  9222.  
  9223. # Use C for the default configuration in the libtool script
  9224.  
  9225. lt_save_CC="$CC"
  9226. ac_ext=c
  9227. ac_cpp='$CPP $CPPFLAGS'
  9228. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9229. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9230. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9231.  
  9232.  
  9233. # Source file extension for C test sources.
  9234. ac_ext=c
  9235.  
  9236. # Object file extension for compiled C test sources.
  9237. objext=o
  9238. objext=$objext
  9239.  
  9240. # Code to be used in simple compile tests
  9241. lt_simple_compile_test_code="int some_variable = 0;"
  9242.  
  9243. # Code to be used in simple link tests
  9244. lt_simple_link_test_code='int main(){return(0);}'
  9245.  
  9246.  
  9247.  
  9248.  
  9249.  
  9250.  
  9251.  
  9252. # If no C compiler was specified, use CC.
  9253. LTCC=${LTCC-"$CC"}
  9254.  
  9255. # If no C compiler flags were specified, use CFLAGS.
  9256. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  9257.  
  9258. # Allow CC to be a program name with arguments.
  9259. compiler=$CC
  9260.  
  9261. # Save the default compiler, since it gets overwritten when the other
  9262. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  9263. compiler_DEFAULT=$CC
  9264.  
  9265. # save warnings/boilerplate of simple test code
  9266. ac_outfile=conftest.$ac_objext
  9267. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  9268. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  9269. _lt_compiler_boilerplate=`cat conftest.err`
  9270. $RM conftest*
  9271.  
  9272. ac_outfile=conftest.$ac_objext
  9273. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  9274. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  9275. _lt_linker_boilerplate=`cat conftest.err`
  9276. $RM -r conftest*
  9277.  
  9278.  
  9279. if test -n "$compiler"; then
  9280.  
  9281. lt_prog_compiler_no_builtin_flag=
  9282.  
  9283. if test "$GCC" = yes; then
  9284.   case $cc_basename in
  9285.   nvcc*)
  9286.     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  9287.   *)
  9288.     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  9289.   esac
  9290.  
  9291.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  9292. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  9293. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  9294.   $as_echo_n "(cached) " >&6
  9295. else
  9296.   lt_cv_prog_compiler_rtti_exceptions=no
  9297.    ac_outfile=conftest.$ac_objext
  9298.    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9299.    lt_compiler_flag="-fno-rtti -fno-exceptions"
  9300.    # Insert the option either (1) after the last *FLAGS variable, or
  9301.    # (2) before a word containing "conftest.", or (3) at the end.
  9302.    # Note that $ac_compile itself does not contain backslashes and begins
  9303.    # with a dollar sign (not a hyphen), so the echo should work correctly.
  9304.    # The option is referenced via a variable to avoid confusing sed.
  9305.    lt_compile=`echo "$ac_compile" | $SED \
  9306.    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  9307.    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  9308.    -e 's:$: $lt_compiler_flag:'`
  9309.    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  9310.    (eval "$lt_compile" 2>conftest.err)
  9311.    ac_status=$?
  9312.    cat conftest.err >&5
  9313.    echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9314.    if (exit $ac_status) && test -s "$ac_outfile"; then
  9315.      # The compiler can only warn and ignore the option if not recognized
  9316.      # So say no if there are warnings other than the usual output.
  9317.      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  9318.      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9319.      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  9320.        lt_cv_prog_compiler_rtti_exceptions=yes
  9321.      fi
  9322.    fi
  9323.    $RM conftest*
  9324.  
  9325. fi
  9326. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  9327. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  9328.  
  9329. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  9330.     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  9331. else
  9332.     :
  9333. fi
  9334.  
  9335. fi
  9336.  
  9337.  
  9338.  
  9339.  
  9340.  
  9341.  
  9342.   lt_prog_compiler_wl=
  9343. lt_prog_compiler_pic=
  9344. lt_prog_compiler_static=
  9345.  
  9346.  
  9347.   if test "$GCC" = yes; then
  9348.     lt_prog_compiler_wl='-Wl,'
  9349.     lt_prog_compiler_static='-static'
  9350.  
  9351.     case $host_os in
  9352.       aix*)
  9353.       # All AIX code is PIC.
  9354.       if test "$host_cpu" = ia64; then
  9355.         # AIX 5 now supports IA64 processor
  9356.         lt_prog_compiler_static='-Bstatic'
  9357.       fi
  9358.       ;;
  9359.  
  9360.     amigaos*)
  9361.       case $host_cpu in
  9362.       powerpc)
  9363.             # see comment about AmigaOS4 .so support
  9364.             lt_prog_compiler_pic='-fPIC'
  9365.         ;;
  9366.       m68k)
  9367.             # FIXME: we need at least 68020 code to build shared libraries, but
  9368.             # adding the `-m68020' flag to GCC prevents building anything better,
  9369.             # like `-m68040'.
  9370.             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  9371.         ;;
  9372.       esac
  9373.       ;;
  9374.  
  9375.     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  9376.       # PIC is the default for these OSes.
  9377.       ;;
  9378.  
  9379.     mingw* | cygwin* | pw32* | os2* | cegcc*)
  9380.       # This hack is so that the source file can tell whether it is being
  9381.       # built for inclusion in a dll (and should export symbols for example).
  9382.       # Although the cygwin gcc ignores -fPIC, still need this for old-style
  9383.       # (--disable-auto-import) libraries
  9384.       lt_prog_compiler_pic='-DDLL_EXPORT'
  9385.       ;;
  9386.  
  9387.     darwin* | rhapsody*)
  9388.       # PIC is the default on this platform
  9389.       # Common symbols not allowed in MH_DYLIB files
  9390.       lt_prog_compiler_pic='-fno-common'
  9391.       ;;
  9392.  
  9393.     haiku*)
  9394.       # PIC is the default for Haiku.
  9395.       # The "-static" flag exists, but is broken.
  9396.       lt_prog_compiler_static=
  9397.       ;;
  9398.  
  9399.     hpux*)
  9400.       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  9401.       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
  9402.       # sets the default TLS model and affects inlining.
  9403.       case $host_cpu in
  9404.       hppa*64*)
  9405.         # +Z the default
  9406.         ;;
  9407.       *)
  9408.         lt_prog_compiler_pic='-fPIC'
  9409.         ;;
  9410.       esac
  9411.       ;;
  9412.  
  9413.     interix[3-9]*)
  9414.       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  9415.       # Instead, we relocate shared libraries at runtime.
  9416.       ;;
  9417.  
  9418.     msdosdjgpp*)
  9419.       # Just because we use GCC doesn't mean we suddenly get shared libraries
  9420.       # on systems that don't support them.
  9421.       lt_prog_compiler_can_build_shared=no
  9422.       enable_shared=no
  9423.       ;;
  9424.  
  9425.     *nto* | *qnx*)
  9426.       # QNX uses GNU C++, but need to define -shared option too, otherwise
  9427.       # it will coredump.
  9428.       lt_prog_compiler_pic='-fPIC -shared'
  9429.       ;;
  9430.  
  9431.     sysv4*MP*)
  9432.       if test -d /usr/nec; then
  9433.         lt_prog_compiler_pic=-Kconform_pic
  9434.       fi
  9435.       ;;
  9436.  
  9437.     *)
  9438.       lt_prog_compiler_pic='-fPIC'
  9439.       ;;
  9440.     esac
  9441.  
  9442.     case $cc_basename in
  9443.     nvcc*) # Cuda Compiler Driver 2.2
  9444.       lt_prog_compiler_wl='-Xlinker '
  9445.       if test -n "$lt_prog_compiler_pic"; then
  9446.         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  9447.       fi
  9448.       ;;
  9449.     esac
  9450.   else
  9451.     # PORTME Check for flag to pass linker flags through the system compiler.
  9452.     case $host_os in
  9453.     aix*)
  9454.       lt_prog_compiler_wl='-Wl,'
  9455.       if test "$host_cpu" = ia64; then
  9456.         # AIX 5 now supports IA64 processor
  9457.         lt_prog_compiler_static='-Bstatic'
  9458.       else
  9459.         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  9460.       fi
  9461.       ;;
  9462.  
  9463.     mingw* | cygwin* | pw32* | os2* | cegcc*)
  9464.       # This hack is so that the source file can tell whether it is being
  9465.       # built for inclusion in a dll (and should export symbols for example).
  9466.       lt_prog_compiler_pic='-DDLL_EXPORT'
  9467.       ;;
  9468.  
  9469.     hpux9* | hpux10* | hpux11*)
  9470.       lt_prog_compiler_wl='-Wl,'
  9471.       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  9472.       # not for PA HP-UX.
  9473.       case $host_cpu in
  9474.       hppa*64*|ia64*)
  9475.         # +Z the default
  9476.         ;;
  9477.       *)
  9478.         lt_prog_compiler_pic='+Z'
  9479.         ;;
  9480.       esac
  9481.       # Is there a better lt_prog_compiler_static that works with the bundled CC?
  9482.       lt_prog_compiler_static='${wl}-a ${wl}archive'
  9483.       ;;
  9484.  
  9485.     irix5* | irix6* | nonstopux*)
  9486.       lt_prog_compiler_wl='-Wl,'
  9487.       # PIC (with -KPIC) is the default.
  9488.       lt_prog_compiler_static='-non_shared'
  9489.       ;;
  9490.  
  9491.     linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9492.       case $cc_basename in
  9493.       # old Intel for x86_64 which still supported -KPIC.
  9494.       ecc*)
  9495.         lt_prog_compiler_wl='-Wl,'
  9496.         lt_prog_compiler_pic='-KPIC'
  9497.         lt_prog_compiler_static='-static'
  9498.         ;;
  9499.       # icc used to be incompatible with GCC.
  9500.       # ICC 10 doesn't accept -KPIC any more.
  9501.       icc* | ifort*)
  9502.         lt_prog_compiler_wl='-Wl,'
  9503.         lt_prog_compiler_pic='-fPIC'
  9504.         lt_prog_compiler_static='-static'
  9505.         ;;
  9506.       # Lahey Fortran 8.1.
  9507.       lf95*)
  9508.         lt_prog_compiler_wl='-Wl,'
  9509.         lt_prog_compiler_pic='--shared'
  9510.         lt_prog_compiler_static='--static'
  9511.         ;;
  9512.       nagfor*)
  9513.         # NAG Fortran compiler
  9514.         lt_prog_compiler_wl='-Wl,-Wl,,'
  9515.         lt_prog_compiler_pic='-PIC'
  9516.         lt_prog_compiler_static='-Bstatic'
  9517.         ;;
  9518.       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  9519.         # Portland Group compilers (*not* the Pentium gcc compiler,
  9520.         # which looks to be a dead project)
  9521.         lt_prog_compiler_wl='-Wl,'
  9522.         lt_prog_compiler_pic='-fpic'
  9523.         lt_prog_compiler_static='-Bstatic'
  9524.         ;;
  9525.       ccc*)
  9526.         lt_prog_compiler_wl='-Wl,'
  9527.         # All Alpha code is PIC.
  9528.         lt_prog_compiler_static='-non_shared'
  9529.         ;;
  9530.       xl* | bgxl* | bgf* | mpixl*)
  9531.         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  9532.         lt_prog_compiler_wl='-Wl,'
  9533.         lt_prog_compiler_pic='-qpic'
  9534.         lt_prog_compiler_static='-qstaticlink'
  9535.         ;;
  9536.       *)
  9537.         case `$CC -V 2>&1 | sed 5q` in
  9538.         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  9539.           # Sun Fortran 8.3 passes all unrecognized flags to the linker
  9540.           lt_prog_compiler_pic='-KPIC'
  9541.           lt_prog_compiler_static='-Bstatic'
  9542.           lt_prog_compiler_wl=''
  9543.           ;;
  9544.         *Sun\ F* | *Sun*Fortran*)
  9545.           lt_prog_compiler_pic='-KPIC'
  9546.           lt_prog_compiler_static='-Bstatic'
  9547.           lt_prog_compiler_wl='-Qoption ld '
  9548.           ;;
  9549.         *Sun\ C*)
  9550.           # Sun C 5.9
  9551.           lt_prog_compiler_pic='-KPIC'
  9552.           lt_prog_compiler_static='-Bstatic'
  9553.           lt_prog_compiler_wl='-Wl,'
  9554.           ;;
  9555.         *Intel*\ [CF]*Compiler*)
  9556.           lt_prog_compiler_wl='-Wl,'
  9557.           lt_prog_compiler_pic='-fPIC'
  9558.           lt_prog_compiler_static='-static'
  9559.           ;;
  9560.         *Portland\ Group*)
  9561.           lt_prog_compiler_wl='-Wl,'
  9562.           lt_prog_compiler_pic='-fpic'
  9563.           lt_prog_compiler_static='-Bstatic'
  9564.           ;;
  9565.         esac
  9566.         ;;
  9567.       esac
  9568.       ;;
  9569.  
  9570.     newsos6)
  9571.       lt_prog_compiler_pic='-KPIC'
  9572.       lt_prog_compiler_static='-Bstatic'
  9573.       ;;
  9574.  
  9575.     *nto* | *qnx*)
  9576.       # QNX uses GNU C++, but need to define -shared option too, otherwise
  9577.       # it will coredump.
  9578.       lt_prog_compiler_pic='-fPIC -shared'
  9579.       ;;
  9580.  
  9581.     osf3* | osf4* | osf5*)
  9582.       lt_prog_compiler_wl='-Wl,'
  9583.       # All OSF/1 code is PIC.
  9584.       lt_prog_compiler_static='-non_shared'
  9585.       ;;
  9586.  
  9587.     rdos*)
  9588.       lt_prog_compiler_static='-non_shared'
  9589.       ;;
  9590.  
  9591.     solaris*)
  9592.       lt_prog_compiler_pic='-KPIC'
  9593.       lt_prog_compiler_static='-Bstatic'
  9594.       case $cc_basename in
  9595.       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  9596.         lt_prog_compiler_wl='-Qoption ld ';;
  9597.       *)
  9598.         lt_prog_compiler_wl='-Wl,';;
  9599.       esac
  9600.       ;;
  9601.  
  9602.     sunos4*)
  9603.       lt_prog_compiler_wl='-Qoption ld '
  9604.       lt_prog_compiler_pic='-PIC'
  9605.       lt_prog_compiler_static='-Bstatic'
  9606.       ;;
  9607.  
  9608.     sysv4 | sysv4.2uw2* | sysv4.3*)
  9609.       lt_prog_compiler_wl='-Wl,'
  9610.       lt_prog_compiler_pic='-KPIC'
  9611.       lt_prog_compiler_static='-Bstatic'
  9612.       ;;
  9613.  
  9614.     sysv4*MP*)
  9615.       if test -d /usr/nec ;then
  9616.         lt_prog_compiler_pic='-Kconform_pic'
  9617.         lt_prog_compiler_static='-Bstatic'
  9618.       fi
  9619.       ;;
  9620.  
  9621.     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  9622.       lt_prog_compiler_wl='-Wl,'
  9623.       lt_prog_compiler_pic='-KPIC'
  9624.       lt_prog_compiler_static='-Bstatic'
  9625.       ;;
  9626.  
  9627.     unicos*)
  9628.       lt_prog_compiler_wl='-Wl,'
  9629.       lt_prog_compiler_can_build_shared=no
  9630.       ;;
  9631.  
  9632.     uts4*)
  9633.       lt_prog_compiler_pic='-pic'
  9634.       lt_prog_compiler_static='-Bstatic'
  9635.       ;;
  9636.  
  9637.     *)
  9638.       lt_prog_compiler_can_build_shared=no
  9639.       ;;
  9640.     esac
  9641.   fi
  9642.  
  9643. case $host_os in
  9644.   # For platforms which do not support PIC, -DPIC is meaningless:
  9645.   *djgpp*)
  9646.     lt_prog_compiler_pic=
  9647.     ;;
  9648.   *)
  9649.     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  9650.     ;;
  9651. esac
  9652.  
  9653. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  9654. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  9655. if ${lt_cv_prog_compiler_pic+:} false; then :
  9656.   $as_echo_n "(cached) " >&6
  9657. else
  9658.   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  9659. fi
  9660. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  9661. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  9662. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  9663.  
  9664. #
  9665. # Check to make sure the PIC flag actually works.
  9666. #
  9667. if test -n "$lt_prog_compiler_pic"; then
  9668.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  9669. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  9670. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  9671.   $as_echo_n "(cached) " >&6
  9672. else
  9673.   lt_cv_prog_compiler_pic_works=no
  9674.    ac_outfile=conftest.$ac_objext
  9675.    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9676.    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  9677.    # Insert the option either (1) after the last *FLAGS variable, or
  9678.    # (2) before a word containing "conftest.", or (3) at the end.
  9679.    # Note that $ac_compile itself does not contain backslashes and begins
  9680.    # with a dollar sign (not a hyphen), so the echo should work correctly.
  9681.    # The option is referenced via a variable to avoid confusing sed.
  9682.    lt_compile=`echo "$ac_compile" | $SED \
  9683.    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  9684.    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  9685.    -e 's:$: $lt_compiler_flag:'`
  9686.    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  9687.    (eval "$lt_compile" 2>conftest.err)
  9688.    ac_status=$?
  9689.    cat conftest.err >&5
  9690.    echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9691.    if (exit $ac_status) && test -s "$ac_outfile"; then
  9692.      # The compiler can only warn and ignore the option if not recognized
  9693.      # So say no if there are warnings other than the usual output.
  9694.      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  9695.      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9696.      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  9697.        lt_cv_prog_compiler_pic_works=yes
  9698.      fi
  9699.    fi
  9700.    $RM conftest*
  9701.  
  9702. fi
  9703. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  9704. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  9705.  
  9706. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  9707.     case $lt_prog_compiler_pic in
  9708.      "" | " "*) ;;
  9709.      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  9710.      esac
  9711. else
  9712.     lt_prog_compiler_pic=
  9713.      lt_prog_compiler_can_build_shared=no
  9714. fi
  9715.  
  9716. fi
  9717.  
  9718.  
  9719.  
  9720.  
  9721.  
  9722.  
  9723.  
  9724.  
  9725.  
  9726.  
  9727.  
  9728. #
  9729. # Check to make sure the static flag actually works.
  9730. #
  9731. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  9732. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  9733. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  9734. if ${lt_cv_prog_compiler_static_works+:} false; then :
  9735.   $as_echo_n "(cached) " >&6
  9736. else
  9737.   lt_cv_prog_compiler_static_works=no
  9738.    save_LDFLAGS="$LDFLAGS"
  9739.    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  9740.    echo "$lt_simple_link_test_code" > conftest.$ac_ext
  9741.    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9742.      # The linker can only warn and ignore the option if not recognized
  9743.      # So say no if there are warnings
  9744.      if test -s conftest.err; then
  9745.        # Append any errors to the config.log.
  9746.        cat conftest.err 1>&5
  9747.        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  9748.        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9749.        if diff conftest.exp conftest.er2 >/dev/null; then
  9750.          lt_cv_prog_compiler_static_works=yes
  9751.        fi
  9752.      else
  9753.        lt_cv_prog_compiler_static_works=yes
  9754.      fi
  9755.    fi
  9756.    $RM -r conftest*
  9757.    LDFLAGS="$save_LDFLAGS"
  9758.  
  9759. fi
  9760. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  9761. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  9762.  
  9763. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  9764.     :
  9765. else
  9766.     lt_prog_compiler_static=
  9767. fi
  9768.  
  9769.  
  9770.  
  9771.  
  9772.  
  9773.  
  9774.  
  9775.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  9776. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  9777. if ${lt_cv_prog_compiler_c_o+:} false; then :
  9778.   $as_echo_n "(cached) " >&6
  9779. else
  9780.   lt_cv_prog_compiler_c_o=no
  9781.    $RM -r conftest 2>/dev/null
  9782.    mkdir conftest
  9783.    cd conftest
  9784.    mkdir out
  9785.    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9786.  
  9787.    lt_compiler_flag="-o out/conftest2.$ac_objext"
  9788.    # Insert the option either (1) after the last *FLAGS variable, or
  9789.    # (2) before a word containing "conftest.", or (3) at the end.
  9790.    # Note that $ac_compile itself does not contain backslashes and begins
  9791.    # with a dollar sign (not a hyphen), so the echo should work correctly.
  9792.    lt_compile=`echo "$ac_compile" | $SED \
  9793.    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  9794.    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  9795.    -e 's:$: $lt_compiler_flag:'`
  9796.    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  9797.    (eval "$lt_compile" 2>out/conftest.err)
  9798.    ac_status=$?
  9799.    cat out/conftest.err >&5
  9800.    echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9801.    if (exit $ac_status) && test -s out/conftest2.$ac_objext
  9802.    then
  9803.      # The compiler can only warn and ignore the option if not recognized
  9804.      # So say no if there are warnings
  9805.      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  9806.      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  9807.      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  9808.        lt_cv_prog_compiler_c_o=yes
  9809.      fi
  9810.    fi
  9811.    chmod u+w . 2>&5
  9812.    $RM conftest*
  9813.    # SGI C++ compiler will create directory out/ii_files/ for
  9814.    # template instantiation
  9815.    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  9816.    $RM out/* && rmdir out
  9817.    cd ..
  9818.    $RM -r conftest
  9819.    $RM conftest*
  9820.  
  9821. fi
  9822. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  9823. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  9824.  
  9825.  
  9826.  
  9827.  
  9828.  
  9829.  
  9830.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  9831. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  9832. if ${lt_cv_prog_compiler_c_o+:} false; then :
  9833.   $as_echo_n "(cached) " >&6
  9834. else
  9835.   lt_cv_prog_compiler_c_o=no
  9836.    $RM -r conftest 2>/dev/null
  9837.    mkdir conftest
  9838.    cd conftest
  9839.    mkdir out
  9840.    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9841.  
  9842.    lt_compiler_flag="-o out/conftest2.$ac_objext"
  9843.    # Insert the option either (1) after the last *FLAGS variable, or
  9844.    # (2) before a word containing "conftest.", or (3) at the end.
  9845.    # Note that $ac_compile itself does not contain backslashes and begins
  9846.    # with a dollar sign (not a hyphen), so the echo should work correctly.
  9847.    lt_compile=`echo "$ac_compile" | $SED \
  9848.    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  9849.    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  9850.    -e 's:$: $lt_compiler_flag:'`
  9851.    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  9852.    (eval "$lt_compile" 2>out/conftest.err)
  9853.    ac_status=$?
  9854.    cat out/conftest.err >&5
  9855.    echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9856.    if (exit $ac_status) && test -s out/conftest2.$ac_objext
  9857.    then
  9858.      # The compiler can only warn and ignore the option if not recognized
  9859.      # So say no if there are warnings
  9860.      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  9861.      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  9862.      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  9863.        lt_cv_prog_compiler_c_o=yes
  9864.      fi
  9865.    fi
  9866.    chmod u+w . 2>&5
  9867.    $RM conftest*
  9868.    # SGI C++ compiler will create directory out/ii_files/ for
  9869.    # template instantiation
  9870.    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  9871.    $RM out/* && rmdir out
  9872.    cd ..
  9873.    $RM -r conftest
  9874.    $RM conftest*
  9875.  
  9876. fi
  9877. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  9878. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  9879.  
  9880.  
  9881.  
  9882.  
  9883. hard_links="nottested"
  9884. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  9885.   # do not overwrite the value of need_locks provided by the user
  9886.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  9887. $as_echo_n "checking if we can lock with hard links... " >&6; }
  9888.   hard_links=yes
  9889.   $RM conftest*
  9890.   ln conftest.a conftest.b 2>/dev/null && hard_links=no
  9891.   touch conftest.a
  9892.   ln conftest.a conftest.b 2>&5 || hard_links=no
  9893.   ln conftest.a conftest.b 2>/dev/null && hard_links=no
  9894.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  9895. $as_echo "$hard_links" >&6; }
  9896.   if test "$hard_links" = no; then
  9897.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  9898. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  9899.     need_locks=warn
  9900.   fi
  9901. else
  9902.   need_locks=no
  9903. fi
  9904.  
  9905.  
  9906.  
  9907.  
  9908.  
  9909.  
  9910.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  9911. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  9912.  
  9913.   runpath_var=
  9914.   allow_undefined_flag=
  9915.   always_export_symbols=no
  9916.   archive_cmds=
  9917.   archive_expsym_cmds=
  9918.   compiler_needs_object=no
  9919.   enable_shared_with_static_runtimes=no
  9920.   export_dynamic_flag_spec=
  9921.   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  9922.   hardcode_automatic=no
  9923.   hardcode_direct=no
  9924.   hardcode_direct_absolute=no
  9925.   hardcode_libdir_flag_spec=
  9926.   hardcode_libdir_separator=
  9927.   hardcode_minus_L=no
  9928.   hardcode_shlibpath_var=unsupported
  9929.   inherit_rpath=no
  9930.   link_all_deplibs=unknown
  9931.   module_cmds=
  9932.   module_expsym_cmds=
  9933.   old_archive_from_new_cmds=
  9934.   old_archive_from_expsyms_cmds=
  9935.   thread_safe_flag_spec=
  9936.   whole_archive_flag_spec=
  9937.   # include_expsyms should be a list of space-separated symbols to be *always*
  9938.   # included in the symbol list
  9939.   include_expsyms=
  9940.   # exclude_expsyms can be an extended regexp of symbols to exclude
  9941.   # it will be wrapped by ` (' and `)$', so one must not match beginning or
  9942.   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  9943.   # as well as any symbol that contains `d'.
  9944.   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  9945.   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  9946.   # platforms (ab)use it in PIC code, but their linkers get confused if
  9947.   # the symbol is explicitly referenced.  Since portable code cannot
  9948.   # rely on this symbol name, it's probably fine to never include it in
  9949.   # preloaded symbol tables.
  9950.   # Exclude shared library initialization/finalization symbols.
  9951.   extract_expsyms_cmds=
  9952.  
  9953.   case $host_os in
  9954.   cygwin* | mingw* | pw32* | cegcc*)
  9955.     # FIXME: the MSVC++ port hasn't been tested in a loooong time
  9956.     # When not using gcc, we currently assume that we are using
  9957.     # Microsoft Visual C++.
  9958.     if test "$GCC" != yes; then
  9959.       with_gnu_ld=no
  9960.     fi
  9961.     ;;
  9962.   interix*)
  9963.     # we just hope/assume this is gcc and not c89 (= MSVC++)
  9964.     with_gnu_ld=yes
  9965.     ;;
  9966.   openbsd*)
  9967.     with_gnu_ld=no
  9968.     ;;
  9969.   esac
  9970.  
  9971.   ld_shlibs=yes
  9972.  
  9973.   # On some targets, GNU ld is compatible enough with the native linker
  9974.   # that we're better off using the native interface for both.
  9975.   lt_use_gnu_ld_interface=no
  9976.   if test "$with_gnu_ld" = yes; then
  9977.     case $host_os in
  9978.       aix*)
  9979.         # The AIX port of GNU ld has always aspired to compatibility
  9980.         # with the native linker.  However, as the warning in the GNU ld
  9981.         # block says, versions before 2.19.5* couldn't really create working
  9982.         # shared libraries, regardless of the interface used.
  9983.         case `$LD -v 2>&1` in
  9984.           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  9985.           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  9986.           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  9987.           *)
  9988.             lt_use_gnu_ld_interface=yes
  9989.             ;;
  9990.         esac
  9991.         ;;
  9992.       *)
  9993.         lt_use_gnu_ld_interface=yes
  9994.         ;;
  9995.     esac
  9996.   fi
  9997.  
  9998.   if test "$lt_use_gnu_ld_interface" = yes; then
  9999.     # If archive_cmds runs LD, not CC, wlarc should be empty
  10000.     wlarc='${wl}'
  10001.  
  10002.     # Set some defaults for GNU ld with shared library support. These
  10003.     # are reset later if shared libraries are not supported. Putting them
  10004.     # here allows them to be overridden if necessary.
  10005.     runpath_var=LD_RUN_PATH
  10006.     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  10007.     export_dynamic_flag_spec='${wl}--export-dynamic'
  10008.     # ancient GNU ld didn't support --whole-archive et. al.
  10009.     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  10010.       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10011.     else
  10012.       whole_archive_flag_spec=
  10013.     fi
  10014.     supports_anon_versioning=no
  10015.     case `$LD -v 2>&1` in
  10016.       *GNU\ gold*) supports_anon_versioning=yes ;;
  10017.       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  10018.       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  10019.       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  10020.       *\ 2.11.*) ;; # other 2.11 versions
  10021.       *) supports_anon_versioning=yes ;;
  10022.     esac
  10023.  
  10024.     # See if GNU ld supports shared libraries.
  10025.     case $host_os in
  10026.     aix[3-9]*)
  10027.       # On AIX/PPC, the GNU linker is very broken
  10028.       if test "$host_cpu" != ia64; then
  10029.         ld_shlibs=no
  10030.         cat <<_LT_EOF 1>&2
  10031.  
  10032. *** Warning: the GNU linker, at least up to release 2.19, is reported
  10033. *** to be unable to reliably create shared libraries on AIX.
  10034. *** Therefore, libtool is disabling shared libraries support.  If you
  10035. *** really care for shared libraries, you may want to install binutils
  10036. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  10037. *** You will then need to restart the configuration process.
  10038.  
  10039. _LT_EOF
  10040.       fi
  10041.       ;;
  10042.  
  10043.     amigaos*)
  10044.       case $host_cpu in
  10045.       powerpc)
  10046.             # see comment about AmigaOS4 .so support
  10047.             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10048.             archive_expsym_cmds=''
  10049.         ;;
  10050.       m68k)
  10051.             archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  10052.             hardcode_libdir_flag_spec='-L$libdir'
  10053.             hardcode_minus_L=yes
  10054.         ;;
  10055.       esac
  10056.       ;;
  10057.  
  10058.     beos*)
  10059.       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  10060.         allow_undefined_flag=unsupported
  10061.         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  10062.         # support --undefined.  This deserves some investigation.  FIXME
  10063.         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10064.       else
  10065.         ld_shlibs=no
  10066.       fi
  10067.       ;;
  10068.  
  10069.     cygwin* | mingw* | pw32* | cegcc*)
  10070.       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  10071.       # as there is no search path for DLLs.
  10072.       hardcode_libdir_flag_spec='-L$libdir'
  10073.       export_dynamic_flag_spec='${wl}--export-all-symbols'
  10074.       allow_undefined_flag=unsupported
  10075.       always_export_symbols=no
  10076.       enable_shared_with_static_runtimes=yes
  10077.       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  10078.       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  10079.  
  10080.       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  10081.         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  10082.         # If the export-symbols file already is a .def file (1st line
  10083.         # is EXPORTS), use it as is; otherwise, prepend...
  10084.         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  10085.           cp $export_symbols $output_objdir/$soname.def;
  10086.         else
  10087.           echo EXPORTS > $output_objdir/$soname.def;
  10088.           cat $export_symbols >> $output_objdir/$soname.def;
  10089.         fi~
  10090.         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  10091.       else
  10092.         ld_shlibs=no
  10093.       fi
  10094.       ;;
  10095.  
  10096.     haiku*)
  10097.       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10098.       link_all_deplibs=yes
  10099.       ;;
  10100.  
  10101.     interix[3-9]*)
  10102.       hardcode_direct=no
  10103.       hardcode_shlibpath_var=no
  10104.       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  10105.       export_dynamic_flag_spec='${wl}-E'
  10106.       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  10107.       # Instead, shared libraries are loaded at an image base (0x10000000 by
  10108.       # default) and relocated if they conflict, which is a slow very memory
  10109.       # consuming and fragmenting process.  To avoid this, we pick a random,
  10110.       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  10111.       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
  10112.       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  10113.       archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  10114.       ;;
  10115.  
  10116.     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  10117.       tmp_diet=no
  10118.       if test "$host_os" = linux-dietlibc; then
  10119.         case $cc_basename in
  10120.           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
  10121.         esac
  10122.       fi
  10123.       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  10124.          && test "$tmp_diet" = no
  10125.       then
  10126.         tmp_addflag=' $pic_flag'
  10127.         tmp_sharedflag='-shared'
  10128.         case $cc_basename,$host_cpu in
  10129.         pgcc*)                          # Portland Group C compiler
  10130.           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  10131.           tmp_addflag=' $pic_flag'
  10132.           ;;
  10133.         pgf77* | pgf90* | pgf95* | pgfortran*)
  10134.                                         # Portland Group f77 and f90 compilers
  10135.           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  10136.           tmp_addflag=' $pic_flag -Mnomain' ;;
  10137.         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
  10138.           tmp_addflag=' -i_dynamic' ;;
  10139.         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
  10140.           tmp_addflag=' -i_dynamic -nofor_main' ;;
  10141.         ifc* | ifort*)                  # Intel Fortran compiler
  10142.           tmp_addflag=' -nofor_main' ;;
  10143.         lf95*)                          # Lahey Fortran 8.1
  10144.           whole_archive_flag_spec=
  10145.           tmp_sharedflag='--shared' ;;
  10146.         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  10147.           tmp_sharedflag='-qmkshrobj'
  10148.           tmp_addflag= ;;
  10149.         nvcc*)  # Cuda Compiler Driver 2.2
  10150.           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  10151.           compiler_needs_object=yes
  10152.           ;;
  10153.         esac
  10154.         case `$CC -V 2>&1 | sed 5q` in
  10155.         *Sun\ C*)                       # Sun C 5.9
  10156.           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  10157.           compiler_needs_object=yes
  10158.           tmp_sharedflag='-G' ;;
  10159.         *Sun\ F*)                       # Sun Fortran 8.3
  10160.           tmp_sharedflag='-G' ;;
  10161.         esac
  10162.         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10163.  
  10164.         if test "x$supports_anon_versioning" = xyes; then
  10165.           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  10166.             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  10167.             echo "local: *; };" >> $output_objdir/$libname.ver~
  10168.             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  10169.         fi
  10170.  
  10171.         case $cc_basename in
  10172.         xlf* | bgf* | bgxlf* | mpixlf*)
  10173.           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  10174.           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  10175.           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  10176.           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  10177.           if test "x$supports_anon_versioning" = xyes; then
  10178.             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  10179.               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  10180.               echo "local: *; };" >> $output_objdir/$libname.ver~
  10181.               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  10182.           fi
  10183.           ;;
  10184.         esac
  10185.       else
  10186.         ld_shlibs=no
  10187.       fi
  10188.       ;;
  10189.  
  10190.     netbsd*)
  10191.       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10192.         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  10193.         wlarc=
  10194.       else
  10195.         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10196.         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  10197.       fi
  10198.       ;;
  10199.  
  10200.     solaris*)
  10201.       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  10202.         ld_shlibs=no
  10203.         cat <<_LT_EOF 1>&2
  10204.  
  10205. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  10206. *** create shared libraries on Solaris systems.  Therefore, libtool
  10207. *** is disabling shared libraries support.  We urge you to upgrade GNU
  10208. *** binutils to release 2.9.1 or newer.  Another option is to modify
  10209. *** your PATH or compiler configuration so that the native linker is
  10210. *** used, and then restart.
  10211.  
  10212. _LT_EOF
  10213.       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  10214.         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10215.         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  10216.       else
  10217.         ld_shlibs=no
  10218.       fi
  10219.       ;;
  10220.  
  10221.     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  10222.       case `$LD -v 2>&1` in
  10223.         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  10224.         ld_shlibs=no
  10225.         cat <<_LT_EOF 1>&2
  10226.  
  10227. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  10228. *** reliably create shared libraries on SCO systems.  Therefore, libtool
  10229. *** is disabling shared libraries support.  We urge you to upgrade GNU
  10230. *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
  10231. *** your PATH or compiler configuration so that the native linker is
  10232. *** used, and then restart.
  10233.  
  10234. _LT_EOF
  10235.         ;;
  10236.         *)
  10237.           # For security reasons, it is highly recommended that you always
  10238.           # use absolute paths for naming shared libraries, and exclude the
  10239.           # DT_RUNPATH tag from executables and libraries.  But doing so
  10240.           # requires that you compile everything twice, which is a pain.
  10241.           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  10242.             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  10243.             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10244.             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  10245.           else
  10246.             ld_shlibs=no
  10247.           fi
  10248.         ;;
  10249.       esac
  10250.       ;;
  10251.  
  10252.     sunos4*)
  10253.       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  10254.       wlarc=
  10255.       hardcode_direct=yes
  10256.       hardcode_shlibpath_var=no
  10257.       ;;
  10258.  
  10259.     *)
  10260.       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  10261.         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10262.         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  10263.       else
  10264.         ld_shlibs=no
  10265.       fi
  10266.       ;;
  10267.     esac
  10268.  
  10269.     if test "$ld_shlibs" = no; then
  10270.       runpath_var=
  10271.       hardcode_libdir_flag_spec=
  10272.       export_dynamic_flag_spec=
  10273.       whole_archive_flag_spec=
  10274.     fi
  10275.   else
  10276.     # PORTME fill in a description of your system's linker (not GNU ld)
  10277.     case $host_os in
  10278.     aix3*)
  10279.       allow_undefined_flag=unsupported
  10280.       always_export_symbols=yes
  10281.       archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  10282.       # Note: this linker hardcodes the directories in LIBPATH if there
  10283.       # are no directories specified by -L.
  10284.       hardcode_minus_L=yes
  10285.       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  10286.         # Neither direct hardcoding nor static linking is supported with a
  10287.         # broken collect2.
  10288.         hardcode_direct=unsupported
  10289.       fi
  10290.       ;;
  10291.  
  10292.     aix[4-9]*)
  10293.       if test "$host_cpu" = ia64; then
  10294.         # On IA64, the linker does run time linking by default, so we don't
  10295.         # have to do anything special.
  10296.         aix_use_runtimelinking=no
  10297.         exp_sym_flag='-Bexport'
  10298.         no_entry_flag=""
  10299.       else
  10300.         # If we're using GNU nm, then we don't want the "-C" option.
  10301.         # -C means demangle to AIX nm, but means don't demangle with GNU nm
  10302.         # Also, AIX nm treats weak defined symbols like other global
  10303.         # defined symbols, whereas GNU nm marks them as "W".
  10304.         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  10305.           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  10306.         else
  10307.           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  10308.         fi
  10309.         aix_use_runtimelinking=no
  10310.  
  10311.         # Test if we are trying to use run time linking or normal
  10312.         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10313.         # need to do runtime linking.
  10314.         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  10315.           for ld_flag in $LDFLAGS; do
  10316.           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  10317.             aix_use_runtimelinking=yes
  10318.             break
  10319.           fi
  10320.           done
  10321.           ;;
  10322.         esac
  10323.  
  10324.         exp_sym_flag='-bexport'
  10325.         no_entry_flag='-bnoentry'
  10326.       fi
  10327.  
  10328.       # When large executables or shared objects are built, AIX ld can
  10329.       # have problems creating the table of contents.  If linking a library
  10330.       # or program results in "error TOC overflow" add -mminimal-toc to
  10331.       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
  10332.       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10333.  
  10334.       archive_cmds=''
  10335.       hardcode_direct=yes
  10336.       hardcode_direct_absolute=yes
  10337.       hardcode_libdir_separator=':'
  10338.       link_all_deplibs=yes
  10339.       file_list_spec='${wl}-f,'
  10340.  
  10341.       if test "$GCC" = yes; then
  10342.         case $host_os in aix4.[012]|aix4.[012].*)
  10343.         # We only want to do this on AIX 4.2 and lower, the check
  10344.         # below for broken collect2 doesn't work under 4.3+
  10345.           collect2name=`${CC} -print-prog-name=collect2`
  10346.           if test -f "$collect2name" &&
  10347.            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  10348.           then
  10349.           # We have reworked collect2
  10350.           :
  10351.           else
  10352.           # We have old collect2
  10353.           hardcode_direct=unsupported
  10354.           # It fails to find uninstalled libraries when the uninstalled
  10355.           # path is not listed in the libpath.  Setting hardcode_minus_L
  10356.           # to unsupported forces relinking
  10357.           hardcode_minus_L=yes
  10358.           hardcode_libdir_flag_spec='-L$libdir'
  10359.           hardcode_libdir_separator=
  10360.           fi
  10361.           ;;
  10362.         esac
  10363.         shared_flag='-shared'
  10364.         if test "$aix_use_runtimelinking" = yes; then
  10365.           shared_flag="$shared_flag "'${wl}-G'
  10366.         fi
  10367.       else
  10368.         # not using gcc
  10369.         if test "$host_cpu" = ia64; then
  10370.         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  10371.         # chokes on -Wl,-G. The following line is correct:
  10372.           shared_flag='-G'
  10373.         else
  10374.           if test "$aix_use_runtimelinking" = yes; then
  10375.             shared_flag='${wl}-G'
  10376.           else
  10377.             shared_flag='${wl}-bM:SRE'
  10378.           fi
  10379.         fi
  10380.       fi
  10381.  
  10382.       export_dynamic_flag_spec='${wl}-bexpall'
  10383.       # It seems that -bexpall does not export symbols beginning with
  10384.       # underscore (_), so it is better to generate a list of symbols to export.
  10385.       always_export_symbols=yes
  10386.       if test "$aix_use_runtimelinking" = yes; then
  10387.         # Warning - without using the other runtime loading flags (-brtl),
  10388.         # -berok will link without error, but may produce a broken library.
  10389.         allow_undefined_flag='-berok'
  10390.         # Determine the default libpath from the value encoded in an
  10391.         # empty executable.
  10392.         if test "${lt_cv_aix_libpath+set}" = set; then
  10393.   aix_libpath=$lt_cv_aix_libpath
  10394. else
  10395.   if ${lt_cv_aix_libpath_+:} false; then :
  10396.   $as_echo_n "(cached) " >&6
  10397. else
  10398.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10399. /* end confdefs.h.  */
  10400.  
  10401. int
  10402. main ()
  10403. {
  10404.  
  10405.   ;
  10406.   return 0;
  10407. }
  10408. _ACEOF
  10409. if ac_fn_c_try_link "$LINENO"; then :
  10410.  
  10411.   lt_aix_libpath_sed='
  10412.       /Import File Strings/,/^$/ {
  10413.           /^0/ {
  10414.               s/^0  *\([^ ]*\) *$/\1/
  10415.               p
  10416.           }
  10417.       }'
  10418.   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10419.   # Check for a 64-bit object if we didn't find anything.
  10420.   if test -z "$lt_cv_aix_libpath_"; then
  10421.     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10422.   fi
  10423. fi
  10424. rm -f core conftest.err conftest.$ac_objext \
  10425.     conftest$ac_exeext conftest.$ac_ext
  10426.   if test -z "$lt_cv_aix_libpath_"; then
  10427.     lt_cv_aix_libpath_="/usr/lib:/lib"
  10428.   fi
  10429.  
  10430. fi
  10431.  
  10432.   aix_libpath=$lt_cv_aix_libpath_
  10433. fi
  10434.  
  10435.         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  10436.         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  10437.       else
  10438.         if test "$host_cpu" = ia64; then
  10439.           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  10440.           allow_undefined_flag="-z nodefs"
  10441.           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  10442.         else
  10443.          # Determine the default libpath from the value encoded in an
  10444.          # empty executable.
  10445.          if test "${lt_cv_aix_libpath+set}" = set; then
  10446.   aix_libpath=$lt_cv_aix_libpath
  10447. else
  10448.   if ${lt_cv_aix_libpath_+:} false; then :
  10449.   $as_echo_n "(cached) " >&6
  10450. else
  10451.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10452. /* end confdefs.h.  */
  10453.  
  10454. int
  10455. main ()
  10456. {
  10457.  
  10458.   ;
  10459.   return 0;
  10460. }
  10461. _ACEOF
  10462. if ac_fn_c_try_link "$LINENO"; then :
  10463.  
  10464.   lt_aix_libpath_sed='
  10465.       /Import File Strings/,/^$/ {
  10466.           /^0/ {
  10467.               s/^0  *\([^ ]*\) *$/\1/
  10468.               p
  10469.           }
  10470.       }'
  10471.   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10472.   # Check for a 64-bit object if we didn't find anything.
  10473.   if test -z "$lt_cv_aix_libpath_"; then
  10474.     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10475.   fi
  10476. fi
  10477. rm -f core conftest.err conftest.$ac_objext \
  10478.     conftest$ac_exeext conftest.$ac_ext
  10479.   if test -z "$lt_cv_aix_libpath_"; then
  10480.     lt_cv_aix_libpath_="/usr/lib:/lib"
  10481.   fi
  10482.  
  10483. fi
  10484.  
  10485.   aix_libpath=$lt_cv_aix_libpath_
  10486. fi
  10487.  
  10488.          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  10489.           # Warning - without using the other run time loading flags,
  10490.           # -berok will link without error, but may produce a broken library.
  10491.           no_undefined_flag=' ${wl}-bernotok'
  10492.           allow_undefined_flag=' ${wl}-berok'
  10493.           if test "$with_gnu_ld" = yes; then
  10494.             # We only use this code for GNU lds that support --whole-archive.
  10495.             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  10496.           else
  10497.             # Exported symbols can be pulled into shared objects from archives
  10498.             whole_archive_flag_spec='$convenience'
  10499.           fi
  10500.           archive_cmds_need_lc=yes
  10501.           # This is similar to how AIX traditionally builds its shared libraries.
  10502.           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  10503.         fi
  10504.       fi
  10505.       ;;
  10506.  
  10507.     amigaos*)
  10508.       case $host_cpu in
  10509.       powerpc)
  10510.             # see comment about AmigaOS4 .so support
  10511.             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10512.             archive_expsym_cmds=''
  10513.         ;;
  10514.       m68k)
  10515.             archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  10516.             hardcode_libdir_flag_spec='-L$libdir'
  10517.             hardcode_minus_L=yes
  10518.         ;;
  10519.       esac
  10520.       ;;
  10521.  
  10522.     bsdi[45]*)
  10523.       export_dynamic_flag_spec=-rdynamic
  10524.       ;;
  10525.  
  10526.     cygwin* | mingw* | pw32* | cegcc*)
  10527.       # When not using gcc, we currently assume that we are using
  10528.       # Microsoft Visual C++.
  10529.       # hardcode_libdir_flag_spec is actually meaningless, as there is
  10530.       # no search path for DLLs.
  10531.       case $cc_basename in
  10532.       cl*)
  10533.         # Native MSVC
  10534.         hardcode_libdir_flag_spec=' '
  10535.         allow_undefined_flag=unsupported
  10536.         always_export_symbols=yes
  10537.         file_list_spec='@'
  10538.         # Tell ltmain to make .lib files, not .a files.
  10539.         libext=lib
  10540.         # Tell ltmain to make .dll files, not .so files.
  10541.         shrext_cmds=".dll"
  10542.         # FIXME: Setting linknames here is a bad hack.
  10543.         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  10544.         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  10545.             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  10546.           else
  10547.             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  10548.           fi~
  10549.           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  10550.           linknames='
  10551.         # The linker will not automatically build a static lib if we build a DLL.
  10552.         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  10553.         enable_shared_with_static_runtimes=yes
  10554.         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  10555.         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  10556.         # Don't use ranlib
  10557.         old_postinstall_cmds='chmod 644 $oldlib'
  10558.         postlink_cmds='lt_outputfile="@OUTPUT@"~
  10559.           lt_tool_outputfile="@TOOL_OUTPUT@"~
  10560.           case $lt_outputfile in
  10561.             *.exe|*.EXE) ;;
  10562.             *)
  10563.               lt_outputfile="$lt_outputfile.exe"
  10564.               lt_tool_outputfile="$lt_tool_outputfile.exe"
  10565.               ;;
  10566.           esac~
  10567.           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  10568.             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  10569.             $RM "$lt_outputfile.manifest";
  10570.           fi'
  10571.         ;;
  10572.       *)
  10573.         # Assume MSVC wrapper
  10574.         hardcode_libdir_flag_spec=' '
  10575.         allow_undefined_flag=unsupported
  10576.         # Tell ltmain to make .lib files, not .a files.
  10577.         libext=lib
  10578.         # Tell ltmain to make .dll files, not .so files.
  10579.         shrext_cmds=".dll"
  10580.         # FIXME: Setting linknames here is a bad hack.
  10581.         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  10582.         # The linker will automatically build a .lib file if we build a DLL.
  10583.         old_archive_from_new_cmds='true'
  10584.         # FIXME: Should let the user specify the lib program.
  10585.         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  10586.         enable_shared_with_static_runtimes=yes
  10587.         ;;
  10588.       esac
  10589.       ;;
  10590.  
  10591.     darwin* | rhapsody*)
  10592.  
  10593.  
  10594.   archive_cmds_need_lc=no
  10595.   hardcode_direct=no
  10596.   hardcode_automatic=yes
  10597.   hardcode_shlibpath_var=unsupported
  10598.   if test "$lt_cv_ld_force_load" = "yes"; then
  10599.     whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  10600.  
  10601.   else
  10602.     whole_archive_flag_spec=''
  10603.   fi
  10604.   link_all_deplibs=yes
  10605.   allow_undefined_flag="$_lt_dar_allow_undefined"
  10606.   case $cc_basename in
  10607.      ifort*) _lt_dar_can_shared=yes ;;
  10608.      *) _lt_dar_can_shared=$GCC ;;
  10609.   esac
  10610.   if test "$_lt_dar_can_shared" = "yes"; then
  10611.     output_verbose_link_cmd=func_echo_all
  10612.     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  10613.     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  10614.     archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
  10615.     module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
  10616.  
  10617.   else
  10618.   ld_shlibs=no
  10619.   fi
  10620.  
  10621.       ;;
  10622.  
  10623.     dgux*)
  10624.       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10625.       hardcode_libdir_flag_spec='-L$libdir'
  10626.       hardcode_shlibpath_var=no
  10627.       ;;
  10628.  
  10629.     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  10630.     # support.  Future versions do this automatically, but an explicit c++rt0.o
  10631.     # does not break anything, and helps significantly (at the cost of a little
  10632.     # extra space).
  10633.     freebsd2.2*)
  10634.       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  10635.       hardcode_libdir_flag_spec='-R$libdir'
  10636.       hardcode_direct=yes
  10637.       hardcode_shlibpath_var=no
  10638.       ;;
  10639.  
  10640.     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  10641.     freebsd2.*)
  10642.       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  10643.       hardcode_direct=yes
  10644.       hardcode_minus_L=yes
  10645.       hardcode_shlibpath_var=no
  10646.       ;;
  10647.  
  10648.     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  10649.     freebsd* | dragonfly*)
  10650.       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  10651.       hardcode_libdir_flag_spec='-R$libdir'
  10652.       hardcode_direct=yes
  10653.       hardcode_shlibpath_var=no
  10654.       ;;
  10655.  
  10656.     hpux9*)
  10657.       if test "$GCC" = yes; then
  10658.         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  10659.       else
  10660.         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  10661.       fi
  10662.       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  10663.       hardcode_libdir_separator=:
  10664.       hardcode_direct=yes
  10665.  
  10666.       # hardcode_minus_L: Not really in the search PATH,
  10667.       # but as the default location of the library.
  10668.       hardcode_minus_L=yes
  10669.       export_dynamic_flag_spec='${wl}-E'
  10670.       ;;
  10671.  
  10672.     hpux10*)
  10673.       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  10674.         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  10675.       else
  10676.         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  10677.       fi
  10678.       if test "$with_gnu_ld" = no; then
  10679.         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  10680.         hardcode_libdir_separator=:
  10681.         hardcode_direct=yes
  10682.         hardcode_direct_absolute=yes
  10683.         export_dynamic_flag_spec='${wl}-E'
  10684.         # hardcode_minus_L: Not really in the search PATH,
  10685.         # but as the default location of the library.
  10686.         hardcode_minus_L=yes
  10687.       fi
  10688.       ;;
  10689.  
  10690.     hpux11*)
  10691.       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  10692.         case $host_cpu in
  10693.         hppa*64*)
  10694.           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10695.           ;;
  10696.         ia64*)
  10697.           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  10698.           ;;
  10699.         *)
  10700.           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  10701.           ;;
  10702.         esac
  10703.       else
  10704.         case $host_cpu in
  10705.         hppa*64*)
  10706.           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10707.           ;;
  10708.         ia64*)
  10709.           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  10710.           ;;
  10711.         *)
  10712.  
  10713.           # Older versions of the 11.00 compiler do not understand -b yet
  10714.           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  10715.           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  10716. $as_echo_n "checking if $CC understands -b... " >&6; }
  10717. if ${lt_cv_prog_compiler__b+:} false; then :
  10718.   $as_echo_n "(cached) " >&6
  10719. else
  10720.   lt_cv_prog_compiler__b=no
  10721.    save_LDFLAGS="$LDFLAGS"
  10722.    LDFLAGS="$LDFLAGS -b"
  10723.    echo "$lt_simple_link_test_code" > conftest.$ac_ext
  10724.    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  10725.      # The linker can only warn and ignore the option if not recognized
  10726.      # So say no if there are warnings
  10727.      if test -s conftest.err; then
  10728.        # Append any errors to the config.log.
  10729.        cat conftest.err 1>&5
  10730.        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  10731.        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  10732.        if diff conftest.exp conftest.er2 >/dev/null; then
  10733.          lt_cv_prog_compiler__b=yes
  10734.        fi
  10735.      else
  10736.        lt_cv_prog_compiler__b=yes
  10737.      fi
  10738.    fi
  10739.    $RM -r conftest*
  10740.    LDFLAGS="$save_LDFLAGS"
  10741.  
  10742. fi
  10743. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  10744. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  10745.  
  10746. if test x"$lt_cv_prog_compiler__b" = xyes; then
  10747.     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  10748. else
  10749.     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  10750. fi
  10751.  
  10752.           ;;
  10753.         esac
  10754.       fi
  10755.       if test "$with_gnu_ld" = no; then
  10756.         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  10757.         hardcode_libdir_separator=:
  10758.  
  10759.         case $host_cpu in
  10760.         hppa*64*|ia64*)
  10761.           hardcode_direct=no
  10762.           hardcode_shlibpath_var=no
  10763.           ;;
  10764.         *)
  10765.           hardcode_direct=yes
  10766.           hardcode_direct_absolute=yes
  10767.           export_dynamic_flag_spec='${wl}-E'
  10768.  
  10769.           # hardcode_minus_L: Not really in the search PATH,
  10770.           # but as the default location of the library.
  10771.           hardcode_minus_L=yes
  10772.           ;;
  10773.         esac
  10774.       fi
  10775.       ;;
  10776.  
  10777.     irix5* | irix6* | nonstopux*)
  10778.       if test "$GCC" = yes; then
  10779.         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  10780.         # Try to use the -exported_symbol ld option, if it does not
  10781.         # work, assume that -exports_file does not work either and
  10782.         # implicitly export all symbols.
  10783.         # This should be the same for all languages, so no per-tag cache variable.
  10784.         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  10785. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  10786. if ${lt_cv_irix_exported_symbol+:} false; then :
  10787.   $as_echo_n "(cached) " >&6
  10788. else
  10789.   save_LDFLAGS="$LDFLAGS"
  10790.            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  10791.            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10792. /* end confdefs.h.  */
  10793. int foo (void) { return 0; }
  10794. _ACEOF
  10795. if ac_fn_c_try_link "$LINENO"; then :
  10796.   lt_cv_irix_exported_symbol=yes
  10797. else
  10798.   lt_cv_irix_exported_symbol=no
  10799. fi
  10800. rm -f core conftest.err conftest.$ac_objext \
  10801.     conftest$ac_exeext conftest.$ac_ext
  10802.            LDFLAGS="$save_LDFLAGS"
  10803. fi
  10804. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  10805. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  10806.         if test "$lt_cv_irix_exported_symbol" = yes; then
  10807.           archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  10808.         fi
  10809.       else
  10810.         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  10811.         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
  10812.       fi
  10813.       archive_cmds_need_lc='no'
  10814.       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  10815.       hardcode_libdir_separator=:
  10816.       inherit_rpath=yes
  10817.       link_all_deplibs=yes
  10818.       ;;
  10819.  
  10820.     netbsd*)
  10821.       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10822.         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
  10823.       else
  10824.         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
  10825.       fi
  10826.       hardcode_libdir_flag_spec='-R$libdir'
  10827.       hardcode_direct=yes
  10828.       hardcode_shlibpath_var=no
  10829.       ;;
  10830.  
  10831.     newsos6)
  10832.       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10833.       hardcode_direct=yes
  10834.       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  10835.       hardcode_libdir_separator=:
  10836.       hardcode_shlibpath_var=no
  10837.       ;;
  10838.  
  10839.     *nto* | *qnx*)
  10840.       ;;
  10841.  
  10842.     openbsd*)
  10843.       if test -f /usr/libexec/ld.so; then
  10844.         hardcode_direct=yes
  10845.         hardcode_shlibpath_var=no
  10846.         hardcode_direct_absolute=yes
  10847.         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10848.           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  10849.           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  10850.           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  10851.           export_dynamic_flag_spec='${wl}-E'
  10852.         else
  10853.           case $host_os in
  10854.            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  10855.              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  10856.              hardcode_libdir_flag_spec='-R$libdir'
  10857.              ;;
  10858.            *)
  10859.              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  10860.              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  10861.              ;;
  10862.           esac
  10863.         fi
  10864.       else
  10865.         ld_shlibs=no
  10866.       fi
  10867.       ;;
  10868.  
  10869.     os2*)
  10870.       hardcode_libdir_flag_spec='-L$libdir'
  10871.       hardcode_minus_L=yes
  10872.       allow_undefined_flag=unsupported
  10873.       archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  10874.       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  10875.       ;;
  10876.  
  10877.     osf3*)
  10878.       if test "$GCC" = yes; then
  10879.         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  10880.         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  10881.       else
  10882.         allow_undefined_flag=' -expect_unresolved \*'
  10883.         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  10884.       fi
  10885.       archive_cmds_need_lc='no'
  10886.       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  10887.       hardcode_libdir_separator=:
  10888.       ;;
  10889.  
  10890.     osf4* | osf5*)      # as osf3* with the addition of -msym flag
  10891.       if test "$GCC" = yes; then
  10892.         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  10893.         archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  10894.         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  10895.       else
  10896.         allow_undefined_flag=' -expect_unresolved \*'
  10897.         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  10898.         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
  10899.         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
  10900.  
  10901.         # Both c and cxx compiler support -rpath directly
  10902.         hardcode_libdir_flag_spec='-rpath $libdir'
  10903.       fi
  10904.       archive_cmds_need_lc='no'
  10905.       hardcode_libdir_separator=:
  10906.       ;;
  10907.  
  10908.     solaris*)
  10909.       no_undefined_flag=' -z defs'
  10910.       if test "$GCC" = yes; then
  10911.         wlarc='${wl}'
  10912.         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10913.         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10914.           $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  10915.       else
  10916.         case `$CC -V 2>&1` in
  10917.         *"Compilers 5.0"*)
  10918.           wlarc=''
  10919.           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10920.           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10921.           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  10922.           ;;
  10923.         *)
  10924.           wlarc='${wl}'
  10925.           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  10926.           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10927.           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  10928.           ;;
  10929.         esac
  10930.       fi
  10931.       hardcode_libdir_flag_spec='-R$libdir'
  10932.       hardcode_shlibpath_var=no
  10933.       case $host_os in
  10934.       solaris2.[0-5] | solaris2.[0-5].*) ;;
  10935.       *)
  10936.         # The compiler driver will combine and reorder linker options,
  10937.         # but understands `-z linker_flag'.  GCC discards it without `$wl',
  10938.         # but is careful enough not to reorder.
  10939.         # Supported since Solaris 2.6 (maybe 2.5.1?)
  10940.         if test "$GCC" = yes; then
  10941.           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  10942.         else
  10943.           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  10944.         fi
  10945.         ;;
  10946.       esac
  10947.       link_all_deplibs=yes
  10948.       ;;
  10949.  
  10950.     sunos4*)
  10951.       if test "x$host_vendor" = xsequent; then
  10952.         # Use $CC to link under sequent, because it throws in some extra .o
  10953.         # files that make .init and .fini sections work.
  10954.         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  10955.       else
  10956.         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  10957.       fi
  10958.       hardcode_libdir_flag_spec='-L$libdir'
  10959.       hardcode_direct=yes
  10960.       hardcode_minus_L=yes
  10961.       hardcode_shlibpath_var=no
  10962.       ;;
  10963.  
  10964.     sysv4)
  10965.       case $host_vendor in
  10966.         sni)
  10967.           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10968.           hardcode_direct=yes # is this really true???
  10969.         ;;
  10970.         siemens)
  10971.           ## LD is ld it makes a PLAMLIB
  10972.           ## CC just makes a GrossModule.
  10973.           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  10974.           reload_cmds='$CC -r -o $output$reload_objs'
  10975.           hardcode_direct=no
  10976.         ;;
  10977.         motorola)
  10978.           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10979.           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  10980.         ;;
  10981.       esac
  10982.       runpath_var='LD_RUN_PATH'
  10983.       hardcode_shlibpath_var=no
  10984.       ;;
  10985.  
  10986.     sysv4.3*)
  10987.       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10988.       hardcode_shlibpath_var=no
  10989.       export_dynamic_flag_spec='-Bexport'
  10990.       ;;
  10991.  
  10992.     sysv4*MP*)
  10993.       if test -d /usr/nec; then
  10994.         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10995.         hardcode_shlibpath_var=no
  10996.         runpath_var=LD_RUN_PATH
  10997.         hardcode_runpath_var=yes
  10998.         ld_shlibs=yes
  10999.       fi
  11000.       ;;
  11001.  
  11002.     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  11003.       no_undefined_flag='${wl}-z,text'
  11004.       archive_cmds_need_lc=no
  11005.       hardcode_shlibpath_var=no
  11006.       runpath_var='LD_RUN_PATH'
  11007.  
  11008.       if test "$GCC" = yes; then
  11009.         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11010.         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11011.       else
  11012.         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11013.         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11014.       fi
  11015.       ;;
  11016.  
  11017.     sysv5* | sco3.2v5* | sco5v6*)
  11018.       # Note: We can NOT use -z defs as we might desire, because we do not
  11019.       # link with -lc, and that would cause any symbols used from libc to
  11020.       # always be unresolved, which means just about no library would
  11021.       # ever link correctly.  If we're not using GNU ld we use -z text
  11022.       # though, which does catch some bad symbols but isn't as heavy-handed
  11023.       # as -z defs.
  11024.       no_undefined_flag='${wl}-z,text'
  11025.       allow_undefined_flag='${wl}-z,nodefs'
  11026.       archive_cmds_need_lc=no
  11027.       hardcode_shlibpath_var=no
  11028.       hardcode_libdir_flag_spec='${wl}-R,$libdir'
  11029.       hardcode_libdir_separator=':'
  11030.       link_all_deplibs=yes
  11031.       export_dynamic_flag_spec='${wl}-Bexport'
  11032.       runpath_var='LD_RUN_PATH'
  11033.  
  11034.       if test "$GCC" = yes; then
  11035.         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11036.         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11037.       else
  11038.         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11039.         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11040.       fi
  11041.       ;;
  11042.  
  11043.     uts4*)
  11044.       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11045.       hardcode_libdir_flag_spec='-L$libdir'
  11046.       hardcode_shlibpath_var=no
  11047.       ;;
  11048.  
  11049.     *)
  11050.       ld_shlibs=no
  11051.       ;;
  11052.     esac
  11053.  
  11054.     if test x$host_vendor = xsni; then
  11055.       case $host in
  11056.       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  11057.         export_dynamic_flag_spec='${wl}-Blargedynsym'
  11058.         ;;
  11059.       esac
  11060.     fi
  11061.   fi
  11062.  
  11063. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  11064. $as_echo "$ld_shlibs" >&6; }
  11065. test "$ld_shlibs" = no && can_build_shared=no
  11066.  
  11067. with_gnu_ld=$with_gnu_ld
  11068.  
  11069.  
  11070.  
  11071.  
  11072.  
  11073.  
  11074.  
  11075.  
  11076.  
  11077.  
  11078.  
  11079.  
  11080.  
  11081.  
  11082.  
  11083. #
  11084. # Do we need to explicitly link libc?
  11085. #
  11086. case "x$archive_cmds_need_lc" in
  11087. x|xyes)
  11088.   # Assume -lc should be added
  11089.   archive_cmds_need_lc=yes
  11090.  
  11091.   if test "$enable_shared" = yes && test "$GCC" = yes; then
  11092.     case $archive_cmds in
  11093.     *'~'*)
  11094.       # FIXME: we may have to deal with multi-command sequences.
  11095.       ;;
  11096.     '$CC '*)
  11097.       # Test whether the compiler implicitly links with -lc since on some
  11098.       # systems, -lgcc has to come before -lc. If gcc already passes -lc
  11099.       # to ld, don't add -lc before -lgcc.
  11100.       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  11101. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  11102. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  11103.   $as_echo_n "(cached) " >&6
  11104. else
  11105.   $RM conftest*
  11106.         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11107.  
  11108.         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11109.   (eval $ac_compile) 2>&5
  11110.   ac_status=$?
  11111.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11112.   test $ac_status = 0; } 2>conftest.err; then
  11113.           soname=conftest
  11114.           lib=conftest
  11115.           libobjs=conftest.$ac_objext
  11116.           deplibs=
  11117.           wl=$lt_prog_compiler_wl
  11118.           pic_flag=$lt_prog_compiler_pic
  11119.           compiler_flags=-v
  11120.           linker_flags=-v
  11121.           verstring=
  11122.           output_objdir=.
  11123.           libname=conftest
  11124.           lt_save_allow_undefined_flag=$allow_undefined_flag
  11125.           allow_undefined_flag=
  11126.           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  11127.   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  11128.   ac_status=$?
  11129.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11130.   test $ac_status = 0; }
  11131.           then
  11132.             lt_cv_archive_cmds_need_lc=no
  11133.           else
  11134.             lt_cv_archive_cmds_need_lc=yes
  11135.           fi
  11136.           allow_undefined_flag=$lt_save_allow_undefined_flag
  11137.         else
  11138.           cat conftest.err 1>&5
  11139.         fi
  11140.         $RM conftest*
  11141.  
  11142. fi
  11143. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  11144. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  11145.       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  11146.       ;;
  11147.     esac
  11148.   fi
  11149.   ;;
  11150. esac
  11151.  
  11152.  
  11153.  
  11154.  
  11155.  
  11156.  
  11157.  
  11158.  
  11159.  
  11160.  
  11161.  
  11162.  
  11163.  
  11164.  
  11165.  
  11166.  
  11167.  
  11168.  
  11169.  
  11170.  
  11171.  
  11172.  
  11173.  
  11174.  
  11175.  
  11176.  
  11177.  
  11178.  
  11179.  
  11180.  
  11181.  
  11182.  
  11183.  
  11184.  
  11185.  
  11186.  
  11187.  
  11188.  
  11189.  
  11190.  
  11191.  
  11192.  
  11193.  
  11194.  
  11195.  
  11196.  
  11197.  
  11198.  
  11199.  
  11200.  
  11201.  
  11202.  
  11203.  
  11204.  
  11205.  
  11206.  
  11207.  
  11208.  
  11209.  
  11210.  
  11211.  
  11212.  
  11213.  
  11214.  
  11215.  
  11216.  
  11217.  
  11218.  
  11219.  
  11220.  
  11221.  
  11222.  
  11223.  
  11224.  
  11225.  
  11226.  
  11227.  
  11228.  
  11229.  
  11230.  
  11231.  
  11232.  
  11233.  
  11234.  
  11235.  
  11236.  
  11237.  
  11238.  
  11239.  
  11240.  
  11241.  
  11242.  
  11243.  
  11244.  
  11245.  
  11246.  
  11247.  
  11248.  
  11249.  
  11250.  
  11251.  
  11252.  
  11253.  
  11254.  
  11255.  
  11256.  
  11257.  
  11258.  
  11259.  
  11260.  
  11261.  
  11262.  
  11263.  
  11264.  
  11265.  
  11266.  
  11267.  
  11268.  
  11269.  
  11270.  
  11271.  
  11272.  
  11273.  
  11274.  
  11275.  
  11276.  
  11277.  
  11278.  
  11279.  
  11280.  
  11281.  
  11282.  
  11283.  
  11284.  
  11285.  
  11286.  
  11287.  
  11288.  
  11289.  
  11290.  
  11291.  
  11292.  
  11293.  
  11294.  
  11295.  
  11296.  
  11297.  
  11298.  
  11299.  
  11300.  
  11301.  
  11302.  
  11303.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  11304. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  11305.  
  11306. if test "$GCC" = yes; then
  11307.   case $host_os in
  11308.     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  11309.     *) lt_awk_arg="/^libraries:/" ;;
  11310.   esac
  11311.   case $host_os in
  11312.     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  11313.     *) lt_sed_strip_eq="s,=/,/,g" ;;
  11314.   esac
  11315.   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  11316.   case $lt_search_path_spec in
  11317.   *\;*)
  11318.     # if the path contains ";" then we assume it to be the separator
  11319.     # otherwise default to the standard path separator (i.e. ":") - it is
  11320.     # assumed that no part of a normal pathname contains ";" but that should
  11321.     # okay in the real world where ";" in dirpaths is itself problematic.
  11322.     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  11323.     ;;
  11324.   *)
  11325.     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  11326.     ;;
  11327.   esac
  11328.   # Ok, now we have the path, separated by spaces, we can step through it
  11329.   # and add multilib dir if necessary.
  11330.   lt_tmp_lt_search_path_spec=
  11331.   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  11332.   for lt_sys_path in $lt_search_path_spec; do
  11333.     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  11334.       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  11335.     else
  11336.       test -d "$lt_sys_path" && \
  11337.         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  11338.     fi
  11339.   done
  11340.   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  11341. BEGIN {RS=" "; FS="/|\n";} {
  11342.   lt_foo="";
  11343.   lt_count=0;
  11344.   for (lt_i = NF; lt_i > 0; lt_i--) {
  11345.     if ($lt_i != "" && $lt_i != ".") {
  11346.       if ($lt_i == "..") {
  11347.         lt_count++;
  11348.       } else {
  11349.         if (lt_count == 0) {
  11350.           lt_foo="/" $lt_i lt_foo;
  11351.         } else {
  11352.           lt_count--;
  11353.         }
  11354.       }
  11355.     }
  11356.   }
  11357.   if (lt_foo != "") { lt_freq[lt_foo]++; }
  11358.   if (lt_freq[lt_foo] == 1) { print lt_foo; }
  11359. }'`
  11360.   # AWK program above erroneously prepends '/' to C:/dos/paths
  11361.   # for these hosts.
  11362.   case $host_os in
  11363.     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  11364.       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  11365.   esac
  11366.   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  11367. else
  11368.   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  11369. fi
  11370. library_names_spec=
  11371. libname_spec='lib$name'
  11372. soname_spec=
  11373. shrext_cmds=".so"
  11374. postinstall_cmds=
  11375. postuninstall_cmds=
  11376. finish_cmds=
  11377. finish_eval=
  11378. shlibpath_var=
  11379. shlibpath_overrides_runpath=unknown
  11380. version_type=none
  11381. dynamic_linker="$host_os ld.so"
  11382. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  11383. need_lib_prefix=unknown
  11384. hardcode_into_libs=no
  11385.  
  11386. # when you set need_version to no, make sure it does not cause -set_version
  11387. # flags to be left without arguments
  11388. need_version=unknown
  11389.  
  11390. case $host_os in
  11391. aix3*)
  11392.   version_type=linux # correct to gnu/linux during the next big refactor
  11393.   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  11394.   shlibpath_var=LIBPATH
  11395.  
  11396.   # AIX 3 has no versioning support, so we append a major version to the name.
  11397.   soname_spec='${libname}${release}${shared_ext}$major'
  11398.   ;;
  11399.  
  11400. aix[4-9]*)
  11401.   version_type=linux # correct to gnu/linux during the next big refactor
  11402.   need_lib_prefix=no
  11403.   need_version=no
  11404.   hardcode_into_libs=yes
  11405.   if test "$host_cpu" = ia64; then
  11406.     # AIX 5 supports IA64
  11407.     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  11408.     shlibpath_var=LD_LIBRARY_PATH
  11409.   else
  11410.     # With GCC up to 2.95.x, collect2 would create an import file
  11411.     # for dependence libraries.  The import file would start with
  11412.     # the line `#! .'.  This would cause the generated library to
  11413.     # depend on `.', always an invalid library.  This was fixed in
  11414.     # development snapshots of GCC prior to 3.0.
  11415.     case $host_os in
  11416.       aix4 | aix4.[01] | aix4.[01].*)
  11417.       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  11418.            echo ' yes '
  11419.            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  11420.         :
  11421.       else
  11422.         can_build_shared=no
  11423.       fi
  11424.       ;;
  11425.     esac
  11426.     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  11427.     # soname into executable. Probably we can add versioning support to
  11428.     # collect2, so additional links can be useful in future.
  11429.     if test "$aix_use_runtimelinking" = yes; then
  11430.       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  11431.       # instead of lib<name>.a to let people know that these are not
  11432.       # typical AIX shared libraries.
  11433.       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11434.     else
  11435.       # We preserve .a as extension for shared libraries through AIX4.2
  11436.       # and later when we are not doing run time linking.
  11437.       library_names_spec='${libname}${release}.a $libname.a'
  11438.       soname_spec='${libname}${release}${shared_ext}$major'
  11439.     fi
  11440.     shlibpath_var=LIBPATH
  11441.   fi
  11442.   ;;
  11443.  
  11444. amigaos*)
  11445.   case $host_cpu in
  11446.   powerpc)
  11447.     # Since July 2007 AmigaOS4 officially supports .so libraries.
  11448.     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  11449.     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11450.     ;;
  11451.   m68k)
  11452.     library_names_spec='$libname.ixlibrary $libname.a'
  11453.     # Create ${libname}_ixlibrary.a entries in /sys/libs.
  11454.     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  11455.     ;;
  11456.   esac
  11457.   ;;
  11458.  
  11459. beos*)
  11460.   library_names_spec='${libname}${shared_ext}'
  11461.   dynamic_linker="$host_os ld.so"
  11462.   shlibpath_var=LIBRARY_PATH
  11463.   ;;
  11464.  
  11465. bsdi[45]*)
  11466.   version_type=linux # correct to gnu/linux during the next big refactor
  11467.   need_version=no
  11468.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11469.   soname_spec='${libname}${release}${shared_ext}$major'
  11470.   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  11471.   shlibpath_var=LD_LIBRARY_PATH
  11472.   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  11473.   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  11474.   # the default ld.so.conf also contains /usr/contrib/lib and
  11475.   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  11476.   # libtool to hard-code these into programs
  11477.   ;;
  11478.  
  11479. cygwin* | mingw* | pw32* | cegcc*)
  11480.   version_type=windows
  11481.   shrext_cmds=".dll"
  11482.   need_version=no
  11483.   need_lib_prefix=no
  11484.  
  11485.   case $GCC,$cc_basename in
  11486.   yes,*)
  11487.     # gcc
  11488.     library_names_spec='$libname.dll.a'
  11489.     # DLL is installed to $(libdir)/../bin by postinstall_cmds
  11490.     postinstall_cmds='base_file=`basename \${file}`~
  11491.       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  11492.       dldir=$destdir/`dirname \$dlpath`~
  11493.       test -d \$dldir || mkdir -p \$dldir~
  11494.       $install_prog $dir/$dlname \$dldir/$dlname~
  11495.       chmod a+x \$dldir/$dlname~
  11496.       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  11497.         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  11498.       fi'
  11499.     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  11500.       dlpath=$dir/\$dldll~
  11501.        $RM \$dlpath'
  11502.     shlibpath_overrides_runpath=yes
  11503.  
  11504.     case $host_os in
  11505.     cygwin*)
  11506.       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  11507.       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11508.  
  11509.       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  11510.       ;;
  11511.     mingw* | cegcc*)
  11512.       # MinGW DLLs use traditional 'lib' prefix
  11513.       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11514.       ;;
  11515.     pw32*)
  11516.       # pw32 DLLs use 'pw' prefix rather than 'lib'
  11517.       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11518.       ;;
  11519.     esac
  11520.     dynamic_linker='Win32 ld.exe'
  11521.     ;;
  11522.  
  11523.   *,cl*)
  11524.     # Native MSVC
  11525.     libname_spec='$name'
  11526.     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11527.     library_names_spec='${libname}.dll.lib'
  11528.  
  11529.     case $build_os in
  11530.     mingw*)
  11531.       sys_lib_search_path_spec=
  11532.       lt_save_ifs=$IFS
  11533.       IFS=';'
  11534.       for lt_path in $LIB
  11535.       do
  11536.         IFS=$lt_save_ifs
  11537.         # Let DOS variable expansion print the short 8.3 style file name.
  11538.         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  11539.         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  11540.       done
  11541.       IFS=$lt_save_ifs
  11542.       # Convert to MSYS style.
  11543.       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  11544.       ;;
  11545.     cygwin*)
  11546.       # Convert to unix form, then to dos form, then back to unix form
  11547.       # but this time dos style (no spaces!) so that the unix form looks
  11548.       # like /cygdrive/c/PROGRA~1:/cygdr...
  11549.       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  11550.       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  11551.       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  11552.       ;;
  11553.     *)
  11554.       sys_lib_search_path_spec="$LIB"
  11555.       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  11556.         # It is most probably a Windows format PATH.
  11557.         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  11558.       else
  11559.         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  11560.       fi
  11561.       # FIXME: find the short name or the path components, as spaces are
  11562.       # common. (e.g. "Program Files" -> "PROGRA~1")
  11563.       ;;
  11564.     esac
  11565.  
  11566.     # DLL is installed to $(libdir)/../bin by postinstall_cmds
  11567.     postinstall_cmds='base_file=`basename \${file}`~
  11568.       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  11569.       dldir=$destdir/`dirname \$dlpath`~
  11570.       test -d \$dldir || mkdir -p \$dldir~
  11571.       $install_prog $dir/$dlname \$dldir/$dlname'
  11572.     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  11573.       dlpath=$dir/\$dldll~
  11574.        $RM \$dlpath'
  11575.     shlibpath_overrides_runpath=yes
  11576.     dynamic_linker='Win32 link.exe'
  11577.     ;;
  11578.  
  11579.   *)
  11580.     # Assume MSVC wrapper
  11581.     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  11582.     dynamic_linker='Win32 ld.exe'
  11583.     ;;
  11584.   esac
  11585.   # FIXME: first we should search . and the directory the executable is in
  11586.   shlibpath_var=PATH
  11587.   ;;
  11588.  
  11589. darwin* | rhapsody*)
  11590.   dynamic_linker="$host_os dyld"
  11591.   version_type=darwin
  11592.   need_lib_prefix=no
  11593.   need_version=no
  11594.   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  11595.   soname_spec='${libname}${release}${major}$shared_ext'
  11596.   shlibpath_overrides_runpath=yes
  11597.   shlibpath_var=DYLD_LIBRARY_PATH
  11598.   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  11599.  
  11600.   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  11601.   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  11602.   ;;
  11603.  
  11604. dgux*)
  11605.   version_type=linux # correct to gnu/linux during the next big refactor
  11606.   need_lib_prefix=no
  11607.   need_version=no
  11608.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  11609.   soname_spec='${libname}${release}${shared_ext}$major'
  11610.   shlibpath_var=LD_LIBRARY_PATH
  11611.   ;;
  11612.  
  11613. freebsd* | dragonfly*)
  11614.   # DragonFly does not have aout.  When/if they implement a new
  11615.   # versioning mechanism, adjust this.
  11616.   if test -x /usr/bin/objformat; then
  11617.     objformat=`/usr/bin/objformat`
  11618.   else
  11619.     case $host_os in
  11620.     freebsd[23].*) objformat=aout ;;
  11621.     *) objformat=elf ;;
  11622.     esac
  11623.   fi
  11624.   version_type=freebsd-$objformat
  11625.   case $version_type in
  11626.     freebsd-elf*)
  11627.       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  11628.       need_version=no
  11629.       need_lib_prefix=no
  11630.       ;;
  11631.     freebsd-*)
  11632.       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  11633.       need_version=yes
  11634.       ;;
  11635.   esac
  11636.   shlibpath_var=LD_LIBRARY_PATH
  11637.   case $host_os in
  11638.   freebsd2.*)
  11639.     shlibpath_overrides_runpath=yes
  11640.     ;;
  11641.   freebsd3.[01]* | freebsdelf3.[01]*)
  11642.     shlibpath_overrides_runpath=yes
  11643.     hardcode_into_libs=yes
  11644.     ;;
  11645.   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  11646.   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  11647.     shlibpath_overrides_runpath=no
  11648.     hardcode_into_libs=yes
  11649.     ;;
  11650.   *) # from 4.6 on, and DragonFly
  11651.     shlibpath_overrides_runpath=yes
  11652.     hardcode_into_libs=yes
  11653.     ;;
  11654.   esac
  11655.   ;;
  11656.  
  11657. gnu*)
  11658.   version_type=linux # correct to gnu/linux during the next big refactor
  11659.   need_lib_prefix=no
  11660.   need_version=no
  11661.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  11662.   soname_spec='${libname}${release}${shared_ext}$major'
  11663.   shlibpath_var=LD_LIBRARY_PATH
  11664.   shlibpath_overrides_runpath=no
  11665.   hardcode_into_libs=yes
  11666.   ;;
  11667.  
  11668. haiku*)
  11669.   version_type=linux # correct to gnu/linux during the next big refactor
  11670.   need_lib_prefix=no
  11671.   need_version=no
  11672.   dynamic_linker="$host_os runtime_loader"
  11673.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  11674.   soname_spec='${libname}${release}${shared_ext}$major'
  11675.   shlibpath_var=LIBRARY_PATH
  11676.   shlibpath_overrides_runpath=yes
  11677.   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  11678.   hardcode_into_libs=yes
  11679.   ;;
  11680.  
  11681. hpux9* | hpux10* | hpux11*)
  11682.   # Give a soname corresponding to the major version so that dld.sl refuses to
  11683.   # link against other versions.
  11684.   version_type=sunos
  11685.   need_lib_prefix=no
  11686.   need_version=no
  11687.   case $host_cpu in
  11688.   ia64*)
  11689.     shrext_cmds='.so'
  11690.     hardcode_into_libs=yes
  11691.     dynamic_linker="$host_os dld.so"
  11692.     shlibpath_var=LD_LIBRARY_PATH
  11693.     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  11694.     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11695.     soname_spec='${libname}${release}${shared_ext}$major'
  11696.     if test "X$HPUX_IA64_MODE" = X32; then
  11697.       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  11698.     else
  11699.       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  11700.     fi
  11701.     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11702.     ;;
  11703.   hppa*64*)
  11704.     shrext_cmds='.sl'
  11705.     hardcode_into_libs=yes
  11706.     dynamic_linker="$host_os dld.sl"
  11707.     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  11708.     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  11709.     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11710.     soname_spec='${libname}${release}${shared_ext}$major'
  11711.     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  11712.     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11713.     ;;
  11714.   *)
  11715.     shrext_cmds='.sl'
  11716.     dynamic_linker="$host_os dld.sl"
  11717.     shlibpath_var=SHLIB_PATH
  11718.     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  11719.     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11720.     soname_spec='${libname}${release}${shared_ext}$major'
  11721.     ;;
  11722.   esac
  11723.   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  11724.   postinstall_cmds='chmod 555 $lib'
  11725.   # or fails outright, so override atomically:
  11726.   install_override_mode=555
  11727.   ;;
  11728.  
  11729. interix[3-9]*)
  11730.   version_type=linux # correct to gnu/linux during the next big refactor
  11731.   need_lib_prefix=no
  11732.   need_version=no
  11733.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  11734.   soname_spec='${libname}${release}${shared_ext}$major'
  11735.   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  11736.   shlibpath_var=LD_LIBRARY_PATH
  11737.   shlibpath_overrides_runpath=no
  11738.   hardcode_into_libs=yes
  11739.   ;;
  11740.  
  11741. irix5* | irix6* | nonstopux*)
  11742.   case $host_os in
  11743.     nonstopux*) version_type=nonstopux ;;
  11744.     *)
  11745.         if test "$lt_cv_prog_gnu_ld" = yes; then
  11746.                 version_type=linux # correct to gnu/linux during the next big refactor
  11747.         else
  11748.                 version_type=irix
  11749.         fi ;;
  11750.   esac
  11751.   need_lib_prefix=no
  11752.   need_version=no
  11753.   soname_spec='${libname}${release}${shared_ext}$major'
  11754.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  11755.   case $host_os in
  11756.   irix5* | nonstopux*)
  11757.     libsuff= shlibsuff=
  11758.     ;;
  11759.   *)
  11760.     case $LD in # libtool.m4 will add one of these switches to LD
  11761.     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  11762.       libsuff= shlibsuff= libmagic=32-bit;;
  11763.     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  11764.       libsuff=32 shlibsuff=N32 libmagic=N32;;
  11765.     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  11766.       libsuff=64 shlibsuff=64 libmagic=64-bit;;
  11767.     *) libsuff= shlibsuff= libmagic=never-match;;
  11768.     esac
  11769.     ;;
  11770.   esac
  11771.   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  11772.   shlibpath_overrides_runpath=no
  11773.   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  11774.   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  11775.   hardcode_into_libs=yes
  11776.   ;;
  11777.  
  11778. # No shared lib support for Linux oldld, aout, or coff.
  11779. linux*oldld* | linux*aout* | linux*coff*)
  11780.   dynamic_linker=no
  11781.   ;;
  11782.  
  11783. # This must be glibc/ELF.
  11784. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11785.   version_type=linux # correct to gnu/linux during the next big refactor
  11786.   need_lib_prefix=no
  11787.   need_version=no
  11788.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11789.   soname_spec='${libname}${release}${shared_ext}$major'
  11790.   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  11791.   shlibpath_var=LD_LIBRARY_PATH
  11792.   shlibpath_overrides_runpath=no
  11793.  
  11794.   # Some binutils ld are patched to set DT_RUNPATH
  11795.   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  11796.   $as_echo_n "(cached) " >&6
  11797. else
  11798.   lt_cv_shlibpath_overrides_runpath=no
  11799.     save_LDFLAGS=$LDFLAGS
  11800.     save_libdir=$libdir
  11801.     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  11802.          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  11803.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11804. /* end confdefs.h.  */
  11805.  
  11806. int
  11807. main ()
  11808. {
  11809.  
  11810.   ;
  11811.   return 0;
  11812. }
  11813. _ACEOF
  11814. if ac_fn_c_try_link "$LINENO"; then :
  11815.   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  11816.   lt_cv_shlibpath_overrides_runpath=yes
  11817. fi
  11818. fi
  11819. rm -f core conftest.err conftest.$ac_objext \
  11820.     conftest$ac_exeext conftest.$ac_ext
  11821.     LDFLAGS=$save_LDFLAGS
  11822.     libdir=$save_libdir
  11823.  
  11824. fi
  11825.  
  11826.   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  11827.  
  11828.   # This implies no fast_install, which is unacceptable.
  11829.   # Some rework will be needed to allow for fast_install
  11830.   # before this can be enabled.
  11831.   hardcode_into_libs=yes
  11832.  
  11833.   # Append ld.so.conf contents to the search path
  11834.   if test -f /etc/ld.so.conf; then
  11835.     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
  11836.     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  11837.   fi
  11838.  
  11839.   # We used to test for /lib/ld.so.1 and disable shared libraries on
  11840.   # powerpc, because MkLinux only supported shared libraries with the
  11841.   # GNU dynamic linker.  Since this was broken with cross compilers,
  11842.   # most powerpc-linux boxes support dynamic linking these days and
  11843.   # people can always --disable-shared, the test was removed, and we
  11844.   # assume the GNU/Linux dynamic linker is in use.
  11845.   dynamic_linker='GNU/Linux ld.so'
  11846.   ;;
  11847.  
  11848. netbsd*)
  11849.   version_type=sunos
  11850.   need_lib_prefix=no
  11851.   need_version=no
  11852.   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11853.     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  11854.     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  11855.     dynamic_linker='NetBSD (a.out) ld.so'
  11856.   else
  11857.     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  11858.     soname_spec='${libname}${release}${shared_ext}$major'
  11859.     dynamic_linker='NetBSD ld.elf_so'
  11860.   fi
  11861.   shlibpath_var=LD_LIBRARY_PATH
  11862.   shlibpath_overrides_runpath=yes
  11863.   hardcode_into_libs=yes
  11864.   ;;
  11865.  
  11866. newsos6)
  11867.   version_type=linux # correct to gnu/linux during the next big refactor
  11868.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11869.   shlibpath_var=LD_LIBRARY_PATH
  11870.   shlibpath_overrides_runpath=yes
  11871.   ;;
  11872.  
  11873. *nto* | *qnx*)
  11874.   version_type=qnx
  11875.   need_lib_prefix=no
  11876.   need_version=no
  11877.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11878.   soname_spec='${libname}${release}${shared_ext}$major'
  11879.   shlibpath_var=LD_LIBRARY_PATH
  11880.   shlibpath_overrides_runpath=no
  11881.   hardcode_into_libs=yes
  11882.   dynamic_linker='ldqnx.so'
  11883.   ;;
  11884.  
  11885. openbsd*)
  11886.   version_type=sunos
  11887.   sys_lib_dlsearch_path_spec="/usr/lib"
  11888.   need_lib_prefix=no
  11889.   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  11890.   case $host_os in
  11891.     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
  11892.     *)                          need_version=no  ;;
  11893.   esac
  11894.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  11895.   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  11896.   shlibpath_var=LD_LIBRARY_PATH
  11897.   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11898.     case $host_os in
  11899.       openbsd2.[89] | openbsd2.[89].*)
  11900.         shlibpath_overrides_runpath=no
  11901.         ;;
  11902.       *)
  11903.         shlibpath_overrides_runpath=yes
  11904.         ;;
  11905.       esac
  11906.   else
  11907.     shlibpath_overrides_runpath=yes
  11908.   fi
  11909.   ;;
  11910.  
  11911. os2*)
  11912.   libname_spec='$name'
  11913.   shrext_cmds=".dll"
  11914.   need_lib_prefix=no
  11915.   library_names_spec='$libname${shared_ext} $libname.a'
  11916.   dynamic_linker='OS/2 ld.exe'
  11917.   shlibpath_var=LIBPATH
  11918.   ;;
  11919.  
  11920. osf3* | osf4* | osf5*)
  11921.   version_type=osf
  11922.   need_lib_prefix=no
  11923.   need_version=no
  11924.   soname_spec='${libname}${release}${shared_ext}$major'
  11925.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11926.   shlibpath_var=LD_LIBRARY_PATH
  11927.   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  11928.   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  11929.   ;;
  11930.  
  11931. rdos*)
  11932.   dynamic_linker=no
  11933.   ;;
  11934.  
  11935. solaris*)
  11936.   version_type=linux # correct to gnu/linux during the next big refactor
  11937.   need_lib_prefix=no
  11938.   need_version=no
  11939.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11940.   soname_spec='${libname}${release}${shared_ext}$major'
  11941.   shlibpath_var=LD_LIBRARY_PATH
  11942.   shlibpath_overrides_runpath=yes
  11943.   hardcode_into_libs=yes
  11944.   # ldd complains unless libraries are executable
  11945.   postinstall_cmds='chmod +x $lib'
  11946.   ;;
  11947.  
  11948. sunos4*)
  11949.   version_type=sunos
  11950.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  11951.   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  11952.   shlibpath_var=LD_LIBRARY_PATH
  11953.   shlibpath_overrides_runpath=yes
  11954.   if test "$with_gnu_ld" = yes; then
  11955.     need_lib_prefix=no
  11956.   fi
  11957.   need_version=yes
  11958.   ;;
  11959.  
  11960. sysv4 | sysv4.3*)
  11961.   version_type=linux # correct to gnu/linux during the next big refactor
  11962.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11963.   soname_spec='${libname}${release}${shared_ext}$major'
  11964.   shlibpath_var=LD_LIBRARY_PATH
  11965.   case $host_vendor in
  11966.     sni)
  11967.       shlibpath_overrides_runpath=no
  11968.       need_lib_prefix=no
  11969.       runpath_var=LD_RUN_PATH
  11970.       ;;
  11971.     siemens)
  11972.       need_lib_prefix=no
  11973.       ;;
  11974.     motorola)
  11975.       need_lib_prefix=no
  11976.       need_version=no
  11977.       shlibpath_overrides_runpath=no
  11978.       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  11979.       ;;
  11980.   esac
  11981.   ;;
  11982.  
  11983. sysv4*MP*)
  11984.   if test -d /usr/nec ;then
  11985.     version_type=linux # correct to gnu/linux during the next big refactor
  11986.     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  11987.     soname_spec='$libname${shared_ext}.$major'
  11988.     shlibpath_var=LD_LIBRARY_PATH
  11989.   fi
  11990.   ;;
  11991.  
  11992. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  11993.   version_type=freebsd-elf
  11994.   need_lib_prefix=no
  11995.   need_version=no
  11996.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  11997.   soname_spec='${libname}${release}${shared_ext}$major'
  11998.   shlibpath_var=LD_LIBRARY_PATH
  11999.   shlibpath_overrides_runpath=yes
  12000.   hardcode_into_libs=yes
  12001.   if test "$with_gnu_ld" = yes; then
  12002.     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  12003.   else
  12004.     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  12005.     case $host_os in
  12006.       sco3.2v5*)
  12007.         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  12008.         ;;
  12009.     esac
  12010.   fi
  12011.   sys_lib_dlsearch_path_spec='/usr/lib'
  12012.   ;;
  12013.  
  12014. tpf*)
  12015.   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
  12016.   version_type=linux # correct to gnu/linux during the next big refactor
  12017.   need_lib_prefix=no
  12018.   need_version=no
  12019.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12020.   shlibpath_var=LD_LIBRARY_PATH
  12021.   shlibpath_overrides_runpath=no
  12022.   hardcode_into_libs=yes
  12023.   ;;
  12024.  
  12025. uts4*)
  12026.   version_type=linux # correct to gnu/linux during the next big refactor
  12027.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12028.   soname_spec='${libname}${release}${shared_ext}$major'
  12029.   shlibpath_var=LD_LIBRARY_PATH
  12030.   ;;
  12031.  
  12032. *)
  12033.   dynamic_linker=no
  12034.   ;;
  12035. esac
  12036. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  12037. $as_echo "$dynamic_linker" >&6; }
  12038. test "$dynamic_linker" = no && can_build_shared=no
  12039.  
  12040. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  12041. if test "$GCC" = yes; then
  12042.   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  12043. fi
  12044.  
  12045. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  12046.   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  12047. fi
  12048. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  12049.   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  12050. fi
  12051.  
  12052.  
  12053.  
  12054.  
  12055.  
  12056.  
  12057.  
  12058.  
  12059.  
  12060.  
  12061.  
  12062.  
  12063.  
  12064.  
  12065.  
  12066.  
  12067.  
  12068.  
  12069.  
  12070.  
  12071.  
  12072.  
  12073.  
  12074.  
  12075.  
  12076.  
  12077.  
  12078.  
  12079.  
  12080.  
  12081.  
  12082.  
  12083.  
  12084.  
  12085.  
  12086.  
  12087.  
  12088.  
  12089.  
  12090.  
  12091.  
  12092.  
  12093.  
  12094.  
  12095.  
  12096.  
  12097.  
  12098.  
  12099.  
  12100.  
  12101.  
  12102.  
  12103.  
  12104.  
  12105.  
  12106.  
  12107.  
  12108.  
  12109.  
  12110.  
  12111.  
  12112.  
  12113.  
  12114.  
  12115.  
  12116.  
  12117.  
  12118.  
  12119.  
  12120.  
  12121.  
  12122.  
  12123.  
  12124.  
  12125.  
  12126.  
  12127.  
  12128.  
  12129.  
  12130.  
  12131.  
  12132.  
  12133.  
  12134.  
  12135.  
  12136.  
  12137.  
  12138.  
  12139.  
  12140.  
  12141.  
  12142.  
  12143.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  12144. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  12145. hardcode_action=
  12146. if test -n "$hardcode_libdir_flag_spec" ||
  12147.    test -n "$runpath_var" ||
  12148.    test "X$hardcode_automatic" = "Xyes" ; then
  12149.  
  12150.   # We can hardcode non-existent directories.
  12151.   if test "$hardcode_direct" != no &&
  12152.      # If the only mechanism to avoid hardcoding is shlibpath_var, we
  12153.      # have to relink, otherwise we might link with an installed library
  12154.      # when we should be linking with a yet-to-be-installed one
  12155.      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  12156.      test "$hardcode_minus_L" != no; then
  12157.     # Linking always hardcodes the temporary library directory.
  12158.     hardcode_action=relink
  12159.   else
  12160.     # We can link without hardcoding, and we can hardcode nonexisting dirs.
  12161.     hardcode_action=immediate
  12162.   fi
  12163. else
  12164.   # We cannot hardcode anything, or else we can only hardcode existing
  12165.   # directories.
  12166.   hardcode_action=unsupported
  12167. fi
  12168. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  12169. $as_echo "$hardcode_action" >&6; }
  12170.  
  12171. if test "$hardcode_action" = relink ||
  12172.    test "$inherit_rpath" = yes; then
  12173.   # Fast installation is not supported
  12174.   enable_fast_install=no
  12175. elif test "$shlibpath_overrides_runpath" = yes ||
  12176.      test "$enable_shared" = no; then
  12177.   # Fast installation is not necessary
  12178.   enable_fast_install=needless
  12179. fi
  12180.  
  12181.  
  12182.  
  12183.  
  12184.  
  12185.  
  12186.   if test "x$enable_dlopen" != xyes; then
  12187.   enable_dlopen=unknown
  12188.   enable_dlopen_self=unknown
  12189.   enable_dlopen_self_static=unknown
  12190. else
  12191.   lt_cv_dlopen=no
  12192.   lt_cv_dlopen_libs=
  12193.  
  12194.   case $host_os in
  12195.   beos*)
  12196.     lt_cv_dlopen="load_add_on"
  12197.     lt_cv_dlopen_libs=
  12198.     lt_cv_dlopen_self=yes
  12199.     ;;
  12200.  
  12201.   mingw* | pw32* | cegcc*)
  12202.     lt_cv_dlopen="LoadLibrary"
  12203.     lt_cv_dlopen_libs=
  12204.     ;;
  12205.  
  12206.   cygwin*)
  12207.     lt_cv_dlopen="dlopen"
  12208.     lt_cv_dlopen_libs=
  12209.     ;;
  12210.  
  12211.   darwin*)
  12212.   # if libdl is installed we need to link against it
  12213.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  12214. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  12215. if ${ac_cv_lib_dl_dlopen+:} false; then :
  12216.   $as_echo_n "(cached) " >&6
  12217. else
  12218.   ac_check_lib_save_LIBS=$LIBS
  12219. LIBS="-ldl  $LIBS"
  12220. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12221. /* end confdefs.h.  */
  12222.  
  12223. /* Override any GCC internal prototype to avoid an error.
  12224.    Use char because int might match the return type of a GCC
  12225.    builtin and then its argument prototype would still apply.  */
  12226. #ifdef __cplusplus
  12227. extern "C"
  12228. #endif
  12229. char dlopen ();
  12230. int
  12231. main ()
  12232. {
  12233. return dlopen ();
  12234.   ;
  12235.   return 0;
  12236. }
  12237. _ACEOF
  12238. if ac_fn_c_try_link "$LINENO"; then :
  12239.   ac_cv_lib_dl_dlopen=yes
  12240. else
  12241.   ac_cv_lib_dl_dlopen=no
  12242. fi
  12243. rm -f core conftest.err conftest.$ac_objext \
  12244.     conftest$ac_exeext conftest.$ac_ext
  12245. LIBS=$ac_check_lib_save_LIBS
  12246. fi
  12247. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  12248. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  12249. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  12250.   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  12251. else
  12252.  
  12253.     lt_cv_dlopen="dyld"
  12254.     lt_cv_dlopen_libs=
  12255.     lt_cv_dlopen_self=yes
  12256.  
  12257. fi
  12258.  
  12259.     ;;
  12260.  
  12261.   *)
  12262.     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  12263. if test "x$ac_cv_func_shl_load" = xyes; then :
  12264.   lt_cv_dlopen="shl_load"
  12265. else
  12266.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  12267. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  12268. if ${ac_cv_lib_dld_shl_load+:} false; then :
  12269.   $as_echo_n "(cached) " >&6
  12270. else
  12271.   ac_check_lib_save_LIBS=$LIBS
  12272. LIBS="-ldld  $LIBS"
  12273. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12274. /* end confdefs.h.  */
  12275.  
  12276. /* Override any GCC internal prototype to avoid an error.
  12277.    Use char because int might match the return type of a GCC
  12278.    builtin and then its argument prototype would still apply.  */
  12279. #ifdef __cplusplus
  12280. extern "C"
  12281. #endif
  12282. char shl_load ();
  12283. int
  12284. main ()
  12285. {
  12286. return shl_load ();
  12287.   ;
  12288.   return 0;
  12289. }
  12290. _ACEOF
  12291. if ac_fn_c_try_link "$LINENO"; then :
  12292.   ac_cv_lib_dld_shl_load=yes
  12293. else
  12294.   ac_cv_lib_dld_shl_load=no
  12295. fi
  12296. rm -f core conftest.err conftest.$ac_objext \
  12297.     conftest$ac_exeext conftest.$ac_ext
  12298. LIBS=$ac_check_lib_save_LIBS
  12299. fi
  12300. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  12301. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  12302. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  12303.   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  12304. else
  12305.   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  12306. if test "x$ac_cv_func_dlopen" = xyes; then :
  12307.   lt_cv_dlopen="dlopen"
  12308. else
  12309.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  12310. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  12311. if ${ac_cv_lib_dl_dlopen+:} false; then :
  12312.   $as_echo_n "(cached) " >&6
  12313. else
  12314.   ac_check_lib_save_LIBS=$LIBS
  12315. LIBS="-ldl  $LIBS"
  12316. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12317. /* end confdefs.h.  */
  12318.  
  12319. /* Override any GCC internal prototype to avoid an error.
  12320.    Use char because int might match the return type of a GCC
  12321.    builtin and then its argument prototype would still apply.  */
  12322. #ifdef __cplusplus
  12323. extern "C"
  12324. #endif
  12325. char dlopen ();
  12326. int
  12327. main ()
  12328. {
  12329. return dlopen ();
  12330.   ;
  12331.   return 0;
  12332. }
  12333. _ACEOF
  12334. if ac_fn_c_try_link "$LINENO"; then :
  12335.   ac_cv_lib_dl_dlopen=yes
  12336. else
  12337.   ac_cv_lib_dl_dlopen=no
  12338. fi
  12339. rm -f core conftest.err conftest.$ac_objext \
  12340.     conftest$ac_exeext conftest.$ac_ext
  12341. LIBS=$ac_check_lib_save_LIBS
  12342. fi
  12343. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  12344. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  12345. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  12346.   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  12347. else
  12348.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  12349. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  12350. if ${ac_cv_lib_svld_dlopen+:} false; then :
  12351.   $as_echo_n "(cached) " >&6
  12352. else
  12353.   ac_check_lib_save_LIBS=$LIBS
  12354. LIBS="-lsvld  $LIBS"
  12355. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12356. /* end confdefs.h.  */
  12357.  
  12358. /* Override any GCC internal prototype to avoid an error.
  12359.    Use char because int might match the return type of a GCC
  12360.    builtin and then its argument prototype would still apply.  */
  12361. #ifdef __cplusplus
  12362. extern "C"
  12363. #endif
  12364. char dlopen ();
  12365. int
  12366. main ()
  12367. {
  12368. return dlopen ();
  12369.   ;
  12370.   return 0;
  12371. }
  12372. _ACEOF
  12373. if ac_fn_c_try_link "$LINENO"; then :
  12374.   ac_cv_lib_svld_dlopen=yes
  12375. else
  12376.   ac_cv_lib_svld_dlopen=no
  12377. fi
  12378. rm -f core conftest.err conftest.$ac_objext \
  12379.     conftest$ac_exeext conftest.$ac_ext
  12380. LIBS=$ac_check_lib_save_LIBS
  12381. fi
  12382. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  12383. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  12384. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  12385.   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  12386. else
  12387.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  12388. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  12389. if ${ac_cv_lib_dld_dld_link+:} false; then :
  12390.   $as_echo_n "(cached) " >&6
  12391. else
  12392.   ac_check_lib_save_LIBS=$LIBS
  12393. LIBS="-ldld  $LIBS"
  12394. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12395. /* end confdefs.h.  */
  12396.  
  12397. /* Override any GCC internal prototype to avoid an error.
  12398.    Use char because int might match the return type of a GCC
  12399.    builtin and then its argument prototype would still apply.  */
  12400. #ifdef __cplusplus
  12401. extern "C"
  12402. #endif
  12403. char dld_link ();
  12404. int
  12405. main ()
  12406. {
  12407. return dld_link ();
  12408.   ;
  12409.   return 0;
  12410. }
  12411. _ACEOF
  12412. if ac_fn_c_try_link "$LINENO"; then :
  12413.   ac_cv_lib_dld_dld_link=yes
  12414. else
  12415.   ac_cv_lib_dld_dld_link=no
  12416. fi
  12417. rm -f core conftest.err conftest.$ac_objext \
  12418.     conftest$ac_exeext conftest.$ac_ext
  12419. LIBS=$ac_check_lib_save_LIBS
  12420. fi
  12421. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  12422. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  12423. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  12424.   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  12425. fi
  12426.  
  12427.  
  12428. fi
  12429.  
  12430.  
  12431. fi
  12432.  
  12433.  
  12434. fi
  12435.  
  12436.  
  12437. fi
  12438.  
  12439.  
  12440. fi
  12441.  
  12442.     ;;
  12443.   esac
  12444.  
  12445.   if test "x$lt_cv_dlopen" != xno; then
  12446.     enable_dlopen=yes
  12447.   else
  12448.     enable_dlopen=no
  12449.   fi
  12450.  
  12451.   case $lt_cv_dlopen in
  12452.   dlopen)
  12453.     save_CPPFLAGS="$CPPFLAGS"
  12454.     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  12455.  
  12456.     save_LDFLAGS="$LDFLAGS"
  12457.     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  12458.  
  12459.     save_LIBS="$LIBS"
  12460.     LIBS="$lt_cv_dlopen_libs $LIBS"
  12461.  
  12462.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  12463. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  12464. if ${lt_cv_dlopen_self+:} false; then :
  12465.   $as_echo_n "(cached) " >&6
  12466. else
  12467.           if test "$cross_compiling" = yes; then :
  12468.   lt_cv_dlopen_self=cross
  12469. else
  12470.   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  12471.   lt_status=$lt_dlunknown
  12472.   cat > conftest.$ac_ext <<_LT_EOF
  12473. #line $LINENO "configure"
  12474. #include "confdefs.h"
  12475.  
  12476. #if HAVE_DLFCN_H
  12477. #include <dlfcn.h>
  12478. #endif
  12479.  
  12480. #include <stdio.h>
  12481.  
  12482. #ifdef RTLD_GLOBAL
  12483. #  define LT_DLGLOBAL           RTLD_GLOBAL
  12484. #else
  12485. #  ifdef DL_GLOBAL
  12486. #    define LT_DLGLOBAL         DL_GLOBAL
  12487. #  else
  12488. #    define LT_DLGLOBAL         0
  12489. #  endif
  12490. #endif
  12491.  
  12492. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  12493.    find out it does not work in some platform. */
  12494. #ifndef LT_DLLAZY_OR_NOW
  12495. #  ifdef RTLD_LAZY
  12496. #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
  12497. #  else
  12498. #    ifdef DL_LAZY
  12499. #      define LT_DLLAZY_OR_NOW          DL_LAZY
  12500. #    else
  12501. #      ifdef RTLD_NOW
  12502. #        define LT_DLLAZY_OR_NOW        RTLD_NOW
  12503. #      else
  12504. #        ifdef DL_NOW
  12505. #          define LT_DLLAZY_OR_NOW      DL_NOW
  12506. #        else
  12507. #          define LT_DLLAZY_OR_NOW      0
  12508. #        endif
  12509. #      endif
  12510. #    endif
  12511. #  endif
  12512. #endif
  12513.  
  12514. /* When -fvisbility=hidden is used, assume the code has been annotated
  12515.    correspondingly for the symbols needed.  */
  12516. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  12517. int fnord () __attribute__((visibility("default")));
  12518. #endif
  12519.  
  12520. int fnord () { return 42; }
  12521. int main ()
  12522. {
  12523.   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  12524.   int status = $lt_dlunknown;
  12525.  
  12526.   if (self)
  12527.     {
  12528.       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
  12529.       else
  12530.         {
  12531.           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
  12532.           else puts (dlerror ());
  12533.         }
  12534.       /* dlclose (self); */
  12535.     }
  12536.   else
  12537.     puts (dlerror ());
  12538.  
  12539.   return status;
  12540. }
  12541. _LT_EOF
  12542.   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  12543.   (eval $ac_link) 2>&5
  12544.   ac_status=$?
  12545.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12546.   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  12547.     (./conftest; exit; ) >&5 2>/dev/null
  12548.     lt_status=$?
  12549.     case x$lt_status in
  12550.       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  12551.       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  12552.       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  12553.     esac
  12554.   else :
  12555.     # compilation failed
  12556.     lt_cv_dlopen_self=no
  12557.   fi
  12558. fi
  12559. rm -fr conftest*
  12560.  
  12561.  
  12562. fi
  12563. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  12564. $as_echo "$lt_cv_dlopen_self" >&6; }
  12565.  
  12566.     if test "x$lt_cv_dlopen_self" = xyes; then
  12567.       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  12568.       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  12569. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  12570. if ${lt_cv_dlopen_self_static+:} false; then :
  12571.   $as_echo_n "(cached) " >&6
  12572. else
  12573.           if test "$cross_compiling" = yes; then :
  12574.   lt_cv_dlopen_self_static=cross
  12575. else
  12576.   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  12577.   lt_status=$lt_dlunknown
  12578.   cat > conftest.$ac_ext <<_LT_EOF
  12579. #line $LINENO "configure"
  12580. #include "confdefs.h"
  12581.  
  12582. #if HAVE_DLFCN_H
  12583. #include <dlfcn.h>
  12584. #endif
  12585.  
  12586. #include <stdio.h>
  12587.  
  12588. #ifdef RTLD_GLOBAL
  12589. #  define LT_DLGLOBAL           RTLD_GLOBAL
  12590. #else
  12591. #  ifdef DL_GLOBAL
  12592. #    define LT_DLGLOBAL         DL_GLOBAL
  12593. #  else
  12594. #    define LT_DLGLOBAL         0
  12595. #  endif
  12596. #endif
  12597.  
  12598. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  12599.    find out it does not work in some platform. */
  12600. #ifndef LT_DLLAZY_OR_NOW
  12601. #  ifdef RTLD_LAZY
  12602. #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
  12603. #  else
  12604. #    ifdef DL_LAZY
  12605. #      define LT_DLLAZY_OR_NOW          DL_LAZY
  12606. #    else
  12607. #      ifdef RTLD_NOW
  12608. #        define LT_DLLAZY_OR_NOW        RTLD_NOW
  12609. #      else
  12610. #        ifdef DL_NOW
  12611. #          define LT_DLLAZY_OR_NOW      DL_NOW
  12612. #        else
  12613. #          define LT_DLLAZY_OR_NOW      0
  12614. #        endif
  12615. #      endif
  12616. #    endif
  12617. #  endif
  12618. #endif
  12619.  
  12620. /* When -fvisbility=hidden is used, assume the code has been annotated
  12621.    correspondingly for the symbols needed.  */
  12622. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  12623. int fnord () __attribute__((visibility("default")));
  12624. #endif
  12625.  
  12626. int fnord () { return 42; }
  12627. int main ()
  12628. {
  12629.   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  12630.   int status = $lt_dlunknown;
  12631.  
  12632.   if (self)
  12633.     {
  12634.       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
  12635.       else
  12636.         {
  12637.           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
  12638.           else puts (dlerror ());
  12639.         }
  12640.       /* dlclose (self); */
  12641.     }
  12642.   else
  12643.     puts (dlerror ());
  12644.  
  12645.   return status;
  12646. }
  12647. _LT_EOF
  12648.   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  12649.   (eval $ac_link) 2>&5
  12650.   ac_status=$?
  12651.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12652.   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  12653.     (./conftest; exit; ) >&5 2>/dev/null
  12654.     lt_status=$?
  12655.     case x$lt_status in
  12656.       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  12657.       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  12658.       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  12659.     esac
  12660.   else :
  12661.     # compilation failed
  12662.     lt_cv_dlopen_self_static=no
  12663.   fi
  12664. fi
  12665. rm -fr conftest*
  12666.  
  12667.  
  12668. fi
  12669. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  12670. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  12671.     fi
  12672.  
  12673.     CPPFLAGS="$save_CPPFLAGS"
  12674.     LDFLAGS="$save_LDFLAGS"
  12675.     LIBS="$save_LIBS"
  12676.     ;;
  12677.   esac
  12678.  
  12679.   case $lt_cv_dlopen_self in
  12680.   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  12681.   *) enable_dlopen_self=unknown ;;
  12682.   esac
  12683.  
  12684.   case $lt_cv_dlopen_self_static in
  12685.   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  12686.   *) enable_dlopen_self_static=unknown ;;
  12687.   esac
  12688. fi
  12689.  
  12690.  
  12691.  
  12692.  
  12693.  
  12694.  
  12695.  
  12696.  
  12697.  
  12698.  
  12699.  
  12700.  
  12701.  
  12702.  
  12703.  
  12704.  
  12705.  
  12706. striplib=
  12707. old_striplib=
  12708. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  12709. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  12710. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  12711.   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  12712.   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  12713.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12714. $as_echo "yes" >&6; }
  12715. else
  12716. # FIXME - insert some real tests, host_os isn't really good enough
  12717.   case $host_os in
  12718.   darwin*)
  12719.     if test -n "$STRIP" ; then
  12720.       striplib="$STRIP -x"
  12721.       old_striplib="$STRIP -S"
  12722.       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12723. $as_echo "yes" >&6; }
  12724.     else
  12725.       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12726. $as_echo "no" >&6; }
  12727.     fi
  12728.     ;;
  12729.   *)
  12730.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12731. $as_echo "no" >&6; }
  12732.     ;;
  12733.   esac
  12734. fi
  12735.  
  12736.  
  12737.  
  12738.  
  12739.  
  12740.  
  12741.  
  12742.  
  12743.  
  12744.  
  12745.  
  12746.  
  12747.   # Report which library types will actually be built
  12748.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  12749. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  12750.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  12751. $as_echo "$can_build_shared" >&6; }
  12752.  
  12753.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  12754. $as_echo_n "checking whether to build shared libraries... " >&6; }
  12755.   test "$can_build_shared" = "no" && enable_shared=no
  12756.  
  12757.   # On AIX, shared libraries and static libraries use the same namespace, and
  12758.   # are all built from PIC.
  12759.   case $host_os in
  12760.   aix3*)
  12761.     test "$enable_shared" = yes && enable_static=no
  12762.     if test -n "$RANLIB"; then
  12763.       archive_cmds="$archive_cmds~\$RANLIB \$lib"
  12764.       postinstall_cmds='$RANLIB $lib'
  12765.     fi
  12766.     ;;
  12767.  
  12768.   aix[4-9]*)
  12769.     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  12770.       test "$enable_shared" = yes && enable_static=no
  12771.     fi
  12772.     ;;
  12773.   esac
  12774.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  12775. $as_echo "$enable_shared" >&6; }
  12776.  
  12777.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  12778. $as_echo_n "checking whether to build static libraries... " >&6; }
  12779.   # Make sure either enable_shared or enable_static is yes.
  12780.   test "$enable_shared" = yes || enable_static=yes
  12781.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  12782. $as_echo "$enable_static" >&6; }
  12783.  
  12784.  
  12785.  
  12786.  
  12787. fi
  12788. ac_ext=c
  12789. ac_cpp='$CPP $CPPFLAGS'
  12790. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12791. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12792. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12793.  
  12794. CC="$lt_save_CC"
  12795.  
  12796.  
  12797.  
  12798.  
  12799.  
  12800.  
  12801.  
  12802.  
  12803.  
  12804.  
  12805.  
  12806.  
  12807.  
  12808.  
  12809.  
  12810.         ac_config_commands="$ac_config_commands libtool"
  12811.  
  12812.  
  12813.  
  12814.  
  12815. # Only expand once:
  12816.  
  12817.  
  12818.  
  12819.  
  12820.  
  12821.  
  12822.  
  12823. # changing LDFLAGS value should only be done after
  12824. # lt_cv_prog_compiler_static_works test
  12825. if test x$SYSTEM_ZLIB = xyes; then
  12826.   CFLAGS="$CFLAGS -DFT_CONFIG_OPTION_SYSTEM_ZLIB"
  12827.   LDFLAGS="$LDFLAGS $LIBZ"
  12828. fi
  12829.  
  12830. if test x$SYSTEM_LIBBZ2 = xyes; then
  12831.   CFLAGS="$CFLAGS -DFT_CONFIG_OPTION_USE_BZIP2"
  12832.   LDFLAGS="$LDFLAGS $LIBBZ2"
  12833. fi
  12834. if test x$HAVE_LIBPNG = xyes; then
  12835.   CFLAGS="$CFLAGS $LIBPNG_CFLAGS -DFT_CONFIG_OPTION_USE_PNG"
  12836.   LDFLAGS="$LDFLAGS $LIBPNG_LDFLAGS"
  12837. fi
  12838.  
  12839.  
  12840.  
  12841.  
  12842. # configuration file -- stay in 8.3 limit
  12843. #
  12844. # since #undef doesn't survive in configuration header files we replace
  12845. # `/undef' with `#undef' after creating the output file
  12846.  
  12847. ac_config_headers="$ac_config_headers ftconfig.h:ftconfig.in"
  12848.  
  12849.  
  12850. # create the Unix-specific sub-Makefiles `builds/unix/unix-def.mk'
  12851. # and `builds/unix/unix-cc.mk' that will be used by the build system
  12852. #
  12853. ac_config_files="$ac_config_files unix-cc.mk:unix-cc.in unix-def.mk:unix-def.in"
  12854.  
  12855.  
  12856. # re-generate the Jamfile to use libtool now
  12857. #
  12858. # AC_CONFIG_FILES([../../Jamfile:../../Jamfile.in])
  12859.  
  12860. cat >confcache <<\_ACEOF
  12861. # This file is a shell script that caches the results of configure
  12862. # tests run on this system so they can be shared between configure
  12863. # scripts and configure runs, see configure's option --config-cache.
  12864. # It is not useful on other systems.  If it contains results you don't
  12865. # want to keep, you may remove or edit it.
  12866. #
  12867. # config.status only pays attention to the cache file if you give it
  12868. # the --recheck option to rerun configure.
  12869. #
  12870. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  12871. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  12872. # following values.
  12873.  
  12874. _ACEOF
  12875.  
  12876. # The following way of writing the cache mishandles newlines in values,
  12877. # but we know of no workaround that is simple, portable, and efficient.
  12878. # So, we kill variables containing newlines.
  12879. # Ultrix sh set writes to stderr and can't be redirected directly,
  12880. # and sets the high bit in the cache file unless we assign to the vars.
  12881. (
  12882.   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  12883.     eval ac_val=\$$ac_var
  12884.     case $ac_val in #(
  12885.     *${as_nl}*)
  12886.       case $ac_var in #(
  12887.       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  12888. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  12889.       esac
  12890.       case $ac_var in #(
  12891.       _ | IFS | as_nl) ;; #(
  12892.       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  12893.       *) { eval $ac_var=; unset $ac_var;} ;;
  12894.       esac ;;
  12895.     esac
  12896.   done
  12897.  
  12898.   (set) 2>&1 |
  12899.     case $as_nl`(ac_space=' '; set) 2>&1` in #(
  12900.     *${as_nl}ac_space=\ *)
  12901.       # `set' does not quote correctly, so add quotes: double-quote
  12902.       # substitution turns \\\\ into \\, and sed turns \\ into \.
  12903.       sed -n \
  12904.         "s/'/'\\\\''/g;
  12905.           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  12906.       ;; #(
  12907.     *)
  12908.       # `set' quotes correctly as required by POSIX, so do not add quotes.
  12909.       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  12910.       ;;
  12911.     esac |
  12912.     sort
  12913. ) |
  12914.   sed '
  12915.      /^ac_cv_env_/b end
  12916.      t clear
  12917.      :clear
  12918.      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  12919.      t end
  12920.      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  12921.      :end' >>confcache
  12922. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  12923.   if test -w "$cache_file"; then
  12924.     if test "x$cache_file" != "x/dev/null"; then
  12925.       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  12926. $as_echo "$as_me: updating cache $cache_file" >&6;}
  12927.       if test ! -f "$cache_file" || test -h "$cache_file"; then
  12928.         cat confcache >"$cache_file"
  12929.       else
  12930.         case $cache_file in #(
  12931.         */* | ?:*)
  12932.           mv -f confcache "$cache_file"$$ &&
  12933.           mv -f "$cache_file"$$ "$cache_file" ;; #(
  12934.         *)
  12935.           mv -f confcache "$cache_file" ;;
  12936.         esac
  12937.       fi
  12938.     fi
  12939.   else
  12940.     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  12941. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  12942.   fi
  12943. fi
  12944. rm -f confcache
  12945.  
  12946. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  12947. # Let make expand exec_prefix.
  12948. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  12949.  
  12950. DEFS=-DHAVE_CONFIG_H
  12951.  
  12952. ac_libobjs=
  12953. ac_ltlibobjs=
  12954. U=
  12955. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  12956.   # 1. Remove the extension, and $U if already installed.
  12957.   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  12958.   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  12959.   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
  12960.   #    will be set to the directory where LIBOBJS objects are built.
  12961.   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  12962.   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  12963. done
  12964. LIBOBJS=$ac_libobjs
  12965.  
  12966. LTLIBOBJS=$ac_ltlibobjs
  12967.  
  12968.  
  12969.  
  12970. : "${CONFIG_STATUS=./config.status}"
  12971. ac_write_fail=0
  12972. ac_clean_files_save=$ac_clean_files
  12973. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  12974. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  12975. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  12976. as_write_fail=0
  12977. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  12978. #! $SHELL
  12979. # Generated by $as_me.
  12980. # Run this file to recreate the current configuration.
  12981. # Compiler output produced by configure, useful for debugging
  12982. # configure, is in config.log if it exists.
  12983.  
  12984. debug=false
  12985. ac_cs_recheck=false
  12986. ac_cs_silent=false
  12987.  
  12988. SHELL=\${CONFIG_SHELL-$SHELL}
  12989. export SHELL
  12990. _ASEOF
  12991. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  12992. ## -------------------- ##
  12993. ## M4sh Initialization. ##
  12994. ## -------------------- ##
  12995.  
  12996. # Be more Bourne compatible
  12997. DUALCASE=1; export DUALCASE # for MKS sh
  12998. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  12999.   emulate sh
  13000.   NULLCMD=:
  13001.   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  13002.   # is contrary to our usage.  Disable this feature.
  13003.   alias -g '${1+"$@"}'='"$@"'
  13004.   setopt NO_GLOB_SUBST
  13005. else
  13006.   case `(set -o) 2>/dev/null` in #(
  13007.   *posix*) :
  13008.     set -o posix ;; #(
  13009.   *) :
  13010.      ;;
  13011. esac
  13012. fi
  13013.  
  13014.  
  13015. as_nl='
  13016. '
  13017. export as_nl
  13018. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  13019. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  13020. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  13021. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  13022. # Prefer a ksh shell builtin over an external printf program on Solaris,
  13023. # but without wasting forks for bash or zsh.
  13024. if test -z "$BASH_VERSION$ZSH_VERSION" \
  13025.     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  13026.   as_echo='print -r --'
  13027.   as_echo_n='print -rn --'
  13028. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  13029.   as_echo='printf %s\n'
  13030.   as_echo_n='printf %s'
  13031. else
  13032.   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  13033.     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  13034.     as_echo_n='/usr/ucb/echo -n'
  13035.   else
  13036.     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  13037.     as_echo_n_body='eval
  13038.       arg=$1;
  13039.       case $arg in #(
  13040.       *"$as_nl"*)
  13041.         expr "X$arg" : "X\\(.*\\)$as_nl";
  13042.         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  13043.       esac;
  13044.       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  13045.     '
  13046.     export as_echo_n_body
  13047.     as_echo_n='sh -c $as_echo_n_body as_echo'
  13048.   fi
  13049.   export as_echo_body
  13050.   as_echo='sh -c $as_echo_body as_echo'
  13051. fi
  13052.  
  13053. # The user is always right.
  13054. if test "${PATH_SEPARATOR+set}" != set; then
  13055.   PATH_SEPARATOR=:
  13056.   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  13057.     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  13058.       PATH_SEPARATOR=';'
  13059.   }
  13060. fi
  13061.  
  13062.  
  13063. # IFS
  13064. # We need space, tab and new line, in precisely that order.  Quoting is
  13065. # there to prevent editors from complaining about space-tab.
  13066. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  13067. # splitting by setting IFS to empty value.)
  13068. IFS=" ""        $as_nl"
  13069.  
  13070. # Find who we are.  Look in the path if we contain no directory separator.
  13071. as_myself=
  13072. case $0 in #((
  13073.   *[\\/]* ) as_myself=$0 ;;
  13074.   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13075. for as_dir in $PATH
  13076. do
  13077.   IFS=$as_save_IFS
  13078.   test -z "$as_dir" && as_dir=.
  13079.     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  13080.   done
  13081. IFS=$as_save_IFS
  13082.  
  13083.      ;;
  13084. esac
  13085. # We did not find ourselves, most probably we were run as `sh COMMAND'
  13086. # in which case we are not to be found in the path.
  13087. if test "x$as_myself" = x; then
  13088.   as_myself=$0
  13089. fi
  13090. if test ! -f "$as_myself"; then
  13091.   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  13092.   exit 1
  13093. fi
  13094.  
  13095. # Unset variables that we do not need and which cause bugs (e.g. in
  13096. # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
  13097. # suppresses any "Segmentation fault" message there.  '((' could
  13098. # trigger a bug in pdksh 5.2.14.
  13099. for as_var in BASH_ENV ENV MAIL MAILPATH
  13100. do eval test x\${$as_var+set} = xset \
  13101.   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  13102. done
  13103. PS1='$ '
  13104. PS2='> '
  13105. PS4='+ '
  13106.  
  13107. # NLS nuisances.
  13108. LC_ALL=C
  13109. export LC_ALL
  13110. LANGUAGE=C
  13111. export LANGUAGE
  13112.  
  13113. # CDPATH.
  13114. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  13115.  
  13116.  
  13117. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  13118. # ----------------------------------------
  13119. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  13120. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  13121. # script with STATUS, using 1 if that was 0.
  13122. as_fn_error ()
  13123. {
  13124.   as_status=$1; test $as_status -eq 0 && as_status=1
  13125.   if test "$4"; then
  13126.     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  13127.     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  13128.   fi
  13129.   $as_echo "$as_me: error: $2" >&2
  13130.   as_fn_exit $as_status
  13131. } # as_fn_error
  13132.  
  13133.  
  13134. # as_fn_set_status STATUS
  13135. # -----------------------
  13136. # Set $? to STATUS, without forking.
  13137. as_fn_set_status ()
  13138. {
  13139.   return $1
  13140. } # as_fn_set_status
  13141.  
  13142. # as_fn_exit STATUS
  13143. # -----------------
  13144. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  13145. as_fn_exit ()
  13146. {
  13147.   set +e
  13148.   as_fn_set_status $1
  13149.   exit $1
  13150. } # as_fn_exit
  13151.  
  13152. # as_fn_unset VAR
  13153. # ---------------
  13154. # Portably unset VAR.
  13155. as_fn_unset ()
  13156. {
  13157.   { eval $1=; unset $1;}
  13158. }
  13159. as_unset=as_fn_unset
  13160. # as_fn_append VAR VALUE
  13161. # ----------------------
  13162. # Append the text in VALUE to the end of the definition contained in VAR. Take
  13163. # advantage of any shell optimizations that allow amortized linear growth over
  13164. # repeated appends, instead of the typical quadratic growth present in naive
  13165. # implementations.
  13166. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  13167.   eval 'as_fn_append ()
  13168.   {
  13169.     eval $1+=\$2
  13170.   }'
  13171. else
  13172.   as_fn_append ()
  13173.   {
  13174.     eval $1=\$$1\$2
  13175.   }
  13176. fi # as_fn_append
  13177.  
  13178. # as_fn_arith ARG...
  13179. # ------------------
  13180. # Perform arithmetic evaluation on the ARGs, and store the result in the
  13181. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  13182. # must be portable across $(()) and expr.
  13183. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  13184.   eval 'as_fn_arith ()
  13185.   {
  13186.     as_val=$(( $* ))
  13187.   }'
  13188. else
  13189.   as_fn_arith ()
  13190.   {
  13191.     as_val=`expr "$@" || test $? -eq 1`
  13192.   }
  13193. fi # as_fn_arith
  13194.  
  13195.  
  13196. if expr a : '\(a\)' >/dev/null 2>&1 &&
  13197.    test "X`expr 00001 : '.*\(...\)'`" = X001; then
  13198.   as_expr=expr
  13199. else
  13200.   as_expr=false
  13201. fi
  13202.  
  13203. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  13204.   as_basename=basename
  13205. else
  13206.   as_basename=false
  13207. fi
  13208.  
  13209. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  13210.   as_dirname=dirname
  13211. else
  13212.   as_dirname=false
  13213. fi
  13214.  
  13215. as_me=`$as_basename -- "$0" ||
  13216. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  13217.          X"$0" : 'X\(//\)$' \| \
  13218.          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  13219. $as_echo X/"$0" |
  13220.     sed '/^.*\/\([^/][^/]*\)\/*$/{
  13221.             s//\1/
  13222.             q
  13223.           }
  13224.           /^X\/\(\/\/\)$/{
  13225.             s//\1/
  13226.             q
  13227.           }
  13228.           /^X\/\(\/\).*/{
  13229.             s//\1/
  13230.             q
  13231.           }
  13232.           s/.*/./; q'`
  13233.  
  13234. # Avoid depending upon Character Ranges.
  13235. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  13236. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  13237. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  13238. as_cr_digits='0123456789'
  13239. as_cr_alnum=$as_cr_Letters$as_cr_digits
  13240.  
  13241. ECHO_C= ECHO_N= ECHO_T=
  13242. case `echo -n x` in #(((((
  13243. -n*)
  13244.   case `echo 'xy\c'` in
  13245.   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
  13246.   xy)  ECHO_C='\c';;
  13247.   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
  13248.        ECHO_T=' ';;
  13249.   esac;;
  13250. *)
  13251.   ECHO_N='-n';;
  13252. esac
  13253.  
  13254. rm -f conf$$ conf$$.exe conf$$.file
  13255. if test -d conf$$.dir; then
  13256.   rm -f conf$$.dir/conf$$.file
  13257. else
  13258.   rm -f conf$$.dir
  13259.   mkdir conf$$.dir 2>/dev/null
  13260. fi
  13261. if (echo >conf$$.file) 2>/dev/null; then
  13262.   if ln -s conf$$.file conf$$ 2>/dev/null; then
  13263.     as_ln_s='ln -s'
  13264.     # ... but there are two gotchas:
  13265.     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  13266.     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  13267.     # In both cases, we have to default to `cp -pR'.
  13268.     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  13269.       as_ln_s='cp -pR'
  13270.   elif ln conf$$.file conf$$ 2>/dev/null; then
  13271.     as_ln_s=ln
  13272.   else
  13273.     as_ln_s='cp -pR'
  13274.   fi
  13275. else
  13276.   as_ln_s='cp -pR'
  13277. fi
  13278. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  13279. rmdir conf$$.dir 2>/dev/null
  13280.  
  13281.  
  13282. # as_fn_mkdir_p
  13283. # -------------
  13284. # Create "$as_dir" as a directory, including parents if necessary.
  13285. as_fn_mkdir_p ()
  13286. {
  13287.  
  13288.   case $as_dir in #(
  13289.   -*) as_dir=./$as_dir;;
  13290.   esac
  13291.   test -d "$as_dir" || eval $as_mkdir_p || {
  13292.     as_dirs=
  13293.     while :; do
  13294.       case $as_dir in #(
  13295.       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  13296.       *) as_qdir=$as_dir;;
  13297.       esac
  13298.       as_dirs="'$as_qdir' $as_dirs"
  13299.       as_dir=`$as_dirname -- "$as_dir" ||
  13300. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13301.          X"$as_dir" : 'X\(//\)[^/]' \| \
  13302.          X"$as_dir" : 'X\(//\)$' \| \
  13303.          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  13304. $as_echo X"$as_dir" |
  13305.     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13306.             s//\1/
  13307.             q
  13308.           }
  13309.           /^X\(\/\/\)[^/].*/{
  13310.             s//\1/
  13311.             q
  13312.           }
  13313.           /^X\(\/\/\)$/{
  13314.             s//\1/
  13315.             q
  13316.           }
  13317.           /^X\(\/\).*/{
  13318.             s//\1/
  13319.             q
  13320.           }
  13321.           s/.*/./; q'`
  13322.       test -d "$as_dir" && break
  13323.     done
  13324.     test -z "$as_dirs" || eval "mkdir $as_dirs"
  13325.   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  13326.  
  13327.  
  13328. } # as_fn_mkdir_p
  13329. if mkdir -p . 2>/dev/null; then
  13330.   as_mkdir_p='mkdir -p "$as_dir"'
  13331. else
  13332.   test -d ./-p && rmdir ./-p
  13333.   as_mkdir_p=false
  13334. fi
  13335.  
  13336.  
  13337. # as_fn_executable_p FILE
  13338. # -----------------------
  13339. # Test if FILE is an executable regular file.
  13340. as_fn_executable_p ()
  13341. {
  13342.   test -f "$1" && test -x "$1"
  13343. } # as_fn_executable_p
  13344. as_test_x='test -x'
  13345. as_executable_p=as_fn_executable_p
  13346.  
  13347. # Sed expression to map a string onto a valid CPP name.
  13348. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  13349.  
  13350. # Sed expression to map a string onto a valid variable name.
  13351. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  13352.  
  13353.  
  13354. exec 6>&1
  13355. ## ----------------------------------- ##
  13356. ## Main body of $CONFIG_STATUS script. ##
  13357. ## ----------------------------------- ##
  13358. _ASEOF
  13359. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  13360.  
  13361. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13362. # Save the log message, to keep $0 and so on meaningful, and to
  13363. # report actual input values of CONFIG_FILES etc. instead of their
  13364. # values after options handling.
  13365. ac_log="
  13366. This file was extended by FreeType $as_me 2.5, which was
  13367. generated by GNU Autoconf 2.69.  Invocation command line was
  13368.  
  13369.   CONFIG_FILES    = $CONFIG_FILES
  13370.   CONFIG_HEADERS  = $CONFIG_HEADERS
  13371.   CONFIG_LINKS    = $CONFIG_LINKS
  13372.   CONFIG_COMMANDS = $CONFIG_COMMANDS
  13373.   $ $0 $@
  13374.  
  13375. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  13376. "
  13377.  
  13378. _ACEOF
  13379.  
  13380. case $ac_config_files in *"
  13381. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  13382. esac
  13383.  
  13384. case $ac_config_headers in *"
  13385. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  13386. esac
  13387.  
  13388.  
  13389. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13390. # Files that config.status was made for.
  13391. config_files="$ac_config_files"
  13392. config_headers="$ac_config_headers"
  13393. config_commands="$ac_config_commands"
  13394.  
  13395. _ACEOF
  13396.  
  13397. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13398. ac_cs_usage="\
  13399. \`$as_me' instantiates files and other configuration actions
  13400. from templates according to the current configuration.  Unless the files
  13401. and actions are specified as TAGs, all are instantiated by default.
  13402.  
  13403. Usage: $0 [OPTION]... [TAG]...
  13404.  
  13405.   -h, --help       print this help, then exit
  13406.   -V, --version    print version number and configuration settings, then exit
  13407.       --config     print configuration, then exit
  13408.   -q, --quiet, --silent
  13409.                    do not print progress messages
  13410.   -d, --debug      don't remove temporary files
  13411.       --recheck    update $as_me by reconfiguring in the same conditions
  13412.       --file=FILE[:TEMPLATE]
  13413.                    instantiate the configuration file FILE
  13414.       --header=FILE[:TEMPLATE]
  13415.                    instantiate the configuration header FILE
  13416.  
  13417. Configuration files:
  13418. $config_files
  13419.  
  13420. Configuration headers:
  13421. $config_headers
  13422.  
  13423. Configuration commands:
  13424. $config_commands
  13425.  
  13426. Report bugs to <freetype@nongnu.org>."
  13427.  
  13428. _ACEOF
  13429. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13430. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  13431. ac_cs_version="\\
  13432. FreeType config.status 2.5
  13433. configured by $0, generated by GNU Autoconf 2.69,
  13434.   with options \\"\$ac_cs_config\\"
  13435.  
  13436. Copyright (C) 2012 Free Software Foundation, Inc.
  13437. This config.status script is free software; the Free Software Foundation
  13438. gives unlimited permission to copy, distribute and modify it."
  13439.  
  13440. ac_pwd='$ac_pwd'
  13441. srcdir='$srcdir'
  13442. INSTALL='$INSTALL'
  13443. AWK='$AWK'
  13444. test -n "\$AWK" || AWK=awk
  13445. _ACEOF
  13446.  
  13447. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13448. # The default lists apply if the user does not specify any file.
  13449. ac_need_defaults=:
  13450. while test $# != 0
  13451. do
  13452.   case $1 in
  13453.   --*=?*)
  13454.     ac_option=`expr "X$1" : 'X\([^=]*\)='`
  13455.     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  13456.     ac_shift=:
  13457.     ;;
  13458.   --*=)
  13459.     ac_option=`expr "X$1" : 'X\([^=]*\)='`
  13460.     ac_optarg=
  13461.     ac_shift=:
  13462.     ;;
  13463.   *)
  13464.     ac_option=$1
  13465.     ac_optarg=$2
  13466.     ac_shift=shift
  13467.     ;;
  13468.   esac
  13469.  
  13470.   case $ac_option in
  13471.   # Handling of the options.
  13472.   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  13473.     ac_cs_recheck=: ;;
  13474.   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  13475.     $as_echo "$ac_cs_version"; exit ;;
  13476.   --config | --confi | --conf | --con | --co | --c )
  13477.     $as_echo "$ac_cs_config"; exit ;;
  13478.   --debug | --debu | --deb | --de | --d | -d )
  13479.     debug=: ;;
  13480.   --file | --fil | --fi | --f )
  13481.     $ac_shift
  13482.     case $ac_optarg in
  13483.     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  13484.     '') as_fn_error $? "missing file argument" ;;
  13485.     esac
  13486.     as_fn_append CONFIG_FILES " '$ac_optarg'"
  13487.     ac_need_defaults=false;;
  13488.   --header | --heade | --head | --hea )
  13489.     $ac_shift
  13490.     case $ac_optarg in
  13491.     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  13492.     esac
  13493.     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  13494.     ac_need_defaults=false;;
  13495.   --he | --h)
  13496.     # Conflict between --help and --header
  13497.     as_fn_error $? "ambiguous option: \`$1'
  13498. Try \`$0 --help' for more information.";;
  13499.   --help | --hel | -h )
  13500.     $as_echo "$ac_cs_usage"; exit ;;
  13501.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  13502.   | -silent | --silent | --silen | --sile | --sil | --si | --s)
  13503.     ac_cs_silent=: ;;
  13504.  
  13505.   # This is an error.
  13506.   -*) as_fn_error $? "unrecognized option: \`$1'
  13507. Try \`$0 --help' for more information." ;;
  13508.  
  13509.   *) as_fn_append ac_config_targets " $1"
  13510.      ac_need_defaults=false ;;
  13511.  
  13512.   esac
  13513.   shift
  13514. done
  13515.  
  13516. ac_configure_extra_args=
  13517.  
  13518. if $ac_cs_silent; then
  13519.   exec 6>/dev/null
  13520.   ac_configure_extra_args="$ac_configure_extra_args --silent"
  13521. fi
  13522.  
  13523. _ACEOF
  13524. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13525. if \$ac_cs_recheck; then
  13526.   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  13527.   shift
  13528.   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  13529.   CONFIG_SHELL='$SHELL'
  13530.   export CONFIG_SHELL
  13531.   exec "\$@"
  13532. fi
  13533.  
  13534. _ACEOF
  13535. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13536. exec 5>>config.log
  13537. {
  13538.   echo
  13539.   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  13540. ## Running $as_me. ##
  13541. _ASBOX
  13542.   $as_echo "$ac_log"
  13543. } >&5
  13544.  
  13545. _ACEOF
  13546. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13547. #
  13548. # INIT-COMMANDS
  13549. #
  13550.  
  13551.  
  13552. # The HP-UX ksh and POSIX shell print the target directory to stdout
  13553. # if CDPATH is set.
  13554. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  13555.  
  13556. sed_quote_subst='$sed_quote_subst'
  13557. double_quote_subst='$double_quote_subst'
  13558. delay_variable_subst='$delay_variable_subst'
  13559. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  13560. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  13561. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  13562. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  13563. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  13564. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  13565. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  13566. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  13567. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  13568. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  13569. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  13570. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  13571. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  13572. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  13573. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  13574. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  13575. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  13576. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  13577. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  13578. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  13579. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  13580. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  13581. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  13582. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  13583. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  13584. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  13585. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  13586. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  13587. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  13588. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  13589. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  13590. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  13591. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  13592. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  13593. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  13594. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  13595. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  13596. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  13597. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  13598. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  13599. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  13600. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  13601. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  13602. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  13603. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  13604. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  13605. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  13606. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  13607. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  13608. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  13609. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  13610. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  13611. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  13612. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  13613. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  13614. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  13615. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  13616. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
  13617. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  13618. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  13619. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  13620. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  13621. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  13622. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  13623. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  13624. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  13625. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  13626. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  13627. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  13628. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  13629. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  13630. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  13631. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  13632. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  13633. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  13634. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  13635. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  13636. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  13637. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  13638. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  13639. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  13640. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  13641. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  13642. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  13643. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  13644. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  13645. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  13646. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  13647. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  13648. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  13649. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  13650. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  13651. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  13652. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  13653. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  13654. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  13655. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  13656. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  13657. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  13658. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  13659. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  13660. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  13661. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  13662. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  13663. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  13664. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  13665. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  13666. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  13667. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  13668. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  13669. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  13670. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  13671. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  13672. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  13673. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  13674. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  13675. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  13676. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  13677. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  13678. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  13679. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  13680. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  13681. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  13682. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  13683. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  13684. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  13685. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  13686. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  13687. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  13688. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  13689. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  13690.  
  13691. LTCC='$LTCC'
  13692. LTCFLAGS='$LTCFLAGS'
  13693. compiler='$compiler_DEFAULT'
  13694.  
  13695. # A function that is used when there is no print builtin or printf.
  13696. func_fallback_echo ()
  13697. {
  13698.   eval 'cat <<_LTECHO_EOF
  13699. \$1
  13700. _LTECHO_EOF'
  13701. }
  13702.  
  13703. # Quote evaled strings.
  13704. for var in AS \
  13705. DLLTOOL \
  13706. OBJDUMP \
  13707. SHELL \
  13708. ECHO \
  13709. PATH_SEPARATOR \
  13710. SED \
  13711. GREP \
  13712. EGREP \
  13713. FGREP \
  13714. LD \
  13715. NM \
  13716. LN_S \
  13717. lt_SP2NL \
  13718. lt_NL2SP \
  13719. reload_flag \
  13720. deplibs_check_method \
  13721. file_magic_cmd \
  13722. file_magic_glob \
  13723. want_nocaseglob \
  13724. sharedlib_from_linklib_cmd \
  13725. AR \
  13726. AR_FLAGS \
  13727. archiver_list_spec \
  13728. STRIP \
  13729. RANLIB \
  13730. CC \
  13731. CFLAGS \
  13732. compiler \
  13733. lt_cv_sys_global_symbol_pipe \
  13734. lt_cv_sys_global_symbol_to_cdecl \
  13735. lt_cv_sys_global_symbol_to_c_name_address \
  13736. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  13737. nm_file_list_spec \
  13738. lt_prog_compiler_no_builtin_flag \
  13739. lt_prog_compiler_pic \
  13740. lt_prog_compiler_wl \
  13741. lt_prog_compiler_static \
  13742. lt_cv_prog_compiler_c_o \
  13743. need_locks \
  13744. MANIFEST_TOOL \
  13745. DSYMUTIL \
  13746. NMEDIT \
  13747. LIPO \
  13748. OTOOL \
  13749. OTOOL64 \
  13750. shrext_cmds \
  13751. export_dynamic_flag_spec \
  13752. whole_archive_flag_spec \
  13753. compiler_needs_object \
  13754. with_gnu_ld \
  13755. allow_undefined_flag \
  13756. no_undefined_flag \
  13757. hardcode_libdir_flag_spec \
  13758. hardcode_libdir_separator \
  13759. exclude_expsyms \
  13760. include_expsyms \
  13761. file_list_spec \
  13762. variables_saved_for_relink \
  13763. libname_spec \
  13764. library_names_spec \
  13765. soname_spec \
  13766. install_override_mode \
  13767. finish_eval \
  13768. old_striplib \
  13769. striplib; do
  13770.     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  13771.     *[\\\\\\\`\\"\\\$]*)
  13772.       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  13773.       ;;
  13774.     *)
  13775.       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  13776.       ;;
  13777.     esac
  13778. done
  13779.  
  13780. # Double-quote double-evaled strings.
  13781. for var in reload_cmds \
  13782. old_postinstall_cmds \
  13783. old_postuninstall_cmds \
  13784. old_archive_cmds \
  13785. extract_expsyms_cmds \
  13786. old_archive_from_new_cmds \
  13787. old_archive_from_expsyms_cmds \
  13788. archive_cmds \
  13789. archive_expsym_cmds \
  13790. module_cmds \
  13791. module_expsym_cmds \
  13792. export_symbols_cmds \
  13793. prelink_cmds \
  13794. postlink_cmds \
  13795. postinstall_cmds \
  13796. postuninstall_cmds \
  13797. finish_cmds \
  13798. sys_lib_search_path_spec \
  13799. sys_lib_dlsearch_path_spec; do
  13800.     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  13801.     *[\\\\\\\`\\"\\\$]*)
  13802.       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  13803.       ;;
  13804.     *)
  13805.       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  13806.       ;;
  13807.     esac
  13808. done
  13809.  
  13810. ac_aux_dir='$ac_aux_dir'
  13811. xsi_shell='$xsi_shell'
  13812. lt_shell_append='$lt_shell_append'
  13813.  
  13814. # See if we are running on zsh, and set the options which allow our
  13815. # commands through without removal of \ escapes INIT.
  13816. if test -n "\${ZSH_VERSION+set}" ; then
  13817.    setopt NO_GLOB_SUBST
  13818. fi
  13819.  
  13820.  
  13821.     PACKAGE='$PACKAGE'
  13822.     VERSION='$VERSION'
  13823.     TIMESTAMP='$TIMESTAMP'
  13824.     RM='$RM'
  13825.     ofile='$ofile'
  13826.  
  13827.  
  13828.  
  13829.  
  13830. _ACEOF
  13831.  
  13832. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13833.  
  13834. # Handling of arguments.
  13835. for ac_config_target in $ac_config_targets
  13836. do
  13837.   case $ac_config_target in
  13838.     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  13839.     "ftconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS ftconfig.h:ftconfig.in" ;;
  13840.     "unix-cc.mk") CONFIG_FILES="$CONFIG_FILES unix-cc.mk:unix-cc.in" ;;
  13841.     "unix-def.mk") CONFIG_FILES="$CONFIG_FILES unix-def.mk:unix-def.in" ;;
  13842.  
  13843.   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  13844.   esac
  13845. done
  13846.  
  13847.  
  13848. # If the user did not use the arguments to specify the items to instantiate,
  13849. # then the envvar interface is used.  Set only those that are not.
  13850. # We use the long form for the default assignment because of an extremely
  13851. # bizarre bug on SunOS 4.1.3.
  13852. if $ac_need_defaults; then
  13853.   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  13854.   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  13855.   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  13856. fi
  13857.  
  13858. # Have a temporary directory for convenience.  Make it in the build tree
  13859. # simply because there is no reason against having it here, and in addition,
  13860. # creating and moving files from /tmp can sometimes cause problems.
  13861. # Hook for its removal unless debugging.
  13862. # Note that there is a small window in which the directory will not be cleaned:
  13863. # after its creation but before its name has been assigned to `$tmp'.
  13864. $debug ||
  13865. {
  13866.   tmp= ac_tmp=
  13867.   trap 'exit_status=$?
  13868.   : "${ac_tmp:=$tmp}"
  13869.   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  13870. ' 0
  13871.   trap 'as_fn_exit 1' 1 2 13 15
  13872. }
  13873. # Create a (secure) tmp directory for tmp files.
  13874.  
  13875. {
  13876.   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  13877.   test -d "$tmp"
  13878. }  ||
  13879. {
  13880.   tmp=./conf$$-$RANDOM
  13881.   (umask 077 && mkdir "$tmp")
  13882. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  13883. ac_tmp=$tmp
  13884.  
  13885. # Set up the scripts for CONFIG_FILES section.
  13886. # No need to generate them if there are no CONFIG_FILES.
  13887. # This happens for instance with `./config.status config.h'.
  13888. if test -n "$CONFIG_FILES"; then
  13889.  
  13890.  
  13891. ac_cr=`echo X | tr X '\015'`
  13892. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  13893. # But we know of no other shell where ac_cr would be empty at this
  13894. # point, so we can use a bashism as a fallback.
  13895. if test "x$ac_cr" = x; then
  13896.   eval ac_cr=\$\'\\r\'
  13897. fi
  13898. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  13899. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  13900.   ac_cs_awk_cr='\\r'
  13901. else
  13902.   ac_cs_awk_cr=$ac_cr
  13903. fi
  13904.  
  13905. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  13906. _ACEOF
  13907.  
  13908.  
  13909. {
  13910.   echo "cat >conf$$subs.awk <<_ACEOF" &&
  13911.   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  13912.   echo "_ACEOF"
  13913. } >conf$$subs.sh ||
  13914.   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  13915. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  13916. ac_delim='%!_!# '
  13917. for ac_last_try in false false false false false :; do
  13918.   . ./conf$$subs.sh ||
  13919.     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  13920.  
  13921.   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  13922.   if test $ac_delim_n = $ac_delim_num; then
  13923.     break
  13924.   elif $ac_last_try; then
  13925.     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  13926.   else
  13927.     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  13928.   fi
  13929. done
  13930. rm -f conf$$subs.sh
  13931.  
  13932. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13933. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  13934. _ACEOF
  13935. sed -n '
  13936. h
  13937. s/^/S["/; s/!.*/"]=/
  13938. p
  13939. g
  13940. s/^[^!]*!//
  13941. :repl
  13942. t repl
  13943. s/'"$ac_delim"'$//
  13944. t delim
  13945. :nl
  13946. h
  13947. s/\(.\{148\}\)..*/\1/
  13948. t more1
  13949. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  13950. p
  13951. n
  13952. b repl
  13953. :more1
  13954. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  13955. p
  13956. g
  13957. s/.\{148\}//
  13958. t nl
  13959. :delim
  13960. h
  13961. s/\(.\{148\}\)..*/\1/
  13962. t more2
  13963. s/["\\]/\\&/g; s/^/"/; s/$/"/
  13964. p
  13965. b
  13966. :more2
  13967. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  13968. p
  13969. g
  13970. s/.\{148\}//
  13971. t delim
  13972. ' <conf$$subs.awk | sed '
  13973. /^[^""]/{
  13974.   N
  13975.   s/\n//
  13976. }
  13977. ' >>$CONFIG_STATUS || ac_write_fail=1
  13978. rm -f conf$$subs.awk
  13979. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13980. _ACAWK
  13981. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  13982.   for (key in S) S_is_set[key] = 1
  13983.   FS = ""
  13984.  
  13985. }
  13986. {
  13987.   line = $ 0
  13988.   nfields = split(line, field, "@")
  13989.   substed = 0
  13990.   len = length(field[1])
  13991.   for (i = 2; i < nfields; i++) {
  13992.     key = field[i]
  13993.     keylen = length(key)
  13994.     if (S_is_set[key]) {
  13995.       value = S[key]
  13996.       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  13997.       len += length(value) + length(field[++i])
  13998.       substed = 1
  13999.     } else
  14000.       len += 1 + keylen
  14001.   }
  14002.  
  14003.   print line
  14004. }
  14005.  
  14006. _ACAWK
  14007. _ACEOF
  14008. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14009. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  14010.   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  14011. else
  14012.   cat
  14013. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  14014.   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  14015. _ACEOF
  14016.  
  14017. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  14018. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  14019. # trailing colons and then remove the whole line if VPATH becomes empty
  14020. # (actually we leave an empty line to preserve line numbers).
  14021. if test "x$srcdir" = x.; then
  14022.   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
  14023. h
  14024. s///
  14025. s/^/:/
  14026. s/[      ]*$/:/
  14027. s/:\$(srcdir):/:/g
  14028. s/:\${srcdir}:/:/g
  14029. s/:@srcdir@:/:/g
  14030. s/^:*//
  14031. s/:*$//
  14032. x
  14033. s/\(=[   ]*\).*/\1/
  14034. G
  14035. s/\n//
  14036. s/^[^=]*=[       ]*$//
  14037. }'
  14038. fi
  14039.  
  14040. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14041. fi # test -n "$CONFIG_FILES"
  14042.  
  14043. # Set up the scripts for CONFIG_HEADERS section.
  14044. # No need to generate them if there are no CONFIG_HEADERS.
  14045. # This happens for instance with `./config.status Makefile'.
  14046. if test -n "$CONFIG_HEADERS"; then
  14047. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  14048. BEGIN {
  14049. _ACEOF
  14050.  
  14051. # Transform confdefs.h into an awk script `defines.awk', embedded as
  14052. # here-document in config.status, that substitutes the proper values into
  14053. # config.h.in to produce config.h.
  14054.  
  14055. # Create a delimiter string that does not exist in confdefs.h, to ease
  14056. # handling of long lines.
  14057. ac_delim='%!_!# '
  14058. for ac_last_try in false false :; do
  14059.   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  14060.   if test -z "$ac_tt"; then
  14061.     break
  14062.   elif $ac_last_try; then
  14063.     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  14064.   else
  14065.     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  14066.   fi
  14067. done
  14068.  
  14069. # For the awk script, D is an array of macro values keyed by name,
  14070. # likewise P contains macro parameters if any.  Preserve backslash
  14071. # newline sequences.
  14072.  
  14073. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  14074. sed -n '
  14075. s/.\{148\}/&'"$ac_delim"'/g
  14076. t rset
  14077. :rset
  14078. s/^[     ]*#[    ]*define[       ][      ]*/ /
  14079. t def
  14080. d
  14081. :def
  14082. s/\\$//
  14083. t bsnl
  14084. s/["\\]/\\&/g
  14085. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
  14086. D["\1"]=" \3"/p
  14087. s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
  14088. d
  14089. :bsnl
  14090. s/["\\]/\\&/g
  14091. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
  14092. D["\1"]=" \3\\\\\\n"\\/p
  14093. t cont
  14094. s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  14095. t cont
  14096. d
  14097. :cont
  14098. n
  14099. s/.\{148\}/&'"$ac_delim"'/g
  14100. t clear
  14101. :clear
  14102. s/\\$//
  14103. t bsnlc
  14104. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  14105. d
  14106. :bsnlc
  14107. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  14108. b cont
  14109. ' <confdefs.h | sed '
  14110. s/'"$ac_delim"'/"\\\
  14111. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  14112.  
  14113. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14114.   for (key in D) D_is_set[key] = 1
  14115.   FS = ""
  14116. }
  14117. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  14118.   line = \$ 0
  14119.   split(line, arg, " ")
  14120.   if (arg[1] == "#") {
  14121.     defundef = arg[2]
  14122.     mac1 = arg[3]
  14123.   } else {
  14124.     defundef = substr(arg[1], 2)
  14125.     mac1 = arg[2]
  14126.   }
  14127.   split(mac1, mac2, "(") #)
  14128.   macro = mac2[1]
  14129.   prefix = substr(line, 1, index(line, defundef) - 1)
  14130.   if (D_is_set[macro]) {
  14131.     # Preserve the white space surrounding the "#".
  14132.     print prefix "define", macro P[macro] D[macro]
  14133.     next
  14134.   } else {
  14135.     # Replace #undef with comments.  This is necessary, for example,
  14136.     # in the case of _POSIX_SOURCE, which is predefined and required
  14137.     # on some systems where configure will not decide to define it.
  14138.     if (defundef == "undef") {
  14139.       print "/*", prefix defundef, macro, "*/"
  14140.       next
  14141.     }
  14142.   }
  14143. }
  14144. { print }
  14145. _ACAWK
  14146. _ACEOF
  14147. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14148.   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  14149. fi # test -n "$CONFIG_HEADERS"
  14150.  
  14151.  
  14152. eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
  14153. shift
  14154. for ac_tag
  14155. do
  14156.   case $ac_tag in
  14157.   :[FHLC]) ac_mode=$ac_tag; continue;;
  14158.   esac
  14159.   case $ac_mode$ac_tag in
  14160.   :[FHL]*:*);;
  14161.   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  14162.   :[FH]-) ac_tag=-:-;;
  14163.   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  14164.   esac
  14165.   ac_save_IFS=$IFS
  14166.   IFS=:
  14167.   set x $ac_tag
  14168.   IFS=$ac_save_IFS
  14169.   shift
  14170.   ac_file=$1
  14171.   shift
  14172.  
  14173.   case $ac_mode in
  14174.   :L) ac_source=$1;;
  14175.   :[FH])
  14176.     ac_file_inputs=
  14177.     for ac_f
  14178.     do
  14179.       case $ac_f in
  14180.       -) ac_f="$ac_tmp/stdin";;
  14181.       *) # Look for the file first in the build tree, then in the source tree
  14182.          # (if the path is not absolute).  The absolute path cannot be DOS-style,
  14183.          # because $ac_f cannot contain `:'.
  14184.          test -f "$ac_f" ||
  14185.            case $ac_f in
  14186.            [\\/$]*) false;;
  14187.            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  14188.            esac ||
  14189.            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  14190.       esac
  14191.       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  14192.       as_fn_append ac_file_inputs " '$ac_f'"
  14193.     done
  14194.  
  14195.     # Let's still pretend it is `configure' which instantiates (i.e., don't
  14196.     # use $as_me), people would be surprised to read:
  14197.     #    /* config.h.  Generated by config.status.  */
  14198.     configure_input='Generated from '`
  14199.           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  14200.         `' by configure.'
  14201.     if test x"$ac_file" != x-; then
  14202.       configure_input="$ac_file.  $configure_input"
  14203.       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  14204. $as_echo "$as_me: creating $ac_file" >&6;}
  14205.     fi
  14206.     # Neutralize special characters interpreted by sed in replacement strings.
  14207.     case $configure_input in #(
  14208.     *\&* | *\|* | *\\* )
  14209.        ac_sed_conf_input=`$as_echo "$configure_input" |
  14210.        sed 's/[\\\\&|]/\\\\&/g'`;; #(
  14211.     *) ac_sed_conf_input=$configure_input;;
  14212.     esac
  14213.  
  14214.     case $ac_tag in
  14215.     *:-:* | *:-) cat >"$ac_tmp/stdin" \
  14216.       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  14217.     esac
  14218.     ;;
  14219.   esac
  14220.  
  14221.   ac_dir=`$as_dirname -- "$ac_file" ||
  14222. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14223.          X"$ac_file" : 'X\(//\)[^/]' \| \
  14224.          X"$ac_file" : 'X\(//\)$' \| \
  14225.          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  14226. $as_echo X"$ac_file" |
  14227.     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14228.             s//\1/
  14229.             q
  14230.           }
  14231.           /^X\(\/\/\)[^/].*/{
  14232.             s//\1/
  14233.             q
  14234.           }
  14235.           /^X\(\/\/\)$/{
  14236.             s//\1/
  14237.             q
  14238.           }
  14239.           /^X\(\/\).*/{
  14240.             s//\1/
  14241.             q
  14242.           }
  14243.           s/.*/./; q'`
  14244.   as_dir="$ac_dir"; as_fn_mkdir_p
  14245.   ac_builddir=.
  14246.  
  14247. case "$ac_dir" in
  14248. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  14249. *)
  14250.   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  14251.   # A ".." for each directory in $ac_dir_suffix.
  14252.   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  14253.   case $ac_top_builddir_sub in
  14254.   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  14255.   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  14256.   esac ;;
  14257. esac
  14258. ac_abs_top_builddir=$ac_pwd
  14259. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  14260. # for backward compatibility:
  14261. ac_top_builddir=$ac_top_build_prefix
  14262.  
  14263. case $srcdir in
  14264.   .)  # We are building in place.
  14265.     ac_srcdir=.
  14266.     ac_top_srcdir=$ac_top_builddir_sub
  14267.     ac_abs_top_srcdir=$ac_pwd ;;
  14268.   [\\/]* | ?:[\\/]* )  # Absolute name.
  14269.     ac_srcdir=$srcdir$ac_dir_suffix;
  14270.     ac_top_srcdir=$srcdir
  14271.     ac_abs_top_srcdir=$srcdir ;;
  14272.   *) # Relative name.
  14273.     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  14274.     ac_top_srcdir=$ac_top_build_prefix$srcdir
  14275.     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  14276. esac
  14277. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  14278.  
  14279.  
  14280.   case $ac_mode in
  14281.   :F)
  14282.   #
  14283.   # CONFIG_FILE
  14284.   #
  14285.  
  14286.   case $INSTALL in
  14287.   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  14288.   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  14289.   esac
  14290. _ACEOF
  14291.  
  14292. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14293. # If the template does not know about datarootdir, expand it.
  14294. # FIXME: This hack should be removed a few years after 2.60.
  14295. ac_datarootdir_hack=; ac_datarootdir_seen=
  14296. ac_sed_dataroot='
  14297. /datarootdir/ {
  14298.   p
  14299.   q
  14300. }
  14301. /@datadir@/p
  14302. /@docdir@/p
  14303. /@infodir@/p
  14304. /@localedir@/p
  14305. /@mandir@/p'
  14306. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  14307. *datarootdir*) ac_datarootdir_seen=yes;;
  14308. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  14309.   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  14310. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  14311. _ACEOF
  14312. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14313.   ac_datarootdir_hack='
  14314.   s&@datadir@&$datadir&g
  14315.   s&@docdir@&$docdir&g
  14316.   s&@infodir@&$infodir&g
  14317.   s&@localedir@&$localedir&g
  14318.   s&@mandir@&$mandir&g
  14319.   s&\\\${datarootdir}&$datarootdir&g' ;;
  14320. esac
  14321. _ACEOF
  14322.  
  14323. # Neutralize VPATH when `$srcdir' = `.'.
  14324. # Shell code in configure.ac might set extrasub.
  14325. # FIXME: do we really want to maintain this feature?
  14326. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14327. ac_sed_extra="$ac_vpsub
  14328. $extrasub
  14329. _ACEOF
  14330. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14331. :t
  14332. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  14333. s|@configure_input@|$ac_sed_conf_input|;t t
  14334. s&@top_builddir@&$ac_top_builddir_sub&;t t
  14335. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  14336. s&@srcdir@&$ac_srcdir&;t t
  14337. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  14338. s&@top_srcdir@&$ac_top_srcdir&;t t
  14339. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  14340. s&@builddir@&$ac_builddir&;t t
  14341. s&@abs_builddir@&$ac_abs_builddir&;t t
  14342. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  14343. s&@INSTALL@&$ac_INSTALL&;t t
  14344. $ac_datarootdir_hack
  14345. "
  14346. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  14347.   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  14348.  
  14349. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  14350.   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  14351.   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
  14352.       "$ac_tmp/out"`; test -z "$ac_out"; } &&
  14353.   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  14354. which seems to be undefined.  Please make sure it is defined" >&5
  14355. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  14356. which seems to be undefined.  Please make sure it is defined" >&2;}
  14357.  
  14358.   rm -f "$ac_tmp/stdin"
  14359.   case $ac_file in
  14360.   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  14361.   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  14362.   esac \
  14363.   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  14364.  ;;
  14365.   :H)
  14366.   #
  14367.   # CONFIG_HEADER
  14368.   #
  14369.   if test x"$ac_file" != x-; then
  14370.     {
  14371.       $as_echo "/* $configure_input  */" \
  14372.       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  14373.     } >"$ac_tmp/config.h" \
  14374.       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  14375.     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  14376.       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  14377. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  14378.     else
  14379.       rm -f "$ac_file"
  14380.       mv "$ac_tmp/config.h" "$ac_file" \
  14381.         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  14382.     fi
  14383.   else
  14384.     $as_echo "/* $configure_input  */" \
  14385.       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  14386.       || as_fn_error $? "could not create -" "$LINENO" 5
  14387.   fi
  14388.  ;;
  14389.  
  14390.   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  14391. $as_echo "$as_me: executing $ac_file commands" >&6;}
  14392.  ;;
  14393.   esac
  14394.  
  14395.  
  14396.   case $ac_file$ac_mode in
  14397.     "libtool":C)
  14398.  
  14399.     # See if we are running on zsh, and set the options which allow our
  14400.     # commands through without removal of \ escapes.
  14401.     if test -n "${ZSH_VERSION+set}" ; then
  14402.       setopt NO_GLOB_SUBST
  14403.     fi
  14404.  
  14405.     cfgfile="${ofile}T"
  14406.     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  14407.     $RM "$cfgfile"
  14408.  
  14409.     cat <<_LT_EOF >> "$cfgfile"
  14410. #! $SHELL
  14411.  
  14412. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  14413. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  14414. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  14415. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  14416. #
  14417. #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  14418. #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  14419. #                 Foundation, Inc.
  14420. #   Written by Gordon Matzigkeit, 1996
  14421. #
  14422. #   This file is part of GNU Libtool.
  14423. #
  14424. # GNU Libtool is free software; you can redistribute it and/or
  14425. # modify it under the terms of the GNU General Public License as
  14426. # published by the Free Software Foundation; either version 2 of
  14427. # the License, or (at your option) any later version.
  14428. #
  14429. # As a special exception to the GNU General Public License,
  14430. # if you distribute this file as part of a program or library that
  14431. # is built using GNU Libtool, you may include this file under the
  14432. # same distribution terms that you use for the rest of that program.
  14433. #
  14434. # GNU Libtool is distributed in the hope that it will be useful,
  14435. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  14436. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14437. # GNU General Public License for more details.
  14438. #
  14439. # You should have received a copy of the GNU General Public License
  14440. # along with GNU Libtool; see the file COPYING.  If not, a copy
  14441. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  14442. # obtained by writing to the Free Software Foundation, Inc.,
  14443. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  14444.  
  14445.  
  14446. # The names of the tagged configurations supported by this script.
  14447. available_tags=""
  14448.  
  14449. # ### BEGIN LIBTOOL CONFIG
  14450.  
  14451. # Which release of libtool.m4 was used?
  14452. macro_version=$macro_version
  14453. macro_revision=$macro_revision
  14454.  
  14455. # Assembler program.
  14456. AS=$lt_AS
  14457.  
  14458. # DLL creation program.
  14459. DLLTOOL=$lt_DLLTOOL
  14460.  
  14461. # Object dumper program.
  14462. OBJDUMP=$lt_OBJDUMP
  14463.  
  14464. # Whether or not to build shared libraries.
  14465. build_libtool_libs=$enable_shared
  14466.  
  14467. # Whether or not to build static libraries.
  14468. build_old_libs=$enable_static
  14469.  
  14470. # What type of objects to build.
  14471. pic_mode=$pic_mode
  14472.  
  14473. # Whether or not to optimize for fast installation.
  14474. fast_install=$enable_fast_install
  14475.  
  14476. # Shell to use when invoking shell scripts.
  14477. SHELL=$lt_SHELL
  14478.  
  14479. # An echo program that protects backslashes.
  14480. ECHO=$lt_ECHO
  14481.  
  14482. # The PATH separator for the build system.
  14483. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  14484.  
  14485. # The host system.
  14486. host_alias=$host_alias
  14487. host=$host
  14488. host_os=$host_os
  14489.  
  14490. # The build system.
  14491. build_alias=$build_alias
  14492. build=$build
  14493. build_os=$build_os
  14494.  
  14495. # A sed program that does not truncate output.
  14496. SED=$lt_SED
  14497.  
  14498. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  14499. Xsed="\$SED -e 1s/^X//"
  14500.  
  14501. # A grep program that handles long lines.
  14502. GREP=$lt_GREP
  14503.  
  14504. # An ERE matcher.
  14505. EGREP=$lt_EGREP
  14506.  
  14507. # A literal string matcher.
  14508. FGREP=$lt_FGREP
  14509.  
  14510. # A BSD- or MS-compatible name lister.
  14511. NM=$lt_NM
  14512.  
  14513. # Whether we need soft or hard links.
  14514. LN_S=$lt_LN_S
  14515.  
  14516. # What is the maximum length of a command?
  14517. max_cmd_len=$max_cmd_len
  14518.  
  14519. # Object file suffix (normally "o").
  14520. objext=$ac_objext
  14521.  
  14522. # Executable file suffix (normally "").
  14523. exeext=$exeext
  14524.  
  14525. # whether the shell understands "unset".
  14526. lt_unset=$lt_unset
  14527.  
  14528. # turn spaces into newlines.
  14529. SP2NL=$lt_lt_SP2NL
  14530.  
  14531. # turn newlines into spaces.
  14532. NL2SP=$lt_lt_NL2SP
  14533.  
  14534. # convert \$build file names to \$host format.
  14535. to_host_file_cmd=$lt_cv_to_host_file_cmd
  14536.  
  14537. # convert \$build files to toolchain format.
  14538. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  14539.  
  14540. # Method to check whether dependent libraries are shared objects.
  14541. deplibs_check_method=$lt_deplibs_check_method
  14542.  
  14543. # Command to use when deplibs_check_method = "file_magic".
  14544. file_magic_cmd=$lt_file_magic_cmd
  14545.  
  14546. # How to find potential files when deplibs_check_method = "file_magic".
  14547. file_magic_glob=$lt_file_magic_glob
  14548.  
  14549. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  14550. want_nocaseglob=$lt_want_nocaseglob
  14551.  
  14552. # Command to associate shared and link libraries.
  14553. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  14554.  
  14555. # The archiver.
  14556. AR=$lt_AR
  14557.  
  14558. # Flags to create an archive.
  14559. AR_FLAGS=$lt_AR_FLAGS
  14560.  
  14561. # How to feed a file listing to the archiver.
  14562. archiver_list_spec=$lt_archiver_list_spec
  14563.  
  14564. # A symbol stripping program.
  14565. STRIP=$lt_STRIP
  14566.  
  14567. # Commands used to install an old-style archive.
  14568. RANLIB=$lt_RANLIB
  14569. old_postinstall_cmds=$lt_old_postinstall_cmds
  14570. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  14571.  
  14572. # Whether to use a lock for old archive extraction.
  14573. lock_old_archive_extraction=$lock_old_archive_extraction
  14574.  
  14575. # A C compiler.
  14576. LTCC=$lt_CC
  14577.  
  14578. # LTCC compiler flags.
  14579. LTCFLAGS=$lt_CFLAGS
  14580.  
  14581. # Take the output of nm and produce a listing of raw symbols and C names.
  14582. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  14583.  
  14584. # Transform the output of nm in a proper C declaration.
  14585. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  14586.  
  14587. # Transform the output of nm in a C name address pair.
  14588. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  14589.  
  14590. # Transform the output of nm in a C name address pair when lib prefix is needed.
  14591. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  14592.  
  14593. # Specify filename containing input files for \$NM.
  14594. nm_file_list_spec=$lt_nm_file_list_spec
  14595.  
  14596. # The root where to search for dependent libraries,and in which our libraries should be installed.
  14597. lt_sysroot=$lt_sysroot
  14598.  
  14599. # The name of the directory that contains temporary libtool files.
  14600. objdir=$objdir
  14601.  
  14602. # Used to examine libraries when file_magic_cmd begins with "file".
  14603. MAGIC_CMD=$MAGIC_CMD
  14604.  
  14605. # Must we lock files when doing compilation?
  14606. need_locks=$lt_need_locks
  14607.  
  14608. # Manifest tool.
  14609. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  14610.  
  14611. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  14612. DSYMUTIL=$lt_DSYMUTIL
  14613.  
  14614. # Tool to change global to local symbols on Mac OS X.
  14615. NMEDIT=$lt_NMEDIT
  14616.  
  14617. # Tool to manipulate fat objects and archives on Mac OS X.
  14618. LIPO=$lt_LIPO
  14619.  
  14620. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  14621. OTOOL=$lt_OTOOL
  14622.  
  14623. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  14624. OTOOL64=$lt_OTOOL64
  14625.  
  14626. # Old archive suffix (normally "a").
  14627. libext=$libext
  14628.  
  14629. # Shared library suffix (normally ".so").
  14630. shrext_cmds=$lt_shrext_cmds
  14631.  
  14632. # The commands to extract the exported symbol list from a shared archive.
  14633. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  14634.  
  14635. # Variables whose values should be saved in libtool wrapper scripts and
  14636. # restored at link time.
  14637. variables_saved_for_relink=$lt_variables_saved_for_relink
  14638.  
  14639. # Do we need the "lib" prefix for modules?
  14640. need_lib_prefix=$need_lib_prefix
  14641.  
  14642. # Do we need a version for libraries?
  14643. need_version=$need_version
  14644.  
  14645. # Library versioning type.
  14646. version_type=$version_type
  14647.  
  14648. # Shared library runtime path variable.
  14649. runpath_var=$runpath_var
  14650.  
  14651. # Shared library path variable.
  14652. shlibpath_var=$shlibpath_var
  14653.  
  14654. # Is shlibpath searched before the hard-coded library search path?
  14655. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  14656.  
  14657. # Format of library name prefix.
  14658. libname_spec=$lt_libname_spec
  14659.  
  14660. # List of archive names.  First name is the real one, the rest are links.
  14661. # The last name is the one that the linker finds with -lNAME
  14662. library_names_spec=$lt_library_names_spec
  14663.  
  14664. # The coded name of the library, if different from the real name.
  14665. soname_spec=$lt_soname_spec
  14666.  
  14667. # Permission mode override for installation of shared libraries.
  14668. install_override_mode=$lt_install_override_mode
  14669.  
  14670. # Command to use after installation of a shared archive.
  14671. postinstall_cmds=$lt_postinstall_cmds
  14672.  
  14673. # Command to use after uninstallation of a shared archive.
  14674. postuninstall_cmds=$lt_postuninstall_cmds
  14675.  
  14676. # Commands used to finish a libtool library installation in a directory.
  14677. finish_cmds=$lt_finish_cmds
  14678.  
  14679. # As "finish_cmds", except a single script fragment to be evaled but
  14680. # not shown.
  14681. finish_eval=$lt_finish_eval
  14682.  
  14683. # Whether we should hardcode library paths into libraries.
  14684. hardcode_into_libs=$hardcode_into_libs
  14685.  
  14686. # Compile-time system search path for libraries.
  14687. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  14688.  
  14689. # Run-time system search path for libraries.
  14690. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  14691.  
  14692. # Whether dlopen is supported.
  14693. dlopen_support=$enable_dlopen
  14694.  
  14695. # Whether dlopen of programs is supported.
  14696. dlopen_self=$enable_dlopen_self
  14697.  
  14698. # Whether dlopen of statically linked programs is supported.
  14699. dlopen_self_static=$enable_dlopen_self_static
  14700.  
  14701. # Commands to strip libraries.
  14702. old_striplib=$lt_old_striplib
  14703. striplib=$lt_striplib
  14704.  
  14705.  
  14706. # The linker used to build libraries.
  14707. LD=$lt_LD
  14708.  
  14709. # How to create reloadable object files.
  14710. reload_flag=$lt_reload_flag
  14711. reload_cmds=$lt_reload_cmds
  14712.  
  14713. # Commands used to build an old-style archive.
  14714. old_archive_cmds=$lt_old_archive_cmds
  14715.  
  14716. # A language specific compiler.
  14717. CC=$lt_compiler
  14718.  
  14719. # Is the compiler the GNU compiler?
  14720. with_gcc=$GCC
  14721.  
  14722. # Compiler flag to turn off builtin functions.
  14723. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  14724.  
  14725. # Additional compiler flags for building library objects.
  14726. pic_flag=$lt_lt_prog_compiler_pic
  14727.  
  14728. # How to pass a linker flag through the compiler.
  14729. wl=$lt_lt_prog_compiler_wl
  14730.  
  14731. # Compiler flag to prevent dynamic linking.
  14732. link_static_flag=$lt_lt_prog_compiler_static
  14733.  
  14734. # Does compiler simultaneously support -c and -o options?
  14735. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  14736.  
  14737. # Whether or not to add -lc for building shared libraries.
  14738. build_libtool_need_lc=$archive_cmds_need_lc
  14739.  
  14740. # Whether or not to disallow shared libs when runtime libs are static.
  14741. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  14742.  
  14743. # Compiler flag to allow reflexive dlopens.
  14744. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  14745.  
  14746. # Compiler flag to generate shared objects directly from archives.
  14747. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  14748.  
  14749. # Whether the compiler copes with passing no objects directly.
  14750. compiler_needs_object=$lt_compiler_needs_object
  14751.  
  14752. # Create an old-style archive from a shared archive.
  14753. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  14754.  
  14755. # Create a temporary old-style archive to link instead of a shared archive.
  14756. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  14757.  
  14758. # Commands used to build a shared archive.
  14759. archive_cmds=$lt_archive_cmds
  14760. archive_expsym_cmds=$lt_archive_expsym_cmds
  14761.  
  14762. # Commands used to build a loadable module if different from building
  14763. # a shared archive.
  14764. module_cmds=$lt_module_cmds
  14765. module_expsym_cmds=$lt_module_expsym_cmds
  14766.  
  14767. # Whether we are building with GNU ld or not.
  14768. with_gnu_ld=$lt_with_gnu_ld
  14769.  
  14770. # Flag that allows shared libraries with undefined symbols to be built.
  14771. allow_undefined_flag=$lt_allow_undefined_flag
  14772.  
  14773. # Flag that enforces no undefined symbols.
  14774. no_undefined_flag=$lt_no_undefined_flag
  14775.  
  14776. # Flag to hardcode \$libdir into a binary during linking.
  14777. # This must work even if \$libdir does not exist
  14778. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  14779.  
  14780. # Whether we need a single "-rpath" flag with a separated argument.
  14781. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  14782.  
  14783. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  14784. # DIR into the resulting binary.
  14785. hardcode_direct=$hardcode_direct
  14786.  
  14787. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  14788. # DIR into the resulting binary and the resulting library dependency is
  14789. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  14790. # library is relocated.
  14791. hardcode_direct_absolute=$hardcode_direct_absolute
  14792.  
  14793. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  14794. # into the resulting binary.
  14795. hardcode_minus_L=$hardcode_minus_L
  14796.  
  14797. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  14798. # into the resulting binary.
  14799. hardcode_shlibpath_var=$hardcode_shlibpath_var
  14800.  
  14801. # Set to "yes" if building a shared library automatically hardcodes DIR
  14802. # into the library and all subsequent libraries and executables linked
  14803. # against it.
  14804. hardcode_automatic=$hardcode_automatic
  14805.  
  14806. # Set to yes if linker adds runtime paths of dependent libraries
  14807. # to runtime path list.
  14808. inherit_rpath=$inherit_rpath
  14809.  
  14810. # Whether libtool must link a program against all its dependency libraries.
  14811. link_all_deplibs=$link_all_deplibs
  14812.  
  14813. # Set to "yes" if exported symbols are required.
  14814. always_export_symbols=$always_export_symbols
  14815.  
  14816. # The commands to list exported symbols.
  14817. export_symbols_cmds=$lt_export_symbols_cmds
  14818.  
  14819. # Symbols that should not be listed in the preloaded symbols.
  14820. exclude_expsyms=$lt_exclude_expsyms
  14821.  
  14822. # Symbols that must always be exported.
  14823. include_expsyms=$lt_include_expsyms
  14824.  
  14825. # Commands necessary for linking programs (against libraries) with templates.
  14826. prelink_cmds=$lt_prelink_cmds
  14827.  
  14828. # Commands necessary for finishing linking programs.
  14829. postlink_cmds=$lt_postlink_cmds
  14830.  
  14831. # Specify filename containing input files.
  14832. file_list_spec=$lt_file_list_spec
  14833.  
  14834. # How to hardcode a shared library path into an executable.
  14835. hardcode_action=$hardcode_action
  14836.  
  14837. # ### END LIBTOOL CONFIG
  14838.  
  14839. _LT_EOF
  14840.  
  14841.   case $host_os in
  14842.   aix3*)
  14843.     cat <<\_LT_EOF >> "$cfgfile"
  14844. # AIX sometimes has problems with the GCC collect2 program.  For some
  14845. # reason, if we set the COLLECT_NAMES environment variable, the problems
  14846. # vanish in a puff of smoke.
  14847. if test "X${COLLECT_NAMES+set}" != Xset; then
  14848.   COLLECT_NAMES=
  14849.   export COLLECT_NAMES
  14850. fi
  14851. _LT_EOF
  14852.     ;;
  14853.   esac
  14854.  
  14855.  
  14856. ltmain="$ac_aux_dir/ltmain.sh"
  14857.  
  14858.  
  14859.   # We use sed instead of cat because bash on DJGPP gets confused if
  14860.   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
  14861.   # text mode, it properly converts lines to CR/LF.  This bash problem
  14862.   # is reportedly fixed, but why not run on old versions too?
  14863.   sed '$q' "$ltmain" >> "$cfgfile" \
  14864.      || (rm -f "$cfgfile"; exit 1)
  14865.  
  14866.   if test x"$xsi_shell" = xyes; then
  14867.   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  14868. func_dirname ()\
  14869. {\
  14870. \    case ${1} in\
  14871. \      */*) func_dirname_result="${1%/*}${2}" ;;\
  14872. \      *  ) func_dirname_result="${3}" ;;\
  14873. \    esac\
  14874. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  14875.   && mv -f "$cfgfile.tmp" "$cfgfile" \
  14876.     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  14877. test 0 -eq $? || _lt_function_replace_fail=:
  14878.  
  14879.  
  14880.   sed -e '/^func_basename ()$/,/^} # func_basename /c\
  14881. func_basename ()\
  14882. {\
  14883. \    func_basename_result="${1##*/}"\
  14884. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  14885.   && mv -f "$cfgfile.tmp" "$cfgfile" \
  14886.     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  14887. test 0 -eq $? || _lt_function_replace_fail=:
  14888.  
  14889.  
  14890.   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  14891. func_dirname_and_basename ()\
  14892. {\
  14893. \    case ${1} in\
  14894. \      */*) func_dirname_result="${1%/*}${2}" ;;\
  14895. \      *  ) func_dirname_result="${3}" ;;\
  14896. \    esac\
  14897. \    func_basename_result="${1##*/}"\
  14898. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  14899.   && mv -f "$cfgfile.tmp" "$cfgfile" \
  14900.     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  14901. test 0 -eq $? || _lt_function_replace_fail=:
  14902.  
  14903.  
  14904.   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  14905. func_stripname ()\
  14906. {\
  14907. \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  14908. \    # positional parameters, so assign one to ordinary parameter first.\
  14909. \    func_stripname_result=${3}\
  14910. \    func_stripname_result=${func_stripname_result#"${1}"}\
  14911. \    func_stripname_result=${func_stripname_result%"${2}"}\
  14912. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  14913.   && mv -f "$cfgfile.tmp" "$cfgfile" \
  14914.     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  14915. test 0 -eq $? || _lt_function_replace_fail=:
  14916.  
  14917.  
  14918.   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  14919. func_split_long_opt ()\
  14920. {\
  14921. \    func_split_long_opt_name=${1%%=*}\
  14922. \    func_split_long_opt_arg=${1#*=}\
  14923. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  14924.   && mv -f "$cfgfile.tmp" "$cfgfile" \
  14925.     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  14926. test 0 -eq $? || _lt_function_replace_fail=:
  14927.  
  14928.  
  14929.   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  14930. func_split_short_opt ()\
  14931. {\
  14932. \    func_split_short_opt_arg=${1#??}\
  14933. \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  14934. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  14935.   && mv -f "$cfgfile.tmp" "$cfgfile" \
  14936.     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  14937. test 0 -eq $? || _lt_function_replace_fail=:
  14938.  
  14939.  
  14940.   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  14941. func_lo2o ()\
  14942. {\
  14943. \    case ${1} in\
  14944. \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  14945. \      *)    func_lo2o_result=${1} ;;\
  14946. \    esac\
  14947. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  14948.   && mv -f "$cfgfile.tmp" "$cfgfile" \
  14949.     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  14950. test 0 -eq $? || _lt_function_replace_fail=:
  14951.  
  14952.  
  14953.   sed -e '/^func_xform ()$/,/^} # func_xform /c\
  14954. func_xform ()\
  14955. {\
  14956.     func_xform_result=${1%.*}.lo\
  14957. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  14958.   && mv -f "$cfgfile.tmp" "$cfgfile" \
  14959.     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  14960. test 0 -eq $? || _lt_function_replace_fail=:
  14961.  
  14962.  
  14963.   sed -e '/^func_arith ()$/,/^} # func_arith /c\
  14964. func_arith ()\
  14965. {\
  14966.     func_arith_result=$(( $* ))\
  14967. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  14968.   && mv -f "$cfgfile.tmp" "$cfgfile" \
  14969.     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  14970. test 0 -eq $? || _lt_function_replace_fail=:
  14971.  
  14972.  
  14973.   sed -e '/^func_len ()$/,/^} # func_len /c\
  14974. func_len ()\
  14975. {\
  14976.     func_len_result=${#1}\
  14977. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  14978.   && mv -f "$cfgfile.tmp" "$cfgfile" \
  14979.     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  14980. test 0 -eq $? || _lt_function_replace_fail=:
  14981.  
  14982. fi
  14983.  
  14984. if test x"$lt_shell_append" = xyes; then
  14985.   sed -e '/^func_append ()$/,/^} # func_append /c\
  14986. func_append ()\
  14987. {\
  14988.     eval "${1}+=\\${2}"\
  14989. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  14990.   && mv -f "$cfgfile.tmp" "$cfgfile" \
  14991.     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  14992. test 0 -eq $? || _lt_function_replace_fail=:
  14993.  
  14994.  
  14995.   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  14996. func_append_quoted ()\
  14997. {\
  14998. \    func_quote_for_eval "${2}"\
  14999. \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  15000. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  15001.   && mv -f "$cfgfile.tmp" "$cfgfile" \
  15002.     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15003. test 0 -eq $? || _lt_function_replace_fail=:
  15004.  
  15005.  
  15006.   # Save a `func_append' function call where possible by direct use of '+='
  15007.   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  15008.     && mv -f "$cfgfile.tmp" "$cfgfile" \
  15009.       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15010.   test 0 -eq $? || _lt_function_replace_fail=:
  15011. else
  15012.   # Save a `func_append' function call even when '+=' is not available
  15013.   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  15014.     && mv -f "$cfgfile.tmp" "$cfgfile" \
  15015.       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15016.   test 0 -eq $? || _lt_function_replace_fail=:
  15017. fi
  15018.  
  15019. if test x"$_lt_function_replace_fail" = x":"; then
  15020.   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  15021. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  15022. fi
  15023.  
  15024.  
  15025.    mv -f "$cfgfile" "$ofile" ||
  15026.     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  15027.   chmod +x "$ofile"
  15028.  
  15029.  ;;
  15030.     "ftconfig.h":H) mv ftconfig.h ftconfig.tmp
  15031.    sed 's|/undef|#undef|' < ftconfig.tmp > ftconfig.h
  15032.    rm ftconfig.tmp ;;
  15033.  
  15034.   esac
  15035. done # for ac_tag
  15036.  
  15037.  
  15038. as_fn_exit 0
  15039. _ACEOF
  15040. ac_clean_files=$ac_clean_files_save
  15041.  
  15042. test $ac_write_fail = 0 ||
  15043.   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  15044.  
  15045.  
  15046. # configure is writing to config.log, and then calls config.status.
  15047. # config.status does its own redirection, appending to config.log.
  15048. # Unfortunately, on DOS this fails, as config.log is still kept open
  15049. # by configure, so config.status won't be able to write to it; its
  15050. # output is simply discarded.  So we exec the FD to /dev/null,
  15051. # effectively closing config.log, so it can be properly (re)opened and
  15052. # appended to by config.status.  When coming back to configure, we
  15053. # need to make the FD available again.
  15054. if test "$no_create" != yes; then
  15055.   ac_cs_success=:
  15056.   ac_config_status_args=
  15057.   test "$silent" = yes &&
  15058.     ac_config_status_args="$ac_config_status_args --quiet"
  15059.   exec 5>/dev/null
  15060.   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  15061.   exec 5>>config.log
  15062.   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  15063.   # would make configure fail if this is the last instruction.
  15064.   $ac_cs_success || as_fn_exit 1
  15065. fi
  15066. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  15067.   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  15068. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  15069. fi
  15070.  
  15071.  
  15072. # end of configure.raw
  15073.