Subversion Repositories Kolibri OS

Rev

Blame | Last modification | View Log | RSS feed

  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for intel_driver 1.4.1.
  4. #
  5. # Report bugs to <haihao.xiang@intel.com>.
  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.  
  202.   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  203.     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  204.     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  205.     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  206.     PATH=/empty FPATH=/empty; export PATH FPATH
  207.     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  208.       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  209. test \$(( 1 + 1 )) = 2 || 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: haihao.xiang@intel.com 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='intel_driver'
  592. PACKAGE_TARNAME='libva-intel-driver'
  593. PACKAGE_VERSION='1.4.1'
  594. PACKAGE_STRING='intel_driver 1.4.1'
  595. PACKAGE_BUGREPORT='haihao.xiang@intel.com'
  596. PACKAGE_URL=''
  597.  
  598. ac_unique_file="Makefile.am"
  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_subst_vars='am__EXEEXT_FALSE
  636. am__EXEEXT_TRUE
  637. LTLIBOBJS
  638. LIBOBJS
  639. wayland_protocoldir
  640. wayland_scanner
  641. WAYLAND_SCANNER_LIBS
  642. WAYLAND_SCANNER_CFLAGS
  643. USE_WAYLAND_FALSE
  644. USE_WAYLAND_TRUE
  645. LIBVA_WAYLAND_DEPS_LIBS
  646. LIBVA_WAYLAND_DEPS_CFLAGS
  647. WAYLAND_LIBS
  648. WAYLAND_CFLAGS
  649. USE_EGL_FALSE
  650. USE_EGL_TRUE
  651. EGL_LIBS
  652. EGL_CFLAGS
  653. LIBVA_DRIVERS_PATH
  654. USE_X11_FALSE
  655. USE_X11_TRUE
  656. LIBVA_X11_DEPS_LIBS
  657. LIBVA_X11_DEPS_CFLAGS
  658. USE_DRM_FALSE
  659. USE_DRM_TRUE
  660. LIBVA_DRM_DEPS_LIBS
  661. LIBVA_DRM_DEPS_CFLAGS
  662. LIBVA_DEPS_LIBS
  663. LIBVA_DEPS_CFLAGS
  664. GEN4ASM
  665. HAVE_GEN4ASM_FALSE
  666. HAVE_GEN4ASM_TRUE
  667. GEN4ASM_LIBS
  668. GEN4ASM_CFLAGS
  669. LIBDRM_VERSION
  670. DRM_LIBS
  671. DRM_CFLAGS
  672. PKG_CONFIG_LIBDIR
  673. PKG_CONFIG_PATH
  674. PKG_CONFIG
  675. LIBVA_PACKAGE_VERSION
  676. CPP
  677. OTOOL64
  678. OTOOL
  679. LIPO
  680. NMEDIT
  681. DSYMUTIL
  682. MANIFEST_TOOL
  683. RANLIB
  684. ac_ct_AR
  685. AR
  686. DLLTOOL
  687. OBJDUMP
  688. LN_S
  689. NM
  690. ac_ct_DUMPBIN
  691. DUMPBIN
  692. LD
  693. FGREP
  694. EGREP
  695. GREP
  696. SED
  697. am__fastdepCC_FALSE
  698. am__fastdepCC_TRUE
  699. CCDEPMODE
  700. am__nodep
  701. AMDEPBACKSLASH
  702. AMDEP_FALSE
  703. AMDEP_TRUE
  704. am__quote
  705. am__include
  706. DEPDIR
  707. OBJEXT
  708. EXEEXT
  709. ac_ct_CC
  710. CPPFLAGS
  711. LDFLAGS
  712. CFLAGS
  713. CC
  714. host_os
  715. host_vendor
  716. host_cpu
  717. host
  718. build_os
  719. build_vendor
  720. build_cpu
  721. build
  722. LIBTOOL
  723. INTEL_DRIVER_LT_LDFLAGS
  724. AM_BACKSLASH
  725. AM_DEFAULT_VERBOSITY
  726. AM_DEFAULT_V
  727. AM_V
  728. am__untar
  729. am__tar
  730. AMTAR
  731. am__leading_dot
  732. SET_MAKE
  733. AWK
  734. mkdir_p
  735. MKDIR_P
  736. INSTALL_STRIP_PROGRAM
  737. STRIP
  738. install_sh
  739. MAKEINFO
  740. AUTOHEADER
  741. AUTOMAKE
  742. AUTOCONF
  743. ACLOCAL
  744. VERSION
  745. PACKAGE
  746. CYGPATH_W
  747. am__isrc
  748. INSTALL_DATA
  749. INSTALL_SCRIPT
  750. INSTALL_PROGRAM
  751. target_alias
  752. host_alias
  753. build_alias
  754. LIBS
  755. ECHO_T
  756. ECHO_N
  757. ECHO_C
  758. DEFS
  759. mandir
  760. localedir
  761. libdir
  762. psdir
  763. pdfdir
  764. dvidir
  765. htmldir
  766. infodir
  767. docdir
  768. oldincludedir
  769. includedir
  770. localstatedir
  771. sharedstatedir
  772. sysconfdir
  773. datadir
  774. datarootdir
  775. libexecdir
  776. sbindir
  777. bindir
  778. program_transform_name
  779. prefix
  780. exec_prefix
  781. PACKAGE_URL
  782. PACKAGE_BUGREPORT
  783. PACKAGE_STRING
  784. PACKAGE_VERSION
  785. PACKAGE_TARNAME
  786. PACKAGE_NAME
  787. PATH_SEPARATOR
  788. SHELL'
  789. ac_subst_files='wayland_scanner_rules'
  790. ac_user_opts='
  791. enable_option_checking
  792. enable_silent_rules
  793. enable_drm
  794. enable_x11
  795. enable_wayland
  796. enable_static
  797. enable_shared
  798. with_pic
  799. enable_fast_install
  800. enable_dependency_tracking
  801. with_gnu_ld
  802. with_sysroot
  803. enable_libtool_lock
  804. enable_largefile
  805. '
  806.       ac_precious_vars='build_alias
  807. host_alias
  808. target_alias
  809. CC
  810. CFLAGS
  811. LDFLAGS
  812. LIBS
  813. CPPFLAGS
  814. CPP
  815. PKG_CONFIG
  816. PKG_CONFIG_PATH
  817. PKG_CONFIG_LIBDIR
  818. DRM_CFLAGS
  819. DRM_LIBS
  820. GEN4ASM_CFLAGS
  821. GEN4ASM_LIBS
  822. LIBVA_DEPS_CFLAGS
  823. LIBVA_DEPS_LIBS
  824. LIBVA_DRM_DEPS_CFLAGS
  825. LIBVA_DRM_DEPS_LIBS
  826. LIBVA_X11_DEPS_CFLAGS
  827. LIBVA_X11_DEPS_LIBS
  828. EGL_CFLAGS
  829. EGL_LIBS
  830. WAYLAND_CFLAGS
  831. WAYLAND_LIBS
  832. LIBVA_WAYLAND_DEPS_CFLAGS
  833. LIBVA_WAYLAND_DEPS_LIBS
  834. WAYLAND_SCANNER_CFLAGS
  835. WAYLAND_SCANNER_LIBS'
  836.  
  837.  
  838. # Initialize some variables set by options.
  839. ac_init_help=
  840. ac_init_version=false
  841. ac_unrecognized_opts=
  842. ac_unrecognized_sep=
  843. # The variables have the same names as the options, with
  844. # dashes changed to underlines.
  845. cache_file=/dev/null
  846. exec_prefix=NONE
  847. no_create=
  848. no_recursion=
  849. prefix=NONE
  850. program_prefix=NONE
  851. program_suffix=NONE
  852. program_transform_name=s,x,x,
  853. silent=
  854. site=
  855. srcdir=
  856. verbose=
  857. x_includes=NONE
  858. x_libraries=NONE
  859.  
  860. # Installation directory options.
  861. # These are left unexpanded so users can "make install exec_prefix=/foo"
  862. # and all the variables that are supposed to be based on exec_prefix
  863. # by default will actually change.
  864. # Use braces instead of parens because sh, perl, etc. also accept them.
  865. # (The list follows the same order as the GNU Coding Standards.)
  866. bindir='${exec_prefix}/bin'
  867. sbindir='${exec_prefix}/sbin'
  868. libexecdir='${exec_prefix}/libexec'
  869. datarootdir='${prefix}/share'
  870. datadir='${datarootdir}'
  871. sysconfdir='${prefix}/etc'
  872. sharedstatedir='${prefix}/com'
  873. localstatedir='${prefix}/var'
  874. includedir='${prefix}/include'
  875. oldincludedir='/usr/include'
  876. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  877. infodir='${datarootdir}/info'
  878. htmldir='${docdir}'
  879. dvidir='${docdir}'
  880. pdfdir='${docdir}'
  881. psdir='${docdir}'
  882. libdir='${exec_prefix}/lib'
  883. localedir='${datarootdir}/locale'
  884. mandir='${datarootdir}/man'
  885.  
  886. ac_prev=
  887. ac_dashdash=
  888. for ac_option
  889. do
  890.   # If the previous option needs an argument, assign it.
  891.   if test -n "$ac_prev"; then
  892.     eval $ac_prev=\$ac_option
  893.     ac_prev=
  894.     continue
  895.   fi
  896.  
  897.   case $ac_option in
  898.   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  899.   *=)   ac_optarg= ;;
  900.   *)    ac_optarg=yes ;;
  901.   esac
  902.  
  903.   # Accept the important Cygnus configure options, so we can diagnose typos.
  904.  
  905.   case $ac_dashdash$ac_option in
  906.   --)
  907.     ac_dashdash=yes ;;
  908.  
  909.   -bindir | --bindir | --bindi | --bind | --bin | --bi)
  910.     ac_prev=bindir ;;
  911.   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  912.     bindir=$ac_optarg ;;
  913.  
  914.   -build | --build | --buil | --bui | --bu)
  915.     ac_prev=build_alias ;;
  916.   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  917.     build_alias=$ac_optarg ;;
  918.  
  919.   -cache-file | --cache-file | --cache-fil | --cache-fi \
  920.   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  921.     ac_prev=cache_file ;;
  922.   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  923.   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  924.     cache_file=$ac_optarg ;;
  925.  
  926.   --config-cache | -C)
  927.     cache_file=config.cache ;;
  928.  
  929.   -datadir | --datadir | --datadi | --datad)
  930.     ac_prev=datadir ;;
  931.   -datadir=* | --datadir=* | --datadi=* | --datad=*)
  932.     datadir=$ac_optarg ;;
  933.  
  934.   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  935.   | --dataroo | --dataro | --datar)
  936.     ac_prev=datarootdir ;;
  937.   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  938.   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  939.     datarootdir=$ac_optarg ;;
  940.  
  941.   -disable-* | --disable-*)
  942.     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  943.     # Reject names that are not valid shell variable names.
  944.     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  945.       as_fn_error $? "invalid feature name: $ac_useropt"
  946.     ac_useropt_orig=$ac_useropt
  947.     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  948.     case $ac_user_opts in
  949.       *"
  950. "enable_$ac_useropt"
  951. "*) ;;
  952.       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  953.          ac_unrecognized_sep=', ';;
  954.     esac
  955.     eval enable_$ac_useropt=no ;;
  956.  
  957.   -docdir | --docdir | --docdi | --doc | --do)
  958.     ac_prev=docdir ;;
  959.   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  960.     docdir=$ac_optarg ;;
  961.  
  962.   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  963.     ac_prev=dvidir ;;
  964.   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  965.     dvidir=$ac_optarg ;;
  966.  
  967.   -enable-* | --enable-*)
  968.     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  969.     # Reject names that are not valid shell variable names.
  970.     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  971.       as_fn_error $? "invalid feature name: $ac_useropt"
  972.     ac_useropt_orig=$ac_useropt
  973.     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  974.     case $ac_user_opts in
  975.       *"
  976. "enable_$ac_useropt"
  977. "*) ;;
  978.       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  979.          ac_unrecognized_sep=', ';;
  980.     esac
  981.     eval enable_$ac_useropt=\$ac_optarg ;;
  982.  
  983.   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  984.   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  985.   | --exec | --exe | --ex)
  986.     ac_prev=exec_prefix ;;
  987.   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  988.   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  989.   | --exec=* | --exe=* | --ex=*)
  990.     exec_prefix=$ac_optarg ;;
  991.  
  992.   -gas | --gas | --ga | --g)
  993.     # Obsolete; use --with-gas.
  994.     with_gas=yes ;;
  995.  
  996.   -help | --help | --hel | --he | -h)
  997.     ac_init_help=long ;;
  998.   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  999.     ac_init_help=recursive ;;
  1000.   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1001.     ac_init_help=short ;;
  1002.  
  1003.   -host | --host | --hos | --ho)
  1004.     ac_prev=host_alias ;;
  1005.   -host=* | --host=* | --hos=* | --ho=*)
  1006.     host_alias=$ac_optarg ;;
  1007.  
  1008.   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1009.     ac_prev=htmldir ;;
  1010.   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1011.   | --ht=*)
  1012.     htmldir=$ac_optarg ;;
  1013.  
  1014.   -includedir | --includedir | --includedi | --included | --include \
  1015.   | --includ | --inclu | --incl | --inc)
  1016.     ac_prev=includedir ;;
  1017.   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1018.   | --includ=* | --inclu=* | --incl=* | --inc=*)
  1019.     includedir=$ac_optarg ;;
  1020.  
  1021.   -infodir | --infodir | --infodi | --infod | --info | --inf)
  1022.     ac_prev=infodir ;;
  1023.   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1024.     infodir=$ac_optarg ;;
  1025.  
  1026.   -libdir | --libdir | --libdi | --libd)
  1027.     ac_prev=libdir ;;
  1028.   -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1029.     libdir=$ac_optarg ;;
  1030.  
  1031.   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1032.   | --libexe | --libex | --libe)
  1033.     ac_prev=libexecdir ;;
  1034.   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1035.   | --libexe=* | --libex=* | --libe=*)
  1036.     libexecdir=$ac_optarg ;;
  1037.  
  1038.   -localedir | --localedir | --localedi | --localed | --locale)
  1039.     ac_prev=localedir ;;
  1040.   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1041.     localedir=$ac_optarg ;;
  1042.  
  1043.   -localstatedir | --localstatedir | --localstatedi | --localstated \
  1044.   | --localstate | --localstat | --localsta | --localst | --locals)
  1045.     ac_prev=localstatedir ;;
  1046.   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1047.   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1048.     localstatedir=$ac_optarg ;;
  1049.  
  1050.   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1051.     ac_prev=mandir ;;
  1052.   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1053.     mandir=$ac_optarg ;;
  1054.  
  1055.   -nfp | --nfp | --nf)
  1056.     # Obsolete; use --without-fp.
  1057.     with_fp=no ;;
  1058.  
  1059.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1060.   | --no-cr | --no-c | -n)
  1061.     no_create=yes ;;
  1062.  
  1063.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1064.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1065.     no_recursion=yes ;;
  1066.  
  1067.   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1068.   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1069.   | --oldin | --oldi | --old | --ol | --o)
  1070.     ac_prev=oldincludedir ;;
  1071.   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1072.   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1073.   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1074.     oldincludedir=$ac_optarg ;;
  1075.  
  1076.   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1077.     ac_prev=prefix ;;
  1078.   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1079.     prefix=$ac_optarg ;;
  1080.  
  1081.   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1082.   | --program-pre | --program-pr | --program-p)
  1083.     ac_prev=program_prefix ;;
  1084.   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1085.   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1086.     program_prefix=$ac_optarg ;;
  1087.  
  1088.   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1089.   | --program-suf | --program-su | --program-s)
  1090.     ac_prev=program_suffix ;;
  1091.   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1092.   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1093.     program_suffix=$ac_optarg ;;
  1094.  
  1095.   -program-transform-name | --program-transform-name \
  1096.   | --program-transform-nam | --program-transform-na \
  1097.   | --program-transform-n | --program-transform- \
  1098.   | --program-transform | --program-transfor \
  1099.   | --program-transfo | --program-transf \
  1100.   | --program-trans | --program-tran \
  1101.   | --progr-tra | --program-tr | --program-t)
  1102.     ac_prev=program_transform_name ;;
  1103.   -program-transform-name=* | --program-transform-name=* \
  1104.   | --program-transform-nam=* | --program-transform-na=* \
  1105.   | --program-transform-n=* | --program-transform-=* \
  1106.   | --program-transform=* | --program-transfor=* \
  1107.   | --program-transfo=* | --program-transf=* \
  1108.   | --program-trans=* | --program-tran=* \
  1109.   | --progr-tra=* | --program-tr=* | --program-t=*)
  1110.     program_transform_name=$ac_optarg ;;
  1111.  
  1112.   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1113.     ac_prev=pdfdir ;;
  1114.   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1115.     pdfdir=$ac_optarg ;;
  1116.  
  1117.   -psdir | --psdir | --psdi | --psd | --ps)
  1118.     ac_prev=psdir ;;
  1119.   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1120.     psdir=$ac_optarg ;;
  1121.  
  1122.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1123.   | -silent | --silent | --silen | --sile | --sil)
  1124.     silent=yes ;;
  1125.  
  1126.   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1127.     ac_prev=sbindir ;;
  1128.   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1129.   | --sbi=* | --sb=*)
  1130.     sbindir=$ac_optarg ;;
  1131.  
  1132.   -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1133.   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1134.   | --sharedst | --shareds | --shared | --share | --shar \
  1135.   | --sha | --sh)
  1136.     ac_prev=sharedstatedir ;;
  1137.   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1138.   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1139.   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1140.   | --sha=* | --sh=*)
  1141.     sharedstatedir=$ac_optarg ;;
  1142.  
  1143.   -site | --site | --sit)
  1144.     ac_prev=site ;;
  1145.   -site=* | --site=* | --sit=*)
  1146.     site=$ac_optarg ;;
  1147.  
  1148.   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1149.     ac_prev=srcdir ;;
  1150.   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1151.     srcdir=$ac_optarg ;;
  1152.  
  1153.   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1154.   | --syscon | --sysco | --sysc | --sys | --sy)
  1155.     ac_prev=sysconfdir ;;
  1156.   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1157.   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1158.     sysconfdir=$ac_optarg ;;
  1159.  
  1160.   -target | --target | --targe | --targ | --tar | --ta | --t)
  1161.     ac_prev=target_alias ;;
  1162.   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1163.     target_alias=$ac_optarg ;;
  1164.  
  1165.   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1166.     verbose=yes ;;
  1167.  
  1168.   -version | --version | --versio | --versi | --vers | -V)
  1169.     ac_init_version=: ;;
  1170.  
  1171.   -with-* | --with-*)
  1172.     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1173.     # Reject names that are not valid shell variable names.
  1174.     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1175.       as_fn_error $? "invalid package name: $ac_useropt"
  1176.     ac_useropt_orig=$ac_useropt
  1177.     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1178.     case $ac_user_opts in
  1179.       *"
  1180. "with_$ac_useropt"
  1181. "*) ;;
  1182.       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1183.          ac_unrecognized_sep=', ';;
  1184.     esac
  1185.     eval with_$ac_useropt=\$ac_optarg ;;
  1186.  
  1187.   -without-* | --without-*)
  1188.     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1189.     # Reject names that are not valid shell variable names.
  1190.     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1191.       as_fn_error $? "invalid package name: $ac_useropt"
  1192.     ac_useropt_orig=$ac_useropt
  1193.     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1194.     case $ac_user_opts in
  1195.       *"
  1196. "with_$ac_useropt"
  1197. "*) ;;
  1198.       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1199.          ac_unrecognized_sep=', ';;
  1200.     esac
  1201.     eval with_$ac_useropt=no ;;
  1202.  
  1203.   --x)
  1204.     # Obsolete; use --with-x.
  1205.     with_x=yes ;;
  1206.  
  1207.   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1208.   | --x-incl | --x-inc | --x-in | --x-i)
  1209.     ac_prev=x_includes ;;
  1210.   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1211.   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1212.     x_includes=$ac_optarg ;;
  1213.  
  1214.   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1215.   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1216.     ac_prev=x_libraries ;;
  1217.   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1218.   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1219.     x_libraries=$ac_optarg ;;
  1220.  
  1221.   -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1222. Try \`$0 --help' for more information"
  1223.     ;;
  1224.  
  1225.   *=*)
  1226.     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1227.     # Reject names that are not valid shell variable names.
  1228.     case $ac_envvar in #(
  1229.       '' | [0-9]* | *[!_$as_cr_alnum]* )
  1230.       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1231.     esac
  1232.     eval $ac_envvar=\$ac_optarg
  1233.     export $ac_envvar ;;
  1234.  
  1235.   *)
  1236.     # FIXME: should be removed in autoconf 3.0.
  1237.     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1238.     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1239.       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1240.     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1241.     ;;
  1242.  
  1243.   esac
  1244. done
  1245.  
  1246. if test -n "$ac_prev"; then
  1247.   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1248.   as_fn_error $? "missing argument to $ac_option"
  1249. fi
  1250.  
  1251. if test -n "$ac_unrecognized_opts"; then
  1252.   case $enable_option_checking in
  1253.     no) ;;
  1254.     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1255.     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1256.   esac
  1257. fi
  1258.  
  1259. # Check all directory arguments for consistency.
  1260. for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1261.                 datadir sysconfdir sharedstatedir localstatedir includedir \
  1262.                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1263.                 libdir localedir mandir
  1264. do
  1265.   eval ac_val=\$$ac_var
  1266.   # Remove trailing slashes.
  1267.   case $ac_val in
  1268.     */ )
  1269.       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1270.       eval $ac_var=\$ac_val;;
  1271.   esac
  1272.   # Be sure to have absolute directory names.
  1273.   case $ac_val in
  1274.     [\\/$]* | ?:[\\/]* )  continue;;
  1275.     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1276.   esac
  1277.   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1278. done
  1279.  
  1280. # There might be people who depend on the old broken behavior: `$host'
  1281. # used to hold the argument of --host etc.
  1282. # FIXME: To remove some day.
  1283. build=$build_alias
  1284. host=$host_alias
  1285. target=$target_alias
  1286.  
  1287. # FIXME: To remove some day.
  1288. if test "x$host_alias" != x; then
  1289.   if test "x$build_alias" = x; then
  1290.     cross_compiling=maybe
  1291.   elif test "x$build_alias" != "x$host_alias"; then
  1292.     cross_compiling=yes
  1293.   fi
  1294. fi
  1295.  
  1296. ac_tool_prefix=
  1297. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1298.  
  1299. test "$silent" = yes && exec 6>/dev/null
  1300.  
  1301.  
  1302. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1303. ac_ls_di=`ls -di .` &&
  1304. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1305.   as_fn_error $? "working directory cannot be determined"
  1306. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1307.   as_fn_error $? "pwd does not report name of working directory"
  1308.  
  1309.  
  1310. # Find the source files, if location was not specified.
  1311. if test -z "$srcdir"; then
  1312.   ac_srcdir_defaulted=yes
  1313.   # Try the directory containing this script, then the parent directory.
  1314.   ac_confdir=`$as_dirname -- "$as_myself" ||
  1315. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1316.          X"$as_myself" : 'X\(//\)[^/]' \| \
  1317.          X"$as_myself" : 'X\(//\)$' \| \
  1318.          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1319. $as_echo X"$as_myself" |
  1320.     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1321.             s//\1/
  1322.             q
  1323.           }
  1324.           /^X\(\/\/\)[^/].*/{
  1325.             s//\1/
  1326.             q
  1327.           }
  1328.           /^X\(\/\/\)$/{
  1329.             s//\1/
  1330.             q
  1331.           }
  1332.           /^X\(\/\).*/{
  1333.             s//\1/
  1334.             q
  1335.           }
  1336.           s/.*/./; q'`
  1337.   srcdir=$ac_confdir
  1338.   if test ! -r "$srcdir/$ac_unique_file"; then
  1339.     srcdir=..
  1340.   fi
  1341. else
  1342.   ac_srcdir_defaulted=no
  1343. fi
  1344. if test ! -r "$srcdir/$ac_unique_file"; then
  1345.   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1346.   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1347. fi
  1348. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1349. ac_abs_confdir=`(
  1350.         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1351.         pwd)`
  1352. # When building in place, set srcdir=.
  1353. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1354.   srcdir=.
  1355. fi
  1356. # Remove unnecessary trailing slashes from srcdir.
  1357. # Double slashes in file names in object file debugging info
  1358. # mess up M-x gdb in Emacs.
  1359. case $srcdir in
  1360. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1361. esac
  1362. for ac_var in $ac_precious_vars; do
  1363.   eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1364.   eval ac_env_${ac_var}_value=\$${ac_var}
  1365.   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1366.   eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1367. done
  1368.  
  1369. #
  1370. # Report the --help message.
  1371. #
  1372. if test "$ac_init_help" = "long"; then
  1373.   # Omit some internal or obsolete options to make the list less imposing.
  1374.   # This message is too long to be a string in the A/UX 3.1 sh.
  1375.   cat <<_ACEOF
  1376. \`configure' configures intel_driver 1.4.1 to adapt to many kinds of systems.
  1377.  
  1378. Usage: $0 [OPTION]... [VAR=VALUE]...
  1379.  
  1380. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1381. VAR=VALUE.  See below for descriptions of some of the useful variables.
  1382.  
  1383. Defaults for the options are specified in brackets.
  1384.  
  1385. Configuration:
  1386.   -h, --help              display this help and exit
  1387.       --help=short        display options specific to this package
  1388.       --help=recursive    display the short help of all the included packages
  1389.   -V, --version           display version information and exit
  1390.   -q, --quiet, --silent   do not print \`checking ...' messages
  1391.       --cache-file=FILE   cache test results in FILE [disabled]
  1392.   -C, --config-cache      alias for \`--cache-file=config.cache'
  1393.   -n, --no-create         do not create output files
  1394.       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
  1395.  
  1396. Installation directories:
  1397.   --prefix=PREFIX         install architecture-independent files in PREFIX
  1398.                           [$ac_default_prefix]
  1399.   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  1400.                           [PREFIX]
  1401.  
  1402. By default, \`make install' will install all the files in
  1403. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
  1404. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1405. for instance \`--prefix=\$HOME'.
  1406.  
  1407. For better control, use the options below.
  1408.  
  1409. Fine tuning of the installation directories:
  1410.   --bindir=DIR            user executables [EPREFIX/bin]
  1411.   --sbindir=DIR           system admin executables [EPREFIX/sbin]
  1412.   --libexecdir=DIR        program executables [EPREFIX/libexec]
  1413.   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
  1414.   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
  1415.   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
  1416.   --libdir=DIR            object code libraries [EPREFIX/lib]
  1417.   --includedir=DIR        C header files [PREFIX/include]
  1418.   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
  1419.   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
  1420.   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
  1421.   --infodir=DIR           info documentation [DATAROOTDIR/info]
  1422.   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
  1423.   --mandir=DIR            man documentation [DATAROOTDIR/man]
  1424.   --docdir=DIR            documentation root
  1425.                           [DATAROOTDIR/doc/libva-intel-driver]
  1426.   --htmldir=DIR           html documentation [DOCDIR]
  1427.   --dvidir=DIR            dvi documentation [DOCDIR]
  1428.   --pdfdir=DIR            pdf documentation [DOCDIR]
  1429.   --psdir=DIR             ps documentation [DOCDIR]
  1430. _ACEOF
  1431.  
  1432.   cat <<\_ACEOF
  1433.  
  1434. Program names:
  1435.   --program-prefix=PREFIX            prepend PREFIX to installed program names
  1436.   --program-suffix=SUFFIX            append SUFFIX to installed program names
  1437.   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
  1438.  
  1439. System types:
  1440.   --build=BUILD     configure for building on BUILD [guessed]
  1441.   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
  1442. _ACEOF
  1443. fi
  1444.  
  1445. if test -n "$ac_init_help"; then
  1446.   case $ac_init_help in
  1447.      short | recursive ) echo "Configuration of intel_driver 1.4.1:";;
  1448.    esac
  1449.   cat <<\_ACEOF
  1450.  
  1451. Optional Features:
  1452.   --disable-option-checking  ignore unrecognized --enable/--with options
  1453.   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  1454.   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  1455.   --enable-silent-rules   less verbose build output (undo: "make V=1")
  1456.   --disable-silent-rules  verbose build output (undo: "make V=0")
  1457.   --enable-drm            build with VA/DRM API support [default=yes]
  1458.   --enable-x11            build with VA/X11 API support [default=yes]
  1459.   --enable-wayland        build with VA/Wayland API support [default=yes]
  1460.   --enable-static[=PKGS]  build static libraries [default=no]
  1461.   --enable-shared[=PKGS]  build shared libraries [default=yes]
  1462.   --enable-fast-install[=PKGS]
  1463.                           optimize for fast installation [default=yes]
  1464.   --enable-dependency-tracking
  1465.                           do not reject slow dependency extractors
  1466.   --disable-dependency-tracking
  1467.                           speeds up one-time build
  1468.   --disable-libtool-lock  avoid locking (might break parallel builds)
  1469.   --disable-largefile     omit support for large files
  1470.  
  1471. Optional Packages:
  1472.   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  1473.   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  1474.   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
  1475.                           both]
  1476.   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
  1477.   --with-sysroot=DIR Search for dependent libraries within DIR
  1478.                         (or the compiler's sysroot if not specified).
  1479.  
  1480. Some influential environment variables:
  1481.   CC          C compiler command
  1482.   CFLAGS      C compiler flags
  1483.   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
  1484.               nonstandard directory <lib dir>
  1485.   LIBS        libraries to pass to the linker, e.g. -l<library>
  1486.   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1487.               you have headers in a nonstandard directory <include dir>
  1488.   CPP         C preprocessor
  1489.   PKG_CONFIG  path to pkg-config utility
  1490.   PKG_CONFIG_PATH
  1491.               directories to add to pkg-config's search path
  1492.   PKG_CONFIG_LIBDIR
  1493.               path overriding pkg-config's built-in search path
  1494.   DRM_CFLAGS  C compiler flags for DRM, overriding pkg-config
  1495.   DRM_LIBS    linker flags for DRM, overriding pkg-config
  1496.   GEN4ASM_CFLAGS
  1497.               C compiler flags for GEN4ASM, overriding pkg-config
  1498.   GEN4ASM_LIBS
  1499.               linker flags for GEN4ASM, overriding pkg-config
  1500.   LIBVA_DEPS_CFLAGS
  1501.               C compiler flags for LIBVA_DEPS, overriding pkg-config
  1502.   LIBVA_DEPS_LIBS
  1503.               linker flags for LIBVA_DEPS, overriding pkg-config
  1504.   LIBVA_DRM_DEPS_CFLAGS
  1505.               C compiler flags for LIBVA_DRM_DEPS, overriding pkg-config
  1506.   LIBVA_DRM_DEPS_LIBS
  1507.               linker flags for LIBVA_DRM_DEPS, overriding pkg-config
  1508.   LIBVA_X11_DEPS_CFLAGS
  1509.               C compiler flags for LIBVA_X11_DEPS, overriding pkg-config
  1510.   LIBVA_X11_DEPS_LIBS
  1511.               linker flags for LIBVA_X11_DEPS, overriding pkg-config
  1512.   EGL_CFLAGS  C compiler flags for EGL, overriding pkg-config
  1513.   EGL_LIBS    linker flags for EGL, overriding pkg-config
  1514.   WAYLAND_CFLAGS
  1515.               C compiler flags for WAYLAND, overriding pkg-config
  1516.   WAYLAND_LIBS
  1517.               linker flags for WAYLAND, overriding pkg-config
  1518.   LIBVA_WAYLAND_DEPS_CFLAGS
  1519.               C compiler flags for LIBVA_WAYLAND_DEPS, overriding pkg-config
  1520.   LIBVA_WAYLAND_DEPS_LIBS
  1521.               linker flags for LIBVA_WAYLAND_DEPS, overriding pkg-config
  1522.   WAYLAND_SCANNER_CFLAGS
  1523.               C compiler flags for WAYLAND_SCANNER, overriding pkg-config
  1524.   WAYLAND_SCANNER_LIBS
  1525.               linker flags for WAYLAND_SCANNER, overriding pkg-config
  1526.  
  1527. Use these variables to override the choices made by `configure' or to help
  1528. it to find libraries and programs with nonstandard names/locations.
  1529.  
  1530. Report bugs to <haihao.xiang@intel.com>.
  1531. _ACEOF
  1532. ac_status=$?
  1533. fi
  1534.  
  1535. if test "$ac_init_help" = "recursive"; then
  1536.   # If there are subdirs, report their specific --help.
  1537.   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1538.     test -d "$ac_dir" ||
  1539.       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1540.       continue
  1541.     ac_builddir=.
  1542.  
  1543. case "$ac_dir" in
  1544. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1545. *)
  1546.   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1547.   # A ".." for each directory in $ac_dir_suffix.
  1548.   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1549.   case $ac_top_builddir_sub in
  1550.   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1551.   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1552.   esac ;;
  1553. esac
  1554. ac_abs_top_builddir=$ac_pwd
  1555. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1556. # for backward compatibility:
  1557. ac_top_builddir=$ac_top_build_prefix
  1558.  
  1559. case $srcdir in
  1560.   .)  # We are building in place.
  1561.     ac_srcdir=.
  1562.     ac_top_srcdir=$ac_top_builddir_sub
  1563.     ac_abs_top_srcdir=$ac_pwd ;;
  1564.   [\\/]* | ?:[\\/]* )  # Absolute name.
  1565.     ac_srcdir=$srcdir$ac_dir_suffix;
  1566.     ac_top_srcdir=$srcdir
  1567.     ac_abs_top_srcdir=$srcdir ;;
  1568.   *) # Relative name.
  1569.     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1570.     ac_top_srcdir=$ac_top_build_prefix$srcdir
  1571.     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1572. esac
  1573. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1574.  
  1575.     cd "$ac_dir" || { ac_status=$?; continue; }
  1576.     # Check for guested configure.
  1577.     if test -f "$ac_srcdir/configure.gnu"; then
  1578.       echo &&
  1579.       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1580.     elif test -f "$ac_srcdir/configure"; then
  1581.       echo &&
  1582.       $SHELL "$ac_srcdir/configure" --help=recursive
  1583.     else
  1584.       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1585.     fi || ac_status=$?
  1586.     cd "$ac_pwd" || { ac_status=$?; break; }
  1587.   done
  1588. fi
  1589.  
  1590. test -n "$ac_init_help" && exit $ac_status
  1591. if $ac_init_version; then
  1592.   cat <<\_ACEOF
  1593. intel_driver configure 1.4.1
  1594. generated by GNU Autoconf 2.69
  1595.  
  1596. Copyright (C) 2012 Free Software Foundation, Inc.
  1597. This configure script is free software; the Free Software Foundation
  1598. gives unlimited permission to copy, distribute and modify it.
  1599. _ACEOF
  1600.   exit
  1601. fi
  1602.  
  1603. ## ------------------------ ##
  1604. ## Autoconf initialization. ##
  1605. ## ------------------------ ##
  1606.  
  1607. # ac_fn_c_try_compile LINENO
  1608. # --------------------------
  1609. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1610. ac_fn_c_try_compile ()
  1611. {
  1612.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1613.   rm -f conftest.$ac_objext
  1614.   if { { ac_try="$ac_compile"
  1615. case "(($ac_try" in
  1616.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1617.   *) ac_try_echo=$ac_try;;
  1618. esac
  1619. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1620. $as_echo "$ac_try_echo"; } >&5
  1621.   (eval "$ac_compile") 2>conftest.err
  1622.   ac_status=$?
  1623.   if test -s conftest.err; then
  1624.     grep -v '^ *+' conftest.err >conftest.er1
  1625.     cat conftest.er1 >&5
  1626.     mv -f conftest.er1 conftest.err
  1627.   fi
  1628.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1629.   test $ac_status = 0; } && {
  1630.          test -z "$ac_c_werror_flag" ||
  1631.          test ! -s conftest.err
  1632.        } && test -s conftest.$ac_objext; then :
  1633.   ac_retval=0
  1634. else
  1635.   $as_echo "$as_me: failed program was:" >&5
  1636. sed 's/^/| /' conftest.$ac_ext >&5
  1637.  
  1638.         ac_retval=1
  1639. fi
  1640.   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1641.   as_fn_set_status $ac_retval
  1642.  
  1643. } # ac_fn_c_try_compile
  1644.  
  1645. # ac_fn_c_try_link LINENO
  1646. # -----------------------
  1647. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1648. ac_fn_c_try_link ()
  1649. {
  1650.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1651.   rm -f conftest.$ac_objext conftest$ac_exeext
  1652.   if { { ac_try="$ac_link"
  1653. case "(($ac_try" in
  1654.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1655.   *) ac_try_echo=$ac_try;;
  1656. esac
  1657. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1658. $as_echo "$ac_try_echo"; } >&5
  1659.   (eval "$ac_link") 2>conftest.err
  1660.   ac_status=$?
  1661.   if test -s conftest.err; then
  1662.     grep -v '^ *+' conftest.err >conftest.er1
  1663.     cat conftest.er1 >&5
  1664.     mv -f conftest.er1 conftest.err
  1665.   fi
  1666.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1667.   test $ac_status = 0; } && {
  1668.          test -z "$ac_c_werror_flag" ||
  1669.          test ! -s conftest.err
  1670.        } && test -s conftest$ac_exeext && {
  1671.          test "$cross_compiling" = yes ||
  1672.          test -x conftest$ac_exeext
  1673.        }; then :
  1674.   ac_retval=0
  1675. else
  1676.   $as_echo "$as_me: failed program was:" >&5
  1677. sed 's/^/| /' conftest.$ac_ext >&5
  1678.  
  1679.         ac_retval=1
  1680. fi
  1681.   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1682.   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1683.   # interfere with the next link command; also delete a directory that is
  1684.   # left behind by Apple's compiler.  We do this before executing the actions.
  1685.   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1686.   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1687.   as_fn_set_status $ac_retval
  1688.  
  1689. } # ac_fn_c_try_link
  1690.  
  1691. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1692. # -------------------------------------------------------
  1693. # Tests whether HEADER exists and can be compiled using the include files in
  1694. # INCLUDES, setting the cache variable VAR accordingly.
  1695. ac_fn_c_check_header_compile ()
  1696. {
  1697.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1698.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1699. $as_echo_n "checking for $2... " >&6; }
  1700. if eval \${$3+:} false; then :
  1701.   $as_echo_n "(cached) " >&6
  1702. else
  1703.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1704. /* end confdefs.h.  */
  1705. $4
  1706. #include <$2>
  1707. _ACEOF
  1708. if ac_fn_c_try_compile "$LINENO"; then :
  1709.   eval "$3=yes"
  1710. else
  1711.   eval "$3=no"
  1712. fi
  1713. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1714. fi
  1715. eval ac_res=\$$3
  1716.                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1717. $as_echo "$ac_res" >&6; }
  1718.   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1719.  
  1720. } # ac_fn_c_check_header_compile
  1721.  
  1722. # ac_fn_c_try_cpp LINENO
  1723. # ----------------------
  1724. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1725. ac_fn_c_try_cpp ()
  1726. {
  1727.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1728.   if { { ac_try="$ac_cpp conftest.$ac_ext"
  1729. case "(($ac_try" in
  1730.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1731.   *) ac_try_echo=$ac_try;;
  1732. esac
  1733. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1734. $as_echo "$ac_try_echo"; } >&5
  1735.   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1736.   ac_status=$?
  1737.   if test -s conftest.err; then
  1738.     grep -v '^ *+' conftest.err >conftest.er1
  1739.     cat conftest.er1 >&5
  1740.     mv -f conftest.er1 conftest.err
  1741.   fi
  1742.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1743.   test $ac_status = 0; } > conftest.i && {
  1744.          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1745.          test ! -s conftest.err
  1746.        }; then :
  1747.   ac_retval=0
  1748. else
  1749.   $as_echo "$as_me: failed program was:" >&5
  1750. sed 's/^/| /' conftest.$ac_ext >&5
  1751.  
  1752.     ac_retval=1
  1753. fi
  1754.   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1755.   as_fn_set_status $ac_retval
  1756.  
  1757. } # ac_fn_c_try_cpp
  1758.  
  1759. # ac_fn_c_try_run LINENO
  1760. # ----------------------
  1761. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1762. # that executables *can* be run.
  1763. ac_fn_c_try_run ()
  1764. {
  1765.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1766.   if { { ac_try="$ac_link"
  1767. case "(($ac_try" in
  1768.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1769.   *) ac_try_echo=$ac_try;;
  1770. esac
  1771. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1772. $as_echo "$ac_try_echo"; } >&5
  1773.   (eval "$ac_link") 2>&5
  1774.   ac_status=$?
  1775.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1776.   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1777.   { { case "(($ac_try" in
  1778.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1779.   *) ac_try_echo=$ac_try;;
  1780. esac
  1781. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1782. $as_echo "$ac_try_echo"; } >&5
  1783.   (eval "$ac_try") 2>&5
  1784.   ac_status=$?
  1785.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1786.   test $ac_status = 0; }; }; then :
  1787.   ac_retval=0
  1788. else
  1789.   $as_echo "$as_me: program exited with status $ac_status" >&5
  1790.        $as_echo "$as_me: failed program was:" >&5
  1791. sed 's/^/| /' conftest.$ac_ext >&5
  1792.  
  1793.        ac_retval=$ac_status
  1794. fi
  1795.   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1796.   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1797.   as_fn_set_status $ac_retval
  1798.  
  1799. } # ac_fn_c_try_run
  1800.  
  1801. # ac_fn_c_check_func LINENO FUNC VAR
  1802. # ----------------------------------
  1803. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1804. ac_fn_c_check_func ()
  1805. {
  1806.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1807.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1808. $as_echo_n "checking for $2... " >&6; }
  1809. if eval \${$3+:} false; then :
  1810.   $as_echo_n "(cached) " >&6
  1811. else
  1812.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1813. /* end confdefs.h.  */
  1814. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1815.    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  1816. #define $2 innocuous_$2
  1817.  
  1818. /* System header to define __stub macros and hopefully few prototypes,
  1819.     which can conflict with char $2 (); below.
  1820.     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1821.     <limits.h> exists even on freestanding compilers.  */
  1822.  
  1823. #ifdef __STDC__
  1824. # include <limits.h>
  1825. #else
  1826. # include <assert.h>
  1827. #endif
  1828.  
  1829. #undef $2
  1830.  
  1831. /* Override any GCC internal prototype to avoid an error.
  1832.    Use char because int might match the return type of a GCC
  1833.    builtin and then its argument prototype would still apply.  */
  1834. #ifdef __cplusplus
  1835. extern "C"
  1836. #endif
  1837. char $2 ();
  1838. /* The GNU C library defines this for functions which it implements
  1839.     to always fail with ENOSYS.  Some functions are actually named
  1840.     something starting with __ and the normal name is an alias.  */
  1841. #if defined __stub_$2 || defined __stub___$2
  1842. choke me
  1843. #endif
  1844.  
  1845. int
  1846. main ()
  1847. {
  1848. return $2 ();
  1849.   ;
  1850.   return 0;
  1851. }
  1852. _ACEOF
  1853. if ac_fn_c_try_link "$LINENO"; then :
  1854.   eval "$3=yes"
  1855. else
  1856.   eval "$3=no"
  1857. fi
  1858. rm -f core conftest.err conftest.$ac_objext \
  1859.     conftest$ac_exeext conftest.$ac_ext
  1860. fi
  1861. eval ac_res=\$$3
  1862.                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1863. $as_echo "$ac_res" >&6; }
  1864.   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1865.  
  1866. } # ac_fn_c_check_func
  1867.  
  1868. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1869. # -------------------------------------------------------
  1870. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1871. # the include files in INCLUDES and setting the cache variable VAR
  1872. # accordingly.
  1873. ac_fn_c_check_header_mongrel ()
  1874. {
  1875.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1876.   if eval \${$3+:} false; then :
  1877.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1878. $as_echo_n "checking for $2... " >&6; }
  1879. if eval \${$3+:} false; then :
  1880.   $as_echo_n "(cached) " >&6
  1881. fi
  1882. eval ac_res=\$$3
  1883.                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1884. $as_echo "$ac_res" >&6; }
  1885. else
  1886.   # Is the header compilable?
  1887. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1888. $as_echo_n "checking $2 usability... " >&6; }
  1889. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1890. /* end confdefs.h.  */
  1891. $4
  1892. #include <$2>
  1893. _ACEOF
  1894. if ac_fn_c_try_compile "$LINENO"; then :
  1895.   ac_header_compiler=yes
  1896. else
  1897.   ac_header_compiler=no
  1898. fi
  1899. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1900. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1901. $as_echo "$ac_header_compiler" >&6; }
  1902.  
  1903. # Is the header present?
  1904. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1905. $as_echo_n "checking $2 presence... " >&6; }
  1906. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1907. /* end confdefs.h.  */
  1908. #include <$2>
  1909. _ACEOF
  1910. if ac_fn_c_try_cpp "$LINENO"; then :
  1911.   ac_header_preproc=yes
  1912. else
  1913.   ac_header_preproc=no
  1914. fi
  1915. rm -f conftest.err conftest.i conftest.$ac_ext
  1916. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1917. $as_echo "$ac_header_preproc" >&6; }
  1918.  
  1919. # So?  What about this header?
  1920. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1921.   yes:no: )
  1922.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1923. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1924.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1925. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1926.     ;;
  1927.   no:yes:* )
  1928.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1929. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1930.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
  1931. $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
  1932.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1933. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1934.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
  1935. $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
  1936.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1937. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1938. ( $as_echo "## ------------------------------------- ##
  1939. ## Report this to haihao.xiang@intel.com ##
  1940. ## ------------------------------------- ##"
  1941.      ) | sed "s/^/$as_me: WARNING:     /" >&2
  1942.     ;;
  1943. esac
  1944.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1945. $as_echo_n "checking for $2... " >&6; }
  1946. if eval \${$3+:} false; then :
  1947.   $as_echo_n "(cached) " >&6
  1948. else
  1949.   eval "$3=\$ac_header_compiler"
  1950. fi
  1951. eval ac_res=\$$3
  1952.                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1953. $as_echo "$ac_res" >&6; }
  1954. fi
  1955.   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1956.  
  1957. } # ac_fn_c_check_header_mongrel
  1958. cat >config.log <<_ACEOF
  1959. This file contains any messages produced by compilers while
  1960. running configure, to aid debugging if configure makes a mistake.
  1961.  
  1962. It was created by intel_driver $as_me 1.4.1, which was
  1963. generated by GNU Autoconf 2.69.  Invocation command line was
  1964.  
  1965.   $ $0 $@
  1966.  
  1967. _ACEOF
  1968. exec 5>>config.log
  1969. {
  1970. cat <<_ASUNAME
  1971. ## --------- ##
  1972. ## Platform. ##
  1973. ## --------- ##
  1974.  
  1975. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1976. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1977. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1978. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1979. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1980.  
  1981. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1982. /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
  1983.  
  1984. /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
  1985. /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
  1986. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1987. /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
  1988. /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
  1989. /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
  1990. /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
  1991.  
  1992. _ASUNAME
  1993.  
  1994. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1995. for as_dir in $PATH
  1996. do
  1997.   IFS=$as_save_IFS
  1998.   test -z "$as_dir" && as_dir=.
  1999.     $as_echo "PATH: $as_dir"
  2000.   done
  2001. IFS=$as_save_IFS
  2002.  
  2003. } >&5
  2004.  
  2005. cat >&5 <<_ACEOF
  2006.  
  2007.  
  2008. ## ----------- ##
  2009. ## Core tests. ##
  2010. ## ----------- ##
  2011.  
  2012. _ACEOF
  2013.  
  2014.  
  2015. # Keep a trace of the command line.
  2016. # Strip out --no-create and --no-recursion so they do not pile up.
  2017. # Strip out --silent because we don't want to record it for future runs.
  2018. # Also quote any args containing shell meta-characters.
  2019. # Make two passes to allow for proper duplicate-argument suppression.
  2020. ac_configure_args=
  2021. ac_configure_args0=
  2022. ac_configure_args1=
  2023. ac_must_keep_next=false
  2024. for ac_pass in 1 2
  2025. do
  2026.   for ac_arg
  2027.   do
  2028.     case $ac_arg in
  2029.     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2030.     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2031.     | -silent | --silent | --silen | --sile | --sil)
  2032.       continue ;;
  2033.     *\'*)
  2034.       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2035.     esac
  2036.     case $ac_pass in
  2037.     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2038.     2)
  2039.       as_fn_append ac_configure_args1 " '$ac_arg'"
  2040.       if test $ac_must_keep_next = true; then
  2041.         ac_must_keep_next=false # Got value, back to normal.
  2042.       else
  2043.         case $ac_arg in
  2044.           *=* | --config-cache | -C | -disable-* | --disable-* \
  2045.           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2046.           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2047.           | -with-* | --with-* | -without-* | --without-* | --x)
  2048.             case "$ac_configure_args0 " in
  2049.               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2050.             esac
  2051.             ;;
  2052.           -* ) ac_must_keep_next=true ;;
  2053.         esac
  2054.       fi
  2055.       as_fn_append ac_configure_args " '$ac_arg'"
  2056.       ;;
  2057.     esac
  2058.   done
  2059. done
  2060. { ac_configure_args0=; unset ac_configure_args0;}
  2061. { ac_configure_args1=; unset ac_configure_args1;}
  2062.  
  2063. # When interrupted or exit'd, cleanup temporary files, and complete
  2064. # config.log.  We remove comments because anyway the quotes in there
  2065. # would cause problems or look ugly.
  2066. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2067. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2068. trap 'exit_status=$?
  2069.   # Save into config.log some information that might help in debugging.
  2070.   {
  2071.     echo
  2072.  
  2073.     $as_echo "## ---------------- ##
  2074. ## Cache variables. ##
  2075. ## ---------------- ##"
  2076.     echo
  2077.     # The following way of writing the cache mishandles newlines in values,
  2078. (
  2079.   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2080.     eval ac_val=\$$ac_var
  2081.     case $ac_val in #(
  2082.     *${as_nl}*)
  2083.       case $ac_var in #(
  2084.       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2085. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2086.       esac
  2087.       case $ac_var in #(
  2088.       _ | IFS | as_nl) ;; #(
  2089.       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2090.       *) { eval $ac_var=; unset $ac_var;} ;;
  2091.       esac ;;
  2092.     esac
  2093.   done
  2094.   (set) 2>&1 |
  2095.     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2096.     *${as_nl}ac_space=\ *)
  2097.       sed -n \
  2098.         "s/'\''/'\''\\\\'\'''\''/g;
  2099.           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2100.       ;; #(
  2101.     *)
  2102.       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2103.       ;;
  2104.     esac |
  2105.     sort
  2106. )
  2107.     echo
  2108.  
  2109.     $as_echo "## ----------------- ##
  2110. ## Output variables. ##
  2111. ## ----------------- ##"
  2112.     echo
  2113.     for ac_var in $ac_subst_vars
  2114.     do
  2115.       eval ac_val=\$$ac_var
  2116.       case $ac_val in
  2117.       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2118.       esac
  2119.       $as_echo "$ac_var='\''$ac_val'\''"
  2120.     done | sort
  2121.     echo
  2122.  
  2123.     if test -n "$ac_subst_files"; then
  2124.       $as_echo "## ------------------- ##
  2125. ## File substitutions. ##
  2126. ## ------------------- ##"
  2127.       echo
  2128.       for ac_var in $ac_subst_files
  2129.       do
  2130.         eval ac_val=\$$ac_var
  2131.         case $ac_val in
  2132.         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2133.         esac
  2134.         $as_echo "$ac_var='\''$ac_val'\''"
  2135.       done | sort
  2136.       echo
  2137.     fi
  2138.  
  2139.     if test -s confdefs.h; then
  2140.       $as_echo "## ----------- ##
  2141. ## confdefs.h. ##
  2142. ## ----------- ##"
  2143.       echo
  2144.       cat confdefs.h
  2145.       echo
  2146.     fi
  2147.     test "$ac_signal" != 0 &&
  2148.       $as_echo "$as_me: caught signal $ac_signal"
  2149.     $as_echo "$as_me: exit $exit_status"
  2150.   } >&5
  2151.   rm -f core *.core core.conftest.* &&
  2152.     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2153.     exit $exit_status
  2154. ' 0
  2155. for ac_signal in 1 2 13 15; do
  2156.   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2157. done
  2158. ac_signal=0
  2159.  
  2160. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2161. rm -f -r conftest* confdefs.h
  2162.  
  2163. $as_echo "/* confdefs.h */" > confdefs.h
  2164.  
  2165. # Predefined preprocessor variables.
  2166.  
  2167. cat >>confdefs.h <<_ACEOF
  2168. #define PACKAGE_NAME "$PACKAGE_NAME"
  2169. _ACEOF
  2170.  
  2171. cat >>confdefs.h <<_ACEOF
  2172. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2173. _ACEOF
  2174.  
  2175. cat >>confdefs.h <<_ACEOF
  2176. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2177. _ACEOF
  2178.  
  2179. cat >>confdefs.h <<_ACEOF
  2180. #define PACKAGE_STRING "$PACKAGE_STRING"
  2181. _ACEOF
  2182.  
  2183. cat >>confdefs.h <<_ACEOF
  2184. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2185. _ACEOF
  2186.  
  2187. cat >>confdefs.h <<_ACEOF
  2188. #define PACKAGE_URL "$PACKAGE_URL"
  2189. _ACEOF
  2190.  
  2191.  
  2192. # Let the site file select an alternate cache file if it wants to.
  2193. # Prefer an explicitly selected file to automatically selected ones.
  2194. ac_site_file1=NONE
  2195. ac_site_file2=NONE
  2196. if test -n "$CONFIG_SITE"; then
  2197.   # We do not want a PATH search for config.site.
  2198.   case $CONFIG_SITE in #((
  2199.     -*)  ac_site_file1=./$CONFIG_SITE;;
  2200.     */*) ac_site_file1=$CONFIG_SITE;;
  2201.     *)   ac_site_file1=./$CONFIG_SITE;;
  2202.   esac
  2203. elif test "x$prefix" != xNONE; then
  2204.   ac_site_file1=$prefix/share/config.site
  2205.   ac_site_file2=$prefix/etc/config.site
  2206. else
  2207.   ac_site_file1=$ac_default_prefix/share/config.site
  2208.   ac_site_file2=$ac_default_prefix/etc/config.site
  2209. fi
  2210. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2211. do
  2212.   test "x$ac_site_file" = xNONE && continue
  2213.   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2214.     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2215. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2216.     sed 's/^/| /' "$ac_site_file" >&5
  2217.     . "$ac_site_file" \
  2218.       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2219. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2220. as_fn_error $? "failed to load site script $ac_site_file
  2221. See \`config.log' for more details" "$LINENO" 5; }
  2222.   fi
  2223. done
  2224.  
  2225. if test -r "$cache_file"; then
  2226.   # Some versions of bash will fail to source /dev/null (special files
  2227.   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
  2228.   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2229.     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2230. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2231.     case $cache_file in
  2232.       [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2233.       *)                      . "./$cache_file";;
  2234.     esac
  2235.   fi
  2236. else
  2237.   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2238. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2239.   >$cache_file
  2240. fi
  2241.  
  2242. # Check that the precious variables saved in the cache have kept the same
  2243. # value.
  2244. ac_cache_corrupted=false
  2245. for ac_var in $ac_precious_vars; do
  2246.   eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2247.   eval ac_new_set=\$ac_env_${ac_var}_set
  2248.   eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2249.   eval ac_new_val=\$ac_env_${ac_var}_value
  2250.   case $ac_old_set,$ac_new_set in
  2251.     set,)
  2252.       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2253. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2254.       ac_cache_corrupted=: ;;
  2255.     ,set)
  2256.       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2257. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2258.       ac_cache_corrupted=: ;;
  2259.     ,);;
  2260.     *)
  2261.       if test "x$ac_old_val" != "x$ac_new_val"; then
  2262.         # differences in whitespace do not lead to failure.
  2263.         ac_old_val_w=`echo x $ac_old_val`
  2264.         ac_new_val_w=`echo x $ac_new_val`
  2265.         if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2266.           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2267. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2268.           ac_cache_corrupted=:
  2269.         else
  2270.           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2271. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2272.           eval $ac_var=\$ac_old_val
  2273.         fi
  2274.         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
  2275. $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
  2276.         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
  2277. $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
  2278.       fi;;
  2279.   esac
  2280.   # Pass precious variables to config.status.
  2281.   if test "$ac_new_set" = set; then
  2282.     case $ac_new_val in
  2283.     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2284.     *) ac_arg=$ac_var=$ac_new_val ;;
  2285.     esac
  2286.     case " $ac_configure_args " in
  2287.       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
  2288.       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2289.     esac
  2290.   fi
  2291. done
  2292. if $ac_cache_corrupted; then
  2293.   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2294. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2295.   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2296. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2297.   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2298. fi
  2299. ## -------------------- ##
  2300. ## Main body of script. ##
  2301. ## -------------------- ##
  2302.  
  2303. ac_ext=c
  2304. ac_cpp='$CPP $CPPFLAGS'
  2305. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2306. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2307. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2308.  
  2309.  
  2310.  
  2311. am__api_version='1.14'
  2312.  
  2313. ac_aux_dir=
  2314. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2315.   if test -f "$ac_dir/install-sh"; then
  2316.     ac_aux_dir=$ac_dir
  2317.     ac_install_sh="$ac_aux_dir/install-sh -c"
  2318.     break
  2319.   elif test -f "$ac_dir/install.sh"; then
  2320.     ac_aux_dir=$ac_dir
  2321.     ac_install_sh="$ac_aux_dir/install.sh -c"
  2322.     break
  2323.   elif test -f "$ac_dir/shtool"; then
  2324.     ac_aux_dir=$ac_dir
  2325.     ac_install_sh="$ac_aux_dir/shtool install -c"
  2326.     break
  2327.   fi
  2328. done
  2329. if test -z "$ac_aux_dir"; then
  2330.   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2331. fi
  2332.  
  2333. # These three variables are undocumented and unsupported,
  2334. # and are intended to be withdrawn in a future Autoconf release.
  2335. # They can cause serious problems if a builder's source tree is in a directory
  2336. # whose full name contains unusual characters.
  2337. ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
  2338. ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
  2339. ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
  2340.  
  2341.  
  2342. # Find a good install program.  We prefer a C program (faster),
  2343. # so one script is as good as another.  But avoid the broken or
  2344. # incompatible versions:
  2345. # SysV /etc/install, /usr/sbin/install
  2346. # SunOS /usr/etc/install
  2347. # IRIX /sbin/install
  2348. # AIX /bin/install
  2349. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2350. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2351. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2352. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2353. # OS/2's system install, which has a completely different semantic
  2354. # ./install, which can be erroneously created by make from ./install.sh.
  2355. # Reject install programs that cannot install multiple files.
  2356. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2357. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2358. if test -z "$INSTALL"; then
  2359. if ${ac_cv_path_install+:} false; then :
  2360.   $as_echo_n "(cached) " >&6
  2361. else
  2362.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2363. for as_dir in $PATH
  2364. do
  2365.   IFS=$as_save_IFS
  2366.   test -z "$as_dir" && as_dir=.
  2367.     # Account for people who put trailing slashes in PATH elements.
  2368. case $as_dir/ in #((
  2369.   ./ | .// | /[cC]/* | \
  2370.   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2371.   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2372.   /usr/ucb/* ) ;;
  2373.   *)
  2374.     # OSF1 and SCO ODT 3.0 have their own names for install.
  2375.     # Don't use installbsd from OSF since it installs stuff as root
  2376.     # by default.
  2377.     for ac_prog in ginstall scoinst install; do
  2378.       for ac_exec_ext in '' $ac_executable_extensions; do
  2379.         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2380.           if test $ac_prog = install &&
  2381.             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2382.             # AIX install.  It has an incompatible calling convention.
  2383.             :
  2384.           elif test $ac_prog = install &&
  2385.             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2386.             # program-specific install script used by HP pwplus--don't use.
  2387.             :
  2388.           else
  2389.             rm -rf conftest.one conftest.two conftest.dir
  2390.             echo one > conftest.one
  2391.             echo two > conftest.two
  2392.             mkdir conftest.dir
  2393.             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2394.               test -s conftest.one && test -s conftest.two &&
  2395.               test -s conftest.dir/conftest.one &&
  2396.               test -s conftest.dir/conftest.two
  2397.             then
  2398.               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2399.               break 3
  2400.             fi
  2401.           fi
  2402.         fi
  2403.       done
  2404.     done
  2405.     ;;
  2406. esac
  2407.  
  2408.   done
  2409. IFS=$as_save_IFS
  2410.  
  2411. rm -rf conftest.one conftest.two conftest.dir
  2412.  
  2413. fi
  2414.   if test "${ac_cv_path_install+set}" = set; then
  2415.     INSTALL=$ac_cv_path_install
  2416.   else
  2417.     # As a last resort, use the slow shell script.  Don't cache a
  2418.     # value for INSTALL within a source directory, because that will
  2419.     # break other packages using the cache if that directory is
  2420.     # removed, or if the value is a relative name.
  2421.     INSTALL=$ac_install_sh
  2422.   fi
  2423. fi
  2424. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2425. $as_echo "$INSTALL" >&6; }
  2426.  
  2427. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2428. # It thinks the first close brace ends the variable substitution.
  2429. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2430.  
  2431. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2432.  
  2433. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2434.  
  2435. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2436. $as_echo_n "checking whether build environment is sane... " >&6; }
  2437. # Reject unsafe characters in $srcdir or the absolute working directory
  2438. # name.  Accept space and tab only in the latter.
  2439. am_lf='
  2440. '
  2441. case `pwd` in
  2442.   *[\\\"\#\$\&\'\`$am_lf]*)
  2443.     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2444. esac
  2445. case $srcdir in
  2446.   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
  2447.     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  2448. esac
  2449.  
  2450. # Do 'set' in a subshell so we don't clobber the current shell's
  2451. # arguments.  Must try -L first in case configure is actually a
  2452. # symlink; some systems play weird games with the mod time of symlinks
  2453. # (eg FreeBSD returns the mod time of the symlink's containing
  2454. # directory).
  2455. if (
  2456.    am_has_slept=no
  2457.    for am_try in 1 2; do
  2458.      echo "timestamp, slept: $am_has_slept" > conftest.file
  2459.      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2460.      if test "$*" = "X"; then
  2461.         # -L didn't work.
  2462.         set X `ls -t "$srcdir/configure" conftest.file`
  2463.      fi
  2464.      if test "$*" != "X $srcdir/configure conftest.file" \
  2465.         && test "$*" != "X conftest.file $srcdir/configure"; then
  2466.  
  2467.         # If neither matched, then we have a broken ls.  This can happen
  2468.         # if, for instance, CONFIG_SHELL is bash and it inherits a
  2469.         # broken ls alias from the environment.  This has actually
  2470.         # happened.  Such a system could not be considered "sane".
  2471.         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
  2472.   alias in your environment" "$LINENO" 5
  2473.      fi
  2474.      if test "$2" = conftest.file || test $am_try -eq 2; then
  2475.        break
  2476.      fi
  2477.      # Just in case.
  2478.      sleep 1
  2479.      am_has_slept=yes
  2480.    done
  2481.    test "$2" = conftest.file
  2482.    )
  2483. then
  2484.    # Ok.
  2485.    :
  2486. else
  2487.    as_fn_error $? "newly created file is older than distributed files!
  2488. Check your system clock" "$LINENO" 5
  2489. fi
  2490. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2491. $as_echo "yes" >&6; }
  2492. # If we didn't sleep, we still need to ensure time stamps of config.status and
  2493. # generated files are strictly newer.
  2494. am_sleep_pid=
  2495. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  2496.   ( sleep 1 ) &
  2497.   am_sleep_pid=$!
  2498. fi
  2499.  
  2500. rm -f conftest.file
  2501.  
  2502. test "$program_prefix" != NONE &&
  2503.   program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2504. # Use a double $ so make ignores it.
  2505. test "$program_suffix" != NONE &&
  2506.   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2507. # Double any \ or $.
  2508. # By default was `s,x,x', remove it if useless.
  2509. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2510. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2511.  
  2512. # expand $ac_aux_dir to an absolute path
  2513. am_aux_dir=`cd $ac_aux_dir && pwd`
  2514.  
  2515. if test x"${MISSING+set}" != xset; then
  2516.   case $am_aux_dir in
  2517.   *\ * | *\     *)
  2518.     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2519.   *)
  2520.     MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2521.   esac
  2522. fi
  2523. # Use eval to expand $SHELL
  2524. if eval "$MISSING --is-lightweight"; then
  2525.   am_missing_run="$MISSING "
  2526. else
  2527.   am_missing_run=
  2528.   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  2529. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  2530. fi
  2531.  
  2532. if test x"${install_sh}" != xset; then
  2533.   case $am_aux_dir in
  2534.   *\ * | *\     *)
  2535.     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2536.   *)
  2537.     install_sh="\${SHELL} $am_aux_dir/install-sh"
  2538.   esac
  2539. fi
  2540.  
  2541. # Installed binaries are usually stripped using 'strip' when the user
  2542. # run "make install-strip".  However 'strip' might not be the right
  2543. # tool to use in cross-compilation environments, therefore Automake
  2544. # will honor the 'STRIP' environment variable to overrule this program.
  2545. if test "$cross_compiling" != no; then
  2546.   if test -n "$ac_tool_prefix"; then
  2547.   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2548. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2549. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2550. $as_echo_n "checking for $ac_word... " >&6; }
  2551. if ${ac_cv_prog_STRIP+:} false; then :
  2552.   $as_echo_n "(cached) " >&6
  2553. else
  2554.   if test -n "$STRIP"; then
  2555.   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2556. else
  2557. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2558. for as_dir in $PATH
  2559. do
  2560.   IFS=$as_save_IFS
  2561.   test -z "$as_dir" && as_dir=.
  2562.     for ac_exec_ext in '' $ac_executable_extensions; do
  2563.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2564.     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2565.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2566.     break 2
  2567.   fi
  2568. done
  2569.   done
  2570. IFS=$as_save_IFS
  2571.  
  2572. fi
  2573. fi
  2574. STRIP=$ac_cv_prog_STRIP
  2575. if test -n "$STRIP"; then
  2576.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2577. $as_echo "$STRIP" >&6; }
  2578. else
  2579.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2580. $as_echo "no" >&6; }
  2581. fi
  2582.  
  2583.  
  2584. fi
  2585. if test -z "$ac_cv_prog_STRIP"; then
  2586.   ac_ct_STRIP=$STRIP
  2587.   # Extract the first word of "strip", so it can be a program name with args.
  2588. set dummy strip; ac_word=$2
  2589. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2590. $as_echo_n "checking for $ac_word... " >&6; }
  2591. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2592.   $as_echo_n "(cached) " >&6
  2593. else
  2594.   if test -n "$ac_ct_STRIP"; then
  2595.   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2596. else
  2597. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2598. for as_dir in $PATH
  2599. do
  2600.   IFS=$as_save_IFS
  2601.   test -z "$as_dir" && as_dir=.
  2602.     for ac_exec_ext in '' $ac_executable_extensions; do
  2603.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2604.     ac_cv_prog_ac_ct_STRIP="strip"
  2605.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2606.     break 2
  2607.   fi
  2608. done
  2609.   done
  2610. IFS=$as_save_IFS
  2611.  
  2612. fi
  2613. fi
  2614. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2615. if test -n "$ac_ct_STRIP"; then
  2616.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2617. $as_echo "$ac_ct_STRIP" >&6; }
  2618. else
  2619.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2620. $as_echo "no" >&6; }
  2621. fi
  2622.  
  2623.   if test "x$ac_ct_STRIP" = x; then
  2624.     STRIP=":"
  2625.   else
  2626.     case $cross_compiling:$ac_tool_warned in
  2627. yes:)
  2628. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2629. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2630. ac_tool_warned=yes ;;
  2631. esac
  2632.     STRIP=$ac_ct_STRIP
  2633.   fi
  2634. else
  2635.   STRIP="$ac_cv_prog_STRIP"
  2636. fi
  2637.  
  2638. fi
  2639. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2640.  
  2641. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2642. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2643. if test -z "$MKDIR_P"; then
  2644.   if ${ac_cv_path_mkdir+:} false; then :
  2645.   $as_echo_n "(cached) " >&6
  2646. else
  2647.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2648. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2649. do
  2650.   IFS=$as_save_IFS
  2651.   test -z "$as_dir" && as_dir=.
  2652.     for ac_prog in mkdir gmkdir; do
  2653.          for ac_exec_ext in '' $ac_executable_extensions; do
  2654.            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  2655.            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2656.              'mkdir (GNU coreutils) '* | \
  2657.              'mkdir (coreutils) '* | \
  2658.              'mkdir (fileutils) '4.1*)
  2659.                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2660.                break 3;;
  2661.            esac
  2662.          done
  2663.        done
  2664.   done
  2665. IFS=$as_save_IFS
  2666.  
  2667. fi
  2668.  
  2669.   test -d ./--version && rmdir ./--version
  2670.   if test "${ac_cv_path_mkdir+set}" = set; then
  2671.     MKDIR_P="$ac_cv_path_mkdir -p"
  2672.   else
  2673.     # As a last resort, use the slow shell script.  Don't cache a
  2674.     # value for MKDIR_P within a source directory, because that will
  2675.     # break other packages using the cache if that directory is
  2676.     # removed, or if the value is a relative name.
  2677.     MKDIR_P="$ac_install_sh -d"
  2678.   fi
  2679. fi
  2680. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2681. $as_echo "$MKDIR_P" >&6; }
  2682.  
  2683. for ac_prog in gawk mawk nawk awk
  2684. do
  2685.   # Extract the first word of "$ac_prog", so it can be a program name with args.
  2686. set dummy $ac_prog; ac_word=$2
  2687. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2688. $as_echo_n "checking for $ac_word... " >&6; }
  2689. if ${ac_cv_prog_AWK+:} false; then :
  2690.   $as_echo_n "(cached) " >&6
  2691. else
  2692.   if test -n "$AWK"; then
  2693.   ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2694. else
  2695. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2696. for as_dir in $PATH
  2697. do
  2698.   IFS=$as_save_IFS
  2699.   test -z "$as_dir" && as_dir=.
  2700.     for ac_exec_ext in '' $ac_executable_extensions; do
  2701.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2702.     ac_cv_prog_AWK="$ac_prog"
  2703.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2704.     break 2
  2705.   fi
  2706. done
  2707.   done
  2708. IFS=$as_save_IFS
  2709.  
  2710. fi
  2711. fi
  2712. AWK=$ac_cv_prog_AWK
  2713. if test -n "$AWK"; then
  2714.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2715. $as_echo "$AWK" >&6; }
  2716. else
  2717.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2718. $as_echo "no" >&6; }
  2719. fi
  2720.  
  2721.  
  2722.   test -n "$AWK" && break
  2723. done
  2724.  
  2725. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2726. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2727. set x ${MAKE-make}
  2728. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2729. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2730.   $as_echo_n "(cached) " >&6
  2731. else
  2732.   cat >conftest.make <<\_ACEOF
  2733. SHELL = /bin/sh
  2734. all:
  2735.         @echo '@@@%%%=$(MAKE)=@@@%%%'
  2736. _ACEOF
  2737. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2738. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2739.   *@@@%%%=?*=@@@%%%*)
  2740.     eval ac_cv_prog_make_${ac_make}_set=yes;;
  2741.   *)
  2742.     eval ac_cv_prog_make_${ac_make}_set=no;;
  2743. esac
  2744. rm -f conftest.make
  2745. fi
  2746. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2747.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2748. $as_echo "yes" >&6; }
  2749.   SET_MAKE=
  2750. else
  2751.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2752. $as_echo "no" >&6; }
  2753.   SET_MAKE="MAKE=${MAKE-make}"
  2754. fi
  2755.  
  2756. rm -rf .tst 2>/dev/null
  2757. mkdir .tst 2>/dev/null
  2758. if test -d .tst; then
  2759.   am__leading_dot=.
  2760. else
  2761.   am__leading_dot=_
  2762. fi
  2763. rmdir .tst 2>/dev/null
  2764.  
  2765. # Check whether --enable-silent-rules was given.
  2766. if test "${enable_silent_rules+set}" = set; then :
  2767.   enableval=$enable_silent_rules;
  2768. fi
  2769.  
  2770. case $enable_silent_rules in # (((
  2771.   yes) AM_DEFAULT_VERBOSITY=0;;
  2772.    no) AM_DEFAULT_VERBOSITY=1;;
  2773.     *) AM_DEFAULT_VERBOSITY=1;;
  2774. esac
  2775. am_make=${MAKE-make}
  2776. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  2777. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  2778. if ${am_cv_make_support_nested_variables+:} false; then :
  2779.   $as_echo_n "(cached) " >&6
  2780. else
  2781.   if $as_echo 'TRUE=$(BAR$(V))
  2782. BAR0=false
  2783. BAR1=true
  2784. V=1
  2785. am__doit:
  2786.         @$(TRUE)
  2787. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  2788.   am_cv_make_support_nested_variables=yes
  2789. else
  2790.   am_cv_make_support_nested_variables=no
  2791. fi
  2792. fi
  2793. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  2794. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  2795. if test $am_cv_make_support_nested_variables = yes; then
  2796.     AM_V='$(V)'
  2797.   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  2798. else
  2799.   AM_V=$AM_DEFAULT_VERBOSITY
  2800.   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  2801. fi
  2802. AM_BACKSLASH='\'
  2803.  
  2804. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2805.   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2806.   # is not polluted with repeated "-I."
  2807.   am__isrc=' -I$(srcdir)'
  2808.   # test to see if srcdir already configured
  2809.   if test -f $srcdir/config.status; then
  2810.     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2811.   fi
  2812. fi
  2813.  
  2814. # test whether we have cygpath
  2815. if test -z "$CYGPATH_W"; then
  2816.   if (cygpath --version) >/dev/null 2>/dev/null; then
  2817.     CYGPATH_W='cygpath -w'
  2818.   else
  2819.     CYGPATH_W=echo
  2820.   fi
  2821. fi
  2822.  
  2823.  
  2824. # Define the identity of the package.
  2825.  PACKAGE='libva-intel-driver'
  2826.  VERSION='1.4.1'
  2827.  
  2828.  
  2829. cat >>confdefs.h <<_ACEOF
  2830. #define PACKAGE "$PACKAGE"
  2831. _ACEOF
  2832.  
  2833.  
  2834. cat >>confdefs.h <<_ACEOF
  2835. #define VERSION "$VERSION"
  2836. _ACEOF
  2837.  
  2838. # Some tools Automake needs.
  2839.  
  2840. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2841.  
  2842.  
  2843. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2844.  
  2845.  
  2846. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2847.  
  2848.  
  2849. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2850.  
  2851.  
  2852. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2853.  
  2854. # For better backward compatibility.  To be removed once Automake 1.9.x
  2855. # dies out for good.  For more background, see:
  2856. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  2857. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  2858. mkdir_p='$(MKDIR_P)'
  2859.  
  2860. # We need awk for the "check" target.  The system "awk" is bad on
  2861. # some platforms.
  2862. # Always define AMTAR for backward compatibility.  Yes, it's still used
  2863. # in the wild :-(  We should find a proper way to deprecate it ...
  2864. AMTAR='$${TAR-tar}'
  2865.  
  2866.  
  2867. # We'll loop over all known methods to create a tar archive until one works.
  2868. _am_tools='gnutar plaintar pax cpio none'
  2869.  
  2870. # The POSIX 1988 'ustar' format is defined with fixed-size fields.
  2871.       # There is notably a 21 bits limit for the UID and the GID.  In fact,
  2872.       # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
  2873.       # and bug#13588).
  2874.       am_max_uid=2097151 # 2^21 - 1
  2875.       am_max_gid=$am_max_uid
  2876.       # The $UID and $GID variables are not portable, so we need to resort
  2877.       # to the POSIX-mandated id(1) utility.  Errors in the 'id' calls
  2878.       # below are definitely unexpected, so allow the users to see them
  2879.       # (that is, avoid stderr redirection).
  2880.       am_uid=`id -u || echo unknown`
  2881.       am_gid=`id -g || echo unknown`
  2882.       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
  2883. $as_echo_n "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
  2884.       if test $am_uid -le $am_max_uid; then
  2885.          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2886. $as_echo "yes" >&6; }
  2887.       else
  2888.          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2889. $as_echo "no" >&6; }
  2890.          _am_tools=none
  2891.       fi
  2892.       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
  2893. $as_echo_n "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
  2894.       if test $am_gid -le $am_max_gid; then
  2895.          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2896. $as_echo "yes" >&6; }
  2897.       else
  2898.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2899. $as_echo "no" >&6; }
  2900.         _am_tools=none
  2901.       fi
  2902.  
  2903.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
  2904. $as_echo_n "checking how to create a ustar tar archive... " >&6; }
  2905.  
  2906.   # Go ahead even if we have the value already cached.  We do so because we
  2907.   # need to set the values for the 'am__tar' and 'am__untar' variables.
  2908.   _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
  2909.  
  2910.   for _am_tool in $_am_tools; do
  2911.     case $_am_tool in
  2912.     gnutar)
  2913.       for _am_tar in tar gnutar gtar; do
  2914.         { echo "$as_me:$LINENO: $_am_tar --version" >&5
  2915.    ($_am_tar --version) >&5 2>&5
  2916.    ac_status=$?
  2917.    echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2918.    (exit $ac_status); } && break
  2919.       done
  2920.       am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
  2921.       am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
  2922.       am__untar="$_am_tar -xf -"
  2923.       ;;
  2924.     plaintar)
  2925.       # Must skip GNU tar: if it does not support --format= it doesn't create
  2926.       # ustar tarball either.
  2927.       (tar --version) >/dev/null 2>&1 && continue
  2928.       am__tar='tar chf - "$$tardir"'
  2929.       am__tar_='tar chf - "$tardir"'
  2930.       am__untar='tar xf -'
  2931.       ;;
  2932.     pax)
  2933.       am__tar='pax -L -x ustar -w "$$tardir"'
  2934.       am__tar_='pax -L -x ustar -w "$tardir"'
  2935.       am__untar='pax -r'
  2936.       ;;
  2937.     cpio)
  2938.       am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
  2939.       am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
  2940.       am__untar='cpio -i -H ustar -d'
  2941.       ;;
  2942.     none)
  2943.       am__tar=false
  2944.       am__tar_=false
  2945.       am__untar=false
  2946.       ;;
  2947.     esac
  2948.  
  2949.     # If the value was cached, stop now.  We just wanted to have am__tar
  2950.     # and am__untar set.
  2951.     test -n "${am_cv_prog_tar_ustar}" && break
  2952.  
  2953.     # tar/untar a dummy directory, and stop if the command works.
  2954.     rm -rf conftest.dir
  2955.     mkdir conftest.dir
  2956.     echo GrepMe > conftest.dir/file
  2957.     { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
  2958.    (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
  2959.    ac_status=$?
  2960.    echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2961.    (exit $ac_status); }
  2962.     rm -rf conftest.dir
  2963.     if test -s conftest.tar; then
  2964.       { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
  2965.    ($am__untar <conftest.tar) >&5 2>&5
  2966.    ac_status=$?
  2967.    echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2968.    (exit $ac_status); }
  2969.       { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
  2970.    (cat conftest.dir/file) >&5 2>&5
  2971.    ac_status=$?
  2972.    echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2973.    (exit $ac_status); }
  2974.       grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
  2975.     fi
  2976.   done
  2977.   rm -rf conftest.dir
  2978.  
  2979.   if ${am_cv_prog_tar_ustar+:} false; then :
  2980.   $as_echo_n "(cached) " >&6
  2981. else
  2982.   am_cv_prog_tar_ustar=$_am_tool
  2983. fi
  2984.  
  2985.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
  2986. $as_echo "$am_cv_prog_tar_ustar" >&6; }
  2987.  
  2988.  
  2989.  
  2990.  
  2991.  
  2992.  
  2993. # POSIX will say in a future version that running "rm -f" with no argument
  2994. # is OK; and we want to be able to make that assumption in our Makefile
  2995. # recipes.  So use an aggressive probe to check that the usage we want is
  2996. # actually supported "in the wild" to an acceptable degree.
  2997. # See automake bug#10828.
  2998. # To make any issue more visible, cause the running configure to be aborted
  2999. # by default if the 'rm' program in use doesn't match our expectations; the
  3000. # user can still override this though.
  3001. if rm -f && rm -fr && rm -rf; then : OK; else
  3002.   cat >&2 <<'END'
  3003. Oops!
  3004.  
  3005. Your 'rm' program seems unable to run without file operands specified
  3006. on the command line, even when the '-f' option is present.  This is contrary
  3007. to the behaviour of most rm programs out there, and not conforming with
  3008. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  3009.  
  3010. Please tell bug-automake@gnu.org about your system, including the value
  3011. of your $PATH and any error possibly output before this message.  This
  3012. can help us improve future automake versions.
  3013.  
  3014. END
  3015.   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  3016.     echo 'Configuration will proceed anyway, since you have set the' >&2
  3017.     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  3018.     echo >&2
  3019.   else
  3020.     cat >&2 <<'END'
  3021. Aborting the configuration process, to ensure you take notice of the issue.
  3022.  
  3023. You can download and install GNU coreutils to get an 'rm' implementation
  3024. that behaves properly: <http://www.gnu.org/software/coreutils/>.
  3025.  
  3026. If you want to complete the configuration process using your problematic
  3027. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  3028. to "yes", and re-run configure.
  3029.  
  3030. END
  3031.     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  3032.   fi
  3033. fi
  3034.  
  3035. ac_config_headers="$ac_config_headers src/config.h"
  3036.  
  3037.  
  3038. INTEL_DRIVER_MAJOR_VERSION=1
  3039. INTEL_DRIVER_MINOR_VERSION=4
  3040. INTEL_DRIVER_MICRO_VERSION=1
  3041.  
  3042. $as_echo "#define INTEL_DRIVER_MAJOR_VERSION 1" >>confdefs.h
  3043.  
  3044.  
  3045. $as_echo "#define INTEL_DRIVER_MINOR_VERSION 4" >>confdefs.h
  3046.  
  3047.  
  3048. $as_echo "#define INTEL_DRIVER_MICRO_VERSION 1" >>confdefs.h
  3049.  
  3050.  
  3051. $as_echo "#define INTEL_DRIVER_PRE_VERSION 0" >>confdefs.h
  3052.  
  3053.  
  3054. INTEL_DRIVER_LT_LDFLAGS="-avoid-version"
  3055.  
  3056.  
  3057. # Check whether --enable-silent-rules was given.
  3058. if test "${enable_silent_rules+set}" = set; then :
  3059.   enableval=$enable_silent_rules;
  3060. fi
  3061.  
  3062. case $enable_silent_rules in # (((
  3063.   yes) AM_DEFAULT_VERBOSITY=0;;
  3064.    no) AM_DEFAULT_VERBOSITY=1;;
  3065.     *) AM_DEFAULT_VERBOSITY=0;;
  3066. esac
  3067. am_make=${MAKE-make}
  3068. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  3069. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  3070. if ${am_cv_make_support_nested_variables+:} false; then :
  3071.   $as_echo_n "(cached) " >&6
  3072. else
  3073.   if $as_echo 'TRUE=$(BAR$(V))
  3074. BAR0=false
  3075. BAR1=true
  3076. V=1
  3077. am__doit:
  3078.         @$(TRUE)
  3079. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  3080.   am_cv_make_support_nested_variables=yes
  3081. else
  3082.   am_cv_make_support_nested_variables=no
  3083. fi
  3084. fi
  3085. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  3086. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  3087. if test $am_cv_make_support_nested_variables = yes; then
  3088.     AM_V='$(V)'
  3089.   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  3090. else
  3091.   AM_V=$AM_DEFAULT_VERBOSITY
  3092.   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  3093. fi
  3094. AM_BACKSLASH='\'
  3095.  
  3096.  
  3097. # Check whether --enable-drm was given.
  3098. if test "${enable_drm+set}" = set; then :
  3099.   enableval=$enable_drm;
  3100. else
  3101.   enable_drm="yes"
  3102. fi
  3103.  
  3104.  
  3105. # Check whether --enable-x11 was given.
  3106. if test "${enable_x11+set}" = set; then :
  3107.   enableval=$enable_x11;
  3108. else
  3109.   enable_x11="yes"
  3110. fi
  3111.  
  3112.  
  3113. # Check whether --enable-wayland was given.
  3114. if test "${enable_wayland+set}" = set; then :
  3115.   enableval=$enable_wayland;
  3116. else
  3117.   enable_wayland="yes"
  3118. fi
  3119.  
  3120.  
  3121. # Check whether --enable-static was given.
  3122. if test "${enable_static+set}" = set; then :
  3123.   enableval=$enable_static; p=${PACKAGE-default}
  3124.     case $enableval in
  3125.     yes) enable_static=yes ;;
  3126.     no) enable_static=no ;;
  3127.     *)
  3128.      enable_static=no
  3129.       # Look at the argument we got.  We use all the common list separators.
  3130.       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3131.       for pkg in $enableval; do
  3132.         IFS="$lt_save_ifs"
  3133.         if test "X$pkg" = "X$p"; then
  3134.           enable_static=yes
  3135.         fi
  3136.       done
  3137.       IFS="$lt_save_ifs"
  3138.       ;;
  3139.     esac
  3140. else
  3141.   enable_static=no
  3142. fi
  3143.  
  3144.  
  3145.  
  3146.  
  3147.  
  3148.  
  3149.  
  3150.  
  3151.  
  3152. case `pwd` in
  3153.   *\ * | *\     *)
  3154.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  3155. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  3156. esac
  3157.  
  3158.  
  3159.  
  3160. macro_version='2.4.2'
  3161. macro_revision='1.3337'
  3162.  
  3163.  
  3164.  
  3165.  
  3166.  
  3167.  
  3168.  
  3169.  
  3170.  
  3171.  
  3172.  
  3173.  
  3174.  
  3175. ltmain="$ac_aux_dir/ltmain.sh"
  3176.  
  3177. # Make sure we can run config.sub.
  3178. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  3179.   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  3180.  
  3181. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3182. $as_echo_n "checking build system type... " >&6; }
  3183. if ${ac_cv_build+:} false; then :
  3184.   $as_echo_n "(cached) " >&6
  3185. else
  3186.   ac_build_alias=$build_alias
  3187. test "x$ac_build_alias" = x &&
  3188.   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  3189. test "x$ac_build_alias" = x &&
  3190.   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  3191. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  3192.   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  3193.  
  3194. fi
  3195. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3196. $as_echo "$ac_cv_build" >&6; }
  3197. case $ac_cv_build in
  3198. *-*-*) ;;
  3199. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  3200. esac
  3201. build=$ac_cv_build
  3202. ac_save_IFS=$IFS; IFS='-'
  3203. set x $ac_cv_build
  3204. shift
  3205. build_cpu=$1
  3206. build_vendor=$2
  3207. shift; shift
  3208. # Remember, the first character of IFS is used to create $*,
  3209. # except with old shells:
  3210. build_os=$*
  3211. IFS=$ac_save_IFS
  3212. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3213.  
  3214.  
  3215. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3216. $as_echo_n "checking host system type... " >&6; }
  3217. if ${ac_cv_host+:} false; then :
  3218.   $as_echo_n "(cached) " >&6
  3219. else
  3220.   if test "x$host_alias" = x; then
  3221.   ac_cv_host=$ac_cv_build
  3222. else
  3223.   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  3224.     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  3225. fi
  3226.  
  3227. fi
  3228. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3229. $as_echo "$ac_cv_host" >&6; }
  3230. case $ac_cv_host in
  3231. *-*-*) ;;
  3232. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  3233. esac
  3234. host=$ac_cv_host
  3235. ac_save_IFS=$IFS; IFS='-'
  3236. set x $ac_cv_host
  3237. shift
  3238. host_cpu=$1
  3239. host_vendor=$2
  3240. shift; shift
  3241. # Remember, the first character of IFS is used to create $*,
  3242. # except with old shells:
  3243. host_os=$*
  3244. IFS=$ac_save_IFS
  3245. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3246.  
  3247.  
  3248. # Backslashify metacharacters that are still active within
  3249. # double-quoted strings.
  3250. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  3251.  
  3252. # Same as above, but do not quote variable references.
  3253. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  3254.  
  3255. # Sed substitution to delay expansion of an escaped shell variable in a
  3256. # double_quote_subst'ed string.
  3257. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  3258.  
  3259. # Sed substitution to delay expansion of an escaped single quote.
  3260. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  3261.  
  3262. # Sed substitution to avoid accidental globbing in evaled expressions
  3263. no_glob_subst='s/\*/\\\*/g'
  3264.  
  3265. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  3266. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  3267. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  3268.  
  3269. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  3270. $as_echo_n "checking how to print strings... " >&6; }
  3271. # Test print first, because it will be a builtin if present.
  3272. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  3273.    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  3274.   ECHO='print -r --'
  3275. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  3276.   ECHO='printf %s\n'
  3277. else
  3278.   # Use this function as a fallback that always works.
  3279.   func_fallback_echo ()
  3280.   {
  3281.     eval 'cat <<_LTECHO_EOF
  3282. $1
  3283. _LTECHO_EOF'
  3284.   }
  3285.   ECHO='func_fallback_echo'
  3286. fi
  3287.  
  3288. # func_echo_all arg...
  3289. # Invoke $ECHO with all args, space-separated.
  3290. func_echo_all ()
  3291. {
  3292.     $ECHO ""
  3293. }
  3294.  
  3295. case "$ECHO" in
  3296.   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  3297. $as_echo "printf" >&6; } ;;
  3298.   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  3299. $as_echo "print -r" >&6; } ;;
  3300.   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  3301. $as_echo "cat" >&6; } ;;
  3302. esac
  3303.  
  3304.  
  3305.  
  3306.  
  3307.  
  3308.  
  3309.  
  3310.  
  3311.  
  3312.  
  3313.  
  3314.  
  3315.  
  3316.  
  3317. DEPDIR="${am__leading_dot}deps"
  3318.  
  3319. ac_config_commands="$ac_config_commands depfiles"
  3320.  
  3321.  
  3322. am_make=${MAKE-make}
  3323. cat > confinc << 'END'
  3324. am__doit:
  3325.         @echo this is the am__doit target
  3326. .PHONY: am__doit
  3327. END
  3328. # If we don't find an include directive, just comment out the code.
  3329. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3330. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3331. am__include="#"
  3332. am__quote=
  3333. _am_result=none
  3334. # First try GNU make style include.
  3335. echo "include confinc" > confmf
  3336. # Ignore all kinds of additional output from 'make'.
  3337. case `$am_make -s -f confmf 2> /dev/null` in #(
  3338. *the\ am__doit\ target*)
  3339.   am__include=include
  3340.   am__quote=
  3341.   _am_result=GNU
  3342.   ;;
  3343. esac
  3344. # Now try BSD make style include.
  3345. if test "$am__include" = "#"; then
  3346.    echo '.include "confinc"' > confmf
  3347.    case `$am_make -s -f confmf 2> /dev/null` in #(
  3348.    *the\ am__doit\ target*)
  3349.      am__include=.include
  3350.      am__quote="\""
  3351.      _am_result=BSD
  3352.      ;;
  3353.    esac
  3354. fi
  3355.  
  3356.  
  3357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3358. $as_echo "$_am_result" >&6; }
  3359. rm -f confinc confmf
  3360.  
  3361. # Check whether --enable-dependency-tracking was given.
  3362. if test "${enable_dependency_tracking+set}" = set; then :
  3363.   enableval=$enable_dependency_tracking;
  3364. fi
  3365.  
  3366. if test "x$enable_dependency_tracking" != xno; then
  3367.   am_depcomp="$ac_aux_dir/depcomp"
  3368.   AMDEPBACKSLASH='\'
  3369.   am__nodep='_no'
  3370. fi
  3371.  if test "x$enable_dependency_tracking" != xno; then
  3372.   AMDEP_TRUE=
  3373.   AMDEP_FALSE='#'
  3374. else
  3375.   AMDEP_TRUE='#'
  3376.   AMDEP_FALSE=
  3377. fi
  3378.  
  3379.  
  3380. ac_ext=c
  3381. ac_cpp='$CPP $CPPFLAGS'
  3382. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3383. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3384. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3385. if test -n "$ac_tool_prefix"; then
  3386.   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3387. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3388. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3389. $as_echo_n "checking for $ac_word... " >&6; }
  3390. if ${ac_cv_prog_CC+:} false; then :
  3391.   $as_echo_n "(cached) " >&6
  3392. else
  3393.   if test -n "$CC"; then
  3394.   ac_cv_prog_CC="$CC" # Let the user override the test.
  3395. else
  3396. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3397. for as_dir in $PATH
  3398. do
  3399.   IFS=$as_save_IFS
  3400.   test -z "$as_dir" && as_dir=.
  3401.     for ac_exec_ext in '' $ac_executable_extensions; do
  3402.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3403.     ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3404.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3405.     break 2
  3406.   fi
  3407. done
  3408.   done
  3409. IFS=$as_save_IFS
  3410.  
  3411. fi
  3412. fi
  3413. CC=$ac_cv_prog_CC
  3414. if test -n "$CC"; then
  3415.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3416. $as_echo "$CC" >&6; }
  3417. else
  3418.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3419. $as_echo "no" >&6; }
  3420. fi
  3421.  
  3422.  
  3423. fi
  3424. if test -z "$ac_cv_prog_CC"; then
  3425.   ac_ct_CC=$CC
  3426.   # Extract the first word of "gcc", so it can be a program name with args.
  3427. set dummy gcc; ac_word=$2
  3428. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3429. $as_echo_n "checking for $ac_word... " >&6; }
  3430. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3431.   $as_echo_n "(cached) " >&6
  3432. else
  3433.   if test -n "$ac_ct_CC"; then
  3434.   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3435. else
  3436. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3437. for as_dir in $PATH
  3438. do
  3439.   IFS=$as_save_IFS
  3440.   test -z "$as_dir" && as_dir=.
  3441.     for ac_exec_ext in '' $ac_executable_extensions; do
  3442.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3443.     ac_cv_prog_ac_ct_CC="gcc"
  3444.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3445.     break 2
  3446.   fi
  3447. done
  3448.   done
  3449. IFS=$as_save_IFS
  3450.  
  3451. fi
  3452. fi
  3453. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3454. if test -n "$ac_ct_CC"; then
  3455.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3456. $as_echo "$ac_ct_CC" >&6; }
  3457. else
  3458.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3459. $as_echo "no" >&6; }
  3460. fi
  3461.  
  3462.   if test "x$ac_ct_CC" = x; then
  3463.     CC=""
  3464.   else
  3465.     case $cross_compiling:$ac_tool_warned in
  3466. yes:)
  3467. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3468. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3469. ac_tool_warned=yes ;;
  3470. esac
  3471.     CC=$ac_ct_CC
  3472.   fi
  3473. else
  3474.   CC="$ac_cv_prog_CC"
  3475. fi
  3476.  
  3477. if test -z "$CC"; then
  3478.           if test -n "$ac_tool_prefix"; then
  3479.     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3480. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3481. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3482. $as_echo_n "checking for $ac_word... " >&6; }
  3483. if ${ac_cv_prog_CC+:} false; then :
  3484.   $as_echo_n "(cached) " >&6
  3485. else
  3486.   if test -n "$CC"; then
  3487.   ac_cv_prog_CC="$CC" # Let the user override the test.
  3488. else
  3489. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3490. for as_dir in $PATH
  3491. do
  3492.   IFS=$as_save_IFS
  3493.   test -z "$as_dir" && as_dir=.
  3494.     for ac_exec_ext in '' $ac_executable_extensions; do
  3495.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3496.     ac_cv_prog_CC="${ac_tool_prefix}cc"
  3497.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3498.     break 2
  3499.   fi
  3500. done
  3501.   done
  3502. IFS=$as_save_IFS
  3503.  
  3504. fi
  3505. fi
  3506. CC=$ac_cv_prog_CC
  3507. if test -n "$CC"; then
  3508.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3509. $as_echo "$CC" >&6; }
  3510. else
  3511.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3512. $as_echo "no" >&6; }
  3513. fi
  3514.  
  3515.  
  3516.   fi
  3517. fi
  3518. if test -z "$CC"; then
  3519.   # Extract the first word of "cc", so it can be a program name with args.
  3520. set dummy cc; ac_word=$2
  3521. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3522. $as_echo_n "checking for $ac_word... " >&6; }
  3523. if ${ac_cv_prog_CC+:} false; then :
  3524.   $as_echo_n "(cached) " >&6
  3525. else
  3526.   if test -n "$CC"; then
  3527.   ac_cv_prog_CC="$CC" # Let the user override the test.
  3528. else
  3529.   ac_prog_rejected=no
  3530. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3531. for as_dir in $PATH
  3532. do
  3533.   IFS=$as_save_IFS
  3534.   test -z "$as_dir" && as_dir=.
  3535.     for ac_exec_ext in '' $ac_executable_extensions; do
  3536.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3537.     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3538.        ac_prog_rejected=yes
  3539.        continue
  3540.      fi
  3541.     ac_cv_prog_CC="cc"
  3542.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3543.     break 2
  3544.   fi
  3545. done
  3546.   done
  3547. IFS=$as_save_IFS
  3548.  
  3549. if test $ac_prog_rejected = yes; then
  3550.   # We found a bogon in the path, so make sure we never use it.
  3551.   set dummy $ac_cv_prog_CC
  3552.   shift
  3553.   if test $# != 0; then
  3554.     # We chose a different compiler from the bogus one.
  3555.     # However, it has the same basename, so the bogon will be chosen
  3556.     # first if we set CC to just the basename; use the full file name.
  3557.     shift
  3558.     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3559.   fi
  3560. fi
  3561. fi
  3562. fi
  3563. CC=$ac_cv_prog_CC
  3564. if test -n "$CC"; then
  3565.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3566. $as_echo "$CC" >&6; }
  3567. else
  3568.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3569. $as_echo "no" >&6; }
  3570. fi
  3571.  
  3572.  
  3573. fi
  3574. if test -z "$CC"; then
  3575.   if test -n "$ac_tool_prefix"; then
  3576.   for ac_prog in cl.exe
  3577.   do
  3578.     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3579. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3580. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3581. $as_echo_n "checking for $ac_word... " >&6; }
  3582. if ${ac_cv_prog_CC+:} false; then :
  3583.   $as_echo_n "(cached) " >&6
  3584. else
  3585.   if test -n "$CC"; then
  3586.   ac_cv_prog_CC="$CC" # Let the user override the test.
  3587. else
  3588. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3589. for as_dir in $PATH
  3590. do
  3591.   IFS=$as_save_IFS
  3592.   test -z "$as_dir" && as_dir=.
  3593.     for ac_exec_ext in '' $ac_executable_extensions; do
  3594.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3595.     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3596.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3597.     break 2
  3598.   fi
  3599. done
  3600.   done
  3601. IFS=$as_save_IFS
  3602.  
  3603. fi
  3604. fi
  3605. CC=$ac_cv_prog_CC
  3606. if test -n "$CC"; then
  3607.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3608. $as_echo "$CC" >&6; }
  3609. else
  3610.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3611. $as_echo "no" >&6; }
  3612. fi
  3613.  
  3614.  
  3615.     test -n "$CC" && break
  3616.   done
  3617. fi
  3618. if test -z "$CC"; then
  3619.   ac_ct_CC=$CC
  3620.   for ac_prog in cl.exe
  3621. do
  3622.   # Extract the first word of "$ac_prog", so it can be a program name with args.
  3623. set dummy $ac_prog; ac_word=$2
  3624. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3625. $as_echo_n "checking for $ac_word... " >&6; }
  3626. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3627.   $as_echo_n "(cached) " >&6
  3628. else
  3629.   if test -n "$ac_ct_CC"; then
  3630.   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3631. else
  3632. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3633. for as_dir in $PATH
  3634. do
  3635.   IFS=$as_save_IFS
  3636.   test -z "$as_dir" && as_dir=.
  3637.     for ac_exec_ext in '' $ac_executable_extensions; do
  3638.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3639.     ac_cv_prog_ac_ct_CC="$ac_prog"
  3640.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3641.     break 2
  3642.   fi
  3643. done
  3644.   done
  3645. IFS=$as_save_IFS
  3646.  
  3647. fi
  3648. fi
  3649. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3650. if test -n "$ac_ct_CC"; then
  3651.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3652. $as_echo "$ac_ct_CC" >&6; }
  3653. else
  3654.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3655. $as_echo "no" >&6; }
  3656. fi
  3657.  
  3658.  
  3659.   test -n "$ac_ct_CC" && break
  3660. done
  3661.  
  3662.   if test "x$ac_ct_CC" = x; then
  3663.     CC=""
  3664.   else
  3665.     case $cross_compiling:$ac_tool_warned in
  3666. yes:)
  3667. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3668. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3669. ac_tool_warned=yes ;;
  3670. esac
  3671.     CC=$ac_ct_CC
  3672.   fi
  3673. fi
  3674.  
  3675. fi
  3676.  
  3677.  
  3678. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3679. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3680. as_fn_error $? "no acceptable C compiler found in \$PATH
  3681. See \`config.log' for more details" "$LINENO" 5; }
  3682.  
  3683. # Provide some information about the compiler.
  3684. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3685. set X $ac_compile
  3686. ac_compiler=$2
  3687. for ac_option in --version -v -V -qversion; do
  3688.   { { ac_try="$ac_compiler $ac_option >&5"
  3689. case "(($ac_try" in
  3690.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3691.   *) ac_try_echo=$ac_try;;
  3692. esac
  3693. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3694. $as_echo "$ac_try_echo"; } >&5
  3695.   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3696.   ac_status=$?
  3697.   if test -s conftest.err; then
  3698.     sed '10a\
  3699. ... rest of stderr output deleted ...
  3700.          10q' conftest.err >conftest.er1
  3701.     cat conftest.er1 >&5
  3702.   fi
  3703.   rm -f conftest.er1 conftest.err
  3704.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3705.   test $ac_status = 0; }
  3706. done
  3707.  
  3708. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3709. /* end confdefs.h.  */
  3710.  
  3711. int
  3712. main ()
  3713. {
  3714.  
  3715.   ;
  3716.   return 0;
  3717. }
  3718. _ACEOF
  3719. ac_clean_files_save=$ac_clean_files
  3720. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3721. # Try to create an executable without -o first, disregard a.out.
  3722. # It will help us diagnose broken compilers, and finding out an intuition
  3723. # of exeext.
  3724. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3725. $as_echo_n "checking whether the C compiler works... " >&6; }
  3726. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3727.  
  3728. # The possible output files:
  3729. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3730.  
  3731. ac_rmfiles=
  3732. for ac_file in $ac_files
  3733. do
  3734.   case $ac_file in
  3735.     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3736.     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3737.   esac
  3738. done
  3739. rm -f $ac_rmfiles
  3740.  
  3741. if { { ac_try="$ac_link_default"
  3742. case "(($ac_try" in
  3743.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3744.   *) ac_try_echo=$ac_try;;
  3745. esac
  3746. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3747. $as_echo "$ac_try_echo"; } >&5
  3748.   (eval "$ac_link_default") 2>&5
  3749.   ac_status=$?
  3750.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3751.   test $ac_status = 0; }; then :
  3752.   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3753. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3754. # in a Makefile.  We should not override ac_cv_exeext if it was cached,
  3755. # so that the user can short-circuit this test for compilers unknown to
  3756. # Autoconf.
  3757. for ac_file in $ac_files ''
  3758. do
  3759.   test -f "$ac_file" || continue
  3760.   case $ac_file in
  3761.     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3762.         ;;
  3763.     [ab].out )
  3764.         # We found the default executable, but exeext='' is most
  3765.         # certainly right.
  3766.         break;;
  3767.     *.* )
  3768.         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3769.         then :; else
  3770.            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3771.         fi
  3772.         # We set ac_cv_exeext here because the later test for it is not
  3773.         # safe: cross compilers may not add the suffix if given an `-o'
  3774.         # argument, so we may need to know it at that point already.
  3775.         # Even if this section looks crufty: it has the advantage of
  3776.         # actually working.
  3777.         break;;
  3778.     * )
  3779.         break;;
  3780.   esac
  3781. done
  3782. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3783.  
  3784. else
  3785.   ac_file=''
  3786. fi
  3787. if test -z "$ac_file"; then :
  3788.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3789. $as_echo "no" >&6; }
  3790. $as_echo "$as_me: failed program was:" >&5
  3791. sed 's/^/| /' conftest.$ac_ext >&5
  3792.  
  3793. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3794. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3795. as_fn_error 77 "C compiler cannot create executables
  3796. See \`config.log' for more details" "$LINENO" 5; }
  3797. else
  3798.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3799. $as_echo "yes" >&6; }
  3800. fi
  3801. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3802. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3803. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3804. $as_echo "$ac_file" >&6; }
  3805. ac_exeext=$ac_cv_exeext
  3806.  
  3807. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3808. ac_clean_files=$ac_clean_files_save
  3809. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3810. $as_echo_n "checking for suffix of executables... " >&6; }
  3811. if { { ac_try="$ac_link"
  3812. case "(($ac_try" in
  3813.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3814.   *) ac_try_echo=$ac_try;;
  3815. esac
  3816. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3817. $as_echo "$ac_try_echo"; } >&5
  3818.   (eval "$ac_link") 2>&5
  3819.   ac_status=$?
  3820.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3821.   test $ac_status = 0; }; then :
  3822.   # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3823. # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
  3824. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3825. # `rm'.
  3826. for ac_file in conftest.exe conftest conftest.*; do
  3827.   test -f "$ac_file" || continue
  3828.   case $ac_file in
  3829.     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3830.     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3831.           break;;
  3832.     * ) break;;
  3833.   esac
  3834. done
  3835. else
  3836.   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3837. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3838. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3839. See \`config.log' for more details" "$LINENO" 5; }
  3840. fi
  3841. rm -f conftest conftest$ac_cv_exeext
  3842. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3843. $as_echo "$ac_cv_exeext" >&6; }
  3844.  
  3845. rm -f conftest.$ac_ext
  3846. EXEEXT=$ac_cv_exeext
  3847. ac_exeext=$EXEEXT
  3848. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3849. /* end confdefs.h.  */
  3850. #include <stdio.h>
  3851. int
  3852. main ()
  3853. {
  3854. FILE *f = fopen ("conftest.out", "w");
  3855.  return ferror (f) || fclose (f) != 0;
  3856.  
  3857.   ;
  3858.   return 0;
  3859. }
  3860. _ACEOF
  3861. ac_clean_files="$ac_clean_files conftest.out"
  3862. # Check that the compiler produces executables we can run.  If not, either
  3863. # the compiler is broken, or we cross compile.
  3864. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3865. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3866. if test "$cross_compiling" != yes; then
  3867.   { { ac_try="$ac_link"
  3868. case "(($ac_try" in
  3869.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3870.   *) ac_try_echo=$ac_try;;
  3871. esac
  3872. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3873. $as_echo "$ac_try_echo"; } >&5
  3874.   (eval "$ac_link") 2>&5
  3875.   ac_status=$?
  3876.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3877.   test $ac_status = 0; }
  3878.   if { ac_try='./conftest$ac_cv_exeext'
  3879.   { { case "(($ac_try" in
  3880.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3881.   *) ac_try_echo=$ac_try;;
  3882. esac
  3883. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3884. $as_echo "$ac_try_echo"; } >&5
  3885.   (eval "$ac_try") 2>&5
  3886.   ac_status=$?
  3887.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3888.   test $ac_status = 0; }; }; then
  3889.     cross_compiling=no
  3890.   else
  3891.     if test "$cross_compiling" = maybe; then
  3892.         cross_compiling=yes
  3893.     else
  3894.         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3895. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3896. as_fn_error $? "cannot run C compiled programs.
  3897. If you meant to cross compile, use \`--host'.
  3898. See \`config.log' for more details" "$LINENO" 5; }
  3899.     fi
  3900.   fi
  3901. fi
  3902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3903. $as_echo "$cross_compiling" >&6; }
  3904.  
  3905. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3906. ac_clean_files=$ac_clean_files_save
  3907. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3908. $as_echo_n "checking for suffix of object files... " >&6; }
  3909. if ${ac_cv_objext+:} false; then :
  3910.   $as_echo_n "(cached) " >&6
  3911. else
  3912.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3913. /* end confdefs.h.  */
  3914.  
  3915. int
  3916. main ()
  3917. {
  3918.  
  3919.   ;
  3920.   return 0;
  3921. }
  3922. _ACEOF
  3923. rm -f conftest.o conftest.obj
  3924. if { { ac_try="$ac_compile"
  3925. case "(($ac_try" in
  3926.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3927.   *) ac_try_echo=$ac_try;;
  3928. esac
  3929. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3930. $as_echo "$ac_try_echo"; } >&5
  3931.   (eval "$ac_compile") 2>&5
  3932.   ac_status=$?
  3933.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3934.   test $ac_status = 0; }; then :
  3935.   for ac_file in conftest.o conftest.obj conftest.*; do
  3936.   test -f "$ac_file" || continue;
  3937.   case $ac_file in
  3938.     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3939.     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3940.        break;;
  3941.   esac
  3942. done
  3943. else
  3944.   $as_echo "$as_me: failed program was:" >&5
  3945. sed 's/^/| /' conftest.$ac_ext >&5
  3946.  
  3947. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3948. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3949. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3950. See \`config.log' for more details" "$LINENO" 5; }
  3951. fi
  3952. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3953. fi
  3954. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3955. $as_echo "$ac_cv_objext" >&6; }
  3956. OBJEXT=$ac_cv_objext
  3957. ac_objext=$OBJEXT
  3958. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3959. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3960. if ${ac_cv_c_compiler_gnu+:} false; then :
  3961.   $as_echo_n "(cached) " >&6
  3962. else
  3963.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3964. /* end confdefs.h.  */
  3965.  
  3966. int
  3967. main ()
  3968. {
  3969. #ifndef __GNUC__
  3970.        choke me
  3971. #endif
  3972.  
  3973.   ;
  3974.   return 0;
  3975. }
  3976. _ACEOF
  3977. if ac_fn_c_try_compile "$LINENO"; then :
  3978.   ac_compiler_gnu=yes
  3979. else
  3980.   ac_compiler_gnu=no
  3981. fi
  3982. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3983. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3984.  
  3985. fi
  3986. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3987. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3988. if test $ac_compiler_gnu = yes; then
  3989.   GCC=yes
  3990. else
  3991.   GCC=
  3992. fi
  3993. ac_test_CFLAGS=${CFLAGS+set}
  3994. ac_save_CFLAGS=$CFLAGS
  3995. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3996. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3997. if ${ac_cv_prog_cc_g+:} false; then :
  3998.   $as_echo_n "(cached) " >&6
  3999. else
  4000.   ac_save_c_werror_flag=$ac_c_werror_flag
  4001.    ac_c_werror_flag=yes
  4002.    ac_cv_prog_cc_g=no
  4003.    CFLAGS="-g"
  4004.    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4005. /* end confdefs.h.  */
  4006.  
  4007. int
  4008. main ()
  4009. {
  4010.  
  4011.   ;
  4012.   return 0;
  4013. }
  4014. _ACEOF
  4015. if ac_fn_c_try_compile "$LINENO"; then :
  4016.   ac_cv_prog_cc_g=yes
  4017. else
  4018.   CFLAGS=""
  4019.       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4020. /* end confdefs.h.  */
  4021.  
  4022. int
  4023. main ()
  4024. {
  4025.  
  4026.   ;
  4027.   return 0;
  4028. }
  4029. _ACEOF
  4030. if ac_fn_c_try_compile "$LINENO"; then :
  4031.  
  4032. else
  4033.   ac_c_werror_flag=$ac_save_c_werror_flag
  4034.          CFLAGS="-g"
  4035.          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4036. /* end confdefs.h.  */
  4037.  
  4038. int
  4039. main ()
  4040. {
  4041.  
  4042.   ;
  4043.   return 0;
  4044. }
  4045. _ACEOF
  4046. if ac_fn_c_try_compile "$LINENO"; then :
  4047.   ac_cv_prog_cc_g=yes
  4048. fi
  4049. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4050. fi
  4051. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4052. fi
  4053. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4054.    ac_c_werror_flag=$ac_save_c_werror_flag
  4055. fi
  4056. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4057. $as_echo "$ac_cv_prog_cc_g" >&6; }
  4058. if test "$ac_test_CFLAGS" = set; then
  4059.   CFLAGS=$ac_save_CFLAGS
  4060. elif test $ac_cv_prog_cc_g = yes; then
  4061.   if test "$GCC" = yes; then
  4062.     CFLAGS="-g -O2"
  4063.   else
  4064.     CFLAGS="-g"
  4065.   fi
  4066. else
  4067.   if test "$GCC" = yes; then
  4068.     CFLAGS="-O2"
  4069.   else
  4070.     CFLAGS=
  4071.   fi
  4072. fi
  4073. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  4074. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4075. if ${ac_cv_prog_cc_c89+:} false; then :
  4076.   $as_echo_n "(cached) " >&6
  4077. else
  4078.   ac_cv_prog_cc_c89=no
  4079. ac_save_CC=$CC
  4080. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4081. /* end confdefs.h.  */
  4082. #include <stdarg.h>
  4083. #include <stdio.h>
  4084. struct stat;
  4085. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  4086. struct buf { int x; };
  4087. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4088. static char *e (p, i)
  4089.      char **p;
  4090.      int i;
  4091. {
  4092.   return p[i];
  4093. }
  4094. static char *f (char * (*g) (char **, int), char **p, ...)
  4095. {
  4096.   char *s;
  4097.   va_list v;
  4098.   va_start (v,p);
  4099.   s = g (p, va_arg (v,int));
  4100.   va_end (v);
  4101.   return s;
  4102. }
  4103.  
  4104. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
  4105.    function prototypes and stuff, but not '\xHH' hex character constants.
  4106.    These don't provoke an error unfortunately, instead are silently treated
  4107.    as 'x'.  The following induces an error, until -std is added to get
  4108.    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
  4109.    array size at least.  It's necessary to write '\x00'==0 to get something
  4110.    that's true only with -std.  */
  4111. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4112.  
  4113. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4114.    inside strings and character constants.  */
  4115. #define FOO(x) 'x'
  4116. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4117.  
  4118. int test (int i, double x);
  4119. struct s1 {int (*f) (int a);};
  4120. struct s2 {int (*f) (double a);};
  4121. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4122. int argc;
  4123. char **argv;
  4124. int
  4125. main ()
  4126. {
  4127. return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  4128.   ;
  4129.   return 0;
  4130. }
  4131. _ACEOF
  4132. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4133.         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4134. do
  4135.   CC="$ac_save_CC $ac_arg"
  4136.   if ac_fn_c_try_compile "$LINENO"; then :
  4137.   ac_cv_prog_cc_c89=$ac_arg
  4138. fi
  4139. rm -f core conftest.err conftest.$ac_objext
  4140.   test "x$ac_cv_prog_cc_c89" != "xno" && break
  4141. done
  4142. rm -f conftest.$ac_ext
  4143. CC=$ac_save_CC
  4144.  
  4145. fi
  4146. # AC_CACHE_VAL
  4147. case "x$ac_cv_prog_cc_c89" in
  4148.   x)
  4149.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4150. $as_echo "none needed" >&6; } ;;
  4151.   xno)
  4152.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4153. $as_echo "unsupported" >&6; } ;;
  4154.   *)
  4155.     CC="$CC $ac_cv_prog_cc_c89"
  4156.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4157. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4158. esac
  4159. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4160.  
  4161. fi
  4162.  
  4163. ac_ext=c
  4164. ac_cpp='$CPP $CPPFLAGS'
  4165. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4166. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4167. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4168.  
  4169. ac_ext=c
  4170. ac_cpp='$CPP $CPPFLAGS'
  4171. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4172. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4173. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4174. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  4175. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  4176. if ${am_cv_prog_cc_c_o+:} false; then :
  4177.   $as_echo_n "(cached) " >&6
  4178. else
  4179.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4180. /* end confdefs.h.  */
  4181.  
  4182. int
  4183. main ()
  4184. {
  4185.  
  4186.   ;
  4187.   return 0;
  4188. }
  4189. _ACEOF
  4190.   # Make sure it works both with $CC and with simple cc.
  4191.   # Following AC_PROG_CC_C_O, we do the test twice because some
  4192.   # compilers refuse to overwrite an existing .o file with -o,
  4193.   # though they will create one.
  4194.   am_cv_prog_cc_c_o=yes
  4195.   for am_i in 1 2; do
  4196.     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  4197.    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  4198.    ac_status=$?
  4199.    echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4200.    (exit $ac_status); } \
  4201.          && test -f conftest2.$ac_objext; then
  4202.       : OK
  4203.     else
  4204.       am_cv_prog_cc_c_o=no
  4205.       break
  4206.     fi
  4207.   done
  4208.   rm -f core conftest*
  4209.   unset am_i
  4210. fi
  4211. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  4212. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  4213. if test "$am_cv_prog_cc_c_o" != yes; then
  4214.    # Losing compiler, so override with the script.
  4215.    # FIXME: It is wrong to rewrite CC.
  4216.    # But if we don't then we get into trouble of one sort or another.
  4217.    # A longer-term fix would be to have automake use am__CC in this case,
  4218.    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  4219.    CC="$am_aux_dir/compile $CC"
  4220. fi
  4221. ac_ext=c
  4222. ac_cpp='$CPP $CPPFLAGS'
  4223. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4224. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4225. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4226.  
  4227.  
  4228. depcc="$CC"   am_compiler_list=
  4229.  
  4230. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4231. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4232. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  4233.   $as_echo_n "(cached) " >&6
  4234. else
  4235.   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4236.   # We make a subdir and do the tests there.  Otherwise we can end up
  4237.   # making bogus files that we don't know about and never remove.  For
  4238.   # instance it was reported that on HP-UX the gcc test will end up
  4239.   # making a dummy file named 'D' -- because '-MD' means "put the output
  4240.   # in D".
  4241.   rm -rf conftest.dir
  4242.   mkdir conftest.dir
  4243.   # Copy depcomp to subdir because otherwise we won't find it if we're
  4244.   # using a relative directory.
  4245.   cp "$am_depcomp" conftest.dir
  4246.   cd conftest.dir
  4247.   # We will build objects and dependencies in a subdirectory because
  4248.   # it helps to detect inapplicable dependency modes.  For instance
  4249.   # both Tru64's cc and ICC support -MD to output dependencies as a
  4250.   # side effect of compilation, but ICC will put the dependencies in
  4251.   # the current directory while Tru64 will put them in the object
  4252.   # directory.
  4253.   mkdir sub
  4254.  
  4255.   am_cv_CC_dependencies_compiler_type=none
  4256.   if test "$am_compiler_list" = ""; then
  4257.      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4258.   fi
  4259.   am__universal=false
  4260.   case " $depcc " in #(
  4261.      *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4262.      esac
  4263.  
  4264.   for depmode in $am_compiler_list; do
  4265.     # Setup a source with many dependencies, because some compilers
  4266.     # like to wrap large dependency lists on column 80 (with \), and
  4267.     # we should not choose a depcomp mode which is confused by this.
  4268.     #
  4269.     # We need to recreate these files for each test, as the compiler may
  4270.     # overwrite some of them when testing with obscure command lines.
  4271.     # This happens at least with the AIX C compiler.
  4272.     : > sub/conftest.c
  4273.     for i in 1 2 3 4 5 6; do
  4274.       echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4275.       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  4276.       # Solaris 10 /bin/sh.
  4277.       echo '/* dummy */' > sub/conftst$i.h
  4278.     done
  4279.     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4280.  
  4281.     # We check with '-c' and '-o' for the sake of the "dashmstdout"
  4282.     # mode.  It turns out that the SunPro C++ compiler does not properly
  4283.     # handle '-M -o', and we need to detect this.  Also, some Intel
  4284.     # versions had trouble with output in subdirs.
  4285.     am__obj=sub/conftest.${OBJEXT-o}
  4286.     am__minus_obj="-o $am__obj"
  4287.     case $depmode in
  4288.     gcc)
  4289.       # This depmode causes a compiler race in universal mode.
  4290.       test "$am__universal" = false || continue
  4291.       ;;
  4292.     nosideeffect)
  4293.       # After this tag, mechanisms are not by side-effect, so they'll
  4294.       # only be used when explicitly requested.
  4295.       if test "x$enable_dependency_tracking" = xyes; then
  4296.         continue
  4297.       else
  4298.         break
  4299.       fi
  4300.       ;;
  4301.     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  4302.       # This compiler won't grok '-c -o', but also, the minuso test has
  4303.       # not run yet.  These depmodes are late enough in the game, and
  4304.       # so weak that their functioning should not be impacted.
  4305.       am__obj=conftest.${OBJEXT-o}
  4306.       am__minus_obj=
  4307.       ;;
  4308.     none) break ;;
  4309.     esac
  4310.     if depmode=$depmode \
  4311.        source=sub/conftest.c object=$am__obj \
  4312.        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4313.        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4314.          >/dev/null 2>conftest.err &&
  4315.        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4316.        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4317.        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4318.        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4319.       # icc doesn't choke on unknown options, it will just issue warnings
  4320.       # or remarks (even with -Werror).  So we grep stderr for any message
  4321.       # that says an option was ignored or not supported.
  4322.       # When given -MP, icc 7.0 and 7.1 complain thusly:
  4323.       #   icc: Command line warning: ignoring option '-M'; no argument required
  4324.       # The diagnosis changed in icc 8.0:
  4325.       #   icc: Command line remark: option '-MP' not supported
  4326.       if (grep 'ignoring option' conftest.err ||
  4327.           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4328.         am_cv_CC_dependencies_compiler_type=$depmode
  4329.         break
  4330.       fi
  4331.     fi
  4332.   done
  4333.  
  4334.   cd ..
  4335.   rm -rf conftest.dir
  4336. else
  4337.   am_cv_CC_dependencies_compiler_type=none
  4338. fi
  4339.  
  4340. fi
  4341. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4342. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4343. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4344.  
  4345.  if
  4346.   test "x$enable_dependency_tracking" != xno \
  4347.   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4348.   am__fastdepCC_TRUE=
  4349.   am__fastdepCC_FALSE='#'
  4350. else
  4351.   am__fastdepCC_TRUE='#'
  4352.   am__fastdepCC_FALSE=
  4353. fi
  4354.  
  4355.  
  4356. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4357. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4358. if ${ac_cv_path_SED+:} false; then :
  4359.   $as_echo_n "(cached) " >&6
  4360. else
  4361.             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4362.      for ac_i in 1 2 3 4 5 6 7; do
  4363.        ac_script="$ac_script$as_nl$ac_script"
  4364.      done
  4365.      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4366.      { ac_script=; unset ac_script;}
  4367.      if test -z "$SED"; then
  4368.   ac_path_SED_found=false
  4369.   # Loop through the user's path and test for each of PROGNAME-LIST
  4370.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4371. for as_dir in $PATH
  4372. do
  4373.   IFS=$as_save_IFS
  4374.   test -z "$as_dir" && as_dir=.
  4375.     for ac_prog in sed gsed; do
  4376.     for ac_exec_ext in '' $ac_executable_extensions; do
  4377.       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4378.       as_fn_executable_p "$ac_path_SED" || continue
  4379. # Check for GNU ac_path_SED and select it if it is found.
  4380.   # Check for GNU $ac_path_SED
  4381. case `"$ac_path_SED" --version 2>&1` in
  4382. *GNU*)
  4383.   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4384. *)
  4385.   ac_count=0
  4386.   $as_echo_n 0123456789 >"conftest.in"
  4387.   while :
  4388.   do
  4389.     cat "conftest.in" "conftest.in" >"conftest.tmp"
  4390.     mv "conftest.tmp" "conftest.in"
  4391.     cp "conftest.in" "conftest.nl"
  4392.     $as_echo '' >> "conftest.nl"
  4393.     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4394.     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4395.     as_fn_arith $ac_count + 1 && ac_count=$as_val
  4396.     if test $ac_count -gt ${ac_path_SED_max-0}; then
  4397.       # Best one so far, save it but keep looking for a better one
  4398.       ac_cv_path_SED="$ac_path_SED"
  4399.       ac_path_SED_max=$ac_count
  4400.     fi
  4401.     # 10*(2^10) chars as input seems more than enough
  4402.     test $ac_count -gt 10 && break
  4403.   done
  4404.   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4405. esac
  4406.  
  4407.       $ac_path_SED_found && break 3
  4408.     done
  4409.   done
  4410.   done
  4411. IFS=$as_save_IFS
  4412.   if test -z "$ac_cv_path_SED"; then
  4413.     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4414.   fi
  4415. else
  4416.   ac_cv_path_SED=$SED
  4417. fi
  4418.  
  4419. fi
  4420. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4421. $as_echo "$ac_cv_path_SED" >&6; }
  4422.  SED="$ac_cv_path_SED"
  4423.   rm -f conftest.sed
  4424.  
  4425. test -z "$SED" && SED=sed
  4426. Xsed="$SED -e 1s/^X//"
  4427.  
  4428.  
  4429.  
  4430.  
  4431.  
  4432.  
  4433.  
  4434.  
  4435.  
  4436.  
  4437.  
  4438. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4439. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4440. if ${ac_cv_path_GREP+:} false; then :
  4441.   $as_echo_n "(cached) " >&6
  4442. else
  4443.   if test -z "$GREP"; then
  4444.   ac_path_GREP_found=false
  4445.   # Loop through the user's path and test for each of PROGNAME-LIST
  4446.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4447. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4448. do
  4449.   IFS=$as_save_IFS
  4450.   test -z "$as_dir" && as_dir=.
  4451.     for ac_prog in grep ggrep; do
  4452.     for ac_exec_ext in '' $ac_executable_extensions; do
  4453.       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4454.       as_fn_executable_p "$ac_path_GREP" || continue
  4455. # Check for GNU ac_path_GREP and select it if it is found.
  4456.   # Check for GNU $ac_path_GREP
  4457. case `"$ac_path_GREP" --version 2>&1` in
  4458. *GNU*)
  4459.   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4460. *)
  4461.   ac_count=0
  4462.   $as_echo_n 0123456789 >"conftest.in"
  4463.   while :
  4464.   do
  4465.     cat "conftest.in" "conftest.in" >"conftest.tmp"
  4466.     mv "conftest.tmp" "conftest.in"
  4467.     cp "conftest.in" "conftest.nl"
  4468.     $as_echo 'GREP' >> "conftest.nl"
  4469.     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4470.     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4471.     as_fn_arith $ac_count + 1 && ac_count=$as_val
  4472.     if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4473.       # Best one so far, save it but keep looking for a better one
  4474.       ac_cv_path_GREP="$ac_path_GREP"
  4475.       ac_path_GREP_max=$ac_count
  4476.     fi
  4477.     # 10*(2^10) chars as input seems more than enough
  4478.     test $ac_count -gt 10 && break
  4479.   done
  4480.   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4481. esac
  4482.  
  4483.       $ac_path_GREP_found && break 3
  4484.     done
  4485.   done
  4486.   done
  4487. IFS=$as_save_IFS
  4488.   if test -z "$ac_cv_path_GREP"; then
  4489.     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4490.   fi
  4491. else
  4492.   ac_cv_path_GREP=$GREP
  4493. fi
  4494.  
  4495. fi
  4496. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4497. $as_echo "$ac_cv_path_GREP" >&6; }
  4498.  GREP="$ac_cv_path_GREP"
  4499.  
  4500.  
  4501. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4502. $as_echo_n "checking for egrep... " >&6; }
  4503. if ${ac_cv_path_EGREP+:} false; then :
  4504.   $as_echo_n "(cached) " >&6
  4505. else
  4506.   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4507.    then ac_cv_path_EGREP="$GREP -E"
  4508.    else
  4509.      if test -z "$EGREP"; then
  4510.   ac_path_EGREP_found=false
  4511.   # Loop through the user's path and test for each of PROGNAME-LIST
  4512.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4513. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4514. do
  4515.   IFS=$as_save_IFS
  4516.   test -z "$as_dir" && as_dir=.
  4517.     for ac_prog in egrep; do
  4518.     for ac_exec_ext in '' $ac_executable_extensions; do
  4519.       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4520.       as_fn_executable_p "$ac_path_EGREP" || continue
  4521. # Check for GNU ac_path_EGREP and select it if it is found.
  4522.   # Check for GNU $ac_path_EGREP
  4523. case `"$ac_path_EGREP" --version 2>&1` in
  4524. *GNU*)
  4525.   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4526. *)
  4527.   ac_count=0
  4528.   $as_echo_n 0123456789 >"conftest.in"
  4529.   while :
  4530.   do
  4531.     cat "conftest.in" "conftest.in" >"conftest.tmp"
  4532.     mv "conftest.tmp" "conftest.in"
  4533.     cp "conftest.in" "conftest.nl"
  4534.     $as_echo 'EGREP' >> "conftest.nl"
  4535.     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4536.     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4537.     as_fn_arith $ac_count + 1 && ac_count=$as_val
  4538.     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4539.       # Best one so far, save it but keep looking for a better one
  4540.       ac_cv_path_EGREP="$ac_path_EGREP"
  4541.       ac_path_EGREP_max=$ac_count
  4542.     fi
  4543.     # 10*(2^10) chars as input seems more than enough
  4544.     test $ac_count -gt 10 && break
  4545.   done
  4546.   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4547. esac
  4548.  
  4549.       $ac_path_EGREP_found && break 3
  4550.     done
  4551.   done
  4552.   done
  4553. IFS=$as_save_IFS
  4554.   if test -z "$ac_cv_path_EGREP"; then
  4555.     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4556.   fi
  4557. else
  4558.   ac_cv_path_EGREP=$EGREP
  4559. fi
  4560.  
  4561.    fi
  4562. fi
  4563. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4564. $as_echo "$ac_cv_path_EGREP" >&6; }
  4565.  EGREP="$ac_cv_path_EGREP"
  4566.  
  4567.  
  4568. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4569. $as_echo_n "checking for fgrep... " >&6; }
  4570. if ${ac_cv_path_FGREP+:} false; then :
  4571.   $as_echo_n "(cached) " >&6
  4572. else
  4573.   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4574.    then ac_cv_path_FGREP="$GREP -F"
  4575.    else
  4576.      if test -z "$FGREP"; then
  4577.   ac_path_FGREP_found=false
  4578.   # Loop through the user's path and test for each of PROGNAME-LIST
  4579.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4580. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4581. do
  4582.   IFS=$as_save_IFS
  4583.   test -z "$as_dir" && as_dir=.
  4584.     for ac_prog in fgrep; do
  4585.     for ac_exec_ext in '' $ac_executable_extensions; do
  4586.       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4587.       as_fn_executable_p "$ac_path_FGREP" || continue
  4588. # Check for GNU ac_path_FGREP and select it if it is found.
  4589.   # Check for GNU $ac_path_FGREP
  4590. case `"$ac_path_FGREP" --version 2>&1` in
  4591. *GNU*)
  4592.   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4593. *)
  4594.   ac_count=0
  4595.   $as_echo_n 0123456789 >"conftest.in"
  4596.   while :
  4597.   do
  4598.     cat "conftest.in" "conftest.in" >"conftest.tmp"
  4599.     mv "conftest.tmp" "conftest.in"
  4600.     cp "conftest.in" "conftest.nl"
  4601.     $as_echo 'FGREP' >> "conftest.nl"
  4602.     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4603.     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4604.     as_fn_arith $ac_count + 1 && ac_count=$as_val
  4605.     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4606.       # Best one so far, save it but keep looking for a better one
  4607.       ac_cv_path_FGREP="$ac_path_FGREP"
  4608.       ac_path_FGREP_max=$ac_count
  4609.     fi
  4610.     # 10*(2^10) chars as input seems more than enough
  4611.     test $ac_count -gt 10 && break
  4612.   done
  4613.   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4614. esac
  4615.  
  4616.       $ac_path_FGREP_found && break 3
  4617.     done
  4618.   done
  4619.   done
  4620. IFS=$as_save_IFS
  4621.   if test -z "$ac_cv_path_FGREP"; then
  4622.     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4623.   fi
  4624. else
  4625.   ac_cv_path_FGREP=$FGREP
  4626. fi
  4627.  
  4628.    fi
  4629. fi
  4630. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4631. $as_echo "$ac_cv_path_FGREP" >&6; }
  4632.  FGREP="$ac_cv_path_FGREP"
  4633.  
  4634.  
  4635. test -z "$GREP" && GREP=grep
  4636.  
  4637.  
  4638.  
  4639.  
  4640.  
  4641.  
  4642.  
  4643.  
  4644.  
  4645.  
  4646.  
  4647.  
  4648.  
  4649.  
  4650.  
  4651.  
  4652.  
  4653.  
  4654.  
  4655. # Check whether --with-gnu-ld was given.
  4656. if test "${with_gnu_ld+set}" = set; then :
  4657.   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4658. else
  4659.   with_gnu_ld=no
  4660. fi
  4661.  
  4662. ac_prog=ld
  4663. if test "$GCC" = yes; then
  4664.   # Check if gcc -print-prog-name=ld gives a path.
  4665.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4666. $as_echo_n "checking for ld used by $CC... " >&6; }
  4667.   case $host in
  4668.   *-*-mingw*)
  4669.     # gcc leaves a trailing carriage return which upsets mingw
  4670.     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4671.   *)
  4672.     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4673.   esac
  4674.   case $ac_prog in
  4675.     # Accept absolute paths.
  4676.     [\\/]* | ?:[\\/]*)
  4677.       re_direlt='/[^/][^/]*/\.\./'
  4678.       # Canonicalize the pathname of ld
  4679.       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4680.       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4681.         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4682.       done
  4683.       test -z "$LD" && LD="$ac_prog"
  4684.       ;;
  4685.   "")
  4686.     # If it fails, then pretend we aren't using GCC.
  4687.     ac_prog=ld
  4688.     ;;
  4689.   *)
  4690.     # If it is relative, then search for the first ld in PATH.
  4691.     with_gnu_ld=unknown
  4692.     ;;
  4693.   esac
  4694. elif test "$with_gnu_ld" = yes; then
  4695.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4696. $as_echo_n "checking for GNU ld... " >&6; }
  4697. else
  4698.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4699. $as_echo_n "checking for non-GNU ld... " >&6; }
  4700. fi
  4701. if ${lt_cv_path_LD+:} false; then :
  4702.   $as_echo_n "(cached) " >&6
  4703. else
  4704.   if test -z "$LD"; then
  4705.   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4706.   for ac_dir in $PATH; do
  4707.     IFS="$lt_save_ifs"
  4708.     test -z "$ac_dir" && ac_dir=.
  4709.     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4710.       lt_cv_path_LD="$ac_dir/$ac_prog"
  4711.       # Check to see if the program is GNU ld.  I'd rather use --version,
  4712.       # but apparently some variants of GNU ld only accept -v.
  4713.       # Break only if it was the GNU/non-GNU ld that we prefer.
  4714.       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4715.       *GNU* | *'with BFD'*)
  4716.         test "$with_gnu_ld" != no && break
  4717.         ;;
  4718.       *)
  4719.         test "$with_gnu_ld" != yes && break
  4720.         ;;
  4721.       esac
  4722.     fi
  4723.   done
  4724.   IFS="$lt_save_ifs"
  4725. else
  4726.   lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4727. fi
  4728. fi
  4729.  
  4730. LD="$lt_cv_path_LD"
  4731. if test -n "$LD"; then
  4732.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4733. $as_echo "$LD" >&6; }
  4734. else
  4735.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4736. $as_echo "no" >&6; }
  4737. fi
  4738. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4739. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4740. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4741. if ${lt_cv_prog_gnu_ld+:} false; then :
  4742.   $as_echo_n "(cached) " >&6
  4743. else
  4744.   # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4745. case `$LD -v 2>&1 </dev/null` in
  4746. *GNU* | *'with BFD'*)
  4747.   lt_cv_prog_gnu_ld=yes
  4748.   ;;
  4749. *)
  4750.   lt_cv_prog_gnu_ld=no
  4751.   ;;
  4752. esac
  4753. fi
  4754. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4755. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4756. with_gnu_ld=$lt_cv_prog_gnu_ld
  4757.  
  4758.  
  4759.  
  4760.  
  4761.  
  4762.  
  4763.  
  4764.  
  4765.  
  4766. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4767. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4768. if ${lt_cv_path_NM+:} false; then :
  4769.   $as_echo_n "(cached) " >&6
  4770. else
  4771.   if test -n "$NM"; then
  4772.   # Let the user override the test.
  4773.   lt_cv_path_NM="$NM"
  4774. else
  4775.   lt_nm_to_check="${ac_tool_prefix}nm"
  4776.   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4777.     lt_nm_to_check="$lt_nm_to_check nm"
  4778.   fi
  4779.   for lt_tmp_nm in $lt_nm_to_check; do
  4780.     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4781.     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4782.       IFS="$lt_save_ifs"
  4783.       test -z "$ac_dir" && ac_dir=.
  4784.       tmp_nm="$ac_dir/$lt_tmp_nm"
  4785.       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4786.         # Check to see if the nm accepts a BSD-compat flag.
  4787.         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4788.         #   nm: unknown option "B" ignored
  4789.         # Tru64's nm complains that /dev/null is an invalid object file
  4790.         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4791.         */dev/null* | *'Invalid file or object type'*)
  4792.           lt_cv_path_NM="$tmp_nm -B"
  4793.           break
  4794.           ;;
  4795.         *)
  4796.           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4797.           */dev/null*)
  4798.             lt_cv_path_NM="$tmp_nm -p"
  4799.             break
  4800.             ;;
  4801.           *)
  4802.             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4803.             continue # so that we can try to find one that supports BSD flags
  4804.             ;;
  4805.           esac
  4806.           ;;
  4807.         esac
  4808.       fi
  4809.     done
  4810.     IFS="$lt_save_ifs"
  4811.   done
  4812.   : ${lt_cv_path_NM=no}
  4813. fi
  4814. fi
  4815. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4816. $as_echo "$lt_cv_path_NM" >&6; }
  4817. if test "$lt_cv_path_NM" != "no"; then
  4818.   NM="$lt_cv_path_NM"
  4819. else
  4820.   # Didn't find any BSD compatible name lister, look for dumpbin.
  4821.   if test -n "$DUMPBIN"; then :
  4822.     # Let the user override the test.
  4823.   else
  4824.     if test -n "$ac_tool_prefix"; then
  4825.   for ac_prog in dumpbin "link -dump"
  4826.   do
  4827.     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4828. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4829. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4830. $as_echo_n "checking for $ac_word... " >&6; }
  4831. if ${ac_cv_prog_DUMPBIN+:} false; then :
  4832.   $as_echo_n "(cached) " >&6
  4833. else
  4834.   if test -n "$DUMPBIN"; then
  4835.   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4836. else
  4837. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4838. for as_dir in $PATH
  4839. do
  4840.   IFS=$as_save_IFS
  4841.   test -z "$as_dir" && as_dir=.
  4842.     for ac_exec_ext in '' $ac_executable_extensions; do
  4843.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4844.     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4845.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4846.     break 2
  4847.   fi
  4848. done
  4849.   done
  4850. IFS=$as_save_IFS
  4851.  
  4852. fi
  4853. fi
  4854. DUMPBIN=$ac_cv_prog_DUMPBIN
  4855. if test -n "$DUMPBIN"; then
  4856.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4857. $as_echo "$DUMPBIN" >&6; }
  4858. else
  4859.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4860. $as_echo "no" >&6; }
  4861. fi
  4862.  
  4863.  
  4864.     test -n "$DUMPBIN" && break
  4865.   done
  4866. fi
  4867. if test -z "$DUMPBIN"; then
  4868.   ac_ct_DUMPBIN=$DUMPBIN
  4869.   for ac_prog in dumpbin "link -dump"
  4870. do
  4871.   # Extract the first word of "$ac_prog", so it can be a program name with args.
  4872. set dummy $ac_prog; ac_word=$2
  4873. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4874. $as_echo_n "checking for $ac_word... " >&6; }
  4875. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  4876.   $as_echo_n "(cached) " >&6
  4877. else
  4878.   if test -n "$ac_ct_DUMPBIN"; then
  4879.   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4880. else
  4881. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4882. for as_dir in $PATH
  4883. do
  4884.   IFS=$as_save_IFS
  4885.   test -z "$as_dir" && as_dir=.
  4886.     for ac_exec_ext in '' $ac_executable_extensions; do
  4887.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4888.     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4889.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4890.     break 2
  4891.   fi
  4892. done
  4893.   done
  4894. IFS=$as_save_IFS
  4895.  
  4896. fi
  4897. fi
  4898. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4899. if test -n "$ac_ct_DUMPBIN"; then
  4900.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4901. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4902. else
  4903.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4904. $as_echo "no" >&6; }
  4905. fi
  4906.  
  4907.  
  4908.   test -n "$ac_ct_DUMPBIN" && break
  4909. done
  4910.  
  4911.   if test "x$ac_ct_DUMPBIN" = x; then
  4912.     DUMPBIN=":"
  4913.   else
  4914.     case $cross_compiling:$ac_tool_warned in
  4915. yes:)
  4916. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4917. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4918. ac_tool_warned=yes ;;
  4919. esac
  4920.     DUMPBIN=$ac_ct_DUMPBIN
  4921.   fi
  4922. fi
  4923.  
  4924.     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  4925.     *COFF*)
  4926.       DUMPBIN="$DUMPBIN -symbols"
  4927.       ;;
  4928.     *)
  4929.       DUMPBIN=:
  4930.       ;;
  4931.     esac
  4932.   fi
  4933.  
  4934.   if test "$DUMPBIN" != ":"; then
  4935.     NM="$DUMPBIN"
  4936.   fi
  4937. fi
  4938. test -z "$NM" && NM=nm
  4939.  
  4940.  
  4941.  
  4942.  
  4943.  
  4944.  
  4945. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4946. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4947. if ${lt_cv_nm_interface+:} false; then :
  4948.   $as_echo_n "(cached) " >&6
  4949. else
  4950.   lt_cv_nm_interface="BSD nm"
  4951.   echo "int some_variable = 0;" > conftest.$ac_ext
  4952.   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4953.   (eval "$ac_compile" 2>conftest.err)
  4954.   cat conftest.err >&5
  4955.   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4956.   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4957.   cat conftest.err >&5
  4958.   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4959.   cat conftest.out >&5
  4960.   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4961.     lt_cv_nm_interface="MS dumpbin"
  4962.   fi
  4963.   rm -f conftest*
  4964. fi
  4965. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4966. $as_echo "$lt_cv_nm_interface" >&6; }
  4967.  
  4968. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4969. $as_echo_n "checking whether ln -s works... " >&6; }
  4970. LN_S=$as_ln_s
  4971. if test "$LN_S" = "ln -s"; then
  4972.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4973. $as_echo "yes" >&6; }
  4974. else
  4975.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4976. $as_echo "no, using $LN_S" >&6; }
  4977. fi
  4978.  
  4979. # find the maximum length of command line arguments
  4980. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4981. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4982. if ${lt_cv_sys_max_cmd_len+:} false; then :
  4983.   $as_echo_n "(cached) " >&6
  4984. else
  4985.     i=0
  4986.   teststring="ABCD"
  4987.  
  4988.   case $build_os in
  4989.   msdosdjgpp*)
  4990.     # On DJGPP, this test can blow up pretty badly due to problems in libc
  4991.     # (any single argument exceeding 2000 bytes causes a buffer overrun
  4992.     # during glob expansion).  Even if it were fixed, the result of this
  4993.     # check would be larger than it should be.
  4994.     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
  4995.     ;;
  4996.  
  4997.   gnu*)
  4998.     # Under GNU Hurd, this test is not required because there is
  4999.     # no limit to the length of command line arguments.
  5000.     # Libtool will interpret -1 as no limit whatsoever
  5001.     lt_cv_sys_max_cmd_len=-1;
  5002.     ;;
  5003.  
  5004.   cygwin* | mingw* | cegcc*)
  5005.     # On Win9x/ME, this test blows up -- it succeeds, but takes
  5006.     # about 5 minutes as the teststring grows exponentially.
  5007.     # Worse, since 9x/ME are not pre-emptively multitasking,
  5008.     # you end up with a "frozen" computer, even though with patience
  5009.     # the test eventually succeeds (with a max line length of 256k).
  5010.     # Instead, let's just punt: use the minimum linelength reported by
  5011.     # all of the supported platforms: 8192 (on NT/2K/XP).
  5012.     lt_cv_sys_max_cmd_len=8192;
  5013.     ;;
  5014.  
  5015.   mint*)
  5016.     # On MiNT this can take a long time and run out of memory.
  5017.     lt_cv_sys_max_cmd_len=8192;
  5018.     ;;
  5019.  
  5020.   amigaos*)
  5021.     # On AmigaOS with pdksh, this test takes hours, literally.
  5022.     # So we just punt and use a minimum line length of 8192.
  5023.     lt_cv_sys_max_cmd_len=8192;
  5024.     ;;
  5025.  
  5026.   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  5027.     # This has been around since 386BSD, at least.  Likely further.
  5028.     if test -x /sbin/sysctl; then
  5029.       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5030.     elif test -x /usr/sbin/sysctl; then
  5031.       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5032.     else
  5033.       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
  5034.     fi
  5035.     # And add a safety zone
  5036.     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5037.     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5038.     ;;
  5039.  
  5040.   interix*)
  5041.     # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5042.     lt_cv_sys_max_cmd_len=196608
  5043.     ;;
  5044.  
  5045.   os2*)
  5046.     # The test takes a long time on OS/2.
  5047.     lt_cv_sys_max_cmd_len=8192
  5048.     ;;
  5049.  
  5050.   osf*)
  5051.     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5052.     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5053.     # nice to cause kernel panics so lets avoid the loop below.
  5054.     # First set a reasonable default.
  5055.     lt_cv_sys_max_cmd_len=16384
  5056.     #
  5057.     if test -x /sbin/sysconfig; then
  5058.       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5059.         *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5060.       esac
  5061.     fi
  5062.     ;;
  5063.   sco3.2v5*)
  5064.     lt_cv_sys_max_cmd_len=102400
  5065.     ;;
  5066.   sysv5* | sco5v6* | sysv4.2uw2*)
  5067.     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5068.     if test -n "$kargmax"; then
  5069.       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
  5070.     else
  5071.       lt_cv_sys_max_cmd_len=32768
  5072.     fi
  5073.     ;;
  5074.   *)
  5075.     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5076.     if test -n "$lt_cv_sys_max_cmd_len" && \
  5077.         test undefined != "$lt_cv_sys_max_cmd_len"; then
  5078.       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5079.       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5080.     else
  5081.       # Make teststring a little bigger before we do anything with it.
  5082.       # a 1K string should be a reasonable start.
  5083.       for i in 1 2 3 4 5 6 7 8 ; do
  5084.         teststring=$teststring$teststring
  5085.       done
  5086.       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5087.       # If test is not a shell built-in, we'll probably end up computing a
  5088.       # maximum length that is only half of the actual maximum length, but
  5089.       # we can't tell.
  5090.       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  5091.                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  5092.               test $i != 17 # 1/2 MB should be enough
  5093.       do
  5094.         i=`expr $i + 1`
  5095.         teststring=$teststring$teststring
  5096.       done
  5097.       # Only check the string length outside the loop.
  5098.       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5099.       teststring=
  5100.       # Add a significant safety factor because C++ compilers can tack on
  5101.       # massive amounts of additional arguments before passing them to the
  5102.       # linker.  It appears as though 1/2 is a usable value.
  5103.       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5104.     fi
  5105.     ;;
  5106.   esac
  5107.  
  5108. fi
  5109.  
  5110. if test -n $lt_cv_sys_max_cmd_len ; then
  5111.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  5112. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  5113. else
  5114.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  5115. $as_echo "none" >&6; }
  5116. fi
  5117. max_cmd_len=$lt_cv_sys_max_cmd_len
  5118.  
  5119.  
  5120.  
  5121.  
  5122.  
  5123.  
  5124. : ${CP="cp -f"}
  5125. : ${MV="mv -f"}
  5126. : ${RM="rm -f"}
  5127.  
  5128. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  5129. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  5130. # Try some XSI features
  5131. xsi_shell=no
  5132. ( _lt_dummy="a/b/c"
  5133.   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  5134.       = c,a/b,b/c, \
  5135.     && eval 'test $(( 1 + 1 )) -eq 2 \
  5136.     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  5137.   && xsi_shell=yes
  5138. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  5139. $as_echo "$xsi_shell" >&6; }
  5140.  
  5141.  
  5142. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  5143. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  5144. lt_shell_append=no
  5145. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  5146.     >/dev/null 2>&1 \
  5147.   && lt_shell_append=yes
  5148. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  5149. $as_echo "$lt_shell_append" >&6; }
  5150.  
  5151.  
  5152. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5153.   lt_unset=unset
  5154. else
  5155.   lt_unset=false
  5156. fi
  5157.  
  5158.  
  5159.  
  5160.  
  5161.  
  5162. # test EBCDIC or ASCII
  5163. case `echo X|tr X '\101'` in
  5164.  A) # ASCII based system
  5165.     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5166.   lt_SP2NL='tr \040 \012'
  5167.   lt_NL2SP='tr \015\012 \040\040'
  5168.   ;;
  5169.  *) # EBCDIC based system
  5170.   lt_SP2NL='tr \100 \n'
  5171.   lt_NL2SP='tr \r\n \100\100'
  5172.   ;;
  5173. esac
  5174.  
  5175.  
  5176.  
  5177.  
  5178.  
  5179.  
  5180.  
  5181.  
  5182.  
  5183. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  5184. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  5185. if ${lt_cv_to_host_file_cmd+:} false; then :
  5186.   $as_echo_n "(cached) " >&6
  5187. else
  5188.   case $host in
  5189.   *-*-mingw* )
  5190.     case $build in
  5191.       *-*-mingw* ) # actually msys
  5192.         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  5193.         ;;
  5194.       *-*-cygwin* )
  5195.         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  5196.         ;;
  5197.       * ) # otherwise, assume *nix
  5198.         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  5199.         ;;
  5200.     esac
  5201.     ;;
  5202.   *-*-cygwin* )
  5203.     case $build in
  5204.       *-*-mingw* ) # actually msys
  5205.         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  5206.         ;;
  5207.       *-*-cygwin* )
  5208.         lt_cv_to_host_file_cmd=func_convert_file_noop
  5209.         ;;
  5210.       * ) # otherwise, assume *nix
  5211.         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  5212.         ;;
  5213.     esac
  5214.     ;;
  5215.   * ) # unhandled hosts (and "normal" native builds)
  5216.     lt_cv_to_host_file_cmd=func_convert_file_noop
  5217.     ;;
  5218. esac
  5219.  
  5220. fi
  5221.  
  5222. to_host_file_cmd=$lt_cv_to_host_file_cmd
  5223. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  5224. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  5225.  
  5226.  
  5227.  
  5228.  
  5229.  
  5230. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  5231. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  5232. if ${lt_cv_to_tool_file_cmd+:} false; then :
  5233.   $as_echo_n "(cached) " >&6
  5234. else
  5235.   #assume ordinary cross tools, or native build.
  5236. lt_cv_to_tool_file_cmd=func_convert_file_noop
  5237. case $host in
  5238.   *-*-mingw* )
  5239.     case $build in
  5240.       *-*-mingw* ) # actually msys
  5241.         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  5242.         ;;
  5243.     esac
  5244.     ;;
  5245. esac
  5246.  
  5247. fi
  5248.  
  5249. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  5250. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  5251. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  5252.  
  5253.  
  5254.  
  5255.  
  5256.  
  5257. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5258. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  5259. if ${lt_cv_ld_reload_flag+:} false; then :
  5260.   $as_echo_n "(cached) " >&6
  5261. else
  5262.   lt_cv_ld_reload_flag='-r'
  5263. fi
  5264. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5265. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  5266. reload_flag=$lt_cv_ld_reload_flag
  5267. case $reload_flag in
  5268. "" | " "*) ;;
  5269. *) reload_flag=" $reload_flag" ;;
  5270. esac
  5271. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5272. case $host_os in
  5273.   cygwin* | mingw* | pw32* | cegcc*)
  5274.     if test "$GCC" != yes; then
  5275.       reload_cmds=false
  5276.     fi
  5277.     ;;
  5278.   darwin*)
  5279.     if test "$GCC" = yes; then
  5280.       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  5281.     else
  5282.       reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5283.     fi
  5284.     ;;
  5285. esac
  5286.  
  5287.  
  5288.  
  5289.  
  5290.  
  5291.  
  5292.  
  5293.  
  5294.  
  5295. if test -n "$ac_tool_prefix"; then
  5296.   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5297. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5298. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5299. $as_echo_n "checking for $ac_word... " >&6; }
  5300. if ${ac_cv_prog_OBJDUMP+:} false; then :
  5301.   $as_echo_n "(cached) " >&6
  5302. else
  5303.   if test -n "$OBJDUMP"; then
  5304.   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5305. else
  5306. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5307. for as_dir in $PATH
  5308. do
  5309.   IFS=$as_save_IFS
  5310.   test -z "$as_dir" && as_dir=.
  5311.     for ac_exec_ext in '' $ac_executable_extensions; do
  5312.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5313.     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5314.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5315.     break 2
  5316.   fi
  5317. done
  5318.   done
  5319. IFS=$as_save_IFS
  5320.  
  5321. fi
  5322. fi
  5323. OBJDUMP=$ac_cv_prog_OBJDUMP
  5324. if test -n "$OBJDUMP"; then
  5325.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5326. $as_echo "$OBJDUMP" >&6; }
  5327. else
  5328.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5329. $as_echo "no" >&6; }
  5330. fi
  5331.  
  5332.  
  5333. fi
  5334. if test -z "$ac_cv_prog_OBJDUMP"; then
  5335.   ac_ct_OBJDUMP=$OBJDUMP
  5336.   # Extract the first word of "objdump", so it can be a program name with args.
  5337. set dummy objdump; ac_word=$2
  5338. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5339. $as_echo_n "checking for $ac_word... " >&6; }
  5340. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  5341.   $as_echo_n "(cached) " >&6
  5342. else
  5343.   if test -n "$ac_ct_OBJDUMP"; then
  5344.   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5345. else
  5346. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5347. for as_dir in $PATH
  5348. do
  5349.   IFS=$as_save_IFS
  5350.   test -z "$as_dir" && as_dir=.
  5351.     for ac_exec_ext in '' $ac_executable_extensions; do
  5352.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5353.     ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5354.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5355.     break 2
  5356.   fi
  5357. done
  5358.   done
  5359. IFS=$as_save_IFS
  5360.  
  5361. fi
  5362. fi
  5363. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5364. if test -n "$ac_ct_OBJDUMP"; then
  5365.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5366. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5367. else
  5368.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5369. $as_echo "no" >&6; }
  5370. fi
  5371.  
  5372.   if test "x$ac_ct_OBJDUMP" = x; then
  5373.     OBJDUMP="false"
  5374.   else
  5375.     case $cross_compiling:$ac_tool_warned in
  5376. yes:)
  5377. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5378. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5379. ac_tool_warned=yes ;;
  5380. esac
  5381.     OBJDUMP=$ac_ct_OBJDUMP
  5382.   fi
  5383. else
  5384.   OBJDUMP="$ac_cv_prog_OBJDUMP"
  5385. fi
  5386.  
  5387. test -z "$OBJDUMP" && OBJDUMP=objdump
  5388.  
  5389.  
  5390.  
  5391.  
  5392.  
  5393.  
  5394.  
  5395.  
  5396.  
  5397. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5398. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5399. if ${lt_cv_deplibs_check_method+:} false; then :
  5400.   $as_echo_n "(cached) " >&6
  5401. else
  5402.   lt_cv_file_magic_cmd='$MAGIC_CMD'
  5403. lt_cv_file_magic_test_file=
  5404. lt_cv_deplibs_check_method='unknown'
  5405. # Need to set the preceding variable on all platforms that support
  5406. # interlibrary dependencies.
  5407. # 'none' -- dependencies not supported.
  5408. # `unknown' -- same as none, but documents that we really don't know.
  5409. # 'pass_all' -- all dependencies passed with no checks.
  5410. # 'test_compile' -- check by making test program.
  5411. # 'file_magic [[regex]]' -- check by looking for files in library path
  5412. # which responds to the $file_magic_cmd with a given extended regex.
  5413. # If you have `file' or equivalent on your system and you're not sure
  5414. # whether `pass_all' will *always* work, you probably want this one.
  5415.  
  5416. case $host_os in
  5417. aix[4-9]*)
  5418.   lt_cv_deplibs_check_method=pass_all
  5419.   ;;
  5420.  
  5421. beos*)
  5422.   lt_cv_deplibs_check_method=pass_all
  5423.   ;;
  5424.  
  5425. bsdi[45]*)
  5426.   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5427.   lt_cv_file_magic_cmd='/usr/bin/file -L'
  5428.   lt_cv_file_magic_test_file=/shlib/libc.so
  5429.   ;;
  5430.  
  5431. cygwin*)
  5432.   # func_win32_libid is a shell function defined in ltmain.sh
  5433.   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5434.   lt_cv_file_magic_cmd='func_win32_libid'
  5435.   ;;
  5436.  
  5437. mingw* | pw32*)
  5438.   # Base MSYS/MinGW do not provide the 'file' command needed by
  5439.   # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5440.   # unless we find 'file', for example because we are cross-compiling.
  5441.   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  5442.   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  5443.     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5444.     lt_cv_file_magic_cmd='func_win32_libid'
  5445.   else
  5446.     # Keep this pattern in sync with the one in func_win32_libid.
  5447.     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  5448.     lt_cv_file_magic_cmd='$OBJDUMP -f'
  5449.   fi
  5450.   ;;
  5451.  
  5452. cegcc*)
  5453.   # use the weaker test based on 'objdump'. See mingw*.
  5454.   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5455.   lt_cv_file_magic_cmd='$OBJDUMP -f'
  5456.   ;;
  5457.  
  5458. darwin* | rhapsody*)
  5459.   lt_cv_deplibs_check_method=pass_all
  5460.   ;;
  5461.  
  5462. freebsd* | dragonfly*)
  5463.   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5464.     case $host_cpu in
  5465.     i*86 )
  5466.       # Not sure whether the presence of OpenBSD here was a mistake.
  5467.       # Let's accept both of them until this is cleared up.
  5468.       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5469.       lt_cv_file_magic_cmd=/usr/bin/file
  5470.       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5471.       ;;
  5472.     esac
  5473.   else
  5474.     lt_cv_deplibs_check_method=pass_all
  5475.   fi
  5476.   ;;
  5477.  
  5478. haiku*)
  5479.   lt_cv_deplibs_check_method=pass_all
  5480.   ;;
  5481.  
  5482. hpux10.20* | hpux11*)
  5483.   lt_cv_file_magic_cmd=/usr/bin/file
  5484.   case $host_cpu in
  5485.   ia64*)
  5486.     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5487.     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5488.     ;;
  5489.   hppa*64*)
  5490.     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]'
  5491.     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5492.     ;;
  5493.   *)
  5494.     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5495.     lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5496.     ;;
  5497.   esac
  5498.   ;;
  5499.  
  5500. interix[3-9]*)
  5501.   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5502.   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5503.   ;;
  5504.  
  5505. irix5* | irix6* | nonstopux*)
  5506.   case $LD in
  5507.   *-32|*"-32 ") libmagic=32-bit;;
  5508.   *-n32|*"-n32 ") libmagic=N32;;
  5509.   *-64|*"-64 ") libmagic=64-bit;;
  5510.   *) libmagic=never-match;;
  5511.   esac
  5512.   lt_cv_deplibs_check_method=pass_all
  5513.   ;;
  5514.  
  5515. # This must be glibc/ELF.
  5516. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  5517.   lt_cv_deplibs_check_method=pass_all
  5518.   ;;
  5519.  
  5520. netbsd* | netbsdelf*-gnu)
  5521.   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5522.     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5523.   else
  5524.     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5525.   fi
  5526.   ;;
  5527.  
  5528. newos6*)
  5529.   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5530.   lt_cv_file_magic_cmd=/usr/bin/file
  5531.   lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5532.   ;;
  5533.  
  5534. *nto* | *qnx*)
  5535.   lt_cv_deplibs_check_method=pass_all
  5536.   ;;
  5537.  
  5538. openbsd*)
  5539.   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5540.     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5541.   else
  5542.     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5543.   fi
  5544.   ;;
  5545.  
  5546. osf3* | osf4* | osf5*)
  5547.   lt_cv_deplibs_check_method=pass_all
  5548.   ;;
  5549.  
  5550. rdos*)
  5551.   lt_cv_deplibs_check_method=pass_all
  5552.   ;;
  5553.  
  5554. solaris*)
  5555.   lt_cv_deplibs_check_method=pass_all
  5556.   ;;
  5557.  
  5558. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5559.   lt_cv_deplibs_check_method=pass_all
  5560.   ;;
  5561.  
  5562. sysv4 | sysv4.3*)
  5563.   case $host_vendor in
  5564.   motorola)
  5565.     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]'
  5566.     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5567.     ;;
  5568.   ncr)
  5569.     lt_cv_deplibs_check_method=pass_all
  5570.     ;;
  5571.   sequent)
  5572.     lt_cv_file_magic_cmd='/bin/file'
  5573.     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5574.     ;;
  5575.   sni)
  5576.     lt_cv_file_magic_cmd='/bin/file'
  5577.     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5578.     lt_cv_file_magic_test_file=/lib/libc.so
  5579.     ;;
  5580.   siemens)
  5581.     lt_cv_deplibs_check_method=pass_all
  5582.     ;;
  5583.   pc)
  5584.     lt_cv_deplibs_check_method=pass_all
  5585.     ;;
  5586.   esac
  5587.   ;;
  5588.  
  5589. tpf*)
  5590.   lt_cv_deplibs_check_method=pass_all
  5591.   ;;
  5592. esac
  5593.  
  5594. fi
  5595. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5596. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5597.  
  5598. file_magic_glob=
  5599. want_nocaseglob=no
  5600. if test "$build" = "$host"; then
  5601.   case $host_os in
  5602.   mingw* | pw32*)
  5603.     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  5604.       want_nocaseglob=yes
  5605.     else
  5606.       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  5607.     fi
  5608.     ;;
  5609.   esac
  5610. fi
  5611.  
  5612. file_magic_cmd=$lt_cv_file_magic_cmd
  5613. deplibs_check_method=$lt_cv_deplibs_check_method
  5614. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5615.  
  5616.  
  5617.  
  5618.  
  5619.  
  5620.  
  5621.  
  5622.  
  5623.  
  5624.  
  5625.  
  5626.  
  5627.  
  5628.  
  5629.  
  5630.  
  5631.  
  5632.  
  5633.  
  5634.  
  5635.  
  5636.  
  5637. if test -n "$ac_tool_prefix"; then
  5638.   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  5639. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  5640. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5641. $as_echo_n "checking for $ac_word... " >&6; }
  5642. if ${ac_cv_prog_DLLTOOL+:} false; then :
  5643.   $as_echo_n "(cached) " >&6
  5644. else
  5645.   if test -n "$DLLTOOL"; then
  5646.   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  5647. else
  5648. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5649. for as_dir in $PATH
  5650. do
  5651.   IFS=$as_save_IFS
  5652.   test -z "$as_dir" && as_dir=.
  5653.     for ac_exec_ext in '' $ac_executable_extensions; do
  5654.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5655.     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  5656.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5657.     break 2
  5658.   fi
  5659. done
  5660.   done
  5661. IFS=$as_save_IFS
  5662.  
  5663. fi
  5664. fi
  5665. DLLTOOL=$ac_cv_prog_DLLTOOL
  5666. if test -n "$DLLTOOL"; then
  5667.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  5668. $as_echo "$DLLTOOL" >&6; }
  5669. else
  5670.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5671. $as_echo "no" >&6; }
  5672. fi
  5673.  
  5674.  
  5675. fi
  5676. if test -z "$ac_cv_prog_DLLTOOL"; then
  5677.   ac_ct_DLLTOOL=$DLLTOOL
  5678.   # Extract the first word of "dlltool", so it can be a program name with args.
  5679. set dummy dlltool; ac_word=$2
  5680. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5681. $as_echo_n "checking for $ac_word... " >&6; }
  5682. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  5683.   $as_echo_n "(cached) " >&6
  5684. else
  5685.   if test -n "$ac_ct_DLLTOOL"; then
  5686.   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  5687. else
  5688. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5689. for as_dir in $PATH
  5690. do
  5691.   IFS=$as_save_IFS
  5692.   test -z "$as_dir" && as_dir=.
  5693.     for ac_exec_ext in '' $ac_executable_extensions; do
  5694.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5695.     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  5696.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5697.     break 2
  5698.   fi
  5699. done
  5700.   done
  5701. IFS=$as_save_IFS
  5702.  
  5703. fi
  5704. fi
  5705. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  5706. if test -n "$ac_ct_DLLTOOL"; then
  5707.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  5708. $as_echo "$ac_ct_DLLTOOL" >&6; }
  5709. else
  5710.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5711. $as_echo "no" >&6; }
  5712. fi
  5713.  
  5714.   if test "x$ac_ct_DLLTOOL" = x; then
  5715.     DLLTOOL="false"
  5716.   else
  5717.     case $cross_compiling:$ac_tool_warned in
  5718. yes:)
  5719. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5720. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5721. ac_tool_warned=yes ;;
  5722. esac
  5723.     DLLTOOL=$ac_ct_DLLTOOL
  5724.   fi
  5725. else
  5726.   DLLTOOL="$ac_cv_prog_DLLTOOL"
  5727. fi
  5728.  
  5729. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5730.  
  5731.  
  5732.  
  5733.  
  5734.  
  5735.  
  5736.  
  5737.  
  5738.  
  5739.  
  5740. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  5741. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  5742. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  5743.   $as_echo_n "(cached) " >&6
  5744. else
  5745.   lt_cv_sharedlib_from_linklib_cmd='unknown'
  5746.  
  5747. case $host_os in
  5748. cygwin* | mingw* | pw32* | cegcc*)
  5749.   # two different shell functions defined in ltmain.sh
  5750.   # decide which to use based on capabilities of $DLLTOOL
  5751.   case `$DLLTOOL --help 2>&1` in
  5752.   *--identify-strict*)
  5753.     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  5754.     ;;
  5755.   *)
  5756.     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  5757.     ;;
  5758.   esac
  5759.   ;;
  5760. *)
  5761.   # fallback: assume linklib IS sharedlib
  5762.   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  5763.   ;;
  5764. esac
  5765.  
  5766. fi
  5767. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  5768. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  5769. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  5770. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  5771.  
  5772.  
  5773.  
  5774.  
  5775.  
  5776.  
  5777.  
  5778.  
  5779. if test -n "$ac_tool_prefix"; then
  5780.   for ac_prog in ar
  5781.   do
  5782.     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5783. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5784. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5785. $as_echo_n "checking for $ac_word... " >&6; }
  5786. if ${ac_cv_prog_AR+:} false; then :
  5787.   $as_echo_n "(cached) " >&6
  5788. else
  5789.   if test -n "$AR"; then
  5790.   ac_cv_prog_AR="$AR" # Let the user override the test.
  5791. else
  5792. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5793. for as_dir in $PATH
  5794. do
  5795.   IFS=$as_save_IFS
  5796.   test -z "$as_dir" && as_dir=.
  5797.     for ac_exec_ext in '' $ac_executable_extensions; do
  5798.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5799.     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  5800.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5801.     break 2
  5802.   fi
  5803. done
  5804.   done
  5805. IFS=$as_save_IFS
  5806.  
  5807. fi
  5808. fi
  5809. AR=$ac_cv_prog_AR
  5810. if test -n "$AR"; then
  5811.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5812. $as_echo "$AR" >&6; }
  5813. else
  5814.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5815. $as_echo "no" >&6; }
  5816. fi
  5817.  
  5818.  
  5819.     test -n "$AR" && break
  5820.   done
  5821. fi
  5822. if test -z "$AR"; then
  5823.   ac_ct_AR=$AR
  5824.   for ac_prog in ar
  5825. do
  5826.   # Extract the first word of "$ac_prog", so it can be a program name with args.
  5827. set dummy $ac_prog; ac_word=$2
  5828. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5829. $as_echo_n "checking for $ac_word... " >&6; }
  5830. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  5831.   $as_echo_n "(cached) " >&6
  5832. else
  5833.   if test -n "$ac_ct_AR"; then
  5834.   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5835. else
  5836. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5837. for as_dir in $PATH
  5838. do
  5839.   IFS=$as_save_IFS
  5840.   test -z "$as_dir" && as_dir=.
  5841.     for ac_exec_ext in '' $ac_executable_extensions; do
  5842.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5843.     ac_cv_prog_ac_ct_AR="$ac_prog"
  5844.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5845.     break 2
  5846.   fi
  5847. done
  5848.   done
  5849. IFS=$as_save_IFS
  5850.  
  5851. fi
  5852. fi
  5853. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5854. if test -n "$ac_ct_AR"; then
  5855.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5856. $as_echo "$ac_ct_AR" >&6; }
  5857. else
  5858.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5859. $as_echo "no" >&6; }
  5860. fi
  5861.  
  5862.  
  5863.   test -n "$ac_ct_AR" && break
  5864. done
  5865.  
  5866.   if test "x$ac_ct_AR" = x; then
  5867.     AR="false"
  5868.   else
  5869.     case $cross_compiling:$ac_tool_warned in
  5870. yes:)
  5871. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5872. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5873. ac_tool_warned=yes ;;
  5874. esac
  5875.     AR=$ac_ct_AR
  5876.   fi
  5877. fi
  5878.  
  5879. : ${AR=ar}
  5880. : ${AR_FLAGS=cru}
  5881.  
  5882.  
  5883.  
  5884.  
  5885.  
  5886.  
  5887.  
  5888.  
  5889.  
  5890.  
  5891.  
  5892. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  5893. $as_echo_n "checking for archiver @FILE support... " >&6; }
  5894. if ${lt_cv_ar_at_file+:} false; then :
  5895.   $as_echo_n "(cached) " >&6
  5896. else
  5897.   lt_cv_ar_at_file=no
  5898.    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5899. /* end confdefs.h.  */
  5900.  
  5901. int
  5902. main ()
  5903. {
  5904.  
  5905.   ;
  5906.   return 0;
  5907. }
  5908. _ACEOF
  5909. if ac_fn_c_try_compile "$LINENO"; then :
  5910.   echo conftest.$ac_objext > conftest.lst
  5911.       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  5912.       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5913.   (eval $lt_ar_try) 2>&5
  5914.   ac_status=$?
  5915.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5916.   test $ac_status = 0; }
  5917.       if test "$ac_status" -eq 0; then
  5918.         # Ensure the archiver fails upon bogus file names.
  5919.         rm -f conftest.$ac_objext libconftest.a
  5920.         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5921.   (eval $lt_ar_try) 2>&5
  5922.   ac_status=$?
  5923.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5924.   test $ac_status = 0; }
  5925.         if test "$ac_status" -ne 0; then
  5926.           lt_cv_ar_at_file=@
  5927.         fi
  5928.       fi
  5929.       rm -f conftest.* libconftest.a
  5930.  
  5931. fi
  5932. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5933.  
  5934. fi
  5935. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  5936. $as_echo "$lt_cv_ar_at_file" >&6; }
  5937.  
  5938. if test "x$lt_cv_ar_at_file" = xno; then
  5939.   archiver_list_spec=
  5940. else
  5941.   archiver_list_spec=$lt_cv_ar_at_file
  5942. fi
  5943.  
  5944.  
  5945.  
  5946.  
  5947.  
  5948.  
  5949.  
  5950. if test -n "$ac_tool_prefix"; then
  5951.   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5952. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5953. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5954. $as_echo_n "checking for $ac_word... " >&6; }
  5955. if ${ac_cv_prog_STRIP+:} false; then :
  5956.   $as_echo_n "(cached) " >&6
  5957. else
  5958.   if test -n "$STRIP"; then
  5959.   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5960. else
  5961. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5962. for as_dir in $PATH
  5963. do
  5964.   IFS=$as_save_IFS
  5965.   test -z "$as_dir" && as_dir=.
  5966.     for ac_exec_ext in '' $ac_executable_extensions; do
  5967.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5968.     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5969.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5970.     break 2
  5971.   fi
  5972. done
  5973.   done
  5974. IFS=$as_save_IFS
  5975.  
  5976. fi
  5977. fi
  5978. STRIP=$ac_cv_prog_STRIP
  5979. if test -n "$STRIP"; then
  5980.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5981. $as_echo "$STRIP" >&6; }
  5982. else
  5983.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5984. $as_echo "no" >&6; }
  5985. fi
  5986.  
  5987.  
  5988. fi
  5989. if test -z "$ac_cv_prog_STRIP"; then
  5990.   ac_ct_STRIP=$STRIP
  5991.   # Extract the first word of "strip", so it can be a program name with args.
  5992. set dummy strip; ac_word=$2
  5993. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5994. $as_echo_n "checking for $ac_word... " >&6; }
  5995. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  5996.   $as_echo_n "(cached) " >&6
  5997. else
  5998.   if test -n "$ac_ct_STRIP"; then
  5999.   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  6000. else
  6001. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6002. for as_dir in $PATH
  6003. do
  6004.   IFS=$as_save_IFS
  6005.   test -z "$as_dir" && as_dir=.
  6006.     for ac_exec_ext in '' $ac_executable_extensions; do
  6007.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6008.     ac_cv_prog_ac_ct_STRIP="strip"
  6009.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6010.     break 2
  6011.   fi
  6012. done
  6013.   done
  6014. IFS=$as_save_IFS
  6015.  
  6016. fi
  6017. fi
  6018. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  6019. if test -n "$ac_ct_STRIP"; then
  6020.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  6021. $as_echo "$ac_ct_STRIP" >&6; }
  6022. else
  6023.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6024. $as_echo "no" >&6; }
  6025. fi
  6026.  
  6027.   if test "x$ac_ct_STRIP" = x; then
  6028.     STRIP=":"
  6029.   else
  6030.     case $cross_compiling:$ac_tool_warned in
  6031. yes:)
  6032. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6033. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6034. ac_tool_warned=yes ;;
  6035. esac
  6036.     STRIP=$ac_ct_STRIP
  6037.   fi
  6038. else
  6039.   STRIP="$ac_cv_prog_STRIP"
  6040. fi
  6041.  
  6042. test -z "$STRIP" && STRIP=:
  6043.  
  6044.  
  6045.  
  6046.  
  6047.  
  6048.  
  6049. if test -n "$ac_tool_prefix"; then
  6050.   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6051. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6052. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6053. $as_echo_n "checking for $ac_word... " >&6; }
  6054. if ${ac_cv_prog_RANLIB+:} false; then :
  6055.   $as_echo_n "(cached) " >&6
  6056. else
  6057.   if test -n "$RANLIB"; then
  6058.   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6059. else
  6060. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6061. for as_dir in $PATH
  6062. do
  6063.   IFS=$as_save_IFS
  6064.   test -z "$as_dir" && as_dir=.
  6065.     for ac_exec_ext in '' $ac_executable_extensions; do
  6066.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6067.     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6068.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6069.     break 2
  6070.   fi
  6071. done
  6072.   done
  6073. IFS=$as_save_IFS
  6074.  
  6075. fi
  6076. fi
  6077. RANLIB=$ac_cv_prog_RANLIB
  6078. if test -n "$RANLIB"; then
  6079.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  6080. $as_echo "$RANLIB" >&6; }
  6081. else
  6082.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6083. $as_echo "no" >&6; }
  6084. fi
  6085.  
  6086.  
  6087. fi
  6088. if test -z "$ac_cv_prog_RANLIB"; then
  6089.   ac_ct_RANLIB=$RANLIB
  6090.   # Extract the first word of "ranlib", so it can be a program name with args.
  6091. set dummy ranlib; ac_word=$2
  6092. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6093. $as_echo_n "checking for $ac_word... " >&6; }
  6094. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  6095.   $as_echo_n "(cached) " >&6
  6096. else
  6097.   if test -n "$ac_ct_RANLIB"; then
  6098.   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6099. else
  6100. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6101. for as_dir in $PATH
  6102. do
  6103.   IFS=$as_save_IFS
  6104.   test -z "$as_dir" && as_dir=.
  6105.     for ac_exec_ext in '' $ac_executable_extensions; do
  6106.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6107.     ac_cv_prog_ac_ct_RANLIB="ranlib"
  6108.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6109.     break 2
  6110.   fi
  6111. done
  6112.   done
  6113. IFS=$as_save_IFS
  6114.  
  6115. fi
  6116. fi
  6117. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6118. if test -n "$ac_ct_RANLIB"; then
  6119.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  6120. $as_echo "$ac_ct_RANLIB" >&6; }
  6121. else
  6122.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6123. $as_echo "no" >&6; }
  6124. fi
  6125.  
  6126.   if test "x$ac_ct_RANLIB" = x; then
  6127.     RANLIB=":"
  6128.   else
  6129.     case $cross_compiling:$ac_tool_warned in
  6130. yes:)
  6131. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6132. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6133. ac_tool_warned=yes ;;
  6134. esac
  6135.     RANLIB=$ac_ct_RANLIB
  6136.   fi
  6137. else
  6138.   RANLIB="$ac_cv_prog_RANLIB"
  6139. fi
  6140.  
  6141. test -z "$RANLIB" && RANLIB=:
  6142.  
  6143.  
  6144.  
  6145.  
  6146.  
  6147.  
  6148. # Determine commands to create old-style static archives.
  6149. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  6150. old_postinstall_cmds='chmod 644 $oldlib'
  6151. old_postuninstall_cmds=
  6152.  
  6153. if test -n "$RANLIB"; then
  6154.   case $host_os in
  6155.   openbsd*)
  6156.     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  6157.     ;;
  6158.   *)
  6159.     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  6160.     ;;
  6161.   esac
  6162.   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  6163. fi
  6164.  
  6165. case $host_os in
  6166.   darwin*)
  6167.     lock_old_archive_extraction=yes ;;
  6168.   *)
  6169.     lock_old_archive_extraction=no ;;
  6170. esac
  6171.  
  6172.  
  6173.  
  6174.  
  6175.  
  6176.  
  6177.  
  6178.  
  6179.  
  6180.  
  6181.  
  6182.  
  6183.  
  6184.  
  6185.  
  6186.  
  6187.  
  6188.  
  6189.  
  6190.  
  6191.  
  6192.  
  6193.  
  6194.  
  6195.  
  6196.  
  6197.  
  6198.  
  6199.  
  6200.  
  6201.  
  6202.  
  6203.  
  6204.  
  6205.  
  6206.  
  6207.  
  6208.  
  6209.  
  6210. # If no C compiler was specified, use CC.
  6211. LTCC=${LTCC-"$CC"}
  6212.  
  6213. # If no C compiler flags were specified, use CFLAGS.
  6214. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6215.  
  6216. # Allow CC to be a program name with arguments.
  6217. compiler=$CC
  6218.  
  6219.  
  6220. # Check for command to grab the raw symbol name followed by C symbol from nm.
  6221. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  6222. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  6223. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  6224.   $as_echo_n "(cached) " >&6
  6225. else
  6226.  
  6227. # These are sane defaults that work on at least a few old systems.
  6228. # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
  6229.  
  6230. # Character class describing NM global symbol codes.
  6231. symcode='[BCDEGRST]'
  6232.  
  6233. # Regexp to match symbols that can be accessed directly from C.
  6234. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  6235.  
  6236. # Define system-specific variables.
  6237. case $host_os in
  6238. aix*)
  6239.   symcode='[BCDT]'
  6240.   ;;
  6241. cygwin* | mingw* | pw32* | cegcc*)
  6242.   symcode='[ABCDGISTW]'
  6243.   ;;
  6244. hpux*)
  6245.   if test "$host_cpu" = ia64; then
  6246.     symcode='[ABCDEGRST]'
  6247.   fi
  6248.   ;;
  6249. irix* | nonstopux*)
  6250.   symcode='[BCDEGRST]'
  6251.   ;;
  6252. osf*)
  6253.   symcode='[BCDEGQRST]'
  6254.   ;;
  6255. solaris*)
  6256.   symcode='[BDRT]'
  6257.   ;;
  6258. sco3.2v5*)
  6259.   symcode='[DT]'
  6260.   ;;
  6261. sysv4.2uw2*)
  6262.   symcode='[DT]'
  6263.   ;;
  6264. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  6265.   symcode='[ABDT]'
  6266.   ;;
  6267. sysv4)
  6268.   symcode='[DFNSTU]'
  6269.   ;;
  6270. esac
  6271.  
  6272. # If we're using GNU nm, then use its standard symbol codes.
  6273. case `$NM -V 2>&1` in
  6274. *GNU* | *'with BFD'*)
  6275.   symcode='[ABCDGIRSTW]' ;;
  6276. esac
  6277.  
  6278. # Transform an extracted symbol line into a proper C declaration.
  6279. # Some systems (esp. on ia64) link data and code symbols differently,
  6280. # so use this general approach.
  6281. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  6282.  
  6283. # Transform an extracted symbol line into symbol name and symbol address
  6284. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
  6285. 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'"
  6286.  
  6287. # Handle CRLF in mingw tool chain
  6288. opt_cr=
  6289. case $build_os in
  6290. mingw*)
  6291.   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6292.   ;;
  6293. esac
  6294.  
  6295. # Try without a prefix underscore, then with it.
  6296. for ac_symprfx in "" "_"; do
  6297.  
  6298.   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6299.   symxfrm="\\1 $ac_symprfx\\2 \\2"
  6300.  
  6301.   # Write the raw and C identifiers.
  6302.   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6303.     # Fake it for dumpbin and say T for any non-static function
  6304.     # and D for any global variable.
  6305.     # Also find C++ and __fastcall symbols from MSVC++,
  6306.     # which start with @ or ?.
  6307.     lt_cv_sys_global_symbol_pipe="$AWK '"\
  6308. "     {last_section=section; section=\$ 3};"\
  6309. "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  6310. "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  6311. "     \$ 0!~/External *\|/{next};"\
  6312. "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  6313. "     {if(hide[section]) next};"\
  6314. "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  6315. "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  6316. "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
  6317. "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  6318. "     ' prfx=^$ac_symprfx"
  6319.   else
  6320.     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6321.   fi
  6322.   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  6323.  
  6324.   # Check to see that the pipe works correctly.
  6325.   pipe_works=no
  6326.  
  6327.   rm -f conftest*
  6328.   cat > conftest.$ac_ext <<_LT_EOF
  6329. #ifdef __cplusplus
  6330. extern "C" {
  6331. #endif
  6332. char nm_test_var;
  6333. void nm_test_func(void);
  6334. void nm_test_func(void){}
  6335. #ifdef __cplusplus
  6336. }
  6337. #endif
  6338. int main(){nm_test_var='a';nm_test_func();return(0);}
  6339. _LT_EOF
  6340.  
  6341.   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6342.   (eval $ac_compile) 2>&5
  6343.   ac_status=$?
  6344.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6345.   test $ac_status = 0; }; then
  6346.     # Now try to grab the symbols.
  6347.     nlist=conftest.nm
  6348.     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  6349.   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  6350.   ac_status=$?
  6351.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6352.   test $ac_status = 0; } && test -s "$nlist"; then
  6353.       # Try sorting and uniquifying the output.
  6354.       if sort "$nlist" | uniq > "$nlist"T; then
  6355.         mv -f "$nlist"T "$nlist"
  6356.       else
  6357.         rm -f "$nlist"T
  6358.       fi
  6359.  
  6360.       # Make sure that we snagged all the symbols we need.
  6361.       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6362.         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6363.           cat <<_LT_EOF > conftest.$ac_ext
  6364. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
  6365. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  6366. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  6367.    relocations are performed -- see ld's documentation on pseudo-relocs.  */
  6368. # define LT_DLSYM_CONST
  6369. #elif defined(__osf__)
  6370. /* This system does not cope well with relocations in const data.  */
  6371. # define LT_DLSYM_CONST
  6372. #else
  6373. # define LT_DLSYM_CONST const
  6374. #endif
  6375.  
  6376. #ifdef __cplusplus
  6377. extern "C" {
  6378. #endif
  6379.  
  6380. _LT_EOF
  6381.           # Now generate the symbol file.
  6382.           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6383.  
  6384.           cat <<_LT_EOF >> conftest.$ac_ext
  6385.  
  6386. /* The mapping between symbol names and symbols.  */
  6387. LT_DLSYM_CONST struct {
  6388.   const char *name;
  6389.   void       *address;
  6390. }
  6391. lt__PROGRAM__LTX_preloaded_symbols[] =
  6392. {
  6393.   { "@PROGRAM@", (void *) 0 },
  6394. _LT_EOF
  6395.           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6396.           cat <<\_LT_EOF >> conftest.$ac_ext
  6397.   {0, (void *) 0}
  6398. };
  6399.  
  6400. /* This works around a problem in FreeBSD linker */
  6401. #ifdef FREEBSD_WORKAROUND
  6402. static const void *lt_preloaded_setup() {
  6403.   return lt__PROGRAM__LTX_preloaded_symbols;
  6404. }
  6405. #endif
  6406.  
  6407. #ifdef __cplusplus
  6408. }
  6409. #endif
  6410. _LT_EOF
  6411.           # Now try linking the two files.
  6412.           mv conftest.$ac_objext conftstm.$ac_objext
  6413.           lt_globsym_save_LIBS=$LIBS
  6414.           lt_globsym_save_CFLAGS=$CFLAGS
  6415.           LIBS="conftstm.$ac_objext"
  6416.           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6417.           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6418.   (eval $ac_link) 2>&5
  6419.   ac_status=$?
  6420.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6421.   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  6422.             pipe_works=yes
  6423.           fi
  6424.           LIBS=$lt_globsym_save_LIBS
  6425.           CFLAGS=$lt_globsym_save_CFLAGS
  6426.         else
  6427.           echo "cannot find nm_test_func in $nlist" >&5
  6428.         fi
  6429.       else
  6430.         echo "cannot find nm_test_var in $nlist" >&5
  6431.       fi
  6432.     else
  6433.       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6434.     fi
  6435.   else
  6436.     echo "$progname: failed program was:" >&5
  6437.     cat conftest.$ac_ext >&5
  6438.   fi
  6439.   rm -rf conftest* conftst*
  6440.  
  6441.   # Do not use the global_symbol_pipe unless it works.
  6442.   if test "$pipe_works" = yes; then
  6443.     break
  6444.   else
  6445.     lt_cv_sys_global_symbol_pipe=
  6446.   fi
  6447. done
  6448.  
  6449. fi
  6450.  
  6451. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6452.   lt_cv_sys_global_symbol_to_cdecl=
  6453. fi
  6454. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6455.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6456. $as_echo "failed" >&6; }
  6457. else
  6458.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6459. $as_echo "ok" >&6; }
  6460. fi
  6461.  
  6462. # Response file support.
  6463. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6464.   nm_file_list_spec='@'
  6465. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  6466.   nm_file_list_spec='@'
  6467. fi
  6468.  
  6469.  
  6470.  
  6471.  
  6472.  
  6473.  
  6474.  
  6475.  
  6476.  
  6477.  
  6478.  
  6479.  
  6480.  
  6481.  
  6482.  
  6483.  
  6484.  
  6485.  
  6486.  
  6487.  
  6488.  
  6489.  
  6490.  
  6491.  
  6492.  
  6493.  
  6494.  
  6495. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  6496. $as_echo_n "checking for sysroot... " >&6; }
  6497.  
  6498. # Check whether --with-sysroot was given.
  6499. if test "${with_sysroot+set}" = set; then :
  6500.   withval=$with_sysroot;
  6501. else
  6502.   with_sysroot=no
  6503. fi
  6504.  
  6505.  
  6506. lt_sysroot=
  6507. case ${with_sysroot} in #(
  6508.  yes)
  6509.    if test "$GCC" = yes; then
  6510.      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  6511.    fi
  6512.    ;; #(
  6513.  /*)
  6514.    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  6515.    ;; #(
  6516.  no|'')
  6517.    ;; #(
  6518.  *)
  6519.    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  6520. $as_echo "${with_sysroot}" >&6; }
  6521.    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  6522.    ;;
  6523. esac
  6524.  
  6525.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  6526. $as_echo "${lt_sysroot:-no}" >&6; }
  6527.  
  6528.  
  6529.  
  6530.  
  6531.  
  6532. # Check whether --enable-libtool-lock was given.
  6533. if test "${enable_libtool_lock+set}" = set; then :
  6534.   enableval=$enable_libtool_lock;
  6535. fi
  6536.  
  6537. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  6538.  
  6539. # Some flags need to be propagated to the compiler or linker for good
  6540. # libtool support.
  6541. case $host in
  6542. ia64-*-hpux*)
  6543.   # Find out which ABI we are using.
  6544.   echo 'int i;' > conftest.$ac_ext
  6545.   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6546.   (eval $ac_compile) 2>&5
  6547.   ac_status=$?
  6548.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6549.   test $ac_status = 0; }; then
  6550.     case `/usr/bin/file conftest.$ac_objext` in
  6551.       *ELF-32*)
  6552.         HPUX_IA64_MODE="32"
  6553.         ;;
  6554.       *ELF-64*)
  6555.         HPUX_IA64_MODE="64"
  6556.         ;;
  6557.     esac
  6558.   fi
  6559.   rm -rf conftest*
  6560.   ;;
  6561. *-*-irix6*)
  6562.   # Find out which ABI we are using.
  6563.   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6564.   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6565.   (eval $ac_compile) 2>&5
  6566.   ac_status=$?
  6567.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6568.   test $ac_status = 0; }; then
  6569.     if test "$lt_cv_prog_gnu_ld" = yes; then
  6570.       case `/usr/bin/file conftest.$ac_objext` in
  6571.         *32-bit*)
  6572.           LD="${LD-ld} -melf32bsmip"
  6573.           ;;
  6574.         *N32*)
  6575.           LD="${LD-ld} -melf32bmipn32"
  6576.           ;;
  6577.         *64-bit*)
  6578.           LD="${LD-ld} -melf64bmip"
  6579.         ;;
  6580.       esac
  6581.     else
  6582.       case `/usr/bin/file conftest.$ac_objext` in
  6583.         *32-bit*)
  6584.           LD="${LD-ld} -32"
  6585.           ;;
  6586.         *N32*)
  6587.           LD="${LD-ld} -n32"
  6588.           ;;
  6589.         *64-bit*)
  6590.           LD="${LD-ld} -64"
  6591.           ;;
  6592.       esac
  6593.     fi
  6594.   fi
  6595.   rm -rf conftest*
  6596.   ;;
  6597.  
  6598. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  6599. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6600.   # Find out which ABI we are using.
  6601.   echo 'int i;' > conftest.$ac_ext
  6602.   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6603.   (eval $ac_compile) 2>&5
  6604.   ac_status=$?
  6605.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6606.   test $ac_status = 0; }; then
  6607.     case `/usr/bin/file conftest.o` in
  6608.       *32-bit*)
  6609.         case $host in
  6610.           x86_64-*kfreebsd*-gnu)
  6611.             LD="${LD-ld} -m elf_i386_fbsd"
  6612.             ;;
  6613.           x86_64-*linux*)
  6614.             case `/usr/bin/file conftest.o` in
  6615.               *x86-64*)
  6616.                 LD="${LD-ld} -m elf32_x86_64"
  6617.                 ;;
  6618.               *)
  6619.                 LD="${LD-ld} -m elf_i386"
  6620.                 ;;
  6621.             esac
  6622.             ;;
  6623.           powerpc64le-*)
  6624.             LD="${LD-ld} -m elf32lppclinux"
  6625.             ;;
  6626.           powerpc64-*)
  6627.             LD="${LD-ld} -m elf32ppclinux"
  6628.             ;;
  6629.           s390x-*linux*)
  6630.             LD="${LD-ld} -m elf_s390"
  6631.             ;;
  6632.           sparc64-*linux*)
  6633.             LD="${LD-ld} -m elf32_sparc"
  6634.             ;;
  6635.         esac
  6636.         ;;
  6637.       *64-bit*)
  6638.         case $host in
  6639.           x86_64-*kfreebsd*-gnu)
  6640.             LD="${LD-ld} -m elf_x86_64_fbsd"
  6641.             ;;
  6642.           x86_64-*linux*)
  6643.             LD="${LD-ld} -m elf_x86_64"
  6644.             ;;
  6645.           powerpcle-*)
  6646.             LD="${LD-ld} -m elf64lppc"
  6647.             ;;
  6648.           powerpc-*)
  6649.             LD="${LD-ld} -m elf64ppc"
  6650.             ;;
  6651.           s390*-*linux*|s390*-*tpf*)
  6652.             LD="${LD-ld} -m elf64_s390"
  6653.             ;;
  6654.           sparc*-*linux*)
  6655.             LD="${LD-ld} -m elf64_sparc"
  6656.             ;;
  6657.         esac
  6658.         ;;
  6659.     esac
  6660.   fi
  6661.   rm -rf conftest*
  6662.   ;;
  6663.  
  6664. *-*-sco3.2v5*)
  6665.   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6666.   SAVE_CFLAGS="$CFLAGS"
  6667.   CFLAGS="$CFLAGS -belf"
  6668.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6669. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6670. if ${lt_cv_cc_needs_belf+:} false; then :
  6671.   $as_echo_n "(cached) " >&6
  6672. else
  6673.   ac_ext=c
  6674. ac_cpp='$CPP $CPPFLAGS'
  6675. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6676. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6677. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6678.  
  6679.      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6680. /* end confdefs.h.  */
  6681.  
  6682. int
  6683. main ()
  6684. {
  6685.  
  6686.   ;
  6687.   return 0;
  6688. }
  6689. _ACEOF
  6690. if ac_fn_c_try_link "$LINENO"; then :
  6691.   lt_cv_cc_needs_belf=yes
  6692. else
  6693.   lt_cv_cc_needs_belf=no
  6694. fi
  6695. rm -f core conftest.err conftest.$ac_objext \
  6696.     conftest$ac_exeext conftest.$ac_ext
  6697.      ac_ext=c
  6698. ac_cpp='$CPP $CPPFLAGS'
  6699. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6700. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6701. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6702.  
  6703. fi
  6704. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6705. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6706.   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  6707.     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6708.     CFLAGS="$SAVE_CFLAGS"
  6709.   fi
  6710.   ;;
  6711. *-*solaris*)
  6712.   # Find out which ABI we are using.
  6713.   echo 'int i;' > conftest.$ac_ext
  6714.   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6715.   (eval $ac_compile) 2>&5
  6716.   ac_status=$?
  6717.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6718.   test $ac_status = 0; }; then
  6719.     case `/usr/bin/file conftest.o` in
  6720.     *64-bit*)
  6721.       case $lt_cv_prog_gnu_ld in
  6722.       yes*)
  6723.         case $host in
  6724.         i?86-*-solaris*)
  6725.           LD="${LD-ld} -m elf_x86_64"
  6726.           ;;
  6727.         sparc*-*-solaris*)
  6728.           LD="${LD-ld} -m elf64_sparc"
  6729.           ;;
  6730.         esac
  6731.         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
  6732.         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  6733.           LD="${LD-ld}_sol2"
  6734.         fi
  6735.         ;;
  6736.       *)
  6737.         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6738.           LD="${LD-ld} -64"
  6739.         fi
  6740.         ;;
  6741.       esac
  6742.       ;;
  6743.     esac
  6744.   fi
  6745.   rm -rf conftest*
  6746.   ;;
  6747. esac
  6748.  
  6749. need_locks="$enable_libtool_lock"
  6750.  
  6751. if test -n "$ac_tool_prefix"; then
  6752.   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  6753. set dummy ${ac_tool_prefix}mt; ac_word=$2
  6754. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6755. $as_echo_n "checking for $ac_word... " >&6; }
  6756. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  6757.   $as_echo_n "(cached) " >&6
  6758. else
  6759.   if test -n "$MANIFEST_TOOL"; then
  6760.   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  6761. else
  6762. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6763. for as_dir in $PATH
  6764. do
  6765.   IFS=$as_save_IFS
  6766.   test -z "$as_dir" && as_dir=.
  6767.     for ac_exec_ext in '' $ac_executable_extensions; do
  6768.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6769.     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  6770.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6771.     break 2
  6772.   fi
  6773. done
  6774.   done
  6775. IFS=$as_save_IFS
  6776.  
  6777. fi
  6778. fi
  6779. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  6780. if test -n "$MANIFEST_TOOL"; then
  6781.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  6782. $as_echo "$MANIFEST_TOOL" >&6; }
  6783. else
  6784.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6785. $as_echo "no" >&6; }
  6786. fi
  6787.  
  6788.  
  6789. fi
  6790. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  6791.   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  6792.   # Extract the first word of "mt", so it can be a program name with args.
  6793. set dummy mt; ac_word=$2
  6794. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6795. $as_echo_n "checking for $ac_word... " >&6; }
  6796. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  6797.   $as_echo_n "(cached) " >&6
  6798. else
  6799.   if test -n "$ac_ct_MANIFEST_TOOL"; then
  6800.   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  6801. else
  6802. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6803. for as_dir in $PATH
  6804. do
  6805.   IFS=$as_save_IFS
  6806.   test -z "$as_dir" && as_dir=.
  6807.     for ac_exec_ext in '' $ac_executable_extensions; do
  6808.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6809.     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  6810.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6811.     break 2
  6812.   fi
  6813. done
  6814.   done
  6815. IFS=$as_save_IFS
  6816.  
  6817. fi
  6818. fi
  6819. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  6820. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6821.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  6822. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  6823. else
  6824.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6825. $as_echo "no" >&6; }
  6826. fi
  6827.  
  6828.   if test "x$ac_ct_MANIFEST_TOOL" = x; then
  6829.     MANIFEST_TOOL=":"
  6830.   else
  6831.     case $cross_compiling:$ac_tool_warned in
  6832. yes:)
  6833. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6834. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6835. ac_tool_warned=yes ;;
  6836. esac
  6837.     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  6838.   fi
  6839. else
  6840.   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  6841. fi
  6842.  
  6843. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  6844. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  6845. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  6846. if ${lt_cv_path_mainfest_tool+:} false; then :
  6847.   $as_echo_n "(cached) " >&6
  6848. else
  6849.   lt_cv_path_mainfest_tool=no
  6850.   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  6851.   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  6852.   cat conftest.err >&5
  6853.   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  6854.     lt_cv_path_mainfest_tool=yes
  6855.   fi
  6856.   rm -f conftest*
  6857. fi
  6858. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  6859. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  6860. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  6861.   MANIFEST_TOOL=:
  6862. fi
  6863.  
  6864.  
  6865.  
  6866.  
  6867.  
  6868.  
  6869.   case $host_os in
  6870.     rhapsody* | darwin*)
  6871.     if test -n "$ac_tool_prefix"; then
  6872.   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6873. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6874. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6875. $as_echo_n "checking for $ac_word... " >&6; }
  6876. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  6877.   $as_echo_n "(cached) " >&6
  6878. else
  6879.   if test -n "$DSYMUTIL"; then
  6880.   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6881. else
  6882. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6883. for as_dir in $PATH
  6884. do
  6885.   IFS=$as_save_IFS
  6886.   test -z "$as_dir" && as_dir=.
  6887.     for ac_exec_ext in '' $ac_executable_extensions; do
  6888.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6889.     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6890.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6891.     break 2
  6892.   fi
  6893. done
  6894.   done
  6895. IFS=$as_save_IFS
  6896.  
  6897. fi
  6898. fi
  6899. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6900. if test -n "$DSYMUTIL"; then
  6901.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6902. $as_echo "$DSYMUTIL" >&6; }
  6903. else
  6904.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6905. $as_echo "no" >&6; }
  6906. fi
  6907.  
  6908.  
  6909. fi
  6910. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6911.   ac_ct_DSYMUTIL=$DSYMUTIL
  6912.   # Extract the first word of "dsymutil", so it can be a program name with args.
  6913. set dummy dsymutil; ac_word=$2
  6914. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6915. $as_echo_n "checking for $ac_word... " >&6; }
  6916. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  6917.   $as_echo_n "(cached) " >&6
  6918. else
  6919.   if test -n "$ac_ct_DSYMUTIL"; then
  6920.   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6921. else
  6922. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6923. for as_dir in $PATH
  6924. do
  6925.   IFS=$as_save_IFS
  6926.   test -z "$as_dir" && as_dir=.
  6927.     for ac_exec_ext in '' $ac_executable_extensions; do
  6928.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6929.     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6930.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6931.     break 2
  6932.   fi
  6933. done
  6934.   done
  6935. IFS=$as_save_IFS
  6936.  
  6937. fi
  6938. fi
  6939. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6940. if test -n "$ac_ct_DSYMUTIL"; then
  6941.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6942. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6943. else
  6944.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6945. $as_echo "no" >&6; }
  6946. fi
  6947.  
  6948.   if test "x$ac_ct_DSYMUTIL" = x; then
  6949.     DSYMUTIL=":"
  6950.   else
  6951.     case $cross_compiling:$ac_tool_warned in
  6952. yes:)
  6953. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6954. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6955. ac_tool_warned=yes ;;
  6956. esac
  6957.     DSYMUTIL=$ac_ct_DSYMUTIL
  6958.   fi
  6959. else
  6960.   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6961. fi
  6962.  
  6963.     if test -n "$ac_tool_prefix"; then
  6964.   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6965. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6966. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6967. $as_echo_n "checking for $ac_word... " >&6; }
  6968. if ${ac_cv_prog_NMEDIT+:} false; then :
  6969.   $as_echo_n "(cached) " >&6
  6970. else
  6971.   if test -n "$NMEDIT"; then
  6972.   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6973. else
  6974. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6975. for as_dir in $PATH
  6976. do
  6977.   IFS=$as_save_IFS
  6978.   test -z "$as_dir" && as_dir=.
  6979.     for ac_exec_ext in '' $ac_executable_extensions; do
  6980.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6981.     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6982.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6983.     break 2
  6984.   fi
  6985. done
  6986.   done
  6987. IFS=$as_save_IFS
  6988.  
  6989. fi
  6990. fi
  6991. NMEDIT=$ac_cv_prog_NMEDIT
  6992. if test -n "$NMEDIT"; then
  6993.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6994. $as_echo "$NMEDIT" >&6; }
  6995. else
  6996.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6997. $as_echo "no" >&6; }
  6998. fi
  6999.  
  7000.  
  7001. fi
  7002. if test -z "$ac_cv_prog_NMEDIT"; then
  7003.   ac_ct_NMEDIT=$NMEDIT
  7004.   # Extract the first word of "nmedit", so it can be a program name with args.
  7005. set dummy nmedit; ac_word=$2
  7006. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7007. $as_echo_n "checking for $ac_word... " >&6; }
  7008. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  7009.   $as_echo_n "(cached) " >&6
  7010. else
  7011.   if test -n "$ac_ct_NMEDIT"; then
  7012.   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  7013. else
  7014. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7015. for as_dir in $PATH
  7016. do
  7017.   IFS=$as_save_IFS
  7018.   test -z "$as_dir" && as_dir=.
  7019.     for ac_exec_ext in '' $ac_executable_extensions; do
  7020.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7021.     ac_cv_prog_ac_ct_NMEDIT="nmedit"
  7022.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7023.     break 2
  7024.   fi
  7025. done
  7026.   done
  7027. IFS=$as_save_IFS
  7028.  
  7029. fi
  7030. fi
  7031. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  7032. if test -n "$ac_ct_NMEDIT"; then
  7033.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  7034. $as_echo "$ac_ct_NMEDIT" >&6; }
  7035. else
  7036.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7037. $as_echo "no" >&6; }
  7038. fi
  7039.  
  7040.   if test "x$ac_ct_NMEDIT" = x; then
  7041.     NMEDIT=":"
  7042.   else
  7043.     case $cross_compiling:$ac_tool_warned in
  7044. yes:)
  7045. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7046. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7047. ac_tool_warned=yes ;;
  7048. esac
  7049.     NMEDIT=$ac_ct_NMEDIT
  7050.   fi
  7051. else
  7052.   NMEDIT="$ac_cv_prog_NMEDIT"
  7053. fi
  7054.  
  7055.     if test -n "$ac_tool_prefix"; then
  7056.   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  7057. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  7058. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7059. $as_echo_n "checking for $ac_word... " >&6; }
  7060. if ${ac_cv_prog_LIPO+:} false; then :
  7061.   $as_echo_n "(cached) " >&6
  7062. else
  7063.   if test -n "$LIPO"; then
  7064.   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  7065. else
  7066. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7067. for as_dir in $PATH
  7068. do
  7069.   IFS=$as_save_IFS
  7070.   test -z "$as_dir" && as_dir=.
  7071.     for ac_exec_ext in '' $ac_executable_extensions; do
  7072.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7073.     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  7074.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7075.     break 2
  7076.   fi
  7077. done
  7078.   done
  7079. IFS=$as_save_IFS
  7080.  
  7081. fi
  7082. fi
  7083. LIPO=$ac_cv_prog_LIPO
  7084. if test -n "$LIPO"; then
  7085.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  7086. $as_echo "$LIPO" >&6; }
  7087. else
  7088.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7089. $as_echo "no" >&6; }
  7090. fi
  7091.  
  7092.  
  7093. fi
  7094. if test -z "$ac_cv_prog_LIPO"; then
  7095.   ac_ct_LIPO=$LIPO
  7096.   # Extract the first word of "lipo", so it can be a program name with args.
  7097. set dummy lipo; ac_word=$2
  7098. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7099. $as_echo_n "checking for $ac_word... " >&6; }
  7100. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  7101.   $as_echo_n "(cached) " >&6
  7102. else
  7103.   if test -n "$ac_ct_LIPO"; then
  7104.   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  7105. else
  7106. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7107. for as_dir in $PATH
  7108. do
  7109.   IFS=$as_save_IFS
  7110.   test -z "$as_dir" && as_dir=.
  7111.     for ac_exec_ext in '' $ac_executable_extensions; do
  7112.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7113.     ac_cv_prog_ac_ct_LIPO="lipo"
  7114.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7115.     break 2
  7116.   fi
  7117. done
  7118.   done
  7119. IFS=$as_save_IFS
  7120.  
  7121. fi
  7122. fi
  7123. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  7124. if test -n "$ac_ct_LIPO"; then
  7125.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  7126. $as_echo "$ac_ct_LIPO" >&6; }
  7127. else
  7128.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7129. $as_echo "no" >&6; }
  7130. fi
  7131.  
  7132.   if test "x$ac_ct_LIPO" = x; then
  7133.     LIPO=":"
  7134.   else
  7135.     case $cross_compiling:$ac_tool_warned in
  7136. yes:)
  7137. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7138. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7139. ac_tool_warned=yes ;;
  7140. esac
  7141.     LIPO=$ac_ct_LIPO
  7142.   fi
  7143. else
  7144.   LIPO="$ac_cv_prog_LIPO"
  7145. fi
  7146.  
  7147.     if test -n "$ac_tool_prefix"; then
  7148.   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  7149. set dummy ${ac_tool_prefix}otool; ac_word=$2
  7150. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7151. $as_echo_n "checking for $ac_word... " >&6; }
  7152. if ${ac_cv_prog_OTOOL+:} false; then :
  7153.   $as_echo_n "(cached) " >&6
  7154. else
  7155.   if test -n "$OTOOL"; then
  7156.   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  7157. else
  7158. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7159. for as_dir in $PATH
  7160. do
  7161.   IFS=$as_save_IFS
  7162.   test -z "$as_dir" && as_dir=.
  7163.     for ac_exec_ext in '' $ac_executable_extensions; do
  7164.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7165.     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  7166.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7167.     break 2
  7168.   fi
  7169. done
  7170.   done
  7171. IFS=$as_save_IFS
  7172.  
  7173. fi
  7174. fi
  7175. OTOOL=$ac_cv_prog_OTOOL
  7176. if test -n "$OTOOL"; then
  7177.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  7178. $as_echo "$OTOOL" >&6; }
  7179. else
  7180.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7181. $as_echo "no" >&6; }
  7182. fi
  7183.  
  7184.  
  7185. fi
  7186. if test -z "$ac_cv_prog_OTOOL"; then
  7187.   ac_ct_OTOOL=$OTOOL
  7188.   # Extract the first word of "otool", so it can be a program name with args.
  7189. set dummy otool; ac_word=$2
  7190. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7191. $as_echo_n "checking for $ac_word... " >&6; }
  7192. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  7193.   $as_echo_n "(cached) " >&6
  7194. else
  7195.   if test -n "$ac_ct_OTOOL"; then
  7196.   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  7197. else
  7198. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7199. for as_dir in $PATH
  7200. do
  7201.   IFS=$as_save_IFS
  7202.   test -z "$as_dir" && as_dir=.
  7203.     for ac_exec_ext in '' $ac_executable_extensions; do
  7204.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7205.     ac_cv_prog_ac_ct_OTOOL="otool"
  7206.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7207.     break 2
  7208.   fi
  7209. done
  7210.   done
  7211. IFS=$as_save_IFS
  7212.  
  7213. fi
  7214. fi
  7215. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  7216. if test -n "$ac_ct_OTOOL"; then
  7217.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  7218. $as_echo "$ac_ct_OTOOL" >&6; }
  7219. else
  7220.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7221. $as_echo "no" >&6; }
  7222. fi
  7223.  
  7224.   if test "x$ac_ct_OTOOL" = x; then
  7225.     OTOOL=":"
  7226.   else
  7227.     case $cross_compiling:$ac_tool_warned in
  7228. yes:)
  7229. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7230. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7231. ac_tool_warned=yes ;;
  7232. esac
  7233.     OTOOL=$ac_ct_OTOOL
  7234.   fi
  7235. else
  7236.   OTOOL="$ac_cv_prog_OTOOL"
  7237. fi
  7238.  
  7239.     if test -n "$ac_tool_prefix"; then
  7240.   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  7241. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  7242. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7243. $as_echo_n "checking for $ac_word... " >&6; }
  7244. if ${ac_cv_prog_OTOOL64+:} false; then :
  7245.   $as_echo_n "(cached) " >&6
  7246. else
  7247.   if test -n "$OTOOL64"; then
  7248.   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  7249. else
  7250. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7251. for as_dir in $PATH
  7252. do
  7253.   IFS=$as_save_IFS
  7254.   test -z "$as_dir" && as_dir=.
  7255.     for ac_exec_ext in '' $ac_executable_extensions; do
  7256.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7257.     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  7258.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7259.     break 2
  7260.   fi
  7261. done
  7262.   done
  7263. IFS=$as_save_IFS
  7264.  
  7265. fi
  7266. fi
  7267. OTOOL64=$ac_cv_prog_OTOOL64
  7268. if test -n "$OTOOL64"; then
  7269.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  7270. $as_echo "$OTOOL64" >&6; }
  7271. else
  7272.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7273. $as_echo "no" >&6; }
  7274. fi
  7275.  
  7276.  
  7277. fi
  7278. if test -z "$ac_cv_prog_OTOOL64"; then
  7279.   ac_ct_OTOOL64=$OTOOL64
  7280.   # Extract the first word of "otool64", so it can be a program name with args.
  7281. set dummy otool64; ac_word=$2
  7282. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7283. $as_echo_n "checking for $ac_word... " >&6; }
  7284. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  7285.   $as_echo_n "(cached) " >&6
  7286. else
  7287.   if test -n "$ac_ct_OTOOL64"; then
  7288.   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  7289. else
  7290. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7291. for as_dir in $PATH
  7292. do
  7293.   IFS=$as_save_IFS
  7294.   test -z "$as_dir" && as_dir=.
  7295.     for ac_exec_ext in '' $ac_executable_extensions; do
  7296.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7297.     ac_cv_prog_ac_ct_OTOOL64="otool64"
  7298.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7299.     break 2
  7300.   fi
  7301. done
  7302.   done
  7303. IFS=$as_save_IFS
  7304.  
  7305. fi
  7306. fi
  7307. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  7308. if test -n "$ac_ct_OTOOL64"; then
  7309.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  7310. $as_echo "$ac_ct_OTOOL64" >&6; }
  7311. else
  7312.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7313. $as_echo "no" >&6; }
  7314. fi
  7315.  
  7316.   if test "x$ac_ct_OTOOL64" = x; then
  7317.     OTOOL64=":"
  7318.   else
  7319.     case $cross_compiling:$ac_tool_warned in
  7320. yes:)
  7321. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7322. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7323. ac_tool_warned=yes ;;
  7324. esac
  7325.     OTOOL64=$ac_ct_OTOOL64
  7326.   fi
  7327. else
  7328.   OTOOL64="$ac_cv_prog_OTOOL64"
  7329. fi
  7330.  
  7331.  
  7332.  
  7333.  
  7334.  
  7335.  
  7336.  
  7337.  
  7338.  
  7339.  
  7340.  
  7341.  
  7342.  
  7343.  
  7344.  
  7345.  
  7346.  
  7347.  
  7348.  
  7349.  
  7350.  
  7351.  
  7352.  
  7353.  
  7354.  
  7355.  
  7356.  
  7357.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  7358. $as_echo_n "checking for -single_module linker flag... " >&6; }
  7359. if ${lt_cv_apple_cc_single_mod+:} false; then :
  7360.   $as_echo_n "(cached) " >&6
  7361. else
  7362.   lt_cv_apple_cc_single_mod=no
  7363.       if test -z "${LT_MULTI_MODULE}"; then
  7364.         # By default we will add the -single_module flag. You can override
  7365.         # by either setting the environment variable LT_MULTI_MODULE
  7366.         # non-empty at configure time, or by adding -multi_module to the
  7367.         # link flags.
  7368.         rm -rf libconftest.dylib*
  7369.         echo "int foo(void){return 1;}" > conftest.c
  7370.         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7371. -dynamiclib -Wl,-single_module conftest.c" >&5
  7372.         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7373.           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  7374.         _lt_result=$?
  7375.         # If there is a non-empty error log, and "single_module"
  7376.         # appears in it, assume the flag caused a linker warning
  7377.         if test -s conftest.err && $GREP single_module conftest.err; then
  7378.           cat conftest.err >&5
  7379.         # Otherwise, if the output was created with a 0 exit code from
  7380.         # the compiler, it worked.
  7381.         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  7382.           lt_cv_apple_cc_single_mod=yes
  7383.         else
  7384.           cat conftest.err >&5
  7385.         fi
  7386.         rm -rf libconftest.dylib*
  7387.         rm -f conftest.*
  7388.       fi
  7389. fi
  7390. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  7391. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  7392.  
  7393.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  7394. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  7395. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  7396.   $as_echo_n "(cached) " >&6
  7397. else
  7398.   lt_cv_ld_exported_symbols_list=no
  7399.       save_LDFLAGS=$LDFLAGS
  7400.       echo "_main" > conftest.sym
  7401.       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  7402.       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7403. /* end confdefs.h.  */
  7404.  
  7405. int
  7406. main ()
  7407. {
  7408.  
  7409.   ;
  7410.   return 0;
  7411. }
  7412. _ACEOF
  7413. if ac_fn_c_try_link "$LINENO"; then :
  7414.   lt_cv_ld_exported_symbols_list=yes
  7415. else
  7416.   lt_cv_ld_exported_symbols_list=no
  7417. fi
  7418. rm -f core conftest.err conftest.$ac_objext \
  7419.     conftest$ac_exeext conftest.$ac_ext
  7420.         LDFLAGS="$save_LDFLAGS"
  7421.  
  7422. fi
  7423. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  7424. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  7425.  
  7426.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  7427. $as_echo_n "checking for -force_load linker flag... " >&6; }
  7428. if ${lt_cv_ld_force_load+:} false; then :
  7429.   $as_echo_n "(cached) " >&6
  7430. else
  7431.   lt_cv_ld_force_load=no
  7432.       cat > conftest.c << _LT_EOF
  7433. int forced_loaded() { return 2;}
  7434. _LT_EOF
  7435.       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  7436.       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  7437.       echo "$AR cru libconftest.a conftest.o" >&5
  7438.       $AR cru libconftest.a conftest.o 2>&5
  7439.       echo "$RANLIB libconftest.a" >&5
  7440.       $RANLIB libconftest.a 2>&5
  7441.       cat > conftest.c << _LT_EOF
  7442. int main() { return 0;}
  7443. _LT_EOF
  7444.       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  7445.       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  7446.       _lt_result=$?
  7447.       if test -s conftest.err && $GREP force_load conftest.err; then
  7448.         cat conftest.err >&5
  7449.       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  7450.         lt_cv_ld_force_load=yes
  7451.       else
  7452.         cat conftest.err >&5
  7453.       fi
  7454.         rm -f conftest.err libconftest.a conftest conftest.c
  7455.         rm -rf conftest.dSYM
  7456.  
  7457. fi
  7458. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  7459. $as_echo "$lt_cv_ld_force_load" >&6; }
  7460.     case $host_os in
  7461.     rhapsody* | darwin1.[012])
  7462.       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  7463.     darwin1.*)
  7464.       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7465.     darwin*) # darwin 5.x on
  7466.       # if running on 10.5 or later, the deployment target defaults
  7467.       # to the OS version, if on x86, and 10.4, the deployment
  7468.       # target defaults to 10.4. Don't you love it?
  7469.       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  7470.         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  7471.           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  7472.         10.[012]*)
  7473.           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7474.         10.*)
  7475.           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  7476.       esac
  7477.     ;;
  7478.   esac
  7479.     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  7480.       _lt_dar_single_mod='$single_module'
  7481.     fi
  7482.     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  7483.       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  7484.     else
  7485.       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  7486.     fi
  7487.     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  7488.       _lt_dsymutil='~$DSYMUTIL $lib || :'
  7489.     else
  7490.       _lt_dsymutil=
  7491.     fi
  7492.     ;;
  7493.   esac
  7494.  
  7495. ac_ext=c
  7496. ac_cpp='$CPP $CPPFLAGS'
  7497. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7498. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7499. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7500. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  7501. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  7502. # On Suns, sometimes $CPP names a directory.
  7503. if test -n "$CPP" && test -d "$CPP"; then
  7504.   CPP=
  7505. fi
  7506. if test -z "$CPP"; then
  7507.   if ${ac_cv_prog_CPP+:} false; then :
  7508.   $as_echo_n "(cached) " >&6
  7509. else
  7510.       # Double quotes because CPP needs to be expanded
  7511.     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  7512.     do
  7513.       ac_preproc_ok=false
  7514. for ac_c_preproc_warn_flag in '' yes
  7515. do
  7516.   # Use a header file that comes with gcc, so configuring glibc
  7517.   # with a fresh cross-compiler works.
  7518.   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7519.   # <limits.h> exists even on freestanding compilers.
  7520.   # On the NeXT, cc -E runs the code through the compiler's parser,
  7521.   # not just through cpp. "Syntax error" is here to catch this case.
  7522.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7523. /* end confdefs.h.  */
  7524. #ifdef __STDC__
  7525. # include <limits.h>
  7526. #else
  7527. # include <assert.h>
  7528. #endif
  7529.                      Syntax error
  7530. _ACEOF
  7531. if ac_fn_c_try_cpp "$LINENO"; then :
  7532.  
  7533. else
  7534.   # Broken: fails on valid input.
  7535. continue
  7536. fi
  7537. rm -f conftest.err conftest.i conftest.$ac_ext
  7538.  
  7539.   # OK, works on sane cases.  Now check whether nonexistent headers
  7540.   # can be detected and how.
  7541.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7542. /* end confdefs.h.  */
  7543. #include <ac_nonexistent.h>
  7544. _ACEOF
  7545. if ac_fn_c_try_cpp "$LINENO"; then :
  7546.   # Broken: success on invalid input.
  7547. continue
  7548. else
  7549.   # Passes both tests.
  7550. ac_preproc_ok=:
  7551. break
  7552. fi
  7553. rm -f conftest.err conftest.i conftest.$ac_ext
  7554.  
  7555. done
  7556. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7557. rm -f conftest.i conftest.err conftest.$ac_ext
  7558. if $ac_preproc_ok; then :
  7559.   break
  7560. fi
  7561.  
  7562.     done
  7563.     ac_cv_prog_CPP=$CPP
  7564.  
  7565. fi
  7566.   CPP=$ac_cv_prog_CPP
  7567. else
  7568.   ac_cv_prog_CPP=$CPP
  7569. fi
  7570. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  7571. $as_echo "$CPP" >&6; }
  7572. ac_preproc_ok=false
  7573. for ac_c_preproc_warn_flag in '' yes
  7574. do
  7575.   # Use a header file that comes with gcc, so configuring glibc
  7576.   # with a fresh cross-compiler works.
  7577.   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7578.   # <limits.h> exists even on freestanding compilers.
  7579.   # On the NeXT, cc -E runs the code through the compiler's parser,
  7580.   # not just through cpp. "Syntax error" is here to catch this case.
  7581.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7582. /* end confdefs.h.  */
  7583. #ifdef __STDC__
  7584. # include <limits.h>
  7585. #else
  7586. # include <assert.h>
  7587. #endif
  7588.                      Syntax error
  7589. _ACEOF
  7590. if ac_fn_c_try_cpp "$LINENO"; then :
  7591.  
  7592. else
  7593.   # Broken: fails on valid input.
  7594. continue
  7595. fi
  7596. rm -f conftest.err conftest.i conftest.$ac_ext
  7597.  
  7598.   # OK, works on sane cases.  Now check whether nonexistent headers
  7599.   # can be detected and how.
  7600.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7601. /* end confdefs.h.  */
  7602. #include <ac_nonexistent.h>
  7603. _ACEOF
  7604. if ac_fn_c_try_cpp "$LINENO"; then :
  7605.   # Broken: success on invalid input.
  7606. continue
  7607. else
  7608.   # Passes both tests.
  7609. ac_preproc_ok=:
  7610. break
  7611. fi
  7612. rm -f conftest.err conftest.i conftest.$ac_ext
  7613.  
  7614. done
  7615. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7616. rm -f conftest.i conftest.err conftest.$ac_ext
  7617. if $ac_preproc_ok; then :
  7618.  
  7619. else
  7620.   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  7621. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7622. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  7623. See \`config.log' for more details" "$LINENO" 5; }
  7624. fi
  7625.  
  7626. ac_ext=c
  7627. ac_cpp='$CPP $CPPFLAGS'
  7628. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7629. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7630. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7631.  
  7632.  
  7633. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  7634. $as_echo_n "checking for ANSI C header files... " >&6; }
  7635. if ${ac_cv_header_stdc+:} false; then :
  7636.   $as_echo_n "(cached) " >&6
  7637. else
  7638.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7639. /* end confdefs.h.  */
  7640. #include <stdlib.h>
  7641. #include <stdarg.h>
  7642. #include <string.h>
  7643. #include <float.h>
  7644.  
  7645. int
  7646. main ()
  7647. {
  7648.  
  7649.   ;
  7650.   return 0;
  7651. }
  7652. _ACEOF
  7653. if ac_fn_c_try_compile "$LINENO"; then :
  7654.   ac_cv_header_stdc=yes
  7655. else
  7656.   ac_cv_header_stdc=no
  7657. fi
  7658. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7659.  
  7660. if test $ac_cv_header_stdc = yes; then
  7661.   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  7662.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7663. /* end confdefs.h.  */
  7664. #include <string.h>
  7665.  
  7666. _ACEOF
  7667. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7668.   $EGREP "memchr" >/dev/null 2>&1; then :
  7669.  
  7670. else
  7671.   ac_cv_header_stdc=no
  7672. fi
  7673. rm -f conftest*
  7674.  
  7675. fi
  7676.  
  7677. if test $ac_cv_header_stdc = yes; then
  7678.   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  7679.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7680. /* end confdefs.h.  */
  7681. #include <stdlib.h>
  7682.  
  7683. _ACEOF
  7684. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7685.   $EGREP "free" >/dev/null 2>&1; then :
  7686.  
  7687. else
  7688.   ac_cv_header_stdc=no
  7689. fi
  7690. rm -f conftest*
  7691.  
  7692. fi
  7693.  
  7694. if test $ac_cv_header_stdc = yes; then
  7695.   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  7696.   if test "$cross_compiling" = yes; then :
  7697.   :
  7698. else
  7699.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7700. /* end confdefs.h.  */
  7701. #include <ctype.h>
  7702. #include <stdlib.h>
  7703. #if ((' ' & 0x0FF) == 0x020)
  7704. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  7705. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  7706. #else
  7707. # define ISLOWER(c) \
  7708.                    (('a' <= (c) && (c) <= 'i') \
  7709.                      || ('j' <= (c) && (c) <= 'r') \
  7710.                      || ('s' <= (c) && (c) <= 'z'))
  7711. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  7712. #endif
  7713.  
  7714. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  7715. int
  7716. main ()
  7717. {
  7718.   int i;
  7719.   for (i = 0; i < 256; i++)
  7720.     if (XOR (islower (i), ISLOWER (i))
  7721.         || toupper (i) != TOUPPER (i))
  7722.       return 2;
  7723.   return 0;
  7724. }
  7725. _ACEOF
  7726. if ac_fn_c_try_run "$LINENO"; then :
  7727.  
  7728. else
  7729.   ac_cv_header_stdc=no
  7730. fi
  7731. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7732.   conftest.$ac_objext conftest.beam conftest.$ac_ext
  7733. fi
  7734.  
  7735. fi
  7736. fi
  7737. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  7738. $as_echo "$ac_cv_header_stdc" >&6; }
  7739. if test $ac_cv_header_stdc = yes; then
  7740.  
  7741. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  7742.  
  7743. fi
  7744.  
  7745. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  7746. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  7747.                   inttypes.h stdint.h unistd.h
  7748. do :
  7749.   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7750. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  7751. "
  7752. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  7753.   cat >>confdefs.h <<_ACEOF
  7754. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7755. _ACEOF
  7756.  
  7757. fi
  7758.  
  7759. done
  7760.  
  7761.  
  7762. for ac_header in dlfcn.h
  7763. do :
  7764.   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7765. "
  7766. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  7767.   cat >>confdefs.h <<_ACEOF
  7768. #define HAVE_DLFCN_H 1
  7769. _ACEOF
  7770.  
  7771. fi
  7772.  
  7773. done
  7774.  
  7775.  
  7776.  
  7777.  
  7778.  
  7779. # Set options
  7780.  
  7781.  
  7782.  
  7783.         enable_dlopen=no
  7784.  
  7785.  
  7786.   enable_win32_dll=no
  7787.  
  7788.  
  7789.             # Check whether --enable-shared was given.
  7790. if test "${enable_shared+set}" = set; then :
  7791.   enableval=$enable_shared; p=${PACKAGE-default}
  7792.     case $enableval in
  7793.     yes) enable_shared=yes ;;
  7794.     no) enable_shared=no ;;
  7795.     *)
  7796.       enable_shared=no
  7797.       # Look at the argument we got.  We use all the common list separators.
  7798.       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7799.       for pkg in $enableval; do
  7800.         IFS="$lt_save_ifs"
  7801.         if test "X$pkg" = "X$p"; then
  7802.           enable_shared=yes
  7803.         fi
  7804.       done
  7805.       IFS="$lt_save_ifs"
  7806.       ;;
  7807.     esac
  7808. else
  7809.   enable_shared=yes
  7810. fi
  7811.  
  7812.  
  7813.  
  7814.  
  7815.  
  7816.  
  7817.  
  7818.  
  7819.  
  7820.  
  7821.  
  7822. # Check whether --with-pic was given.
  7823. if test "${with_pic+set}" = set; then :
  7824.   withval=$with_pic; lt_p=${PACKAGE-default}
  7825.     case $withval in
  7826.     yes|no) pic_mode=$withval ;;
  7827.     *)
  7828.       pic_mode=default
  7829.       # Look at the argument we got.  We use all the common list separators.
  7830.       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7831.       for lt_pkg in $withval; do
  7832.         IFS="$lt_save_ifs"
  7833.         if test "X$lt_pkg" = "X$lt_p"; then
  7834.           pic_mode=yes
  7835.         fi
  7836.       done
  7837.       IFS="$lt_save_ifs"
  7838.       ;;
  7839.     esac
  7840. else
  7841.   pic_mode=default
  7842. fi
  7843.  
  7844.  
  7845. test -z "$pic_mode" && pic_mode=default
  7846.  
  7847.  
  7848.  
  7849.  
  7850.  
  7851.  
  7852.  
  7853.   # Check whether --enable-fast-install was given.
  7854. if test "${enable_fast_install+set}" = set; then :
  7855.   enableval=$enable_fast_install; p=${PACKAGE-default}
  7856.     case $enableval in
  7857.     yes) enable_fast_install=yes ;;
  7858.     no) enable_fast_install=no ;;
  7859.     *)
  7860.       enable_fast_install=no
  7861.       # Look at the argument we got.  We use all the common list separators.
  7862.       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7863.       for pkg in $enableval; do
  7864.         IFS="$lt_save_ifs"
  7865.         if test "X$pkg" = "X$p"; then
  7866.           enable_fast_install=yes
  7867.         fi
  7868.       done
  7869.       IFS="$lt_save_ifs"
  7870.       ;;
  7871.     esac
  7872. else
  7873.   enable_fast_install=yes
  7874. fi
  7875.  
  7876.  
  7877.  
  7878.  
  7879.  
  7880.  
  7881.  
  7882.  
  7883.  
  7884.  
  7885.  
  7886. # This can be used to rebuild libtool when needed
  7887. LIBTOOL_DEPS="$ltmain"
  7888.  
  7889. # Always use our own libtool.
  7890. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7891.  
  7892.  
  7893.  
  7894.  
  7895.  
  7896.  
  7897.  
  7898.  
  7899.  
  7900.  
  7901.  
  7902.  
  7903.  
  7904.  
  7905.  
  7906.  
  7907.  
  7908.  
  7909.  
  7910.  
  7911.  
  7912.  
  7913.  
  7914.  
  7915.  
  7916.  
  7917.  
  7918.  
  7919.  
  7920.  
  7921. test -z "$LN_S" && LN_S="ln -s"
  7922.  
  7923.  
  7924.  
  7925.  
  7926.  
  7927.  
  7928.  
  7929.  
  7930.  
  7931.  
  7932.  
  7933.  
  7934.  
  7935.  
  7936. if test -n "${ZSH_VERSION+set}" ; then
  7937.    setopt NO_GLOB_SUBST
  7938. fi
  7939.  
  7940. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7941. $as_echo_n "checking for objdir... " >&6; }
  7942. if ${lt_cv_objdir+:} false; then :
  7943.   $as_echo_n "(cached) " >&6
  7944. else
  7945.   rm -f .libs 2>/dev/null
  7946. mkdir .libs 2>/dev/null
  7947. if test -d .libs; then
  7948.   lt_cv_objdir=.libs
  7949. else
  7950.   # MS-DOS does not allow filenames that begin with a dot.
  7951.   lt_cv_objdir=_libs
  7952. fi
  7953. rmdir .libs 2>/dev/null
  7954. fi
  7955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7956. $as_echo "$lt_cv_objdir" >&6; }
  7957. objdir=$lt_cv_objdir
  7958.  
  7959.  
  7960.  
  7961.  
  7962.  
  7963. cat >>confdefs.h <<_ACEOF
  7964. #define LT_OBJDIR "$lt_cv_objdir/"
  7965. _ACEOF
  7966.  
  7967.  
  7968.  
  7969.  
  7970. case $host_os in
  7971. aix3*)
  7972.   # AIX sometimes has problems with the GCC collect2 program.  For some
  7973.   # reason, if we set the COLLECT_NAMES environment variable, the problems
  7974.   # vanish in a puff of smoke.
  7975.   if test "X${COLLECT_NAMES+set}" != Xset; then
  7976.     COLLECT_NAMES=
  7977.     export COLLECT_NAMES
  7978.   fi
  7979.   ;;
  7980. esac
  7981.  
  7982. # Global variables:
  7983. ofile=libtool
  7984. can_build_shared=yes
  7985.  
  7986. # All known linkers require a `.a' archive for static linking (except MSVC,
  7987. # which needs '.lib').
  7988. libext=a
  7989.  
  7990. with_gnu_ld="$lt_cv_prog_gnu_ld"
  7991.  
  7992. old_CC="$CC"
  7993. old_CFLAGS="$CFLAGS"
  7994.  
  7995. # Set sane defaults for various variables
  7996. test -z "$CC" && CC=cc
  7997. test -z "$LTCC" && LTCC=$CC
  7998. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7999. test -z "$LD" && LD=ld
  8000. test -z "$ac_objext" && ac_objext=o
  8001.  
  8002. for cc_temp in $compiler""; do
  8003.   case $cc_temp in
  8004.     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  8005.     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  8006.     \-*) ;;
  8007.     *) break;;
  8008.   esac
  8009. done
  8010. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  8011.  
  8012.  
  8013. # Only perform the check for file, if the check method requires it
  8014. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  8015. case $deplibs_check_method in
  8016. file_magic*)
  8017.   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  8018.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  8019. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  8020. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  8021.   $as_echo_n "(cached) " >&6
  8022. else
  8023.   case $MAGIC_CMD in
  8024. [\\/*] |  ?:[\\/]*)
  8025.   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  8026.   ;;
  8027. *)
  8028.   lt_save_MAGIC_CMD="$MAGIC_CMD"
  8029.   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  8030.   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  8031.   for ac_dir in $ac_dummy; do
  8032.     IFS="$lt_save_ifs"
  8033.     test -z "$ac_dir" && ac_dir=.
  8034.     if test -f $ac_dir/${ac_tool_prefix}file; then
  8035.       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  8036.       if test -n "$file_magic_test_file"; then
  8037.         case $deplibs_check_method in
  8038.         "file_magic "*)
  8039.           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  8040.           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  8041.           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  8042.             $EGREP "$file_magic_regex" > /dev/null; then
  8043.             :
  8044.           else
  8045.             cat <<_LT_EOF 1>&2
  8046.  
  8047. *** Warning: the command libtool uses to detect shared libraries,
  8048. *** $file_magic_cmd, produces output that libtool cannot recognize.
  8049. *** The result is that libtool may fail to recognize shared libraries
  8050. *** as such.  This will affect the creation of libtool libraries that
  8051. *** depend on shared libraries, but programs linked with such libtool
  8052. *** libraries will work regardless of this problem.  Nevertheless, you
  8053. *** may want to report the problem to your system manager and/or to
  8054. *** bug-libtool@gnu.org
  8055.  
  8056. _LT_EOF
  8057.           fi ;;
  8058.         esac
  8059.       fi
  8060.       break
  8061.     fi
  8062.   done
  8063.   IFS="$lt_save_ifs"
  8064.   MAGIC_CMD="$lt_save_MAGIC_CMD"
  8065.   ;;
  8066. esac
  8067. fi
  8068.  
  8069. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  8070. if test -n "$MAGIC_CMD"; then
  8071.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  8072. $as_echo "$MAGIC_CMD" >&6; }
  8073. else
  8074.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8075. $as_echo "no" >&6; }
  8076. fi
  8077.  
  8078.  
  8079.  
  8080.  
  8081.  
  8082. if test -z "$lt_cv_path_MAGIC_CMD"; then
  8083.   if test -n "$ac_tool_prefix"; then
  8084.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  8085. $as_echo_n "checking for file... " >&6; }
  8086. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  8087.   $as_echo_n "(cached) " >&6
  8088. else
  8089.   case $MAGIC_CMD in
  8090. [\\/*] |  ?:[\\/]*)
  8091.   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  8092.   ;;
  8093. *)
  8094.   lt_save_MAGIC_CMD="$MAGIC_CMD"
  8095.   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  8096.   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  8097.   for ac_dir in $ac_dummy; do
  8098.     IFS="$lt_save_ifs"
  8099.     test -z "$ac_dir" && ac_dir=.
  8100.     if test -f $ac_dir/file; then
  8101.       lt_cv_path_MAGIC_CMD="$ac_dir/file"
  8102.       if test -n "$file_magic_test_file"; then
  8103.         case $deplibs_check_method in
  8104.         "file_magic "*)
  8105.           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  8106.           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  8107.           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  8108.             $EGREP "$file_magic_regex" > /dev/null; then
  8109.             :
  8110.           else
  8111.             cat <<_LT_EOF 1>&2
  8112.  
  8113. *** Warning: the command libtool uses to detect shared libraries,
  8114. *** $file_magic_cmd, produces output that libtool cannot recognize.
  8115. *** The result is that libtool may fail to recognize shared libraries
  8116. *** as such.  This will affect the creation of libtool libraries that
  8117. *** depend on shared libraries, but programs linked with such libtool
  8118. *** libraries will work regardless of this problem.  Nevertheless, you
  8119. *** may want to report the problem to your system manager and/or to
  8120. *** bug-libtool@gnu.org
  8121.  
  8122. _LT_EOF
  8123.           fi ;;
  8124.         esac
  8125.       fi
  8126.       break
  8127.     fi
  8128.   done
  8129.   IFS="$lt_save_ifs"
  8130.   MAGIC_CMD="$lt_save_MAGIC_CMD"
  8131.   ;;
  8132. esac
  8133. fi
  8134.  
  8135. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  8136. if test -n "$MAGIC_CMD"; then
  8137.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  8138. $as_echo "$MAGIC_CMD" >&6; }
  8139. else
  8140.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8141. $as_echo "no" >&6; }
  8142. fi
  8143.  
  8144.  
  8145.   else
  8146.     MAGIC_CMD=:
  8147.   fi
  8148. fi
  8149.  
  8150.   fi
  8151.   ;;
  8152. esac
  8153.  
  8154. # Use C for the default configuration in the libtool script
  8155.  
  8156. lt_save_CC="$CC"
  8157. ac_ext=c
  8158. ac_cpp='$CPP $CPPFLAGS'
  8159. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8160. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8161. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8162.  
  8163.  
  8164. # Source file extension for C test sources.
  8165. ac_ext=c
  8166.  
  8167. # Object file extension for compiled C test sources.
  8168. objext=o
  8169. objext=$objext
  8170.  
  8171. # Code to be used in simple compile tests
  8172. lt_simple_compile_test_code="int some_variable = 0;"
  8173.  
  8174. # Code to be used in simple link tests
  8175. lt_simple_link_test_code='int main(){return(0);}'
  8176.  
  8177.  
  8178.  
  8179.  
  8180.  
  8181.  
  8182.  
  8183. # If no C compiler was specified, use CC.
  8184. LTCC=${LTCC-"$CC"}
  8185.  
  8186. # If no C compiler flags were specified, use CFLAGS.
  8187. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  8188.  
  8189. # Allow CC to be a program name with arguments.
  8190. compiler=$CC
  8191.  
  8192. # Save the default compiler, since it gets overwritten when the other
  8193. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  8194. compiler_DEFAULT=$CC
  8195.  
  8196. # save warnings/boilerplate of simple test code
  8197. ac_outfile=conftest.$ac_objext
  8198. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  8199. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8200. _lt_compiler_boilerplate=`cat conftest.err`
  8201. $RM conftest*
  8202.  
  8203. ac_outfile=conftest.$ac_objext
  8204. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  8205. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8206. _lt_linker_boilerplate=`cat conftest.err`
  8207. $RM -r conftest*
  8208.  
  8209.  
  8210. if test -n "$compiler"; then
  8211.  
  8212. lt_prog_compiler_no_builtin_flag=
  8213.  
  8214. if test "$GCC" = yes; then
  8215.   case $cc_basename in
  8216.   nvcc*)
  8217.     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  8218.   *)
  8219.     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  8220.   esac
  8221.  
  8222.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  8223. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  8224. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  8225.   $as_echo_n "(cached) " >&6
  8226. else
  8227.   lt_cv_prog_compiler_rtti_exceptions=no
  8228.    ac_outfile=conftest.$ac_objext
  8229.    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8230.    lt_compiler_flag="-fno-rtti -fno-exceptions"
  8231.    # Insert the option either (1) after the last *FLAGS variable, or
  8232.    # (2) before a word containing "conftest.", or (3) at the end.
  8233.    # Note that $ac_compile itself does not contain backslashes and begins
  8234.    # with a dollar sign (not a hyphen), so the echo should work correctly.
  8235.    # The option is referenced via a variable to avoid confusing sed.
  8236.    lt_compile=`echo "$ac_compile" | $SED \
  8237.    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8238.    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8239.    -e 's:$: $lt_compiler_flag:'`
  8240.    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8241.    (eval "$lt_compile" 2>conftest.err)
  8242.    ac_status=$?
  8243.    cat conftest.err >&5
  8244.    echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8245.    if (exit $ac_status) && test -s "$ac_outfile"; then
  8246.      # The compiler can only warn and ignore the option if not recognized
  8247.      # So say no if there are warnings other than the usual output.
  8248.      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8249.      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8250.      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8251.        lt_cv_prog_compiler_rtti_exceptions=yes
  8252.      fi
  8253.    fi
  8254.    $RM conftest*
  8255.  
  8256. fi
  8257. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  8258. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  8259.  
  8260. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  8261.     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  8262. else
  8263.     :
  8264. fi
  8265.  
  8266. fi
  8267.  
  8268.  
  8269.  
  8270.  
  8271.  
  8272.  
  8273.   lt_prog_compiler_wl=
  8274. lt_prog_compiler_pic=
  8275. lt_prog_compiler_static=
  8276.  
  8277.  
  8278.   if test "$GCC" = yes; then
  8279.     lt_prog_compiler_wl='-Wl,'
  8280.     lt_prog_compiler_static='-static'
  8281.  
  8282.     case $host_os in
  8283.       aix*)
  8284.       # All AIX code is PIC.
  8285.       if test "$host_cpu" = ia64; then
  8286.         # AIX 5 now supports IA64 processor
  8287.         lt_prog_compiler_static='-Bstatic'
  8288.       fi
  8289.       ;;
  8290.  
  8291.     amigaos*)
  8292.       case $host_cpu in
  8293.       powerpc)
  8294.             # see comment about AmigaOS4 .so support
  8295.             lt_prog_compiler_pic='-fPIC'
  8296.         ;;
  8297.       m68k)
  8298.             # FIXME: we need at least 68020 code to build shared libraries, but
  8299.             # adding the `-m68020' flag to GCC prevents building anything better,
  8300.             # like `-m68040'.
  8301.             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  8302.         ;;
  8303.       esac
  8304.       ;;
  8305.  
  8306.     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  8307.       # PIC is the default for these OSes.
  8308.       ;;
  8309.  
  8310.     mingw* | cygwin* | pw32* | os2* | cegcc*)
  8311.       # This hack is so that the source file can tell whether it is being
  8312.       # built for inclusion in a dll (and should export symbols for example).
  8313.       # Although the cygwin gcc ignores -fPIC, still need this for old-style
  8314.       # (--disable-auto-import) libraries
  8315.       lt_prog_compiler_pic='-DDLL_EXPORT'
  8316.       ;;
  8317.  
  8318.     darwin* | rhapsody*)
  8319.       # PIC is the default on this platform
  8320.       # Common symbols not allowed in MH_DYLIB files
  8321.       lt_prog_compiler_pic='-fno-common'
  8322.       ;;
  8323.  
  8324.     haiku*)
  8325.       # PIC is the default for Haiku.
  8326.       # The "-static" flag exists, but is broken.
  8327.       lt_prog_compiler_static=
  8328.       ;;
  8329.  
  8330.     hpux*)
  8331.       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  8332.       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
  8333.       # sets the default TLS model and affects inlining.
  8334.       case $host_cpu in
  8335.       hppa*64*)
  8336.         # +Z the default
  8337.         ;;
  8338.       *)
  8339.         lt_prog_compiler_pic='-fPIC'
  8340.         ;;
  8341.       esac
  8342.       ;;
  8343.  
  8344.     interix[3-9]*)
  8345.       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  8346.       # Instead, we relocate shared libraries at runtime.
  8347.       ;;
  8348.  
  8349.     msdosdjgpp*)
  8350.       # Just because we use GCC doesn't mean we suddenly get shared libraries
  8351.       # on systems that don't support them.
  8352.       lt_prog_compiler_can_build_shared=no
  8353.       enable_shared=no
  8354.       ;;
  8355.  
  8356.     *nto* | *qnx*)
  8357.       # QNX uses GNU C++, but need to define -shared option too, otherwise
  8358.       # it will coredump.
  8359.       lt_prog_compiler_pic='-fPIC -shared'
  8360.       ;;
  8361.  
  8362.     sysv4*MP*)
  8363.       if test -d /usr/nec; then
  8364.         lt_prog_compiler_pic=-Kconform_pic
  8365.       fi
  8366.       ;;
  8367.  
  8368.     *)
  8369.       lt_prog_compiler_pic='-fPIC'
  8370.       ;;
  8371.     esac
  8372.  
  8373.     case $cc_basename in
  8374.     nvcc*) # Cuda Compiler Driver 2.2
  8375.       lt_prog_compiler_wl='-Xlinker '
  8376.       if test -n "$lt_prog_compiler_pic"; then
  8377.         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  8378.       fi
  8379.       ;;
  8380.     esac
  8381.   else
  8382.     # PORTME Check for flag to pass linker flags through the system compiler.
  8383.     case $host_os in
  8384.     aix*)
  8385.       lt_prog_compiler_wl='-Wl,'
  8386.       if test "$host_cpu" = ia64; then
  8387.         # AIX 5 now supports IA64 processor
  8388.         lt_prog_compiler_static='-Bstatic'
  8389.       else
  8390.         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  8391.       fi
  8392.       ;;
  8393.  
  8394.     mingw* | cygwin* | pw32* | os2* | cegcc*)
  8395.       # This hack is so that the source file can tell whether it is being
  8396.       # built for inclusion in a dll (and should export symbols for example).
  8397.       lt_prog_compiler_pic='-DDLL_EXPORT'
  8398.       ;;
  8399.  
  8400.     hpux9* | hpux10* | hpux11*)
  8401.       lt_prog_compiler_wl='-Wl,'
  8402.       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  8403.       # not for PA HP-UX.
  8404.       case $host_cpu in
  8405.       hppa*64*|ia64*)
  8406.         # +Z the default
  8407.         ;;
  8408.       *)
  8409.         lt_prog_compiler_pic='+Z'
  8410.         ;;
  8411.       esac
  8412.       # Is there a better lt_prog_compiler_static that works with the bundled CC?
  8413.       lt_prog_compiler_static='${wl}-a ${wl}archive'
  8414.       ;;
  8415.  
  8416.     irix5* | irix6* | nonstopux*)
  8417.       lt_prog_compiler_wl='-Wl,'
  8418.       # PIC (with -KPIC) is the default.
  8419.       lt_prog_compiler_static='-non_shared'
  8420.       ;;
  8421.  
  8422.     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  8423.       case $cc_basename in
  8424.       # old Intel for x86_64 which still supported -KPIC.
  8425.       ecc*)
  8426.         lt_prog_compiler_wl='-Wl,'
  8427.         lt_prog_compiler_pic='-KPIC'
  8428.         lt_prog_compiler_static='-static'
  8429.         ;;
  8430.       # icc used to be incompatible with GCC.
  8431.       # ICC 10 doesn't accept -KPIC any more.
  8432.       icc* | ifort*)
  8433.         lt_prog_compiler_wl='-Wl,'
  8434.         lt_prog_compiler_pic='-fPIC'
  8435.         lt_prog_compiler_static='-static'
  8436.         ;;
  8437.       # Lahey Fortran 8.1.
  8438.       lf95*)
  8439.         lt_prog_compiler_wl='-Wl,'
  8440.         lt_prog_compiler_pic='--shared'
  8441.         lt_prog_compiler_static='--static'
  8442.         ;;
  8443.       nagfor*)
  8444.         # NAG Fortran compiler
  8445.         lt_prog_compiler_wl='-Wl,-Wl,,'
  8446.         lt_prog_compiler_pic='-PIC'
  8447.         lt_prog_compiler_static='-Bstatic'
  8448.         ;;
  8449.       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  8450.         # Portland Group compilers (*not* the Pentium gcc compiler,
  8451.         # which looks to be a dead project)
  8452.         lt_prog_compiler_wl='-Wl,'
  8453.         lt_prog_compiler_pic='-fpic'
  8454.         lt_prog_compiler_static='-Bstatic'
  8455.         ;;
  8456.       ccc*)
  8457.         lt_prog_compiler_wl='-Wl,'
  8458.         # All Alpha code is PIC.
  8459.         lt_prog_compiler_static='-non_shared'
  8460.         ;;
  8461.       xl* | bgxl* | bgf* | mpixl*)
  8462.         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  8463.         lt_prog_compiler_wl='-Wl,'
  8464.         lt_prog_compiler_pic='-qpic'
  8465.         lt_prog_compiler_static='-qstaticlink'
  8466.         ;;
  8467.       *)
  8468.         case `$CC -V 2>&1 | sed 5q` in
  8469.         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  8470.           # Sun Fortran 8.3 passes all unrecognized flags to the linker
  8471.           lt_prog_compiler_pic='-KPIC'
  8472.           lt_prog_compiler_static='-Bstatic'
  8473.           lt_prog_compiler_wl=''
  8474.           ;;
  8475.         *Sun\ F* | *Sun*Fortran*)
  8476.           lt_prog_compiler_pic='-KPIC'
  8477.           lt_prog_compiler_static='-Bstatic'
  8478.           lt_prog_compiler_wl='-Qoption ld '
  8479.           ;;
  8480.         *Sun\ C*)
  8481.           # Sun C 5.9
  8482.           lt_prog_compiler_pic='-KPIC'
  8483.           lt_prog_compiler_static='-Bstatic'
  8484.           lt_prog_compiler_wl='-Wl,'
  8485.           ;;
  8486.         *Intel*\ [CF]*Compiler*)
  8487.           lt_prog_compiler_wl='-Wl,'
  8488.           lt_prog_compiler_pic='-fPIC'
  8489.           lt_prog_compiler_static='-static'
  8490.           ;;
  8491.         *Portland\ Group*)
  8492.           lt_prog_compiler_wl='-Wl,'
  8493.           lt_prog_compiler_pic='-fpic'
  8494.           lt_prog_compiler_static='-Bstatic'
  8495.           ;;
  8496.         esac
  8497.         ;;
  8498.       esac
  8499.       ;;
  8500.  
  8501.     newsos6)
  8502.       lt_prog_compiler_pic='-KPIC'
  8503.       lt_prog_compiler_static='-Bstatic'
  8504.       ;;
  8505.  
  8506.     *nto* | *qnx*)
  8507.       # QNX uses GNU C++, but need to define -shared option too, otherwise
  8508.       # it will coredump.
  8509.       lt_prog_compiler_pic='-fPIC -shared'
  8510.       ;;
  8511.  
  8512.     osf3* | osf4* | osf5*)
  8513.       lt_prog_compiler_wl='-Wl,'
  8514.       # All OSF/1 code is PIC.
  8515.       lt_prog_compiler_static='-non_shared'
  8516.       ;;
  8517.  
  8518.     rdos*)
  8519.       lt_prog_compiler_static='-non_shared'
  8520.       ;;
  8521.  
  8522.     solaris*)
  8523.       lt_prog_compiler_pic='-KPIC'
  8524.       lt_prog_compiler_static='-Bstatic'
  8525.       case $cc_basename in
  8526.       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  8527.         lt_prog_compiler_wl='-Qoption ld ';;
  8528.       *)
  8529.         lt_prog_compiler_wl='-Wl,';;
  8530.       esac
  8531.       ;;
  8532.  
  8533.     sunos4*)
  8534.       lt_prog_compiler_wl='-Qoption ld '
  8535.       lt_prog_compiler_pic='-PIC'
  8536.       lt_prog_compiler_static='-Bstatic'
  8537.       ;;
  8538.  
  8539.     sysv4 | sysv4.2uw2* | sysv4.3*)
  8540.       lt_prog_compiler_wl='-Wl,'
  8541.       lt_prog_compiler_pic='-KPIC'
  8542.       lt_prog_compiler_static='-Bstatic'
  8543.       ;;
  8544.  
  8545.     sysv4*MP*)
  8546.       if test -d /usr/nec ;then
  8547.         lt_prog_compiler_pic='-Kconform_pic'
  8548.         lt_prog_compiler_static='-Bstatic'
  8549.       fi
  8550.       ;;
  8551.  
  8552.     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  8553.       lt_prog_compiler_wl='-Wl,'
  8554.       lt_prog_compiler_pic='-KPIC'
  8555.       lt_prog_compiler_static='-Bstatic'
  8556.       ;;
  8557.  
  8558.     unicos*)
  8559.       lt_prog_compiler_wl='-Wl,'
  8560.       lt_prog_compiler_can_build_shared=no
  8561.       ;;
  8562.  
  8563.     uts4*)
  8564.       lt_prog_compiler_pic='-pic'
  8565.       lt_prog_compiler_static='-Bstatic'
  8566.       ;;
  8567.  
  8568.     *)
  8569.       lt_prog_compiler_can_build_shared=no
  8570.       ;;
  8571.     esac
  8572.   fi
  8573.  
  8574. case $host_os in
  8575.   # For platforms which do not support PIC, -DPIC is meaningless:
  8576.   *djgpp*)
  8577.     lt_prog_compiler_pic=
  8578.     ;;
  8579.   *)
  8580.     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  8581.     ;;
  8582. esac
  8583.  
  8584. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  8585. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  8586. if ${lt_cv_prog_compiler_pic+:} false; then :
  8587.   $as_echo_n "(cached) " >&6
  8588. else
  8589.   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  8590. fi
  8591. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  8592. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  8593. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  8594.  
  8595. #
  8596. # Check to make sure the PIC flag actually works.
  8597. #
  8598. if test -n "$lt_prog_compiler_pic"; then
  8599.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  8600. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  8601. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  8602.   $as_echo_n "(cached) " >&6
  8603. else
  8604.   lt_cv_prog_compiler_pic_works=no
  8605.    ac_outfile=conftest.$ac_objext
  8606.    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8607.    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  8608.    # Insert the option either (1) after the last *FLAGS variable, or
  8609.    # (2) before a word containing "conftest.", or (3) at the end.
  8610.    # Note that $ac_compile itself does not contain backslashes and begins
  8611.    # with a dollar sign (not a hyphen), so the echo should work correctly.
  8612.    # The option is referenced via a variable to avoid confusing sed.
  8613.    lt_compile=`echo "$ac_compile" | $SED \
  8614.    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8615.    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8616.    -e 's:$: $lt_compiler_flag:'`
  8617.    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8618.    (eval "$lt_compile" 2>conftest.err)
  8619.    ac_status=$?
  8620.    cat conftest.err >&5
  8621.    echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8622.    if (exit $ac_status) && test -s "$ac_outfile"; then
  8623.      # The compiler can only warn and ignore the option if not recognized
  8624.      # So say no if there are warnings other than the usual output.
  8625.      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8626.      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8627.      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8628.        lt_cv_prog_compiler_pic_works=yes
  8629.      fi
  8630.    fi
  8631.    $RM conftest*
  8632.  
  8633. fi
  8634. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  8635. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  8636.  
  8637. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  8638.     case $lt_prog_compiler_pic in
  8639.      "" | " "*) ;;
  8640.      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  8641.      esac
  8642. else
  8643.     lt_prog_compiler_pic=
  8644.      lt_prog_compiler_can_build_shared=no
  8645. fi
  8646.  
  8647. fi
  8648.  
  8649.  
  8650.  
  8651.  
  8652.  
  8653.  
  8654.  
  8655.  
  8656.  
  8657.  
  8658.  
  8659. #
  8660. # Check to make sure the static flag actually works.
  8661. #
  8662. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  8663. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  8664. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  8665. if ${lt_cv_prog_compiler_static_works+:} false; then :
  8666.   $as_echo_n "(cached) " >&6
  8667. else
  8668.   lt_cv_prog_compiler_static_works=no
  8669.    save_LDFLAGS="$LDFLAGS"
  8670.    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  8671.    echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8672.    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8673.      # The linker can only warn and ignore the option if not recognized
  8674.      # So say no if there are warnings
  8675.      if test -s conftest.err; then
  8676.        # Append any errors to the config.log.
  8677.        cat conftest.err 1>&5
  8678.        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8679.        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8680.        if diff conftest.exp conftest.er2 >/dev/null; then
  8681.          lt_cv_prog_compiler_static_works=yes
  8682.        fi
  8683.      else
  8684.        lt_cv_prog_compiler_static_works=yes
  8685.      fi
  8686.    fi
  8687.    $RM -r conftest*
  8688.    LDFLAGS="$save_LDFLAGS"
  8689.  
  8690. fi
  8691. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  8692. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  8693.  
  8694. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  8695.     :
  8696. else
  8697.     lt_prog_compiler_static=
  8698. fi
  8699.  
  8700.  
  8701.  
  8702.  
  8703.  
  8704.  
  8705.  
  8706.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8707. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8708. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8709.   $as_echo_n "(cached) " >&6
  8710. else
  8711.   lt_cv_prog_compiler_c_o=no
  8712.    $RM -r conftest 2>/dev/null
  8713.    mkdir conftest
  8714.    cd conftest
  8715.    mkdir out
  8716.    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8717.  
  8718.    lt_compiler_flag="-o out/conftest2.$ac_objext"
  8719.    # Insert the option either (1) after the last *FLAGS variable, or
  8720.    # (2) before a word containing "conftest.", or (3) at the end.
  8721.    # Note that $ac_compile itself does not contain backslashes and begins
  8722.    # with a dollar sign (not a hyphen), so the echo should work correctly.
  8723.    lt_compile=`echo "$ac_compile" | $SED \
  8724.    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8725.    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8726.    -e 's:$: $lt_compiler_flag:'`
  8727.    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8728.    (eval "$lt_compile" 2>out/conftest.err)
  8729.    ac_status=$?
  8730.    cat out/conftest.err >&5
  8731.    echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8732.    if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8733.    then
  8734.      # The compiler can only warn and ignore the option if not recognized
  8735.      # So say no if there are warnings
  8736.      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8737.      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8738.      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8739.        lt_cv_prog_compiler_c_o=yes
  8740.      fi
  8741.    fi
  8742.    chmod u+w . 2>&5
  8743.    $RM conftest*
  8744.    # SGI C++ compiler will create directory out/ii_files/ for
  8745.    # template instantiation
  8746.    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8747.    $RM out/* && rmdir out
  8748.    cd ..
  8749.    $RM -r conftest
  8750.    $RM conftest*
  8751.  
  8752. fi
  8753. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8754. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8755.  
  8756.  
  8757.  
  8758.  
  8759.  
  8760.  
  8761.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8762. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8763. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8764.   $as_echo_n "(cached) " >&6
  8765. else
  8766.   lt_cv_prog_compiler_c_o=no
  8767.    $RM -r conftest 2>/dev/null
  8768.    mkdir conftest
  8769.    cd conftest
  8770.    mkdir out
  8771.    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8772.  
  8773.    lt_compiler_flag="-o out/conftest2.$ac_objext"
  8774.    # Insert the option either (1) after the last *FLAGS variable, or
  8775.    # (2) before a word containing "conftest.", or (3) at the end.
  8776.    # Note that $ac_compile itself does not contain backslashes and begins
  8777.    # with a dollar sign (not a hyphen), so the echo should work correctly.
  8778.    lt_compile=`echo "$ac_compile" | $SED \
  8779.    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8780.    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8781.    -e 's:$: $lt_compiler_flag:'`
  8782.    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8783.    (eval "$lt_compile" 2>out/conftest.err)
  8784.    ac_status=$?
  8785.    cat out/conftest.err >&5
  8786.    echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8787.    if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8788.    then
  8789.      # The compiler can only warn and ignore the option if not recognized
  8790.      # So say no if there are warnings
  8791.      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8792.      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8793.      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8794.        lt_cv_prog_compiler_c_o=yes
  8795.      fi
  8796.    fi
  8797.    chmod u+w . 2>&5
  8798.    $RM conftest*
  8799.    # SGI C++ compiler will create directory out/ii_files/ for
  8800.    # template instantiation
  8801.    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8802.    $RM out/* && rmdir out
  8803.    cd ..
  8804.    $RM -r conftest
  8805.    $RM conftest*
  8806.  
  8807. fi
  8808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8809. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8810.  
  8811.  
  8812.  
  8813.  
  8814. hard_links="nottested"
  8815. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  8816.   # do not overwrite the value of need_locks provided by the user
  8817.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8818. $as_echo_n "checking if we can lock with hard links... " >&6; }
  8819.   hard_links=yes
  8820.   $RM conftest*
  8821.   ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8822.   touch conftest.a
  8823.   ln conftest.a conftest.b 2>&5 || hard_links=no
  8824.   ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8825.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8826. $as_echo "$hard_links" >&6; }
  8827.   if test "$hard_links" = no; then
  8828.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  8829. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  8830.     need_locks=warn
  8831.   fi
  8832. else
  8833.   need_locks=no
  8834. fi
  8835.  
  8836.  
  8837.  
  8838.  
  8839.  
  8840.  
  8841.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8842. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8843.  
  8844.   runpath_var=
  8845.   allow_undefined_flag=
  8846.   always_export_symbols=no
  8847.   archive_cmds=
  8848.   archive_expsym_cmds=
  8849.   compiler_needs_object=no
  8850.   enable_shared_with_static_runtimes=no
  8851.   export_dynamic_flag_spec=
  8852.   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8853.   hardcode_automatic=no
  8854.   hardcode_direct=no
  8855.   hardcode_direct_absolute=no
  8856.   hardcode_libdir_flag_spec=
  8857.   hardcode_libdir_separator=
  8858.   hardcode_minus_L=no
  8859.   hardcode_shlibpath_var=unsupported
  8860.   inherit_rpath=no
  8861.   link_all_deplibs=unknown
  8862.   module_cmds=
  8863.   module_expsym_cmds=
  8864.   old_archive_from_new_cmds=
  8865.   old_archive_from_expsyms_cmds=
  8866.   thread_safe_flag_spec=
  8867.   whole_archive_flag_spec=
  8868.   # include_expsyms should be a list of space-separated symbols to be *always*
  8869.   # included in the symbol list
  8870.   include_expsyms=
  8871.   # exclude_expsyms can be an extended regexp of symbols to exclude
  8872.   # it will be wrapped by ` (' and `)$', so one must not match beginning or
  8873.   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  8874.   # as well as any symbol that contains `d'.
  8875.   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8876.   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8877.   # platforms (ab)use it in PIC code, but their linkers get confused if
  8878.   # the symbol is explicitly referenced.  Since portable code cannot
  8879.   # rely on this symbol name, it's probably fine to never include it in
  8880.   # preloaded symbol tables.
  8881.   # Exclude shared library initialization/finalization symbols.
  8882.   extract_expsyms_cmds=
  8883.  
  8884.   case $host_os in
  8885.   cygwin* | mingw* | pw32* | cegcc*)
  8886.     # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8887.     # When not using gcc, we currently assume that we are using
  8888.     # Microsoft Visual C++.
  8889.     if test "$GCC" != yes; then
  8890.       with_gnu_ld=no
  8891.     fi
  8892.     ;;
  8893.   interix*)
  8894.     # we just hope/assume this is gcc and not c89 (= MSVC++)
  8895.     with_gnu_ld=yes
  8896.     ;;
  8897.   openbsd*)
  8898.     with_gnu_ld=no
  8899.     ;;
  8900.   linux* | k*bsd*-gnu | gnu*)
  8901.     link_all_deplibs=no
  8902.     ;;
  8903.   esac
  8904.  
  8905.   ld_shlibs=yes
  8906.  
  8907.   # On some targets, GNU ld is compatible enough with the native linker
  8908.   # that we're better off using the native interface for both.
  8909.   lt_use_gnu_ld_interface=no
  8910.   if test "$with_gnu_ld" = yes; then
  8911.     case $host_os in
  8912.       aix*)
  8913.         # The AIX port of GNU ld has always aspired to compatibility
  8914.         # with the native linker.  However, as the warning in the GNU ld
  8915.         # block says, versions before 2.19.5* couldn't really create working
  8916.         # shared libraries, regardless of the interface used.
  8917.         case `$LD -v 2>&1` in
  8918.           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8919.           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8920.           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8921.           *)
  8922.             lt_use_gnu_ld_interface=yes
  8923.             ;;
  8924.         esac
  8925.         ;;
  8926.       *)
  8927.         lt_use_gnu_ld_interface=yes
  8928.         ;;
  8929.     esac
  8930.   fi
  8931.  
  8932.   if test "$lt_use_gnu_ld_interface" = yes; then
  8933.     # If archive_cmds runs LD, not CC, wlarc should be empty
  8934.     wlarc='${wl}'
  8935.  
  8936.     # Set some defaults for GNU ld with shared library support. These
  8937.     # are reset later if shared libraries are not supported. Putting them
  8938.     # here allows them to be overridden if necessary.
  8939.     runpath_var=LD_RUN_PATH
  8940.     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8941.     export_dynamic_flag_spec='${wl}--export-dynamic'
  8942.     # ancient GNU ld didn't support --whole-archive et. al.
  8943.     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8944.       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  8945.     else
  8946.       whole_archive_flag_spec=
  8947.     fi
  8948.     supports_anon_versioning=no
  8949.     case `$LD -v 2>&1` in
  8950.       *GNU\ gold*) supports_anon_versioning=yes ;;
  8951.       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8952.       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8953.       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8954.       *\ 2.11.*) ;; # other 2.11 versions
  8955.       *) supports_anon_versioning=yes ;;
  8956.     esac
  8957.  
  8958.     # See if GNU ld supports shared libraries.
  8959.     case $host_os in
  8960.     aix[3-9]*)
  8961.       # On AIX/PPC, the GNU linker is very broken
  8962.       if test "$host_cpu" != ia64; then
  8963.         ld_shlibs=no
  8964.         cat <<_LT_EOF 1>&2
  8965.  
  8966. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8967. *** to be unable to reliably create shared libraries on AIX.
  8968. *** Therefore, libtool is disabling shared libraries support.  If you
  8969. *** really care for shared libraries, you may want to install binutils
  8970. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8971. *** You will then need to restart the configuration process.
  8972.  
  8973. _LT_EOF
  8974.       fi
  8975.       ;;
  8976.  
  8977.     amigaos*)
  8978.       case $host_cpu in
  8979.       powerpc)
  8980.             # see comment about AmigaOS4 .so support
  8981.             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8982.             archive_expsym_cmds=''
  8983.         ;;
  8984.       m68k)
  8985.             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)'
  8986.             hardcode_libdir_flag_spec='-L$libdir'
  8987.             hardcode_minus_L=yes
  8988.         ;;
  8989.       esac
  8990.       ;;
  8991.  
  8992.     beos*)
  8993.       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8994.         allow_undefined_flag=unsupported
  8995.         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8996.         # support --undefined.  This deserves some investigation.  FIXME
  8997.         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8998.       else
  8999.         ld_shlibs=no
  9000.       fi
  9001.       ;;
  9002.  
  9003.     cygwin* | mingw* | pw32* | cegcc*)
  9004.       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  9005.       # as there is no search path for DLLs.
  9006.       hardcode_libdir_flag_spec='-L$libdir'
  9007.       export_dynamic_flag_spec='${wl}--export-all-symbols'
  9008.       allow_undefined_flag=unsupported
  9009.       always_export_symbols=no
  9010.       enable_shared_with_static_runtimes=yes
  9011.       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'
  9012.       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  9013.  
  9014.       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  9015.         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  9016.         # If the export-symbols file already is a .def file (1st line
  9017.         # is EXPORTS), use it as is; otherwise, prepend...
  9018.         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  9019.           cp $export_symbols $output_objdir/$soname.def;
  9020.         else
  9021.           echo EXPORTS > $output_objdir/$soname.def;
  9022.           cat $export_symbols >> $output_objdir/$soname.def;
  9023.         fi~
  9024.         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  9025.       else
  9026.         ld_shlibs=no
  9027.       fi
  9028.       ;;
  9029.  
  9030.     haiku*)
  9031.       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9032.       link_all_deplibs=yes
  9033.       ;;
  9034.  
  9035.     interix[3-9]*)
  9036.       hardcode_direct=no
  9037.       hardcode_shlibpath_var=no
  9038.       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  9039.       export_dynamic_flag_spec='${wl}-E'
  9040.       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  9041.       # Instead, shared libraries are loaded at an image base (0x10000000 by
  9042.       # default) and relocated if they conflict, which is a slow very memory
  9043.       # consuming and fragmenting process.  To avoid this, we pick a random,
  9044.       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  9045.       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
  9046.       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  9047.       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'
  9048.       ;;
  9049.  
  9050.     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  9051.       tmp_diet=no
  9052.       if test "$host_os" = linux-dietlibc; then
  9053.         case $cc_basename in
  9054.           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
  9055.         esac
  9056.       fi
  9057.       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  9058.          && test "$tmp_diet" = no
  9059.       then
  9060.         tmp_addflag=' $pic_flag'
  9061.         tmp_sharedflag='-shared'
  9062.         case $cc_basename,$host_cpu in
  9063.         pgcc*)                          # Portland Group C compiler
  9064.           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'
  9065.           tmp_addflag=' $pic_flag'
  9066.           ;;
  9067.         pgf77* | pgf90* | pgf95* | pgfortran*)
  9068.                                         # Portland Group f77 and f90 compilers
  9069.           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'
  9070.           tmp_addflag=' $pic_flag -Mnomain' ;;
  9071.         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
  9072.           tmp_addflag=' -i_dynamic' ;;
  9073.         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
  9074.           tmp_addflag=' -i_dynamic -nofor_main' ;;
  9075.         ifc* | ifort*)                  # Intel Fortran compiler
  9076.           tmp_addflag=' -nofor_main' ;;
  9077.         lf95*)                          # Lahey Fortran 8.1
  9078.           whole_archive_flag_spec=
  9079.           tmp_sharedflag='--shared' ;;
  9080.         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  9081.           tmp_sharedflag='-qmkshrobj'
  9082.           tmp_addflag= ;;
  9083.         nvcc*)  # Cuda Compiler Driver 2.2
  9084.           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'
  9085.           compiler_needs_object=yes
  9086.           ;;
  9087.         esac
  9088.         case `$CC -V 2>&1 | sed 5q` in
  9089.         *Sun\ C*)                       # Sun C 5.9
  9090.           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'
  9091.           compiler_needs_object=yes
  9092.           tmp_sharedflag='-G' ;;
  9093.         *Sun\ F*)                       # Sun Fortran 8.3
  9094.           tmp_sharedflag='-G' ;;
  9095.         esac
  9096.         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9097.  
  9098.         if test "x$supports_anon_versioning" = xyes; then
  9099.           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  9100.             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  9101.             echo "local: *; };" >> $output_objdir/$libname.ver~
  9102.             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  9103.         fi
  9104.  
  9105.         case $cc_basename in
  9106.         xlf* | bgf* | bgxlf* | mpixlf*)
  9107.           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  9108.           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  9109.           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9110.           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  9111.           if test "x$supports_anon_versioning" = xyes; then
  9112.             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  9113.               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  9114.               echo "local: *; };" >> $output_objdir/$libname.ver~
  9115.               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  9116.           fi
  9117.           ;;
  9118.         esac
  9119.       else
  9120.         ld_shlibs=no
  9121.       fi
  9122.       ;;
  9123.  
  9124.     netbsd* | netbsdelf*-gnu)
  9125.       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9126.         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  9127.         wlarc=
  9128.       else
  9129.         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9130.         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  9131.       fi
  9132.       ;;
  9133.  
  9134.     solaris*)
  9135.       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  9136.         ld_shlibs=no
  9137.         cat <<_LT_EOF 1>&2
  9138.  
  9139. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  9140. *** create shared libraries on Solaris systems.  Therefore, libtool
  9141. *** is disabling shared libraries support.  We urge you to upgrade GNU
  9142. *** binutils to release 2.9.1 or newer.  Another option is to modify
  9143. *** your PATH or compiler configuration so that the native linker is
  9144. *** used, and then restart.
  9145.  
  9146. _LT_EOF
  9147.       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9148.         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9149.         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  9150.       else
  9151.         ld_shlibs=no
  9152.       fi
  9153.       ;;
  9154.  
  9155.     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  9156.       case `$LD -v 2>&1` in
  9157.         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  9158.         ld_shlibs=no
  9159.         cat <<_LT_EOF 1>&2
  9160.  
  9161. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  9162. *** reliably create shared libraries on SCO systems.  Therefore, libtool
  9163. *** is disabling shared libraries support.  We urge you to upgrade GNU
  9164. *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
  9165. *** your PATH or compiler configuration so that the native linker is
  9166. *** used, and then restart.
  9167.  
  9168. _LT_EOF
  9169.         ;;
  9170.         *)
  9171.           # For security reasons, it is highly recommended that you always
  9172.           # use absolute paths for naming shared libraries, and exclude the
  9173.           # DT_RUNPATH tag from executables and libraries.  But doing so
  9174.           # requires that you compile everything twice, which is a pain.
  9175.           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9176.             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9177.             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9178.             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  9179.           else
  9180.             ld_shlibs=no
  9181.           fi
  9182.         ;;
  9183.       esac
  9184.       ;;
  9185.  
  9186.     sunos4*)
  9187.       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9188.       wlarc=
  9189.       hardcode_direct=yes
  9190.       hardcode_shlibpath_var=no
  9191.       ;;
  9192.  
  9193.     *)
  9194.       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9195.         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9196.         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  9197.       else
  9198.         ld_shlibs=no
  9199.       fi
  9200.       ;;
  9201.     esac
  9202.  
  9203.     if test "$ld_shlibs" = no; then
  9204.       runpath_var=
  9205.       hardcode_libdir_flag_spec=
  9206.       export_dynamic_flag_spec=
  9207.       whole_archive_flag_spec=
  9208.     fi
  9209.   else
  9210.     # PORTME fill in a description of your system's linker (not GNU ld)
  9211.     case $host_os in
  9212.     aix3*)
  9213.       allow_undefined_flag=unsupported
  9214.       always_export_symbols=yes
  9215.       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'
  9216.       # Note: this linker hardcodes the directories in LIBPATH if there
  9217.       # are no directories specified by -L.
  9218.       hardcode_minus_L=yes
  9219.       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  9220.         # Neither direct hardcoding nor static linking is supported with a
  9221.         # broken collect2.
  9222.         hardcode_direct=unsupported
  9223.       fi
  9224.       ;;
  9225.  
  9226.     aix[4-9]*)
  9227.       if test "$host_cpu" = ia64; then
  9228.         # On IA64, the linker does run time linking by default, so we don't
  9229.         # have to do anything special.
  9230.         aix_use_runtimelinking=no
  9231.         exp_sym_flag='-Bexport'
  9232.         no_entry_flag=""
  9233.       else
  9234.         # If we're using GNU nm, then we don't want the "-C" option.
  9235.         # -C means demangle to AIX nm, but means don't demangle with GNU nm
  9236.         # Also, AIX nm treats weak defined symbols like other global
  9237.         # defined symbols, whereas GNU nm marks them as "W".
  9238.         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  9239.           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'
  9240.         else
  9241.           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'
  9242.         fi
  9243.         aix_use_runtimelinking=no
  9244.  
  9245.         # Test if we are trying to use run time linking or normal
  9246.         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  9247.         # need to do runtime linking.
  9248.         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  9249.           for ld_flag in $LDFLAGS; do
  9250.           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  9251.             aix_use_runtimelinking=yes
  9252.             break
  9253.           fi
  9254.           done
  9255.           ;;
  9256.         esac
  9257.  
  9258.         exp_sym_flag='-bexport'
  9259.         no_entry_flag='-bnoentry'
  9260.       fi
  9261.  
  9262.       # When large executables or shared objects are built, AIX ld can
  9263.       # have problems creating the table of contents.  If linking a library
  9264.       # or program results in "error TOC overflow" add -mminimal-toc to
  9265.       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
  9266.       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  9267.  
  9268.       archive_cmds=''
  9269.       hardcode_direct=yes
  9270.       hardcode_direct_absolute=yes
  9271.       hardcode_libdir_separator=':'
  9272.       link_all_deplibs=yes
  9273.       file_list_spec='${wl}-f,'
  9274.  
  9275.       if test "$GCC" = yes; then
  9276.         case $host_os in aix4.[012]|aix4.[012].*)
  9277.         # We only want to do this on AIX 4.2 and lower, the check
  9278.         # below for broken collect2 doesn't work under 4.3+
  9279.           collect2name=`${CC} -print-prog-name=collect2`
  9280.           if test -f "$collect2name" &&
  9281.            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  9282.           then
  9283.           # We have reworked collect2
  9284.           :
  9285.           else
  9286.           # We have old collect2
  9287.           hardcode_direct=unsupported
  9288.           # It fails to find uninstalled libraries when the uninstalled
  9289.           # path is not listed in the libpath.  Setting hardcode_minus_L
  9290.           # to unsupported forces relinking
  9291.           hardcode_minus_L=yes
  9292.           hardcode_libdir_flag_spec='-L$libdir'
  9293.           hardcode_libdir_separator=
  9294.           fi
  9295.           ;;
  9296.         esac
  9297.         shared_flag='-shared'
  9298.         if test "$aix_use_runtimelinking" = yes; then
  9299.           shared_flag="$shared_flag "'${wl}-G'
  9300.         fi
  9301.         link_all_deplibs=no
  9302.       else
  9303.         # not using gcc
  9304.         if test "$host_cpu" = ia64; then
  9305.         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  9306.         # chokes on -Wl,-G. The following line is correct:
  9307.           shared_flag='-G'
  9308.         else
  9309.           if test "$aix_use_runtimelinking" = yes; then
  9310.             shared_flag='${wl}-G'
  9311.           else
  9312.             shared_flag='${wl}-bM:SRE'
  9313.           fi
  9314.         fi
  9315.       fi
  9316.  
  9317.       export_dynamic_flag_spec='${wl}-bexpall'
  9318.       # It seems that -bexpall does not export symbols beginning with
  9319.       # underscore (_), so it is better to generate a list of symbols to export.
  9320.       always_export_symbols=yes
  9321.       if test "$aix_use_runtimelinking" = yes; then
  9322.         # Warning - without using the other runtime loading flags (-brtl),
  9323.         # -berok will link without error, but may produce a broken library.
  9324.         allow_undefined_flag='-berok'
  9325.         # Determine the default libpath from the value encoded in an
  9326.         # empty executable.
  9327.         if test "${lt_cv_aix_libpath+set}" = set; then
  9328.   aix_libpath=$lt_cv_aix_libpath
  9329. else
  9330.   if ${lt_cv_aix_libpath_+:} false; then :
  9331.   $as_echo_n "(cached) " >&6
  9332. else
  9333.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9334. /* end confdefs.h.  */
  9335.  
  9336. int
  9337. main ()
  9338. {
  9339.  
  9340.   ;
  9341.   return 0;
  9342. }
  9343. _ACEOF
  9344. if ac_fn_c_try_link "$LINENO"; then :
  9345.  
  9346.   lt_aix_libpath_sed='
  9347.       /Import File Strings/,/^$/ {
  9348.           /^0/ {
  9349.               s/^0  *\([^ ]*\) *$/\1/
  9350.               p
  9351.           }
  9352.       }'
  9353.   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9354.   # Check for a 64-bit object if we didn't find anything.
  9355.   if test -z "$lt_cv_aix_libpath_"; then
  9356.     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9357.   fi
  9358. fi
  9359. rm -f core conftest.err conftest.$ac_objext \
  9360.     conftest$ac_exeext conftest.$ac_ext
  9361.   if test -z "$lt_cv_aix_libpath_"; then
  9362.     lt_cv_aix_libpath_="/usr/lib:/lib"
  9363.   fi
  9364.  
  9365. fi
  9366.  
  9367.   aix_libpath=$lt_cv_aix_libpath_
  9368. fi
  9369.  
  9370.         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  9371.         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"
  9372.       else
  9373.         if test "$host_cpu" = ia64; then
  9374.           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  9375.           allow_undefined_flag="-z nodefs"
  9376.           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"
  9377.         else
  9378.          # Determine the default libpath from the value encoded in an
  9379.          # empty executable.
  9380.          if test "${lt_cv_aix_libpath+set}" = set; then
  9381.   aix_libpath=$lt_cv_aix_libpath
  9382. else
  9383.   if ${lt_cv_aix_libpath_+:} false; then :
  9384.   $as_echo_n "(cached) " >&6
  9385. else
  9386.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9387. /* end confdefs.h.  */
  9388.  
  9389. int
  9390. main ()
  9391. {
  9392.  
  9393.   ;
  9394.   return 0;
  9395. }
  9396. _ACEOF
  9397. if ac_fn_c_try_link "$LINENO"; then :
  9398.  
  9399.   lt_aix_libpath_sed='
  9400.       /Import File Strings/,/^$/ {
  9401.           /^0/ {
  9402.               s/^0  *\([^ ]*\) *$/\1/
  9403.               p
  9404.           }
  9405.       }'
  9406.   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9407.   # Check for a 64-bit object if we didn't find anything.
  9408.   if test -z "$lt_cv_aix_libpath_"; then
  9409.     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9410.   fi
  9411. fi
  9412. rm -f core conftest.err conftest.$ac_objext \
  9413.     conftest$ac_exeext conftest.$ac_ext
  9414.   if test -z "$lt_cv_aix_libpath_"; then
  9415.     lt_cv_aix_libpath_="/usr/lib:/lib"
  9416.   fi
  9417.  
  9418. fi
  9419.  
  9420.   aix_libpath=$lt_cv_aix_libpath_
  9421. fi
  9422.  
  9423.          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  9424.           # Warning - without using the other run time loading flags,
  9425.           # -berok will link without error, but may produce a broken library.
  9426.           no_undefined_flag=' ${wl}-bernotok'
  9427.           allow_undefined_flag=' ${wl}-berok'
  9428.           if test "$with_gnu_ld" = yes; then
  9429.             # We only use this code for GNU lds that support --whole-archive.
  9430.             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  9431.           else
  9432.             # Exported symbols can be pulled into shared objects from archives
  9433.             whole_archive_flag_spec='$convenience'
  9434.           fi
  9435.           archive_cmds_need_lc=yes
  9436.           # This is similar to how AIX traditionally builds its shared libraries.
  9437.           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'
  9438.         fi
  9439.       fi
  9440.       ;;
  9441.  
  9442.     amigaos*)
  9443.       case $host_cpu in
  9444.       powerpc)
  9445.             # see comment about AmigaOS4 .so support
  9446.             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9447.             archive_expsym_cmds=''
  9448.         ;;
  9449.       m68k)
  9450.             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)'
  9451.             hardcode_libdir_flag_spec='-L$libdir'
  9452.             hardcode_minus_L=yes
  9453.         ;;
  9454.       esac
  9455.       ;;
  9456.  
  9457.     bsdi[45]*)
  9458.       export_dynamic_flag_spec=-rdynamic
  9459.       ;;
  9460.  
  9461.     cygwin* | mingw* | pw32* | cegcc*)
  9462.       # When not using gcc, we currently assume that we are using
  9463.       # Microsoft Visual C++.
  9464.       # hardcode_libdir_flag_spec is actually meaningless, as there is
  9465.       # no search path for DLLs.
  9466.       case $cc_basename in
  9467.       cl*)
  9468.         # Native MSVC
  9469.         hardcode_libdir_flag_spec=' '
  9470.         allow_undefined_flag=unsupported
  9471.         always_export_symbols=yes
  9472.         file_list_spec='@'
  9473.         # Tell ltmain to make .lib files, not .a files.
  9474.         libext=lib
  9475.         # Tell ltmain to make .dll files, not .so files.
  9476.         shrext_cmds=".dll"
  9477.         # FIXME: Setting linknames here is a bad hack.
  9478.         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  9479.         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  9480.             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  9481.           else
  9482.             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  9483.           fi~
  9484.           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  9485.           linknames='
  9486.         # The linker will not automatically build a static lib if we build a DLL.
  9487.         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  9488.         enable_shared_with_static_runtimes=yes
  9489.         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  9490.         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  9491.         # Don't use ranlib
  9492.         old_postinstall_cmds='chmod 644 $oldlib'
  9493.         postlink_cmds='lt_outputfile="@OUTPUT@"~
  9494.           lt_tool_outputfile="@TOOL_OUTPUT@"~
  9495.           case $lt_outputfile in
  9496.             *.exe|*.EXE) ;;
  9497.             *)
  9498.               lt_outputfile="$lt_outputfile.exe"
  9499.               lt_tool_outputfile="$lt_tool_outputfile.exe"
  9500.               ;;
  9501.           esac~
  9502.           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  9503.             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  9504.             $RM "$lt_outputfile.manifest";
  9505.           fi'
  9506.         ;;
  9507.       *)
  9508.         # Assume MSVC wrapper
  9509.         hardcode_libdir_flag_spec=' '
  9510.         allow_undefined_flag=unsupported
  9511.         # Tell ltmain to make .lib files, not .a files.
  9512.         libext=lib
  9513.         # Tell ltmain to make .dll files, not .so files.
  9514.         shrext_cmds=".dll"
  9515.         # FIXME: Setting linknames here is a bad hack.
  9516.         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  9517.         # The linker will automatically build a .lib file if we build a DLL.
  9518.         old_archive_from_new_cmds='true'
  9519.         # FIXME: Should let the user specify the lib program.
  9520.         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  9521.         enable_shared_with_static_runtimes=yes
  9522.         ;;
  9523.       esac
  9524.       ;;
  9525.  
  9526.     darwin* | rhapsody*)
  9527.  
  9528.  
  9529.   archive_cmds_need_lc=no
  9530.   hardcode_direct=no
  9531.   hardcode_automatic=yes
  9532.   hardcode_shlibpath_var=unsupported
  9533.   if test "$lt_cv_ld_force_load" = "yes"; then
  9534.     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\"`'
  9535.  
  9536.   else
  9537.     whole_archive_flag_spec=''
  9538.   fi
  9539.   link_all_deplibs=yes
  9540.   allow_undefined_flag="$_lt_dar_allow_undefined"
  9541.   case $cc_basename in
  9542.      ifort*) _lt_dar_can_shared=yes ;;
  9543.      *) _lt_dar_can_shared=$GCC ;;
  9544.   esac
  9545.   if test "$_lt_dar_can_shared" = "yes"; then
  9546.     output_verbose_link_cmd=func_echo_all
  9547.     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  9548.     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  9549.     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}"
  9550.     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}"
  9551.  
  9552.   else
  9553.   ld_shlibs=no
  9554.   fi
  9555.  
  9556.       ;;
  9557.  
  9558.     dgux*)
  9559.       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9560.       hardcode_libdir_flag_spec='-L$libdir'
  9561.       hardcode_shlibpath_var=no
  9562.       ;;
  9563.  
  9564.     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  9565.     # support.  Future versions do this automatically, but an explicit c++rt0.o
  9566.     # does not break anything, and helps significantly (at the cost of a little
  9567.     # extra space).
  9568.     freebsd2.2*)
  9569.       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  9570.       hardcode_libdir_flag_spec='-R$libdir'
  9571.       hardcode_direct=yes
  9572.       hardcode_shlibpath_var=no
  9573.       ;;
  9574.  
  9575.     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  9576.     freebsd2.*)
  9577.       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9578.       hardcode_direct=yes
  9579.       hardcode_minus_L=yes
  9580.       hardcode_shlibpath_var=no
  9581.       ;;
  9582.  
  9583.     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  9584.     freebsd* | dragonfly*)
  9585.       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9586.       hardcode_libdir_flag_spec='-R$libdir'
  9587.       hardcode_direct=yes
  9588.       hardcode_shlibpath_var=no
  9589.       ;;
  9590.  
  9591.     hpux9*)
  9592.       if test "$GCC" = yes; then
  9593.         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'
  9594.       else
  9595.         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'
  9596.       fi
  9597.       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9598.       hardcode_libdir_separator=:
  9599.       hardcode_direct=yes
  9600.  
  9601.       # hardcode_minus_L: Not really in the search PATH,
  9602.       # but as the default location of the library.
  9603.       hardcode_minus_L=yes
  9604.       export_dynamic_flag_spec='${wl}-E'
  9605.       ;;
  9606.  
  9607.     hpux10*)
  9608.       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  9609.         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9610.       else
  9611.         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9612.       fi
  9613.       if test "$with_gnu_ld" = no; then
  9614.         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9615.         hardcode_libdir_separator=:
  9616.         hardcode_direct=yes
  9617.         hardcode_direct_absolute=yes
  9618.         export_dynamic_flag_spec='${wl}-E'
  9619.         # hardcode_minus_L: Not really in the search PATH,
  9620.         # but as the default location of the library.
  9621.         hardcode_minus_L=yes
  9622.       fi
  9623.       ;;
  9624.  
  9625.     hpux11*)
  9626.       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  9627.         case $host_cpu in
  9628.         hppa*64*)
  9629.           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9630.           ;;
  9631.         ia64*)
  9632.           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9633.           ;;
  9634.         *)
  9635.           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9636.           ;;
  9637.         esac
  9638.       else
  9639.         case $host_cpu in
  9640.         hppa*64*)
  9641.           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9642.           ;;
  9643.         ia64*)
  9644.           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9645.           ;;
  9646.         *)
  9647.  
  9648.           # Older versions of the 11.00 compiler do not understand -b yet
  9649.           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  9650.           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  9651. $as_echo_n "checking if $CC understands -b... " >&6; }
  9652. if ${lt_cv_prog_compiler__b+:} false; then :
  9653.   $as_echo_n "(cached) " >&6
  9654. else
  9655.   lt_cv_prog_compiler__b=no
  9656.    save_LDFLAGS="$LDFLAGS"
  9657.    LDFLAGS="$LDFLAGS -b"
  9658.    echo "$lt_simple_link_test_code" > conftest.$ac_ext
  9659.    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9660.      # The linker can only warn and ignore the option if not recognized
  9661.      # So say no if there are warnings
  9662.      if test -s conftest.err; then
  9663.        # Append any errors to the config.log.
  9664.        cat conftest.err 1>&5
  9665.        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  9666.        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9667.        if diff conftest.exp conftest.er2 >/dev/null; then
  9668.          lt_cv_prog_compiler__b=yes
  9669.        fi
  9670.      else
  9671.        lt_cv_prog_compiler__b=yes
  9672.      fi
  9673.    fi
  9674.    $RM -r conftest*
  9675.    LDFLAGS="$save_LDFLAGS"
  9676.  
  9677. fi
  9678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  9679. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  9680.  
  9681. if test x"$lt_cv_prog_compiler__b" = xyes; then
  9682.     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9683. else
  9684.     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9685. fi
  9686.  
  9687.           ;;
  9688.         esac
  9689.       fi
  9690.       if test "$with_gnu_ld" = no; then
  9691.         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9692.         hardcode_libdir_separator=:
  9693.  
  9694.         case $host_cpu in
  9695.         hppa*64*|ia64*)
  9696.           hardcode_direct=no
  9697.           hardcode_shlibpath_var=no
  9698.           ;;
  9699.         *)
  9700.           hardcode_direct=yes
  9701.           hardcode_direct_absolute=yes
  9702.           export_dynamic_flag_spec='${wl}-E'
  9703.  
  9704.           # hardcode_minus_L: Not really in the search PATH,
  9705.           # but as the default location of the library.
  9706.           hardcode_minus_L=yes
  9707.           ;;
  9708.         esac
  9709.       fi
  9710.       ;;
  9711.  
  9712.     irix5* | irix6* | nonstopux*)
  9713.       if test "$GCC" = yes; then
  9714.         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'
  9715.         # Try to use the -exported_symbol ld option, if it does not
  9716.         # work, assume that -exports_file does not work either and
  9717.         # implicitly export all symbols.
  9718.         # This should be the same for all languages, so no per-tag cache variable.
  9719.         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  9720. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  9721. if ${lt_cv_irix_exported_symbol+:} false; then :
  9722.   $as_echo_n "(cached) " >&6
  9723. else
  9724.   save_LDFLAGS="$LDFLAGS"
  9725.            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  9726.            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9727. /* end confdefs.h.  */
  9728. int foo (void) { return 0; }
  9729. _ACEOF
  9730. if ac_fn_c_try_link "$LINENO"; then :
  9731.   lt_cv_irix_exported_symbol=yes
  9732. else
  9733.   lt_cv_irix_exported_symbol=no
  9734. fi
  9735. rm -f core conftest.err conftest.$ac_objext \
  9736.     conftest$ac_exeext conftest.$ac_ext
  9737.            LDFLAGS="$save_LDFLAGS"
  9738. fi
  9739. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  9740. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  9741.         if test "$lt_cv_irix_exported_symbol" = yes; then
  9742.           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'
  9743.         fi
  9744.       else
  9745.         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'
  9746.         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'
  9747.       fi
  9748.       archive_cmds_need_lc='no'
  9749.       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9750.       hardcode_libdir_separator=:
  9751.       inherit_rpath=yes
  9752.       link_all_deplibs=yes
  9753.       ;;
  9754.  
  9755.     netbsd* | netbsdelf*-gnu)
  9756.       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9757.         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
  9758.       else
  9759.         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
  9760.       fi
  9761.       hardcode_libdir_flag_spec='-R$libdir'
  9762.       hardcode_direct=yes
  9763.       hardcode_shlibpath_var=no
  9764.       ;;
  9765.  
  9766.     newsos6)
  9767.       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9768.       hardcode_direct=yes
  9769.       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9770.       hardcode_libdir_separator=:
  9771.       hardcode_shlibpath_var=no
  9772.       ;;
  9773.  
  9774.     *nto* | *qnx*)
  9775.       ;;
  9776.  
  9777.     openbsd*)
  9778.       if test -f /usr/libexec/ld.so; then
  9779.         hardcode_direct=yes
  9780.         hardcode_shlibpath_var=no
  9781.         hardcode_direct_absolute=yes
  9782.         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9783.           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9784.           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  9785.           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  9786.           export_dynamic_flag_spec='${wl}-E'
  9787.         else
  9788.           case $host_os in
  9789.            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  9790.              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9791.              hardcode_libdir_flag_spec='-R$libdir'
  9792.              ;;
  9793.            *)
  9794.              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9795.              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  9796.              ;;
  9797.           esac
  9798.         fi
  9799.       else
  9800.         ld_shlibs=no
  9801.       fi
  9802.       ;;
  9803.  
  9804.     os2*)
  9805.       hardcode_libdir_flag_spec='-L$libdir'
  9806.       hardcode_minus_L=yes
  9807.       allow_undefined_flag=unsupported
  9808.       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'
  9809.       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  9810.       ;;
  9811.  
  9812.     osf3*)
  9813.       if test "$GCC" = yes; then
  9814.         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  9815.         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'
  9816.       else
  9817.         allow_undefined_flag=' -expect_unresolved \*'
  9818.         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'
  9819.       fi
  9820.       archive_cmds_need_lc='no'
  9821.       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9822.       hardcode_libdir_separator=:
  9823.       ;;
  9824.  
  9825.     osf4* | osf5*)      # as osf3* with the addition of -msym flag
  9826.       if test "$GCC" = yes; then
  9827.         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  9828.         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'
  9829.         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9830.       else
  9831.         allow_undefined_flag=' -expect_unresolved \*'
  9832.         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'
  9833.         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~
  9834.         $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'
  9835.  
  9836.         # Both c and cxx compiler support -rpath directly
  9837.         hardcode_libdir_flag_spec='-rpath $libdir'
  9838.       fi
  9839.       archive_cmds_need_lc='no'
  9840.       hardcode_libdir_separator=:
  9841.       ;;
  9842.  
  9843.     solaris*)
  9844.       no_undefined_flag=' -z defs'
  9845.       if test "$GCC" = yes; then
  9846.         wlarc='${wl}'
  9847.         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9848.         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9849.           $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'
  9850.       else
  9851.         case `$CC -V 2>&1` in
  9852.         *"Compilers 5.0"*)
  9853.           wlarc=''
  9854.           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9855.           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9856.           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  9857.           ;;
  9858.         *)
  9859.           wlarc='${wl}'
  9860.           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9861.           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9862.           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9863.           ;;
  9864.         esac
  9865.       fi
  9866.       hardcode_libdir_flag_spec='-R$libdir'
  9867.       hardcode_shlibpath_var=no
  9868.       case $host_os in
  9869.       solaris2.[0-5] | solaris2.[0-5].*) ;;
  9870.       *)
  9871.         # The compiler driver will combine and reorder linker options,
  9872.         # but understands `-z linker_flag'.  GCC discards it without `$wl',
  9873.         # but is careful enough not to reorder.
  9874.         # Supported since Solaris 2.6 (maybe 2.5.1?)
  9875.         if test "$GCC" = yes; then
  9876.           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  9877.         else
  9878.           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  9879.         fi
  9880.         ;;
  9881.       esac
  9882.       link_all_deplibs=yes
  9883.       ;;
  9884.  
  9885.     sunos4*)
  9886.       if test "x$host_vendor" = xsequent; then
  9887.         # Use $CC to link under sequent, because it throws in some extra .o
  9888.         # files that make .init and .fini sections work.
  9889.         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9890.       else
  9891.         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9892.       fi
  9893.       hardcode_libdir_flag_spec='-L$libdir'
  9894.       hardcode_direct=yes
  9895.       hardcode_minus_L=yes
  9896.       hardcode_shlibpath_var=no
  9897.       ;;
  9898.  
  9899.     sysv4)
  9900.       case $host_vendor in
  9901.         sni)
  9902.           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9903.           hardcode_direct=yes # is this really true???
  9904.         ;;
  9905.         siemens)
  9906.           ## LD is ld it makes a PLAMLIB
  9907.           ## CC just makes a GrossModule.
  9908.           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9909.           reload_cmds='$CC -r -o $output$reload_objs'
  9910.           hardcode_direct=no
  9911.         ;;
  9912.         motorola)
  9913.           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9914.           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9915.         ;;
  9916.       esac
  9917.       runpath_var='LD_RUN_PATH'
  9918.       hardcode_shlibpath_var=no
  9919.       ;;
  9920.  
  9921.     sysv4.3*)
  9922.       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9923.       hardcode_shlibpath_var=no
  9924.       export_dynamic_flag_spec='-Bexport'
  9925.       ;;
  9926.  
  9927.     sysv4*MP*)
  9928.       if test -d /usr/nec; then
  9929.         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9930.         hardcode_shlibpath_var=no
  9931.         runpath_var=LD_RUN_PATH
  9932.         hardcode_runpath_var=yes
  9933.         ld_shlibs=yes
  9934.       fi
  9935.       ;;
  9936.  
  9937.     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9938.       no_undefined_flag='${wl}-z,text'
  9939.       archive_cmds_need_lc=no
  9940.       hardcode_shlibpath_var=no
  9941.       runpath_var='LD_RUN_PATH'
  9942.  
  9943.       if test "$GCC" = yes; then
  9944.         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9945.         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9946.       else
  9947.         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9948.         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9949.       fi
  9950.       ;;
  9951.  
  9952.     sysv5* | sco3.2v5* | sco5v6*)
  9953.       # Note: We can NOT use -z defs as we might desire, because we do not
  9954.       # link with -lc, and that would cause any symbols used from libc to
  9955.       # always be unresolved, which means just about no library would
  9956.       # ever link correctly.  If we're not using GNU ld we use -z text
  9957.       # though, which does catch some bad symbols but isn't as heavy-handed
  9958.       # as -z defs.
  9959.       no_undefined_flag='${wl}-z,text'
  9960.       allow_undefined_flag='${wl}-z,nodefs'
  9961.       archive_cmds_need_lc=no
  9962.       hardcode_shlibpath_var=no
  9963.       hardcode_libdir_flag_spec='${wl}-R,$libdir'
  9964.       hardcode_libdir_separator=':'
  9965.       link_all_deplibs=yes
  9966.       export_dynamic_flag_spec='${wl}-Bexport'
  9967.       runpath_var='LD_RUN_PATH'
  9968.  
  9969.       if test "$GCC" = yes; then
  9970.         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9971.         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9972.       else
  9973.         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9974.         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9975.       fi
  9976.       ;;
  9977.  
  9978.     uts4*)
  9979.       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9980.       hardcode_libdir_flag_spec='-L$libdir'
  9981.       hardcode_shlibpath_var=no
  9982.       ;;
  9983.  
  9984.     *)
  9985.       ld_shlibs=no
  9986.       ;;
  9987.     esac
  9988.  
  9989.     if test x$host_vendor = xsni; then
  9990.       case $host in
  9991.       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9992.         export_dynamic_flag_spec='${wl}-Blargedynsym'
  9993.         ;;
  9994.       esac
  9995.     fi
  9996.   fi
  9997.  
  9998. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9999. $as_echo "$ld_shlibs" >&6; }
  10000. test "$ld_shlibs" = no && can_build_shared=no
  10001.  
  10002. with_gnu_ld=$with_gnu_ld
  10003.  
  10004.  
  10005.  
  10006.  
  10007.  
  10008.  
  10009.  
  10010.  
  10011.  
  10012.  
  10013.  
  10014.  
  10015.  
  10016.  
  10017.  
  10018. #
  10019. # Do we need to explicitly link libc?
  10020. #
  10021. case "x$archive_cmds_need_lc" in
  10022. x|xyes)
  10023.   # Assume -lc should be added
  10024.   archive_cmds_need_lc=yes
  10025.  
  10026.   if test "$enable_shared" = yes && test "$GCC" = yes; then
  10027.     case $archive_cmds in
  10028.     *'~'*)
  10029.       # FIXME: we may have to deal with multi-command sequences.
  10030.       ;;
  10031.     '$CC '*)
  10032.       # Test whether the compiler implicitly links with -lc since on some
  10033.       # systems, -lgcc has to come before -lc. If gcc already passes -lc
  10034.       # to ld, don't add -lc before -lgcc.
  10035.       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  10036. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  10037. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  10038.   $as_echo_n "(cached) " >&6
  10039. else
  10040.   $RM conftest*
  10041.         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  10042.  
  10043.         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  10044.   (eval $ac_compile) 2>&5
  10045.   ac_status=$?
  10046.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10047.   test $ac_status = 0; } 2>conftest.err; then
  10048.           soname=conftest
  10049.           lib=conftest
  10050.           libobjs=conftest.$ac_objext
  10051.           deplibs=
  10052.           wl=$lt_prog_compiler_wl
  10053.           pic_flag=$lt_prog_compiler_pic
  10054.           compiler_flags=-v
  10055.           linker_flags=-v
  10056.           verstring=
  10057.           output_objdir=.
  10058.           libname=conftest
  10059.           lt_save_allow_undefined_flag=$allow_undefined_flag
  10060.           allow_undefined_flag=
  10061.           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  10062.   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  10063.   ac_status=$?
  10064.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10065.   test $ac_status = 0; }
  10066.           then
  10067.             lt_cv_archive_cmds_need_lc=no
  10068.           else
  10069.             lt_cv_archive_cmds_need_lc=yes
  10070.           fi
  10071.           allow_undefined_flag=$lt_save_allow_undefined_flag
  10072.         else
  10073.           cat conftest.err 1>&5
  10074.         fi
  10075.         $RM conftest*
  10076.  
  10077. fi
  10078. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  10079. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  10080.       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  10081.       ;;
  10082.     esac
  10083.   fi
  10084.   ;;
  10085. esac
  10086.  
  10087.  
  10088.  
  10089.  
  10090.  
  10091.  
  10092.  
  10093.  
  10094.  
  10095.  
  10096.  
  10097.  
  10098.  
  10099.  
  10100.  
  10101.  
  10102.  
  10103.  
  10104.  
  10105.  
  10106.  
  10107.  
  10108.  
  10109.  
  10110.  
  10111.  
  10112.  
  10113.  
  10114.  
  10115.  
  10116.  
  10117.  
  10118.  
  10119.  
  10120.  
  10121.  
  10122.  
  10123.  
  10124.  
  10125.  
  10126.  
  10127.  
  10128.  
  10129.  
  10130.  
  10131.  
  10132.  
  10133.  
  10134.  
  10135.  
  10136.  
  10137.  
  10138.  
  10139.  
  10140.  
  10141.  
  10142.  
  10143.  
  10144.  
  10145.  
  10146.  
  10147.  
  10148.  
  10149.  
  10150.  
  10151.  
  10152.  
  10153.  
  10154.  
  10155.  
  10156.  
  10157.  
  10158.  
  10159.  
  10160.  
  10161.  
  10162.  
  10163.  
  10164.  
  10165.  
  10166.  
  10167.  
  10168.  
  10169.  
  10170.  
  10171.  
  10172.  
  10173.  
  10174.  
  10175.  
  10176.  
  10177.  
  10178.  
  10179.  
  10180.  
  10181.  
  10182.  
  10183.  
  10184.  
  10185.  
  10186.  
  10187.  
  10188.  
  10189.  
  10190.  
  10191.  
  10192.  
  10193.  
  10194.  
  10195.  
  10196.  
  10197.  
  10198.  
  10199.  
  10200.  
  10201.  
  10202.  
  10203.  
  10204.  
  10205.  
  10206.  
  10207.  
  10208.  
  10209.  
  10210.  
  10211.  
  10212.  
  10213.  
  10214.  
  10215.  
  10216.  
  10217.  
  10218.  
  10219.  
  10220.  
  10221.  
  10222.  
  10223.  
  10224.  
  10225.  
  10226.  
  10227.  
  10228.  
  10229.  
  10230.  
  10231.  
  10232.  
  10233.  
  10234.  
  10235.  
  10236.  
  10237.  
  10238.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  10239. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  10240.  
  10241. if test "$GCC" = yes; then
  10242.   case $host_os in
  10243.     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  10244.     *) lt_awk_arg="/^libraries:/" ;;
  10245.   esac
  10246.   case $host_os in
  10247.     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  10248.     *) lt_sed_strip_eq="s,=/,/,g" ;;
  10249.   esac
  10250.   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  10251.   case $lt_search_path_spec in
  10252.   *\;*)
  10253.     # if the path contains ";" then we assume it to be the separator
  10254.     # otherwise default to the standard path separator (i.e. ":") - it is
  10255.     # assumed that no part of a normal pathname contains ";" but that should
  10256.     # okay in the real world where ";" in dirpaths is itself problematic.
  10257.     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  10258.     ;;
  10259.   *)
  10260.     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  10261.     ;;
  10262.   esac
  10263.   # Ok, now we have the path, separated by spaces, we can step through it
  10264.   # and add multilib dir if necessary.
  10265.   lt_tmp_lt_search_path_spec=
  10266.   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  10267.   for lt_sys_path in $lt_search_path_spec; do
  10268.     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  10269.       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  10270.     else
  10271.       test -d "$lt_sys_path" && \
  10272.         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  10273.     fi
  10274.   done
  10275.   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  10276. BEGIN {RS=" "; FS="/|\n";} {
  10277.   lt_foo="";
  10278.   lt_count=0;
  10279.   for (lt_i = NF; lt_i > 0; lt_i--) {
  10280.     if ($lt_i != "" && $lt_i != ".") {
  10281.       if ($lt_i == "..") {
  10282.         lt_count++;
  10283.       } else {
  10284.         if (lt_count == 0) {
  10285.           lt_foo="/" $lt_i lt_foo;
  10286.         } else {
  10287.           lt_count--;
  10288.         }
  10289.       }
  10290.     }
  10291.   }
  10292.   if (lt_foo != "") { lt_freq[lt_foo]++; }
  10293.   if (lt_freq[lt_foo] == 1) { print lt_foo; }
  10294. }'`
  10295.   # AWK program above erroneously prepends '/' to C:/dos/paths
  10296.   # for these hosts.
  10297.   case $host_os in
  10298.     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  10299.       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  10300.   esac
  10301.   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  10302. else
  10303.   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  10304. fi
  10305. library_names_spec=
  10306. libname_spec='lib$name'
  10307. soname_spec=
  10308. shrext_cmds=".so"
  10309. postinstall_cmds=
  10310. postuninstall_cmds=
  10311. finish_cmds=
  10312. finish_eval=
  10313. shlibpath_var=
  10314. shlibpath_overrides_runpath=unknown
  10315. version_type=none
  10316. dynamic_linker="$host_os ld.so"
  10317. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  10318. need_lib_prefix=unknown
  10319. hardcode_into_libs=no
  10320.  
  10321. # when you set need_version to no, make sure it does not cause -set_version
  10322. # flags to be left without arguments
  10323. need_version=unknown
  10324.  
  10325. case $host_os in
  10326. aix3*)
  10327.   version_type=linux # correct to gnu/linux during the next big refactor
  10328.   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  10329.   shlibpath_var=LIBPATH
  10330.  
  10331.   # AIX 3 has no versioning support, so we append a major version to the name.
  10332.   soname_spec='${libname}${release}${shared_ext}$major'
  10333.   ;;
  10334.  
  10335. aix[4-9]*)
  10336.   version_type=linux # correct to gnu/linux during the next big refactor
  10337.   need_lib_prefix=no
  10338.   need_version=no
  10339.   hardcode_into_libs=yes
  10340.   if test "$host_cpu" = ia64; then
  10341.     # AIX 5 supports IA64
  10342.     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  10343.     shlibpath_var=LD_LIBRARY_PATH
  10344.   else
  10345.     # With GCC up to 2.95.x, collect2 would create an import file
  10346.     # for dependence libraries.  The import file would start with
  10347.     # the line `#! .'.  This would cause the generated library to
  10348.     # depend on `.', always an invalid library.  This was fixed in
  10349.     # development snapshots of GCC prior to 3.0.
  10350.     case $host_os in
  10351.       aix4 | aix4.[01] | aix4.[01].*)
  10352.       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  10353.            echo ' yes '
  10354.            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  10355.         :
  10356.       else
  10357.         can_build_shared=no
  10358.       fi
  10359.       ;;
  10360.     esac
  10361.     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  10362.     # soname into executable. Probably we can add versioning support to
  10363.     # collect2, so additional links can be useful in future.
  10364.     if test "$aix_use_runtimelinking" = yes; then
  10365.       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  10366.       # instead of lib<name>.a to let people know that these are not
  10367.       # typical AIX shared libraries.
  10368.       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10369.     else
  10370.       # We preserve .a as extension for shared libraries through AIX4.2
  10371.       # and later when we are not doing run time linking.
  10372.       library_names_spec='${libname}${release}.a $libname.a'
  10373.       soname_spec='${libname}${release}${shared_ext}$major'
  10374.     fi
  10375.     shlibpath_var=LIBPATH
  10376.   fi
  10377.   ;;
  10378.  
  10379. amigaos*)
  10380.   case $host_cpu in
  10381.   powerpc)
  10382.     # Since July 2007 AmigaOS4 officially supports .so libraries.
  10383.     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  10384.     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10385.     ;;
  10386.   m68k)
  10387.     library_names_spec='$libname.ixlibrary $libname.a'
  10388.     # Create ${libname}_ixlibrary.a entries in /sys/libs.
  10389.     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'
  10390.     ;;
  10391.   esac
  10392.   ;;
  10393.  
  10394. beos*)
  10395.   library_names_spec='${libname}${shared_ext}'
  10396.   dynamic_linker="$host_os ld.so"
  10397.   shlibpath_var=LIBRARY_PATH
  10398.   ;;
  10399.  
  10400. bsdi[45]*)
  10401.   version_type=linux # correct to gnu/linux during the next big refactor
  10402.   need_version=no
  10403.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10404.   soname_spec='${libname}${release}${shared_ext}$major'
  10405.   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  10406.   shlibpath_var=LD_LIBRARY_PATH
  10407.   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  10408.   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  10409.   # the default ld.so.conf also contains /usr/contrib/lib and
  10410.   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  10411.   # libtool to hard-code these into programs
  10412.   ;;
  10413.  
  10414. cygwin* | mingw* | pw32* | cegcc*)
  10415.   version_type=windows
  10416.   shrext_cmds=".dll"
  10417.   need_version=no
  10418.   need_lib_prefix=no
  10419.  
  10420.   case $GCC,$cc_basename in
  10421.   yes,*)
  10422.     # gcc
  10423.     library_names_spec='$libname.dll.a'
  10424.     # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10425.     postinstall_cmds='base_file=`basename \${file}`~
  10426.       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  10427.       dldir=$destdir/`dirname \$dlpath`~
  10428.       test -d \$dldir || mkdir -p \$dldir~
  10429.       $install_prog $dir/$dlname \$dldir/$dlname~
  10430.       chmod a+x \$dldir/$dlname~
  10431.       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  10432.         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  10433.       fi'
  10434.     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10435.       dlpath=$dir/\$dldll~
  10436.        $RM \$dlpath'
  10437.     shlibpath_overrides_runpath=yes
  10438.  
  10439.     case $host_os in
  10440.     cygwin*)
  10441.       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  10442.       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  10443.  
  10444.       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  10445.       ;;
  10446.     mingw* | cegcc*)
  10447.       # MinGW DLLs use traditional 'lib' prefix
  10448.       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  10449.       ;;
  10450.     pw32*)
  10451.       # pw32 DLLs use 'pw' prefix rather than 'lib'
  10452.       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  10453.       ;;
  10454.     esac
  10455.     dynamic_linker='Win32 ld.exe'
  10456.     ;;
  10457.  
  10458.   *,cl*)
  10459.     # Native MSVC
  10460.     libname_spec='$name'
  10461.     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  10462.     library_names_spec='${libname}.dll.lib'
  10463.  
  10464.     case $build_os in
  10465.     mingw*)
  10466.       sys_lib_search_path_spec=
  10467.       lt_save_ifs=$IFS
  10468.       IFS=';'
  10469.       for lt_path in $LIB
  10470.       do
  10471.         IFS=$lt_save_ifs
  10472.         # Let DOS variable expansion print the short 8.3 style file name.
  10473.         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  10474.         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  10475.       done
  10476.       IFS=$lt_save_ifs
  10477.       # Convert to MSYS style.
  10478.       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  10479.       ;;
  10480.     cygwin*)
  10481.       # Convert to unix form, then to dos form, then back to unix form
  10482.       # but this time dos style (no spaces!) so that the unix form looks
  10483.       # like /cygdrive/c/PROGRA~1:/cygdr...
  10484.       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  10485.       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  10486.       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10487.       ;;
  10488.     *)
  10489.       sys_lib_search_path_spec="$LIB"
  10490.       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  10491.         # It is most probably a Windows format PATH.
  10492.         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  10493.       else
  10494.         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10495.       fi
  10496.       # FIXME: find the short name or the path components, as spaces are
  10497.       # common. (e.g. "Program Files" -> "PROGRA~1")
  10498.       ;;
  10499.     esac
  10500.  
  10501.     # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10502.     postinstall_cmds='base_file=`basename \${file}`~
  10503.       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  10504.       dldir=$destdir/`dirname \$dlpath`~
  10505.       test -d \$dldir || mkdir -p \$dldir~
  10506.       $install_prog $dir/$dlname \$dldir/$dlname'
  10507.     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10508.       dlpath=$dir/\$dldll~
  10509.        $RM \$dlpath'
  10510.     shlibpath_overrides_runpath=yes
  10511.     dynamic_linker='Win32 link.exe'
  10512.     ;;
  10513.  
  10514.   *)
  10515.     # Assume MSVC wrapper
  10516.     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  10517.     dynamic_linker='Win32 ld.exe'
  10518.     ;;
  10519.   esac
  10520.   # FIXME: first we should search . and the directory the executable is in
  10521.   shlibpath_var=PATH
  10522.   ;;
  10523.  
  10524. darwin* | rhapsody*)
  10525.   dynamic_linker="$host_os dyld"
  10526.   version_type=darwin
  10527.   need_lib_prefix=no
  10528.   need_version=no
  10529.   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  10530.   soname_spec='${libname}${release}${major}$shared_ext'
  10531.   shlibpath_overrides_runpath=yes
  10532.   shlibpath_var=DYLD_LIBRARY_PATH
  10533.   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  10534.  
  10535.   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  10536.   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  10537.   ;;
  10538.  
  10539. dgux*)
  10540.   version_type=linux # correct to gnu/linux during the next big refactor
  10541.   need_lib_prefix=no
  10542.   need_version=no
  10543.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  10544.   soname_spec='${libname}${release}${shared_ext}$major'
  10545.   shlibpath_var=LD_LIBRARY_PATH
  10546.   ;;
  10547.  
  10548. freebsd* | dragonfly*)
  10549.   # DragonFly does not have aout.  When/if they implement a new
  10550.   # versioning mechanism, adjust this.
  10551.   if test -x /usr/bin/objformat; then
  10552.     objformat=`/usr/bin/objformat`
  10553.   else
  10554.     case $host_os in
  10555.     freebsd[23].*) objformat=aout ;;
  10556.     *) objformat=elf ;;
  10557.     esac
  10558.   fi
  10559.   version_type=freebsd-$objformat
  10560.   case $version_type in
  10561.     freebsd-elf*)
  10562.       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  10563.       need_version=no
  10564.       need_lib_prefix=no
  10565.       ;;
  10566.     freebsd-*)
  10567.       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  10568.       need_version=yes
  10569.       ;;
  10570.   esac
  10571.   shlibpath_var=LD_LIBRARY_PATH
  10572.   case $host_os in
  10573.   freebsd2.*)
  10574.     shlibpath_overrides_runpath=yes
  10575.     ;;
  10576.   freebsd3.[01]* | freebsdelf3.[01]*)
  10577.     shlibpath_overrides_runpath=yes
  10578.     hardcode_into_libs=yes
  10579.     ;;
  10580.   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  10581.   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  10582.     shlibpath_overrides_runpath=no
  10583.     hardcode_into_libs=yes
  10584.     ;;
  10585.   *) # from 4.6 on, and DragonFly
  10586.     shlibpath_overrides_runpath=yes
  10587.     hardcode_into_libs=yes
  10588.     ;;
  10589.   esac
  10590.   ;;
  10591.  
  10592. haiku*)
  10593.   version_type=linux # correct to gnu/linux during the next big refactor
  10594.   need_lib_prefix=no
  10595.   need_version=no
  10596.   dynamic_linker="$host_os runtime_loader"
  10597.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  10598.   soname_spec='${libname}${release}${shared_ext}$major'
  10599.   shlibpath_var=LIBRARY_PATH
  10600.   shlibpath_overrides_runpath=yes
  10601.   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  10602.   hardcode_into_libs=yes
  10603.   ;;
  10604.  
  10605. hpux9* | hpux10* | hpux11*)
  10606.   # Give a soname corresponding to the major version so that dld.sl refuses to
  10607.   # link against other versions.
  10608.   version_type=sunos
  10609.   need_lib_prefix=no
  10610.   need_version=no
  10611.   case $host_cpu in
  10612.   ia64*)
  10613.     shrext_cmds='.so'
  10614.     hardcode_into_libs=yes
  10615.     dynamic_linker="$host_os dld.so"
  10616.     shlibpath_var=LD_LIBRARY_PATH
  10617.     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10618.     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10619.     soname_spec='${libname}${release}${shared_ext}$major'
  10620.     if test "X$HPUX_IA64_MODE" = X32; then
  10621.       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  10622.     else
  10623.       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  10624.     fi
  10625.     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10626.     ;;
  10627.   hppa*64*)
  10628.     shrext_cmds='.sl'
  10629.     hardcode_into_libs=yes
  10630.     dynamic_linker="$host_os dld.sl"
  10631.     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  10632.     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10633.     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10634.     soname_spec='${libname}${release}${shared_ext}$major'
  10635.     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  10636.     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10637.     ;;
  10638.   *)
  10639.     shrext_cmds='.sl'
  10640.     dynamic_linker="$host_os dld.sl"
  10641.     shlibpath_var=SHLIB_PATH
  10642.     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  10643.     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10644.     soname_spec='${libname}${release}${shared_ext}$major'
  10645.     ;;
  10646.   esac
  10647.   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  10648.   postinstall_cmds='chmod 555 $lib'
  10649.   # or fails outright, so override atomically:
  10650.   install_override_mode=555
  10651.   ;;
  10652.  
  10653. interix[3-9]*)
  10654.   version_type=linux # correct to gnu/linux during the next big refactor
  10655.   need_lib_prefix=no
  10656.   need_version=no
  10657.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10658.   soname_spec='${libname}${release}${shared_ext}$major'
  10659.   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  10660.   shlibpath_var=LD_LIBRARY_PATH
  10661.   shlibpath_overrides_runpath=no
  10662.   hardcode_into_libs=yes
  10663.   ;;
  10664.  
  10665. irix5* | irix6* | nonstopux*)
  10666.   case $host_os in
  10667.     nonstopux*) version_type=nonstopux ;;
  10668.     *)
  10669.         if test "$lt_cv_prog_gnu_ld" = yes; then
  10670.                 version_type=linux # correct to gnu/linux during the next big refactor
  10671.         else
  10672.                 version_type=irix
  10673.         fi ;;
  10674.   esac
  10675.   need_lib_prefix=no
  10676.   need_version=no
  10677.   soname_spec='${libname}${release}${shared_ext}$major'
  10678.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  10679.   case $host_os in
  10680.   irix5* | nonstopux*)
  10681.     libsuff= shlibsuff=
  10682.     ;;
  10683.   *)
  10684.     case $LD in # libtool.m4 will add one of these switches to LD
  10685.     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  10686.       libsuff= shlibsuff= libmagic=32-bit;;
  10687.     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  10688.       libsuff=32 shlibsuff=N32 libmagic=N32;;
  10689.     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  10690.       libsuff=64 shlibsuff=64 libmagic=64-bit;;
  10691.     *) libsuff= shlibsuff= libmagic=never-match;;
  10692.     esac
  10693.     ;;
  10694.   esac
  10695.   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  10696.   shlibpath_overrides_runpath=no
  10697.   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  10698.   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  10699.   hardcode_into_libs=yes
  10700.   ;;
  10701.  
  10702. # No shared lib support for Linux oldld, aout, or coff.
  10703. linux*oldld* | linux*aout* | linux*coff*)
  10704.   dynamic_linker=no
  10705.   ;;
  10706.  
  10707. # This must be glibc/ELF.
  10708. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  10709.   version_type=linux # correct to gnu/linux during the next big refactor
  10710.   need_lib_prefix=no
  10711.   need_version=no
  10712.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10713.   soname_spec='${libname}${release}${shared_ext}$major'
  10714.   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  10715.   shlibpath_var=LD_LIBRARY_PATH
  10716.   shlibpath_overrides_runpath=no
  10717.  
  10718.   # Some binutils ld are patched to set DT_RUNPATH
  10719.   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  10720.   $as_echo_n "(cached) " >&6
  10721. else
  10722.   lt_cv_shlibpath_overrides_runpath=no
  10723.     save_LDFLAGS=$LDFLAGS
  10724.     save_libdir=$libdir
  10725.     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  10726.          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  10727.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10728. /* end confdefs.h.  */
  10729.  
  10730. int
  10731. main ()
  10732. {
  10733.  
  10734.   ;
  10735.   return 0;
  10736. }
  10737. _ACEOF
  10738. if ac_fn_c_try_link "$LINENO"; then :
  10739.   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  10740.   lt_cv_shlibpath_overrides_runpath=yes
  10741. fi
  10742. fi
  10743. rm -f core conftest.err conftest.$ac_objext \
  10744.     conftest$ac_exeext conftest.$ac_ext
  10745.     LDFLAGS=$save_LDFLAGS
  10746.     libdir=$save_libdir
  10747.  
  10748. fi
  10749.  
  10750.   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  10751.  
  10752.   # This implies no fast_install, which is unacceptable.
  10753.   # Some rework will be needed to allow for fast_install
  10754.   # before this can be enabled.
  10755.   hardcode_into_libs=yes
  10756.  
  10757.   # Append ld.so.conf contents to the search path
  10758.   if test -f /etc/ld.so.conf; then
  10759.     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' ' '`
  10760.     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  10761.   fi
  10762.  
  10763.   # We used to test for /lib/ld.so.1 and disable shared libraries on
  10764.   # powerpc, because MkLinux only supported shared libraries with the
  10765.   # GNU dynamic linker.  Since this was broken with cross compilers,
  10766.   # most powerpc-linux boxes support dynamic linking these days and
  10767.   # people can always --disable-shared, the test was removed, and we
  10768.   # assume the GNU/Linux dynamic linker is in use.
  10769.   dynamic_linker='GNU/Linux ld.so'
  10770.   ;;
  10771.  
  10772. netbsdelf*-gnu)
  10773.   version_type=linux
  10774.   need_lib_prefix=no
  10775.   need_version=no
  10776.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10777.   soname_spec='${libname}${release}${shared_ext}$major'
  10778.   shlibpath_var=LD_LIBRARY_PATH
  10779.   shlibpath_overrides_runpath=no
  10780.   hardcode_into_libs=yes
  10781.   dynamic_linker='NetBSD ld.elf_so'
  10782.   ;;
  10783.  
  10784. netbsd*)
  10785.   version_type=sunos
  10786.   need_lib_prefix=no
  10787.   need_version=no
  10788.   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10789.     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10790.     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10791.     dynamic_linker='NetBSD (a.out) ld.so'
  10792.   else
  10793.     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10794.     soname_spec='${libname}${release}${shared_ext}$major'
  10795.     dynamic_linker='NetBSD ld.elf_so'
  10796.   fi
  10797.   shlibpath_var=LD_LIBRARY_PATH
  10798.   shlibpath_overrides_runpath=yes
  10799.   hardcode_into_libs=yes
  10800.   ;;
  10801.  
  10802. newsos6)
  10803.   version_type=linux # correct to gnu/linux during the next big refactor
  10804.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10805.   shlibpath_var=LD_LIBRARY_PATH
  10806.   shlibpath_overrides_runpath=yes
  10807.   ;;
  10808.  
  10809. *nto* | *qnx*)
  10810.   version_type=qnx
  10811.   need_lib_prefix=no
  10812.   need_version=no
  10813.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10814.   soname_spec='${libname}${release}${shared_ext}$major'
  10815.   shlibpath_var=LD_LIBRARY_PATH
  10816.   shlibpath_overrides_runpath=no
  10817.   hardcode_into_libs=yes
  10818.   dynamic_linker='ldqnx.so'
  10819.   ;;
  10820.  
  10821. openbsd*)
  10822.   version_type=sunos
  10823.   sys_lib_dlsearch_path_spec="/usr/lib"
  10824.   need_lib_prefix=no
  10825.   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  10826.   case $host_os in
  10827.     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
  10828.     *)                          need_version=no  ;;
  10829.   esac
  10830.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10831.   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10832.   shlibpath_var=LD_LIBRARY_PATH
  10833.   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10834.     case $host_os in
  10835.       openbsd2.[89] | openbsd2.[89].*)
  10836.         shlibpath_overrides_runpath=no
  10837.         ;;
  10838.       *)
  10839.         shlibpath_overrides_runpath=yes
  10840.         ;;
  10841.       esac
  10842.   else
  10843.     shlibpath_overrides_runpath=yes
  10844.   fi
  10845.   ;;
  10846.  
  10847. os2*)
  10848.   libname_spec='$name'
  10849.   shrext_cmds=".dll"
  10850.   need_lib_prefix=no
  10851.   library_names_spec='$libname${shared_ext} $libname.a'
  10852.   dynamic_linker='OS/2 ld.exe'
  10853.   shlibpath_var=LIBPATH
  10854.   ;;
  10855.  
  10856. osf3* | osf4* | osf5*)
  10857.   version_type=osf
  10858.   need_lib_prefix=no
  10859.   need_version=no
  10860.   soname_spec='${libname}${release}${shared_ext}$major'
  10861.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10862.   shlibpath_var=LD_LIBRARY_PATH
  10863.   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  10864.   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  10865.   ;;
  10866.  
  10867. rdos*)
  10868.   dynamic_linker=no
  10869.   ;;
  10870.  
  10871. solaris*)
  10872.   version_type=linux # correct to gnu/linux during the next big refactor
  10873.   need_lib_prefix=no
  10874.   need_version=no
  10875.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10876.   soname_spec='${libname}${release}${shared_ext}$major'
  10877.   shlibpath_var=LD_LIBRARY_PATH
  10878.   shlibpath_overrides_runpath=yes
  10879.   hardcode_into_libs=yes
  10880.   # ldd complains unless libraries are executable
  10881.   postinstall_cmds='chmod +x $lib'
  10882.   ;;
  10883.  
  10884. sunos4*)
  10885.   version_type=sunos
  10886.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10887.   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  10888.   shlibpath_var=LD_LIBRARY_PATH
  10889.   shlibpath_overrides_runpath=yes
  10890.   if test "$with_gnu_ld" = yes; then
  10891.     need_lib_prefix=no
  10892.   fi
  10893.   need_version=yes
  10894.   ;;
  10895.  
  10896. sysv4 | sysv4.3*)
  10897.   version_type=linux # correct to gnu/linux during the next big refactor
  10898.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10899.   soname_spec='${libname}${release}${shared_ext}$major'
  10900.   shlibpath_var=LD_LIBRARY_PATH
  10901.   case $host_vendor in
  10902.     sni)
  10903.       shlibpath_overrides_runpath=no
  10904.       need_lib_prefix=no
  10905.       runpath_var=LD_RUN_PATH
  10906.       ;;
  10907.     siemens)
  10908.       need_lib_prefix=no
  10909.       ;;
  10910.     motorola)
  10911.       need_lib_prefix=no
  10912.       need_version=no
  10913.       shlibpath_overrides_runpath=no
  10914.       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  10915.       ;;
  10916.   esac
  10917.   ;;
  10918.  
  10919. sysv4*MP*)
  10920.   if test -d /usr/nec ;then
  10921.     version_type=linux # correct to gnu/linux during the next big refactor
  10922.     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  10923.     soname_spec='$libname${shared_ext}.$major'
  10924.     shlibpath_var=LD_LIBRARY_PATH
  10925.   fi
  10926.   ;;
  10927.  
  10928. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  10929.   version_type=freebsd-elf
  10930.   need_lib_prefix=no
  10931.   need_version=no
  10932.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  10933.   soname_spec='${libname}${release}${shared_ext}$major'
  10934.   shlibpath_var=LD_LIBRARY_PATH
  10935.   shlibpath_overrides_runpath=yes
  10936.   hardcode_into_libs=yes
  10937.   if test "$with_gnu_ld" = yes; then
  10938.     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  10939.   else
  10940.     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  10941.     case $host_os in
  10942.       sco3.2v5*)
  10943.         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  10944.         ;;
  10945.     esac
  10946.   fi
  10947.   sys_lib_dlsearch_path_spec='/usr/lib'
  10948.   ;;
  10949.  
  10950. tpf*)
  10951.   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
  10952.   version_type=linux # correct to gnu/linux during the next big refactor
  10953.   need_lib_prefix=no
  10954.   need_version=no
  10955.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10956.   shlibpath_var=LD_LIBRARY_PATH
  10957.   shlibpath_overrides_runpath=no
  10958.   hardcode_into_libs=yes
  10959.   ;;
  10960.  
  10961. uts4*)
  10962.   version_type=linux # correct to gnu/linux during the next big refactor
  10963.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10964.   soname_spec='${libname}${release}${shared_ext}$major'
  10965.   shlibpath_var=LD_LIBRARY_PATH
  10966.   ;;
  10967.  
  10968. *)
  10969.   dynamic_linker=no
  10970.   ;;
  10971. esac
  10972. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  10973. $as_echo "$dynamic_linker" >&6; }
  10974. test "$dynamic_linker" = no && can_build_shared=no
  10975.  
  10976. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  10977. if test "$GCC" = yes; then
  10978.   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  10979. fi
  10980.  
  10981. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  10982.   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  10983. fi
  10984. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  10985.   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  10986. fi
  10987.  
  10988.  
  10989.  
  10990.  
  10991.  
  10992.  
  10993.  
  10994.  
  10995.  
  10996.  
  10997.  
  10998.  
  10999.  
  11000.  
  11001.  
  11002.  
  11003.  
  11004.  
  11005.  
  11006.  
  11007.  
  11008.  
  11009.  
  11010.  
  11011.  
  11012.  
  11013.  
  11014.  
  11015.  
  11016.  
  11017.  
  11018.  
  11019.  
  11020.  
  11021.  
  11022.  
  11023.  
  11024.  
  11025.  
  11026.  
  11027.  
  11028.  
  11029.  
  11030.  
  11031.  
  11032.  
  11033.  
  11034.  
  11035.  
  11036.  
  11037.  
  11038.  
  11039.  
  11040.  
  11041.  
  11042.  
  11043.  
  11044.  
  11045.  
  11046.  
  11047.  
  11048.  
  11049.  
  11050.  
  11051.  
  11052.  
  11053.  
  11054.  
  11055.  
  11056.  
  11057.  
  11058.  
  11059.  
  11060.  
  11061.  
  11062.  
  11063.  
  11064.  
  11065.  
  11066.  
  11067.  
  11068.  
  11069.  
  11070.  
  11071.  
  11072.  
  11073.  
  11074.  
  11075.  
  11076.  
  11077.  
  11078.  
  11079.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  11080. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  11081. hardcode_action=
  11082. if test -n "$hardcode_libdir_flag_spec" ||
  11083.    test -n "$runpath_var" ||
  11084.    test "X$hardcode_automatic" = "Xyes" ; then
  11085.  
  11086.   # We can hardcode non-existent directories.
  11087.   if test "$hardcode_direct" != no &&
  11088.      # If the only mechanism to avoid hardcoding is shlibpath_var, we
  11089.      # have to relink, otherwise we might link with an installed library
  11090.      # when we should be linking with a yet-to-be-installed one
  11091.      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  11092.      test "$hardcode_minus_L" != no; then
  11093.     # Linking always hardcodes the temporary library directory.
  11094.     hardcode_action=relink
  11095.   else
  11096.     # We can link without hardcoding, and we can hardcode nonexisting dirs.
  11097.     hardcode_action=immediate
  11098.   fi
  11099. else
  11100.   # We cannot hardcode anything, or else we can only hardcode existing
  11101.   # directories.
  11102.   hardcode_action=unsupported
  11103. fi
  11104. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  11105. $as_echo "$hardcode_action" >&6; }
  11106.  
  11107. if test "$hardcode_action" = relink ||
  11108.    test "$inherit_rpath" = yes; then
  11109.   # Fast installation is not supported
  11110.   enable_fast_install=no
  11111. elif test "$shlibpath_overrides_runpath" = yes ||
  11112.      test "$enable_shared" = no; then
  11113.   # Fast installation is not necessary
  11114.   enable_fast_install=needless
  11115. fi
  11116.  
  11117.  
  11118.  
  11119.  
  11120.  
  11121.  
  11122.   if test "x$enable_dlopen" != xyes; then
  11123.   enable_dlopen=unknown
  11124.   enable_dlopen_self=unknown
  11125.   enable_dlopen_self_static=unknown
  11126. else
  11127.   lt_cv_dlopen=no
  11128.   lt_cv_dlopen_libs=
  11129.  
  11130.   case $host_os in
  11131.   beos*)
  11132.     lt_cv_dlopen="load_add_on"
  11133.     lt_cv_dlopen_libs=
  11134.     lt_cv_dlopen_self=yes
  11135.     ;;
  11136.  
  11137.   mingw* | pw32* | cegcc*)
  11138.     lt_cv_dlopen="LoadLibrary"
  11139.     lt_cv_dlopen_libs=
  11140.     ;;
  11141.  
  11142.   cygwin*)
  11143.     lt_cv_dlopen="dlopen"
  11144.     lt_cv_dlopen_libs=
  11145.     ;;
  11146.  
  11147.   darwin*)
  11148.   # if libdl is installed we need to link against it
  11149.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  11150. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  11151. if ${ac_cv_lib_dl_dlopen+:} false; then :
  11152.   $as_echo_n "(cached) " >&6
  11153. else
  11154.   ac_check_lib_save_LIBS=$LIBS
  11155. LIBS="-ldl  $LIBS"
  11156. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11157. /* end confdefs.h.  */
  11158.  
  11159. /* Override any GCC internal prototype to avoid an error.
  11160.    Use char because int might match the return type of a GCC
  11161.    builtin and then its argument prototype would still apply.  */
  11162. #ifdef __cplusplus
  11163. extern "C"
  11164. #endif
  11165. char dlopen ();
  11166. int
  11167. main ()
  11168. {
  11169. return dlopen ();
  11170.   ;
  11171.   return 0;
  11172. }
  11173. _ACEOF
  11174. if ac_fn_c_try_link "$LINENO"; then :
  11175.   ac_cv_lib_dl_dlopen=yes
  11176. else
  11177.   ac_cv_lib_dl_dlopen=no
  11178. fi
  11179. rm -f core conftest.err conftest.$ac_objext \
  11180.     conftest$ac_exeext conftest.$ac_ext
  11181. LIBS=$ac_check_lib_save_LIBS
  11182. fi
  11183. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  11184. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  11185. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  11186.   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  11187. else
  11188.  
  11189.     lt_cv_dlopen="dyld"
  11190.     lt_cv_dlopen_libs=
  11191.     lt_cv_dlopen_self=yes
  11192.  
  11193. fi
  11194.  
  11195.     ;;
  11196.  
  11197.   *)
  11198.     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  11199. if test "x$ac_cv_func_shl_load" = xyes; then :
  11200.   lt_cv_dlopen="shl_load"
  11201. else
  11202.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  11203. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  11204. if ${ac_cv_lib_dld_shl_load+:} false; then :
  11205.   $as_echo_n "(cached) " >&6
  11206. else
  11207.   ac_check_lib_save_LIBS=$LIBS
  11208. LIBS="-ldld  $LIBS"
  11209. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11210. /* end confdefs.h.  */
  11211.  
  11212. /* Override any GCC internal prototype to avoid an error.
  11213.    Use char because int might match the return type of a GCC
  11214.    builtin and then its argument prototype would still apply.  */
  11215. #ifdef __cplusplus
  11216. extern "C"
  11217. #endif
  11218. char shl_load ();
  11219. int
  11220. main ()
  11221. {
  11222. return shl_load ();
  11223.   ;
  11224.   return 0;
  11225. }
  11226. _ACEOF
  11227. if ac_fn_c_try_link "$LINENO"; then :
  11228.   ac_cv_lib_dld_shl_load=yes
  11229. else
  11230.   ac_cv_lib_dld_shl_load=no
  11231. fi
  11232. rm -f core conftest.err conftest.$ac_objext \
  11233.     conftest$ac_exeext conftest.$ac_ext
  11234. LIBS=$ac_check_lib_save_LIBS
  11235. fi
  11236. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  11237. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  11238. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  11239.   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  11240. else
  11241.   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  11242. if test "x$ac_cv_func_dlopen" = xyes; then :
  11243.   lt_cv_dlopen="dlopen"
  11244. else
  11245.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  11246. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  11247. if ${ac_cv_lib_dl_dlopen+:} false; then :
  11248.   $as_echo_n "(cached) " >&6
  11249. else
  11250.   ac_check_lib_save_LIBS=$LIBS
  11251. LIBS="-ldl  $LIBS"
  11252. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11253. /* end confdefs.h.  */
  11254.  
  11255. /* Override any GCC internal prototype to avoid an error.
  11256.    Use char because int might match the return type of a GCC
  11257.    builtin and then its argument prototype would still apply.  */
  11258. #ifdef __cplusplus
  11259. extern "C"
  11260. #endif
  11261. char dlopen ();
  11262. int
  11263. main ()
  11264. {
  11265. return dlopen ();
  11266.   ;
  11267.   return 0;
  11268. }
  11269. _ACEOF
  11270. if ac_fn_c_try_link "$LINENO"; then :
  11271.   ac_cv_lib_dl_dlopen=yes
  11272. else
  11273.   ac_cv_lib_dl_dlopen=no
  11274. fi
  11275. rm -f core conftest.err conftest.$ac_objext \
  11276.     conftest$ac_exeext conftest.$ac_ext
  11277. LIBS=$ac_check_lib_save_LIBS
  11278. fi
  11279. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  11280. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  11281. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  11282.   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  11283. else
  11284.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  11285. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  11286. if ${ac_cv_lib_svld_dlopen+:} false; then :
  11287.   $as_echo_n "(cached) " >&6
  11288. else
  11289.   ac_check_lib_save_LIBS=$LIBS
  11290. LIBS="-lsvld  $LIBS"
  11291. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11292. /* end confdefs.h.  */
  11293.  
  11294. /* Override any GCC internal prototype to avoid an error.
  11295.    Use char because int might match the return type of a GCC
  11296.    builtin and then its argument prototype would still apply.  */
  11297. #ifdef __cplusplus
  11298. extern "C"
  11299. #endif
  11300. char dlopen ();
  11301. int
  11302. main ()
  11303. {
  11304. return dlopen ();
  11305.   ;
  11306.   return 0;
  11307. }
  11308. _ACEOF
  11309. if ac_fn_c_try_link "$LINENO"; then :
  11310.   ac_cv_lib_svld_dlopen=yes
  11311. else
  11312.   ac_cv_lib_svld_dlopen=no
  11313. fi
  11314. rm -f core conftest.err conftest.$ac_objext \
  11315.     conftest$ac_exeext conftest.$ac_ext
  11316. LIBS=$ac_check_lib_save_LIBS
  11317. fi
  11318. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  11319. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  11320. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  11321.   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  11322. else
  11323.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  11324. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  11325. if ${ac_cv_lib_dld_dld_link+:} false; then :
  11326.   $as_echo_n "(cached) " >&6
  11327. else
  11328.   ac_check_lib_save_LIBS=$LIBS
  11329. LIBS="-ldld  $LIBS"
  11330. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11331. /* end confdefs.h.  */
  11332.  
  11333. /* Override any GCC internal prototype to avoid an error.
  11334.    Use char because int might match the return type of a GCC
  11335.    builtin and then its argument prototype would still apply.  */
  11336. #ifdef __cplusplus
  11337. extern "C"
  11338. #endif
  11339. char dld_link ();
  11340. int
  11341. main ()
  11342. {
  11343. return dld_link ();
  11344.   ;
  11345.   return 0;
  11346. }
  11347. _ACEOF
  11348. if ac_fn_c_try_link "$LINENO"; then :
  11349.   ac_cv_lib_dld_dld_link=yes
  11350. else
  11351.   ac_cv_lib_dld_dld_link=no
  11352. fi
  11353. rm -f core conftest.err conftest.$ac_objext \
  11354.     conftest$ac_exeext conftest.$ac_ext
  11355. LIBS=$ac_check_lib_save_LIBS
  11356. fi
  11357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  11358. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  11359. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  11360.   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  11361. fi
  11362.  
  11363.  
  11364. fi
  11365.  
  11366.  
  11367. fi
  11368.  
  11369.  
  11370. fi
  11371.  
  11372.  
  11373. fi
  11374.  
  11375.  
  11376. fi
  11377.  
  11378.     ;;
  11379.   esac
  11380.  
  11381.   if test "x$lt_cv_dlopen" != xno; then
  11382.     enable_dlopen=yes
  11383.   else
  11384.     enable_dlopen=no
  11385.   fi
  11386.  
  11387.   case $lt_cv_dlopen in
  11388.   dlopen)
  11389.     save_CPPFLAGS="$CPPFLAGS"
  11390.     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  11391.  
  11392.     save_LDFLAGS="$LDFLAGS"
  11393.     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  11394.  
  11395.     save_LIBS="$LIBS"
  11396.     LIBS="$lt_cv_dlopen_libs $LIBS"
  11397.  
  11398.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  11399. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  11400. if ${lt_cv_dlopen_self+:} false; then :
  11401.   $as_echo_n "(cached) " >&6
  11402. else
  11403.           if test "$cross_compiling" = yes; then :
  11404.   lt_cv_dlopen_self=cross
  11405. else
  11406.   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  11407.   lt_status=$lt_dlunknown
  11408.   cat > conftest.$ac_ext <<_LT_EOF
  11409. #line $LINENO "configure"
  11410. #include "confdefs.h"
  11411.  
  11412. #if HAVE_DLFCN_H
  11413. #include <dlfcn.h>
  11414. #endif
  11415.  
  11416. #include <stdio.h>
  11417.  
  11418. #ifdef RTLD_GLOBAL
  11419. #  define LT_DLGLOBAL           RTLD_GLOBAL
  11420. #else
  11421. #  ifdef DL_GLOBAL
  11422. #    define LT_DLGLOBAL         DL_GLOBAL
  11423. #  else
  11424. #    define LT_DLGLOBAL         0
  11425. #  endif
  11426. #endif
  11427.  
  11428. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  11429.    find out it does not work in some platform. */
  11430. #ifndef LT_DLLAZY_OR_NOW
  11431. #  ifdef RTLD_LAZY
  11432. #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
  11433. #  else
  11434. #    ifdef DL_LAZY
  11435. #      define LT_DLLAZY_OR_NOW          DL_LAZY
  11436. #    else
  11437. #      ifdef RTLD_NOW
  11438. #        define LT_DLLAZY_OR_NOW        RTLD_NOW
  11439. #      else
  11440. #        ifdef DL_NOW
  11441. #          define LT_DLLAZY_OR_NOW      DL_NOW
  11442. #        else
  11443. #          define LT_DLLAZY_OR_NOW      0
  11444. #        endif
  11445. #      endif
  11446. #    endif
  11447. #  endif
  11448. #endif
  11449.  
  11450. /* When -fvisbility=hidden is used, assume the code has been annotated
  11451.    correspondingly for the symbols needed.  */
  11452. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  11453. int fnord () __attribute__((visibility("default")));
  11454. #endif
  11455.  
  11456. int fnord () { return 42; }
  11457. int main ()
  11458. {
  11459.   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  11460.   int status = $lt_dlunknown;
  11461.  
  11462.   if (self)
  11463.     {
  11464.       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
  11465.       else
  11466.         {
  11467.           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
  11468.           else puts (dlerror ());
  11469.         }
  11470.       /* dlclose (self); */
  11471.     }
  11472.   else
  11473.     puts (dlerror ());
  11474.  
  11475.   return status;
  11476. }
  11477. _LT_EOF
  11478.   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11479.   (eval $ac_link) 2>&5
  11480.   ac_status=$?
  11481.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11482.   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  11483.     (./conftest; exit; ) >&5 2>/dev/null
  11484.     lt_status=$?
  11485.     case x$lt_status in
  11486.       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  11487.       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  11488.       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  11489.     esac
  11490.   else :
  11491.     # compilation failed
  11492.     lt_cv_dlopen_self=no
  11493.   fi
  11494. fi
  11495. rm -fr conftest*
  11496.  
  11497.  
  11498. fi
  11499. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  11500. $as_echo "$lt_cv_dlopen_self" >&6; }
  11501.  
  11502.     if test "x$lt_cv_dlopen_self" = xyes; then
  11503.       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  11504.       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  11505. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  11506. if ${lt_cv_dlopen_self_static+:} false; then :
  11507.   $as_echo_n "(cached) " >&6
  11508. else
  11509.           if test "$cross_compiling" = yes; then :
  11510.   lt_cv_dlopen_self_static=cross
  11511. else
  11512.   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  11513.   lt_status=$lt_dlunknown
  11514.   cat > conftest.$ac_ext <<_LT_EOF
  11515. #line $LINENO "configure"
  11516. #include "confdefs.h"
  11517.  
  11518. #if HAVE_DLFCN_H
  11519. #include <dlfcn.h>
  11520. #endif
  11521.  
  11522. #include <stdio.h>
  11523.  
  11524. #ifdef RTLD_GLOBAL
  11525. #  define LT_DLGLOBAL           RTLD_GLOBAL
  11526. #else
  11527. #  ifdef DL_GLOBAL
  11528. #    define LT_DLGLOBAL         DL_GLOBAL
  11529. #  else
  11530. #    define LT_DLGLOBAL         0
  11531. #  endif
  11532. #endif
  11533.  
  11534. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  11535.    find out it does not work in some platform. */
  11536. #ifndef LT_DLLAZY_OR_NOW
  11537. #  ifdef RTLD_LAZY
  11538. #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
  11539. #  else
  11540. #    ifdef DL_LAZY
  11541. #      define LT_DLLAZY_OR_NOW          DL_LAZY
  11542. #    else
  11543. #      ifdef RTLD_NOW
  11544. #        define LT_DLLAZY_OR_NOW        RTLD_NOW
  11545. #      else
  11546. #        ifdef DL_NOW
  11547. #          define LT_DLLAZY_OR_NOW      DL_NOW
  11548. #        else
  11549. #          define LT_DLLAZY_OR_NOW      0
  11550. #        endif
  11551. #      endif
  11552. #    endif
  11553. #  endif
  11554. #endif
  11555.  
  11556. /* When -fvisbility=hidden is used, assume the code has been annotated
  11557.    correspondingly for the symbols needed.  */
  11558. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  11559. int fnord () __attribute__((visibility("default")));
  11560. #endif
  11561.  
  11562. int fnord () { return 42; }
  11563. int main ()
  11564. {
  11565.   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  11566.   int status = $lt_dlunknown;
  11567.  
  11568.   if (self)
  11569.     {
  11570.       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
  11571.       else
  11572.         {
  11573.           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
  11574.           else puts (dlerror ());
  11575.         }
  11576.       /* dlclose (self); */
  11577.     }
  11578.   else
  11579.     puts (dlerror ());
  11580.  
  11581.   return status;
  11582. }
  11583. _LT_EOF
  11584.   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11585.   (eval $ac_link) 2>&5
  11586.   ac_status=$?
  11587.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11588.   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  11589.     (./conftest; exit; ) >&5 2>/dev/null
  11590.     lt_status=$?
  11591.     case x$lt_status in
  11592.       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  11593.       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  11594.       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  11595.     esac
  11596.   else :
  11597.     # compilation failed
  11598.     lt_cv_dlopen_self_static=no
  11599.   fi
  11600. fi
  11601. rm -fr conftest*
  11602.  
  11603.  
  11604. fi
  11605. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  11606. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  11607.     fi
  11608.  
  11609.     CPPFLAGS="$save_CPPFLAGS"
  11610.     LDFLAGS="$save_LDFLAGS"
  11611.     LIBS="$save_LIBS"
  11612.     ;;
  11613.   esac
  11614.  
  11615.   case $lt_cv_dlopen_self in
  11616.   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  11617.   *) enable_dlopen_self=unknown ;;
  11618.   esac
  11619.  
  11620.   case $lt_cv_dlopen_self_static in
  11621.   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  11622.   *) enable_dlopen_self_static=unknown ;;
  11623.   esac
  11624. fi
  11625.  
  11626.  
  11627.  
  11628.  
  11629.  
  11630.  
  11631.  
  11632.  
  11633.  
  11634.  
  11635.  
  11636.  
  11637.  
  11638.  
  11639.  
  11640.  
  11641.  
  11642. striplib=
  11643. old_striplib=
  11644. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  11645. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  11646. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  11647.   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  11648.   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  11649.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11650. $as_echo "yes" >&6; }
  11651. else
  11652. # FIXME - insert some real tests, host_os isn't really good enough
  11653.   case $host_os in
  11654.   darwin*)
  11655.     if test -n "$STRIP" ; then
  11656.       striplib="$STRIP -x"
  11657.       old_striplib="$STRIP -S"
  11658.       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11659. $as_echo "yes" >&6; }
  11660.     else
  11661.       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11662. $as_echo "no" >&6; }
  11663.     fi
  11664.     ;;
  11665.   *)
  11666.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11667. $as_echo "no" >&6; }
  11668.     ;;
  11669.   esac
  11670. fi
  11671.  
  11672.  
  11673.  
  11674.  
  11675.  
  11676.  
  11677.  
  11678.  
  11679.  
  11680.  
  11681.  
  11682.  
  11683.   # Report which library types will actually be built
  11684.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  11685. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  11686.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  11687. $as_echo "$can_build_shared" >&6; }
  11688.  
  11689.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  11690. $as_echo_n "checking whether to build shared libraries... " >&6; }
  11691.   test "$can_build_shared" = "no" && enable_shared=no
  11692.  
  11693.   # On AIX, shared libraries and static libraries use the same namespace, and
  11694.   # are all built from PIC.
  11695.   case $host_os in
  11696.   aix3*)
  11697.     test "$enable_shared" = yes && enable_static=no
  11698.     if test -n "$RANLIB"; then
  11699.       archive_cmds="$archive_cmds~\$RANLIB \$lib"
  11700.       postinstall_cmds='$RANLIB $lib'
  11701.     fi
  11702.     ;;
  11703.  
  11704.   aix[4-9]*)
  11705.     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  11706.       test "$enable_shared" = yes && enable_static=no
  11707.     fi
  11708.     ;;
  11709.   esac
  11710.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  11711. $as_echo "$enable_shared" >&6; }
  11712.  
  11713.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  11714. $as_echo_n "checking whether to build static libraries... " >&6; }
  11715.   # Make sure either enable_shared or enable_static is yes.
  11716.   test "$enable_shared" = yes || enable_static=yes
  11717.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  11718. $as_echo "$enable_static" >&6; }
  11719.  
  11720.  
  11721.  
  11722.  
  11723. fi
  11724. ac_ext=c
  11725. ac_cpp='$CPP $CPPFLAGS'
  11726. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11727. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11728. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11729.  
  11730. CC="$lt_save_CC"
  11731.  
  11732.  
  11733.  
  11734.  
  11735.  
  11736.  
  11737.  
  11738.  
  11739.  
  11740.  
  11741.  
  11742.  
  11743.  
  11744.  
  11745.  
  11746.         ac_config_commands="$ac_config_commands libtool"
  11747.  
  11748.  
  11749.  
  11750.  
  11751. # Only expand once:
  11752.  
  11753.  
  11754. ac_ext=c
  11755. ac_cpp='$CPP $CPPFLAGS'
  11756. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11757. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11758. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11759. if test -n "$ac_tool_prefix"; then
  11760.   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  11761. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  11762. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11763. $as_echo_n "checking for $ac_word... " >&6; }
  11764. if ${ac_cv_prog_CC+:} false; then :
  11765.   $as_echo_n "(cached) " >&6
  11766. else
  11767.   if test -n "$CC"; then
  11768.   ac_cv_prog_CC="$CC" # Let the user override the test.
  11769. else
  11770. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11771. for as_dir in $PATH
  11772. do
  11773.   IFS=$as_save_IFS
  11774.   test -z "$as_dir" && as_dir=.
  11775.     for ac_exec_ext in '' $ac_executable_extensions; do
  11776.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11777.     ac_cv_prog_CC="${ac_tool_prefix}gcc"
  11778.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11779.     break 2
  11780.   fi
  11781. done
  11782.   done
  11783. IFS=$as_save_IFS
  11784.  
  11785. fi
  11786. fi
  11787. CC=$ac_cv_prog_CC
  11788. if test -n "$CC"; then
  11789.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11790. $as_echo "$CC" >&6; }
  11791. else
  11792.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11793. $as_echo "no" >&6; }
  11794. fi
  11795.  
  11796.  
  11797. fi
  11798. if test -z "$ac_cv_prog_CC"; then
  11799.   ac_ct_CC=$CC
  11800.   # Extract the first word of "gcc", so it can be a program name with args.
  11801. set dummy gcc; ac_word=$2
  11802. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11803. $as_echo_n "checking for $ac_word... " >&6; }
  11804. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  11805.   $as_echo_n "(cached) " >&6
  11806. else
  11807.   if test -n "$ac_ct_CC"; then
  11808.   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  11809. else
  11810. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11811. for as_dir in $PATH
  11812. do
  11813.   IFS=$as_save_IFS
  11814.   test -z "$as_dir" && as_dir=.
  11815.     for ac_exec_ext in '' $ac_executable_extensions; do
  11816.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11817.     ac_cv_prog_ac_ct_CC="gcc"
  11818.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11819.     break 2
  11820.   fi
  11821. done
  11822.   done
  11823. IFS=$as_save_IFS
  11824.  
  11825. fi
  11826. fi
  11827. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  11828. if test -n "$ac_ct_CC"; then
  11829.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  11830. $as_echo "$ac_ct_CC" >&6; }
  11831. else
  11832.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11833. $as_echo "no" >&6; }
  11834. fi
  11835.  
  11836.   if test "x$ac_ct_CC" = x; then
  11837.     CC=""
  11838.   else
  11839.     case $cross_compiling:$ac_tool_warned in
  11840. yes:)
  11841. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11842. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11843. ac_tool_warned=yes ;;
  11844. esac
  11845.     CC=$ac_ct_CC
  11846.   fi
  11847. else
  11848.   CC="$ac_cv_prog_CC"
  11849. fi
  11850.  
  11851. if test -z "$CC"; then
  11852.           if test -n "$ac_tool_prefix"; then
  11853.     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  11854. set dummy ${ac_tool_prefix}cc; ac_word=$2
  11855. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11856. $as_echo_n "checking for $ac_word... " >&6; }
  11857. if ${ac_cv_prog_CC+:} false; then :
  11858.   $as_echo_n "(cached) " >&6
  11859. else
  11860.   if test -n "$CC"; then
  11861.   ac_cv_prog_CC="$CC" # Let the user override the test.
  11862. else
  11863. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11864. for as_dir in $PATH
  11865. do
  11866.   IFS=$as_save_IFS
  11867.   test -z "$as_dir" && as_dir=.
  11868.     for ac_exec_ext in '' $ac_executable_extensions; do
  11869.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11870.     ac_cv_prog_CC="${ac_tool_prefix}cc"
  11871.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11872.     break 2
  11873.   fi
  11874. done
  11875.   done
  11876. IFS=$as_save_IFS
  11877.  
  11878. fi
  11879. fi
  11880. CC=$ac_cv_prog_CC
  11881. if test -n "$CC"; then
  11882.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11883. $as_echo "$CC" >&6; }
  11884. else
  11885.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11886. $as_echo "no" >&6; }
  11887. fi
  11888.  
  11889.  
  11890.   fi
  11891. fi
  11892. if test -z "$CC"; then
  11893.   # Extract the first word of "cc", so it can be a program name with args.
  11894. set dummy cc; ac_word=$2
  11895. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11896. $as_echo_n "checking for $ac_word... " >&6; }
  11897. if ${ac_cv_prog_CC+:} false; then :
  11898.   $as_echo_n "(cached) " >&6
  11899. else
  11900.   if test -n "$CC"; then
  11901.   ac_cv_prog_CC="$CC" # Let the user override the test.
  11902. else
  11903.   ac_prog_rejected=no
  11904. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11905. for as_dir in $PATH
  11906. do
  11907.   IFS=$as_save_IFS
  11908.   test -z "$as_dir" && as_dir=.
  11909.     for ac_exec_ext in '' $ac_executable_extensions; do
  11910.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11911.     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  11912.        ac_prog_rejected=yes
  11913.        continue
  11914.      fi
  11915.     ac_cv_prog_CC="cc"
  11916.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11917.     break 2
  11918.   fi
  11919. done
  11920.   done
  11921. IFS=$as_save_IFS
  11922.  
  11923. if test $ac_prog_rejected = yes; then
  11924.   # We found a bogon in the path, so make sure we never use it.
  11925.   set dummy $ac_cv_prog_CC
  11926.   shift
  11927.   if test $# != 0; then
  11928.     # We chose a different compiler from the bogus one.
  11929.     # However, it has the same basename, so the bogon will be chosen
  11930.     # first if we set CC to just the basename; use the full file name.
  11931.     shift
  11932.     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  11933.   fi
  11934. fi
  11935. fi
  11936. fi
  11937. CC=$ac_cv_prog_CC
  11938. if test -n "$CC"; then
  11939.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11940. $as_echo "$CC" >&6; }
  11941. else
  11942.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11943. $as_echo "no" >&6; }
  11944. fi
  11945.  
  11946.  
  11947. fi
  11948. if test -z "$CC"; then
  11949.   if test -n "$ac_tool_prefix"; then
  11950.   for ac_prog in cl.exe
  11951.   do
  11952.     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  11953. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  11954. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11955. $as_echo_n "checking for $ac_word... " >&6; }
  11956. if ${ac_cv_prog_CC+:} false; then :
  11957.   $as_echo_n "(cached) " >&6
  11958. else
  11959.   if test -n "$CC"; then
  11960.   ac_cv_prog_CC="$CC" # Let the user override the test.
  11961. else
  11962. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11963. for as_dir in $PATH
  11964. do
  11965.   IFS=$as_save_IFS
  11966.   test -z "$as_dir" && as_dir=.
  11967.     for ac_exec_ext in '' $ac_executable_extensions; do
  11968.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11969.     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  11970.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11971.     break 2
  11972.   fi
  11973. done
  11974.   done
  11975. IFS=$as_save_IFS
  11976.  
  11977. fi
  11978. fi
  11979. CC=$ac_cv_prog_CC
  11980. if test -n "$CC"; then
  11981.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11982. $as_echo "$CC" >&6; }
  11983. else
  11984.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11985. $as_echo "no" >&6; }
  11986. fi
  11987.  
  11988.  
  11989.     test -n "$CC" && break
  11990.   done
  11991. fi
  11992. if test -z "$CC"; then
  11993.   ac_ct_CC=$CC
  11994.   for ac_prog in cl.exe
  11995. do
  11996.   # Extract the first word of "$ac_prog", so it can be a program name with args.
  11997. set dummy $ac_prog; ac_word=$2
  11998. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11999. $as_echo_n "checking for $ac_word... " >&6; }
  12000. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  12001.   $as_echo_n "(cached) " >&6
  12002. else
  12003.   if test -n "$ac_ct_CC"; then
  12004.   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  12005. else
  12006. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12007. for as_dir in $PATH
  12008. do
  12009.   IFS=$as_save_IFS
  12010.   test -z "$as_dir" && as_dir=.
  12011.     for ac_exec_ext in '' $ac_executable_extensions; do
  12012.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12013.     ac_cv_prog_ac_ct_CC="$ac_prog"
  12014.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12015.     break 2
  12016.   fi
  12017. done
  12018.   done
  12019. IFS=$as_save_IFS
  12020.  
  12021. fi
  12022. fi
  12023. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  12024. if test -n "$ac_ct_CC"; then
  12025.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  12026. $as_echo "$ac_ct_CC" >&6; }
  12027. else
  12028.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12029. $as_echo "no" >&6; }
  12030. fi
  12031.  
  12032.  
  12033.   test -n "$ac_ct_CC" && break
  12034. done
  12035.  
  12036.   if test "x$ac_ct_CC" = x; then
  12037.     CC=""
  12038.   else
  12039.     case $cross_compiling:$ac_tool_warned in
  12040. yes:)
  12041. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  12042. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  12043. ac_tool_warned=yes ;;
  12044. esac
  12045.     CC=$ac_ct_CC
  12046.   fi
  12047. fi
  12048.  
  12049. fi
  12050.  
  12051.  
  12052. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12053. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  12054. as_fn_error $? "no acceptable C compiler found in \$PATH
  12055. See \`config.log' for more details" "$LINENO" 5; }
  12056.  
  12057. # Provide some information about the compiler.
  12058. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  12059. set X $ac_compile
  12060. ac_compiler=$2
  12061. for ac_option in --version -v -V -qversion; do
  12062.   { { ac_try="$ac_compiler $ac_option >&5"
  12063. case "(($ac_try" in
  12064.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12065.   *) ac_try_echo=$ac_try;;
  12066. esac
  12067. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  12068. $as_echo "$ac_try_echo"; } >&5
  12069.   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  12070.   ac_status=$?
  12071.   if test -s conftest.err; then
  12072.     sed '10a\
  12073. ... rest of stderr output deleted ...
  12074.          10q' conftest.err >conftest.er1
  12075.     cat conftest.er1 >&5
  12076.   fi
  12077.   rm -f conftest.er1 conftest.err
  12078.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12079.   test $ac_status = 0; }
  12080. done
  12081.  
  12082. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  12083. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  12084. if ${ac_cv_c_compiler_gnu+:} false; then :
  12085.   $as_echo_n "(cached) " >&6
  12086. else
  12087.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12088. /* end confdefs.h.  */
  12089.  
  12090. int
  12091. main ()
  12092. {
  12093. #ifndef __GNUC__
  12094.        choke me
  12095. #endif
  12096.  
  12097.   ;
  12098.   return 0;
  12099. }
  12100. _ACEOF
  12101. if ac_fn_c_try_compile "$LINENO"; then :
  12102.   ac_compiler_gnu=yes
  12103. else
  12104.   ac_compiler_gnu=no
  12105. fi
  12106. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12107. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  12108.  
  12109. fi
  12110. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  12111. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  12112. if test $ac_compiler_gnu = yes; then
  12113.   GCC=yes
  12114. else
  12115.   GCC=
  12116. fi
  12117. ac_test_CFLAGS=${CFLAGS+set}
  12118. ac_save_CFLAGS=$CFLAGS
  12119. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  12120. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  12121. if ${ac_cv_prog_cc_g+:} false; then :
  12122.   $as_echo_n "(cached) " >&6
  12123. else
  12124.   ac_save_c_werror_flag=$ac_c_werror_flag
  12125.    ac_c_werror_flag=yes
  12126.    ac_cv_prog_cc_g=no
  12127.    CFLAGS="-g"
  12128.    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12129. /* end confdefs.h.  */
  12130.  
  12131. int
  12132. main ()
  12133. {
  12134.  
  12135.   ;
  12136.   return 0;
  12137. }
  12138. _ACEOF
  12139. if ac_fn_c_try_compile "$LINENO"; then :
  12140.   ac_cv_prog_cc_g=yes
  12141. else
  12142.   CFLAGS=""
  12143.       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12144. /* end confdefs.h.  */
  12145.  
  12146. int
  12147. main ()
  12148. {
  12149.  
  12150.   ;
  12151.   return 0;
  12152. }
  12153. _ACEOF
  12154. if ac_fn_c_try_compile "$LINENO"; then :
  12155.  
  12156. else
  12157.   ac_c_werror_flag=$ac_save_c_werror_flag
  12158.          CFLAGS="-g"
  12159.          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12160. /* end confdefs.h.  */
  12161.  
  12162. int
  12163. main ()
  12164. {
  12165.  
  12166.   ;
  12167.   return 0;
  12168. }
  12169. _ACEOF
  12170. if ac_fn_c_try_compile "$LINENO"; then :
  12171.   ac_cv_prog_cc_g=yes
  12172. fi
  12173. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12174. fi
  12175. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12176. fi
  12177. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12178.    ac_c_werror_flag=$ac_save_c_werror_flag
  12179. fi
  12180. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  12181. $as_echo "$ac_cv_prog_cc_g" >&6; }
  12182. if test "$ac_test_CFLAGS" = set; then
  12183.   CFLAGS=$ac_save_CFLAGS
  12184. elif test $ac_cv_prog_cc_g = yes; then
  12185.   if test "$GCC" = yes; then
  12186.     CFLAGS="-g -O2"
  12187.   else
  12188.     CFLAGS="-g"
  12189.   fi
  12190. else
  12191.   if test "$GCC" = yes; then
  12192.     CFLAGS="-O2"
  12193.   else
  12194.     CFLAGS=
  12195.   fi
  12196. fi
  12197. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  12198. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  12199. if ${ac_cv_prog_cc_c89+:} false; then :
  12200.   $as_echo_n "(cached) " >&6
  12201. else
  12202.   ac_cv_prog_cc_c89=no
  12203. ac_save_CC=$CC
  12204. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12205. /* end confdefs.h.  */
  12206. #include <stdarg.h>
  12207. #include <stdio.h>
  12208. struct stat;
  12209. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  12210. struct buf { int x; };
  12211. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  12212. static char *e (p, i)
  12213.      char **p;
  12214.      int i;
  12215. {
  12216.   return p[i];
  12217. }
  12218. static char *f (char * (*g) (char **, int), char **p, ...)
  12219. {
  12220.   char *s;
  12221.   va_list v;
  12222.   va_start (v,p);
  12223.   s = g (p, va_arg (v,int));
  12224.   va_end (v);
  12225.   return s;
  12226. }
  12227.  
  12228. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
  12229.    function prototypes and stuff, but not '\xHH' hex character constants.
  12230.    These don't provoke an error unfortunately, instead are silently treated
  12231.    as 'x'.  The following induces an error, until -std is added to get
  12232.    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
  12233.    array size at least.  It's necessary to write '\x00'==0 to get something
  12234.    that's true only with -std.  */
  12235. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  12236.  
  12237. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  12238.    inside strings and character constants.  */
  12239. #define FOO(x) 'x'
  12240. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  12241.  
  12242. int test (int i, double x);
  12243. struct s1 {int (*f) (int a);};
  12244. struct s2 {int (*f) (double a);};
  12245. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  12246. int argc;
  12247. char **argv;
  12248. int
  12249. main ()
  12250. {
  12251. return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  12252.   ;
  12253.   return 0;
  12254. }
  12255. _ACEOF
  12256. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  12257.         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  12258. do
  12259.   CC="$ac_save_CC $ac_arg"
  12260.   if ac_fn_c_try_compile "$LINENO"; then :
  12261.   ac_cv_prog_cc_c89=$ac_arg
  12262. fi
  12263. rm -f core conftest.err conftest.$ac_objext
  12264.   test "x$ac_cv_prog_cc_c89" != "xno" && break
  12265. done
  12266. rm -f conftest.$ac_ext
  12267. CC=$ac_save_CC
  12268.  
  12269. fi
  12270. # AC_CACHE_VAL
  12271. case "x$ac_cv_prog_cc_c89" in
  12272.   x)
  12273.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  12274. $as_echo "none needed" >&6; } ;;
  12275.   xno)
  12276.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  12277. $as_echo "unsupported" >&6; } ;;
  12278.   *)
  12279.     CC="$CC $ac_cv_prog_cc_c89"
  12280.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  12281. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  12282. esac
  12283. if test "x$ac_cv_prog_cc_c89" != xno; then :
  12284.  
  12285. fi
  12286.  
  12287. ac_ext=c
  12288. ac_cpp='$CPP $CPPFLAGS'
  12289. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12290. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12291. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12292.  
  12293. ac_ext=c
  12294. ac_cpp='$CPP $CPPFLAGS'
  12295. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12296. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12297. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12298. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  12299. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  12300. if ${am_cv_prog_cc_c_o+:} false; then :
  12301.   $as_echo_n "(cached) " >&6
  12302. else
  12303.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12304. /* end confdefs.h.  */
  12305.  
  12306. int
  12307. main ()
  12308. {
  12309.  
  12310.   ;
  12311.   return 0;
  12312. }
  12313. _ACEOF
  12314.   # Make sure it works both with $CC and with simple cc.
  12315.   # Following AC_PROG_CC_C_O, we do the test twice because some
  12316.   # compilers refuse to overwrite an existing .o file with -o,
  12317.   # though they will create one.
  12318.   am_cv_prog_cc_c_o=yes
  12319.   for am_i in 1 2; do
  12320.     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  12321.    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  12322.    ac_status=$?
  12323.    echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12324.    (exit $ac_status); } \
  12325.          && test -f conftest2.$ac_objext; then
  12326.       : OK
  12327.     else
  12328.       am_cv_prog_cc_c_o=no
  12329.       break
  12330.     fi
  12331.   done
  12332.   rm -f core conftest*
  12333.   unset am_i
  12334. fi
  12335. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  12336. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  12337. if test "$am_cv_prog_cc_c_o" != yes; then
  12338.    # Losing compiler, so override with the script.
  12339.    # FIXME: It is wrong to rewrite CC.
  12340.    # But if we don't then we get into trouble of one sort or another.
  12341.    # A longer-term fix would be to have automake use am__CC in this case,
  12342.    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  12343.    CC="$am_aux_dir/compile $CC"
  12344. fi
  12345. ac_ext=c
  12346. ac_cpp='$CPP $CPPFLAGS'
  12347. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12348. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12349. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12350.  
  12351.  
  12352. depcc="$CC"   am_compiler_list=
  12353.  
  12354. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  12355. $as_echo_n "checking dependency style of $depcc... " >&6; }
  12356. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  12357.   $as_echo_n "(cached) " >&6
  12358. else
  12359.   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  12360.   # We make a subdir and do the tests there.  Otherwise we can end up
  12361.   # making bogus files that we don't know about and never remove.  For
  12362.   # instance it was reported that on HP-UX the gcc test will end up
  12363.   # making a dummy file named 'D' -- because '-MD' means "put the output
  12364.   # in D".
  12365.   rm -rf conftest.dir
  12366.   mkdir conftest.dir
  12367.   # Copy depcomp to subdir because otherwise we won't find it if we're
  12368.   # using a relative directory.
  12369.   cp "$am_depcomp" conftest.dir
  12370.   cd conftest.dir
  12371.   # We will build objects and dependencies in a subdirectory because
  12372.   # it helps to detect inapplicable dependency modes.  For instance
  12373.   # both Tru64's cc and ICC support -MD to output dependencies as a
  12374.   # side effect of compilation, but ICC will put the dependencies in
  12375.   # the current directory while Tru64 will put them in the object
  12376.   # directory.
  12377.   mkdir sub
  12378.  
  12379.   am_cv_CC_dependencies_compiler_type=none
  12380.   if test "$am_compiler_list" = ""; then
  12381.      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  12382.   fi
  12383.   am__universal=false
  12384.   case " $depcc " in #(
  12385.      *\ -arch\ *\ -arch\ *) am__universal=true ;;
  12386.      esac
  12387.  
  12388.   for depmode in $am_compiler_list; do
  12389.     # Setup a source with many dependencies, because some compilers
  12390.     # like to wrap large dependency lists on column 80 (with \), and
  12391.     # we should not choose a depcomp mode which is confused by this.
  12392.     #
  12393.     # We need to recreate these files for each test, as the compiler may
  12394.     # overwrite some of them when testing with obscure command lines.
  12395.     # This happens at least with the AIX C compiler.
  12396.     : > sub/conftest.c
  12397.     for i in 1 2 3 4 5 6; do
  12398.       echo '#include "conftst'$i'.h"' >> sub/conftest.c
  12399.       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  12400.       # Solaris 10 /bin/sh.
  12401.       echo '/* dummy */' > sub/conftst$i.h
  12402.     done
  12403.     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  12404.  
  12405.     # We check with '-c' and '-o' for the sake of the "dashmstdout"
  12406.     # mode.  It turns out that the SunPro C++ compiler does not properly
  12407.     # handle '-M -o', and we need to detect this.  Also, some Intel
  12408.     # versions had trouble with output in subdirs.
  12409.     am__obj=sub/conftest.${OBJEXT-o}
  12410.     am__minus_obj="-o $am__obj"
  12411.     case $depmode in
  12412.     gcc)
  12413.       # This depmode causes a compiler race in universal mode.
  12414.       test "$am__universal" = false || continue
  12415.       ;;
  12416.     nosideeffect)
  12417.       # After this tag, mechanisms are not by side-effect, so they'll
  12418.       # only be used when explicitly requested.
  12419.       if test "x$enable_dependency_tracking" = xyes; then
  12420.         continue
  12421.       else
  12422.         break
  12423.       fi
  12424.       ;;
  12425.     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  12426.       # This compiler won't grok '-c -o', but also, the minuso test has
  12427.       # not run yet.  These depmodes are late enough in the game, and
  12428.       # so weak that their functioning should not be impacted.
  12429.       am__obj=conftest.${OBJEXT-o}
  12430.       am__minus_obj=
  12431.       ;;
  12432.     none) break ;;
  12433.     esac
  12434.     if depmode=$depmode \
  12435.        source=sub/conftest.c object=$am__obj \
  12436.        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  12437.        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  12438.          >/dev/null 2>conftest.err &&
  12439.        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  12440.        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  12441.        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  12442.        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  12443.       # icc doesn't choke on unknown options, it will just issue warnings
  12444.       # or remarks (even with -Werror).  So we grep stderr for any message
  12445.       # that says an option was ignored or not supported.
  12446.       # When given -MP, icc 7.0 and 7.1 complain thusly:
  12447.       #   icc: Command line warning: ignoring option '-M'; no argument required
  12448.       # The diagnosis changed in icc 8.0:
  12449.       #   icc: Command line remark: option '-MP' not supported
  12450.       if (grep 'ignoring option' conftest.err ||
  12451.           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  12452.         am_cv_CC_dependencies_compiler_type=$depmode
  12453.         break
  12454.       fi
  12455.     fi
  12456.   done
  12457.  
  12458.   cd ..
  12459.   rm -rf conftest.dir
  12460. else
  12461.   am_cv_CC_dependencies_compiler_type=none
  12462. fi
  12463.  
  12464. fi
  12465. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  12466. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  12467. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  12468.  
  12469.  if
  12470.   test "x$enable_dependency_tracking" != xno \
  12471.   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  12472.   am__fastdepCC_TRUE=
  12473.   am__fastdepCC_FALSE='#'
  12474. else
  12475.   am__fastdepCC_TRUE='#'
  12476.   am__fastdepCC_FALSE=
  12477. fi
  12478.  
  12479.  
  12480.  
  12481.  
  12482.  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  12483. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  12484. if ${ac_cv_c_bigendian+:} false; then :
  12485.   $as_echo_n "(cached) " >&6
  12486. else
  12487.   ac_cv_c_bigendian=unknown
  12488.     # See if we're dealing with a universal compiler.
  12489.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12490. /* end confdefs.h.  */
  12491. #ifndef __APPLE_CC__
  12492.                not a universal capable compiler
  12493.              #endif
  12494.              typedef int dummy;
  12495.  
  12496. _ACEOF
  12497. if ac_fn_c_try_compile "$LINENO"; then :
  12498.  
  12499.         # Check for potential -arch flags.  It is not universal unless
  12500.         # there are at least two -arch flags with different values.
  12501.         ac_arch=
  12502.         ac_prev=
  12503.         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  12504.          if test -n "$ac_prev"; then
  12505.            case $ac_word in
  12506.              i?86 | x86_64 | ppc | ppc64)
  12507.                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  12508.                  ac_arch=$ac_word
  12509.                else
  12510.                  ac_cv_c_bigendian=universal
  12511.                  break
  12512.                fi
  12513.                ;;
  12514.            esac
  12515.            ac_prev=
  12516.          elif test "x$ac_word" = "x-arch"; then
  12517.            ac_prev=arch
  12518.          fi
  12519.        done
  12520. fi
  12521. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12522.     if test $ac_cv_c_bigendian = unknown; then
  12523.       # See if sys/param.h defines the BYTE_ORDER macro.
  12524.       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12525. /* end confdefs.h.  */
  12526. #include <sys/types.h>
  12527.              #include <sys/param.h>
  12528.  
  12529. int
  12530. main ()
  12531. {
  12532. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  12533.                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  12534.                      && LITTLE_ENDIAN)
  12535.               bogus endian macros
  12536.              #endif
  12537.  
  12538.   ;
  12539.   return 0;
  12540. }
  12541. _ACEOF
  12542. if ac_fn_c_try_compile "$LINENO"; then :
  12543.   # It does; now see whether it defined to BIG_ENDIAN or not.
  12544.          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12545. /* end confdefs.h.  */
  12546. #include <sys/types.h>
  12547.                 #include <sys/param.h>
  12548.  
  12549. int
  12550. main ()
  12551. {
  12552. #if BYTE_ORDER != BIG_ENDIAN
  12553.                  not big endian
  12554.                 #endif
  12555.  
  12556.   ;
  12557.   return 0;
  12558. }
  12559. _ACEOF
  12560. if ac_fn_c_try_compile "$LINENO"; then :
  12561.   ac_cv_c_bigendian=yes
  12562. else
  12563.   ac_cv_c_bigendian=no
  12564. fi
  12565. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12566. fi
  12567. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12568.     fi
  12569.     if test $ac_cv_c_bigendian = unknown; then
  12570.       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  12571.       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12572. /* end confdefs.h.  */
  12573. #include <limits.h>
  12574.  
  12575. int
  12576. main ()
  12577. {
  12578. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  12579.               bogus endian macros
  12580.              #endif
  12581.  
  12582.   ;
  12583.   return 0;
  12584. }
  12585. _ACEOF
  12586. if ac_fn_c_try_compile "$LINENO"; then :
  12587.   # It does; now see whether it defined to _BIG_ENDIAN or not.
  12588.          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12589. /* end confdefs.h.  */
  12590. #include <limits.h>
  12591.  
  12592. int
  12593. main ()
  12594. {
  12595. #ifndef _BIG_ENDIAN
  12596.                  not big endian
  12597.                 #endif
  12598.  
  12599.   ;
  12600.   return 0;
  12601. }
  12602. _ACEOF
  12603. if ac_fn_c_try_compile "$LINENO"; then :
  12604.   ac_cv_c_bigendian=yes
  12605. else
  12606.   ac_cv_c_bigendian=no
  12607. fi
  12608. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12609. fi
  12610. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12611.     fi
  12612.     if test $ac_cv_c_bigendian = unknown; then
  12613.       # Compile a test program.
  12614.       if test "$cross_compiling" = yes; then :
  12615.   # Try to guess by grepping values from an object file.
  12616.          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12617. /* end confdefs.h.  */
  12618. short int ascii_mm[] =
  12619.                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  12620.                 short int ascii_ii[] =
  12621.                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  12622.                 int use_ascii (int i) {
  12623.                   return ascii_mm[i] + ascii_ii[i];
  12624.                 }
  12625.                 short int ebcdic_ii[] =
  12626.                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  12627.                 short int ebcdic_mm[] =
  12628.                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  12629.                 int use_ebcdic (int i) {
  12630.                   return ebcdic_mm[i] + ebcdic_ii[i];
  12631.                 }
  12632.                 extern int foo;
  12633.  
  12634. int
  12635. main ()
  12636. {
  12637. return use_ascii (foo) == use_ebcdic (foo);
  12638.   ;
  12639.   return 0;
  12640. }
  12641. _ACEOF
  12642. if ac_fn_c_try_compile "$LINENO"; then :
  12643.   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  12644.               ac_cv_c_bigendian=yes
  12645.             fi
  12646.             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  12647.               if test "$ac_cv_c_bigendian" = unknown; then
  12648.                 ac_cv_c_bigendian=no
  12649.               else
  12650.                 # finding both strings is unlikely to happen, but who knows?
  12651.                 ac_cv_c_bigendian=unknown
  12652.               fi
  12653.             fi
  12654. fi
  12655. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12656. else
  12657.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12658. /* end confdefs.h.  */
  12659. $ac_includes_default
  12660. int
  12661. main ()
  12662. {
  12663.  
  12664.              /* Are we little or big endian?  From Harbison&Steele.  */
  12665.              union
  12666.              {
  12667.                long int l;
  12668.                char c[sizeof (long int)];
  12669.              } u;
  12670.              u.l = 1;
  12671.              return u.c[sizeof (long int) - 1] == 1;
  12672.  
  12673.   ;
  12674.   return 0;
  12675. }
  12676. _ACEOF
  12677. if ac_fn_c_try_run "$LINENO"; then :
  12678.   ac_cv_c_bigendian=no
  12679. else
  12680.   ac_cv_c_bigendian=yes
  12681. fi
  12682. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12683.   conftest.$ac_objext conftest.beam conftest.$ac_ext
  12684. fi
  12685.  
  12686.     fi
  12687. fi
  12688. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  12689. $as_echo "$ac_cv_c_bigendian" >&6; }
  12690.  case $ac_cv_c_bigendian in #(
  12691.    yes)
  12692.      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
  12693. ;; #(
  12694.    no)
  12695.       ;; #(
  12696.    universal)
  12697.  
  12698. $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  12699.  
  12700.      ;; #(
  12701.    *)
  12702.      as_fn_error $? "unknown endianness
  12703.  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  12704.  esac
  12705.  
  12706. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  12707. $as_echo_n "checking for ANSI C header files... " >&6; }
  12708. if ${ac_cv_header_stdc+:} false; then :
  12709.   $as_echo_n "(cached) " >&6
  12710. else
  12711.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12712. /* end confdefs.h.  */
  12713. #include <stdlib.h>
  12714. #include <stdarg.h>
  12715. #include <string.h>
  12716. #include <float.h>
  12717.  
  12718. int
  12719. main ()
  12720. {
  12721.  
  12722.   ;
  12723.   return 0;
  12724. }
  12725. _ACEOF
  12726. if ac_fn_c_try_compile "$LINENO"; then :
  12727.   ac_cv_header_stdc=yes
  12728. else
  12729.   ac_cv_header_stdc=no
  12730. fi
  12731. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12732.  
  12733. if test $ac_cv_header_stdc = yes; then
  12734.   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  12735.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12736. /* end confdefs.h.  */
  12737. #include <string.h>
  12738.  
  12739. _ACEOF
  12740. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  12741.   $EGREP "memchr" >/dev/null 2>&1; then :
  12742.  
  12743. else
  12744.   ac_cv_header_stdc=no
  12745. fi
  12746. rm -f conftest*
  12747.  
  12748. fi
  12749.  
  12750. if test $ac_cv_header_stdc = yes; then
  12751.   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  12752.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12753. /* end confdefs.h.  */
  12754. #include <stdlib.h>
  12755.  
  12756. _ACEOF
  12757. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  12758.   $EGREP "free" >/dev/null 2>&1; then :
  12759.  
  12760. else
  12761.   ac_cv_header_stdc=no
  12762. fi
  12763. rm -f conftest*
  12764.  
  12765. fi
  12766.  
  12767. if test $ac_cv_header_stdc = yes; then
  12768.   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  12769.   if test "$cross_compiling" = yes; then :
  12770.   :
  12771. else
  12772.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12773. /* end confdefs.h.  */
  12774. #include <ctype.h>
  12775. #include <stdlib.h>
  12776. #if ((' ' & 0x0FF) == 0x020)
  12777. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  12778. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  12779. #else
  12780. # define ISLOWER(c) \
  12781.                    (('a' <= (c) && (c) <= 'i') \
  12782.                      || ('j' <= (c) && (c) <= 'r') \
  12783.                      || ('s' <= (c) && (c) <= 'z'))
  12784. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  12785. #endif
  12786.  
  12787. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  12788. int
  12789. main ()
  12790. {
  12791.   int i;
  12792.   for (i = 0; i < 256; i++)
  12793.     if (XOR (islower (i), ISLOWER (i))
  12794.         || toupper (i) != TOUPPER (i))
  12795.       return 2;
  12796.   return 0;
  12797. }
  12798. _ACEOF
  12799. if ac_fn_c_try_run "$LINENO"; then :
  12800.  
  12801. else
  12802.   ac_cv_header_stdc=no
  12803. fi
  12804. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12805.   conftest.$ac_objext conftest.beam conftest.$ac_ext
  12806. fi
  12807.  
  12808. fi
  12809. fi
  12810. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  12811. $as_echo "$ac_cv_header_stdc" >&6; }
  12812. if test $ac_cv_header_stdc = yes; then
  12813.  
  12814. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  12815.  
  12816. fi
  12817.  
  12818. # Check whether --enable-largefile was given.
  12819. if test "${enable_largefile+set}" = set; then :
  12820.   enableval=$enable_largefile;
  12821. fi
  12822.  
  12823. if test "$enable_largefile" != no; then
  12824.  
  12825.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  12826. $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  12827. if ${ac_cv_sys_largefile_CC+:} false; then :
  12828.   $as_echo_n "(cached) " >&6
  12829. else
  12830.   ac_cv_sys_largefile_CC=no
  12831.      if test "$GCC" != yes; then
  12832.        ac_save_CC=$CC
  12833.        while :; do
  12834.          # IRIX 6.2 and later do not support large files by default,
  12835.          # so use the C compiler's -n32 option if that helps.
  12836.          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12837. /* end confdefs.h.  */
  12838. #include <sys/types.h>
  12839.  /* Check that off_t can represent 2**63 - 1 correctly.
  12840.     We can't simply define LARGE_OFF_T to be 9223372036854775807,
  12841.     since some C++ compilers masquerading as C compilers
  12842.     incorrectly reject 9223372036854775807.  */
  12843. #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
  12844.   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  12845.                        && LARGE_OFF_T % 2147483647 == 1)
  12846.                       ? 1 : -1];
  12847. int
  12848. main ()
  12849. {
  12850.  
  12851.   ;
  12852.   return 0;
  12853. }
  12854. _ACEOF
  12855.          if ac_fn_c_try_compile "$LINENO"; then :
  12856.   break
  12857. fi
  12858. rm -f core conftest.err conftest.$ac_objext
  12859.          CC="$CC -n32"
  12860.          if ac_fn_c_try_compile "$LINENO"; then :
  12861.   ac_cv_sys_largefile_CC=' -n32'; break
  12862. fi
  12863. rm -f core conftest.err conftest.$ac_objext
  12864.          break
  12865.        done
  12866.        CC=$ac_save_CC
  12867.        rm -f conftest.$ac_ext
  12868.     fi
  12869. fi
  12870. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  12871. $as_echo "$ac_cv_sys_largefile_CC" >&6; }
  12872.   if test "$ac_cv_sys_largefile_CC" != no; then
  12873.     CC=$CC$ac_cv_sys_largefile_CC
  12874.   fi
  12875.  
  12876.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  12877. $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  12878. if ${ac_cv_sys_file_offset_bits+:} false; then :
  12879.   $as_echo_n "(cached) " >&6
  12880. else
  12881.   while :; do
  12882.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12883. /* end confdefs.h.  */
  12884. #include <sys/types.h>
  12885.  /* Check that off_t can represent 2**63 - 1 correctly.
  12886.     We can't simply define LARGE_OFF_T to be 9223372036854775807,
  12887.     since some C++ compilers masquerading as C compilers
  12888.     incorrectly reject 9223372036854775807.  */
  12889. #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
  12890.   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  12891.                        && LARGE_OFF_T % 2147483647 == 1)
  12892.                       ? 1 : -1];
  12893. int
  12894. main ()
  12895. {
  12896.  
  12897.   ;
  12898.   return 0;
  12899. }
  12900. _ACEOF
  12901. if ac_fn_c_try_compile "$LINENO"; then :
  12902.   ac_cv_sys_file_offset_bits=no; break
  12903. fi
  12904. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12905.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12906. /* end confdefs.h.  */
  12907. #define _FILE_OFFSET_BITS 64
  12908. #include <sys/types.h>
  12909.  /* Check that off_t can represent 2**63 - 1 correctly.
  12910.     We can't simply define LARGE_OFF_T to be 9223372036854775807,
  12911.     since some C++ compilers masquerading as C compilers
  12912.     incorrectly reject 9223372036854775807.  */
  12913. #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
  12914.   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  12915.                        && LARGE_OFF_T % 2147483647 == 1)
  12916.                       ? 1 : -1];
  12917. int
  12918. main ()
  12919. {
  12920.  
  12921.   ;
  12922.   return 0;
  12923. }
  12924. _ACEOF
  12925. if ac_fn_c_try_compile "$LINENO"; then :
  12926.   ac_cv_sys_file_offset_bits=64; break
  12927. fi
  12928. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12929.   ac_cv_sys_file_offset_bits=unknown
  12930.   break
  12931. done
  12932. fi
  12933. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  12934. $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  12935. case $ac_cv_sys_file_offset_bits in #(
  12936.   no | unknown) ;;
  12937.   *)
  12938. cat >>confdefs.h <<_ACEOF
  12939. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  12940. _ACEOF
  12941. ;;
  12942. esac
  12943. rm -rf conftest*
  12944.   if test $ac_cv_sys_file_offset_bits = unknown; then
  12945.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  12946. $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  12947. if ${ac_cv_sys_large_files+:} false; then :
  12948.   $as_echo_n "(cached) " >&6
  12949. else
  12950.   while :; do
  12951.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12952. /* end confdefs.h.  */
  12953. #include <sys/types.h>
  12954.  /* Check that off_t can represent 2**63 - 1 correctly.
  12955.     We can't simply define LARGE_OFF_T to be 9223372036854775807,
  12956.     since some C++ compilers masquerading as C compilers
  12957.     incorrectly reject 9223372036854775807.  */
  12958. #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
  12959.   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  12960.                        && LARGE_OFF_T % 2147483647 == 1)
  12961.                       ? 1 : -1];
  12962. int
  12963. main ()
  12964. {
  12965.  
  12966.   ;
  12967.   return 0;
  12968. }
  12969. _ACEOF
  12970. if ac_fn_c_try_compile "$LINENO"; then :
  12971.   ac_cv_sys_large_files=no; break
  12972. fi
  12973. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12974.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12975. /* end confdefs.h.  */
  12976. #define _LARGE_FILES 1
  12977. #include <sys/types.h>
  12978.  /* Check that off_t can represent 2**63 - 1 correctly.
  12979.     We can't simply define LARGE_OFF_T to be 9223372036854775807,
  12980.     since some C++ compilers masquerading as C compilers
  12981.     incorrectly reject 9223372036854775807.  */
  12982. #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
  12983.   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  12984.                        && LARGE_OFF_T % 2147483647 == 1)
  12985.                       ? 1 : -1];
  12986. int
  12987. main ()
  12988. {
  12989.  
  12990.   ;
  12991.   return 0;
  12992. }
  12993. _ACEOF
  12994. if ac_fn_c_try_compile "$LINENO"; then :
  12995.   ac_cv_sys_large_files=1; break
  12996. fi
  12997. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12998.   ac_cv_sys_large_files=unknown
  12999.   break
  13000. done
  13001. fi
  13002. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  13003. $as_echo "$ac_cv_sys_large_files" >&6; }
  13004. case $ac_cv_sys_large_files in #(
  13005.   no | unknown) ;;
  13006.   *)
  13007. cat >>confdefs.h <<_ACEOF
  13008. #define _LARGE_FILES $ac_cv_sys_large_files
  13009. _ACEOF
  13010. ;;
  13011. esac
  13012. rm -rf conftest*
  13013.   fi
  13014.  
  13015.  
  13016. fi
  13017.  
  13018. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
  13019. $as_echo_n "checking for sin in -lm... " >&6; }
  13020. if ${ac_cv_lib_m_sin+:} false; then :
  13021.   $as_echo_n "(cached) " >&6
  13022. else
  13023.   ac_check_lib_save_LIBS=$LIBS
  13024. LIBS="-lm  $LIBS"
  13025. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13026. /* end confdefs.h.  */
  13027.  
  13028. /* Override any GCC internal prototype to avoid an error.
  13029.    Use char because int might match the return type of a GCC
  13030.    builtin and then its argument prototype would still apply.  */
  13031. #ifdef __cplusplus
  13032. extern "C"
  13033. #endif
  13034. char sin ();
  13035. int
  13036. main ()
  13037. {
  13038. return sin ();
  13039.   ;
  13040.   return 0;
  13041. }
  13042. _ACEOF
  13043. if ac_fn_c_try_link "$LINENO"; then :
  13044.   ac_cv_lib_m_sin=yes
  13045. else
  13046.   ac_cv_lib_m_sin=no
  13047. fi
  13048. rm -f core conftest.err conftest.$ac_objext \
  13049.     conftest$ac_exeext conftest.$ac_ext
  13050. LIBS=$ac_check_lib_save_LIBS
  13051. fi
  13052. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
  13053. $as_echo "$ac_cv_lib_m_sin" >&6; }
  13054. if test "x$ac_cv_lib_m_sin" = xyes; then :
  13055.   cat >>confdefs.h <<_ACEOF
  13056. #define HAVE_LIBM 1
  13057. _ACEOF
  13058.  
  13059.   LIBS="-lm $LIBS"
  13060.  
  13061. fi
  13062.  
  13063. for ac_func in log2f
  13064. do :
  13065.   ac_fn_c_check_func "$LINENO" "log2f" "ac_cv_func_log2f"
  13066. if test "x$ac_cv_func_log2f" = xyes; then :
  13067.   cat >>confdefs.h <<_ACEOF
  13068. #define HAVE_LOG2F 1
  13069. _ACEOF
  13070.  
  13071. fi
  13072. done
  13073.  
  13074.  
  13075. LIBVA_PACKAGE_VERSION=1.4.0
  13076.  
  13077.  
  13078. LIBDRM_VERSION=2.4.45
  13079.  
  13080.  
  13081.  
  13082.  
  13083.  
  13084.  
  13085.  
  13086. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  13087.         if test -n "$ac_tool_prefix"; then
  13088.   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  13089. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  13090. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13091. $as_echo_n "checking for $ac_word... " >&6; }
  13092. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  13093.   $as_echo_n "(cached) " >&6
  13094. else
  13095.   case $PKG_CONFIG in
  13096.   [\\/]* | ?:[\\/]*)
  13097.   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  13098.   ;;
  13099.   *)
  13100.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13101. for as_dir in $PATH
  13102. do
  13103.   IFS=$as_save_IFS
  13104.   test -z "$as_dir" && as_dir=.
  13105.     for ac_exec_ext in '' $ac_executable_extensions; do
  13106.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13107.     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  13108.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13109.     break 2
  13110.   fi
  13111. done
  13112.   done
  13113. IFS=$as_save_IFS
  13114.  
  13115.   ;;
  13116. esac
  13117. fi
  13118. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  13119. if test -n "$PKG_CONFIG"; then
  13120.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  13121. $as_echo "$PKG_CONFIG" >&6; }
  13122. else
  13123.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13124. $as_echo "no" >&6; }
  13125. fi
  13126.  
  13127.  
  13128. fi
  13129. if test -z "$ac_cv_path_PKG_CONFIG"; then
  13130.   ac_pt_PKG_CONFIG=$PKG_CONFIG
  13131.   # Extract the first word of "pkg-config", so it can be a program name with args.
  13132. set dummy pkg-config; ac_word=$2
  13133. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13134. $as_echo_n "checking for $ac_word... " >&6; }
  13135. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  13136.   $as_echo_n "(cached) " >&6
  13137. else
  13138.   case $ac_pt_PKG_CONFIG in
  13139.   [\\/]* | ?:[\\/]*)
  13140.   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  13141.   ;;
  13142.   *)
  13143.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13144. for as_dir in $PATH
  13145. do
  13146.   IFS=$as_save_IFS
  13147.   test -z "$as_dir" && as_dir=.
  13148.     for ac_exec_ext in '' $ac_executable_extensions; do
  13149.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13150.     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  13151.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13152.     break 2
  13153.   fi
  13154. done
  13155.   done
  13156. IFS=$as_save_IFS
  13157.  
  13158.   ;;
  13159. esac
  13160. fi
  13161. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  13162. if test -n "$ac_pt_PKG_CONFIG"; then
  13163.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  13164. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  13165. else
  13166.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13167. $as_echo "no" >&6; }
  13168. fi
  13169.  
  13170.   if test "x$ac_pt_PKG_CONFIG" = x; then
  13171.     PKG_CONFIG=""
  13172.   else
  13173.     case $cross_compiling:$ac_tool_warned in
  13174. yes:)
  13175. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  13176. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  13177. ac_tool_warned=yes ;;
  13178. esac
  13179.     PKG_CONFIG=$ac_pt_PKG_CONFIG
  13180.   fi
  13181. else
  13182.   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  13183. fi
  13184.  
  13185. fi
  13186. if test -n "$PKG_CONFIG"; then
  13187.         _pkg_min_version=0.9.0
  13188.         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  13189. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  13190.         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  13191.                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13192. $as_echo "yes" >&6; }
  13193.         else
  13194.                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13195. $as_echo "no" >&6; }
  13196.                 PKG_CONFIG=""
  13197.         fi
  13198. fi
  13199.  
  13200. pkg_failed=no
  13201. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DRM" >&5
  13202. $as_echo_n "checking for DRM... " >&6; }
  13203.  
  13204. if test -n "$DRM_CFLAGS"; then
  13205.     pkg_cv_DRM_CFLAGS="$DRM_CFLAGS"
  13206.  elif test -n "$PKG_CONFIG"; then
  13207.     if test -n "$PKG_CONFIG" && \
  13208.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= \$LIBDRM_VERSION\""; } >&5
  13209.   ($PKG_CONFIG --exists --print-errors "libdrm >= $LIBDRM_VERSION") 2>&5
  13210.   ac_status=$?
  13211.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13212.   test $ac_status = 0; }; then
  13213.   pkg_cv_DRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= $LIBDRM_VERSION" 2>/dev/null`
  13214.                       test "x$?" != "x0" && pkg_failed=yes
  13215. else
  13216.   pkg_failed=yes
  13217. fi
  13218.  else
  13219.     pkg_failed=untried
  13220. fi
  13221. if test -n "$DRM_LIBS"; then
  13222.     pkg_cv_DRM_LIBS="$DRM_LIBS"
  13223.  elif test -n "$PKG_CONFIG"; then
  13224.     if test -n "$PKG_CONFIG" && \
  13225.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= \$LIBDRM_VERSION\""; } >&5
  13226.   ($PKG_CONFIG --exists --print-errors "libdrm >= $LIBDRM_VERSION") 2>&5
  13227.   ac_status=$?
  13228.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13229.   test $ac_status = 0; }; then
  13230.   pkg_cv_DRM_LIBS=`$PKG_CONFIG --libs "libdrm >= $LIBDRM_VERSION" 2>/dev/null`
  13231.                       test "x$?" != "x0" && pkg_failed=yes
  13232. else
  13233.   pkg_failed=yes
  13234. fi
  13235.  else
  13236.     pkg_failed=untried
  13237. fi
  13238.  
  13239.  
  13240.  
  13241. if test $pkg_failed = yes; then
  13242.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13243. $as_echo "no" >&6; }
  13244.  
  13245. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  13246.         _pkg_short_errors_supported=yes
  13247. else
  13248.         _pkg_short_errors_supported=no
  13249. fi
  13250.         if test $_pkg_short_errors_supported = yes; then
  13251.                 DRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= $LIBDRM_VERSION" 2>&1`
  13252.         else
  13253.                 DRM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= $LIBDRM_VERSION" 2>&1`
  13254.         fi
  13255.         # Put the nasty error message in config.log where it belongs
  13256.         echo "$DRM_PKG_ERRORS" >&5
  13257.  
  13258.         as_fn_error $? "Package requirements (libdrm >= $LIBDRM_VERSION) were not met:
  13259.  
  13260. $DRM_PKG_ERRORS
  13261.  
  13262. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  13263. installed software in a non-standard prefix.
  13264.  
  13265. Alternatively, you may set the environment variables DRM_CFLAGS
  13266. and DRM_LIBS to avoid the need to call pkg-config.
  13267. See the pkg-config man page for more details." "$LINENO" 5
  13268. elif test $pkg_failed = untried; then
  13269.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13270. $as_echo "no" >&6; }
  13271.         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13272. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13273. as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
  13274. is in your PATH or set the PKG_CONFIG environment variable to the full
  13275. path to pkg-config.
  13276.  
  13277. Alternatively, you may set the environment variables DRM_CFLAGS
  13278. and DRM_LIBS to avoid the need to call pkg-config.
  13279. See the pkg-config man page for more details.
  13280.  
  13281. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  13282. See \`config.log' for more details" "$LINENO" 5; }
  13283. else
  13284.         DRM_CFLAGS=$pkg_cv_DRM_CFLAGS
  13285.         DRM_LIBS=$pkg_cv_DRM_LIBS
  13286.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13287. $as_echo "yes" >&6; }
  13288.  
  13289. fi
  13290.  
  13291.  
  13292.  
  13293. pkg_failed=no
  13294. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GEN4ASM" >&5
  13295. $as_echo_n "checking for GEN4ASM... " >&6; }
  13296.  
  13297. if test -n "$GEN4ASM_CFLAGS"; then
  13298.     pkg_cv_GEN4ASM_CFLAGS="$GEN4ASM_CFLAGS"
  13299.  elif test -n "$PKG_CONFIG"; then
  13300.     if test -n "$PKG_CONFIG" && \
  13301.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"intel-gen4asm >= 1.5\""; } >&5
  13302.   ($PKG_CONFIG --exists --print-errors "intel-gen4asm >= 1.5") 2>&5
  13303.   ac_status=$?
  13304.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13305.   test $ac_status = 0; }; then
  13306.   pkg_cv_GEN4ASM_CFLAGS=`$PKG_CONFIG --cflags "intel-gen4asm >= 1.5" 2>/dev/null`
  13307.                       test "x$?" != "x0" && pkg_failed=yes
  13308. else
  13309.   pkg_failed=yes
  13310. fi
  13311.  else
  13312.     pkg_failed=untried
  13313. fi
  13314. if test -n "$GEN4ASM_LIBS"; then
  13315.     pkg_cv_GEN4ASM_LIBS="$GEN4ASM_LIBS"
  13316.  elif test -n "$PKG_CONFIG"; then
  13317.     if test -n "$PKG_CONFIG" && \
  13318.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"intel-gen4asm >= 1.5\""; } >&5
  13319.   ($PKG_CONFIG --exists --print-errors "intel-gen4asm >= 1.5") 2>&5
  13320.   ac_status=$?
  13321.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13322.   test $ac_status = 0; }; then
  13323.   pkg_cv_GEN4ASM_LIBS=`$PKG_CONFIG --libs "intel-gen4asm >= 1.5" 2>/dev/null`
  13324.                       test "x$?" != "x0" && pkg_failed=yes
  13325. else
  13326.   pkg_failed=yes
  13327. fi
  13328.  else
  13329.     pkg_failed=untried
  13330. fi
  13331.  
  13332.  
  13333.  
  13334. if test $pkg_failed = yes; then
  13335.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13336. $as_echo "no" >&6; }
  13337.  
  13338. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  13339.         _pkg_short_errors_supported=yes
  13340. else
  13341.         _pkg_short_errors_supported=no
  13342. fi
  13343.         if test $_pkg_short_errors_supported = yes; then
  13344.                 GEN4ASM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "intel-gen4asm >= 1.5" 2>&1`
  13345.         else
  13346.                 GEN4ASM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "intel-gen4asm >= 1.5" 2>&1`
  13347.         fi
  13348.         # Put the nasty error message in config.log where it belongs
  13349.         echo "$GEN4ASM_PKG_ERRORS" >&5
  13350.  
  13351.         gen4asm=no
  13352. elif test $pkg_failed = untried; then
  13353.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13354. $as_echo "no" >&6; }
  13355.         gen4asm=no
  13356. else
  13357.         GEN4ASM_CFLAGS=$pkg_cv_GEN4ASM_CFLAGS
  13358.         GEN4ASM_LIBS=$pkg_cv_GEN4ASM_LIBS
  13359.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13360. $as_echo "yes" >&6; }
  13361.         gen4asm=yes
  13362. fi
  13363.  if test x$gen4asm = xyes; then
  13364.   HAVE_GEN4ASM_TRUE=
  13365.   HAVE_GEN4ASM_FALSE='#'
  13366. else
  13367.   HAVE_GEN4ASM_TRUE='#'
  13368.   HAVE_GEN4ASM_FALSE=
  13369. fi
  13370.  
  13371. # Extract the first word of "intel-gen4asm", so it can be a program name with args.
  13372. set dummy intel-gen4asm; ac_word=$2
  13373. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13374. $as_echo_n "checking for $ac_word... " >&6; }
  13375. if ${ac_cv_path_GEN4ASM+:} false; then :
  13376.   $as_echo_n "(cached) " >&6
  13377. else
  13378.   case $GEN4ASM in
  13379.   [\\/]* | ?:[\\/]*)
  13380.   ac_cv_path_GEN4ASM="$GEN4ASM" # Let the user override the test with a path.
  13381.   ;;
  13382.   *)
  13383.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13384. for as_dir in $PATH
  13385. do
  13386.   IFS=$as_save_IFS
  13387.   test -z "$as_dir" && as_dir=.
  13388.     for ac_exec_ext in '' $ac_executable_extensions; do
  13389.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13390.     ac_cv_path_GEN4ASM="$as_dir/$ac_word$ac_exec_ext"
  13391.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13392.     break 2
  13393.   fi
  13394. done
  13395.   done
  13396. IFS=$as_save_IFS
  13397.  
  13398.   ;;
  13399. esac
  13400. fi
  13401. GEN4ASM=$ac_cv_path_GEN4ASM
  13402. if test -n "$GEN4ASM"; then
  13403.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GEN4ASM" >&5
  13404. $as_echo "$GEN4ASM" >&6; }
  13405. else
  13406.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13407. $as_echo "no" >&6; }
  13408. fi
  13409.  
  13410.  
  13411.  
  13412.  
  13413. pkg_failed=no
  13414. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBVA_DEPS" >&5
  13415. $as_echo_n "checking for LIBVA_DEPS... " >&6; }
  13416.  
  13417. if test -n "$LIBVA_DEPS_CFLAGS"; then
  13418.     pkg_cv_LIBVA_DEPS_CFLAGS="$LIBVA_DEPS_CFLAGS"
  13419.  elif test -n "$PKG_CONFIG"; then
  13420.     if test -n "$PKG_CONFIG" && \
  13421.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libva >= 0.36\""; } >&5
  13422.   ($PKG_CONFIG --exists --print-errors "libva >= 0.36") 2>&5
  13423.   ac_status=$?
  13424.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13425.   test $ac_status = 0; }; then
  13426.   pkg_cv_LIBVA_DEPS_CFLAGS=`$PKG_CONFIG --cflags "libva >= 0.36" 2>/dev/null`
  13427.                       test "x$?" != "x0" && pkg_failed=yes
  13428. else
  13429.   pkg_failed=yes
  13430. fi
  13431.  else
  13432.     pkg_failed=untried
  13433. fi
  13434. if test -n "$LIBVA_DEPS_LIBS"; then
  13435.     pkg_cv_LIBVA_DEPS_LIBS="$LIBVA_DEPS_LIBS"
  13436.  elif test -n "$PKG_CONFIG"; then
  13437.     if test -n "$PKG_CONFIG" && \
  13438.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libva >= 0.36\""; } >&5
  13439.   ($PKG_CONFIG --exists --print-errors "libva >= 0.36") 2>&5
  13440.   ac_status=$?
  13441.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13442.   test $ac_status = 0; }; then
  13443.   pkg_cv_LIBVA_DEPS_LIBS=`$PKG_CONFIG --libs "libva >= 0.36" 2>/dev/null`
  13444.                       test "x$?" != "x0" && pkg_failed=yes
  13445. else
  13446.   pkg_failed=yes
  13447. fi
  13448.  else
  13449.     pkg_failed=untried
  13450. fi
  13451.  
  13452.  
  13453.  
  13454. if test $pkg_failed = yes; then
  13455.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13456. $as_echo "no" >&6; }
  13457.  
  13458. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  13459.         _pkg_short_errors_supported=yes
  13460. else
  13461.         _pkg_short_errors_supported=no
  13462. fi
  13463.         if test $_pkg_short_errors_supported = yes; then
  13464.                 LIBVA_DEPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libva >= 0.36" 2>&1`
  13465.         else
  13466.                 LIBVA_DEPS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libva >= 0.36" 2>&1`
  13467.         fi
  13468.         # Put the nasty error message in config.log where it belongs
  13469.         echo "$LIBVA_DEPS_PKG_ERRORS" >&5
  13470.  
  13471.         as_fn_error $? "Package requirements (libva >= 0.36) were not met:
  13472.  
  13473. $LIBVA_DEPS_PKG_ERRORS
  13474.  
  13475. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  13476. installed software in a non-standard prefix.
  13477.  
  13478. Alternatively, you may set the environment variables LIBVA_DEPS_CFLAGS
  13479. and LIBVA_DEPS_LIBS to avoid the need to call pkg-config.
  13480. See the pkg-config man page for more details." "$LINENO" 5
  13481. elif test $pkg_failed = untried; then
  13482.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13483. $as_echo "no" >&6; }
  13484.         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13485. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13486. as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
  13487. is in your PATH or set the PKG_CONFIG environment variable to the full
  13488. path to pkg-config.
  13489.  
  13490. Alternatively, you may set the environment variables LIBVA_DEPS_CFLAGS
  13491. and LIBVA_DEPS_LIBS to avoid the need to call pkg-config.
  13492. See the pkg-config man page for more details.
  13493.  
  13494. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  13495. See \`config.log' for more details" "$LINENO" 5; }
  13496. else
  13497.         LIBVA_DEPS_CFLAGS=$pkg_cv_LIBVA_DEPS_CFLAGS
  13498.         LIBVA_DEPS_LIBS=$pkg_cv_LIBVA_DEPS_LIBS
  13499.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13500. $as_echo "yes" >&6; }
  13501.  
  13502. fi
  13503.  
  13504. USE_DRM="$enable_drm"
  13505. if test "$USE_DRM" = "yes"; then
  13506.  
  13507. pkg_failed=no
  13508. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBVA_DRM_DEPS" >&5
  13509. $as_echo_n "checking for LIBVA_DRM_DEPS... " >&6; }
  13510.  
  13511. if test -n "$LIBVA_DRM_DEPS_CFLAGS"; then
  13512.     pkg_cv_LIBVA_DRM_DEPS_CFLAGS="$LIBVA_DRM_DEPS_CFLAGS"
  13513.  elif test -n "$PKG_CONFIG"; then
  13514.     if test -n "$PKG_CONFIG" && \
  13515.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libva-drm\""; } >&5
  13516.   ($PKG_CONFIG --exists --print-errors "libva-drm") 2>&5
  13517.   ac_status=$?
  13518.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13519.   test $ac_status = 0; }; then
  13520.   pkg_cv_LIBVA_DRM_DEPS_CFLAGS=`$PKG_CONFIG --cflags "libva-drm" 2>/dev/null`
  13521.                       test "x$?" != "x0" && pkg_failed=yes
  13522. else
  13523.   pkg_failed=yes
  13524. fi
  13525.  else
  13526.     pkg_failed=untried
  13527. fi
  13528. if test -n "$LIBVA_DRM_DEPS_LIBS"; then
  13529.     pkg_cv_LIBVA_DRM_DEPS_LIBS="$LIBVA_DRM_DEPS_LIBS"
  13530.  elif test -n "$PKG_CONFIG"; then
  13531.     if test -n "$PKG_CONFIG" && \
  13532.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libva-drm\""; } >&5
  13533.   ($PKG_CONFIG --exists --print-errors "libva-drm") 2>&5
  13534.   ac_status=$?
  13535.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13536.   test $ac_status = 0; }; then
  13537.   pkg_cv_LIBVA_DRM_DEPS_LIBS=`$PKG_CONFIG --libs "libva-drm" 2>/dev/null`
  13538.                       test "x$?" != "x0" && pkg_failed=yes
  13539. else
  13540.   pkg_failed=yes
  13541. fi
  13542.  else
  13543.     pkg_failed=untried
  13544. fi
  13545.  
  13546.  
  13547.  
  13548. if test $pkg_failed = yes; then
  13549.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13550. $as_echo "no" >&6; }
  13551.  
  13552. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  13553.         _pkg_short_errors_supported=yes
  13554. else
  13555.         _pkg_short_errors_supported=no
  13556. fi
  13557.         if test $_pkg_short_errors_supported = yes; then
  13558.                 LIBVA_DRM_DEPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libva-drm" 2>&1`
  13559.         else
  13560.                 LIBVA_DRM_DEPS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libva-drm" 2>&1`
  13561.         fi
  13562.         # Put the nasty error message in config.log where it belongs
  13563.         echo "$LIBVA_DRM_DEPS_PKG_ERRORS" >&5
  13564.  
  13565.         USE_DRM="no"
  13566. elif test $pkg_failed = untried; then
  13567.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13568. $as_echo "no" >&6; }
  13569.         USE_DRM="no"
  13570. else
  13571.         LIBVA_DRM_DEPS_CFLAGS=$pkg_cv_LIBVA_DRM_DEPS_CFLAGS
  13572.         LIBVA_DRM_DEPS_LIBS=$pkg_cv_LIBVA_DRM_DEPS_LIBS
  13573.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13574. $as_echo "yes" >&6; }
  13575.  
  13576. $as_echo "#define HAVE_VA_DRM 1" >>confdefs.h
  13577.  
  13578. fi
  13579.  
  13580.     # Check for <drm_fourcc.h>
  13581.     if test "$USE_DRM" = "yes"; then
  13582.         saved_CPPFLAGS="$CPPFLAGS"
  13583.         CPPFLAGS="$CPPFLAGS $DRM_CFLAGS"
  13584.         for ac_header in drm_fourcc.h
  13585. do :
  13586.   ac_fn_c_check_header_mongrel "$LINENO" "drm_fourcc.h" "ac_cv_header_drm_fourcc_h" "$ac_includes_default"
  13587. if test "x$ac_cv_header_drm_fourcc_h" = xyes; then :
  13588.   cat >>confdefs.h <<_ACEOF
  13589. #define HAVE_DRM_FOURCC_H 1
  13590. _ACEOF
  13591.  :
  13592. else
  13593.   USE_DRM="no"
  13594. fi
  13595.  
  13596. done
  13597.  
  13598.         CPPFLAGS="$saved_CPPFLAGS"
  13599.     fi
  13600. fi
  13601.  if test "$USE_DRM" = "yes"; then
  13602.   USE_DRM_TRUE=
  13603.   USE_DRM_FALSE='#'
  13604. else
  13605.   USE_DRM_TRUE='#'
  13606.   USE_DRM_FALSE=
  13607. fi
  13608.  
  13609.  
  13610. VA_VERSION=`$PKG_CONFIG --modversion libva`
  13611. VA_MAJOR_VERSION=`echo "$VA_VERSION" | cut -d'.' -f1`
  13612. VA_MINOR_VERSION=`echo "$VA_VERSION" | cut -d'.' -f2`
  13613. VA_MICRO_VERSION=`echo "$VA_VERSION" | cut -d'.' -f3`
  13614. VA_VERSION_STR="$VA_VERSION"
  13615.  
  13616. va_full_version_int=`expr ${VA_MAJOR_VERSION:-0} "*" 1000000 + \
  13617.                           ${VA_MINOR_VERSION:-0} "*" 10000   + \
  13618.                           ${VA_MICRO_VERSION:-0} "*" 100     + \
  13619.                           0`
  13620. VA_DRIVER_INIT_FUNC="__vaDriverInit_${VA_MAJOR_VERSION}_${VA_MINOR_VERSION}"
  13621.  
  13622. cat >>confdefs.h <<_ACEOF
  13623. #define VA_DRIVER_INIT_FUNC $VA_DRIVER_INIT_FUNC
  13624. _ACEOF
  13625.  
  13626.  
  13627. USE_X11="$enable_x11"
  13628. if test "$USE_X11" = "yes"; then
  13629.  
  13630. pkg_failed=no
  13631. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBVA_X11_DEPS" >&5
  13632. $as_echo_n "checking for LIBVA_X11_DEPS... " >&6; }
  13633.  
  13634. if test -n "$LIBVA_X11_DEPS_CFLAGS"; then
  13635.     pkg_cv_LIBVA_X11_DEPS_CFLAGS="$LIBVA_X11_DEPS_CFLAGS"
  13636.  elif test -n "$PKG_CONFIG"; then
  13637.     if test -n "$PKG_CONFIG" && \
  13638.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libva-x11\""; } >&5
  13639.   ($PKG_CONFIG --exists --print-errors "libva-x11") 2>&5
  13640.   ac_status=$?
  13641.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13642.   test $ac_status = 0; }; then
  13643.   pkg_cv_LIBVA_X11_DEPS_CFLAGS=`$PKG_CONFIG --cflags "libva-x11" 2>/dev/null`
  13644.                       test "x$?" != "x0" && pkg_failed=yes
  13645. else
  13646.   pkg_failed=yes
  13647. fi
  13648.  else
  13649.     pkg_failed=untried
  13650. fi
  13651. if test -n "$LIBVA_X11_DEPS_LIBS"; then
  13652.     pkg_cv_LIBVA_X11_DEPS_LIBS="$LIBVA_X11_DEPS_LIBS"
  13653.  elif test -n "$PKG_CONFIG"; then
  13654.     if test -n "$PKG_CONFIG" && \
  13655.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libva-x11\""; } >&5
  13656.   ($PKG_CONFIG --exists --print-errors "libva-x11") 2>&5
  13657.   ac_status=$?
  13658.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13659.   test $ac_status = 0; }; then
  13660.   pkg_cv_LIBVA_X11_DEPS_LIBS=`$PKG_CONFIG --libs "libva-x11" 2>/dev/null`
  13661.                       test "x$?" != "x0" && pkg_failed=yes
  13662. else
  13663.   pkg_failed=yes
  13664. fi
  13665.  else
  13666.     pkg_failed=untried
  13667. fi
  13668.  
  13669.  
  13670.  
  13671. if test $pkg_failed = yes; then
  13672.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13673. $as_echo "no" >&6; }
  13674.  
  13675. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  13676.         _pkg_short_errors_supported=yes
  13677. else
  13678.         _pkg_short_errors_supported=no
  13679. fi
  13680.         if test $_pkg_short_errors_supported = yes; then
  13681.                 LIBVA_X11_DEPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libva-x11" 2>&1`
  13682.         else
  13683.                 LIBVA_X11_DEPS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libva-x11" 2>&1`
  13684.         fi
  13685.         # Put the nasty error message in config.log where it belongs
  13686.         echo "$LIBVA_X11_DEPS_PKG_ERRORS" >&5
  13687.  
  13688.         USE_X11="no"
  13689. elif test $pkg_failed = untried; then
  13690.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13691. $as_echo "no" >&6; }
  13692.         USE_X11="no"
  13693. else
  13694.         LIBVA_X11_DEPS_CFLAGS=$pkg_cv_LIBVA_X11_DEPS_CFLAGS
  13695.         LIBVA_X11_DEPS_LIBS=$pkg_cv_LIBVA_X11_DEPS_LIBS
  13696.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13697. $as_echo "yes" >&6; }
  13698.  
  13699. $as_echo "#define HAVE_VA_X11 1" >>confdefs.h
  13700.  
  13701. fi
  13702. fi
  13703.  if test "$USE_X11" = "yes"; then
  13704.   USE_X11_TRUE=
  13705.   USE_X11_FALSE='#'
  13706. else
  13707.   USE_X11_TRUE='#'
  13708.   USE_X11_FALSE=
  13709. fi
  13710.  
  13711.  
  13712. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VA drivers path" >&5
  13713. $as_echo_n "checking for VA drivers path... " >&6; }
  13714. LIBVA_DRIVERS_PATH=`$PKG_CONFIG libva --variable driverdir`
  13715. if test -z "$LIBVA_DRIVERS_PATH"; then
  13716.     LIBVA_DRIVERS_PATH="/usr/lib/xorg/modules/drivers"
  13717. fi
  13718. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBVA_DRIVERS_PATH" >&5
  13719. $as_echo "$LIBVA_DRIVERS_PATH" >&6; }
  13720.  
  13721.  
  13722. # Check for EGL
  13723. if test "$enable_wayland" = "yes"; then
  13724.     enable_egl="yes"
  13725. fi
  13726.  
  13727. USE_EGL="no"
  13728. if test "$enable_egl" = "yes"; then
  13729.  
  13730. pkg_failed=no
  13731. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL" >&5
  13732. $as_echo_n "checking for EGL... " >&6; }
  13733.  
  13734. if test -n "$EGL_CFLAGS"; then
  13735.     pkg_cv_EGL_CFLAGS="$EGL_CFLAGS"
  13736.  elif test -n "$PKG_CONFIG"; then
  13737.     if test -n "$PKG_CONFIG" && \
  13738.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"egl\""; } >&5
  13739.   ($PKG_CONFIG --exists --print-errors "egl") 2>&5
  13740.   ac_status=$?
  13741.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13742.   test $ac_status = 0; }; then
  13743.   pkg_cv_EGL_CFLAGS=`$PKG_CONFIG --cflags "egl" 2>/dev/null`
  13744.                       test "x$?" != "x0" && pkg_failed=yes
  13745. else
  13746.   pkg_failed=yes
  13747. fi
  13748.  else
  13749.     pkg_failed=untried
  13750. fi
  13751. if test -n "$EGL_LIBS"; then
  13752.     pkg_cv_EGL_LIBS="$EGL_LIBS"
  13753.  elif test -n "$PKG_CONFIG"; then
  13754.     if test -n "$PKG_CONFIG" && \
  13755.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"egl\""; } >&5
  13756.   ($PKG_CONFIG --exists --print-errors "egl") 2>&5
  13757.   ac_status=$?
  13758.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13759.   test $ac_status = 0; }; then
  13760.   pkg_cv_EGL_LIBS=`$PKG_CONFIG --libs "egl" 2>/dev/null`
  13761.                       test "x$?" != "x0" && pkg_failed=yes
  13762. else
  13763.   pkg_failed=yes
  13764. fi
  13765.  else
  13766.     pkg_failed=untried
  13767. fi
  13768.  
  13769.  
  13770.  
  13771. if test $pkg_failed = yes; then
  13772.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13773. $as_echo "no" >&6; }
  13774.  
  13775. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  13776.         _pkg_short_errors_supported=yes
  13777. else
  13778.         _pkg_short_errors_supported=no
  13779. fi
  13780.         if test $_pkg_short_errors_supported = yes; then
  13781.                 EGL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "egl" 2>&1`
  13782.         else
  13783.                 EGL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "egl" 2>&1`
  13784.         fi
  13785.         # Put the nasty error message in config.log where it belongs
  13786.         echo "$EGL_PKG_ERRORS" >&5
  13787.  
  13788.         USE_EGL="no"
  13789. elif test $pkg_failed = untried; then
  13790.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13791. $as_echo "no" >&6; }
  13792.         USE_EGL="no"
  13793. else
  13794.         EGL_CFLAGS=$pkg_cv_EGL_CFLAGS
  13795.         EGL_LIBS=$pkg_cv_EGL_LIBS
  13796.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13797. $as_echo "yes" >&6; }
  13798.         USE_EGL="yes"
  13799. fi
  13800.     saved_CPPFLAGS="$CPPFLAGS"
  13801.     saved_LIBS="$LIBS"
  13802.     CPPFLAGS="$CPPFLAGS $EGL_CFLAGS"
  13803.     LIBS="$LIBS $EGL_LIBS"
  13804.     for ac_header in EGL/egl.h
  13805. do :
  13806.   ac_fn_c_check_header_mongrel "$LINENO" "EGL/egl.h" "ac_cv_header_EGL_egl_h" "$ac_includes_default"
  13807. if test "x$ac_cv_header_EGL_egl_h" = xyes; then :
  13808.   cat >>confdefs.h <<_ACEOF
  13809. #define HAVE_EGL_EGL_H 1
  13810. _ACEOF
  13811.  :
  13812. else
  13813.   USE_EGL="no"
  13814. fi
  13815.  
  13816. done
  13817.  
  13818.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for eglGetDisplay in -lEGL" >&5
  13819. $as_echo_n "checking for eglGetDisplay in -lEGL... " >&6; }
  13820. if ${ac_cv_lib_EGL_eglGetDisplay+:} false; then :
  13821.   $as_echo_n "(cached) " >&6
  13822. else
  13823.   ac_check_lib_save_LIBS=$LIBS
  13824. LIBS="-lEGL  $LIBS"
  13825. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13826. /* end confdefs.h.  */
  13827.  
  13828. /* Override any GCC internal prototype to avoid an error.
  13829.    Use char because int might match the return type of a GCC
  13830.    builtin and then its argument prototype would still apply.  */
  13831. #ifdef __cplusplus
  13832. extern "C"
  13833. #endif
  13834. char eglGetDisplay ();
  13835. int
  13836. main ()
  13837. {
  13838. return eglGetDisplay ();
  13839.   ;
  13840.   return 0;
  13841. }
  13842. _ACEOF
  13843. if ac_fn_c_try_link "$LINENO"; then :
  13844.   ac_cv_lib_EGL_eglGetDisplay=yes
  13845. else
  13846.   ac_cv_lib_EGL_eglGetDisplay=no
  13847. fi
  13848. rm -f core conftest.err conftest.$ac_objext \
  13849.     conftest$ac_exeext conftest.$ac_ext
  13850. LIBS=$ac_check_lib_save_LIBS
  13851. fi
  13852. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_EGL_eglGetDisplay" >&5
  13853. $as_echo "$ac_cv_lib_EGL_eglGetDisplay" >&6; }
  13854. if test "x$ac_cv_lib_EGL_eglGetDisplay" = xyes; then :
  13855.   :
  13856. else
  13857.   USE_EGL="no"
  13858. fi
  13859.  
  13860.     CPPFLAGS="$saved_CPPFLAGS"
  13861.     LIBS="$saved_LIBS"
  13862. fi
  13863.  if test "$USE_EGL" = "yes"; then
  13864.   USE_EGL_TRUE=
  13865.   USE_EGL_FALSE='#'
  13866. else
  13867.   USE_EGL_TRUE='#'
  13868.   USE_EGL_FALSE=
  13869. fi
  13870.  
  13871.  
  13872. # Check for Wayland
  13873. USE_WAYLAND="no"
  13874. if test "$enable_wayland" = "yes"; then
  13875.  
  13876. pkg_failed=no
  13877. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WAYLAND" >&5
  13878. $as_echo_n "checking for WAYLAND... " >&6; }
  13879.  
  13880. if test -n "$WAYLAND_CFLAGS"; then
  13881.     pkg_cv_WAYLAND_CFLAGS="$WAYLAND_CFLAGS"
  13882.  elif test -n "$PKG_CONFIG"; then
  13883.     if test -n "$PKG_CONFIG" && \
  13884.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"wayland-client\""; } >&5
  13885.   ($PKG_CONFIG --exists --print-errors "wayland-client") 2>&5
  13886.   ac_status=$?
  13887.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13888.   test $ac_status = 0; }; then
  13889.   pkg_cv_WAYLAND_CFLAGS=`$PKG_CONFIG --cflags "wayland-client" 2>/dev/null`
  13890.                       test "x$?" != "x0" && pkg_failed=yes
  13891. else
  13892.   pkg_failed=yes
  13893. fi
  13894.  else
  13895.     pkg_failed=untried
  13896. fi
  13897. if test -n "$WAYLAND_LIBS"; then
  13898.     pkg_cv_WAYLAND_LIBS="$WAYLAND_LIBS"
  13899.  elif test -n "$PKG_CONFIG"; then
  13900.     if test -n "$PKG_CONFIG" && \
  13901.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"wayland-client\""; } >&5
  13902.   ($PKG_CONFIG --exists --print-errors "wayland-client") 2>&5
  13903.   ac_status=$?
  13904.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13905.   test $ac_status = 0; }; then
  13906.   pkg_cv_WAYLAND_LIBS=`$PKG_CONFIG --libs "wayland-client" 2>/dev/null`
  13907.                       test "x$?" != "x0" && pkg_failed=yes
  13908. else
  13909.   pkg_failed=yes
  13910. fi
  13911.  else
  13912.     pkg_failed=untried
  13913. fi
  13914.  
  13915.  
  13916.  
  13917. if test $pkg_failed = yes; then
  13918.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13919. $as_echo "no" >&6; }
  13920.  
  13921. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  13922.         _pkg_short_errors_supported=yes
  13923. else
  13924.         _pkg_short_errors_supported=no
  13925. fi
  13926.         if test $_pkg_short_errors_supported = yes; then
  13927.                 WAYLAND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "wayland-client" 2>&1`
  13928.         else
  13929.                 WAYLAND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "wayland-client" 2>&1`
  13930.         fi
  13931.         # Put the nasty error message in config.log where it belongs
  13932.         echo "$WAYLAND_PKG_ERRORS" >&5
  13933.  
  13934.         :
  13935. elif test $pkg_failed = untried; then
  13936.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13937. $as_echo "no" >&6; }
  13938.         :
  13939. else
  13940.         WAYLAND_CFLAGS=$pkg_cv_WAYLAND_CFLAGS
  13941.         WAYLAND_LIBS=$pkg_cv_WAYLAND_LIBS
  13942.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13943. $as_echo "yes" >&6; }
  13944.         USE_WAYLAND="yes"
  13945. fi
  13946.  
  13947. pkg_failed=no
  13948. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBVA_WAYLAND_DEPS" >&5
  13949. $as_echo_n "checking for LIBVA_WAYLAND_DEPS... " >&6; }
  13950.  
  13951. if test -n "$LIBVA_WAYLAND_DEPS_CFLAGS"; then
  13952.     pkg_cv_LIBVA_WAYLAND_DEPS_CFLAGS="$LIBVA_WAYLAND_DEPS_CFLAGS"
  13953.  elif test -n "$PKG_CONFIG"; then
  13954.     if test -n "$PKG_CONFIG" && \
  13955.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libva-wayland\""; } >&5
  13956.   ($PKG_CONFIG --exists --print-errors "libva-wayland") 2>&5
  13957.   ac_status=$?
  13958.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13959.   test $ac_status = 0; }; then
  13960.   pkg_cv_LIBVA_WAYLAND_DEPS_CFLAGS=`$PKG_CONFIG --cflags "libva-wayland" 2>/dev/null`
  13961.                       test "x$?" != "x0" && pkg_failed=yes
  13962. else
  13963.   pkg_failed=yes
  13964. fi
  13965.  else
  13966.     pkg_failed=untried
  13967. fi
  13968. if test -n "$LIBVA_WAYLAND_DEPS_LIBS"; then
  13969.     pkg_cv_LIBVA_WAYLAND_DEPS_LIBS="$LIBVA_WAYLAND_DEPS_LIBS"
  13970.  elif test -n "$PKG_CONFIG"; then
  13971.     if test -n "$PKG_CONFIG" && \
  13972.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libva-wayland\""; } >&5
  13973.   ($PKG_CONFIG --exists --print-errors "libva-wayland") 2>&5
  13974.   ac_status=$?
  13975.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13976.   test $ac_status = 0; }; then
  13977.   pkg_cv_LIBVA_WAYLAND_DEPS_LIBS=`$PKG_CONFIG --libs "libva-wayland" 2>/dev/null`
  13978.                       test "x$?" != "x0" && pkg_failed=yes
  13979. else
  13980.   pkg_failed=yes
  13981. fi
  13982.  else
  13983.     pkg_failed=untried
  13984. fi
  13985.  
  13986.  
  13987.  
  13988. if test $pkg_failed = yes; then
  13989.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13990. $as_echo "no" >&6; }
  13991.  
  13992. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  13993.         _pkg_short_errors_supported=yes
  13994. else
  13995.         _pkg_short_errors_supported=no
  13996. fi
  13997.         if test $_pkg_short_errors_supported = yes; then
  13998.                 LIBVA_WAYLAND_DEPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libva-wayland" 2>&1`
  13999.         else
  14000.                 LIBVA_WAYLAND_DEPS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libva-wayland" 2>&1`
  14001.         fi
  14002.         # Put the nasty error message in config.log where it belongs
  14003.         echo "$LIBVA_WAYLAND_DEPS_PKG_ERRORS" >&5
  14004.  
  14005.         USE_WAYLAND="no"
  14006. elif test $pkg_failed = untried; then
  14007.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14008. $as_echo "no" >&6; }
  14009.         USE_WAYLAND="no"
  14010. else
  14011.         LIBVA_WAYLAND_DEPS_CFLAGS=$pkg_cv_LIBVA_WAYLAND_DEPS_CFLAGS
  14012.         LIBVA_WAYLAND_DEPS_LIBS=$pkg_cv_LIBVA_WAYLAND_DEPS_LIBS
  14013.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14014. $as_echo "yes" >&6; }
  14015.  
  14016. $as_echo "#define HAVE_VA_WAYLAND 1" >>confdefs.h
  14017.  
  14018. fi
  14019. fi
  14020.  if test "$USE_WAYLAND" = "yes"; then
  14021.   USE_WAYLAND_TRUE=
  14022.   USE_WAYLAND_FALSE='#'
  14023. else
  14024.   USE_WAYLAND_TRUE='#'
  14025.   USE_WAYLAND_FALSE=
  14026. fi
  14027.  
  14028.  
  14029.  
  14030.  
  14031.  
  14032.  
  14033.  
  14034.  
  14035.  
  14036.  
  14037. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  14038.         if test -n "$ac_tool_prefix"; then
  14039.   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  14040. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  14041. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14042. $as_echo_n "checking for $ac_word... " >&6; }
  14043. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  14044.   $as_echo_n "(cached) " >&6
  14045. else
  14046.   case $PKG_CONFIG in
  14047.   [\\/]* | ?:[\\/]*)
  14048.   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  14049.   ;;
  14050.   *)
  14051.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14052. for as_dir in $PATH
  14053. do
  14054.   IFS=$as_save_IFS
  14055.   test -z "$as_dir" && as_dir=.
  14056.     for ac_exec_ext in '' $ac_executable_extensions; do
  14057.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14058.     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  14059.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14060.     break 2
  14061.   fi
  14062. done
  14063.   done
  14064. IFS=$as_save_IFS
  14065.  
  14066.   ;;
  14067. esac
  14068. fi
  14069. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  14070. if test -n "$PKG_CONFIG"; then
  14071.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  14072. $as_echo "$PKG_CONFIG" >&6; }
  14073. else
  14074.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14075. $as_echo "no" >&6; }
  14076. fi
  14077.  
  14078.  
  14079. fi
  14080. if test -z "$ac_cv_path_PKG_CONFIG"; then
  14081.   ac_pt_PKG_CONFIG=$PKG_CONFIG
  14082.   # Extract the first word of "pkg-config", so it can be a program name with args.
  14083. set dummy pkg-config; ac_word=$2
  14084. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14085. $as_echo_n "checking for $ac_word... " >&6; }
  14086. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  14087.   $as_echo_n "(cached) " >&6
  14088. else
  14089.   case $ac_pt_PKG_CONFIG in
  14090.   [\\/]* | ?:[\\/]*)
  14091.   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  14092.   ;;
  14093.   *)
  14094.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14095. for as_dir in $PATH
  14096. do
  14097.   IFS=$as_save_IFS
  14098.   test -z "$as_dir" && as_dir=.
  14099.     for ac_exec_ext in '' $ac_executable_extensions; do
  14100.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14101.     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  14102.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14103.     break 2
  14104.   fi
  14105. done
  14106.   done
  14107. IFS=$as_save_IFS
  14108.  
  14109.   ;;
  14110. esac
  14111. fi
  14112. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  14113. if test -n "$ac_pt_PKG_CONFIG"; then
  14114.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  14115. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  14116. else
  14117.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14118. $as_echo "no" >&6; }
  14119. fi
  14120.  
  14121.   if test "x$ac_pt_PKG_CONFIG" = x; then
  14122.     PKG_CONFIG=""
  14123.   else
  14124.     case $cross_compiling:$ac_tool_warned in
  14125. yes:)
  14126. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  14127. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  14128. ac_tool_warned=yes ;;
  14129. esac
  14130.     PKG_CONFIG=$ac_pt_PKG_CONFIG
  14131.   fi
  14132. else
  14133.   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  14134. fi
  14135.  
  14136. fi
  14137. if test -n "$PKG_CONFIG"; then
  14138.         _pkg_min_version=0.9.0
  14139.         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  14140. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  14141.         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  14142.                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14143. $as_echo "yes" >&6; }
  14144.         else
  14145.                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14146. $as_echo "no" >&6; }
  14147.                 PKG_CONFIG=""
  14148.         fi
  14149. fi
  14150.  
  14151.  
  14152. pkg_failed=no
  14153. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WAYLAND_SCANNER" >&5
  14154. $as_echo_n "checking for WAYLAND_SCANNER... " >&6; }
  14155.  
  14156. if test -n "$WAYLAND_SCANNER_CFLAGS"; then
  14157.     pkg_cv_WAYLAND_SCANNER_CFLAGS="$WAYLAND_SCANNER_CFLAGS"
  14158.  elif test -n "$PKG_CONFIG"; then
  14159.     if test -n "$PKG_CONFIG" && \
  14160.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"wayland-scanner\""; } >&5
  14161.   ($PKG_CONFIG --exists --print-errors "wayland-scanner") 2>&5
  14162.   ac_status=$?
  14163.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14164.   test $ac_status = 0; }; then
  14165.   pkg_cv_WAYLAND_SCANNER_CFLAGS=`$PKG_CONFIG --cflags "wayland-scanner" 2>/dev/null`
  14166.                       test "x$?" != "x0" && pkg_failed=yes
  14167. else
  14168.   pkg_failed=yes
  14169. fi
  14170.  else
  14171.     pkg_failed=untried
  14172. fi
  14173. if test -n "$WAYLAND_SCANNER_LIBS"; then
  14174.     pkg_cv_WAYLAND_SCANNER_LIBS="$WAYLAND_SCANNER_LIBS"
  14175.  elif test -n "$PKG_CONFIG"; then
  14176.     if test -n "$PKG_CONFIG" && \
  14177.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"wayland-scanner\""; } >&5
  14178.   ($PKG_CONFIG --exists --print-errors "wayland-scanner") 2>&5
  14179.   ac_status=$?
  14180.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14181.   test $ac_status = 0; }; then
  14182.   pkg_cv_WAYLAND_SCANNER_LIBS=`$PKG_CONFIG --libs "wayland-scanner" 2>/dev/null`
  14183.                       test "x$?" != "x0" && pkg_failed=yes
  14184. else
  14185.   pkg_failed=yes
  14186. fi
  14187.  else
  14188.     pkg_failed=untried
  14189. fi
  14190.  
  14191.  
  14192.  
  14193. if test $pkg_failed = yes; then
  14194.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14195. $as_echo "no" >&6; }
  14196.  
  14197. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  14198.         _pkg_short_errors_supported=yes
  14199. else
  14200.         _pkg_short_errors_supported=no
  14201. fi
  14202.         if test $_pkg_short_errors_supported = yes; then
  14203.                 WAYLAND_SCANNER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "wayland-scanner" 2>&1`
  14204.         else
  14205.                 WAYLAND_SCANNER_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "wayland-scanner" 2>&1`
  14206.         fi
  14207.         # Put the nasty error message in config.log where it belongs
  14208.         echo "$WAYLAND_SCANNER_PKG_ERRORS" >&5
  14209.  
  14210.         as_fn_error $? "Package requirements (wayland-scanner) were not met:
  14211.  
  14212. $WAYLAND_SCANNER_PKG_ERRORS
  14213.  
  14214. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  14215. installed software in a non-standard prefix.
  14216.  
  14217. Alternatively, you may set the environment variables WAYLAND_SCANNER_CFLAGS
  14218. and WAYLAND_SCANNER_LIBS to avoid the need to call pkg-config.
  14219. See the pkg-config man page for more details." "$LINENO" 5
  14220. elif test $pkg_failed = untried; then
  14221.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14222. $as_echo "no" >&6; }
  14223.         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14224. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14225. as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
  14226. is in your PATH or set the PKG_CONFIG environment variable to the full
  14227. path to pkg-config.
  14228.  
  14229. Alternatively, you may set the environment variables WAYLAND_SCANNER_CFLAGS
  14230. and WAYLAND_SCANNER_LIBS to avoid the need to call pkg-config.
  14231. See the pkg-config man page for more details.
  14232.  
  14233. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  14234. See \`config.log' for more details" "$LINENO" 5; }
  14235. else
  14236.         WAYLAND_SCANNER_CFLAGS=$pkg_cv_WAYLAND_SCANNER_CFLAGS
  14237.         WAYLAND_SCANNER_LIBS=$pkg_cv_WAYLAND_SCANNER_LIBS
  14238.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14239. $as_echo "yes" >&6; }
  14240.  
  14241. fi
  14242.  
  14243.     wayland_scanner=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`
  14244.  
  14245.  
  14246.     wayland_scanner_rules=`$PKG_CONFIG --variable=pkgdatadir wayland-scanner`/wayland-scanner.mk
  14247.  
  14248.  
  14249.     wayland_protocoldir='$(top_srcdir)/src/wayland'
  14250.  
  14251.  
  14252.  
  14253. ac_config_files="$ac_config_files Makefile debian.upstream/Makefile src/Makefile src/shaders/Makefile src/shaders/h264/Makefile src/shaders/h264/ildb/Makefile src/shaders/h264/mc/Makefile src/shaders/mpeg2/Makefile src/shaders/mpeg2/vld/Makefile src/shaders/post_processing/Makefile src/shaders/post_processing/gen5_6/Makefile src/shaders/post_processing/gen7/Makefile src/shaders/post_processing/gen75/Makefile src/shaders/post_processing/gen8/Makefile src/shaders/render/Makefile src/shaders/utils/Makefile src/shaders/vme/Makefile src/wayland/Makefile"
  14254.  
  14255. cat >confcache <<\_ACEOF
  14256. # This file is a shell script that caches the results of configure
  14257. # tests run on this system so they can be shared between configure
  14258. # scripts and configure runs, see configure's option --config-cache.
  14259. # It is not useful on other systems.  If it contains results you don't
  14260. # want to keep, you may remove or edit it.
  14261. #
  14262. # config.status only pays attention to the cache file if you give it
  14263. # the --recheck option to rerun configure.
  14264. #
  14265. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  14266. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  14267. # following values.
  14268.  
  14269. _ACEOF
  14270.  
  14271. # The following way of writing the cache mishandles newlines in values,
  14272. # but we know of no workaround that is simple, portable, and efficient.
  14273. # So, we kill variables containing newlines.
  14274. # Ultrix sh set writes to stderr and can't be redirected directly,
  14275. # and sets the high bit in the cache file unless we assign to the vars.
  14276. (
  14277.   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  14278.     eval ac_val=\$$ac_var
  14279.     case $ac_val in #(
  14280.     *${as_nl}*)
  14281.       case $ac_var in #(
  14282.       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  14283. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  14284.       esac
  14285.       case $ac_var in #(
  14286.       _ | IFS | as_nl) ;; #(
  14287.       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  14288.       *) { eval $ac_var=; unset $ac_var;} ;;
  14289.       esac ;;
  14290.     esac
  14291.   done
  14292.  
  14293.   (set) 2>&1 |
  14294.     case $as_nl`(ac_space=' '; set) 2>&1` in #(
  14295.     *${as_nl}ac_space=\ *)
  14296.       # `set' does not quote correctly, so add quotes: double-quote
  14297.       # substitution turns \\\\ into \\, and sed turns \\ into \.
  14298.       sed -n \
  14299.         "s/'/'\\\\''/g;
  14300.           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  14301.       ;; #(
  14302.     *)
  14303.       # `set' quotes correctly as required by POSIX, so do not add quotes.
  14304.       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  14305.       ;;
  14306.     esac |
  14307.     sort
  14308. ) |
  14309.   sed '
  14310.      /^ac_cv_env_/b end
  14311.      t clear
  14312.      :clear
  14313.      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  14314.      t end
  14315.      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  14316.      :end' >>confcache
  14317. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  14318.   if test -w "$cache_file"; then
  14319.     if test "x$cache_file" != "x/dev/null"; then
  14320.       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  14321. $as_echo "$as_me: updating cache $cache_file" >&6;}
  14322.       if test ! -f "$cache_file" || test -h "$cache_file"; then
  14323.         cat confcache >"$cache_file"
  14324.       else
  14325.         case $cache_file in #(
  14326.         */* | ?:*)
  14327.           mv -f confcache "$cache_file"$$ &&
  14328.           mv -f "$cache_file"$$ "$cache_file" ;; #(
  14329.         *)
  14330.           mv -f confcache "$cache_file" ;;
  14331.         esac
  14332.       fi
  14333.     fi
  14334.   else
  14335.     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  14336. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  14337.   fi
  14338. fi
  14339. rm -f confcache
  14340.  
  14341. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  14342. # Let make expand exec_prefix.
  14343. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  14344.  
  14345. DEFS=-DHAVE_CONFIG_H
  14346.  
  14347. ac_libobjs=
  14348. ac_ltlibobjs=
  14349. U=
  14350. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  14351.   # 1. Remove the extension, and $U if already installed.
  14352.   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  14353.   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  14354.   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
  14355.   #    will be set to the directory where LIBOBJS objects are built.
  14356.   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  14357.   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  14358. done
  14359. LIBOBJS=$ac_libobjs
  14360.  
  14361. LTLIBOBJS=$ac_ltlibobjs
  14362.  
  14363.  
  14364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  14365. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  14366.    if test -n "$am_sleep_pid"; then
  14367.      # Hide warnings about reused PIDs.
  14368.      wait $am_sleep_pid 2>/dev/null
  14369.    fi
  14370.    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  14371. $as_echo "done" >&6; }
  14372.  if test -n "$EXEEXT"; then
  14373.   am__EXEEXT_TRUE=
  14374.   am__EXEEXT_FALSE='#'
  14375. else
  14376.   am__EXEEXT_TRUE='#'
  14377.   am__EXEEXT_FALSE=
  14378. fi
  14379.  
  14380. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  14381.   as_fn_error $? "conditional \"AMDEP\" was never defined.
  14382. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14383. fi
  14384. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  14385.   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  14386. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14387. fi
  14388. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  14389.   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  14390. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14391. fi
  14392.  
  14393. if test -z "${HAVE_GEN4ASM_TRUE}" && test -z "${HAVE_GEN4ASM_FALSE}"; then
  14394.   as_fn_error $? "conditional \"HAVE_GEN4ASM\" was never defined.
  14395. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14396. fi
  14397. if test -z "${USE_DRM_TRUE}" && test -z "${USE_DRM_FALSE}"; then
  14398.   as_fn_error $? "conditional \"USE_DRM\" was never defined.
  14399. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14400. fi
  14401. if test -z "${USE_X11_TRUE}" && test -z "${USE_X11_FALSE}"; then
  14402.   as_fn_error $? "conditional \"USE_X11\" was never defined.
  14403. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14404. fi
  14405. if test -z "${USE_EGL_TRUE}" && test -z "${USE_EGL_FALSE}"; then
  14406.   as_fn_error $? "conditional \"USE_EGL\" was never defined.
  14407. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14408. fi
  14409. if test -z "${USE_WAYLAND_TRUE}" && test -z "${USE_WAYLAND_FALSE}"; then
  14410.   as_fn_error $? "conditional \"USE_WAYLAND\" was never defined.
  14411. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14412. fi
  14413.  
  14414. : "${CONFIG_STATUS=./config.status}"
  14415. ac_write_fail=0
  14416. ac_clean_files_save=$ac_clean_files
  14417. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  14418. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  14419. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  14420. as_write_fail=0
  14421. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  14422. #! $SHELL
  14423. # Generated by $as_me.
  14424. # Run this file to recreate the current configuration.
  14425. # Compiler output produced by configure, useful for debugging
  14426. # configure, is in config.log if it exists.
  14427.  
  14428. debug=false
  14429. ac_cs_recheck=false
  14430. ac_cs_silent=false
  14431.  
  14432. SHELL=\${CONFIG_SHELL-$SHELL}
  14433. export SHELL
  14434. _ASEOF
  14435. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  14436. ## -------------------- ##
  14437. ## M4sh Initialization. ##
  14438. ## -------------------- ##
  14439.  
  14440. # Be more Bourne compatible
  14441. DUALCASE=1; export DUALCASE # for MKS sh
  14442. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  14443.   emulate sh
  14444.   NULLCMD=:
  14445.   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  14446.   # is contrary to our usage.  Disable this feature.
  14447.   alias -g '${1+"$@"}'='"$@"'
  14448.   setopt NO_GLOB_SUBST
  14449. else
  14450.   case `(set -o) 2>/dev/null` in #(
  14451.   *posix*) :
  14452.     set -o posix ;; #(
  14453.   *) :
  14454.      ;;
  14455. esac
  14456. fi
  14457.  
  14458.  
  14459. as_nl='
  14460. '
  14461. export as_nl
  14462. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  14463. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  14464. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  14465. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  14466. # Prefer a ksh shell builtin over an external printf program on Solaris,
  14467. # but without wasting forks for bash or zsh.
  14468. if test -z "$BASH_VERSION$ZSH_VERSION" \
  14469.     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  14470.   as_echo='print -r --'
  14471.   as_echo_n='print -rn --'
  14472. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  14473.   as_echo='printf %s\n'
  14474.   as_echo_n='printf %s'
  14475. else
  14476.   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  14477.     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  14478.     as_echo_n='/usr/ucb/echo -n'
  14479.   else
  14480.     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  14481.     as_echo_n_body='eval
  14482.       arg=$1;
  14483.       case $arg in #(
  14484.       *"$as_nl"*)
  14485.         expr "X$arg" : "X\\(.*\\)$as_nl";
  14486.         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  14487.       esac;
  14488.       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  14489.     '
  14490.     export as_echo_n_body
  14491.     as_echo_n='sh -c $as_echo_n_body as_echo'
  14492.   fi
  14493.   export as_echo_body
  14494.   as_echo='sh -c $as_echo_body as_echo'
  14495. fi
  14496.  
  14497. # The user is always right.
  14498. if test "${PATH_SEPARATOR+set}" != set; then
  14499.   PATH_SEPARATOR=:
  14500.   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  14501.     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  14502.       PATH_SEPARATOR=';'
  14503.   }
  14504. fi
  14505.  
  14506.  
  14507. # IFS
  14508. # We need space, tab and new line, in precisely that order.  Quoting is
  14509. # there to prevent editors from complaining about space-tab.
  14510. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  14511. # splitting by setting IFS to empty value.)
  14512. IFS=" ""        $as_nl"
  14513.  
  14514. # Find who we are.  Look in the path if we contain no directory separator.
  14515. as_myself=
  14516. case $0 in #((
  14517.   *[\\/]* ) as_myself=$0 ;;
  14518.   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14519. for as_dir in $PATH
  14520. do
  14521.   IFS=$as_save_IFS
  14522.   test -z "$as_dir" && as_dir=.
  14523.     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  14524.   done
  14525. IFS=$as_save_IFS
  14526.  
  14527.      ;;
  14528. esac
  14529. # We did not find ourselves, most probably we were run as `sh COMMAND'
  14530. # in which case we are not to be found in the path.
  14531. if test "x$as_myself" = x; then
  14532.   as_myself=$0
  14533. fi
  14534. if test ! -f "$as_myself"; then
  14535.   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  14536.   exit 1
  14537. fi
  14538.  
  14539. # Unset variables that we do not need and which cause bugs (e.g. in
  14540. # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
  14541. # suppresses any "Segmentation fault" message there.  '((' could
  14542. # trigger a bug in pdksh 5.2.14.
  14543. for as_var in BASH_ENV ENV MAIL MAILPATH
  14544. do eval test x\${$as_var+set} = xset \
  14545.   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  14546. done
  14547. PS1='$ '
  14548. PS2='> '
  14549. PS4='+ '
  14550.  
  14551. # NLS nuisances.
  14552. LC_ALL=C
  14553. export LC_ALL
  14554. LANGUAGE=C
  14555. export LANGUAGE
  14556.  
  14557. # CDPATH.
  14558. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  14559.  
  14560.  
  14561. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  14562. # ----------------------------------------
  14563. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  14564. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  14565. # script with STATUS, using 1 if that was 0.
  14566. as_fn_error ()
  14567. {
  14568.   as_status=$1; test $as_status -eq 0 && as_status=1
  14569.   if test "$4"; then
  14570.     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  14571.     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  14572.   fi
  14573.   $as_echo "$as_me: error: $2" >&2
  14574.   as_fn_exit $as_status
  14575. } # as_fn_error
  14576.  
  14577.  
  14578. # as_fn_set_status STATUS
  14579. # -----------------------
  14580. # Set $? to STATUS, without forking.
  14581. as_fn_set_status ()
  14582. {
  14583.   return $1
  14584. } # as_fn_set_status
  14585.  
  14586. # as_fn_exit STATUS
  14587. # -----------------
  14588. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  14589. as_fn_exit ()
  14590. {
  14591.   set +e
  14592.   as_fn_set_status $1
  14593.   exit $1
  14594. } # as_fn_exit
  14595.  
  14596. # as_fn_unset VAR
  14597. # ---------------
  14598. # Portably unset VAR.
  14599. as_fn_unset ()
  14600. {
  14601.   { eval $1=; unset $1;}
  14602. }
  14603. as_unset=as_fn_unset
  14604. # as_fn_append VAR VALUE
  14605. # ----------------------
  14606. # Append the text in VALUE to the end of the definition contained in VAR. Take
  14607. # advantage of any shell optimizations that allow amortized linear growth over
  14608. # repeated appends, instead of the typical quadratic growth present in naive
  14609. # implementations.
  14610. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  14611.   eval 'as_fn_append ()
  14612.   {
  14613.     eval $1+=\$2
  14614.   }'
  14615. else
  14616.   as_fn_append ()
  14617.   {
  14618.     eval $1=\$$1\$2
  14619.   }
  14620. fi # as_fn_append
  14621.  
  14622. # as_fn_arith ARG...
  14623. # ------------------
  14624. # Perform arithmetic evaluation on the ARGs, and store the result in the
  14625. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  14626. # must be portable across $(()) and expr.
  14627. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  14628.   eval 'as_fn_arith ()
  14629.   {
  14630.     as_val=$(( $* ))
  14631.   }'
  14632. else
  14633.   as_fn_arith ()
  14634.   {
  14635.     as_val=`expr "$@" || test $? -eq 1`
  14636.   }
  14637. fi # as_fn_arith
  14638.  
  14639.  
  14640. if expr a : '\(a\)' >/dev/null 2>&1 &&
  14641.    test "X`expr 00001 : '.*\(...\)'`" = X001; then
  14642.   as_expr=expr
  14643. else
  14644.   as_expr=false
  14645. fi
  14646.  
  14647. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  14648.   as_basename=basename
  14649. else
  14650.   as_basename=false
  14651. fi
  14652.  
  14653. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  14654.   as_dirname=dirname
  14655. else
  14656.   as_dirname=false
  14657. fi
  14658.  
  14659. as_me=`$as_basename -- "$0" ||
  14660. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  14661.          X"$0" : 'X\(//\)$' \| \
  14662.          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  14663. $as_echo X/"$0" |
  14664.     sed '/^.*\/\([^/][^/]*\)\/*$/{
  14665.             s//\1/
  14666.             q
  14667.           }
  14668.           /^X\/\(\/\/\)$/{
  14669.             s//\1/
  14670.             q
  14671.           }
  14672.           /^X\/\(\/\).*/{
  14673.             s//\1/
  14674.             q
  14675.           }
  14676.           s/.*/./; q'`
  14677.  
  14678. # Avoid depending upon Character Ranges.
  14679. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  14680. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  14681. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  14682. as_cr_digits='0123456789'
  14683. as_cr_alnum=$as_cr_Letters$as_cr_digits
  14684.  
  14685. ECHO_C= ECHO_N= ECHO_T=
  14686. case `echo -n x` in #(((((
  14687. -n*)
  14688.   case `echo 'xy\c'` in
  14689.   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
  14690.   xy)  ECHO_C='\c';;
  14691.   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
  14692.        ECHO_T=' ';;
  14693.   esac;;
  14694. *)
  14695.   ECHO_N='-n';;
  14696. esac
  14697.  
  14698. rm -f conf$$ conf$$.exe conf$$.file
  14699. if test -d conf$$.dir; then
  14700.   rm -f conf$$.dir/conf$$.file
  14701. else
  14702.   rm -f conf$$.dir
  14703.   mkdir conf$$.dir 2>/dev/null
  14704. fi
  14705. if (echo >conf$$.file) 2>/dev/null; then
  14706.   if ln -s conf$$.file conf$$ 2>/dev/null; then
  14707.     as_ln_s='ln -s'
  14708.     # ... but there are two gotchas:
  14709.     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  14710.     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  14711.     # In both cases, we have to default to `cp -pR'.
  14712.     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  14713.       as_ln_s='cp -pR'
  14714.   elif ln conf$$.file conf$$ 2>/dev/null; then
  14715.     as_ln_s=ln
  14716.   else
  14717.     as_ln_s='cp -pR'
  14718.   fi
  14719. else
  14720.   as_ln_s='cp -pR'
  14721. fi
  14722. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  14723. rmdir conf$$.dir 2>/dev/null
  14724.  
  14725.  
  14726. # as_fn_mkdir_p
  14727. # -------------
  14728. # Create "$as_dir" as a directory, including parents if necessary.
  14729. as_fn_mkdir_p ()
  14730. {
  14731.  
  14732.   case $as_dir in #(
  14733.   -*) as_dir=./$as_dir;;
  14734.   esac
  14735.   test -d "$as_dir" || eval $as_mkdir_p || {
  14736.     as_dirs=
  14737.     while :; do
  14738.       case $as_dir in #(
  14739.       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  14740.       *) as_qdir=$as_dir;;
  14741.       esac
  14742.       as_dirs="'$as_qdir' $as_dirs"
  14743.       as_dir=`$as_dirname -- "$as_dir" ||
  14744. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14745.          X"$as_dir" : 'X\(//\)[^/]' \| \
  14746.          X"$as_dir" : 'X\(//\)$' \| \
  14747.          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  14748. $as_echo X"$as_dir" |
  14749.     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14750.             s//\1/
  14751.             q
  14752.           }
  14753.           /^X\(\/\/\)[^/].*/{
  14754.             s//\1/
  14755.             q
  14756.           }
  14757.           /^X\(\/\/\)$/{
  14758.             s//\1/
  14759.             q
  14760.           }
  14761.           /^X\(\/\).*/{
  14762.             s//\1/
  14763.             q
  14764.           }
  14765.           s/.*/./; q'`
  14766.       test -d "$as_dir" && break
  14767.     done
  14768.     test -z "$as_dirs" || eval "mkdir $as_dirs"
  14769.   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  14770.  
  14771.  
  14772. } # as_fn_mkdir_p
  14773. if mkdir -p . 2>/dev/null; then
  14774.   as_mkdir_p='mkdir -p "$as_dir"'
  14775. else
  14776.   test -d ./-p && rmdir ./-p
  14777.   as_mkdir_p=false
  14778. fi
  14779.  
  14780.  
  14781. # as_fn_executable_p FILE
  14782. # -----------------------
  14783. # Test if FILE is an executable regular file.
  14784. as_fn_executable_p ()
  14785. {
  14786.   test -f "$1" && test -x "$1"
  14787. } # as_fn_executable_p
  14788. as_test_x='test -x'
  14789. as_executable_p=as_fn_executable_p
  14790.  
  14791. # Sed expression to map a string onto a valid CPP name.
  14792. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  14793.  
  14794. # Sed expression to map a string onto a valid variable name.
  14795. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  14796.  
  14797.  
  14798. exec 6>&1
  14799. ## ----------------------------------- ##
  14800. ## Main body of $CONFIG_STATUS script. ##
  14801. ## ----------------------------------- ##
  14802. _ASEOF
  14803. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  14804.  
  14805. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14806. # Save the log message, to keep $0 and so on meaningful, and to
  14807. # report actual input values of CONFIG_FILES etc. instead of their
  14808. # values after options handling.
  14809. ac_log="
  14810. This file was extended by intel_driver $as_me 1.4.1, which was
  14811. generated by GNU Autoconf 2.69.  Invocation command line was
  14812.  
  14813.   CONFIG_FILES    = $CONFIG_FILES
  14814.   CONFIG_HEADERS  = $CONFIG_HEADERS
  14815.   CONFIG_LINKS    = $CONFIG_LINKS
  14816.   CONFIG_COMMANDS = $CONFIG_COMMANDS
  14817.   $ $0 $@
  14818.  
  14819. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  14820. "
  14821.  
  14822. _ACEOF
  14823.  
  14824. case $ac_config_files in *"
  14825. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  14826. esac
  14827.  
  14828. case $ac_config_headers in *"
  14829. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  14830. esac
  14831.  
  14832.  
  14833. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14834. # Files that config.status was made for.
  14835. config_files="$ac_config_files"
  14836. config_headers="$ac_config_headers"
  14837. config_commands="$ac_config_commands"
  14838.  
  14839. _ACEOF
  14840.  
  14841. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14842. ac_cs_usage="\
  14843. \`$as_me' instantiates files and other configuration actions
  14844. from templates according to the current configuration.  Unless the files
  14845. and actions are specified as TAGs, all are instantiated by default.
  14846.  
  14847. Usage: $0 [OPTION]... [TAG]...
  14848.  
  14849.   -h, --help       print this help, then exit
  14850.   -V, --version    print version number and configuration settings, then exit
  14851.       --config     print configuration, then exit
  14852.   -q, --quiet, --silent
  14853.                    do not print progress messages
  14854.   -d, --debug      don't remove temporary files
  14855.       --recheck    update $as_me by reconfiguring in the same conditions
  14856.       --file=FILE[:TEMPLATE]
  14857.                    instantiate the configuration file FILE
  14858.       --header=FILE[:TEMPLATE]
  14859.                    instantiate the configuration header FILE
  14860.  
  14861. Configuration files:
  14862. $config_files
  14863.  
  14864. Configuration headers:
  14865. $config_headers
  14866.  
  14867. Configuration commands:
  14868. $config_commands
  14869.  
  14870. Report bugs to <haihao.xiang@intel.com>."
  14871.  
  14872. _ACEOF
  14873. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14874. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  14875. ac_cs_version="\\
  14876. intel_driver config.status 1.4.1
  14877. configured by $0, generated by GNU Autoconf 2.69,
  14878.   with options \\"\$ac_cs_config\\"
  14879.  
  14880. Copyright (C) 2012 Free Software Foundation, Inc.
  14881. This config.status script is free software; the Free Software Foundation
  14882. gives unlimited permission to copy, distribute and modify it."
  14883.  
  14884. ac_pwd='$ac_pwd'
  14885. srcdir='$srcdir'
  14886. INSTALL='$INSTALL'
  14887. MKDIR_P='$MKDIR_P'
  14888. AWK='$AWK'
  14889. test -n "\$AWK" || AWK=awk
  14890. _ACEOF
  14891.  
  14892. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14893. # The default lists apply if the user does not specify any file.
  14894. ac_need_defaults=:
  14895. while test $# != 0
  14896. do
  14897.   case $1 in
  14898.   --*=?*)
  14899.     ac_option=`expr "X$1" : 'X\([^=]*\)='`
  14900.     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  14901.     ac_shift=:
  14902.     ;;
  14903.   --*=)
  14904.     ac_option=`expr "X$1" : 'X\([^=]*\)='`
  14905.     ac_optarg=
  14906.     ac_shift=:
  14907.     ;;
  14908.   *)
  14909.     ac_option=$1
  14910.     ac_optarg=$2
  14911.     ac_shift=shift
  14912.     ;;
  14913.   esac
  14914.  
  14915.   case $ac_option in
  14916.   # Handling of the options.
  14917.   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  14918.     ac_cs_recheck=: ;;
  14919.   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  14920.     $as_echo "$ac_cs_version"; exit ;;
  14921.   --config | --confi | --conf | --con | --co | --c )
  14922.     $as_echo "$ac_cs_config"; exit ;;
  14923.   --debug | --debu | --deb | --de | --d | -d )
  14924.     debug=: ;;
  14925.   --file | --fil | --fi | --f )
  14926.     $ac_shift
  14927.     case $ac_optarg in
  14928.     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  14929.     '') as_fn_error $? "missing file argument" ;;
  14930.     esac
  14931.     as_fn_append CONFIG_FILES " '$ac_optarg'"
  14932.     ac_need_defaults=false;;
  14933.   --header | --heade | --head | --hea )
  14934.     $ac_shift
  14935.     case $ac_optarg in
  14936.     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  14937.     esac
  14938.     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  14939.     ac_need_defaults=false;;
  14940.   --he | --h)
  14941.     # Conflict between --help and --header
  14942.     as_fn_error $? "ambiguous option: \`$1'
  14943. Try \`$0 --help' for more information.";;
  14944.   --help | --hel | -h )
  14945.     $as_echo "$ac_cs_usage"; exit ;;
  14946.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  14947.   | -silent | --silent | --silen | --sile | --sil | --si | --s)
  14948.     ac_cs_silent=: ;;
  14949.  
  14950.   # This is an error.
  14951.   -*) as_fn_error $? "unrecognized option: \`$1'
  14952. Try \`$0 --help' for more information." ;;
  14953.  
  14954.   *) as_fn_append ac_config_targets " $1"
  14955.      ac_need_defaults=false ;;
  14956.  
  14957.   esac
  14958.   shift
  14959. done
  14960.  
  14961. ac_configure_extra_args=
  14962.  
  14963. if $ac_cs_silent; then
  14964.   exec 6>/dev/null
  14965.   ac_configure_extra_args="$ac_configure_extra_args --silent"
  14966. fi
  14967.  
  14968. _ACEOF
  14969. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14970. if \$ac_cs_recheck; then
  14971.   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  14972.   shift
  14973.   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  14974.   CONFIG_SHELL='$SHELL'
  14975.   export CONFIG_SHELL
  14976.   exec "\$@"
  14977. fi
  14978.  
  14979. _ACEOF
  14980. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14981. exec 5>>config.log
  14982. {
  14983.   echo
  14984.   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  14985. ## Running $as_me. ##
  14986. _ASBOX
  14987.   $as_echo "$ac_log"
  14988. } >&5
  14989.  
  14990. _ACEOF
  14991. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14992. #
  14993. # INIT-COMMANDS
  14994. #
  14995. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  14996.  
  14997.  
  14998. # The HP-UX ksh and POSIX shell print the target directory to stdout
  14999. # if CDPATH is set.
  15000. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  15001.  
  15002. sed_quote_subst='$sed_quote_subst'
  15003. double_quote_subst='$double_quote_subst'
  15004. delay_variable_subst='$delay_variable_subst'
  15005. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  15006. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  15007. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  15008. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  15009. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  15010. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  15011. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  15012. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  15013. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  15014. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  15015. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  15016. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  15017. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  15018. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  15019. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  15020. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  15021. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  15022. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  15023. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  15024. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  15025. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  15026. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  15027. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  15028. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  15029. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  15030. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  15031. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  15032. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  15033. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  15034. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  15035. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  15036. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  15037. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  15038. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  15039. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  15040. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  15041. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  15042. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  15043. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  15044. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  15045. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  15046. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  15047. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  15048. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  15049. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  15050. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  15051. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  15052. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  15053. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  15054. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  15055. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  15056. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  15057. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  15058. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  15059. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  15060. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  15061. 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"`'
  15062. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  15063. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  15064. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  15065. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  15066. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  15067. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  15068. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  15069. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  15070. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  15071. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  15072. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  15073. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  15074. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  15075. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  15076. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  15077. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  15078. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  15079. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  15080. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  15081. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  15082. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  15083. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  15084. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  15085. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  15086. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  15087. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  15088. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  15089. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  15090. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  15091. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  15092. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  15093. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  15094. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  15095. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  15096. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  15097. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  15098. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  15099. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  15100. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  15101. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  15102. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  15103. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  15104. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  15105. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  15106. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  15107. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  15108. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  15109. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  15110. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  15111. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  15112. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  15113. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  15114. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  15115. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  15116. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  15117. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  15118. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  15119. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  15120. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  15121. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  15122. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  15123. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  15124. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  15125. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  15126. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  15127. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  15128. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  15129. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  15130. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  15131. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  15132. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  15133. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  15134. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  15135.  
  15136. LTCC='$LTCC'
  15137. LTCFLAGS='$LTCFLAGS'
  15138. compiler='$compiler_DEFAULT'
  15139.  
  15140. # A function that is used when there is no print builtin or printf.
  15141. func_fallback_echo ()
  15142. {
  15143.   eval 'cat <<_LTECHO_EOF
  15144. \$1
  15145. _LTECHO_EOF'
  15146. }
  15147.  
  15148. # Quote evaled strings.
  15149. for var in SHELL \
  15150. ECHO \
  15151. PATH_SEPARATOR \
  15152. SED \
  15153. GREP \
  15154. EGREP \
  15155. FGREP \
  15156. LD \
  15157. NM \
  15158. LN_S \
  15159. lt_SP2NL \
  15160. lt_NL2SP \
  15161. reload_flag \
  15162. OBJDUMP \
  15163. deplibs_check_method \
  15164. file_magic_cmd \
  15165. file_magic_glob \
  15166. want_nocaseglob \
  15167. DLLTOOL \
  15168. sharedlib_from_linklib_cmd \
  15169. AR \
  15170. AR_FLAGS \
  15171. archiver_list_spec \
  15172. STRIP \
  15173. RANLIB \
  15174. CC \
  15175. CFLAGS \
  15176. compiler \
  15177. lt_cv_sys_global_symbol_pipe \
  15178. lt_cv_sys_global_symbol_to_cdecl \
  15179. lt_cv_sys_global_symbol_to_c_name_address \
  15180. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  15181. nm_file_list_spec \
  15182. lt_prog_compiler_no_builtin_flag \
  15183. lt_prog_compiler_pic \
  15184. lt_prog_compiler_wl \
  15185. lt_prog_compiler_static \
  15186. lt_cv_prog_compiler_c_o \
  15187. need_locks \
  15188. MANIFEST_TOOL \
  15189. DSYMUTIL \
  15190. NMEDIT \
  15191. LIPO \
  15192. OTOOL \
  15193. OTOOL64 \
  15194. shrext_cmds \
  15195. export_dynamic_flag_spec \
  15196. whole_archive_flag_spec \
  15197. compiler_needs_object \
  15198. with_gnu_ld \
  15199. allow_undefined_flag \
  15200. no_undefined_flag \
  15201. hardcode_libdir_flag_spec \
  15202. hardcode_libdir_separator \
  15203. exclude_expsyms \
  15204. include_expsyms \
  15205. file_list_spec \
  15206. variables_saved_for_relink \
  15207. libname_spec \
  15208. library_names_spec \
  15209. soname_spec \
  15210. install_override_mode \
  15211. finish_eval \
  15212. old_striplib \
  15213. striplib; do
  15214.     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  15215.     *[\\\\\\\`\\"\\\$]*)
  15216.       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  15217.       ;;
  15218.     *)
  15219.       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  15220.       ;;
  15221.     esac
  15222. done
  15223.  
  15224. # Double-quote double-evaled strings.
  15225. for var in reload_cmds \
  15226. old_postinstall_cmds \
  15227. old_postuninstall_cmds \
  15228. old_archive_cmds \
  15229. extract_expsyms_cmds \
  15230. old_archive_from_new_cmds \
  15231. old_archive_from_expsyms_cmds \
  15232. archive_cmds \
  15233. archive_expsym_cmds \
  15234. module_cmds \
  15235. module_expsym_cmds \
  15236. export_symbols_cmds \
  15237. prelink_cmds \
  15238. postlink_cmds \
  15239. postinstall_cmds \
  15240. postuninstall_cmds \
  15241. finish_cmds \
  15242. sys_lib_search_path_spec \
  15243. sys_lib_dlsearch_path_spec; do
  15244.     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  15245.     *[\\\\\\\`\\"\\\$]*)
  15246.       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  15247.       ;;
  15248.     *)
  15249.       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  15250.       ;;
  15251.     esac
  15252. done
  15253.  
  15254. ac_aux_dir='$ac_aux_dir'
  15255. xsi_shell='$xsi_shell'
  15256. lt_shell_append='$lt_shell_append'
  15257.  
  15258. # See if we are running on zsh, and set the options which allow our
  15259. # commands through without removal of \ escapes INIT.
  15260. if test -n "\${ZSH_VERSION+set}" ; then
  15261.    setopt NO_GLOB_SUBST
  15262. fi
  15263.  
  15264.  
  15265.     PACKAGE='$PACKAGE'
  15266.     VERSION='$VERSION'
  15267.     TIMESTAMP='$TIMESTAMP'
  15268.     RM='$RM'
  15269.     ofile='$ofile'
  15270.  
  15271.  
  15272.  
  15273.  
  15274. _ACEOF
  15275.  
  15276. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15277.  
  15278. # Handling of arguments.
  15279. for ac_config_target in $ac_config_targets
  15280. do
  15281.   case $ac_config_target in
  15282.     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
  15283.     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  15284.     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  15285.     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  15286.     "debian.upstream/Makefile") CONFIG_FILES="$CONFIG_FILES debian.upstream/Makefile" ;;
  15287.     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  15288.     "src/shaders/Makefile") CONFIG_FILES="$CONFIG_FILES src/shaders/Makefile" ;;
  15289.     "src/shaders/h264/Makefile") CONFIG_FILES="$CONFIG_FILES src/shaders/h264/Makefile" ;;
  15290.     "src/shaders/h264/ildb/Makefile") CONFIG_FILES="$CONFIG_FILES src/shaders/h264/ildb/Makefile" ;;
  15291.     "src/shaders/h264/mc/Makefile") CONFIG_FILES="$CONFIG_FILES src/shaders/h264/mc/Makefile" ;;
  15292.     "src/shaders/mpeg2/Makefile") CONFIG_FILES="$CONFIG_FILES src/shaders/mpeg2/Makefile" ;;
  15293.     "src/shaders/mpeg2/vld/Makefile") CONFIG_FILES="$CONFIG_FILES src/shaders/mpeg2/vld/Makefile" ;;
  15294.     "src/shaders/post_processing/Makefile") CONFIG_FILES="$CONFIG_FILES src/shaders/post_processing/Makefile" ;;
  15295.     "src/shaders/post_processing/gen5_6/Makefile") CONFIG_FILES="$CONFIG_FILES src/shaders/post_processing/gen5_6/Makefile" ;;
  15296.     "src/shaders/post_processing/gen7/Makefile") CONFIG_FILES="$CONFIG_FILES src/shaders/post_processing/gen7/Makefile" ;;
  15297.     "src/shaders/post_processing/gen75/Makefile") CONFIG_FILES="$CONFIG_FILES src/shaders/post_processing/gen75/Makefile" ;;
  15298.     "src/shaders/post_processing/gen8/Makefile") CONFIG_FILES="$CONFIG_FILES src/shaders/post_processing/gen8/Makefile" ;;
  15299.     "src/shaders/render/Makefile") CONFIG_FILES="$CONFIG_FILES src/shaders/render/Makefile" ;;
  15300.     "src/shaders/utils/Makefile") CONFIG_FILES="$CONFIG_FILES src/shaders/utils/Makefile" ;;
  15301.     "src/shaders/vme/Makefile") CONFIG_FILES="$CONFIG_FILES src/shaders/vme/Makefile" ;;
  15302.     "src/wayland/Makefile") CONFIG_FILES="$CONFIG_FILES src/wayland/Makefile" ;;
  15303.  
  15304.   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  15305.   esac
  15306. done
  15307.  
  15308.  
  15309. # If the user did not use the arguments to specify the items to instantiate,
  15310. # then the envvar interface is used.  Set only those that are not.
  15311. # We use the long form for the default assignment because of an extremely
  15312. # bizarre bug on SunOS 4.1.3.
  15313. if $ac_need_defaults; then
  15314.   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  15315.   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  15316.   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  15317. fi
  15318.  
  15319. # Have a temporary directory for convenience.  Make it in the build tree
  15320. # simply because there is no reason against having it here, and in addition,
  15321. # creating and moving files from /tmp can sometimes cause problems.
  15322. # Hook for its removal unless debugging.
  15323. # Note that there is a small window in which the directory will not be cleaned:
  15324. # after its creation but before its name has been assigned to `$tmp'.
  15325. $debug ||
  15326. {
  15327.   tmp= ac_tmp=
  15328.   trap 'exit_status=$?
  15329.   : "${ac_tmp:=$tmp}"
  15330.   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  15331. ' 0
  15332.   trap 'as_fn_exit 1' 1 2 13 15
  15333. }
  15334. # Create a (secure) tmp directory for tmp files.
  15335.  
  15336. {
  15337.   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  15338.   test -d "$tmp"
  15339. }  ||
  15340. {
  15341.   tmp=./conf$$-$RANDOM
  15342.   (umask 077 && mkdir "$tmp")
  15343. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  15344. ac_tmp=$tmp
  15345.  
  15346. # Set up the scripts for CONFIG_FILES section.
  15347. # No need to generate them if there are no CONFIG_FILES.
  15348. # This happens for instance with `./config.status config.h'.
  15349. if test -n "$CONFIG_FILES"; then
  15350.  
  15351. if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
  15352.   ac_cs_awk_getline=:
  15353.   ac_cs_awk_pipe_init=
  15354.   ac_cs_awk_read_file='
  15355.       while ((getline aline < (F[key])) > 0)
  15356.         print(aline)
  15357.       close(F[key])'
  15358.   ac_cs_awk_pipe_fini=
  15359. else
  15360.   ac_cs_awk_getline=false
  15361.   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
  15362.   ac_cs_awk_read_file='
  15363.       print "|#_!!_#|"
  15364.       print "cat " F[key] " &&"
  15365.       '$ac_cs_awk_pipe_init
  15366.   # The final `:' finishes the AND list.
  15367.   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
  15368. fi
  15369. ac_cr=`echo X | tr X '\015'`
  15370. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  15371. # But we know of no other shell where ac_cr would be empty at this
  15372. # point, so we can use a bashism as a fallback.
  15373. if test "x$ac_cr" = x; then
  15374.   eval ac_cr=\$\'\\r\'
  15375. fi
  15376. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  15377. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  15378.   ac_cs_awk_cr='\\r'
  15379. else
  15380.   ac_cs_awk_cr=$ac_cr
  15381. fi
  15382.  
  15383. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  15384. _ACEOF
  15385.  
  15386. # Create commands to substitute file output variables.
  15387. {
  15388.   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
  15389.   echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
  15390.   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
  15391.   echo "_ACAWK" &&
  15392.   echo "_ACEOF"
  15393. } >conf$$files.sh &&
  15394. . ./conf$$files.sh ||
  15395.   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  15396. rm -f conf$$files.sh
  15397.  
  15398. {
  15399.   echo "cat >conf$$subs.awk <<_ACEOF" &&
  15400.   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  15401.   echo "_ACEOF"
  15402. } >conf$$subs.sh ||
  15403.   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  15404. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  15405. ac_delim='%!_!# '
  15406. for ac_last_try in false false false false false :; do
  15407.   . ./conf$$subs.sh ||
  15408.     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  15409.  
  15410.   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  15411.   if test $ac_delim_n = $ac_delim_num; then
  15412.     break
  15413.   elif $ac_last_try; then
  15414.     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  15415.   else
  15416.     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  15417.   fi
  15418. done
  15419. rm -f conf$$subs.sh
  15420.  
  15421. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15422. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  15423. _ACEOF
  15424. sed -n '
  15425. h
  15426. s/^/S["/; s/!.*/"]=/
  15427. p
  15428. g
  15429. s/^[^!]*!//
  15430. :repl
  15431. t repl
  15432. s/'"$ac_delim"'$//
  15433. t delim
  15434. :nl
  15435. h
  15436. s/\(.\{148\}\)..*/\1/
  15437. t more1
  15438. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  15439. p
  15440. n
  15441. b repl
  15442. :more1
  15443. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  15444. p
  15445. g
  15446. s/.\{148\}//
  15447. t nl
  15448. :delim
  15449. h
  15450. s/\(.\{148\}\)..*/\1/
  15451. t more2
  15452. s/["\\]/\\&/g; s/^/"/; s/$/"/
  15453. p
  15454. b
  15455. :more2
  15456. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  15457. p
  15458. g
  15459. s/.\{148\}//
  15460. t delim
  15461. ' <conf$$subs.awk | sed '
  15462. /^[^""]/{
  15463.   N
  15464.   s/\n//
  15465. }
  15466. ' >>$CONFIG_STATUS || ac_write_fail=1
  15467. rm -f conf$$subs.awk
  15468. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15469. _ACAWK
  15470. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  15471.   for (key in S) S_is_set[key] = 1
  15472.   FS = ""
  15473.   \$ac_cs_awk_pipe_init
  15474. }
  15475. {
  15476.   line = $ 0
  15477.   nfields = split(line, field, "@")
  15478.   substed = 0
  15479.   len = length(field[1])
  15480.   for (i = 2; i < nfields; i++) {
  15481.     key = field[i]
  15482.     keylen = length(key)
  15483.     if (S_is_set[key]) {
  15484.       value = S[key]
  15485.       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  15486.       len += length(value) + length(field[++i])
  15487.       substed = 1
  15488.     } else
  15489.       len += 1 + keylen
  15490.   }
  15491.   if (nfields == 3 && !substed) {
  15492.     key = field[2]
  15493.     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
  15494.       \$ac_cs_awk_read_file
  15495.       next
  15496.     }
  15497.   }
  15498.   print line
  15499. }
  15500. \$ac_cs_awk_pipe_fini
  15501. _ACAWK
  15502. _ACEOF
  15503. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15504. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  15505.   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  15506. else
  15507.   cat
  15508. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  15509.   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  15510. _ACEOF
  15511.  
  15512. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  15513. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  15514. # trailing colons and then remove the whole line if VPATH becomes empty
  15515. # (actually we leave an empty line to preserve line numbers).
  15516. if test "x$srcdir" = x.; then
  15517.   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
  15518. h
  15519. s///
  15520. s/^/:/
  15521. s/[      ]*$/:/
  15522. s/:\$(srcdir):/:/g
  15523. s/:\${srcdir}:/:/g
  15524. s/:@srcdir@:/:/g
  15525. s/^:*//
  15526. s/:*$//
  15527. x
  15528. s/\(=[   ]*\).*/\1/
  15529. G
  15530. s/\n//
  15531. s/^[^=]*=[       ]*$//
  15532. }'
  15533. fi
  15534.  
  15535. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15536. fi # test -n "$CONFIG_FILES"
  15537.  
  15538. # Set up the scripts for CONFIG_HEADERS section.
  15539. # No need to generate them if there are no CONFIG_HEADERS.
  15540. # This happens for instance with `./config.status Makefile'.
  15541. if test -n "$CONFIG_HEADERS"; then
  15542. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  15543. BEGIN {
  15544. _ACEOF
  15545.  
  15546. # Transform confdefs.h into an awk script `defines.awk', embedded as
  15547. # here-document in config.status, that substitutes the proper values into
  15548. # config.h.in to produce config.h.
  15549.  
  15550. # Create a delimiter string that does not exist in confdefs.h, to ease
  15551. # handling of long lines.
  15552. ac_delim='%!_!# '
  15553. for ac_last_try in false false :; do
  15554.   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  15555.   if test -z "$ac_tt"; then
  15556.     break
  15557.   elif $ac_last_try; then
  15558.     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  15559.   else
  15560.     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  15561.   fi
  15562. done
  15563.  
  15564. # For the awk script, D is an array of macro values keyed by name,
  15565. # likewise P contains macro parameters if any.  Preserve backslash
  15566. # newline sequences.
  15567.  
  15568. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  15569. sed -n '
  15570. s/.\{148\}/&'"$ac_delim"'/g
  15571. t rset
  15572. :rset
  15573. s/^[     ]*#[    ]*define[       ][      ]*/ /
  15574. t def
  15575. d
  15576. :def
  15577. s/\\$//
  15578. t bsnl
  15579. s/["\\]/\\&/g
  15580. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
  15581. D["\1"]=" \3"/p
  15582. s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
  15583. d
  15584. :bsnl
  15585. s/["\\]/\\&/g
  15586. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
  15587. D["\1"]=" \3\\\\\\n"\\/p
  15588. t cont
  15589. s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  15590. t cont
  15591. d
  15592. :cont
  15593. n
  15594. s/.\{148\}/&'"$ac_delim"'/g
  15595. t clear
  15596. :clear
  15597. s/\\$//
  15598. t bsnlc
  15599. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  15600. d
  15601. :bsnlc
  15602. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  15603. b cont
  15604. ' <confdefs.h | sed '
  15605. s/'"$ac_delim"'/"\\\
  15606. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  15607.  
  15608. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15609.   for (key in D) D_is_set[key] = 1
  15610.   FS = ""
  15611. }
  15612. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  15613.   line = \$ 0
  15614.   split(line, arg, " ")
  15615.   if (arg[1] == "#") {
  15616.     defundef = arg[2]
  15617.     mac1 = arg[3]
  15618.   } else {
  15619.     defundef = substr(arg[1], 2)
  15620.     mac1 = arg[2]
  15621.   }
  15622.   split(mac1, mac2, "(") #)
  15623.   macro = mac2[1]
  15624.   prefix = substr(line, 1, index(line, defundef) - 1)
  15625.   if (D_is_set[macro]) {
  15626.     # Preserve the white space surrounding the "#".
  15627.     print prefix "define", macro P[macro] D[macro]
  15628.     next
  15629.   } else {
  15630.     # Replace #undef with comments.  This is necessary, for example,
  15631.     # in the case of _POSIX_SOURCE, which is predefined and required
  15632.     # on some systems where configure will not decide to define it.
  15633.     if (defundef == "undef") {
  15634.       print "/*", prefix defundef, macro, "*/"
  15635.       next
  15636.     }
  15637.   }
  15638. }
  15639. { print }
  15640. _ACAWK
  15641. _ACEOF
  15642. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15643.   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  15644. fi # test -n "$CONFIG_HEADERS"
  15645.  
  15646.  
  15647. eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
  15648. shift
  15649. for ac_tag
  15650. do
  15651.   case $ac_tag in
  15652.   :[FHLC]) ac_mode=$ac_tag; continue;;
  15653.   esac
  15654.   case $ac_mode$ac_tag in
  15655.   :[FHL]*:*);;
  15656.   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  15657.   :[FH]-) ac_tag=-:-;;
  15658.   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  15659.   esac
  15660.   ac_save_IFS=$IFS
  15661.   IFS=:
  15662.   set x $ac_tag
  15663.   IFS=$ac_save_IFS
  15664.   shift
  15665.   ac_file=$1
  15666.   shift
  15667.  
  15668.   case $ac_mode in
  15669.   :L) ac_source=$1;;
  15670.   :[FH])
  15671.     ac_file_inputs=
  15672.     for ac_f
  15673.     do
  15674.       case $ac_f in
  15675.       -) ac_f="$ac_tmp/stdin";;
  15676.       *) # Look for the file first in the build tree, then in the source tree
  15677.          # (if the path is not absolute).  The absolute path cannot be DOS-style,
  15678.          # because $ac_f cannot contain `:'.
  15679.          test -f "$ac_f" ||
  15680.            case $ac_f in
  15681.            [\\/$]*) false;;
  15682.            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  15683.            esac ||
  15684.            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  15685.       esac
  15686.       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  15687.       as_fn_append ac_file_inputs " '$ac_f'"
  15688.     done
  15689.  
  15690.     # Let's still pretend it is `configure' which instantiates (i.e., don't
  15691.     # use $as_me), people would be surprised to read:
  15692.     #    /* config.h.  Generated by config.status.  */
  15693.     configure_input='Generated from '`
  15694.           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  15695.         `' by configure.'
  15696.     if test x"$ac_file" != x-; then
  15697.       configure_input="$ac_file.  $configure_input"
  15698.       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  15699. $as_echo "$as_me: creating $ac_file" >&6;}
  15700.     fi
  15701.     # Neutralize special characters interpreted by sed in replacement strings.
  15702.     case $configure_input in #(
  15703.     *\&* | *\|* | *\\* )
  15704.        ac_sed_conf_input=`$as_echo "$configure_input" |
  15705.        sed 's/[\\\\&|]/\\\\&/g'`;; #(
  15706.     *) ac_sed_conf_input=$configure_input;;
  15707.     esac
  15708.  
  15709.     case $ac_tag in
  15710.     *:-:* | *:-) cat >"$ac_tmp/stdin" \
  15711.       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  15712.     esac
  15713.     ;;
  15714.   esac
  15715.  
  15716.   ac_dir=`$as_dirname -- "$ac_file" ||
  15717. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15718.          X"$ac_file" : 'X\(//\)[^/]' \| \
  15719.          X"$ac_file" : 'X\(//\)$' \| \
  15720.          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  15721. $as_echo X"$ac_file" |
  15722.     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15723.             s//\1/
  15724.             q
  15725.           }
  15726.           /^X\(\/\/\)[^/].*/{
  15727.             s//\1/
  15728.             q
  15729.           }
  15730.           /^X\(\/\/\)$/{
  15731.             s//\1/
  15732.             q
  15733.           }
  15734.           /^X\(\/\).*/{
  15735.             s//\1/
  15736.             q
  15737.           }
  15738.           s/.*/./; q'`
  15739.   as_dir="$ac_dir"; as_fn_mkdir_p
  15740.   ac_builddir=.
  15741.  
  15742. case "$ac_dir" in
  15743. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  15744. *)
  15745.   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  15746.   # A ".." for each directory in $ac_dir_suffix.
  15747.   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  15748.   case $ac_top_builddir_sub in
  15749.   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  15750.   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  15751.   esac ;;
  15752. esac
  15753. ac_abs_top_builddir=$ac_pwd
  15754. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  15755. # for backward compatibility:
  15756. ac_top_builddir=$ac_top_build_prefix
  15757.  
  15758. case $srcdir in
  15759.   .)  # We are building in place.
  15760.     ac_srcdir=.
  15761.     ac_top_srcdir=$ac_top_builddir_sub
  15762.     ac_abs_top_srcdir=$ac_pwd ;;
  15763.   [\\/]* | ?:[\\/]* )  # Absolute name.
  15764.     ac_srcdir=$srcdir$ac_dir_suffix;
  15765.     ac_top_srcdir=$srcdir
  15766.     ac_abs_top_srcdir=$srcdir ;;
  15767.   *) # Relative name.
  15768.     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  15769.     ac_top_srcdir=$ac_top_build_prefix$srcdir
  15770.     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  15771. esac
  15772. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  15773.  
  15774.  
  15775.   case $ac_mode in
  15776.   :F)
  15777.   #
  15778.   # CONFIG_FILE
  15779.   #
  15780.  
  15781.   case $INSTALL in
  15782.   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  15783.   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  15784.   esac
  15785.   ac_MKDIR_P=$MKDIR_P
  15786.   case $MKDIR_P in
  15787.   [\\/$]* | ?:[\\/]* ) ;;
  15788.   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  15789.   esac
  15790. _ACEOF
  15791.  
  15792. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15793. # If the template does not know about datarootdir, expand it.
  15794. # FIXME: This hack should be removed a few years after 2.60.
  15795. ac_datarootdir_hack=; ac_datarootdir_seen=
  15796. ac_sed_dataroot='
  15797. /datarootdir/ {
  15798.   p
  15799.   q
  15800. }
  15801. /@datadir@/p
  15802. /@docdir@/p
  15803. /@infodir@/p
  15804. /@localedir@/p
  15805. /@mandir@/p'
  15806. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  15807. *datarootdir*) ac_datarootdir_seen=yes;;
  15808. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  15809.   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  15810. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  15811. _ACEOF
  15812. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15813.   ac_datarootdir_hack='
  15814.   s&@datadir@&$datadir&g
  15815.   s&@docdir@&$docdir&g
  15816.   s&@infodir@&$infodir&g
  15817.   s&@localedir@&$localedir&g
  15818.   s&@mandir@&$mandir&g
  15819.   s&\\\${datarootdir}&$datarootdir&g' ;;
  15820. esac
  15821. _ACEOF
  15822.  
  15823. # Neutralize VPATH when `$srcdir' = `.'.
  15824. # Shell code in configure.ac might set extrasub.
  15825. # FIXME: do we really want to maintain this feature?
  15826. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15827. ac_sed_extra="$ac_vpsub
  15828. $extrasub
  15829. _ACEOF
  15830. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15831. :t
  15832. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  15833. s|@configure_input@|$ac_sed_conf_input|;t t
  15834. s&@top_builddir@&$ac_top_builddir_sub&;t t
  15835. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  15836. s&@srcdir@&$ac_srcdir&;t t
  15837. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  15838. s&@top_srcdir@&$ac_top_srcdir&;t t
  15839. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  15840. s&@builddir@&$ac_builddir&;t t
  15841. s&@abs_builddir@&$ac_abs_builddir&;t t
  15842. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  15843. s&@INSTALL@&$ac_INSTALL&;t t
  15844. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  15845. $ac_datarootdir_hack
  15846. "
  15847. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
  15848. if $ac_cs_awk_getline; then
  15849.   $AWK -f "$ac_tmp/subs.awk"
  15850. else
  15851.   $AWK -f "$ac_tmp/subs.awk" | $SHELL
  15852. fi \
  15853.   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  15854.  
  15855. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  15856.   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  15857.   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
  15858.       "$ac_tmp/out"`; test -z "$ac_out"; } &&
  15859.   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  15860. which seems to be undefined.  Please make sure it is defined" >&5
  15861. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  15862. which seems to be undefined.  Please make sure it is defined" >&2;}
  15863.  
  15864.   rm -f "$ac_tmp/stdin"
  15865.   case $ac_file in
  15866.   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  15867.   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  15868.   esac \
  15869.   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  15870.  ;;
  15871.   :H)
  15872.   #
  15873.   # CONFIG_HEADER
  15874.   #
  15875.   if test x"$ac_file" != x-; then
  15876.     {
  15877.       $as_echo "/* $configure_input  */" \
  15878.       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  15879.     } >"$ac_tmp/config.h" \
  15880.       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  15881.     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  15882.       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  15883. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  15884.     else
  15885.       rm -f "$ac_file"
  15886.       mv "$ac_tmp/config.h" "$ac_file" \
  15887.         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  15888.     fi
  15889.   else
  15890.     $as_echo "/* $configure_input  */" \
  15891.       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  15892.       || as_fn_error $? "could not create -" "$LINENO" 5
  15893.   fi
  15894. # Compute "$ac_file"'s index in $config_headers.
  15895. _am_arg="$ac_file"
  15896. _am_stamp_count=1
  15897. for _am_header in $config_headers :; do
  15898.   case $_am_header in
  15899.     $_am_arg | $_am_arg:* )
  15900.       break ;;
  15901.     * )
  15902.       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  15903.   esac
  15904. done
  15905. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  15906. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15907.          X"$_am_arg" : 'X\(//\)[^/]' \| \
  15908.          X"$_am_arg" : 'X\(//\)$' \| \
  15909.          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  15910. $as_echo X"$_am_arg" |
  15911.     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15912.             s//\1/
  15913.             q
  15914.           }
  15915.           /^X\(\/\/\)[^/].*/{
  15916.             s//\1/
  15917.             q
  15918.           }
  15919.           /^X\(\/\/\)$/{
  15920.             s//\1/
  15921.             q
  15922.           }
  15923.           /^X\(\/\).*/{
  15924.             s//\1/
  15925.             q
  15926.           }
  15927.           s/.*/./; q'`/stamp-h$_am_stamp_count
  15928.  ;;
  15929.  
  15930.   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  15931. $as_echo "$as_me: executing $ac_file commands" >&6;}
  15932.  ;;
  15933.   esac
  15934.  
  15935.  
  15936.   case $ac_file$ac_mode in
  15937.     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  15938.   # Older Autoconf quotes --file arguments for eval, but not when files
  15939.   # are listed without --file.  Let's play safe and only enable the eval
  15940.   # if we detect the quoting.
  15941.   case $CONFIG_FILES in
  15942.   *\'*) eval set x "$CONFIG_FILES" ;;
  15943.   *)   set x $CONFIG_FILES ;;
  15944.   esac
  15945.   shift
  15946.   for mf
  15947.   do
  15948.     # Strip MF so we end up with the name of the file.
  15949.     mf=`echo "$mf" | sed -e 's/:.*$//'`
  15950.     # Check whether this is an Automake generated Makefile or not.
  15951.     # We used to match only the files named 'Makefile.in', but
  15952.     # some people rename them; so instead we look at the file content.
  15953.     # Grep'ing the first line is not enough: some people post-process
  15954.     # each Makefile.in and add a new line on top of each file to say so.
  15955.     # Grep'ing the whole file is not good either: AIX grep has a line
  15956.     # limit of 2048, but all sed's we know have understand at least 4000.
  15957.     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  15958.       dirpart=`$as_dirname -- "$mf" ||
  15959. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15960.          X"$mf" : 'X\(//\)[^/]' \| \
  15961.          X"$mf" : 'X\(//\)$' \| \
  15962.          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  15963. $as_echo X"$mf" |
  15964.     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15965.             s//\1/
  15966.             q
  15967.           }
  15968.           /^X\(\/\/\)[^/].*/{
  15969.             s//\1/
  15970.             q
  15971.           }
  15972.           /^X\(\/\/\)$/{
  15973.             s//\1/
  15974.             q
  15975.           }
  15976.           /^X\(\/\).*/{
  15977.             s//\1/
  15978.             q
  15979.           }
  15980.           s/.*/./; q'`
  15981.     else
  15982.       continue
  15983.     fi
  15984.     # Extract the definition of DEPDIR, am__include, and am__quote
  15985.     # from the Makefile without running 'make'.
  15986.     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  15987.     test -z "$DEPDIR" && continue
  15988.     am__include=`sed -n 's/^am__include = //p' < "$mf"`
  15989.     test -z "$am__include" && continue
  15990.     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  15991.     # Find all dependency output files, they are included files with
  15992.     # $(DEPDIR) in their names.  We invoke sed twice because it is the
  15993.     # simplest approach to changing $(DEPDIR) to its actual value in the
  15994.     # expansion.
  15995.     for file in `sed -n "
  15996.       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  15997.          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  15998.       # Make sure the directory exists.
  15999.       test -f "$dirpart/$file" && continue
  16000.       fdir=`$as_dirname -- "$file" ||
  16001. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16002.          X"$file" : 'X\(//\)[^/]' \| \
  16003.          X"$file" : 'X\(//\)$' \| \
  16004.          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  16005. $as_echo X"$file" |
  16006.     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16007.             s//\1/
  16008.             q
  16009.           }
  16010.           /^X\(\/\/\)[^/].*/{
  16011.             s//\1/
  16012.             q
  16013.           }
  16014.           /^X\(\/\/\)$/{
  16015.             s//\1/
  16016.             q
  16017.           }
  16018.           /^X\(\/\).*/{
  16019.             s//\1/
  16020.             q
  16021.           }
  16022.           s/.*/./; q'`
  16023.       as_dir=$dirpart/$fdir; as_fn_mkdir_p
  16024.       # echo "creating $dirpart/$file"
  16025.       echo '# dummy' > "$dirpart/$file"
  16026.     done
  16027.   done
  16028. }
  16029.  ;;
  16030.     "libtool":C)
  16031.  
  16032.     # See if we are running on zsh, and set the options which allow our
  16033.     # commands through without removal of \ escapes.
  16034.     if test -n "${ZSH_VERSION+set}" ; then
  16035.       setopt NO_GLOB_SUBST
  16036.     fi
  16037.  
  16038.     cfgfile="${ofile}T"
  16039.     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  16040.     $RM "$cfgfile"
  16041.  
  16042.     cat <<_LT_EOF >> "$cfgfile"
  16043. #! $SHELL
  16044.  
  16045. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  16046. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  16047. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  16048. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  16049. #
  16050. #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  16051. #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  16052. #                 Foundation, Inc.
  16053. #   Written by Gordon Matzigkeit, 1996
  16054. #
  16055. #   This file is part of GNU Libtool.
  16056. #
  16057. # GNU Libtool is free software; you can redistribute it and/or
  16058. # modify it under the terms of the GNU General Public License as
  16059. # published by the Free Software Foundation; either version 2 of
  16060. # the License, or (at your option) any later version.
  16061. #
  16062. # As a special exception to the GNU General Public License,
  16063. # if you distribute this file as part of a program or library that
  16064. # is built using GNU Libtool, you may include this file under the
  16065. # same distribution terms that you use for the rest of that program.
  16066. #
  16067. # GNU Libtool is distributed in the hope that it will be useful,
  16068. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  16069. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  16070. # GNU General Public License for more details.
  16071. #
  16072. # You should have received a copy of the GNU General Public License
  16073. # along with GNU Libtool; see the file COPYING.  If not, a copy
  16074. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  16075. # obtained by writing to the Free Software Foundation, Inc.,
  16076. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  16077.  
  16078.  
  16079. # The names of the tagged configurations supported by this script.
  16080. available_tags=""
  16081.  
  16082. # ### BEGIN LIBTOOL CONFIG
  16083.  
  16084. # Whether or not to build static libraries.
  16085. build_old_libs=$enable_static
  16086.  
  16087. # Which release of libtool.m4 was used?
  16088. macro_version=$macro_version
  16089. macro_revision=$macro_revision
  16090.  
  16091. # Whether or not to build shared libraries.
  16092. build_libtool_libs=$enable_shared
  16093.  
  16094. # What type of objects to build.
  16095. pic_mode=$pic_mode
  16096.  
  16097. # Whether or not to optimize for fast installation.
  16098. fast_install=$enable_fast_install
  16099.  
  16100. # Shell to use when invoking shell scripts.
  16101. SHELL=$lt_SHELL
  16102.  
  16103. # An echo program that protects backslashes.
  16104. ECHO=$lt_ECHO
  16105.  
  16106. # The PATH separator for the build system.
  16107. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  16108.  
  16109. # The host system.
  16110. host_alias=$host_alias
  16111. host=$host
  16112. host_os=$host_os
  16113.  
  16114. # The build system.
  16115. build_alias=$build_alias
  16116. build=$build
  16117. build_os=$build_os
  16118.  
  16119. # A sed program that does not truncate output.
  16120. SED=$lt_SED
  16121.  
  16122. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  16123. Xsed="\$SED -e 1s/^X//"
  16124.  
  16125. # A grep program that handles long lines.
  16126. GREP=$lt_GREP
  16127.  
  16128. # An ERE matcher.
  16129. EGREP=$lt_EGREP
  16130.  
  16131. # A literal string matcher.
  16132. FGREP=$lt_FGREP
  16133.  
  16134. # A BSD- or MS-compatible name lister.
  16135. NM=$lt_NM
  16136.  
  16137. # Whether we need soft or hard links.
  16138. LN_S=$lt_LN_S
  16139.  
  16140. # What is the maximum length of a command?
  16141. max_cmd_len=$max_cmd_len
  16142.  
  16143. # Object file suffix (normally "o").
  16144. objext=$ac_objext
  16145.  
  16146. # Executable file suffix (normally "").
  16147. exeext=$exeext
  16148.  
  16149. # whether the shell understands "unset".
  16150. lt_unset=$lt_unset
  16151.  
  16152. # turn spaces into newlines.
  16153. SP2NL=$lt_lt_SP2NL
  16154.  
  16155. # turn newlines into spaces.
  16156. NL2SP=$lt_lt_NL2SP
  16157.  
  16158. # convert \$build file names to \$host format.
  16159. to_host_file_cmd=$lt_cv_to_host_file_cmd
  16160.  
  16161. # convert \$build files to toolchain format.
  16162. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  16163.  
  16164. # An object symbol dumper.
  16165. OBJDUMP=$lt_OBJDUMP
  16166.  
  16167. # Method to check whether dependent libraries are shared objects.
  16168. deplibs_check_method=$lt_deplibs_check_method
  16169.  
  16170. # Command to use when deplibs_check_method = "file_magic".
  16171. file_magic_cmd=$lt_file_magic_cmd
  16172.  
  16173. # How to find potential files when deplibs_check_method = "file_magic".
  16174. file_magic_glob=$lt_file_magic_glob
  16175.  
  16176. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  16177. want_nocaseglob=$lt_want_nocaseglob
  16178.  
  16179. # DLL creation program.
  16180. DLLTOOL=$lt_DLLTOOL
  16181.  
  16182. # Command to associate shared and link libraries.
  16183. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  16184.  
  16185. # The archiver.
  16186. AR=$lt_AR
  16187.  
  16188. # Flags to create an archive.
  16189. AR_FLAGS=$lt_AR_FLAGS
  16190.  
  16191. # How to feed a file listing to the archiver.
  16192. archiver_list_spec=$lt_archiver_list_spec
  16193.  
  16194. # A symbol stripping program.
  16195. STRIP=$lt_STRIP
  16196.  
  16197. # Commands used to install an old-style archive.
  16198. RANLIB=$lt_RANLIB
  16199. old_postinstall_cmds=$lt_old_postinstall_cmds
  16200. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  16201.  
  16202. # Whether to use a lock for old archive extraction.
  16203. lock_old_archive_extraction=$lock_old_archive_extraction
  16204.  
  16205. # A C compiler.
  16206. LTCC=$lt_CC
  16207.  
  16208. # LTCC compiler flags.
  16209. LTCFLAGS=$lt_CFLAGS
  16210.  
  16211. # Take the output of nm and produce a listing of raw symbols and C names.
  16212. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  16213.  
  16214. # Transform the output of nm in a proper C declaration.
  16215. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  16216.  
  16217. # Transform the output of nm in a C name address pair.
  16218. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  16219.  
  16220. # Transform the output of nm in a C name address pair when lib prefix is needed.
  16221. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  16222.  
  16223. # Specify filename containing input files for \$NM.
  16224. nm_file_list_spec=$lt_nm_file_list_spec
  16225.  
  16226. # The root where to search for dependent libraries,and in which our libraries should be installed.
  16227. lt_sysroot=$lt_sysroot
  16228.  
  16229. # The name of the directory that contains temporary libtool files.
  16230. objdir=$objdir
  16231.  
  16232. # Used to examine libraries when file_magic_cmd begins with "file".
  16233. MAGIC_CMD=$MAGIC_CMD
  16234.  
  16235. # Must we lock files when doing compilation?
  16236. need_locks=$lt_need_locks
  16237.  
  16238. # Manifest tool.
  16239. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  16240.  
  16241. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  16242. DSYMUTIL=$lt_DSYMUTIL
  16243.  
  16244. # Tool to change global to local symbols on Mac OS X.
  16245. NMEDIT=$lt_NMEDIT
  16246.  
  16247. # Tool to manipulate fat objects and archives on Mac OS X.
  16248. LIPO=$lt_LIPO
  16249.  
  16250. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  16251. OTOOL=$lt_OTOOL
  16252.  
  16253. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  16254. OTOOL64=$lt_OTOOL64
  16255.  
  16256. # Old archive suffix (normally "a").
  16257. libext=$libext
  16258.  
  16259. # Shared library suffix (normally ".so").
  16260. shrext_cmds=$lt_shrext_cmds
  16261.  
  16262. # The commands to extract the exported symbol list from a shared archive.
  16263. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  16264.  
  16265. # Variables whose values should be saved in libtool wrapper scripts and
  16266. # restored at link time.
  16267. variables_saved_for_relink=$lt_variables_saved_for_relink
  16268.  
  16269. # Do we need the "lib" prefix for modules?
  16270. need_lib_prefix=$need_lib_prefix
  16271.  
  16272. # Do we need a version for libraries?
  16273. need_version=$need_version
  16274.  
  16275. # Library versioning type.
  16276. version_type=$version_type
  16277.  
  16278. # Shared library runtime path variable.
  16279. runpath_var=$runpath_var
  16280.  
  16281. # Shared library path variable.
  16282. shlibpath_var=$shlibpath_var
  16283.  
  16284. # Is shlibpath searched before the hard-coded library search path?
  16285. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  16286.  
  16287. # Format of library name prefix.
  16288. libname_spec=$lt_libname_spec
  16289.  
  16290. # List of archive names.  First name is the real one, the rest are links.
  16291. # The last name is the one that the linker finds with -lNAME
  16292. library_names_spec=$lt_library_names_spec
  16293.  
  16294. # The coded name of the library, if different from the real name.
  16295. soname_spec=$lt_soname_spec
  16296.  
  16297. # Permission mode override for installation of shared libraries.
  16298. install_override_mode=$lt_install_override_mode
  16299.  
  16300. # Command to use after installation of a shared archive.
  16301. postinstall_cmds=$lt_postinstall_cmds
  16302.  
  16303. # Command to use after uninstallation of a shared archive.
  16304. postuninstall_cmds=$lt_postuninstall_cmds
  16305.  
  16306. # Commands used to finish a libtool library installation in a directory.
  16307. finish_cmds=$lt_finish_cmds
  16308.  
  16309. # As "finish_cmds", except a single script fragment to be evaled but
  16310. # not shown.
  16311. finish_eval=$lt_finish_eval
  16312.  
  16313. # Whether we should hardcode library paths into libraries.
  16314. hardcode_into_libs=$hardcode_into_libs
  16315.  
  16316. # Compile-time system search path for libraries.
  16317. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  16318.  
  16319. # Run-time system search path for libraries.
  16320. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  16321.  
  16322. # Whether dlopen is supported.
  16323. dlopen_support=$enable_dlopen
  16324.  
  16325. # Whether dlopen of programs is supported.
  16326. dlopen_self=$enable_dlopen_self
  16327.  
  16328. # Whether dlopen of statically linked programs is supported.
  16329. dlopen_self_static=$enable_dlopen_self_static
  16330.  
  16331. # Commands to strip libraries.
  16332. old_striplib=$lt_old_striplib
  16333. striplib=$lt_striplib
  16334.  
  16335.  
  16336. # The linker used to build libraries.
  16337. LD=$lt_LD
  16338.  
  16339. # How to create reloadable object files.
  16340. reload_flag=$lt_reload_flag
  16341. reload_cmds=$lt_reload_cmds
  16342.  
  16343. # Commands used to build an old-style archive.
  16344. old_archive_cmds=$lt_old_archive_cmds
  16345.  
  16346. # A language specific compiler.
  16347. CC=$lt_compiler
  16348.  
  16349. # Is the compiler the GNU compiler?
  16350. with_gcc=$GCC
  16351.  
  16352. # Compiler flag to turn off builtin functions.
  16353. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  16354.  
  16355. # Additional compiler flags for building library objects.
  16356. pic_flag=$lt_lt_prog_compiler_pic
  16357.  
  16358. # How to pass a linker flag through the compiler.
  16359. wl=$lt_lt_prog_compiler_wl
  16360.  
  16361. # Compiler flag to prevent dynamic linking.
  16362. link_static_flag=$lt_lt_prog_compiler_static
  16363.  
  16364. # Does compiler simultaneously support -c and -o options?
  16365. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  16366.  
  16367. # Whether or not to add -lc for building shared libraries.
  16368. build_libtool_need_lc=$archive_cmds_need_lc
  16369.  
  16370. # Whether or not to disallow shared libs when runtime libs are static.
  16371. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  16372.  
  16373. # Compiler flag to allow reflexive dlopens.
  16374. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  16375.  
  16376. # Compiler flag to generate shared objects directly from archives.
  16377. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  16378.  
  16379. # Whether the compiler copes with passing no objects directly.
  16380. compiler_needs_object=$lt_compiler_needs_object
  16381.  
  16382. # Create an old-style archive from a shared archive.
  16383. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  16384.  
  16385. # Create a temporary old-style archive to link instead of a shared archive.
  16386. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  16387.  
  16388. # Commands used to build a shared archive.
  16389. archive_cmds=$lt_archive_cmds
  16390. archive_expsym_cmds=$lt_archive_expsym_cmds
  16391.  
  16392. # Commands used to build a loadable module if different from building
  16393. # a shared archive.
  16394. module_cmds=$lt_module_cmds
  16395. module_expsym_cmds=$lt_module_expsym_cmds
  16396.  
  16397. # Whether we are building with GNU ld or not.
  16398. with_gnu_ld=$lt_with_gnu_ld
  16399.  
  16400. # Flag that allows shared libraries with undefined symbols to be built.
  16401. allow_undefined_flag=$lt_allow_undefined_flag
  16402.  
  16403. # Flag that enforces no undefined symbols.
  16404. no_undefined_flag=$lt_no_undefined_flag
  16405.  
  16406. # Flag to hardcode \$libdir into a binary during linking.
  16407. # This must work even if \$libdir does not exist
  16408. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  16409.  
  16410. # Whether we need a single "-rpath" flag with a separated argument.
  16411. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  16412.  
  16413. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  16414. # DIR into the resulting binary.
  16415. hardcode_direct=$hardcode_direct
  16416.  
  16417. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  16418. # DIR into the resulting binary and the resulting library dependency is
  16419. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  16420. # library is relocated.
  16421. hardcode_direct_absolute=$hardcode_direct_absolute
  16422.  
  16423. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  16424. # into the resulting binary.
  16425. hardcode_minus_L=$hardcode_minus_L
  16426.  
  16427. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  16428. # into the resulting binary.
  16429. hardcode_shlibpath_var=$hardcode_shlibpath_var
  16430.  
  16431. # Set to "yes" if building a shared library automatically hardcodes DIR
  16432. # into the library and all subsequent libraries and executables linked
  16433. # against it.
  16434. hardcode_automatic=$hardcode_automatic
  16435.  
  16436. # Set to yes if linker adds runtime paths of dependent libraries
  16437. # to runtime path list.
  16438. inherit_rpath=$inherit_rpath
  16439.  
  16440. # Whether libtool must link a program against all its dependency libraries.
  16441. link_all_deplibs=$link_all_deplibs
  16442.  
  16443. # Set to "yes" if exported symbols are required.
  16444. always_export_symbols=$always_export_symbols
  16445.  
  16446. # The commands to list exported symbols.
  16447. export_symbols_cmds=$lt_export_symbols_cmds
  16448.  
  16449. # Symbols that should not be listed in the preloaded symbols.
  16450. exclude_expsyms=$lt_exclude_expsyms
  16451.  
  16452. # Symbols that must always be exported.
  16453. include_expsyms=$lt_include_expsyms
  16454.  
  16455. # Commands necessary for linking programs (against libraries) with templates.
  16456. prelink_cmds=$lt_prelink_cmds
  16457.  
  16458. # Commands necessary for finishing linking programs.
  16459. postlink_cmds=$lt_postlink_cmds
  16460.  
  16461. # Specify filename containing input files.
  16462. file_list_spec=$lt_file_list_spec
  16463.  
  16464. # How to hardcode a shared library path into an executable.
  16465. hardcode_action=$hardcode_action
  16466.  
  16467. # ### END LIBTOOL CONFIG
  16468.  
  16469. _LT_EOF
  16470.  
  16471.   case $host_os in
  16472.   aix3*)
  16473.     cat <<\_LT_EOF >> "$cfgfile"
  16474. # AIX sometimes has problems with the GCC collect2 program.  For some
  16475. # reason, if we set the COLLECT_NAMES environment variable, the problems
  16476. # vanish in a puff of smoke.
  16477. if test "X${COLLECT_NAMES+set}" != Xset; then
  16478.   COLLECT_NAMES=
  16479.   export COLLECT_NAMES
  16480. fi
  16481. _LT_EOF
  16482.     ;;
  16483.   esac
  16484.  
  16485.  
  16486. ltmain="$ac_aux_dir/ltmain.sh"
  16487.  
  16488.  
  16489.   # We use sed instead of cat because bash on DJGPP gets confused if
  16490.   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
  16491.   # text mode, it properly converts lines to CR/LF.  This bash problem
  16492.   # is reportedly fixed, but why not run on old versions too?
  16493.   sed '$q' "$ltmain" >> "$cfgfile" \
  16494.      || (rm -f "$cfgfile"; exit 1)
  16495.  
  16496.   if test x"$xsi_shell" = xyes; then
  16497.   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  16498. func_dirname ()\
  16499. {\
  16500. \    case ${1} in\
  16501. \      */*) func_dirname_result="${1%/*}${2}" ;;\
  16502. \      *  ) func_dirname_result="${3}" ;;\
  16503. \    esac\
  16504. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  16505.   && mv -f "$cfgfile.tmp" "$cfgfile" \
  16506.     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16507. test 0 -eq $? || _lt_function_replace_fail=:
  16508.  
  16509.  
  16510.   sed -e '/^func_basename ()$/,/^} # func_basename /c\
  16511. func_basename ()\
  16512. {\
  16513. \    func_basename_result="${1##*/}"\
  16514. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  16515.   && mv -f "$cfgfile.tmp" "$cfgfile" \
  16516.     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16517. test 0 -eq $? || _lt_function_replace_fail=:
  16518.  
  16519.  
  16520.   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  16521. func_dirname_and_basename ()\
  16522. {\
  16523. \    case ${1} in\
  16524. \      */*) func_dirname_result="${1%/*}${2}" ;;\
  16525. \      *  ) func_dirname_result="${3}" ;;\
  16526. \    esac\
  16527. \    func_basename_result="${1##*/}"\
  16528. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  16529.   && mv -f "$cfgfile.tmp" "$cfgfile" \
  16530.     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16531. test 0 -eq $? || _lt_function_replace_fail=:
  16532.  
  16533.  
  16534.   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  16535. func_stripname ()\
  16536. {\
  16537. \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  16538. \    # positional parameters, so assign one to ordinary parameter first.\
  16539. \    func_stripname_result=${3}\
  16540. \    func_stripname_result=${func_stripname_result#"${1}"}\
  16541. \    func_stripname_result=${func_stripname_result%"${2}"}\
  16542. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  16543.   && mv -f "$cfgfile.tmp" "$cfgfile" \
  16544.     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16545. test 0 -eq $? || _lt_function_replace_fail=:
  16546.  
  16547.  
  16548.   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  16549. func_split_long_opt ()\
  16550. {\
  16551. \    func_split_long_opt_name=${1%%=*}\
  16552. \    func_split_long_opt_arg=${1#*=}\
  16553. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  16554.   && mv -f "$cfgfile.tmp" "$cfgfile" \
  16555.     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16556. test 0 -eq $? || _lt_function_replace_fail=:
  16557.  
  16558.  
  16559.   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  16560. func_split_short_opt ()\
  16561. {\
  16562. \    func_split_short_opt_arg=${1#??}\
  16563. \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  16564. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  16565.   && mv -f "$cfgfile.tmp" "$cfgfile" \
  16566.     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16567. test 0 -eq $? || _lt_function_replace_fail=:
  16568.  
  16569.  
  16570.   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  16571. func_lo2o ()\
  16572. {\
  16573. \    case ${1} in\
  16574. \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  16575. \      *)    func_lo2o_result=${1} ;;\
  16576. \    esac\
  16577. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  16578.   && mv -f "$cfgfile.tmp" "$cfgfile" \
  16579.     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16580. test 0 -eq $? || _lt_function_replace_fail=:
  16581.  
  16582.  
  16583.   sed -e '/^func_xform ()$/,/^} # func_xform /c\
  16584. func_xform ()\
  16585. {\
  16586.     func_xform_result=${1%.*}.lo\
  16587. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  16588.   && mv -f "$cfgfile.tmp" "$cfgfile" \
  16589.     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16590. test 0 -eq $? || _lt_function_replace_fail=:
  16591.  
  16592.  
  16593.   sed -e '/^func_arith ()$/,/^} # func_arith /c\
  16594. func_arith ()\
  16595. {\
  16596.     func_arith_result=$(( $* ))\
  16597. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  16598.   && mv -f "$cfgfile.tmp" "$cfgfile" \
  16599.     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16600. test 0 -eq $? || _lt_function_replace_fail=:
  16601.  
  16602.  
  16603.   sed -e '/^func_len ()$/,/^} # func_len /c\
  16604. func_len ()\
  16605. {\
  16606.     func_len_result=${#1}\
  16607. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  16608.   && mv -f "$cfgfile.tmp" "$cfgfile" \
  16609.     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16610. test 0 -eq $? || _lt_function_replace_fail=:
  16611.  
  16612. fi
  16613.  
  16614. if test x"$lt_shell_append" = xyes; then
  16615.   sed -e '/^func_append ()$/,/^} # func_append /c\
  16616. func_append ()\
  16617. {\
  16618.     eval "${1}+=\\${2}"\
  16619. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  16620.   && mv -f "$cfgfile.tmp" "$cfgfile" \
  16621.     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16622. test 0 -eq $? || _lt_function_replace_fail=:
  16623.  
  16624.  
  16625.   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  16626. func_append_quoted ()\
  16627. {\
  16628. \    func_quote_for_eval "${2}"\
  16629. \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  16630. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  16631.   && mv -f "$cfgfile.tmp" "$cfgfile" \
  16632.     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16633. test 0 -eq $? || _lt_function_replace_fail=:
  16634.  
  16635.  
  16636.   # Save a `func_append' function call where possible by direct use of '+='
  16637.   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  16638.     && mv -f "$cfgfile.tmp" "$cfgfile" \
  16639.       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16640.   test 0 -eq $? || _lt_function_replace_fail=:
  16641. else
  16642.   # Save a `func_append' function call even when '+=' is not available
  16643.   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  16644.     && mv -f "$cfgfile.tmp" "$cfgfile" \
  16645.       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16646.   test 0 -eq $? || _lt_function_replace_fail=:
  16647. fi
  16648.  
  16649. if test x"$_lt_function_replace_fail" = x":"; then
  16650.   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  16651. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  16652. fi
  16653.  
  16654.  
  16655.    mv -f "$cfgfile" "$ofile" ||
  16656.     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  16657.   chmod +x "$ofile"
  16658.  
  16659.  ;;
  16660.  
  16661.   esac
  16662. done # for ac_tag
  16663.  
  16664.  
  16665. as_fn_exit 0
  16666. _ACEOF
  16667. ac_clean_files=$ac_clean_files_save
  16668.  
  16669. test $ac_write_fail = 0 ||
  16670.   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  16671.  
  16672.  
  16673. # configure is writing to config.log, and then calls config.status.
  16674. # config.status does its own redirection, appending to config.log.
  16675. # Unfortunately, on DOS this fails, as config.log is still kept open
  16676. # by configure, so config.status won't be able to write to it; its
  16677. # output is simply discarded.  So we exec the FD to /dev/null,
  16678. # effectively closing config.log, so it can be properly (re)opened and
  16679. # appended to by config.status.  When coming back to configure, we
  16680. # need to make the FD available again.
  16681. if test "$no_create" != yes; then
  16682.   ac_cs_success=:
  16683.   ac_config_status_args=
  16684.   test "$silent" = yes &&
  16685.     ac_config_status_args="$ac_config_status_args --quiet"
  16686.   exec 5>/dev/null
  16687.   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  16688.   exec 5>>config.log
  16689.   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  16690.   # would make configure fail if this is the last instruction.
  16691.   $ac_cs_success || as_fn_exit 1
  16692. fi
  16693. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  16694.   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  16695. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  16696. fi
  16697.  
  16698.  
  16699. BACKENDS=""
  16700. if test "$USE_DRM" = "yes"; then :
  16701.   BACKENDS="$BACKENDS drm"
  16702. fi
  16703. if test "$USE_X11" = "yes"; then :
  16704.   BACKENDS="$BACKENDS x11"
  16705. fi
  16706. if test "$USE_WAYLAND" = "yes"; then :
  16707.   BACKENDS="$BACKENDS wayland"
  16708. fi
  16709.  
  16710. echo
  16711. echo $PACKAGE configuration summary:
  16712. echo
  16713. echo VA-API version ................... : $VA_VERSION_STR
  16714. echo VA-API drivers path .............. : $LIBVA_DRIVERS_PATH
  16715. echo Windowing systems ................ : $BACKENDS
  16716. echo
  16717.