Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 1 | #! /bin/sh |
| 2 | # Guess values for system-dependent variables and create Makefiles. |
Bruce A. Mah | ff1ea4e | 2018-02-28 13:24:06 -0800 | [diff] [blame^] | 3 | # Generated by GNU Autoconf 2.69 for iperf 3.5. |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 4 | # |
Bruce A. Mah | 1038381 | 2014-02-27 22:40:01 -0800 | [diff] [blame] | 5 | # Report bugs to <https://github.com/esnet/iperf>. |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 6 | # |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 7 | # |
| 8 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. |
| 9 | # |
| 10 | # |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11 | # This configure script is free software; the Free Software Foundation |
| 12 | # gives unlimited permission to copy, distribute and modify it. |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 13 | ## -------------------- ## |
| 14 | ## M4sh Initialization. ## |
| 15 | ## -------------------- ## |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 16 | |
| 17 | # Be more Bourne compatible |
| 18 | DUALCASE=1; export DUALCASE # for MKS sh |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 19 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 20 | emulate sh |
| 21 | NULLCMD=: |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 22 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 23 | # is contrary to our usage. Disable this feature. |
| 24 | alias -g '${1+"$@"}'='"$@"' |
| 25 | setopt NO_GLOB_SUBST |
| 26 | else |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 27 | case `(set -o) 2>/dev/null` in #( |
| 28 | *posix*) : |
| 29 | set -o posix ;; #( |
| 30 | *) : |
| 31 | ;; |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 32 | esac |
| 33 | fi |
| 34 | |
| 35 | |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 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 |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 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 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 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; |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 60 | case $arg in #( |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 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 |
Jef Poskanzer | 437537f | 2012-11-30 12:16:17 -0800 | [diff] [blame] | 73 | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 74 | # The user is always right. |
| 75 | if test "${PATH_SEPARATOR+set}" != set; then |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 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 | } |
Jef Poskanzer | 437537f | 2012-11-30 12:16:17 -0800 | [diff] [blame] | 81 | fi |
| 82 | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 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. |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 92 | as_myself= |
| 93 | case $0 in #(( |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 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=. |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 100 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 101 | done |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 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 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 112 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 113 | exit 1 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 114 | fi |
| 115 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 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 || : |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 123 | done |
| 124 | PS1='$ ' |
| 125 | PS2='> ' |
| 126 | PS4='+ ' |
| 127 | |
| 128 | # NLS nuisances. |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 129 | LC_ALL=C |
| 130 | export LC_ALL |
| 131 | LANGUAGE=C |
| 132 | export LANGUAGE |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 133 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 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: https://github.com/esnet/iperf about your system, |
| 279 | $0: including any error possibly output before this |
| 280 | $0: message. Then install a modern shell, or manually run |
| 281 | $0: the script under such a 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 | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 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 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 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 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 448 | |
| 449 | as_me=`$as_basename -- "$0" || |
| 450 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 451 | X"$0" : 'X\(//\)$' \| \ |
| 452 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 453 | $as_echo X/"$0" | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 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 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 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 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 474 | |
| 475 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 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. :-) |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 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" || |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 497 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 498 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 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 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 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= |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 512 | case `echo -n x` in #((((( |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 513 | -n*) |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 514 | case `echo 'xy\c'` in |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 515 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 516 | xy) ECHO_C='\c';; |
| 517 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 518 | ECHO_T=' ';; |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 519 | esac;; |
| 520 | *) |
| 521 | ECHO_N='-n';; |
| 522 | esac |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 523 | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 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 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 529 | mkdir conf$$.dir 2>/dev/null |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 530 | fi |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 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. |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 537 | # In both cases, we have to default to `cp -pR'. |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 538 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 539 | as_ln_s='cp -pR' |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 540 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 541 | as_ln_s=ln |
| 542 | else |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 543 | as_ln_s='cp -pR' |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 544 | fi |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 545 | else |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 546 | as_ln_s='cp -pR' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 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 |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 552 | as_mkdir_p='mkdir -p "$as_dir"' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 553 | else |
| 554 | test -d ./-p && rmdir ./-p |
| 555 | as_mkdir_p=false |
| 556 | fi |
| 557 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 558 | as_test_x='test -x' |
| 559 | as_executable_p=as_fn_executable_p |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 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 | |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 569 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 570 | test -n "$DJDIR" || exec 7<&0 </dev/null |
| 571 | exec 6>&1 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 572 | |
| 573 | # Name of the host. |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 574 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 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='iperf' |
| 592 | PACKAGE_TARNAME='iperf' |
Bruce A. Mah | ff1ea4e | 2018-02-28 13:24:06 -0800 | [diff] [blame^] | 593 | PACKAGE_VERSION='3.5' |
| 594 | PACKAGE_STRING='iperf 3.5' |
Bruce A. Mah | 1038381 | 2014-02-27 22:40:01 -0800 | [diff] [blame] | 595 | PACKAGE_BUGREPORT='https://github.com/esnet/iperf' |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 596 | PACKAGE_URL='http://software.es.net/iperf/' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 597 | |
| 598 | # Factoring default headers for most tests. |
| 599 | ac_includes_default="\ |
| 600 | #include <stdio.h> |
| 601 | #ifdef HAVE_SYS_TYPES_H |
| 602 | # include <sys/types.h> |
| 603 | #endif |
| 604 | #ifdef HAVE_SYS_STAT_H |
| 605 | # include <sys/stat.h> |
| 606 | #endif |
| 607 | #ifdef STDC_HEADERS |
| 608 | # include <stdlib.h> |
| 609 | # include <stddef.h> |
| 610 | #else |
| 611 | # ifdef HAVE_STDLIB_H |
| 612 | # include <stdlib.h> |
| 613 | # endif |
| 614 | #endif |
| 615 | #ifdef HAVE_STRING_H |
| 616 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
| 617 | # include <memory.h> |
| 618 | # endif |
| 619 | # include <string.h> |
| 620 | #endif |
| 621 | #ifdef HAVE_STRINGS_H |
| 622 | # include <strings.h> |
| 623 | #endif |
| 624 | #ifdef HAVE_INTTYPES_H |
| 625 | # include <inttypes.h> |
| 626 | #endif |
| 627 | #ifdef HAVE_STDINT_H |
| 628 | # include <stdint.h> |
| 629 | #endif |
| 630 | #ifdef HAVE_UNISTD_H |
| 631 | # include <unistd.h> |
| 632 | #endif" |
| 633 | |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 634 | ac_subst_vars='am__EXEEXT_FALSE |
| 635 | am__EXEEXT_TRUE |
| 636 | LTLIBOBJS |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 637 | LIBOBJS |
ralcini | a51045d | 2017-04-20 19:01:08 +0200 | [diff] [blame] | 638 | OPENSSL_LDFLAGS |
| 639 | OPENSSL_LIBS |
| 640 | OPENSSL_INCLUDES |
| 641 | PKG_CONFIG |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 642 | CPP |
Bruce A. Mah | 5461579 | 2015-05-11 10:42:44 -0700 | [diff] [blame] | 643 | LT_SYS_LIBRARY_PATH |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 644 | OTOOL64 |
| 645 | OTOOL |
| 646 | LIPO |
| 647 | NMEDIT |
| 648 | DSYMUTIL |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 649 | MANIFEST_TOOL |
| 650 | ac_ct_AR |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 651 | AR |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 652 | DLLTOOL |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 653 | OBJDUMP |
| 654 | NM |
| 655 | ac_ct_DUMPBIN |
| 656 | DUMPBIN |
| 657 | LD |
| 658 | FGREP |
| 659 | EGREP |
| 660 | GREP |
| 661 | SED |
| 662 | LIBTOOL |
| 663 | LN_S |
| 664 | RANLIB |
| 665 | am__fastdepCC_FALSE |
| 666 | am__fastdepCC_TRUE |
| 667 | CCDEPMODE |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 668 | am__nodep |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 669 | AMDEPBACKSLASH |
| 670 | AMDEP_FALSE |
| 671 | AMDEP_TRUE |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 672 | am__include |
| 673 | DEPDIR |
| 674 | OBJEXT |
| 675 | EXEEXT |
| 676 | ac_ct_CC |
| 677 | CPPFLAGS |
| 678 | LDFLAGS |
| 679 | CFLAGS |
| 680 | CC |
| 681 | host_os |
| 682 | host_vendor |
| 683 | host_cpu |
| 684 | host |
| 685 | build_os |
| 686 | build_vendor |
| 687 | build_cpu |
| 688 | build |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 689 | MAINT |
| 690 | MAINTAINER_MODE_FALSE |
| 691 | MAINTAINER_MODE_TRUE |
| 692 | AM_BACKSLASH |
| 693 | AM_DEFAULT_VERBOSITY |
| 694 | AM_DEFAULT_V |
| 695 | AM_V |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 696 | am__untar |
| 697 | am__tar |
| 698 | AMTAR |
| 699 | am__leading_dot |
| 700 | SET_MAKE |
| 701 | AWK |
| 702 | mkdir_p |
| 703 | MKDIR_P |
| 704 | INSTALL_STRIP_PROGRAM |
| 705 | STRIP |
| 706 | install_sh |
| 707 | MAKEINFO |
| 708 | AUTOHEADER |
| 709 | AUTOMAKE |
| 710 | AUTOCONF |
| 711 | ACLOCAL |
| 712 | VERSION |
| 713 | PACKAGE |
| 714 | CYGPATH_W |
| 715 | am__isrc |
| 716 | INSTALL_DATA |
| 717 | INSTALL_SCRIPT |
| 718 | INSTALL_PROGRAM |
| 719 | target_alias |
| 720 | host_alias |
| 721 | build_alias |
| 722 | LIBS |
| 723 | ECHO_T |
| 724 | ECHO_N |
| 725 | ECHO_C |
| 726 | DEFS |
| 727 | mandir |
| 728 | localedir |
| 729 | libdir |
| 730 | psdir |
| 731 | pdfdir |
| 732 | dvidir |
| 733 | htmldir |
| 734 | infodir |
| 735 | docdir |
| 736 | oldincludedir |
| 737 | includedir |
| 738 | localstatedir |
| 739 | sharedstatedir |
| 740 | sysconfdir |
| 741 | datadir |
| 742 | datarootdir |
| 743 | libexecdir |
| 744 | sbindir |
| 745 | bindir |
| 746 | program_transform_name |
| 747 | prefix |
| 748 | exec_prefix |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 749 | PACKAGE_URL |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 750 | PACKAGE_BUGREPORT |
| 751 | PACKAGE_STRING |
| 752 | PACKAGE_VERSION |
| 753 | PACKAGE_TARNAME |
| 754 | PACKAGE_NAME |
| 755 | PATH_SEPARATOR |
Bruce A. Mah | ff1ea4e | 2018-02-28 13:24:06 -0800 | [diff] [blame^] | 756 | SHELL |
| 757 | am__quote' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 758 | ac_subst_files='' |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 759 | ac_user_opts=' |
| 760 | enable_option_checking |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 761 | enable_silent_rules |
| 762 | enable_maintainer_mode |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 763 | enable_dependency_tracking |
| 764 | enable_shared |
| 765 | enable_static |
| 766 | with_pic |
| 767 | enable_fast_install |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 768 | with_aix_soname |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 769 | with_gnu_ld |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 770 | with_sysroot |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 771 | enable_libtool_lock |
ralcini | a51045d | 2017-04-20 19:01:08 +0200 | [diff] [blame] | 772 | with_openssl |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 773 | ' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 774 | ac_precious_vars='build_alias |
| 775 | host_alias |
| 776 | target_alias |
| 777 | CC |
| 778 | CFLAGS |
| 779 | LDFLAGS |
| 780 | LIBS |
| 781 | CPPFLAGS |
Bruce A. Mah | 5461579 | 2015-05-11 10:42:44 -0700 | [diff] [blame] | 782 | LT_SYS_LIBRARY_PATH |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 783 | CPP' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 784 | |
| 785 | |
| 786 | # Initialize some variables set by options. |
| 787 | ac_init_help= |
| 788 | ac_init_version=false |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 789 | ac_unrecognized_opts= |
| 790 | ac_unrecognized_sep= |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 791 | # The variables have the same names as the options, with |
| 792 | # dashes changed to underlines. |
| 793 | cache_file=/dev/null |
| 794 | exec_prefix=NONE |
| 795 | no_create= |
| 796 | no_recursion= |
| 797 | prefix=NONE |
| 798 | program_prefix=NONE |
| 799 | program_suffix=NONE |
| 800 | program_transform_name=s,x,x, |
| 801 | silent= |
| 802 | site= |
| 803 | srcdir= |
| 804 | verbose= |
| 805 | x_includes=NONE |
| 806 | x_libraries=NONE |
| 807 | |
| 808 | # Installation directory options. |
| 809 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 810 | # and all the variables that are supposed to be based on exec_prefix |
| 811 | # by default will actually change. |
| 812 | # Use braces instead of parens because sh, perl, etc. also accept them. |
| 813 | # (The list follows the same order as the GNU Coding Standards.) |
| 814 | bindir='${exec_prefix}/bin' |
| 815 | sbindir='${exec_prefix}/sbin' |
| 816 | libexecdir='${exec_prefix}/libexec' |
| 817 | datarootdir='${prefix}/share' |
| 818 | datadir='${datarootdir}' |
| 819 | sysconfdir='${prefix}/etc' |
| 820 | sharedstatedir='${prefix}/com' |
| 821 | localstatedir='${prefix}/var' |
| 822 | includedir='${prefix}/include' |
| 823 | oldincludedir='/usr/include' |
| 824 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 825 | infodir='${datarootdir}/info' |
| 826 | htmldir='${docdir}' |
| 827 | dvidir='${docdir}' |
| 828 | pdfdir='${docdir}' |
| 829 | psdir='${docdir}' |
| 830 | libdir='${exec_prefix}/lib' |
| 831 | localedir='${datarootdir}/locale' |
| 832 | mandir='${datarootdir}/man' |
| 833 | |
| 834 | ac_prev= |
| 835 | ac_dashdash= |
| 836 | for ac_option |
| 837 | do |
| 838 | # If the previous option needs an argument, assign it. |
| 839 | if test -n "$ac_prev"; then |
| 840 | eval $ac_prev=\$ac_option |
| 841 | ac_prev= |
| 842 | continue |
| 843 | fi |
| 844 | |
| 845 | case $ac_option in |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 846 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 847 | *=) ac_optarg= ;; |
| 848 | *) ac_optarg=yes ;; |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 849 | esac |
| 850 | |
| 851 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 852 | |
| 853 | case $ac_dashdash$ac_option in |
| 854 | --) |
| 855 | ac_dashdash=yes ;; |
| 856 | |
| 857 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 858 | ac_prev=bindir ;; |
| 859 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 860 | bindir=$ac_optarg ;; |
| 861 | |
| 862 | -build | --build | --buil | --bui | --bu) |
| 863 | ac_prev=build_alias ;; |
| 864 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 865 | build_alias=$ac_optarg ;; |
| 866 | |
| 867 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 868 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 869 | ac_prev=cache_file ;; |
| 870 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 871 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 872 | cache_file=$ac_optarg ;; |
| 873 | |
| 874 | --config-cache | -C) |
| 875 | cache_file=config.cache ;; |
| 876 | |
| 877 | -datadir | --datadir | --datadi | --datad) |
| 878 | ac_prev=datadir ;; |
| 879 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
| 880 | datadir=$ac_optarg ;; |
| 881 | |
| 882 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 883 | | --dataroo | --dataro | --datar) |
| 884 | ac_prev=datarootdir ;; |
| 885 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 886 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 887 | datarootdir=$ac_optarg ;; |
| 888 | |
| 889 | -disable-* | --disable-*) |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 890 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 891 | # Reject names that are not valid shell variable names. |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 892 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 893 | as_fn_error $? "invalid feature name: $ac_useropt" |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 894 | ac_useropt_orig=$ac_useropt |
| 895 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 896 | case $ac_user_opts in |
| 897 | *" |
| 898 | "enable_$ac_useropt" |
| 899 | "*) ;; |
| 900 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
| 901 | ac_unrecognized_sep=', ';; |
| 902 | esac |
| 903 | eval enable_$ac_useropt=no ;; |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 904 | |
| 905 | -docdir | --docdir | --docdi | --doc | --do) |
| 906 | ac_prev=docdir ;; |
| 907 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 908 | docdir=$ac_optarg ;; |
| 909 | |
| 910 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 911 | ac_prev=dvidir ;; |
| 912 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 913 | dvidir=$ac_optarg ;; |
| 914 | |
| 915 | -enable-* | --enable-*) |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 916 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 917 | # Reject names that are not valid shell variable names. |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 918 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 919 | as_fn_error $? "invalid feature name: $ac_useropt" |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 920 | ac_useropt_orig=$ac_useropt |
| 921 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 922 | case $ac_user_opts in |
| 923 | *" |
| 924 | "enable_$ac_useropt" |
| 925 | "*) ;; |
| 926 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
| 927 | ac_unrecognized_sep=', ';; |
| 928 | esac |
| 929 | eval enable_$ac_useropt=\$ac_optarg ;; |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 930 | |
| 931 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 932 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 933 | | --exec | --exe | --ex) |
| 934 | ac_prev=exec_prefix ;; |
| 935 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 936 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 937 | | --exec=* | --exe=* | --ex=*) |
| 938 | exec_prefix=$ac_optarg ;; |
| 939 | |
| 940 | -gas | --gas | --ga | --g) |
| 941 | # Obsolete; use --with-gas. |
| 942 | with_gas=yes ;; |
| 943 | |
| 944 | -help | --help | --hel | --he | -h) |
| 945 | ac_init_help=long ;; |
| 946 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 947 | ac_init_help=recursive ;; |
| 948 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 949 | ac_init_help=short ;; |
| 950 | |
| 951 | -host | --host | --hos | --ho) |
| 952 | ac_prev=host_alias ;; |
| 953 | -host=* | --host=* | --hos=* | --ho=*) |
| 954 | host_alias=$ac_optarg ;; |
| 955 | |
| 956 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 957 | ac_prev=htmldir ;; |
| 958 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 959 | | --ht=*) |
| 960 | htmldir=$ac_optarg ;; |
| 961 | |
| 962 | -includedir | --includedir | --includedi | --included | --include \ |
| 963 | | --includ | --inclu | --incl | --inc) |
| 964 | ac_prev=includedir ;; |
| 965 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 966 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 967 | includedir=$ac_optarg ;; |
| 968 | |
| 969 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 970 | ac_prev=infodir ;; |
| 971 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 972 | infodir=$ac_optarg ;; |
| 973 | |
| 974 | -libdir | --libdir | --libdi | --libd) |
| 975 | ac_prev=libdir ;; |
| 976 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 977 | libdir=$ac_optarg ;; |
| 978 | |
| 979 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 980 | | --libexe | --libex | --libe) |
| 981 | ac_prev=libexecdir ;; |
| 982 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 983 | | --libexe=* | --libex=* | --libe=*) |
| 984 | libexecdir=$ac_optarg ;; |
| 985 | |
| 986 | -localedir | --localedir | --localedi | --localed | --locale) |
| 987 | ac_prev=localedir ;; |
| 988 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 989 | localedir=$ac_optarg ;; |
| 990 | |
| 991 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 992 | | --localstate | --localstat | --localsta | --localst | --locals) |
| 993 | ac_prev=localstatedir ;; |
| 994 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 995 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
| 996 | localstatedir=$ac_optarg ;; |
| 997 | |
| 998 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 999 | ac_prev=mandir ;; |
| 1000 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 1001 | mandir=$ac_optarg ;; |
| 1002 | |
| 1003 | -nfp | --nfp | --nf) |
| 1004 | # Obsolete; use --without-fp. |
| 1005 | with_fp=no ;; |
| 1006 | |
| 1007 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 1008 | | --no-cr | --no-c | -n) |
| 1009 | no_create=yes ;; |
| 1010 | |
| 1011 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1012 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1013 | no_recursion=yes ;; |
| 1014 | |
| 1015 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1016 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1017 | | --oldin | --oldi | --old | --ol | --o) |
| 1018 | ac_prev=oldincludedir ;; |
| 1019 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1020 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1021 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 1022 | oldincludedir=$ac_optarg ;; |
| 1023 | |
| 1024 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1025 | ac_prev=prefix ;; |
| 1026 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 1027 | prefix=$ac_optarg ;; |
| 1028 | |
| 1029 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1030 | | --program-pre | --program-pr | --program-p) |
| 1031 | ac_prev=program_prefix ;; |
| 1032 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1033 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 1034 | program_prefix=$ac_optarg ;; |
| 1035 | |
| 1036 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1037 | | --program-suf | --program-su | --program-s) |
| 1038 | ac_prev=program_suffix ;; |
| 1039 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1040 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 1041 | program_suffix=$ac_optarg ;; |
| 1042 | |
| 1043 | -program-transform-name | --program-transform-name \ |
| 1044 | | --program-transform-nam | --program-transform-na \ |
| 1045 | | --program-transform-n | --program-transform- \ |
| 1046 | | --program-transform | --program-transfor \ |
| 1047 | | --program-transfo | --program-transf \ |
| 1048 | | --program-trans | --program-tran \ |
| 1049 | | --progr-tra | --program-tr | --program-t) |
| 1050 | ac_prev=program_transform_name ;; |
| 1051 | -program-transform-name=* | --program-transform-name=* \ |
| 1052 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1053 | | --program-transform-n=* | --program-transform-=* \ |
| 1054 | | --program-transform=* | --program-transfor=* \ |
| 1055 | | --program-transfo=* | --program-transf=* \ |
| 1056 | | --program-trans=* | --program-tran=* \ |
| 1057 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 1058 | program_transform_name=$ac_optarg ;; |
| 1059 | |
| 1060 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1061 | ac_prev=pdfdir ;; |
| 1062 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1063 | pdfdir=$ac_optarg ;; |
| 1064 | |
| 1065 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1066 | ac_prev=psdir ;; |
| 1067 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1068 | psdir=$ac_optarg ;; |
| 1069 | |
| 1070 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1071 | | -silent | --silent | --silen | --sile | --sil) |
| 1072 | silent=yes ;; |
| 1073 | |
| 1074 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1075 | ac_prev=sbindir ;; |
| 1076 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1077 | | --sbi=* | --sb=*) |
| 1078 | sbindir=$ac_optarg ;; |
| 1079 | |
| 1080 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1081 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1082 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1083 | | --sha | --sh) |
| 1084 | ac_prev=sharedstatedir ;; |
| 1085 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1086 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1087 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1088 | | --sha=* | --sh=*) |
| 1089 | sharedstatedir=$ac_optarg ;; |
| 1090 | |
| 1091 | -site | --site | --sit) |
| 1092 | ac_prev=site ;; |
| 1093 | -site=* | --site=* | --sit=*) |
| 1094 | site=$ac_optarg ;; |
| 1095 | |
| 1096 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1097 | ac_prev=srcdir ;; |
| 1098 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 1099 | srcdir=$ac_optarg ;; |
| 1100 | |
| 1101 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1102 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1103 | ac_prev=sysconfdir ;; |
| 1104 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1105 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 1106 | sysconfdir=$ac_optarg ;; |
| 1107 | |
| 1108 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 1109 | ac_prev=target_alias ;; |
| 1110 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 1111 | target_alias=$ac_optarg ;; |
| 1112 | |
| 1113 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1114 | verbose=yes ;; |
| 1115 | |
| 1116 | -version | --version | --versio | --versi | --vers | -V) |
| 1117 | ac_init_version=: ;; |
| 1118 | |
| 1119 | -with-* | --with-*) |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 1120 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 1121 | # Reject names that are not valid shell variable names. |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 1122 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 1123 | as_fn_error $? "invalid package name: $ac_useropt" |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 1124 | ac_useropt_orig=$ac_useropt |
| 1125 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1126 | case $ac_user_opts in |
| 1127 | *" |
| 1128 | "with_$ac_useropt" |
| 1129 | "*) ;; |
| 1130 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
| 1131 | ac_unrecognized_sep=', ';; |
| 1132 | esac |
| 1133 | eval with_$ac_useropt=\$ac_optarg ;; |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 1134 | |
| 1135 | -without-* | --without-*) |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 1136 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 1137 | # Reject names that are not valid shell variable names. |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 1138 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 1139 | as_fn_error $? "invalid package name: $ac_useropt" |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 1140 | ac_useropt_orig=$ac_useropt |
| 1141 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1142 | case $ac_user_opts in |
| 1143 | *" |
| 1144 | "with_$ac_useropt" |
| 1145 | "*) ;; |
| 1146 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
| 1147 | ac_unrecognized_sep=', ';; |
| 1148 | esac |
| 1149 | eval with_$ac_useropt=no ;; |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 1150 | |
| 1151 | --x) |
| 1152 | # Obsolete; use --with-x. |
| 1153 | with_x=yes ;; |
| 1154 | |
| 1155 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1156 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1157 | ac_prev=x_includes ;; |
| 1158 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1159 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 1160 | x_includes=$ac_optarg ;; |
| 1161 | |
| 1162 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1163 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1164 | ac_prev=x_libraries ;; |
| 1165 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1166 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 1167 | x_libraries=$ac_optarg ;; |
| 1168 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 1169 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
| 1170 | Try \`$0 --help' for more information" |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 1171 | ;; |
| 1172 | |
| 1173 | *=*) |
| 1174 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1175 | # Reject names that are not valid shell variable names. |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 1176 | case $ac_envvar in #( |
| 1177 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
| 1178 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
| 1179 | esac |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 1180 | eval $ac_envvar=\$ac_optarg |
| 1181 | export $ac_envvar ;; |
| 1182 | |
| 1183 | *) |
| 1184 | # FIXME: should be removed in autoconf 3.0. |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 1185 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 1186 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 1187 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 1188 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 1189 | ;; |
| 1190 | |
| 1191 | esac |
| 1192 | done |
| 1193 | |
| 1194 | if test -n "$ac_prev"; then |
| 1195 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 1196 | as_fn_error $? "missing argument to $ac_option" |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 1197 | fi |
| 1198 | |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 1199 | if test -n "$ac_unrecognized_opts"; then |
| 1200 | case $enable_option_checking in |
| 1201 | no) ;; |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 1202 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 1203 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
| 1204 | esac |
| 1205 | fi |
| 1206 | |
| 1207 | # Check all directory arguments for consistency. |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 1208 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1209 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1210 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1211 | libdir localedir mandir |
| 1212 | do |
| 1213 | eval ac_val=\$$ac_var |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 1214 | # Remove trailing slashes. |
| 1215 | case $ac_val in |
| 1216 | */ ) |
| 1217 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
| 1218 | eval $ac_var=\$ac_val;; |
| 1219 | esac |
| 1220 | # Be sure to have absolute directory names. |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 1221 | case $ac_val in |
| 1222 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1223 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
| 1224 | esac |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 1225 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 1226 | done |
| 1227 | |
| 1228 | # There might be people who depend on the old broken behavior: `$host' |
| 1229 | # used to hold the argument of --host etc. |
| 1230 | # FIXME: To remove some day. |
| 1231 | build=$build_alias |
| 1232 | host=$host_alias |
| 1233 | target=$target_alias |
| 1234 | |
| 1235 | # FIXME: To remove some day. |
| 1236 | if test "x$host_alias" != x; then |
| 1237 | if test "x$build_alias" = x; then |
| 1238 | cross_compiling=maybe |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 1239 | elif test "x$build_alias" != "x$host_alias"; then |
| 1240 | cross_compiling=yes |
| 1241 | fi |
| 1242 | fi |
| 1243 | |
| 1244 | ac_tool_prefix= |
| 1245 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1246 | |
| 1247 | test "$silent" = yes && exec 6>/dev/null |
| 1248 | |
| 1249 | |
| 1250 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1251 | ac_ls_di=`ls -di .` && |
| 1252 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 1253 | as_fn_error $? "working directory cannot be determined" |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 1254 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 1255 | as_fn_error $? "pwd does not report name of working directory" |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 1256 | |
| 1257 | |
| 1258 | # Find the source files, if location was not specified. |
| 1259 | if test -z "$srcdir"; then |
| 1260 | ac_srcdir_defaulted=yes |
| 1261 | # Try the directory containing this script, then the parent directory. |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 1262 | ac_confdir=`$as_dirname -- "$as_myself" || |
| 1263 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1264 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
| 1265 | X"$as_myself" : 'X\(//\)$' \| \ |
| 1266 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
| 1267 | $as_echo X"$as_myself" | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 1268 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1269 | s//\1/ |
| 1270 | q |
| 1271 | } |
| 1272 | /^X\(\/\/\)[^/].*/{ |
| 1273 | s//\1/ |
| 1274 | q |
| 1275 | } |
| 1276 | /^X\(\/\/\)$/{ |
| 1277 | s//\1/ |
| 1278 | q |
| 1279 | } |
| 1280 | /^X\(\/\).*/{ |
| 1281 | s//\1/ |
| 1282 | q |
| 1283 | } |
| 1284 | s/.*/./; q'` |
| 1285 | srcdir=$ac_confdir |
| 1286 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1287 | srcdir=.. |
| 1288 | fi |
| 1289 | else |
| 1290 | ac_srcdir_defaulted=no |
| 1291 | fi |
| 1292 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1293 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 1294 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 1295 | fi |
| 1296 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1297 | ac_abs_confdir=`( |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 1298 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 1299 | pwd)` |
| 1300 | # When building in place, set srcdir=. |
| 1301 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1302 | srcdir=. |
| 1303 | fi |
| 1304 | # Remove unnecessary trailing slashes from srcdir. |
| 1305 | # Double slashes in file names in object file debugging info |
| 1306 | # mess up M-x gdb in Emacs. |
| 1307 | case $srcdir in |
| 1308 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1309 | esac |
| 1310 | for ac_var in $ac_precious_vars; do |
| 1311 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1312 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1313 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1314 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1315 | done |
| 1316 | |
| 1317 | # |
| 1318 | # Report the --help message. |
| 1319 | # |
| 1320 | if test "$ac_init_help" = "long"; then |
| 1321 | # Omit some internal or obsolete options to make the list less imposing. |
| 1322 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1323 | cat <<_ACEOF |
Bruce A. Mah | ff1ea4e | 2018-02-28 13:24:06 -0800 | [diff] [blame^] | 1324 | \`configure' configures iperf 3.5 to adapt to many kinds of systems. |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 1325 | |
| 1326 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1327 | |
| 1328 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1329 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1330 | |
| 1331 | Defaults for the options are specified in brackets. |
| 1332 | |
| 1333 | Configuration: |
| 1334 | -h, --help display this help and exit |
| 1335 | --help=short display options specific to this package |
| 1336 | --help=recursive display the short help of all the included packages |
| 1337 | -V, --version display version information and exit |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 1338 | -q, --quiet, --silent do not print \`checking ...' messages |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 1339 | --cache-file=FILE cache test results in FILE [disabled] |
| 1340 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1341 | -n, --no-create do not create output files |
| 1342 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1343 | |
| 1344 | Installation directories: |
| 1345 | --prefix=PREFIX install architecture-independent files in PREFIX |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 1346 | [$ac_default_prefix] |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 1347 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 1348 | [PREFIX] |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 1349 | |
| 1350 | By default, \`make install' will install all the files in |
| 1351 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1352 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1353 | for instance \`--prefix=\$HOME'. |
| 1354 | |
| 1355 | For better control, use the options below. |
| 1356 | |
| 1357 | Fine tuning of the installation directories: |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 1358 | --bindir=DIR user executables [EPREFIX/bin] |
| 1359 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1360 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1361 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1362 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1363 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1364 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1365 | --includedir=DIR C header files [PREFIX/include] |
| 1366 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1367 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1368 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1369 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1370 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1371 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1372 | --docdir=DIR documentation root [DATAROOTDIR/doc/iperf] |
| 1373 | --htmldir=DIR html documentation [DOCDIR] |
| 1374 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1375 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1376 | --psdir=DIR ps documentation [DOCDIR] |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 1377 | _ACEOF |
| 1378 | |
| 1379 | cat <<\_ACEOF |
| 1380 | |
| 1381 | Program names: |
| 1382 | --program-prefix=PREFIX prepend PREFIX to installed program names |
| 1383 | --program-suffix=SUFFIX append SUFFIX to installed program names |
| 1384 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
| 1385 | |
| 1386 | System types: |
| 1387 | --build=BUILD configure for building on BUILD [guessed] |
| 1388 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1389 | _ACEOF |
| 1390 | fi |
| 1391 | |
| 1392 | if test -n "$ac_init_help"; then |
| 1393 | case $ac_init_help in |
Bruce A. Mah | ff1ea4e | 2018-02-28 13:24:06 -0800 | [diff] [blame^] | 1394 | short | recursive ) echo "Configuration of iperf 3.5:";; |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 1395 | esac |
| 1396 | cat <<\_ACEOF |
| 1397 | |
| 1398 | Optional Features: |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 1399 | --disable-option-checking ignore unrecognized --enable/--with options |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 1400 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1401 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 1402 | --enable-silent-rules less verbose build output (undo: "make V=1") |
| 1403 | --disable-silent-rules verbose build output (undo: "make V=0") |
| 1404 | --enable-maintainer-mode |
| 1405 | enable make rules and dependencies not useful (and |
| 1406 | sometimes confusing) to the casual installer |
| 1407 | --enable-dependency-tracking |
| 1408 | do not reject slow dependency extractors |
| 1409 | --disable-dependency-tracking |
| 1410 | speeds up one-time build |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 1411 | --enable-shared[=PKGS] build shared libraries [default=yes] |
| 1412 | --enable-static[=PKGS] build static libraries [default=yes] |
| 1413 | --enable-fast-install[=PKGS] |
| 1414 | optimize for fast installation [default=yes] |
| 1415 | --disable-libtool-lock avoid locking (might break parallel builds) |
| 1416 | |
| 1417 | Optional Packages: |
| 1418 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1419 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 1420 | --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 1421 | both] |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 1422 | --with-aix-soname=aix|svr4|both |
| 1423 | shared library versioning (aka "SONAME") variant to |
| 1424 | provide on AIX, [default=aix]. |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 1425 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 1426 | --with-sysroot[=DIR] Search for dependent libraries within DIR (or the |
| 1427 | compiler's sysroot if not specified). |
ralcini | a51045d | 2017-04-20 19:01:08 +0200 | [diff] [blame] | 1428 | --with-openssl=DIR root of the OpenSSL directory |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 1429 | |
| 1430 | Some influential environment variables: |
| 1431 | CC C compiler command |
| 1432 | CFLAGS C compiler flags |
| 1433 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1434 | nonstandard directory <lib dir> |
| 1435 | LIBS libraries to pass to the linker, e.g. -l<library> |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 1436 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 1437 | you have headers in a nonstandard directory <include dir> |
Bruce A. Mah | 5461579 | 2015-05-11 10:42:44 -0700 | [diff] [blame] | 1438 | LT_SYS_LIBRARY_PATH |
| 1439 | User-defined run-time library search path. |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 1440 | CPP C preprocessor |
| 1441 | |
| 1442 | Use these variables to override the choices made by `configure' or to help |
| 1443 | it to find libraries and programs with nonstandard names/locations. |
| 1444 | |
Bruce A. Mah | 1038381 | 2014-02-27 22:40:01 -0800 | [diff] [blame] | 1445 | Report bugs to <https://github.com/esnet/iperf>. |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 1446 | iperf home page: <http://software.es.net/iperf/>. |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 1447 | _ACEOF |
| 1448 | ac_status=$? |
| 1449 | fi |
| 1450 | |
| 1451 | if test "$ac_init_help" = "recursive"; then |
| 1452 | # If there are subdirs, report their specific --help. |
| 1453 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 1454 | test -d "$ac_dir" || |
| 1455 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
| 1456 | continue |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 1457 | ac_builddir=. |
| 1458 | |
| 1459 | case "$ac_dir" in |
| 1460 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1461 | *) |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 1462 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 1463 | # A ".." for each directory in $ac_dir_suffix. |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 1464 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 1465 | case $ac_top_builddir_sub in |
| 1466 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1467 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1468 | esac ;; |
| 1469 | esac |
| 1470 | ac_abs_top_builddir=$ac_pwd |
| 1471 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1472 | # for backward compatibility: |
| 1473 | ac_top_builddir=$ac_top_build_prefix |
| 1474 | |
| 1475 | case $srcdir in |
| 1476 | .) # We are building in place. |
| 1477 | ac_srcdir=. |
| 1478 | ac_top_srcdir=$ac_top_builddir_sub |
| 1479 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1480 | [\\/]* | ?:[\\/]* ) # Absolute name. |
| 1481 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 1482 | ac_top_srcdir=$srcdir |
| 1483 | ac_abs_top_srcdir=$srcdir ;; |
| 1484 | *) # Relative name. |
| 1485 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1486 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1487 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 1488 | esac |
| 1489 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 1490 | |
| 1491 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1492 | # Check for guested configure. |
| 1493 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1494 | echo && |
| 1495 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1496 | elif test -f "$ac_srcdir/configure"; then |
| 1497 | echo && |
| 1498 | $SHELL "$ac_srcdir/configure" --help=recursive |
| 1499 | else |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 1500 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 1501 | fi || ac_status=$? |
| 1502 | cd "$ac_pwd" || { ac_status=$?; break; } |
| 1503 | done |
| 1504 | fi |
| 1505 | |
| 1506 | test -n "$ac_init_help" && exit $ac_status |
| 1507 | if $ac_init_version; then |
| 1508 | cat <<\_ACEOF |
Bruce A. Mah | ff1ea4e | 2018-02-28 13:24:06 -0800 | [diff] [blame^] | 1509 | iperf configure 3.5 |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 1510 | generated by GNU Autoconf 2.69 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 1511 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 1512 | Copyright (C) 2012 Free Software Foundation, Inc. |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 1513 | This configure script is free software; the Free Software Foundation |
| 1514 | gives unlimited permission to copy, distribute and modify it. |
| 1515 | _ACEOF |
| 1516 | exit |
| 1517 | fi |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 1518 | |
| 1519 | ## ------------------------ ## |
| 1520 | ## Autoconf initialization. ## |
| 1521 | ## ------------------------ ## |
| 1522 | |
| 1523 | # ac_fn_c_try_compile LINENO |
| 1524 | # -------------------------- |
| 1525 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1526 | ac_fn_c_try_compile () |
| 1527 | { |
| 1528 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1529 | rm -f conftest.$ac_objext |
| 1530 | if { { ac_try="$ac_compile" |
| 1531 | case "(($ac_try" in |
| 1532 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1533 | *) ac_try_echo=$ac_try;; |
| 1534 | esac |
| 1535 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1536 | $as_echo "$ac_try_echo"; } >&5 |
| 1537 | (eval "$ac_compile") 2>conftest.err |
| 1538 | ac_status=$? |
| 1539 | if test -s conftest.err; then |
| 1540 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1541 | cat conftest.er1 >&5 |
| 1542 | mv -f conftest.er1 conftest.err |
| 1543 | fi |
| 1544 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1545 | test $ac_status = 0; } && { |
| 1546 | test -z "$ac_c_werror_flag" || |
| 1547 | test ! -s conftest.err |
| 1548 | } && test -s conftest.$ac_objext; then : |
| 1549 | ac_retval=0 |
| 1550 | else |
| 1551 | $as_echo "$as_me: failed program was:" >&5 |
| 1552 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1553 | |
| 1554 | ac_retval=1 |
| 1555 | fi |
| 1556 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1557 | as_fn_set_status $ac_retval |
| 1558 | |
| 1559 | } # ac_fn_c_try_compile |
| 1560 | |
| 1561 | # ac_fn_c_try_link LINENO |
| 1562 | # ----------------------- |
| 1563 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
| 1564 | ac_fn_c_try_link () |
| 1565 | { |
| 1566 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1567 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 1568 | if { { ac_try="$ac_link" |
| 1569 | case "(($ac_try" in |
| 1570 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1571 | *) ac_try_echo=$ac_try;; |
| 1572 | esac |
| 1573 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1574 | $as_echo "$ac_try_echo"; } >&5 |
| 1575 | (eval "$ac_link") 2>conftest.err |
| 1576 | ac_status=$? |
| 1577 | if test -s conftest.err; then |
| 1578 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1579 | cat conftest.er1 >&5 |
| 1580 | mv -f conftest.er1 conftest.err |
| 1581 | fi |
| 1582 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1583 | test $ac_status = 0; } && { |
| 1584 | test -z "$ac_c_werror_flag" || |
| 1585 | test ! -s conftest.err |
| 1586 | } && test -s conftest$ac_exeext && { |
| 1587 | test "$cross_compiling" = yes || |
| 1588 | test -x conftest$ac_exeext |
| 1589 | }; then : |
| 1590 | ac_retval=0 |
| 1591 | else |
| 1592 | $as_echo "$as_me: failed program was:" >&5 |
| 1593 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1594 | |
| 1595 | ac_retval=1 |
| 1596 | fi |
| 1597 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 1598 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 1599 | # interfere with the next link command; also delete a directory that is |
| 1600 | # left behind by Apple's compiler. We do this before executing the actions. |
| 1601 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1602 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1603 | as_fn_set_status $ac_retval |
| 1604 | |
| 1605 | } # ac_fn_c_try_link |
| 1606 | |
| 1607 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
| 1608 | # ------------------------------------------------------- |
| 1609 | # Tests whether HEADER exists and can be compiled using the include files in |
| 1610 | # INCLUDES, setting the cache variable VAR accordingly. |
| 1611 | ac_fn_c_check_header_compile () |
| 1612 | { |
| 1613 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1614 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1615 | $as_echo_n "checking for $2... " >&6; } |
| 1616 | if eval \${$3+:} false; then : |
| 1617 | $as_echo_n "(cached) " >&6 |
| 1618 | else |
| 1619 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1620 | /* end confdefs.h. */ |
| 1621 | $4 |
| 1622 | #include <$2> |
| 1623 | _ACEOF |
| 1624 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1625 | eval "$3=yes" |
| 1626 | else |
| 1627 | eval "$3=no" |
| 1628 | fi |
| 1629 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1630 | fi |
| 1631 | eval ac_res=\$$3 |
| 1632 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1633 | $as_echo "$ac_res" >&6; } |
| 1634 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1635 | |
| 1636 | } # ac_fn_c_check_header_compile |
| 1637 | |
| 1638 | # ac_fn_c_try_cpp LINENO |
| 1639 | # ---------------------- |
| 1640 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
| 1641 | ac_fn_c_try_cpp () |
| 1642 | { |
| 1643 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1644 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
| 1645 | case "(($ac_try" in |
| 1646 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1647 | *) ac_try_echo=$ac_try;; |
| 1648 | esac |
| 1649 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1650 | $as_echo "$ac_try_echo"; } >&5 |
| 1651 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
| 1652 | ac_status=$? |
| 1653 | if test -s conftest.err; then |
| 1654 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1655 | cat conftest.er1 >&5 |
| 1656 | mv -f conftest.er1 conftest.err |
| 1657 | fi |
| 1658 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1659 | test $ac_status = 0; } > conftest.i && { |
| 1660 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 1661 | test ! -s conftest.err |
| 1662 | }; then : |
| 1663 | ac_retval=0 |
| 1664 | else |
| 1665 | $as_echo "$as_me: failed program was:" >&5 |
| 1666 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1667 | |
| 1668 | ac_retval=1 |
| 1669 | fi |
| 1670 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1671 | as_fn_set_status $ac_retval |
| 1672 | |
| 1673 | } # ac_fn_c_try_cpp |
| 1674 | |
| 1675 | # ac_fn_c_try_run LINENO |
| 1676 | # ---------------------- |
| 1677 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
| 1678 | # that executables *can* be run. |
| 1679 | ac_fn_c_try_run () |
| 1680 | { |
| 1681 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1682 | if { { ac_try="$ac_link" |
| 1683 | case "(($ac_try" in |
| 1684 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1685 | *) ac_try_echo=$ac_try;; |
| 1686 | esac |
| 1687 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1688 | $as_echo "$ac_try_echo"; } >&5 |
| 1689 | (eval "$ac_link") 2>&5 |
| 1690 | ac_status=$? |
| 1691 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1692 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
| 1693 | { { case "(($ac_try" in |
| 1694 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1695 | *) ac_try_echo=$ac_try;; |
| 1696 | esac |
| 1697 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1698 | $as_echo "$ac_try_echo"; } >&5 |
| 1699 | (eval "$ac_try") 2>&5 |
| 1700 | ac_status=$? |
| 1701 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1702 | test $ac_status = 0; }; }; then : |
| 1703 | ac_retval=0 |
| 1704 | else |
| 1705 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 1706 | $as_echo "$as_me: failed program was:" >&5 |
| 1707 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1708 | |
| 1709 | ac_retval=$ac_status |
| 1710 | fi |
| 1711 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1712 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1713 | as_fn_set_status $ac_retval |
| 1714 | |
| 1715 | } # ac_fn_c_try_run |
| 1716 | |
| 1717 | # ac_fn_c_check_func LINENO FUNC VAR |
| 1718 | # ---------------------------------- |
| 1719 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
| 1720 | ac_fn_c_check_func () |
| 1721 | { |
| 1722 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1723 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1724 | $as_echo_n "checking for $2... " >&6; } |
| 1725 | if eval \${$3+:} false; then : |
| 1726 | $as_echo_n "(cached) " >&6 |
| 1727 | else |
| 1728 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1729 | /* end confdefs.h. */ |
| 1730 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
| 1731 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 1732 | #define $2 innocuous_$2 |
| 1733 | |
| 1734 | /* System header to define __stub macros and hopefully few prototypes, |
| 1735 | which can conflict with char $2 (); below. |
| 1736 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 1737 | <limits.h> exists even on freestanding compilers. */ |
| 1738 | |
| 1739 | #ifdef __STDC__ |
| 1740 | # include <limits.h> |
| 1741 | #else |
| 1742 | # include <assert.h> |
| 1743 | #endif |
| 1744 | |
| 1745 | #undef $2 |
| 1746 | |
| 1747 | /* Override any GCC internal prototype to avoid an error. |
| 1748 | Use char because int might match the return type of a GCC |
| 1749 | builtin and then its argument prototype would still apply. */ |
| 1750 | #ifdef __cplusplus |
| 1751 | extern "C" |
| 1752 | #endif |
| 1753 | char $2 (); |
| 1754 | /* The GNU C library defines this for functions which it implements |
| 1755 | to always fail with ENOSYS. Some functions are actually named |
| 1756 | something starting with __ and the normal name is an alias. */ |
| 1757 | #if defined __stub_$2 || defined __stub___$2 |
| 1758 | choke me |
| 1759 | #endif |
| 1760 | |
| 1761 | int |
| 1762 | main () |
| 1763 | { |
| 1764 | return $2 (); |
| 1765 | ; |
| 1766 | return 0; |
| 1767 | } |
| 1768 | _ACEOF |
| 1769 | if ac_fn_c_try_link "$LINENO"; then : |
| 1770 | eval "$3=yes" |
| 1771 | else |
| 1772 | eval "$3=no" |
| 1773 | fi |
| 1774 | rm -f core conftest.err conftest.$ac_objext \ |
| 1775 | conftest$ac_exeext conftest.$ac_ext |
| 1776 | fi |
| 1777 | eval ac_res=\$$3 |
| 1778 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1779 | $as_echo "$ac_res" >&6; } |
| 1780 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1781 | |
| 1782 | } # ac_fn_c_check_func |
| 1783 | |
| 1784 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
| 1785 | # ------------------------------------------------------- |
| 1786 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
| 1787 | # the include files in INCLUDES and setting the cache variable VAR |
| 1788 | # accordingly. |
| 1789 | ac_fn_c_check_header_mongrel () |
| 1790 | { |
| 1791 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1792 | if eval \${$3+:} false; then : |
| 1793 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1794 | $as_echo_n "checking for $2... " >&6; } |
| 1795 | if eval \${$3+:} false; then : |
| 1796 | $as_echo_n "(cached) " >&6 |
| 1797 | fi |
| 1798 | eval ac_res=\$$3 |
| 1799 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1800 | $as_echo "$ac_res" >&6; } |
| 1801 | else |
| 1802 | # Is the header compilable? |
| 1803 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
| 1804 | $as_echo_n "checking $2 usability... " >&6; } |
| 1805 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1806 | /* end confdefs.h. */ |
| 1807 | $4 |
| 1808 | #include <$2> |
| 1809 | _ACEOF |
| 1810 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1811 | ac_header_compiler=yes |
| 1812 | else |
| 1813 | ac_header_compiler=no |
| 1814 | fi |
| 1815 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1816 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
| 1817 | $as_echo "$ac_header_compiler" >&6; } |
| 1818 | |
| 1819 | # Is the header present? |
| 1820 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
| 1821 | $as_echo_n "checking $2 presence... " >&6; } |
| 1822 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1823 | /* end confdefs.h. */ |
| 1824 | #include <$2> |
| 1825 | _ACEOF |
| 1826 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 1827 | ac_header_preproc=yes |
| 1828 | else |
| 1829 | ac_header_preproc=no |
| 1830 | fi |
| 1831 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 1832 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
| 1833 | $as_echo "$ac_header_preproc" >&6; } |
| 1834 | |
| 1835 | # So? What about this header? |
| 1836 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
| 1837 | yes:no: ) |
| 1838 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 1839 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 1840 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 1841 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 1842 | ;; |
| 1843 | no:yes:* ) |
| 1844 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
| 1845 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
| 1846 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
| 1847 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
| 1848 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
| 1849 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
| 1850 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
| 1851 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
| 1852 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 1853 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 1854 | ( $as_echo "## --------------------------------------------- ## |
| 1855 | ## Report this to https://github.com/esnet/iperf ## |
| 1856 | ## --------------------------------------------- ##" |
| 1857 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 1858 | ;; |
| 1859 | esac |
| 1860 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1861 | $as_echo_n "checking for $2... " >&6; } |
| 1862 | if eval \${$3+:} false; then : |
| 1863 | $as_echo_n "(cached) " >&6 |
| 1864 | else |
| 1865 | eval "$3=\$ac_header_compiler" |
| 1866 | fi |
| 1867 | eval ac_res=\$$3 |
| 1868 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1869 | $as_echo "$ac_res" >&6; } |
| 1870 | fi |
| 1871 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1872 | |
| 1873 | } # ac_fn_c_check_header_mongrel |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 1874 | cat >config.log <<_ACEOF |
| 1875 | This file contains any messages produced by compilers while |
| 1876 | running configure, to aid debugging if configure makes a mistake. |
| 1877 | |
Bruce A. Mah | ff1ea4e | 2018-02-28 13:24:06 -0800 | [diff] [blame^] | 1878 | It was created by iperf $as_me 3.5, which was |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 1879 | generated by GNU Autoconf 2.69. Invocation command line was |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 1880 | |
| 1881 | $ $0 $@ |
| 1882 | |
| 1883 | _ACEOF |
| 1884 | exec 5>>config.log |
| 1885 | { |
| 1886 | cat <<_ASUNAME |
| 1887 | ## --------- ## |
| 1888 | ## Platform. ## |
| 1889 | ## --------- ## |
| 1890 | |
| 1891 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1892 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1893 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1894 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1895 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1896 | |
| 1897 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1898 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1899 | |
| 1900 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1901 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1902 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 1903 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
| 1904 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1905 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1906 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1907 | |
| 1908 | _ASUNAME |
| 1909 | |
| 1910 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1911 | for as_dir in $PATH |
| 1912 | do |
| 1913 | IFS=$as_save_IFS |
| 1914 | test -z "$as_dir" && as_dir=. |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 1915 | $as_echo "PATH: $as_dir" |
| 1916 | done |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 1917 | IFS=$as_save_IFS |
| 1918 | |
| 1919 | } >&5 |
| 1920 | |
| 1921 | cat >&5 <<_ACEOF |
| 1922 | |
| 1923 | |
| 1924 | ## ----------- ## |
| 1925 | ## Core tests. ## |
| 1926 | ## ----------- ## |
| 1927 | |
| 1928 | _ACEOF |
| 1929 | |
| 1930 | |
| 1931 | # Keep a trace of the command line. |
| 1932 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 1933 | # Strip out --silent because we don't want to record it for future runs. |
| 1934 | # Also quote any args containing shell meta-characters. |
| 1935 | # Make two passes to allow for proper duplicate-argument suppression. |
| 1936 | ac_configure_args= |
| 1937 | ac_configure_args0= |
| 1938 | ac_configure_args1= |
| 1939 | ac_must_keep_next=false |
| 1940 | for ac_pass in 1 2 |
| 1941 | do |
| 1942 | for ac_arg |
| 1943 | do |
| 1944 | case $ac_arg in |
| 1945 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1946 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1947 | | -silent | --silent | --silen | --sile | --sil) |
| 1948 | continue ;; |
| 1949 | *\'*) |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 1950 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 1951 | esac |
| 1952 | case $ac_pass in |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 1953 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 1954 | 2) |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 1955 | as_fn_append ac_configure_args1 " '$ac_arg'" |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 1956 | if test $ac_must_keep_next = true; then |
| 1957 | ac_must_keep_next=false # Got value, back to normal. |
| 1958 | else |
| 1959 | case $ac_arg in |
| 1960 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1961 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1962 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1963 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1964 | case "$ac_configure_args0 " in |
| 1965 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1966 | esac |
| 1967 | ;; |
| 1968 | -* ) ac_must_keep_next=true ;; |
| 1969 | esac |
| 1970 | fi |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 1971 | as_fn_append ac_configure_args " '$ac_arg'" |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 1972 | ;; |
| 1973 | esac |
| 1974 | done |
| 1975 | done |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 1976 | { ac_configure_args0=; unset ac_configure_args0;} |
| 1977 | { ac_configure_args1=; unset ac_configure_args1;} |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 1978 | |
| 1979 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1980 | # config.log. We remove comments because anyway the quotes in there |
| 1981 | # would cause problems or look ugly. |
| 1982 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 1983 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
| 1984 | trap 'exit_status=$? |
| 1985 | # Save into config.log some information that might help in debugging. |
| 1986 | { |
| 1987 | echo |
| 1988 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 1989 | $as_echo "## ---------------- ## |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 1990 | ## Cache variables. ## |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 1991 | ## ---------------- ##" |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 1992 | echo |
| 1993 | # The following way of writing the cache mishandles newlines in values, |
| 1994 | ( |
| 1995 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 1996 | eval ac_val=\$$ac_var |
| 1997 | case $ac_val in #( |
| 1998 | *${as_nl}*) |
| 1999 | case $ac_var in #( |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 2000 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2001 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2002 | esac |
| 2003 | case $ac_var in #( |
| 2004 | _ | IFS | as_nl) ;; #( |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2005 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 2006 | *) { eval $ac_var=; unset $ac_var;} ;; |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2007 | esac ;; |
| 2008 | esac |
| 2009 | done |
| 2010 | (set) 2>&1 | |
| 2011 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 2012 | *${as_nl}ac_space=\ *) |
| 2013 | sed -n \ |
| 2014 | "s/'\''/'\''\\\\'\'''\''/g; |
| 2015 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 2016 | ;; #( |
| 2017 | *) |
| 2018 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
| 2019 | ;; |
| 2020 | esac | |
| 2021 | sort |
| 2022 | ) |
| 2023 | echo |
| 2024 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 2025 | $as_echo "## ----------------- ## |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2026 | ## Output variables. ## |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 2027 | ## ----------------- ##" |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2028 | echo |
| 2029 | for ac_var in $ac_subst_vars |
| 2030 | do |
| 2031 | eval ac_val=\$$ac_var |
| 2032 | case $ac_val in |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2033 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2034 | esac |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2035 | $as_echo "$ac_var='\''$ac_val'\''" |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2036 | done | sort |
| 2037 | echo |
| 2038 | |
| 2039 | if test -n "$ac_subst_files"; then |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 2040 | $as_echo "## ------------------- ## |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2041 | ## File substitutions. ## |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 2042 | ## ------------------- ##" |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2043 | echo |
| 2044 | for ac_var in $ac_subst_files |
| 2045 | do |
| 2046 | eval ac_val=\$$ac_var |
| 2047 | case $ac_val in |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2048 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2049 | esac |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2050 | $as_echo "$ac_var='\''$ac_val'\''" |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2051 | done | sort |
| 2052 | echo |
| 2053 | fi |
| 2054 | |
| 2055 | if test -s confdefs.h; then |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 2056 | $as_echo "## ----------- ## |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2057 | ## confdefs.h. ## |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 2058 | ## ----------- ##" |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2059 | echo |
| 2060 | cat confdefs.h |
| 2061 | echo |
| 2062 | fi |
| 2063 | test "$ac_signal" != 0 && |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2064 | $as_echo "$as_me: caught signal $ac_signal" |
| 2065 | $as_echo "$as_me: exit $exit_status" |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2066 | } >&5 |
| 2067 | rm -f core *.core core.conftest.* && |
| 2068 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
| 2069 | exit $exit_status |
| 2070 | ' 0 |
| 2071 | for ac_signal in 1 2 13 15; do |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 2072 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2073 | done |
| 2074 | ac_signal=0 |
| 2075 | |
| 2076 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 2077 | rm -f -r conftest* confdefs.h |
| 2078 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 2079 | $as_echo "/* confdefs.h */" > confdefs.h |
| 2080 | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2081 | # Predefined preprocessor variables. |
| 2082 | |
| 2083 | cat >>confdefs.h <<_ACEOF |
| 2084 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 2085 | _ACEOF |
| 2086 | |
| 2087 | cat >>confdefs.h <<_ACEOF |
| 2088 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 2089 | _ACEOF |
| 2090 | |
| 2091 | cat >>confdefs.h <<_ACEOF |
| 2092 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 2093 | _ACEOF |
| 2094 | |
| 2095 | cat >>confdefs.h <<_ACEOF |
| 2096 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 2097 | _ACEOF |
| 2098 | |
Bruce A. Mah | dc1dd2d | 2014-03-04 14:34:40 -0800 | [diff] [blame] | 2099 | cat >>confdefs.h <<_ACEOF |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 2100 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
Bruce A. Mah | dc1dd2d | 2014-03-04 14:34:40 -0800 | [diff] [blame] | 2101 | _ACEOF |
| 2102 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 2103 | cat >>confdefs.h <<_ACEOF |
| 2104 | #define PACKAGE_URL "$PACKAGE_URL" |
| 2105 | _ACEOF |
| 2106 | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2107 | |
| 2108 | # Let the site file select an alternate cache file if it wants to. |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2109 | # Prefer an explicitly selected file to automatically selected ones. |
| 2110 | ac_site_file1=NONE |
| 2111 | ac_site_file2=NONE |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2112 | if test -n "$CONFIG_SITE"; then |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 2113 | # We do not want a PATH search for config.site. |
| 2114 | case $CONFIG_SITE in #(( |
| 2115 | -*) ac_site_file1=./$CONFIG_SITE;; |
| 2116 | */*) ac_site_file1=$CONFIG_SITE;; |
| 2117 | *) ac_site_file1=./$CONFIG_SITE;; |
| 2118 | esac |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2119 | elif test "x$prefix" != xNONE; then |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2120 | ac_site_file1=$prefix/share/config.site |
| 2121 | ac_site_file2=$prefix/etc/config.site |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2122 | else |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2123 | ac_site_file1=$ac_default_prefix/share/config.site |
| 2124 | ac_site_file2=$ac_default_prefix/etc/config.site |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2125 | fi |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2126 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2127 | do |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2128 | test "x$ac_site_file" = xNONE && continue |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 2129 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
| 2130 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2131 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2132 | sed 's/^/| /' "$ac_site_file" >&5 |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 2133 | . "$ac_site_file" \ |
| 2134 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2135 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2136 | as_fn_error $? "failed to load site script $ac_site_file |
| 2137 | See \`config.log' for more details" "$LINENO" 5; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2138 | fi |
| 2139 | done |
| 2140 | |
| 2141 | if test -r "$cache_file"; then |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 2142 | # Some versions of bash will fail to source /dev/null (special files |
| 2143 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
| 2144 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
| 2145 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2146 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2147 | case $cache_file in |
| 2148 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 2149 | *) . "./$cache_file";; |
| 2150 | esac |
| 2151 | fi |
| 2152 | else |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 2153 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2154 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2155 | >$cache_file |
| 2156 | fi |
| 2157 | |
| 2158 | # Check that the precious variables saved in the cache have kept the same |
| 2159 | # value. |
| 2160 | ac_cache_corrupted=false |
| 2161 | for ac_var in $ac_precious_vars; do |
| 2162 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 2163 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 2164 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 2165 | eval ac_new_val=\$ac_env_${ac_var}_value |
| 2166 | case $ac_old_set,$ac_new_set in |
| 2167 | set,) |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 2168 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2169 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2170 | ac_cache_corrupted=: ;; |
| 2171 | ,set) |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 2172 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2173 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2174 | ac_cache_corrupted=: ;; |
| 2175 | ,);; |
| 2176 | *) |
| 2177 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2178 | # differences in whitespace do not lead to failure. |
| 2179 | ac_old_val_w=`echo x $ac_old_val` |
| 2180 | ac_new_val_w=`echo x $ac_new_val` |
| 2181 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 2182 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2183 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 2184 | ac_cache_corrupted=: |
| 2185 | else |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 2186 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2187 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
| 2188 | eval $ac_var=\$ac_old_val |
| 2189 | fi |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 2190 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2191 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 2192 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2193 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2194 | fi;; |
| 2195 | esac |
| 2196 | # Pass precious variables to config.status. |
| 2197 | if test "$ac_new_set" = set; then |
| 2198 | case $ac_new_val in |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2199 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2200 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 2201 | esac |
| 2202 | case " $ac_configure_args " in |
| 2203 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 2204 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2205 | esac |
| 2206 | fi |
| 2207 | done |
| 2208 | if $ac_cache_corrupted; then |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 2209 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2210 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 2211 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2212 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 2213 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2214 | fi |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 2215 | ## -------------------- ## |
| 2216 | ## Main body of script. ## |
| 2217 | ## -------------------- ## |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2218 | |
| 2219 | ac_ext=c |
| 2220 | ac_cpp='$CPP $CPPFLAGS' |
| 2221 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2222 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2223 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2224 | |
| 2225 | |
ralcini | a51045d | 2017-04-20 19:01:08 +0200 | [diff] [blame] | 2226 | # =========================================================================== |
| 2227 | # https://www.gnu.org/software/autoconf-archive/ax_check_openssl.html |
| 2228 | # =========================================================================== |
| 2229 | # |
| 2230 | # SYNOPSIS |
| 2231 | # |
| 2232 | # AX_CHECK_OPENSSL([action-if-found[, action-if-not-found]]) |
| 2233 | # |
| 2234 | # DESCRIPTION |
| 2235 | # |
| 2236 | # Look for OpenSSL in a number of default spots, or in a user-selected |
| 2237 | # spot (via --with-openssl). Sets |
| 2238 | # |
| 2239 | # OPENSSL_INCLUDES to the include directives required |
| 2240 | # OPENSSL_LIBS to the -l directives required |
| 2241 | # OPENSSL_LDFLAGS to the -L or -R flags required |
| 2242 | # |
| 2243 | # and calls ACTION-IF-FOUND or ACTION-IF-NOT-FOUND appropriately |
| 2244 | # |
| 2245 | # This macro sets OPENSSL_INCLUDES such that source files should use the |
| 2246 | # openssl/ directory in include directives: |
| 2247 | # |
| 2248 | # #include <openssl/hmac.h> |
| 2249 | # |
| 2250 | # LICENSE |
| 2251 | # |
| 2252 | # Copyright (c) 2009,2010 Zmanda Inc. <http://www.zmanda.com/> |
| 2253 | # Copyright (c) 2009,2010 Dustin J. Mitchell <dustin@zmanda.com> |
| 2254 | # |
| 2255 | # Copying and distribution of this file, with or without modification, are |
| 2256 | # permitted in any medium without royalty provided the copyright notice |
| 2257 | # and this notice are preserved. This file is offered as-is, without any |
| 2258 | # warranty. |
| 2259 | |
| 2260 | #serial 10 |
| 2261 | |
| 2262 | # This is what autoupdate's m4 run will expand. It fires |
| 2263 | # the warning (with _au_warn_XXX), outputs it into the |
| 2264 | # updated configure.ac (with AC_DIAGNOSE), and then outputs |
| 2265 | # the replacement expansion. |
| 2266 | |
| 2267 | |
| 2268 | # This is an auxiliary macro that is also run when |
| 2269 | # autoupdate runs m4. It simply calls m4_warning, but |
| 2270 | # we need a wrapper so that each warning is emitted only |
| 2271 | # once. We break the quoting in m4_warning's argument in |
| 2272 | # order to expand this macro's arguments, not AU_DEFUN's. |
| 2273 | |
| 2274 | |
| 2275 | # Finally, this is the expansion that is picked up by |
| 2276 | # autoconf. It tells the user to run autoupdate, and |
| 2277 | # then outputs the replacement expansion. We do not care |
| 2278 | # about autoupdate's warning because that contains |
| 2279 | # information on what to do *after* running autoupdate. |
| 2280 | |
| 2281 | |
| 2282 | |
Bruce A. Mah | bf32d9d | 2015-01-06 10:40:04 -0800 | [diff] [blame] | 2283 | ac_ext=c |
| 2284 | ac_cpp='$CPP $CPPFLAGS' |
| 2285 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2286 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2287 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2288 | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2289 | |
| 2290 | # Specify where the auxiliary files created by configure should go. The config |
| 2291 | # directory is picked so that they don't clutter up more useful directories. |
| 2292 | ac_aux_dir= |
| 2293 | for ac_dir in config "$srcdir"/config; do |
jef | 2ab386b | 2012-08-10 12:43:50 -0700 | [diff] [blame] | 2294 | if test -f "$ac_dir/install-sh"; then |
| 2295 | ac_aux_dir=$ac_dir |
| 2296 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 2297 | break |
| 2298 | elif test -f "$ac_dir/install.sh"; then |
| 2299 | ac_aux_dir=$ac_dir |
| 2300 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 2301 | break |
| 2302 | elif test -f "$ac_dir/shtool"; then |
| 2303 | ac_aux_dir=$ac_dir |
| 2304 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 2305 | break |
| 2306 | fi |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2307 | done |
| 2308 | if test -z "$ac_aux_dir"; then |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 2309 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2310 | fi |
| 2311 | |
| 2312 | # These three variables are undocumented and unsupported, |
| 2313 | # and are intended to be withdrawn in a future Autoconf release. |
| 2314 | # They can cause serious problems if a builder's source tree is in a directory |
| 2315 | # whose full name contains unusual characters. |
| 2316 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 2317 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 2318 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 2319 | |
| 2320 | |
| 2321 | |
| 2322 | |
| 2323 | # Initialize the automake system |
Bruce A. Mah | ff1ea4e | 2018-02-28 13:24:06 -0800 | [diff] [blame^] | 2324 | am__api_version='1.16' |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 2325 | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2326 | # Find a good install program. We prefer a C program (faster), |
| 2327 | # so one script is as good as another. But avoid the broken or |
| 2328 | # incompatible versions: |
| 2329 | # SysV /etc/install, /usr/sbin/install |
| 2330 | # SunOS /usr/etc/install |
| 2331 | # IRIX /sbin/install |
| 2332 | # AIX /bin/install |
| 2333 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 2334 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 2335 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 2336 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 2337 | # OS/2's system install, which has a completely different semantic |
| 2338 | # ./install, which can be erroneously created by make from ./install.sh. |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2339 | # Reject install programs that cannot install multiple files. |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 2340 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2341 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2342 | if test -z "$INSTALL"; then |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 2343 | if ${ac_cv_path_install+:} false; then : |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2344 | $as_echo_n "(cached) " >&6 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2345 | else |
| 2346 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2347 | for as_dir in $PATH |
| 2348 | do |
| 2349 | IFS=$as_save_IFS |
| 2350 | test -z "$as_dir" && as_dir=. |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 2351 | # Account for people who put trailing slashes in PATH elements. |
| 2352 | case $as_dir/ in #(( |
| 2353 | ./ | .// | /[cC]/* | \ |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2354 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 2355 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2356 | /usr/ucb/* ) ;; |
| 2357 | *) |
| 2358 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 2359 | # Don't use installbsd from OSF since it installs stuff as root |
| 2360 | # by default. |
| 2361 | for ac_prog in ginstall scoinst install; do |
| 2362 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 2363 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2364 | if test $ac_prog = install && |
| 2365 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 2366 | # AIX install. It has an incompatible calling convention. |
| 2367 | : |
| 2368 | elif test $ac_prog = install && |
| 2369 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 2370 | # program-specific install script used by HP pwplus--don't use. |
| 2371 | : |
| 2372 | else |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2373 | rm -rf conftest.one conftest.two conftest.dir |
| 2374 | echo one > conftest.one |
| 2375 | echo two > conftest.two |
| 2376 | mkdir conftest.dir |
| 2377 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
| 2378 | test -s conftest.one && test -s conftest.two && |
| 2379 | test -s conftest.dir/conftest.one && |
| 2380 | test -s conftest.dir/conftest.two |
| 2381 | then |
| 2382 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 2383 | break 3 |
| 2384 | fi |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2385 | fi |
| 2386 | fi |
| 2387 | done |
| 2388 | done |
| 2389 | ;; |
| 2390 | esac |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2391 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 2392 | done |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2393 | IFS=$as_save_IFS |
| 2394 | |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2395 | rm -rf conftest.one conftest.two conftest.dir |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2396 | |
| 2397 | fi |
| 2398 | if test "${ac_cv_path_install+set}" = set; then |
| 2399 | INSTALL=$ac_cv_path_install |
| 2400 | else |
| 2401 | # As a last resort, use the slow shell script. Don't cache a |
| 2402 | # value for INSTALL within a source directory, because that will |
| 2403 | # break other packages using the cache if that directory is |
| 2404 | # removed, or if the value is a relative name. |
| 2405 | INSTALL=$ac_install_sh |
| 2406 | fi |
| 2407 | fi |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 2408 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2409 | $as_echo "$INSTALL" >&6; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2410 | |
| 2411 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 2412 | # It thinks the first close brace ends the variable substitution. |
| 2413 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 2414 | |
| 2415 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 2416 | |
| 2417 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 2418 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 2419 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2420 | $as_echo_n "checking whether build environment is sane... " >&6; } |
| 2421 | # Reject unsafe characters in $srcdir or the absolute working directory |
| 2422 | # name. Accept space and tab only in the latter. |
| 2423 | am_lf=' |
| 2424 | ' |
| 2425 | case `pwd` in |
| 2426 | *[\\\"\#\$\&\'\`$am_lf]*) |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 2427 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2428 | esac |
| 2429 | case $srcdir in |
| 2430 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 2431 | as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2432 | esac |
| 2433 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 2434 | # Do 'set' in a subshell so we don't clobber the current shell's |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2435 | # arguments. Must try -L first in case configure is actually a |
| 2436 | # symlink; some systems play weird games with the mod time of symlinks |
| 2437 | # (eg FreeBSD returns the mod time of the symlink's containing |
| 2438 | # directory). |
| 2439 | if ( |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 2440 | am_has_slept=no |
| 2441 | for am_try in 1 2; do |
| 2442 | echo "timestamp, slept: $am_has_slept" > conftest.file |
| 2443 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` |
| 2444 | if test "$*" = "X"; then |
| 2445 | # -L didn't work. |
| 2446 | set X `ls -t "$srcdir/configure" conftest.file` |
| 2447 | fi |
| 2448 | if test "$*" != "X $srcdir/configure conftest.file" \ |
| 2449 | && test "$*" != "X conftest.file $srcdir/configure"; then |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2450 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 2451 | # If neither matched, then we have a broken ls. This can happen |
| 2452 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
| 2453 | # broken ls alias from the environment. This has actually |
| 2454 | # happened. Such a system could not be considered "sane". |
| 2455 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken |
| 2456 | alias in your environment" "$LINENO" 5 |
| 2457 | fi |
| 2458 | if test "$2" = conftest.file || test $am_try -eq 2; then |
| 2459 | break |
| 2460 | fi |
| 2461 | # Just in case. |
| 2462 | sleep 1 |
| 2463 | am_has_slept=yes |
| 2464 | done |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2465 | test "$2" = conftest.file |
| 2466 | ) |
| 2467 | then |
| 2468 | # Ok. |
| 2469 | : |
| 2470 | else |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 2471 | as_fn_error $? "newly created file is older than distributed files! |
| 2472 | Check your system clock" "$LINENO" 5 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2473 | fi |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 2474 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2475 | $as_echo "yes" >&6; } |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 2476 | # If we didn't sleep, we still need to ensure time stamps of config.status and |
| 2477 | # generated files are strictly newer. |
| 2478 | am_sleep_pid= |
| 2479 | if grep 'slept: no' conftest.file >/dev/null 2>&1; then |
| 2480 | ( sleep 1 ) & |
| 2481 | am_sleep_pid=$! |
| 2482 | fi |
| 2483 | |
| 2484 | rm -f conftest.file |
| 2485 | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2486 | test "$program_prefix" != NONE && |
| 2487 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
| 2488 | # Use a double $ so make ignores it. |
| 2489 | test "$program_suffix" != NONE && |
| 2490 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2491 | # Double any \ or $. |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2492 | # By default was `s,x,x', remove it if useless. |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2493 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
| 2494 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2495 | |
Bruce A. Mah | 5461579 | 2015-05-11 10:42:44 -0700 | [diff] [blame] | 2496 | # Expand $ac_aux_dir to an absolute path. |
| 2497 | am_aux_dir=`cd "$ac_aux_dir" && pwd` |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2498 | |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2499 | if test x"${MISSING+set}" != xset; then |
| 2500 | case $am_aux_dir in |
| 2501 | *\ * | *\ *) |
| 2502 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; |
| 2503 | *) |
| 2504 | MISSING="\${SHELL} $am_aux_dir/missing" ;; |
| 2505 | esac |
| 2506 | fi |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2507 | # Use eval to expand $SHELL |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 2508 | if eval "$MISSING --is-lightweight"; then |
| 2509 | am_missing_run="$MISSING " |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2510 | else |
| 2511 | am_missing_run= |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 2512 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 |
| 2513 | $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2514 | fi |
| 2515 | |
Bruce A. Mah | 5461579 | 2015-05-11 10:42:44 -0700 | [diff] [blame] | 2516 | if test x"${install_sh+set}" != xset; then |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2517 | case $am_aux_dir in |
| 2518 | *\ * | *\ *) |
| 2519 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; |
| 2520 | *) |
| 2521 | install_sh="\${SHELL} $am_aux_dir/install-sh" |
| 2522 | esac |
| 2523 | fi |
| 2524 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 2525 | # Installed binaries are usually stripped using 'strip' when the user |
| 2526 | # run "make install-strip". However 'strip' might not be the right |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2527 | # tool to use in cross-compilation environments, therefore Automake |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 2528 | # will honor the 'STRIP' environment variable to overrule this program. |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2529 | if test "$cross_compiling" != no; then |
| 2530 | if test -n "$ac_tool_prefix"; then |
| 2531 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 2532 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 2533 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2534 | $as_echo_n "checking for $ac_word... " >&6; } |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 2535 | if ${ac_cv_prog_STRIP+:} false; then : |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2536 | $as_echo_n "(cached) " >&6 |
| 2537 | else |
| 2538 | if test -n "$STRIP"; then |
| 2539 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 2540 | else |
| 2541 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2542 | for as_dir in $PATH |
| 2543 | do |
| 2544 | IFS=$as_save_IFS |
| 2545 | test -z "$as_dir" && as_dir=. |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 2546 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2547 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2548 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 2549 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2550 | break 2 |
| 2551 | fi |
| 2552 | done |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 2553 | done |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2554 | IFS=$as_save_IFS |
| 2555 | |
| 2556 | fi |
| 2557 | fi |
| 2558 | STRIP=$ac_cv_prog_STRIP |
| 2559 | if test -n "$STRIP"; then |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 2560 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2561 | $as_echo "$STRIP" >&6; } |
| 2562 | else |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 2563 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2564 | $as_echo "no" >&6; } |
| 2565 | fi |
| 2566 | |
| 2567 | |
| 2568 | fi |
| 2569 | if test -z "$ac_cv_prog_STRIP"; then |
| 2570 | ac_ct_STRIP=$STRIP |
| 2571 | # Extract the first word of "strip", so it can be a program name with args. |
| 2572 | set dummy strip; ac_word=$2 |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 2573 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2574 | $as_echo_n "checking for $ac_word... " >&6; } |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 2575 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2576 | $as_echo_n "(cached) " >&6 |
| 2577 | else |
| 2578 | if test -n "$ac_ct_STRIP"; then |
| 2579 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 2580 | else |
| 2581 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2582 | for as_dir in $PATH |
| 2583 | do |
| 2584 | IFS=$as_save_IFS |
| 2585 | test -z "$as_dir" && as_dir=. |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 2586 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2587 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2588 | ac_cv_prog_ac_ct_STRIP="strip" |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 2589 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2590 | break 2 |
| 2591 | fi |
| 2592 | done |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 2593 | done |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2594 | IFS=$as_save_IFS |
| 2595 | |
| 2596 | fi |
| 2597 | fi |
| 2598 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 2599 | if test -n "$ac_ct_STRIP"; then |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 2600 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2601 | $as_echo "$ac_ct_STRIP" >&6; } |
| 2602 | else |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 2603 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2604 | $as_echo "no" >&6; } |
| 2605 | fi |
| 2606 | |
| 2607 | if test "x$ac_ct_STRIP" = x; then |
| 2608 | STRIP=":" |
| 2609 | else |
| 2610 | case $cross_compiling:$ac_tool_warned in |
| 2611 | yes:) |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 2612 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2613 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 2614 | ac_tool_warned=yes ;; |
| 2615 | esac |
| 2616 | STRIP=$ac_ct_STRIP |
| 2617 | fi |
| 2618 | else |
| 2619 | STRIP="$ac_cv_prog_STRIP" |
| 2620 | fi |
| 2621 | |
| 2622 | fi |
| 2623 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
| 2624 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 2625 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2626 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 2627 | if test -z "$MKDIR_P"; then |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 2628 | if ${ac_cv_path_mkdir+:} false; then : |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2629 | $as_echo_n "(cached) " >&6 |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 2630 | else |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 2631 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2632 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin |
| 2633 | do |
| 2634 | IFS=$as_save_IFS |
| 2635 | test -z "$as_dir" && as_dir=. |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 2636 | for ac_prog in mkdir gmkdir; do |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 2637 | for ac_exec_ext in '' $ac_executable_extensions; do |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 2638 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 2639 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
| 2640 | 'mkdir (GNU coreutils) '* | \ |
| 2641 | 'mkdir (coreutils) '* | \ |
| 2642 | 'mkdir (fileutils) '4.1*) |
| 2643 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext |
| 2644 | break 3;; |
| 2645 | esac |
| 2646 | done |
| 2647 | done |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 2648 | done |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 2649 | IFS=$as_save_IFS |
| 2650 | |
| 2651 | fi |
| 2652 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 2653 | test -d ./--version && rmdir ./--version |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 2654 | if test "${ac_cv_path_mkdir+set}" = set; then |
| 2655 | MKDIR_P="$ac_cv_path_mkdir -p" |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 2656 | else |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 2657 | # As a last resort, use the slow shell script. Don't cache a |
| 2658 | # value for MKDIR_P within a source directory, because that will |
| 2659 | # break other packages using the cache if that directory is |
| 2660 | # removed, or if the value is a relative name. |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 2661 | MKDIR_P="$ac_install_sh -d" |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 2662 | fi |
Jon Dugan | 9286415 | 2010-09-20 21:50:12 +0000 | [diff] [blame] | 2663 | fi |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 2664 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2665 | $as_echo "$MKDIR_P" >&6; } |
Jon Dugan | 9286415 | 2010-09-20 21:50:12 +0000 | [diff] [blame] | 2666 | |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 2667 | for ac_prog in gawk mawk nawk awk |
| 2668 | do |
| 2669 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2670 | set dummy $ac_prog; ac_word=$2 |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 2671 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2672 | $as_echo_n "checking for $ac_word... " >&6; } |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 2673 | if ${ac_cv_prog_AWK+:} false; then : |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2674 | $as_echo_n "(cached) " >&6 |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 2675 | else |
| 2676 | if test -n "$AWK"; then |
| 2677 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 2678 | else |
| 2679 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2680 | for as_dir in $PATH |
| 2681 | do |
| 2682 | IFS=$as_save_IFS |
| 2683 | test -z "$as_dir" && as_dir=. |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 2684 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2685 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 2686 | ac_cv_prog_AWK="$ac_prog" |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 2687 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 2688 | break 2 |
| 2689 | fi |
| 2690 | done |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 2691 | done |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 2692 | IFS=$as_save_IFS |
| 2693 | |
| 2694 | fi |
| 2695 | fi |
| 2696 | AWK=$ac_cv_prog_AWK |
| 2697 | if test -n "$AWK"; then |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 2698 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2699 | $as_echo "$AWK" >&6; } |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 2700 | else |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 2701 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2702 | $as_echo "no" >&6; } |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 2703 | fi |
| 2704 | |
| 2705 | |
| 2706 | test -n "$AWK" && break |
| 2707 | done |
| 2708 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 2709 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2710 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
| 2711 | set x ${MAKE-make} |
| 2712 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 2713 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2714 | $as_echo_n "(cached) " >&6 |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 2715 | else |
| 2716 | cat >conftest.make <<\_ACEOF |
| 2717 | SHELL = /bin/sh |
| 2718 | all: |
| 2719 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
| 2720 | _ACEOF |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 2721 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 2722 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 2723 | *@@@%%%=?*=@@@%%%*) |
| 2724 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 2725 | *) |
| 2726 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 2727 | esac |
| 2728 | rm -f conftest.make |
| 2729 | fi |
| 2730 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 2731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2732 | $as_echo "yes" >&6; } |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 2733 | SET_MAKE= |
| 2734 | else |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 2735 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2736 | $as_echo "no" >&6; } |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 2737 | SET_MAKE="MAKE=${MAKE-make}" |
| 2738 | fi |
| 2739 | |
| 2740 | rm -rf .tst 2>/dev/null |
| 2741 | mkdir .tst 2>/dev/null |
| 2742 | if test -d .tst; then |
| 2743 | am__leading_dot=. |
| 2744 | else |
| 2745 | am__leading_dot=_ |
| 2746 | fi |
| 2747 | rmdir .tst 2>/dev/null |
| 2748 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 2749 | # Check whether --enable-silent-rules was given. |
| 2750 | if test "${enable_silent_rules+set}" = set; then : |
| 2751 | enableval=$enable_silent_rules; |
| 2752 | fi |
| 2753 | |
| 2754 | case $enable_silent_rules in # ((( |
| 2755 | yes) AM_DEFAULT_VERBOSITY=0;; |
| 2756 | no) AM_DEFAULT_VERBOSITY=1;; |
| 2757 | *) AM_DEFAULT_VERBOSITY=1;; |
| 2758 | esac |
| 2759 | am_make=${MAKE-make} |
| 2760 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 |
| 2761 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } |
| 2762 | if ${am_cv_make_support_nested_variables+:} false; then : |
| 2763 | $as_echo_n "(cached) " >&6 |
| 2764 | else |
| 2765 | if $as_echo 'TRUE=$(BAR$(V)) |
| 2766 | BAR0=false |
| 2767 | BAR1=true |
| 2768 | V=1 |
| 2769 | am__doit: |
| 2770 | @$(TRUE) |
| 2771 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then |
| 2772 | am_cv_make_support_nested_variables=yes |
| 2773 | else |
| 2774 | am_cv_make_support_nested_variables=no |
| 2775 | fi |
| 2776 | fi |
| 2777 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 |
| 2778 | $as_echo "$am_cv_make_support_nested_variables" >&6; } |
| 2779 | if test $am_cv_make_support_nested_variables = yes; then |
| 2780 | AM_V='$(V)' |
| 2781 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' |
| 2782 | else |
| 2783 | AM_V=$AM_DEFAULT_VERBOSITY |
| 2784 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY |
| 2785 | fi |
| 2786 | AM_BACKSLASH='\' |
| 2787 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 2788 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
| 2789 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output |
| 2790 | # is not polluted with repeated "-I." |
| 2791 | am__isrc=' -I$(srcdir)' |
| 2792 | # test to see if srcdir already configured |
| 2793 | if test -f $srcdir/config.status; then |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 2794 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 2795 | fi |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 2796 | fi |
| 2797 | |
| 2798 | # test whether we have cygpath |
| 2799 | if test -z "$CYGPATH_W"; then |
| 2800 | if (cygpath --version) >/dev/null 2>/dev/null; then |
| 2801 | CYGPATH_W='cygpath -w' |
| 2802 | else |
| 2803 | CYGPATH_W=echo |
| 2804 | fi |
| 2805 | fi |
| 2806 | |
| 2807 | |
| 2808 | # Define the identity of the package. |
| 2809 | PACKAGE='iperf' |
Bruce A. Mah | ff1ea4e | 2018-02-28 13:24:06 -0800 | [diff] [blame^] | 2810 | VERSION='3.5' |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 2811 | |
| 2812 | |
| 2813 | cat >>confdefs.h <<_ACEOF |
| 2814 | #define PACKAGE "$PACKAGE" |
| 2815 | _ACEOF |
| 2816 | |
| 2817 | |
| 2818 | cat >>confdefs.h <<_ACEOF |
| 2819 | #define VERSION "$VERSION" |
| 2820 | _ACEOF |
| 2821 | |
| 2822 | # Some tools Automake needs. |
| 2823 | |
| 2824 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
| 2825 | |
| 2826 | |
| 2827 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
| 2828 | |
| 2829 | |
| 2830 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
| 2831 | |
| 2832 | |
| 2833 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
| 2834 | |
| 2835 | |
| 2836 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
| 2837 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 2838 | # For better backward compatibility. To be removed once Automake 1.9.x |
| 2839 | # dies out for good. For more background, see: |
Bruce A. Mah | ff1ea4e | 2018-02-28 13:24:06 -0800 | [diff] [blame^] | 2840 | # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> |
| 2841 | # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 2842 | mkdir_p='$(MKDIR_P)' |
| 2843 | |
Bruce A. Mah | 5461579 | 2015-05-11 10:42:44 -0700 | [diff] [blame] | 2844 | # We need awk for the "check" target (and possibly the TAP driver). The |
| 2845 | # system "awk" is bad on some platforms. |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 2846 | # Always define AMTAR for backward compatibility. Yes, it's still used |
| 2847 | # in the wild :-( We should find a proper way to deprecate it ... |
| 2848 | AMTAR='$${TAR-tar}' |
sethdelliott | 01ca972 | 2010-07-19 20:38:40 +0000 | [diff] [blame] | 2849 | |
sethdelliott | 01ca972 | 2010-07-19 20:38:40 +0000 | [diff] [blame] | 2850 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 2851 | # We'll loop over all known methods to create a tar archive until one works. |
| 2852 | _am_tools='gnutar pax cpio none' |
| 2853 | |
| 2854 | am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' |
sethdelliott | 01ca972 | 2010-07-19 20:38:40 +0000 | [diff] [blame] | 2855 | |
| 2856 | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2857 | |
| 2858 | |
| 2859 | |
| 2860 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 2861 | # POSIX will say in a future version that running "rm -f" with no argument |
| 2862 | # is OK; and we want to be able to make that assumption in our Makefile |
| 2863 | # recipes. So use an aggressive probe to check that the usage we want is |
| 2864 | # actually supported "in the wild" to an acceptable degree. |
| 2865 | # See automake bug#10828. |
| 2866 | # To make any issue more visible, cause the running configure to be aborted |
| 2867 | # by default if the 'rm' program in use doesn't match our expectations; the |
| 2868 | # user can still override this though. |
| 2869 | if rm -f && rm -fr && rm -rf; then : OK; else |
| 2870 | cat >&2 <<'END' |
| 2871 | Oops! |
| 2872 | |
| 2873 | Your 'rm' program seems unable to run without file operands specified |
| 2874 | on the command line, even when the '-f' option is present. This is contrary |
| 2875 | to the behaviour of most rm programs out there, and not conforming with |
| 2876 | the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> |
| 2877 | |
| 2878 | Please tell bug-automake@gnu.org about your system, including the value |
| 2879 | of your $PATH and any error possibly output before this message. This |
| 2880 | can help us improve future automake versions. |
| 2881 | |
| 2882 | END |
| 2883 | if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then |
| 2884 | echo 'Configuration will proceed anyway, since you have set the' >&2 |
| 2885 | echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 |
| 2886 | echo >&2 |
| 2887 | else |
| 2888 | cat >&2 <<'END' |
| 2889 | Aborting the configuration process, to ensure you take notice of the issue. |
| 2890 | |
| 2891 | You can download and install GNU coreutils to get an 'rm' implementation |
Bruce A. Mah | ff1ea4e | 2018-02-28 13:24:06 -0800 | [diff] [blame^] | 2892 | that behaves properly: <https://www.gnu.org/software/coreutils/>. |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 2893 | |
| 2894 | If you want to complete the configuration process using your problematic |
| 2895 | 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM |
| 2896 | to "yes", and re-run configure. |
| 2897 | |
| 2898 | END |
| 2899 | as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 |
| 2900 | fi |
| 2901 | fi |
| 2902 | |
Bruce A. Mah | 5461579 | 2015-05-11 10:42:44 -0700 | [diff] [blame] | 2903 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 2904 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
| 2905 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } |
| 2906 | # Check whether --enable-maintainer-mode was given. |
| 2907 | if test "${enable_maintainer_mode+set}" = set; then : |
| 2908 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval |
| 2909 | else |
| 2910 | USE_MAINTAINER_MODE=no |
| 2911 | fi |
| 2912 | |
| 2913 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 |
| 2914 | $as_echo "$USE_MAINTAINER_MODE" >&6; } |
| 2915 | if test $USE_MAINTAINER_MODE = yes; then |
| 2916 | MAINTAINER_MODE_TRUE= |
| 2917 | MAINTAINER_MODE_FALSE='#' |
| 2918 | else |
| 2919 | MAINTAINER_MODE_TRUE='#' |
| 2920 | MAINTAINER_MODE_FALSE= |
| 2921 | fi |
| 2922 | |
| 2923 | MAINT=$MAINTAINER_MODE_TRUE |
| 2924 | |
| 2925 | |
Bruce A. Mah | a57bcc2 | 2014-04-14 13:37:47 -0700 | [diff] [blame] | 2926 | ac_config_headers="$ac_config_headers src/iperf_config.h" |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2927 | |
| 2928 | |
| 2929 | # Make sure we can run config.sub. |
| 2930 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 2931 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2932 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 2933 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2934 | $as_echo_n "checking build system type... " >&6; } |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 2935 | if ${ac_cv_build+:} false; then : |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2936 | $as_echo_n "(cached) " >&6 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2937 | else |
| 2938 | ac_build_alias=$build_alias |
| 2939 | test "x$ac_build_alias" = x && |
| 2940 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 2941 | test "x$ac_build_alias" = x && |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 2942 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2943 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 2944 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2945 | |
| 2946 | fi |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 2947 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2948 | $as_echo "$ac_cv_build" >&6; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2949 | case $ac_cv_build in |
| 2950 | *-*-*) ;; |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 2951 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2952 | esac |
| 2953 | build=$ac_cv_build |
| 2954 | ac_save_IFS=$IFS; IFS='-' |
| 2955 | set x $ac_cv_build |
| 2956 | shift |
| 2957 | build_cpu=$1 |
| 2958 | build_vendor=$2 |
| 2959 | shift; shift |
| 2960 | # Remember, the first character of IFS is used to create $*, |
| 2961 | # except with old shells: |
| 2962 | build_os=$* |
| 2963 | IFS=$ac_save_IFS |
| 2964 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
| 2965 | |
| 2966 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 2967 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2968 | $as_echo_n "checking host system type... " >&6; } |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 2969 | if ${ac_cv_host+:} false; then : |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2970 | $as_echo_n "(cached) " >&6 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2971 | else |
| 2972 | if test "x$host_alias" = x; then |
| 2973 | ac_cv_host=$ac_cv_build |
| 2974 | else |
| 2975 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 2976 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2977 | fi |
| 2978 | |
| 2979 | fi |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 2980 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 2981 | $as_echo "$ac_cv_host" >&6; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2982 | case $ac_cv_host in |
| 2983 | *-*-*) ;; |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 2984 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 2985 | esac |
| 2986 | host=$ac_cv_host |
| 2987 | ac_save_IFS=$IFS; IFS='-' |
| 2988 | set x $ac_cv_host |
| 2989 | shift |
| 2990 | host_cpu=$1 |
| 2991 | host_vendor=$2 |
| 2992 | shift; shift |
| 2993 | # Remember, the first character of IFS is used to create $*, |
| 2994 | # except with old shells: |
| 2995 | host_os=$* |
| 2996 | IFS=$ac_save_IFS |
| 2997 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
| 2998 | |
| 2999 | |
| 3000 | |
| 3001 | # Checks for tools: c compiler, ranlib (used for creating static libraries), |
| 3002 | # symlinks and libtool |
| 3003 | ac_ext=c |
| 3004 | ac_cpp='$CPP $CPPFLAGS' |
| 3005 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3006 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3007 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3008 | if test -n "$ac_tool_prefix"; then |
| 3009 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 3010 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 3011 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3012 | $as_echo_n "checking for $ac_word... " >&6; } |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 3013 | if ${ac_cv_prog_CC+:} false; then : |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3014 | $as_echo_n "(cached) " >&6 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3015 | else |
| 3016 | if test -n "$CC"; then |
| 3017 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3018 | else |
| 3019 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3020 | for as_dir in $PATH |
| 3021 | do |
| 3022 | IFS=$as_save_IFS |
| 3023 | test -z "$as_dir" && as_dir=. |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 3024 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3025 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3026 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 3027 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3028 | break 2 |
| 3029 | fi |
| 3030 | done |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 3031 | done |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3032 | IFS=$as_save_IFS |
| 3033 | |
| 3034 | fi |
| 3035 | fi |
| 3036 | CC=$ac_cv_prog_CC |
| 3037 | if test -n "$CC"; then |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 3038 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3039 | $as_echo "$CC" >&6; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3040 | else |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 3041 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3042 | $as_echo "no" >&6; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3043 | fi |
| 3044 | |
| 3045 | |
| 3046 | fi |
| 3047 | if test -z "$ac_cv_prog_CC"; then |
| 3048 | ac_ct_CC=$CC |
| 3049 | # Extract the first word of "gcc", so it can be a program name with args. |
| 3050 | set dummy gcc; ac_word=$2 |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 3051 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3052 | $as_echo_n "checking for $ac_word... " >&6; } |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 3053 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3054 | $as_echo_n "(cached) " >&6 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3055 | else |
| 3056 | if test -n "$ac_ct_CC"; then |
| 3057 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3058 | else |
| 3059 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3060 | for as_dir in $PATH |
| 3061 | do |
| 3062 | IFS=$as_save_IFS |
| 3063 | test -z "$as_dir" && as_dir=. |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 3064 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3065 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3066 | ac_cv_prog_ac_ct_CC="gcc" |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 3067 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3068 | break 2 |
| 3069 | fi |
| 3070 | done |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 3071 | done |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3072 | IFS=$as_save_IFS |
| 3073 | |
| 3074 | fi |
| 3075 | fi |
| 3076 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3077 | if test -n "$ac_ct_CC"; then |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 3078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3079 | $as_echo "$ac_ct_CC" >&6; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3080 | else |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 3081 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3082 | $as_echo "no" >&6; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3083 | fi |
| 3084 | |
| 3085 | if test "x$ac_ct_CC" = x; then |
| 3086 | CC="" |
| 3087 | else |
| 3088 | case $cross_compiling:$ac_tool_warned in |
| 3089 | yes:) |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 3090 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3091 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3092 | ac_tool_warned=yes ;; |
| 3093 | esac |
| 3094 | CC=$ac_ct_CC |
| 3095 | fi |
| 3096 | else |
| 3097 | CC="$ac_cv_prog_CC" |
| 3098 | fi |
| 3099 | |
| 3100 | if test -z "$CC"; then |
| 3101 | if test -n "$ac_tool_prefix"; then |
| 3102 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 3103 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 3104 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3105 | $as_echo_n "checking for $ac_word... " >&6; } |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 3106 | if ${ac_cv_prog_CC+:} false; then : |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3107 | $as_echo_n "(cached) " >&6 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3108 | else |
| 3109 | if test -n "$CC"; then |
| 3110 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3111 | else |
| 3112 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3113 | for as_dir in $PATH |
| 3114 | do |
| 3115 | IFS=$as_save_IFS |
| 3116 | test -z "$as_dir" && as_dir=. |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 3117 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3118 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3119 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 3120 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3121 | break 2 |
| 3122 | fi |
| 3123 | done |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 3124 | done |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3125 | IFS=$as_save_IFS |
| 3126 | |
| 3127 | fi |
| 3128 | fi |
| 3129 | CC=$ac_cv_prog_CC |
| 3130 | if test -n "$CC"; then |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 3131 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3132 | $as_echo "$CC" >&6; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3133 | else |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 3134 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3135 | $as_echo "no" >&6; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3136 | fi |
| 3137 | |
| 3138 | |
| 3139 | fi |
| 3140 | fi |
| 3141 | if test -z "$CC"; then |
| 3142 | # Extract the first word of "cc", so it can be a program name with args. |
| 3143 | set dummy cc; ac_word=$2 |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 3144 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3145 | $as_echo_n "checking for $ac_word... " >&6; } |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 3146 | if ${ac_cv_prog_CC+:} false; then : |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3147 | $as_echo_n "(cached) " >&6 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3148 | else |
| 3149 | if test -n "$CC"; then |
| 3150 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3151 | else |
| 3152 | ac_prog_rejected=no |
| 3153 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3154 | for as_dir in $PATH |
| 3155 | do |
| 3156 | IFS=$as_save_IFS |
| 3157 | test -z "$as_dir" && as_dir=. |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 3158 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3159 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3160 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 3161 | ac_prog_rejected=yes |
| 3162 | continue |
| 3163 | fi |
| 3164 | ac_cv_prog_CC="cc" |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 3165 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3166 | break 2 |
| 3167 | fi |
| 3168 | done |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 3169 | done |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3170 | IFS=$as_save_IFS |
| 3171 | |
| 3172 | if test $ac_prog_rejected = yes; then |
| 3173 | # We found a bogon in the path, so make sure we never use it. |
| 3174 | set dummy $ac_cv_prog_CC |
| 3175 | shift |
| 3176 | if test $# != 0; then |
| 3177 | # We chose a different compiler from the bogus one. |
| 3178 | # However, it has the same basename, so the bogon will be chosen |
| 3179 | # first if we set CC to just the basename; use the full file name. |
| 3180 | shift |
| 3181 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 3182 | fi |
| 3183 | fi |
| 3184 | fi |
| 3185 | fi |
| 3186 | CC=$ac_cv_prog_CC |
| 3187 | if test -n "$CC"; then |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 3188 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3189 | $as_echo "$CC" >&6; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3190 | else |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 3191 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3192 | $as_echo "no" >&6; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3193 | fi |
| 3194 | |
| 3195 | |
| 3196 | fi |
| 3197 | if test -z "$CC"; then |
| 3198 | if test -n "$ac_tool_prefix"; then |
| 3199 | for ac_prog in cl.exe |
| 3200 | do |
| 3201 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3202 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 3203 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3204 | $as_echo_n "checking for $ac_word... " >&6; } |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 3205 | if ${ac_cv_prog_CC+:} false; then : |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3206 | $as_echo_n "(cached) " >&6 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3207 | else |
| 3208 | if test -n "$CC"; then |
| 3209 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3210 | else |
| 3211 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3212 | for as_dir in $PATH |
| 3213 | do |
| 3214 | IFS=$as_save_IFS |
| 3215 | test -z "$as_dir" && as_dir=. |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 3216 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3217 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3218 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 3219 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3220 | break 2 |
| 3221 | fi |
| 3222 | done |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 3223 | done |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3224 | IFS=$as_save_IFS |
| 3225 | |
| 3226 | fi |
| 3227 | fi |
| 3228 | CC=$ac_cv_prog_CC |
| 3229 | if test -n "$CC"; then |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 3230 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3231 | $as_echo "$CC" >&6; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3232 | else |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 3233 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3234 | $as_echo "no" >&6; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3235 | fi |
| 3236 | |
| 3237 | |
| 3238 | test -n "$CC" && break |
| 3239 | done |
| 3240 | fi |
| 3241 | if test -z "$CC"; then |
| 3242 | ac_ct_CC=$CC |
| 3243 | for ac_prog in cl.exe |
| 3244 | do |
| 3245 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3246 | set dummy $ac_prog; ac_word=$2 |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 3247 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3248 | $as_echo_n "checking for $ac_word... " >&6; } |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 3249 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3250 | $as_echo_n "(cached) " >&6 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3251 | else |
| 3252 | if test -n "$ac_ct_CC"; then |
| 3253 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3254 | else |
| 3255 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3256 | for as_dir in $PATH |
| 3257 | do |
| 3258 | IFS=$as_save_IFS |
| 3259 | test -z "$as_dir" && as_dir=. |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 3260 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3261 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3262 | ac_cv_prog_ac_ct_CC="$ac_prog" |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 3263 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3264 | break 2 |
| 3265 | fi |
| 3266 | done |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 3267 | done |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3268 | IFS=$as_save_IFS |
| 3269 | |
| 3270 | fi |
| 3271 | fi |
| 3272 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3273 | if test -n "$ac_ct_CC"; then |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 3274 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3275 | $as_echo "$ac_ct_CC" >&6; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3276 | else |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 3277 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3278 | $as_echo "no" >&6; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3279 | fi |
| 3280 | |
| 3281 | |
| 3282 | test -n "$ac_ct_CC" && break |
| 3283 | done |
| 3284 | |
| 3285 | if test "x$ac_ct_CC" = x; then |
| 3286 | CC="" |
| 3287 | else |
| 3288 | case $cross_compiling:$ac_tool_warned in |
| 3289 | yes:) |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 3290 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3291 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3292 | ac_tool_warned=yes ;; |
| 3293 | esac |
| 3294 | CC=$ac_ct_CC |
| 3295 | fi |
| 3296 | fi |
| 3297 | |
| 3298 | fi |
| 3299 | |
| 3300 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 3301 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3302 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 3303 | as_fn_error $? "no acceptable C compiler found in \$PATH |
| 3304 | See \`config.log' for more details" "$LINENO" 5; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3305 | |
| 3306 | # Provide some information about the compiler. |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 3307 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3308 | set X $ac_compile |
| 3309 | ac_compiler=$2 |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 3310 | for ac_option in --version -v -V -qversion; do |
| 3311 | { { ac_try="$ac_compiler $ac_option >&5" |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3312 | case "(($ac_try" in |
| 3313 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3314 | *) ac_try_echo=$ac_try;; |
| 3315 | esac |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 3316 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3317 | $as_echo "$ac_try_echo"; } >&5 |
| 3318 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3319 | ac_status=$? |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 3320 | if test -s conftest.err; then |
| 3321 | sed '10a\ |
| 3322 | ... rest of stderr output deleted ... |
| 3323 | 10q' conftest.err >conftest.er1 |
| 3324 | cat conftest.er1 >&5 |
| 3325 | fi |
| 3326 | rm -f conftest.er1 conftest.err |
| 3327 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3328 | test $ac_status = 0; } |
| 3329 | done |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3330 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 3331 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3332 | /* end confdefs.h. */ |
| 3333 | |
| 3334 | int |
| 3335 | main () |
| 3336 | { |
| 3337 | |
| 3338 | ; |
| 3339 | return 0; |
| 3340 | } |
| 3341 | _ACEOF |
| 3342 | ac_clean_files_save=$ac_clean_files |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3343 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3344 | # Try to create an executable without -o first, disregard a.out. |
| 3345 | # It will help us diagnose broken compilers, and finding out an intuition |
| 3346 | # of exeext. |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 3347 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
| 3348 | $as_echo_n "checking whether the C compiler works... " >&6; } |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3349 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 3350 | |
| 3351 | # The possible output files: |
| 3352 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
| 3353 | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3354 | ac_rmfiles= |
| 3355 | for ac_file in $ac_files |
| 3356 | do |
| 3357 | case $ac_file in |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3358 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3359 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 3360 | esac |
| 3361 | done |
| 3362 | rm -f $ac_rmfiles |
| 3363 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 3364 | if { { ac_try="$ac_link_default" |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3365 | case "(($ac_try" in |
| 3366 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3367 | *) ac_try_echo=$ac_try;; |
| 3368 | esac |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 3369 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3370 | $as_echo "$ac_try_echo"; } >&5 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3371 | (eval "$ac_link_default") 2>&5 |
| 3372 | ac_status=$? |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 3373 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3374 | test $ac_status = 0; }; then : |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3375 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 3376 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 3377 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 3378 | # so that the user can short-circuit this test for compilers unknown to |
| 3379 | # Autoconf. |
| 3380 | for ac_file in $ac_files '' |
| 3381 | do |
| 3382 | test -f "$ac_file" || continue |
| 3383 | case $ac_file in |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3384 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3385 | ;; |
| 3386 | [ab].out ) |
| 3387 | # We found the default executable, but exeext='' is most |
| 3388 | # certainly right. |
| 3389 | break;; |
| 3390 | *.* ) |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 3391 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3392 | then :; else |
| 3393 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 3394 | fi |
| 3395 | # We set ac_cv_exeext here because the later test for it is not |
| 3396 | # safe: cross compilers may not add the suffix if given an `-o' |
| 3397 | # argument, so we may need to know it at that point already. |
| 3398 | # Even if this section looks crufty: it has the advantage of |
| 3399 | # actually working. |
| 3400 | break;; |
| 3401 | * ) |
| 3402 | break;; |
| 3403 | esac |
| 3404 | done |
| 3405 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 3406 | |
| 3407 | else |
| 3408 | ac_file='' |
| 3409 | fi |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 3410 | if test -z "$ac_file"; then : |
| 3411 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3412 | $as_echo "no" >&6; } |
| 3413 | $as_echo "$as_me: failed program was:" >&5 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3414 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3415 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 3416 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3417 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 3418 | as_fn_error 77 "C compiler cannot create executables |
| 3419 | See \`config.log' for more details" "$LINENO" 5; } |
| 3420 | else |
| 3421 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 3422 | $as_echo "yes" >&6; } |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 3423 | fi |
| 3424 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
| 3425 | $as_echo_n "checking for C compiler default output file name... " >&6; } |
| 3426 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
| 3427 | $as_echo "$ac_file" >&6; } |
| 3428 | ac_exeext=$ac_cv_exeext |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 3429 | |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3430 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3431 | ac_clean_files=$ac_clean_files_save |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 3432 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3433 | $as_echo_n "checking for suffix of executables... " >&6; } |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 3434 | if { { ac_try="$ac_link" |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3435 | case "(($ac_try" in |
| 3436 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3437 | *) ac_try_echo=$ac_try;; |
| 3438 | esac |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 3439 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3440 | $as_echo "$ac_try_echo"; } >&5 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3441 | (eval "$ac_link") 2>&5 |
| 3442 | ac_status=$? |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 3443 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3444 | test $ac_status = 0; }; then : |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3445 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 3446 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 3447 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 3448 | # `rm'. |
| 3449 | for ac_file in conftest.exe conftest conftest.*; do |
| 3450 | test -f "$ac_file" || continue |
| 3451 | case $ac_file in |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3452 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3453 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 3454 | break;; |
| 3455 | * ) break;; |
| 3456 | esac |
| 3457 | done |
| 3458 | else |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 3459 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3460 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 3461 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
| 3462 | See \`config.log' for more details" "$LINENO" 5; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3463 | fi |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 3464 | rm -f conftest conftest$ac_cv_exeext |
| 3465 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3466 | $as_echo "$ac_cv_exeext" >&6; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3467 | |
| 3468 | rm -f conftest.$ac_ext |
| 3469 | EXEEXT=$ac_cv_exeext |
| 3470 | ac_exeext=$EXEEXT |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 3471 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3472 | /* end confdefs.h. */ |
| 3473 | #include <stdio.h> |
| 3474 | int |
| 3475 | main () |
| 3476 | { |
| 3477 | FILE *f = fopen ("conftest.out", "w"); |
| 3478 | return ferror (f) || fclose (f) != 0; |
| 3479 | |
| 3480 | ; |
| 3481 | return 0; |
| 3482 | } |
| 3483 | _ACEOF |
| 3484 | ac_clean_files="$ac_clean_files conftest.out" |
| 3485 | # Check that the compiler produces executables we can run. If not, either |
| 3486 | # the compiler is broken, or we cross compile. |
| 3487 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
| 3488 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
| 3489 | if test "$cross_compiling" != yes; then |
| 3490 | { { ac_try="$ac_link" |
| 3491 | case "(($ac_try" in |
| 3492 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3493 | *) ac_try_echo=$ac_try;; |
| 3494 | esac |
| 3495 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3496 | $as_echo "$ac_try_echo"; } >&5 |
| 3497 | (eval "$ac_link") 2>&5 |
| 3498 | ac_status=$? |
| 3499 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3500 | test $ac_status = 0; } |
| 3501 | if { ac_try='./conftest$ac_cv_exeext' |
| 3502 | { { case "(($ac_try" in |
| 3503 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3504 | *) ac_try_echo=$ac_try;; |
| 3505 | esac |
| 3506 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3507 | $as_echo "$ac_try_echo"; } >&5 |
| 3508 | (eval "$ac_try") 2>&5 |
| 3509 | ac_status=$? |
| 3510 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3511 | test $ac_status = 0; }; }; then |
| 3512 | cross_compiling=no |
| 3513 | else |
| 3514 | if test "$cross_compiling" = maybe; then |
| 3515 | cross_compiling=yes |
| 3516 | else |
| 3517 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3518 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3519 | as_fn_error $? "cannot run C compiled programs. |
| 3520 | If you meant to cross compile, use \`--host'. |
| 3521 | See \`config.log' for more details" "$LINENO" 5; } |
| 3522 | fi |
| 3523 | fi |
| 3524 | fi |
| 3525 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
| 3526 | $as_echo "$cross_compiling" >&6; } |
| 3527 | |
| 3528 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
| 3529 | ac_clean_files=$ac_clean_files_save |
| 3530 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3531 | $as_echo_n "checking for suffix of object files... " >&6; } |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 3532 | if ${ac_cv_objext+:} false; then : |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3533 | $as_echo_n "(cached) " >&6 |
| 3534 | else |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 3535 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3536 | /* end confdefs.h. */ |
| 3537 | |
| 3538 | int |
| 3539 | main () |
| 3540 | { |
| 3541 | |
| 3542 | ; |
| 3543 | return 0; |
| 3544 | } |
| 3545 | _ACEOF |
| 3546 | rm -f conftest.o conftest.obj |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 3547 | if { { ac_try="$ac_compile" |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3548 | case "(($ac_try" in |
| 3549 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3550 | *) ac_try_echo=$ac_try;; |
| 3551 | esac |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 3552 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3553 | $as_echo "$ac_try_echo"; } >&5 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3554 | (eval "$ac_compile") 2>&5 |
| 3555 | ac_status=$? |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 3556 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3557 | test $ac_status = 0; }; then : |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3558 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 3559 | test -f "$ac_file" || continue; |
| 3560 | case $ac_file in |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3561 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3562 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 3563 | break;; |
| 3564 | esac |
| 3565 | done |
| 3566 | else |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3567 | $as_echo "$as_me: failed program was:" >&5 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3568 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3569 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 3570 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3571 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 3572 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
| 3573 | See \`config.log' for more details" "$LINENO" 5; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3574 | fi |
| 3575 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 3576 | fi |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 3577 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3578 | $as_echo "$ac_cv_objext" >&6; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3579 | OBJEXT=$ac_cv_objext |
| 3580 | ac_objext=$OBJEXT |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 3581 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3582 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 3583 | if ${ac_cv_c_compiler_gnu+:} false; then : |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3584 | $as_echo_n "(cached) " >&6 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3585 | else |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 3586 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3587 | /* end confdefs.h. */ |
| 3588 | |
| 3589 | int |
| 3590 | main () |
| 3591 | { |
| 3592 | #ifndef __GNUC__ |
| 3593 | choke me |
| 3594 | #endif |
| 3595 | |
| 3596 | ; |
| 3597 | return 0; |
| 3598 | } |
| 3599 | _ACEOF |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 3600 | if ac_fn_c_try_compile "$LINENO"; then : |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3601 | ac_compiler_gnu=yes |
| 3602 | else |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 3603 | ac_compiler_gnu=no |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3604 | fi |
| 3605 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3606 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 3607 | |
| 3608 | fi |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 3609 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3610 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 3611 | if test $ac_compiler_gnu = yes; then |
| 3612 | GCC=yes |
| 3613 | else |
| 3614 | GCC= |
| 3615 | fi |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3616 | ac_test_CFLAGS=${CFLAGS+set} |
| 3617 | ac_save_CFLAGS=$CFLAGS |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 3618 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3619 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 3620 | if ${ac_cv_prog_cc_g+:} false; then : |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3621 | $as_echo_n "(cached) " >&6 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3622 | else |
| 3623 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 3624 | ac_c_werror_flag=yes |
| 3625 | ac_cv_prog_cc_g=no |
| 3626 | CFLAGS="-g" |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 3627 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3628 | /* end confdefs.h. */ |
| 3629 | |
| 3630 | int |
| 3631 | main () |
| 3632 | { |
| 3633 | |
| 3634 | ; |
| 3635 | return 0; |
| 3636 | } |
| 3637 | _ACEOF |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 3638 | if ac_fn_c_try_compile "$LINENO"; then : |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3639 | ac_cv_prog_cc_g=yes |
| 3640 | else |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 3641 | CFLAGS="" |
| 3642 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3643 | /* end confdefs.h. */ |
| 3644 | |
| 3645 | int |
| 3646 | main () |
| 3647 | { |
| 3648 | |
| 3649 | ; |
| 3650 | return 0; |
| 3651 | } |
| 3652 | _ACEOF |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 3653 | if ac_fn_c_try_compile "$LINENO"; then : |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 3654 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 3655 | else |
| 3656 | ac_c_werror_flag=$ac_save_c_werror_flag |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3657 | CFLAGS="-g" |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 3658 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3659 | /* end confdefs.h. */ |
| 3660 | |
| 3661 | int |
| 3662 | main () |
| 3663 | { |
| 3664 | |
| 3665 | ; |
| 3666 | return 0; |
| 3667 | } |
| 3668 | _ACEOF |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 3669 | if ac_fn_c_try_compile "$LINENO"; then : |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3670 | ac_cv_prog_cc_g=yes |
| 3671 | fi |
| 3672 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3673 | fi |
| 3674 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3675 | fi |
| 3676 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3677 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3678 | fi |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 3679 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3680 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3681 | if test "$ac_test_CFLAGS" = set; then |
| 3682 | CFLAGS=$ac_save_CFLAGS |
| 3683 | elif test $ac_cv_prog_cc_g = yes; then |
| 3684 | if test "$GCC" = yes; then |
| 3685 | CFLAGS="-g -O2" |
| 3686 | else |
| 3687 | CFLAGS="-g" |
| 3688 | fi |
| 3689 | else |
| 3690 | if test "$GCC" = yes; then |
| 3691 | CFLAGS="-O2" |
| 3692 | else |
| 3693 | CFLAGS= |
| 3694 | fi |
| 3695 | fi |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 3696 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3697 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 3698 | if ${ac_cv_prog_cc_c89+:} false; then : |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3699 | $as_echo_n "(cached) " >&6 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3700 | else |
| 3701 | ac_cv_prog_cc_c89=no |
| 3702 | ac_save_CC=$CC |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 3703 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3704 | /* end confdefs.h. */ |
| 3705 | #include <stdarg.h> |
| 3706 | #include <stdio.h> |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 3707 | struct stat; |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3708 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3709 | struct buf { int x; }; |
| 3710 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3711 | static char *e (p, i) |
| 3712 | char **p; |
| 3713 | int i; |
| 3714 | { |
| 3715 | return p[i]; |
| 3716 | } |
| 3717 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3718 | { |
| 3719 | char *s; |
| 3720 | va_list v; |
| 3721 | va_start (v,p); |
| 3722 | s = g (p, va_arg (v,int)); |
| 3723 | va_end (v); |
| 3724 | return s; |
| 3725 | } |
| 3726 | |
| 3727 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3728 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3729 | These don't provoke an error unfortunately, instead are silently treated |
| 3730 | as 'x'. The following induces an error, until -std is added to get |
| 3731 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3732 | array size at least. It's necessary to write '\x00'==0 to get something |
| 3733 | that's true only with -std. */ |
| 3734 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3735 | |
| 3736 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 3737 | inside strings and character constants. */ |
| 3738 | #define FOO(x) 'x' |
| 3739 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 3740 | |
| 3741 | int test (int i, double x); |
| 3742 | struct s1 {int (*f) (int a);}; |
| 3743 | struct s2 {int (*f) (double a);}; |
| 3744 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3745 | int argc; |
| 3746 | char **argv; |
| 3747 | int |
| 3748 | main () |
| 3749 | { |
| 3750 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3751 | ; |
| 3752 | return 0; |
| 3753 | } |
| 3754 | _ACEOF |
| 3755 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 3756 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 3757 | do |
| 3758 | CC="$ac_save_CC $ac_arg" |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 3759 | if ac_fn_c_try_compile "$LINENO"; then : |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3760 | ac_cv_prog_cc_c89=$ac_arg |
| 3761 | fi |
| 3762 | rm -f core conftest.err conftest.$ac_objext |
| 3763 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 3764 | done |
| 3765 | rm -f conftest.$ac_ext |
| 3766 | CC=$ac_save_CC |
| 3767 | |
| 3768 | fi |
| 3769 | # AC_CACHE_VAL |
| 3770 | case "x$ac_cv_prog_cc_c89" in |
| 3771 | x) |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 3772 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3773 | $as_echo "none needed" >&6; } ;; |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3774 | xno) |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 3775 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3776 | $as_echo "unsupported" >&6; } ;; |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3777 | *) |
| 3778 | CC="$CC $ac_cv_prog_cc_c89" |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 3779 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3780 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3781 | esac |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 3782 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3783 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 3784 | fi |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3785 | |
| 3786 | ac_ext=c |
| 3787 | ac_cpp='$CPP $CPPFLAGS' |
| 3788 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3789 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3790 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 3791 | |
| 3792 | ac_ext=c |
| 3793 | ac_cpp='$CPP $CPPFLAGS' |
| 3794 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3795 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3796 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3797 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 |
| 3798 | $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } |
| 3799 | if ${am_cv_prog_cc_c_o+:} false; then : |
| 3800 | $as_echo_n "(cached) " >&6 |
| 3801 | else |
| 3802 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3803 | /* end confdefs.h. */ |
| 3804 | |
| 3805 | int |
| 3806 | main () |
| 3807 | { |
| 3808 | |
| 3809 | ; |
| 3810 | return 0; |
| 3811 | } |
| 3812 | _ACEOF |
| 3813 | # Make sure it works both with $CC and with simple cc. |
| 3814 | # Following AC_PROG_CC_C_O, we do the test twice because some |
| 3815 | # compilers refuse to overwrite an existing .o file with -o, |
| 3816 | # though they will create one. |
| 3817 | am_cv_prog_cc_c_o=yes |
| 3818 | for am_i in 1 2; do |
| 3819 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 |
| 3820 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 |
| 3821 | ac_status=$? |
| 3822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3823 | (exit $ac_status); } \ |
| 3824 | && test -f conftest2.$ac_objext; then |
| 3825 | : OK |
| 3826 | else |
| 3827 | am_cv_prog_cc_c_o=no |
| 3828 | break |
| 3829 | fi |
| 3830 | done |
| 3831 | rm -f core conftest* |
| 3832 | unset am_i |
| 3833 | fi |
| 3834 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 |
| 3835 | $as_echo "$am_cv_prog_cc_c_o" >&6; } |
| 3836 | if test "$am_cv_prog_cc_c_o" != yes; then |
| 3837 | # Losing compiler, so override with the script. |
| 3838 | # FIXME: It is wrong to rewrite CC. |
| 3839 | # But if we don't then we get into trouble of one sort or another. |
| 3840 | # A longer-term fix would be to have automake use am__CC in this case, |
| 3841 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" |
| 3842 | CC="$am_aux_dir/compile $CC" |
| 3843 | fi |
| 3844 | ac_ext=c |
| 3845 | ac_cpp='$CPP $CPPFLAGS' |
| 3846 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3847 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3848 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3849 | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3850 | DEPDIR="${am__leading_dot}deps" |
| 3851 | |
| 3852 | ac_config_commands="$ac_config_commands depfiles" |
| 3853 | |
Bruce A. Mah | ff1ea4e | 2018-02-28 13:24:06 -0800 | [diff] [blame^] | 3854 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 |
| 3855 | $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; } |
| 3856 | cat > confinc.mk << 'END' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3857 | am__doit: |
Bruce A. Mah | ff1ea4e | 2018-02-28 13:24:06 -0800 | [diff] [blame^] | 3858 | @echo this is the am__doit target >confinc.out |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3859 | .PHONY: am__doit |
| 3860 | END |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3861 | am__include="#" |
| 3862 | am__quote= |
Bruce A. Mah | ff1ea4e | 2018-02-28 13:24:06 -0800 | [diff] [blame^] | 3863 | # BSD make does it like this. |
| 3864 | echo '.include "confinc.mk" # ignored' > confmf.BSD |
| 3865 | # Other make implementations (GNU, Solaris 10, AIX) do it like this. |
| 3866 | echo 'include confinc.mk # ignored' > confmf.GNU |
| 3867 | _am_result=no |
| 3868 | for s in GNU BSD; do |
| 3869 | { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 |
| 3870 | (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 |
| 3871 | ac_status=$? |
| 3872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3873 | (exit $ac_status); } |
| 3874 | case $?:`cat confinc.out 2>/dev/null` in #( |
| 3875 | '0:this is the am__doit target') : |
| 3876 | case $s in #( |
| 3877 | BSD) : |
| 3878 | am__include='.include' am__quote='"' ;; #( |
| 3879 | *) : |
| 3880 | am__include='include' am__quote='' ;; |
| 3881 | esac ;; #( |
| 3882 | *) : |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3883 | ;; |
Bruce A. Mah | ff1ea4e | 2018-02-28 13:24:06 -0800 | [diff] [blame^] | 3884 | esac |
| 3885 | if test "$am__include" != "#"; then |
| 3886 | _am_result="yes ($s style)" |
| 3887 | break |
| 3888 | fi |
| 3889 | done |
| 3890 | rm -f confinc.* confmf.* |
| 3891 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 |
| 3892 | $as_echo "${_am_result}" >&6; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3893 | |
| 3894 | # Check whether --enable-dependency-tracking was given. |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 3895 | if test "${enable_dependency_tracking+set}" = set; then : |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3896 | enableval=$enable_dependency_tracking; |
| 3897 | fi |
| 3898 | |
| 3899 | if test "x$enable_dependency_tracking" != xno; then |
| 3900 | am_depcomp="$ac_aux_dir/depcomp" |
| 3901 | AMDEPBACKSLASH='\' |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 3902 | am__nodep='_no' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3903 | fi |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 3904 | if test "x$enable_dependency_tracking" != xno; then |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3905 | AMDEP_TRUE= |
| 3906 | AMDEP_FALSE='#' |
| 3907 | else |
| 3908 | AMDEP_TRUE='#' |
| 3909 | AMDEP_FALSE= |
| 3910 | fi |
| 3911 | |
| 3912 | |
| 3913 | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3914 | depcc="$CC" am_compiler_list= |
| 3915 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 3916 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3917 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 3918 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3919 | $as_echo_n "(cached) " >&6 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3920 | else |
| 3921 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 3922 | # We make a subdir and do the tests there. Otherwise we can end up |
| 3923 | # making bogus files that we don't know about and never remove. For |
| 3924 | # instance it was reported that on HP-UX the gcc test will end up |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 3925 | # making a dummy file named 'D' -- because '-MD' means "put the output |
| 3926 | # in D". |
| 3927 | rm -rf conftest.dir |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3928 | mkdir conftest.dir |
| 3929 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 3930 | # using a relative directory. |
| 3931 | cp "$am_depcomp" conftest.dir |
| 3932 | cd conftest.dir |
| 3933 | # We will build objects and dependencies in a subdirectory because |
| 3934 | # it helps to detect inapplicable dependency modes. For instance |
| 3935 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 3936 | # side effect of compilation, but ICC will put the dependencies in |
| 3937 | # the current directory while Tru64 will put them in the object |
| 3938 | # directory. |
| 3939 | mkdir sub |
| 3940 | |
| 3941 | am_cv_CC_dependencies_compiler_type=none |
| 3942 | if test "$am_compiler_list" = ""; then |
| 3943 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 3944 | fi |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3945 | am__universal=false |
| 3946 | case " $depcc " in #( |
| 3947 | *\ -arch\ *\ -arch\ *) am__universal=true ;; |
| 3948 | esac |
| 3949 | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3950 | for depmode in $am_compiler_list; do |
| 3951 | # Setup a source with many dependencies, because some compilers |
| 3952 | # like to wrap large dependency lists on column 80 (with \), and |
| 3953 | # we should not choose a depcomp mode which is confused by this. |
| 3954 | # |
| 3955 | # We need to recreate these files for each test, as the compiler may |
| 3956 | # overwrite some of them when testing with obscure command lines. |
| 3957 | # This happens at least with the AIX C compiler. |
| 3958 | : > sub/conftest.c |
| 3959 | for i in 1 2 3 4 5 6; do |
| 3960 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 3961 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
| 3962 | # Solaris 10 /bin/sh. |
| 3963 | echo '/* dummy */' > sub/conftst$i.h |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3964 | done |
| 3965 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 3966 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 3967 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3968 | # mode. It turns out that the SunPro C++ compiler does not properly |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 3969 | # handle '-M -o', and we need to detect this. Also, some Intel |
| 3970 | # versions had trouble with output in subdirs. |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3971 | am__obj=sub/conftest.${OBJEXT-o} |
| 3972 | am__minus_obj="-o $am__obj" |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3973 | case $depmode in |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3974 | gcc) |
| 3975 | # This depmode causes a compiler race in universal mode. |
| 3976 | test "$am__universal" = false || continue |
| 3977 | ;; |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3978 | nosideeffect) |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 3979 | # After this tag, mechanisms are not by side-effect, so they'll |
| 3980 | # only be used when explicitly requested. |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3981 | if test "x$enable_dependency_tracking" = xyes; then |
| 3982 | continue |
| 3983 | else |
| 3984 | break |
| 3985 | fi |
| 3986 | ;; |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 3987 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
| 3988 | # This compiler won't grok '-c -o', but also, the minuso test has |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3989 | # not run yet. These depmodes are late enough in the game, and |
| 3990 | # so weak that their functioning should not be impacted. |
| 3991 | am__obj=conftest.${OBJEXT-o} |
| 3992 | am__minus_obj= |
| 3993 | ;; |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3994 | none) break ;; |
| 3995 | esac |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3996 | if depmode=$depmode \ |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3997 | source=sub/conftest.c object=$am__obj \ |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 3998 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 3999 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 4000 | >/dev/null 2>conftest.err && |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 4001 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 4002 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4003 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 4004 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 4005 | # icc doesn't choke on unknown options, it will just issue warnings |
sethdelliott | 01ca972 | 2010-07-19 20:38:40 +0000 | [diff] [blame] | 4006 | # or remarks (even with -Werror). So we grep stderr for any message |
| 4007 | # that says an option was ignored or not supported. |
| 4008 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 4009 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 4010 | # The diagnosis changed in icc 8.0: |
| 4011 | # icc: Command line remark: option '-MP' not supported |
| 4012 | if (grep 'ignoring option' conftest.err || |
| 4013 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 4014 | am_cv_CC_dependencies_compiler_type=$depmode |
| 4015 | break |
| 4016 | fi |
| 4017 | fi |
| 4018 | done |
| 4019 | |
| 4020 | cd .. |
| 4021 | rm -rf conftest.dir |
| 4022 | else |
| 4023 | am_cv_CC_dependencies_compiler_type=none |
| 4024 | fi |
| 4025 | |
| 4026 | fi |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 4027 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4028 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 4029 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
| 4030 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 4031 | if |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 4032 | test "x$enable_dependency_tracking" != xno \ |
| 4033 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
| 4034 | am__fastdepCC_TRUE= |
| 4035 | am__fastdepCC_FALSE='#' |
| 4036 | else |
| 4037 | am__fastdepCC_TRUE='#' |
| 4038 | am__fastdepCC_FALSE= |
| 4039 | fi |
| 4040 | |
| 4041 | |
| 4042 | if test -n "$ac_tool_prefix"; then |
| 4043 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 4044 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 4045 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4046 | $as_echo_n "checking for $ac_word... " >&6; } |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 4047 | if ${ac_cv_prog_RANLIB+:} false; then : |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4048 | $as_echo_n "(cached) " >&6 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 4049 | else |
| 4050 | if test -n "$RANLIB"; then |
| 4051 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 4052 | else |
| 4053 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4054 | for as_dir in $PATH |
| 4055 | do |
| 4056 | IFS=$as_save_IFS |
| 4057 | test -z "$as_dir" && as_dir=. |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 4058 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4059 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 4060 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 4061 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 4062 | break 2 |
| 4063 | fi |
| 4064 | done |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 4065 | done |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 4066 | IFS=$as_save_IFS |
| 4067 | |
| 4068 | fi |
| 4069 | fi |
| 4070 | RANLIB=$ac_cv_prog_RANLIB |
| 4071 | if test -n "$RANLIB"; then |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 4072 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4073 | $as_echo "$RANLIB" >&6; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 4074 | else |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 4075 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4076 | $as_echo "no" >&6; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 4077 | fi |
| 4078 | |
| 4079 | |
| 4080 | fi |
| 4081 | if test -z "$ac_cv_prog_RANLIB"; then |
| 4082 | ac_ct_RANLIB=$RANLIB |
| 4083 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 4084 | set dummy ranlib; ac_word=$2 |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 4085 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4086 | $as_echo_n "checking for $ac_word... " >&6; } |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 4087 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4088 | $as_echo_n "(cached) " >&6 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 4089 | else |
| 4090 | if test -n "$ac_ct_RANLIB"; then |
| 4091 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 4092 | else |
| 4093 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4094 | for as_dir in $PATH |
| 4095 | do |
| 4096 | IFS=$as_save_IFS |
| 4097 | test -z "$as_dir" && as_dir=. |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 4098 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4099 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 4100 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 4101 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 4102 | break 2 |
| 4103 | fi |
| 4104 | done |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 4105 | done |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 4106 | IFS=$as_save_IFS |
| 4107 | |
| 4108 | fi |
| 4109 | fi |
| 4110 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 4111 | if test -n "$ac_ct_RANLIB"; then |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 4112 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4113 | $as_echo "$ac_ct_RANLIB" >&6; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 4114 | else |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 4115 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4116 | $as_echo "no" >&6; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 4117 | fi |
| 4118 | |
| 4119 | if test "x$ac_ct_RANLIB" = x; then |
| 4120 | RANLIB=":" |
| 4121 | else |
| 4122 | case $cross_compiling:$ac_tool_warned in |
| 4123 | yes:) |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 4124 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4125 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 4126 | ac_tool_warned=yes ;; |
| 4127 | esac |
| 4128 | RANLIB=$ac_ct_RANLIB |
| 4129 | fi |
| 4130 | else |
| 4131 | RANLIB="$ac_cv_prog_RANLIB" |
| 4132 | fi |
| 4133 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 4134 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4135 | $as_echo_n "checking whether ln -s works... " >&6; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 4136 | LN_S=$as_ln_s |
| 4137 | if test "$LN_S" = "ln -s"; then |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 4138 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4139 | $as_echo "yes" >&6; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 4140 | else |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 4141 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4142 | $as_echo "no, using $LN_S" >&6; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 4143 | fi |
| 4144 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 4145 | case `pwd` in |
| 4146 | *\ * | *\ *) |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 4147 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4148 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 4149 | esac |
| 4150 | |
| 4151 | |
| 4152 | |
Bruce A. Mah | 5461579 | 2015-05-11 10:42:44 -0700 | [diff] [blame] | 4153 | macro_version='2.4.6' |
| 4154 | macro_revision='2.4.6' |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 4155 | |
| 4156 | |
| 4157 | |
| 4158 | |
| 4159 | |
| 4160 | |
| 4161 | |
| 4162 | |
| 4163 | |
| 4164 | |
| 4165 | |
| 4166 | |
| 4167 | |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 4168 | ltmain=$ac_aux_dir/ltmain.sh |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 4169 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 4170 | # Backslashify metacharacters that are still active within |
| 4171 | # double-quoted strings. |
| 4172 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' |
| 4173 | |
| 4174 | # Same as above, but do not quote variable references. |
| 4175 | double_quote_subst='s/\(["`\\]\)/\\\1/g' |
| 4176 | |
| 4177 | # Sed substitution to delay expansion of an escaped shell variable in a |
| 4178 | # double_quote_subst'ed string. |
| 4179 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
| 4180 | |
| 4181 | # Sed substitution to delay expansion of an escaped single quote. |
| 4182 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' |
| 4183 | |
| 4184 | # Sed substitution to avoid accidental globbing in evaled expressions |
| 4185 | no_glob_subst='s/\*/\\\*/g' |
| 4186 | |
| 4187 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 4188 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO |
| 4189 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO |
| 4190 | |
| 4191 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 |
| 4192 | $as_echo_n "checking how to print strings... " >&6; } |
| 4193 | # Test print first, because it will be a builtin if present. |
| 4194 | if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ |
| 4195 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then |
| 4196 | ECHO='print -r --' |
| 4197 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then |
| 4198 | ECHO='printf %s\n' |
| 4199 | else |
| 4200 | # Use this function as a fallback that always works. |
| 4201 | func_fallback_echo () |
| 4202 | { |
| 4203 | eval 'cat <<_LTECHO_EOF |
| 4204 | $1 |
| 4205 | _LTECHO_EOF' |
| 4206 | } |
| 4207 | ECHO='func_fallback_echo' |
| 4208 | fi |
| 4209 | |
| 4210 | # func_echo_all arg... |
| 4211 | # Invoke $ECHO with all args, space-separated. |
| 4212 | func_echo_all () |
| 4213 | { |
| 4214 | $ECHO "" |
| 4215 | } |
| 4216 | |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 4217 | case $ECHO in |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 4218 | printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 |
| 4219 | $as_echo "printf" >&6; } ;; |
| 4220 | print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 |
| 4221 | $as_echo "print -r" >&6; } ;; |
| 4222 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 |
| 4223 | $as_echo "cat" >&6; } ;; |
| 4224 | esac |
| 4225 | |
| 4226 | |
| 4227 | |
| 4228 | |
| 4229 | |
| 4230 | |
| 4231 | |
| 4232 | |
| 4233 | |
| 4234 | |
| 4235 | |
| 4236 | |
| 4237 | |
| 4238 | |
| 4239 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4240 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 4241 | if ${ac_cv_path_SED+:} false; then : |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4242 | $as_echo_n "(cached) " >&6 |
Jon Dugan | 9286415 | 2010-09-20 21:50:12 +0000 | [diff] [blame] | 4243 | else |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 4244 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
| 4245 | for ac_i in 1 2 3 4 5 6 7; do |
| 4246 | ac_script="$ac_script$as_nl$ac_script" |
| 4247 | done |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4248 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 4249 | { ac_script=; unset ac_script;} |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4250 | if test -z "$SED"; then |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 4251 | ac_path_SED_found=false |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4252 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4253 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 4254 | for as_dir in $PATH |
| 4255 | do |
| 4256 | IFS=$as_save_IFS |
| 4257 | test -z "$as_dir" && as_dir=. |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 4258 | for ac_prog in sed gsed; do |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4259 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4260 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 4261 | as_fn_executable_p "$ac_path_SED" || continue |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4262 | # Check for GNU ac_path_SED and select it if it is found. |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 4263 | # Check for GNU $ac_path_SED |
| 4264 | case `"$ac_path_SED" --version 2>&1` in |
| 4265 | *GNU*) |
| 4266 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; |
| 4267 | *) |
| 4268 | ac_count=0 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4269 | $as_echo_n 0123456789 >"conftest.in" |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 4270 | while : |
| 4271 | do |
| 4272 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4273 | mv "conftest.tmp" "conftest.in" |
| 4274 | cp "conftest.in" "conftest.nl" |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4275 | $as_echo '' >> "conftest.nl" |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 4276 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4277 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 4278 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 4279 | if test $ac_count -gt ${ac_path_SED_max-0}; then |
| 4280 | # Best one so far, save it but keep looking for a better one |
| 4281 | ac_cv_path_SED="$ac_path_SED" |
| 4282 | ac_path_SED_max=$ac_count |
| 4283 | fi |
| 4284 | # 10*(2^10) chars as input seems more than enough |
| 4285 | test $ac_count -gt 10 && break |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 4286 | done |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 4287 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4288 | esac |
| 4289 | |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4290 | $ac_path_SED_found && break 3 |
| 4291 | done |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 4292 | done |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 4293 | done |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 4294 | IFS=$as_save_IFS |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4295 | if test -z "$ac_cv_path_SED"; then |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 4296 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4297 | fi |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 4298 | else |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 4299 | ac_cv_path_SED=$SED |
| 4300 | fi |
| 4301 | |
| 4302 | fi |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 4303 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4304 | $as_echo "$ac_cv_path_SED" >&6; } |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 4305 | SED="$ac_cv_path_SED" |
| 4306 | rm -f conftest.sed |
| 4307 | |
| 4308 | test -z "$SED" && SED=sed |
| 4309 | Xsed="$SED -e 1s/^X//" |
| 4310 | |
| 4311 | |
| 4312 | |
| 4313 | |
| 4314 | |
| 4315 | |
| 4316 | |
| 4317 | |
| 4318 | |
| 4319 | |
| 4320 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 4321 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4322 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 4323 | if ${ac_cv_path_GREP+:} false; then : |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4324 | $as_echo_n "(cached) " >&6 |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 4325 | else |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4326 | if test -z "$GREP"; then |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 4327 | ac_path_GREP_found=false |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4328 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4329 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 4330 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4331 | do |
| 4332 | IFS=$as_save_IFS |
| 4333 | test -z "$as_dir" && as_dir=. |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 4334 | for ac_prog in grep ggrep; do |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4335 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4336 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 4337 | as_fn_executable_p "$ac_path_GREP" || continue |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4338 | # Check for GNU ac_path_GREP and select it if it is found. |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 4339 | # Check for GNU $ac_path_GREP |
| 4340 | case `"$ac_path_GREP" --version 2>&1` in |
| 4341 | *GNU*) |
| 4342 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 4343 | *) |
| 4344 | ac_count=0 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4345 | $as_echo_n 0123456789 >"conftest.in" |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 4346 | while : |
| 4347 | do |
| 4348 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4349 | mv "conftest.tmp" "conftest.in" |
| 4350 | cp "conftest.in" "conftest.nl" |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4351 | $as_echo 'GREP' >> "conftest.nl" |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 4352 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4353 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 4354 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 4355 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 4356 | # Best one so far, save it but keep looking for a better one |
| 4357 | ac_cv_path_GREP="$ac_path_GREP" |
| 4358 | ac_path_GREP_max=$ac_count |
| 4359 | fi |
| 4360 | # 10*(2^10) chars as input seems more than enough |
| 4361 | test $ac_count -gt 10 && break |
| 4362 | done |
| 4363 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4364 | esac |
| 4365 | |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4366 | $ac_path_GREP_found && break 3 |
| 4367 | done |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 4368 | done |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 4369 | done |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 4370 | IFS=$as_save_IFS |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4371 | if test -z "$ac_cv_path_GREP"; then |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 4372 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4373 | fi |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 4374 | else |
| 4375 | ac_cv_path_GREP=$GREP |
| 4376 | fi |
| 4377 | |
| 4378 | fi |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 4379 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4380 | $as_echo "$ac_cv_path_GREP" >&6; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 4381 | GREP="$ac_cv_path_GREP" |
| 4382 | |
| 4383 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 4384 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4385 | $as_echo_n "checking for egrep... " >&6; } |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 4386 | if ${ac_cv_path_EGREP+:} false; then : |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4387 | $as_echo_n "(cached) " >&6 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 4388 | else |
| 4389 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 4390 | then ac_cv_path_EGREP="$GREP -E" |
| 4391 | else |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4392 | if test -z "$EGREP"; then |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 4393 | ac_path_EGREP_found=false |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4394 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4395 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 4396 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4397 | do |
| 4398 | IFS=$as_save_IFS |
| 4399 | test -z "$as_dir" && as_dir=. |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 4400 | for ac_prog in egrep; do |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4401 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4402 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 4403 | as_fn_executable_p "$ac_path_EGREP" || continue |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4404 | # Check for GNU ac_path_EGREP and select it if it is found. |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 4405 | # Check for GNU $ac_path_EGREP |
| 4406 | case `"$ac_path_EGREP" --version 2>&1` in |
| 4407 | *GNU*) |
| 4408 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 4409 | *) |
| 4410 | ac_count=0 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4411 | $as_echo_n 0123456789 >"conftest.in" |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 4412 | while : |
| 4413 | do |
| 4414 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4415 | mv "conftest.tmp" "conftest.in" |
| 4416 | cp "conftest.in" "conftest.nl" |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4417 | $as_echo 'EGREP' >> "conftest.nl" |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 4418 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4419 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 4420 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 4421 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 4422 | # Best one so far, save it but keep looking for a better one |
| 4423 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 4424 | ac_path_EGREP_max=$ac_count |
| 4425 | fi |
| 4426 | # 10*(2^10) chars as input seems more than enough |
| 4427 | test $ac_count -gt 10 && break |
| 4428 | done |
| 4429 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4430 | esac |
| 4431 | |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4432 | $ac_path_EGREP_found && break 3 |
| 4433 | done |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 4434 | done |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 4435 | done |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 4436 | IFS=$as_save_IFS |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4437 | if test -z "$ac_cv_path_EGREP"; then |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 4438 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4439 | fi |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 4440 | else |
| 4441 | ac_cv_path_EGREP=$EGREP |
| 4442 | fi |
| 4443 | |
| 4444 | fi |
| 4445 | fi |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 4446 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4447 | $as_echo "$ac_cv_path_EGREP" >&6; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 4448 | EGREP="$ac_cv_path_EGREP" |
| 4449 | |
| 4450 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 4451 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4452 | $as_echo_n "checking for fgrep... " >&6; } |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 4453 | if ${ac_cv_path_FGREP+:} false; then : |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4454 | $as_echo_n "(cached) " >&6 |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 4455 | else |
| 4456 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
| 4457 | then ac_cv_path_FGREP="$GREP -F" |
| 4458 | else |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4459 | if test -z "$FGREP"; then |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 4460 | ac_path_FGREP_found=false |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4461 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4462 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 4463 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4464 | do |
| 4465 | IFS=$as_save_IFS |
| 4466 | test -z "$as_dir" && as_dir=. |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 4467 | for ac_prog in fgrep; do |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4468 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4469 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 4470 | as_fn_executable_p "$ac_path_FGREP" || continue |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4471 | # Check for GNU ac_path_FGREP and select it if it is found. |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 4472 | # Check for GNU $ac_path_FGREP |
| 4473 | case `"$ac_path_FGREP" --version 2>&1` in |
| 4474 | *GNU*) |
| 4475 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; |
| 4476 | *) |
| 4477 | ac_count=0 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4478 | $as_echo_n 0123456789 >"conftest.in" |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 4479 | while : |
| 4480 | do |
| 4481 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4482 | mv "conftest.tmp" "conftest.in" |
| 4483 | cp "conftest.in" "conftest.nl" |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4484 | $as_echo 'FGREP' >> "conftest.nl" |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 4485 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4486 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 4487 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 4488 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then |
| 4489 | # Best one so far, save it but keep looking for a better one |
| 4490 | ac_cv_path_FGREP="$ac_path_FGREP" |
| 4491 | ac_path_FGREP_max=$ac_count |
| 4492 | fi |
| 4493 | # 10*(2^10) chars as input seems more than enough |
| 4494 | test $ac_count -gt 10 && break |
| 4495 | done |
| 4496 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4497 | esac |
| 4498 | |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4499 | $ac_path_FGREP_found && break 3 |
| 4500 | done |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 4501 | done |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 4502 | done |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 4503 | IFS=$as_save_IFS |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4504 | if test -z "$ac_cv_path_FGREP"; then |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 4505 | as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4506 | fi |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 4507 | else |
| 4508 | ac_cv_path_FGREP=$FGREP |
| 4509 | fi |
| 4510 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 4511 | fi |
| 4512 | fi |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 4513 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4514 | $as_echo "$ac_cv_path_FGREP" >&6; } |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 4515 | FGREP="$ac_cv_path_FGREP" |
| 4516 | |
| 4517 | |
| 4518 | test -z "$GREP" && GREP=grep |
| 4519 | |
| 4520 | |
| 4521 | |
| 4522 | |
| 4523 | |
| 4524 | |
| 4525 | |
| 4526 | |
| 4527 | |
| 4528 | |
| 4529 | |
| 4530 | |
| 4531 | |
| 4532 | |
| 4533 | |
| 4534 | |
| 4535 | |
| 4536 | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 4537 | |
| 4538 | # Check whether --with-gnu-ld was given. |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 4539 | if test "${with_gnu_ld+set}" = set; then : |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 4540 | withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 4541 | else |
| 4542 | with_gnu_ld=no |
| 4543 | fi |
| 4544 | |
| 4545 | ac_prog=ld |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 4546 | if test yes = "$GCC"; then |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 4547 | # Check if gcc -print-prog-name=ld gives a path. |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 4548 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4549 | $as_echo_n "checking for ld used by $CC... " >&6; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 4550 | case $host in |
| 4551 | *-*-mingw*) |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 4552 | # gcc leaves a trailing carriage return, which upsets mingw |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 4553 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 4554 | *) |
| 4555 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 4556 | esac |
| 4557 | case $ac_prog in |
| 4558 | # Accept absolute paths. |
| 4559 | [\\/]* | ?:[\\/]*) |
| 4560 | re_direlt='/[^/][^/]*/\.\./' |
| 4561 | # Canonicalize the pathname of ld |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 4562 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` |
| 4563 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do |
| 4564 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 4565 | done |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 4566 | test -z "$LD" && LD=$ac_prog |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 4567 | ;; |
| 4568 | "") |
| 4569 | # If it fails, then pretend we aren't using GCC. |
| 4570 | ac_prog=ld |
| 4571 | ;; |
| 4572 | *) |
| 4573 | # If it is relative, then search for the first ld in PATH. |
| 4574 | with_gnu_ld=unknown |
| 4575 | ;; |
| 4576 | esac |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 4577 | elif test yes = "$with_gnu_ld"; then |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 4578 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4579 | $as_echo_n "checking for GNU ld... " >&6; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 4580 | else |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 4581 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4582 | $as_echo_n "checking for non-GNU ld... " >&6; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 4583 | fi |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 4584 | if ${lt_cv_path_LD+:} false; then : |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4585 | $as_echo_n "(cached) " >&6 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 4586 | else |
| 4587 | if test -z "$LD"; then |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 4588 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 4589 | for ac_dir in $PATH; do |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 4590 | IFS=$lt_save_ifs |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 4591 | test -z "$ac_dir" && ac_dir=. |
| 4592 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 4593 | lt_cv_path_LD=$ac_dir/$ac_prog |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 4594 | # Check to see if the program is GNU ld. I'd rather use --version, |
| 4595 | # but apparently some variants of GNU ld only accept -v. |
| 4596 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 4597 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 4598 | *GNU* | *'with BFD'*) |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 4599 | test no != "$with_gnu_ld" && break |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 4600 | ;; |
| 4601 | *) |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 4602 | test yes != "$with_gnu_ld" && break |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 4603 | ;; |
| 4604 | esac |
| 4605 | fi |
| 4606 | done |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 4607 | IFS=$lt_save_ifs |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 4608 | else |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 4609 | lt_cv_path_LD=$LD # Let the user override the test with a path. |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 4610 | fi |
| 4611 | fi |
| 4612 | |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 4613 | LD=$lt_cv_path_LD |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 4614 | if test -n "$LD"; then |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 4615 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4616 | $as_echo "$LD" >&6; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 4617 | else |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 4618 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4619 | $as_echo "no" >&6; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 4620 | fi |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 4621 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
| 4622 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4623 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 4624 | if ${lt_cv_prog_gnu_ld+:} false; then : |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4625 | $as_echo_n "(cached) " >&6 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 4626 | else |
| 4627 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
| 4628 | case `$LD -v 2>&1 </dev/null` in |
| 4629 | *GNU* | *'with BFD'*) |
| 4630 | lt_cv_prog_gnu_ld=yes |
| 4631 | ;; |
| 4632 | *) |
| 4633 | lt_cv_prog_gnu_ld=no |
| 4634 | ;; |
| 4635 | esac |
| 4636 | fi |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 4637 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4638 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 4639 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 4640 | |
| 4641 | |
| 4642 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 4643 | |
| 4644 | |
| 4645 | |
| 4646 | |
| 4647 | |
| 4648 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 4649 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4650 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 4651 | if ${lt_cv_path_NM+:} false; then : |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4652 | $as_echo_n "(cached) " >&6 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 4653 | else |
| 4654 | if test -n "$NM"; then |
| 4655 | # Let the user override the test. |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 4656 | lt_cv_path_NM=$NM |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 4657 | else |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 4658 | lt_nm_to_check=${ac_tool_prefix}nm |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 4659 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
| 4660 | lt_nm_to_check="$lt_nm_to_check nm" |
| 4661 | fi |
| 4662 | for lt_tmp_nm in $lt_nm_to_check; do |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 4663 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 4664 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 4665 | IFS=$lt_save_ifs |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 4666 | test -z "$ac_dir" && ac_dir=. |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 4667 | tmp_nm=$ac_dir/$lt_tmp_nm |
| 4668 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 4669 | # Check to see if the nm accepts a BSD-compat flag. |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 4670 | # Adding the 'sed 1q' prevents false positives on HP-UX, which says: |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 4671 | # nm: unknown option "B" ignored |
| 4672 | # Tru64's nm complains that /dev/null is an invalid object file |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 4673 | # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty |
| 4674 | case $build_os in |
| 4675 | mingw*) lt_bad_file=conftest.nm/nofile ;; |
| 4676 | *) lt_bad_file=/dev/null ;; |
| 4677 | esac |
| 4678 | case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in |
| 4679 | *$lt_bad_file* | *'Invalid file or object type'*) |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 4680 | lt_cv_path_NM="$tmp_nm -B" |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 4681 | break 2 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 4682 | ;; |
| 4683 | *) |
| 4684 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
| 4685 | */dev/null*) |
| 4686 | lt_cv_path_NM="$tmp_nm -p" |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 4687 | break 2 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 4688 | ;; |
| 4689 | *) |
| 4690 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 4691 | continue # so that we can try to find one that supports BSD flags |
| 4692 | ;; |
| 4693 | esac |
| 4694 | ;; |
| 4695 | esac |
| 4696 | fi |
| 4697 | done |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 4698 | IFS=$lt_save_ifs |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 4699 | done |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 4700 | : ${lt_cv_path_NM=no} |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 4701 | fi |
| 4702 | fi |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 4703 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4704 | $as_echo "$lt_cv_path_NM" >&6; } |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 4705 | if test no != "$lt_cv_path_NM"; then |
| 4706 | NM=$lt_cv_path_NM |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 4707 | else |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 4708 | # Didn't find any BSD compatible name lister, look for dumpbin. |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 4709 | if test -n "$DUMPBIN"; then : |
| 4710 | # Let the user override the test. |
| 4711 | else |
| 4712 | if test -n "$ac_tool_prefix"; then |
| 4713 | for ac_prog in dumpbin "link -dump" |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 4714 | do |
| 4715 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 4716 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 4717 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4718 | $as_echo_n "checking for $ac_word... " >&6; } |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 4719 | if ${ac_cv_prog_DUMPBIN+:} false; then : |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4720 | $as_echo_n "(cached) " >&6 |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 4721 | else |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 4722 | if test -n "$DUMPBIN"; then |
| 4723 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 4724 | else |
| 4725 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4726 | for as_dir in $PATH |
| 4727 | do |
| 4728 | IFS=$as_save_IFS |
| 4729 | test -z "$as_dir" && as_dir=. |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 4730 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4731 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 4732 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 4733 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 4734 | break 2 |
| 4735 | fi |
| 4736 | done |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 4737 | done |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 4738 | IFS=$as_save_IFS |
| 4739 | |
| 4740 | fi |
| 4741 | fi |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 4742 | DUMPBIN=$ac_cv_prog_DUMPBIN |
| 4743 | if test -n "$DUMPBIN"; then |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 4744 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4745 | $as_echo "$DUMPBIN" >&6; } |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 4746 | else |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 4747 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4748 | $as_echo "no" >&6; } |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 4749 | fi |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 4750 | |
| 4751 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 4752 | test -n "$DUMPBIN" && break |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 4753 | done |
| 4754 | fi |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 4755 | if test -z "$DUMPBIN"; then |
| 4756 | ac_ct_DUMPBIN=$DUMPBIN |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 4757 | for ac_prog in dumpbin "link -dump" |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 4758 | do |
| 4759 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4760 | set dummy $ac_prog; ac_word=$2 |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 4761 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4762 | $as_echo_n "checking for $ac_word... " >&6; } |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 4763 | if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4764 | $as_echo_n "(cached) " >&6 |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 4765 | else |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 4766 | if test -n "$ac_ct_DUMPBIN"; then |
| 4767 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 4768 | else |
| 4769 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4770 | for as_dir in $PATH |
| 4771 | do |
| 4772 | IFS=$as_save_IFS |
| 4773 | test -z "$as_dir" && as_dir=. |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 4774 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4775 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 4776 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 4777 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 4778 | break 2 |
| 4779 | fi |
| 4780 | done |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 4781 | done |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 4782 | IFS=$as_save_IFS |
| 4783 | |
| 4784 | fi |
| 4785 | fi |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 4786 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN |
| 4787 | if test -n "$ac_ct_DUMPBIN"; then |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 4788 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4789 | $as_echo "$ac_ct_DUMPBIN" >&6; } |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 4790 | else |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 4791 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4792 | $as_echo "no" >&6; } |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 4793 | fi |
Jon Dugan | 9286415 | 2010-09-20 21:50:12 +0000 | [diff] [blame] | 4794 | |
| 4795 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 4796 | test -n "$ac_ct_DUMPBIN" && break |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 4797 | done |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 4798 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 4799 | if test "x$ac_ct_DUMPBIN" = x; then |
| 4800 | DUMPBIN=":" |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 4801 | else |
| 4802 | case $cross_compiling:$ac_tool_warned in |
| 4803 | yes:) |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 4804 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4805 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 4806 | ac_tool_warned=yes ;; |
| 4807 | esac |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 4808 | DUMPBIN=$ac_ct_DUMPBIN |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 4809 | fi |
| 4810 | fi |
| 4811 | |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 4812 | case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 4813 | *COFF*) |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 4814 | DUMPBIN="$DUMPBIN -symbols -headers" |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 4815 | ;; |
| 4816 | *) |
| 4817 | DUMPBIN=: |
| 4818 | ;; |
| 4819 | esac |
| 4820 | fi |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 4821 | |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 4822 | if test : != "$DUMPBIN"; then |
| 4823 | NM=$DUMPBIN |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 4824 | fi |
| 4825 | fi |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 4826 | test -z "$NM" && NM=nm |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 4827 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 4828 | |
| 4829 | |
| 4830 | |
| 4831 | |
| 4832 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 4833 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4834 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 4835 | if ${lt_cv_nm_interface+:} false; then : |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4836 | $as_echo_n "(cached) " >&6 |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 4837 | else |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 4838 | lt_cv_nm_interface="BSD nm" |
| 4839 | echo "int some_variable = 0;" > conftest.$ac_ext |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 4840 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 4841 | (eval "$ac_compile" 2>conftest.err) |
| 4842 | cat conftest.err >&5 |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 4843 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 4844 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
| 4845 | cat conftest.err >&5 |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 4846 | (eval echo "\"\$as_me:$LINENO: output\"" >&5) |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 4847 | cat conftest.out >&5 |
| 4848 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then |
| 4849 | lt_cv_nm_interface="MS dumpbin" |
| 4850 | fi |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4851 | rm -f conftest* |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 4852 | fi |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 4853 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4854 | $as_echo "$lt_cv_nm_interface" >&6; } |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 4855 | |
| 4856 | # find the maximum length of command line arguments |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 4857 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4858 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 4859 | if ${lt_cv_sys_max_cmd_len+:} false; then : |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4860 | $as_echo_n "(cached) " >&6 |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 4861 | else |
| 4862 | i=0 |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 4863 | teststring=ABCD |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 4864 | |
| 4865 | case $build_os in |
| 4866 | msdosdjgpp*) |
| 4867 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
| 4868 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
| 4869 | # during glob expansion). Even if it were fixed, the result of this |
| 4870 | # check would be larger than it should be. |
| 4871 | lt_cv_sys_max_cmd_len=12288; # 12K is about right |
| 4872 | ;; |
| 4873 | |
| 4874 | gnu*) |
| 4875 | # Under GNU Hurd, this test is not required because there is |
| 4876 | # no limit to the length of command line arguments. |
| 4877 | # Libtool will interpret -1 as no limit whatsoever |
| 4878 | lt_cv_sys_max_cmd_len=-1; |
| 4879 | ;; |
| 4880 | |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4881 | cygwin* | mingw* | cegcc*) |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 4882 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
| 4883 | # about 5 minutes as the teststring grows exponentially. |
| 4884 | # Worse, since 9x/ME are not pre-emptively multitasking, |
| 4885 | # you end up with a "frozen" computer, even though with patience |
| 4886 | # the test eventually succeeds (with a max line length of 256k). |
| 4887 | # Instead, let's just punt: use the minimum linelength reported by |
| 4888 | # all of the supported platforms: 8192 (on NT/2K/XP). |
| 4889 | lt_cv_sys_max_cmd_len=8192; |
| 4890 | ;; |
| 4891 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 4892 | mint*) |
| 4893 | # On MiNT this can take a long time and run out of memory. |
| 4894 | lt_cv_sys_max_cmd_len=8192; |
| 4895 | ;; |
| 4896 | |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 4897 | amigaos*) |
| 4898 | # On AmigaOS with pdksh, this test takes hours, literally. |
| 4899 | # So we just punt and use a minimum line length of 8192. |
| 4900 | lt_cv_sys_max_cmd_len=8192; |
| 4901 | ;; |
| 4902 | |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 4903 | bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 4904 | # This has been around since 386BSD, at least. Likely further. |
| 4905 | if test -x /sbin/sysctl; then |
| 4906 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
| 4907 | elif test -x /usr/sbin/sysctl; then |
| 4908 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
| 4909 | else |
| 4910 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
| 4911 | fi |
| 4912 | # And add a safety zone |
| 4913 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
| 4914 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
| 4915 | ;; |
| 4916 | |
| 4917 | interix*) |
| 4918 | # We know the value 262144 and hardcode it with a safety zone (like BSD) |
| 4919 | lt_cv_sys_max_cmd_len=196608 |
| 4920 | ;; |
| 4921 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 4922 | os2*) |
| 4923 | # The test takes a long time on OS/2. |
| 4924 | lt_cv_sys_max_cmd_len=8192 |
| 4925 | ;; |
| 4926 | |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 4927 | osf*) |
| 4928 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
| 4929 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
| 4930 | # nice to cause kernel panics so lets avoid the loop below. |
| 4931 | # First set a reasonable default. |
| 4932 | lt_cv_sys_max_cmd_len=16384 |
| 4933 | # |
| 4934 | if test -x /sbin/sysconfig; then |
| 4935 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
| 4936 | *1*) lt_cv_sys_max_cmd_len=-1 ;; |
| 4937 | esac |
| 4938 | fi |
| 4939 | ;; |
| 4940 | sco3.2v5*) |
| 4941 | lt_cv_sys_max_cmd_len=102400 |
| 4942 | ;; |
| 4943 | sysv5* | sco5v6* | sysv4.2uw2*) |
| 4944 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
| 4945 | if test -n "$kargmax"; then |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 4946 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 4947 | else |
| 4948 | lt_cv_sys_max_cmd_len=32768 |
| 4949 | fi |
| 4950 | ;; |
| 4951 | *) |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 4952 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 4953 | if test -n "$lt_cv_sys_max_cmd_len" && \ |
| 4954 | test undefined != "$lt_cv_sys_max_cmd_len"; then |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 4955 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
| 4956 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
| 4957 | else |
| 4958 | # Make teststring a little bigger before we do anything with it. |
| 4959 | # a 1K string should be a reasonable start. |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 4960 | for i in 1 2 3 4 5 6 7 8; do |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 4961 | teststring=$teststring$teststring |
| 4962 | done |
| 4963 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
| 4964 | # If test is not a shell built-in, we'll probably end up computing a |
| 4965 | # maximum length that is only half of the actual maximum length, but |
| 4966 | # we can't tell. |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 4967 | while { test X`env echo "$teststring$teststring" 2>/dev/null` \ |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 4968 | = "X$teststring$teststring"; } >/dev/null 2>&1 && |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 4969 | test 17 != "$i" # 1/2 MB should be enough |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 4970 | do |
| 4971 | i=`expr $i + 1` |
| 4972 | teststring=$teststring$teststring |
| 4973 | done |
| 4974 | # Only check the string length outside the loop. |
| 4975 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` |
| 4976 | teststring= |
| 4977 | # Add a significant safety factor because C++ compilers can tack on |
| 4978 | # massive amounts of additional arguments before passing them to the |
| 4979 | # linker. It appears as though 1/2 is a usable value. |
| 4980 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
| 4981 | fi |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 4982 | ;; |
| 4983 | esac |
| 4984 | |
| 4985 | fi |
| 4986 | |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 4987 | if test -n "$lt_cv_sys_max_cmd_len"; then |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 4988 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4989 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 4990 | else |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 4991 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 4992 | $as_echo "none" >&6; } |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 4993 | fi |
| 4994 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 4995 | |
| 4996 | |
| 4997 | |
| 4998 | |
| 4999 | |
| 5000 | |
| 5001 | : ${CP="cp -f"} |
| 5002 | : ${MV="mv -f"} |
| 5003 | : ${RM="rm -f"} |
| 5004 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5005 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 5006 | lt_unset=unset |
| 5007 | else |
| 5008 | lt_unset=false |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 5009 | fi |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 5010 | |
| 5011 | |
| 5012 | |
| 5013 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5014 | |
| 5015 | # test EBCDIC or ASCII |
| 5016 | case `echo X|tr X '\101'` in |
| 5017 | A) # ASCII based system |
| 5018 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr |
| 5019 | lt_SP2NL='tr \040 \012' |
| 5020 | lt_NL2SP='tr \015\012 \040\040' |
| 5021 | ;; |
| 5022 | *) # EBCDIC based system |
| 5023 | lt_SP2NL='tr \100 \n' |
| 5024 | lt_NL2SP='tr \r\n \100\100' |
| 5025 | ;; |
| 5026 | esac |
| 5027 | |
| 5028 | |
| 5029 | |
| 5030 | |
| 5031 | |
| 5032 | |
| 5033 | |
| 5034 | |
| 5035 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 5036 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 |
| 5037 | $as_echo_n "checking how to convert $build file names to $host format... " >&6; } |
| 5038 | if ${lt_cv_to_host_file_cmd+:} false; then : |
| 5039 | $as_echo_n "(cached) " >&6 |
| 5040 | else |
| 5041 | case $host in |
| 5042 | *-*-mingw* ) |
| 5043 | case $build in |
| 5044 | *-*-mingw* ) # actually msys |
| 5045 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 |
| 5046 | ;; |
| 5047 | *-*-cygwin* ) |
| 5048 | lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 |
| 5049 | ;; |
| 5050 | * ) # otherwise, assume *nix |
| 5051 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 |
| 5052 | ;; |
| 5053 | esac |
| 5054 | ;; |
| 5055 | *-*-cygwin* ) |
| 5056 | case $build in |
| 5057 | *-*-mingw* ) # actually msys |
| 5058 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin |
| 5059 | ;; |
| 5060 | *-*-cygwin* ) |
| 5061 | lt_cv_to_host_file_cmd=func_convert_file_noop |
| 5062 | ;; |
| 5063 | * ) # otherwise, assume *nix |
| 5064 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin |
| 5065 | ;; |
| 5066 | esac |
| 5067 | ;; |
| 5068 | * ) # unhandled hosts (and "normal" native builds) |
| 5069 | lt_cv_to_host_file_cmd=func_convert_file_noop |
| 5070 | ;; |
| 5071 | esac |
| 5072 | |
| 5073 | fi |
| 5074 | |
| 5075 | to_host_file_cmd=$lt_cv_to_host_file_cmd |
| 5076 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 |
| 5077 | $as_echo "$lt_cv_to_host_file_cmd" >&6; } |
| 5078 | |
| 5079 | |
| 5080 | |
| 5081 | |
| 5082 | |
| 5083 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 |
| 5084 | $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } |
| 5085 | if ${lt_cv_to_tool_file_cmd+:} false; then : |
| 5086 | $as_echo_n "(cached) " >&6 |
| 5087 | else |
| 5088 | #assume ordinary cross tools, or native build. |
| 5089 | lt_cv_to_tool_file_cmd=func_convert_file_noop |
| 5090 | case $host in |
| 5091 | *-*-mingw* ) |
| 5092 | case $build in |
| 5093 | *-*-mingw* ) # actually msys |
| 5094 | lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 |
| 5095 | ;; |
| 5096 | esac |
| 5097 | ;; |
| 5098 | esac |
| 5099 | |
| 5100 | fi |
| 5101 | |
| 5102 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd |
| 5103 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 |
| 5104 | $as_echo "$lt_cv_to_tool_file_cmd" >&6; } |
| 5105 | |
| 5106 | |
| 5107 | |
| 5108 | |
| 5109 | |
| 5110 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 5111 | $as_echo_n "checking for $LD option to reload object files... " >&6; } |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 5112 | if ${lt_cv_ld_reload_flag+:} false; then : |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 5113 | $as_echo_n "(cached) " >&6 |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5114 | else |
| 5115 | lt_cv_ld_reload_flag='-r' |
| 5116 | fi |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 5117 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 5118 | $as_echo "$lt_cv_ld_reload_flag" >&6; } |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5119 | reload_flag=$lt_cv_ld_reload_flag |
| 5120 | case $reload_flag in |
| 5121 | "" | " "*) ;; |
| 5122 | *) reload_flag=" $reload_flag" ;; |
| 5123 | esac |
| 5124 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 5125 | case $host_os in |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 5126 | cygwin* | mingw* | pw32* | cegcc*) |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 5127 | if test yes != "$GCC"; then |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 5128 | reload_cmds=false |
| 5129 | fi |
| 5130 | ;; |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5131 | darwin*) |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 5132 | if test yes = "$GCC"; then |
| 5133 | reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5134 | else |
| 5135 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 5136 | fi |
| 5137 | ;; |
| 5138 | esac |
| 5139 | |
| 5140 | |
| 5141 | |
| 5142 | |
| 5143 | |
| 5144 | |
| 5145 | |
| 5146 | |
| 5147 | |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 5148 | if test -n "$ac_tool_prefix"; then |
| 5149 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. |
| 5150 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 5151 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 5152 | $as_echo_n "checking for $ac_word... " >&6; } |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 5153 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 5154 | $as_echo_n "(cached) " >&6 |
| 5155 | else |
| 5156 | if test -n "$OBJDUMP"; then |
| 5157 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. |
| 5158 | else |
| 5159 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5160 | for as_dir in $PATH |
| 5161 | do |
| 5162 | IFS=$as_save_IFS |
| 5163 | test -z "$as_dir" && as_dir=. |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 5164 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5165 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 5166 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 5167 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 5168 | break 2 |
| 5169 | fi |
| 5170 | done |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 5171 | done |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 5172 | IFS=$as_save_IFS |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5173 | |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 5174 | fi |
| 5175 | fi |
| 5176 | OBJDUMP=$ac_cv_prog_OBJDUMP |
| 5177 | if test -n "$OBJDUMP"; then |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 5178 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 5179 | $as_echo "$OBJDUMP" >&6; } |
| 5180 | else |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 5181 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 5182 | $as_echo "no" >&6; } |
| 5183 | fi |
| 5184 | |
| 5185 | |
| 5186 | fi |
| 5187 | if test -z "$ac_cv_prog_OBJDUMP"; then |
| 5188 | ac_ct_OBJDUMP=$OBJDUMP |
| 5189 | # Extract the first word of "objdump", so it can be a program name with args. |
| 5190 | set dummy objdump; ac_word=$2 |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 5191 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 5192 | $as_echo_n "checking for $ac_word... " >&6; } |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 5193 | if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 5194 | $as_echo_n "(cached) " >&6 |
| 5195 | else |
| 5196 | if test -n "$ac_ct_OBJDUMP"; then |
| 5197 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. |
| 5198 | else |
| 5199 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5200 | for as_dir in $PATH |
| 5201 | do |
| 5202 | IFS=$as_save_IFS |
| 5203 | test -z "$as_dir" && as_dir=. |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 5204 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5205 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 5206 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 5207 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 5208 | break 2 |
| 5209 | fi |
| 5210 | done |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 5211 | done |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 5212 | IFS=$as_save_IFS |
| 5213 | |
| 5214 | fi |
| 5215 | fi |
| 5216 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP |
| 5217 | if test -n "$ac_ct_OBJDUMP"; then |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 5218 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 5219 | $as_echo "$ac_ct_OBJDUMP" >&6; } |
| 5220 | else |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 5221 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 5222 | $as_echo "no" >&6; } |
| 5223 | fi |
| 5224 | |
| 5225 | if test "x$ac_ct_OBJDUMP" = x; then |
| 5226 | OBJDUMP="false" |
| 5227 | else |
| 5228 | case $cross_compiling:$ac_tool_warned in |
| 5229 | yes:) |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 5230 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 5231 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5232 | ac_tool_warned=yes ;; |
| 5233 | esac |
| 5234 | OBJDUMP=$ac_ct_OBJDUMP |
| 5235 | fi |
| 5236 | else |
| 5237 | OBJDUMP="$ac_cv_prog_OBJDUMP" |
| 5238 | fi |
| 5239 | |
| 5240 | test -z "$OBJDUMP" && OBJDUMP=objdump |
| 5241 | |
| 5242 | |
| 5243 | |
| 5244 | |
| 5245 | |
| 5246 | |
| 5247 | |
| 5248 | |
| 5249 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 5250 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 5251 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 5252 | if ${lt_cv_deplibs_check_method+:} false; then : |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 5253 | $as_echo_n "(cached) " >&6 |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5254 | else |
| 5255 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
| 5256 | lt_cv_file_magic_test_file= |
| 5257 | lt_cv_deplibs_check_method='unknown' |
| 5258 | # Need to set the preceding variable on all platforms that support |
| 5259 | # interlibrary dependencies. |
| 5260 | # 'none' -- dependencies not supported. |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 5261 | # 'unknown' -- same as none, but documents that we really don't know. |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5262 | # 'pass_all' -- all dependencies passed with no checks. |
| 5263 | # 'test_compile' -- check by making test program. |
| 5264 | # 'file_magic [[regex]]' -- check by looking for files in library path |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 5265 | # that responds to the $file_magic_cmd with a given extended regex. |
| 5266 | # If you have 'file' or equivalent on your system and you're not sure |
| 5267 | # whether 'pass_all' will *always* work, you probably want this one. |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5268 | |
| 5269 | case $host_os in |
| 5270 | aix[4-9]*) |
| 5271 | lt_cv_deplibs_check_method=pass_all |
| 5272 | ;; |
| 5273 | |
| 5274 | beos*) |
| 5275 | lt_cv_deplibs_check_method=pass_all |
| 5276 | ;; |
| 5277 | |
| 5278 | bsdi[45]*) |
| 5279 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
| 5280 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
| 5281 | lt_cv_file_magic_test_file=/shlib/libc.so |
| 5282 | ;; |
| 5283 | |
| 5284 | cygwin*) |
| 5285 | # func_win32_libid is a shell function defined in ltmain.sh |
| 5286 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 5287 | lt_cv_file_magic_cmd='func_win32_libid' |
| 5288 | ;; |
| 5289 | |
| 5290 | mingw* | pw32*) |
| 5291 | # Base MSYS/MinGW do not provide the 'file' command needed by |
| 5292 | # func_win32_libid shell function, so use a weaker test based on 'objdump', |
| 5293 | # unless we find 'file', for example because we are cross-compiling. |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 5294 | if ( file / ) >/dev/null 2>&1; then |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5295 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 5296 | lt_cv_file_magic_cmd='func_win32_libid' |
| 5297 | else |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 5298 | # Keep this pattern in sync with the one in func_win32_libid. |
| 5299 | lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5300 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 5301 | fi |
| 5302 | ;; |
| 5303 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 5304 | cegcc*) |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 5305 | # use the weaker test based on 'objdump'. See mingw*. |
| 5306 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' |
| 5307 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 5308 | ;; |
| 5309 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5310 | darwin* | rhapsody*) |
| 5311 | lt_cv_deplibs_check_method=pass_all |
| 5312 | ;; |
| 5313 | |
| 5314 | freebsd* | dragonfly*) |
| 5315 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
| 5316 | case $host_cpu in |
| 5317 | i*86 ) |
| 5318 | # Not sure whether the presence of OpenBSD here was a mistake. |
| 5319 | # Let's accept both of them until this is cleared up. |
| 5320 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' |
| 5321 | lt_cv_file_magic_cmd=/usr/bin/file |
| 5322 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 5323 | ;; |
| 5324 | esac |
| 5325 | else |
| 5326 | lt_cv_deplibs_check_method=pass_all |
| 5327 | fi |
| 5328 | ;; |
| 5329 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 5330 | haiku*) |
| 5331 | lt_cv_deplibs_check_method=pass_all |
| 5332 | ;; |
| 5333 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5334 | hpux10.20* | hpux11*) |
| 5335 | lt_cv_file_magic_cmd=/usr/bin/file |
| 5336 | case $host_cpu in |
| 5337 | ia64*) |
| 5338 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
| 5339 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
| 5340 | ;; |
| 5341 | hppa*64*) |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 5342 | 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]' |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5343 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
| 5344 | ;; |
| 5345 | *) |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 5346 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5347 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
| 5348 | ;; |
| 5349 | esac |
| 5350 | ;; |
| 5351 | |
| 5352 | interix[3-9]*) |
| 5353 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
| 5354 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' |
| 5355 | ;; |
| 5356 | |
| 5357 | irix5* | irix6* | nonstopux*) |
| 5358 | case $LD in |
| 5359 | *-32|*"-32 ") libmagic=32-bit;; |
| 5360 | *-n32|*"-n32 ") libmagic=N32;; |
| 5361 | *-64|*"-64 ") libmagic=64-bit;; |
| 5362 | *) libmagic=never-match;; |
| 5363 | esac |
| 5364 | lt_cv_deplibs_check_method=pass_all |
| 5365 | ;; |
| 5366 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 5367 | # This must be glibc/ELF. |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 5368 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5369 | lt_cv_deplibs_check_method=pass_all |
| 5370 | ;; |
| 5371 | |
| 5372 | netbsd*) |
| 5373 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
| 5374 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 5375 | else |
| 5376 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
| 5377 | fi |
| 5378 | ;; |
| 5379 | |
| 5380 | newos6*) |
| 5381 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
| 5382 | lt_cv_file_magic_cmd=/usr/bin/file |
| 5383 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
| 5384 | ;; |
| 5385 | |
| 5386 | *nto* | *qnx*) |
| 5387 | lt_cv_deplibs_check_method=pass_all |
| 5388 | ;; |
| 5389 | |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 5390 | openbsd* | bitrig*) |
| 5391 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5392 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
| 5393 | else |
| 5394 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 5395 | fi |
| 5396 | ;; |
| 5397 | |
| 5398 | osf3* | osf4* | osf5*) |
| 5399 | lt_cv_deplibs_check_method=pass_all |
| 5400 | ;; |
| 5401 | |
| 5402 | rdos*) |
| 5403 | lt_cv_deplibs_check_method=pass_all |
| 5404 | ;; |
| 5405 | |
| 5406 | solaris*) |
| 5407 | lt_cv_deplibs_check_method=pass_all |
| 5408 | ;; |
| 5409 | |
| 5410 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 5411 | lt_cv_deplibs_check_method=pass_all |
| 5412 | ;; |
| 5413 | |
| 5414 | sysv4 | sysv4.3*) |
| 5415 | case $host_vendor in |
| 5416 | motorola) |
| 5417 | 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]' |
| 5418 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
| 5419 | ;; |
| 5420 | ncr) |
| 5421 | lt_cv_deplibs_check_method=pass_all |
| 5422 | ;; |
| 5423 | sequent) |
| 5424 | lt_cv_file_magic_cmd='/bin/file' |
| 5425 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
| 5426 | ;; |
| 5427 | sni) |
| 5428 | lt_cv_file_magic_cmd='/bin/file' |
| 5429 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
| 5430 | lt_cv_file_magic_test_file=/lib/libc.so |
| 5431 | ;; |
| 5432 | siemens) |
| 5433 | lt_cv_deplibs_check_method=pass_all |
| 5434 | ;; |
| 5435 | pc) |
| 5436 | lt_cv_deplibs_check_method=pass_all |
| 5437 | ;; |
| 5438 | esac |
| 5439 | ;; |
| 5440 | |
| 5441 | tpf*) |
| 5442 | lt_cv_deplibs_check_method=pass_all |
| 5443 | ;; |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 5444 | os2*) |
| 5445 | lt_cv_deplibs_check_method=pass_all |
| 5446 | ;; |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5447 | esac |
| 5448 | |
| 5449 | fi |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 5450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 5451 | $as_echo "$lt_cv_deplibs_check_method" >&6; } |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 5452 | |
| 5453 | file_magic_glob= |
| 5454 | want_nocaseglob=no |
| 5455 | if test "$build" = "$host"; then |
| 5456 | case $host_os in |
| 5457 | mingw* | pw32*) |
| 5458 | if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then |
| 5459 | want_nocaseglob=yes |
| 5460 | else |
| 5461 | file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` |
| 5462 | fi |
| 5463 | ;; |
| 5464 | esac |
| 5465 | fi |
| 5466 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5467 | file_magic_cmd=$lt_cv_file_magic_cmd |
| 5468 | deplibs_check_method=$lt_cv_deplibs_check_method |
| 5469 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
| 5470 | |
| 5471 | |
| 5472 | |
| 5473 | |
| 5474 | |
| 5475 | |
| 5476 | |
| 5477 | |
| 5478 | |
| 5479 | |
| 5480 | |
| 5481 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 5482 | |
| 5483 | |
| 5484 | |
| 5485 | |
| 5486 | |
| 5487 | |
| 5488 | |
| 5489 | |
| 5490 | |
| 5491 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5492 | if test -n "$ac_tool_prefix"; then |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 5493 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. |
| 5494 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 |
| 5495 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 5496 | $as_echo_n "checking for $ac_word... " >&6; } |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 5497 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
| 5498 | $as_echo_n "(cached) " >&6 |
| 5499 | else |
| 5500 | if test -n "$DLLTOOL"; then |
| 5501 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. |
| 5502 | else |
| 5503 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5504 | for as_dir in $PATH |
| 5505 | do |
| 5506 | IFS=$as_save_IFS |
| 5507 | test -z "$as_dir" && as_dir=. |
| 5508 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5509 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5510 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" |
| 5511 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5512 | break 2 |
| 5513 | fi |
| 5514 | done |
| 5515 | done |
| 5516 | IFS=$as_save_IFS |
| 5517 | |
| 5518 | fi |
| 5519 | fi |
| 5520 | DLLTOOL=$ac_cv_prog_DLLTOOL |
| 5521 | if test -n "$DLLTOOL"; then |
| 5522 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
| 5523 | $as_echo "$DLLTOOL" >&6; } |
| 5524 | else |
| 5525 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5526 | $as_echo "no" >&6; } |
| 5527 | fi |
| 5528 | |
| 5529 | |
| 5530 | fi |
| 5531 | if test -z "$ac_cv_prog_DLLTOOL"; then |
| 5532 | ac_ct_DLLTOOL=$DLLTOOL |
| 5533 | # Extract the first word of "dlltool", so it can be a program name with args. |
| 5534 | set dummy dlltool; ac_word=$2 |
| 5535 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5536 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5537 | if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : |
| 5538 | $as_echo_n "(cached) " >&6 |
| 5539 | else |
| 5540 | if test -n "$ac_ct_DLLTOOL"; then |
| 5541 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. |
| 5542 | else |
| 5543 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5544 | for as_dir in $PATH |
| 5545 | do |
| 5546 | IFS=$as_save_IFS |
| 5547 | test -z "$as_dir" && as_dir=. |
| 5548 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5549 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5550 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" |
| 5551 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5552 | break 2 |
| 5553 | fi |
| 5554 | done |
| 5555 | done |
| 5556 | IFS=$as_save_IFS |
| 5557 | |
| 5558 | fi |
| 5559 | fi |
| 5560 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL |
| 5561 | if test -n "$ac_ct_DLLTOOL"; then |
| 5562 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 |
| 5563 | $as_echo "$ac_ct_DLLTOOL" >&6; } |
| 5564 | else |
| 5565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5566 | $as_echo "no" >&6; } |
| 5567 | fi |
| 5568 | |
| 5569 | if test "x$ac_ct_DLLTOOL" = x; then |
| 5570 | DLLTOOL="false" |
| 5571 | else |
| 5572 | case $cross_compiling:$ac_tool_warned in |
| 5573 | yes:) |
| 5574 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5575 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5576 | ac_tool_warned=yes ;; |
| 5577 | esac |
| 5578 | DLLTOOL=$ac_ct_DLLTOOL |
| 5579 | fi |
| 5580 | else |
| 5581 | DLLTOOL="$ac_cv_prog_DLLTOOL" |
| 5582 | fi |
| 5583 | |
| 5584 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
| 5585 | |
| 5586 | |
| 5587 | |
| 5588 | |
| 5589 | |
| 5590 | |
| 5591 | |
| 5592 | |
| 5593 | |
| 5594 | |
| 5595 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 |
| 5596 | $as_echo_n "checking how to associate runtime and link libraries... " >&6; } |
| 5597 | if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : |
| 5598 | $as_echo_n "(cached) " >&6 |
| 5599 | else |
| 5600 | lt_cv_sharedlib_from_linklib_cmd='unknown' |
| 5601 | |
| 5602 | case $host_os in |
| 5603 | cygwin* | mingw* | pw32* | cegcc*) |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 5604 | # two different shell functions defined in ltmain.sh; |
| 5605 | # decide which one to use based on capabilities of $DLLTOOL |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 5606 | case `$DLLTOOL --help 2>&1` in |
| 5607 | *--identify-strict*) |
| 5608 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib |
| 5609 | ;; |
| 5610 | *) |
| 5611 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback |
| 5612 | ;; |
| 5613 | esac |
| 5614 | ;; |
| 5615 | *) |
| 5616 | # fallback: assume linklib IS sharedlib |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 5617 | lt_cv_sharedlib_from_linklib_cmd=$ECHO |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 5618 | ;; |
| 5619 | esac |
| 5620 | |
| 5621 | fi |
| 5622 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 |
| 5623 | $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } |
| 5624 | sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd |
| 5625 | test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO |
| 5626 | |
| 5627 | |
| 5628 | |
| 5629 | |
| 5630 | |
| 5631 | |
| 5632 | |
| 5633 | |
| 5634 | if test -n "$ac_tool_prefix"; then |
| 5635 | for ac_prog in ar |
| 5636 | do |
| 5637 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 5638 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 5639 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5640 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5641 | if ${ac_cv_prog_AR+:} false; then : |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 5642 | $as_echo_n "(cached) " >&6 |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5643 | else |
| 5644 | if test -n "$AR"; then |
| 5645 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 5646 | else |
| 5647 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5648 | for as_dir in $PATH |
| 5649 | do |
| 5650 | IFS=$as_save_IFS |
| 5651 | test -z "$as_dir" && as_dir=. |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 5652 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5653 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5654 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog" |
| 5655 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5656 | break 2 |
| 5657 | fi |
| 5658 | done |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 5659 | done |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5660 | IFS=$as_save_IFS |
| 5661 | |
| 5662 | fi |
| 5663 | fi |
| 5664 | AR=$ac_cv_prog_AR |
| 5665 | if test -n "$AR"; then |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 5666 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 5667 | $as_echo "$AR" >&6; } |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5668 | else |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 5669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 5670 | $as_echo "no" >&6; } |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5671 | fi |
| 5672 | |
| 5673 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 5674 | test -n "$AR" && break |
| 5675 | done |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5676 | fi |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 5677 | if test -z "$AR"; then |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5678 | ac_ct_AR=$AR |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 5679 | for ac_prog in ar |
| 5680 | do |
| 5681 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5682 | set dummy $ac_prog; ac_word=$2 |
| 5683 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 5684 | $as_echo_n "checking for $ac_word... " >&6; } |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 5685 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 5686 | $as_echo_n "(cached) " >&6 |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5687 | else |
| 5688 | if test -n "$ac_ct_AR"; then |
| 5689 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 5690 | else |
| 5691 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5692 | for as_dir in $PATH |
| 5693 | do |
| 5694 | IFS=$as_save_IFS |
| 5695 | test -z "$as_dir" && as_dir=. |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 5696 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5697 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5698 | ac_cv_prog_ac_ct_AR="$ac_prog" |
| 5699 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5700 | break 2 |
| 5701 | fi |
| 5702 | done |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 5703 | done |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5704 | IFS=$as_save_IFS |
| 5705 | |
| 5706 | fi |
| 5707 | fi |
| 5708 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 5709 | if test -n "$ac_ct_AR"; then |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 5710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 5711 | $as_echo "$ac_ct_AR" >&6; } |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5712 | else |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 5713 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 5714 | $as_echo "no" >&6; } |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5715 | fi |
| 5716 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 5717 | |
| 5718 | test -n "$ac_ct_AR" && break |
| 5719 | done |
| 5720 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5721 | if test "x$ac_ct_AR" = x; then |
| 5722 | AR="false" |
| 5723 | else |
| 5724 | case $cross_compiling:$ac_tool_warned in |
| 5725 | yes:) |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 5726 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 5727 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5728 | ac_tool_warned=yes ;; |
| 5729 | esac |
| 5730 | AR=$ac_ct_AR |
| 5731 | fi |
Bruce A. Mah | dc1dd2d | 2014-03-04 14:34:40 -0800 | [diff] [blame] | 5732 | fi |
Bruce A. Mah | dc1dd2d | 2014-03-04 14:34:40 -0800 | [diff] [blame] | 5733 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 5734 | : ${AR=ar} |
| 5735 | : ${AR_FLAGS=cru} |
Bruce A. Mah | dc1dd2d | 2014-03-04 14:34:40 -0800 | [diff] [blame] | 5736 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 5737 | |
| 5738 | |
| 5739 | |
Bruce A. Mah | dc1dd2d | 2014-03-04 14:34:40 -0800 | [diff] [blame] | 5740 | |
| 5741 | |
| 5742 | |
| 5743 | |
| 5744 | |
| 5745 | |
| 5746 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 5747 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 |
| 5748 | $as_echo_n "checking for archiver @FILE support... " >&6; } |
| 5749 | if ${lt_cv_ar_at_file+:} false; then : |
| 5750 | $as_echo_n "(cached) " >&6 |
| 5751 | else |
| 5752 | lt_cv_ar_at_file=no |
| 5753 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5754 | /* end confdefs.h. */ |
| 5755 | |
| 5756 | int |
| 5757 | main () |
| 5758 | { |
| 5759 | |
| 5760 | ; |
| 5761 | return 0; |
| 5762 | } |
| 5763 | _ACEOF |
| 5764 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5765 | echo conftest.$ac_objext > conftest.lst |
| 5766 | lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' |
| 5767 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 |
| 5768 | (eval $lt_ar_try) 2>&5 |
| 5769 | ac_status=$? |
| 5770 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 5771 | test $ac_status = 0; } |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 5772 | if test 0 -eq "$ac_status"; then |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 5773 | # Ensure the archiver fails upon bogus file names. |
| 5774 | rm -f conftest.$ac_objext libconftest.a |
| 5775 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 |
| 5776 | (eval $lt_ar_try) 2>&5 |
| 5777 | ac_status=$? |
| 5778 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 5779 | test $ac_status = 0; } |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 5780 | if test 0 -ne "$ac_status"; then |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 5781 | lt_cv_ar_at_file=@ |
| 5782 | fi |
| 5783 | fi |
| 5784 | rm -f conftest.* libconftest.a |
| 5785 | |
| 5786 | fi |
| 5787 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5788 | |
| 5789 | fi |
| 5790 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 |
| 5791 | $as_echo "$lt_cv_ar_at_file" >&6; } |
| 5792 | |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 5793 | if test no = "$lt_cv_ar_at_file"; then |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 5794 | archiver_list_spec= |
| 5795 | else |
| 5796 | archiver_list_spec=$lt_cv_ar_at_file |
| 5797 | fi |
| 5798 | |
| 5799 | |
| 5800 | |
| 5801 | |
| 5802 | |
| 5803 | |
| 5804 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5805 | if test -n "$ac_tool_prefix"; then |
| 5806 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 5807 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 5808 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 5809 | $as_echo_n "checking for $ac_word... " >&6; } |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 5810 | if ${ac_cv_prog_STRIP+:} false; then : |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 5811 | $as_echo_n "(cached) " >&6 |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5812 | else |
| 5813 | if test -n "$STRIP"; then |
| 5814 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 5815 | else |
| 5816 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5817 | for as_dir in $PATH |
| 5818 | do |
| 5819 | IFS=$as_save_IFS |
| 5820 | test -z "$as_dir" && as_dir=. |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 5821 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5822 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5823 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 5824 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5825 | break 2 |
| 5826 | fi |
| 5827 | done |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 5828 | done |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5829 | IFS=$as_save_IFS |
| 5830 | |
| 5831 | fi |
| 5832 | fi |
| 5833 | STRIP=$ac_cv_prog_STRIP |
| 5834 | if test -n "$STRIP"; then |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 5835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 5836 | $as_echo "$STRIP" >&6; } |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5837 | else |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 5838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 5839 | $as_echo "no" >&6; } |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5840 | fi |
| 5841 | |
| 5842 | |
| 5843 | fi |
| 5844 | if test -z "$ac_cv_prog_STRIP"; then |
| 5845 | ac_ct_STRIP=$STRIP |
| 5846 | # Extract the first word of "strip", so it can be a program name with args. |
| 5847 | set dummy strip; ac_word=$2 |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 5848 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 5849 | $as_echo_n "checking for $ac_word... " >&6; } |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 5850 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 5851 | $as_echo_n "(cached) " >&6 |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5852 | else |
| 5853 | if test -n "$ac_ct_STRIP"; then |
| 5854 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 5855 | else |
| 5856 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5857 | for as_dir in $PATH |
| 5858 | do |
| 5859 | IFS=$as_save_IFS |
| 5860 | test -z "$as_dir" && as_dir=. |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 5861 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5862 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5863 | ac_cv_prog_ac_ct_STRIP="strip" |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 5864 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5865 | break 2 |
| 5866 | fi |
| 5867 | done |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 5868 | done |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5869 | IFS=$as_save_IFS |
| 5870 | |
| 5871 | fi |
| 5872 | fi |
| 5873 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 5874 | if test -n "$ac_ct_STRIP"; then |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 5875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 5876 | $as_echo "$ac_ct_STRIP" >&6; } |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5877 | else |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 5878 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 5879 | $as_echo "no" >&6; } |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5880 | fi |
| 5881 | |
| 5882 | if test "x$ac_ct_STRIP" = x; then |
| 5883 | STRIP=":" |
| 5884 | else |
| 5885 | case $cross_compiling:$ac_tool_warned in |
| 5886 | yes:) |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 5887 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 5888 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5889 | ac_tool_warned=yes ;; |
| 5890 | esac |
| 5891 | STRIP=$ac_ct_STRIP |
| 5892 | fi |
| 5893 | else |
| 5894 | STRIP="$ac_cv_prog_STRIP" |
| 5895 | fi |
| 5896 | |
| 5897 | test -z "$STRIP" && STRIP=: |
| 5898 | |
| 5899 | |
| 5900 | |
| 5901 | |
| 5902 | |
| 5903 | |
| 5904 | if test -n "$ac_tool_prefix"; then |
| 5905 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 5906 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 5907 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 5908 | $as_echo_n "checking for $ac_word... " >&6; } |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 5909 | if ${ac_cv_prog_RANLIB+:} false; then : |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 5910 | $as_echo_n "(cached) " >&6 |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5911 | else |
| 5912 | if test -n "$RANLIB"; then |
| 5913 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 5914 | else |
| 5915 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5916 | for as_dir in $PATH |
| 5917 | do |
| 5918 | IFS=$as_save_IFS |
| 5919 | test -z "$as_dir" && as_dir=. |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 5920 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5921 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5922 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 5923 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5924 | break 2 |
| 5925 | fi |
| 5926 | done |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 5927 | done |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5928 | IFS=$as_save_IFS |
| 5929 | |
| 5930 | fi |
| 5931 | fi |
| 5932 | RANLIB=$ac_cv_prog_RANLIB |
| 5933 | if test -n "$RANLIB"; then |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 5934 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 5935 | $as_echo "$RANLIB" >&6; } |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5936 | else |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 5937 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 5938 | $as_echo "no" >&6; } |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5939 | fi |
| 5940 | |
| 5941 | |
| 5942 | fi |
| 5943 | if test -z "$ac_cv_prog_RANLIB"; then |
| 5944 | ac_ct_RANLIB=$RANLIB |
| 5945 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 5946 | set dummy ranlib; ac_word=$2 |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 5947 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 5948 | $as_echo_n "checking for $ac_word... " >&6; } |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 5949 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 5950 | $as_echo_n "(cached) " >&6 |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5951 | else |
| 5952 | if test -n "$ac_ct_RANLIB"; then |
| 5953 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 5954 | else |
| 5955 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5956 | for as_dir in $PATH |
| 5957 | do |
| 5958 | IFS=$as_save_IFS |
| 5959 | test -z "$as_dir" && as_dir=. |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 5960 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5961 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5962 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 5963 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5964 | break 2 |
| 5965 | fi |
| 5966 | done |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 5967 | done |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5968 | IFS=$as_save_IFS |
| 5969 | |
| 5970 | fi |
| 5971 | fi |
| 5972 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 5973 | if test -n "$ac_ct_RANLIB"; then |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 5974 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 5975 | $as_echo "$ac_ct_RANLIB" >&6; } |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5976 | else |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 5977 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 5978 | $as_echo "no" >&6; } |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5979 | fi |
| 5980 | |
| 5981 | if test "x$ac_ct_RANLIB" = x; then |
| 5982 | RANLIB=":" |
| 5983 | else |
| 5984 | case $cross_compiling:$ac_tool_warned in |
| 5985 | yes:) |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 5986 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 5987 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 5988 | ac_tool_warned=yes ;; |
| 5989 | esac |
| 5990 | RANLIB=$ac_ct_RANLIB |
| 5991 | fi |
| 5992 | else |
| 5993 | RANLIB="$ac_cv_prog_RANLIB" |
| 5994 | fi |
| 5995 | |
| 5996 | test -z "$RANLIB" && RANLIB=: |
| 5997 | |
| 5998 | |
| 5999 | |
| 6000 | |
| 6001 | |
| 6002 | |
| 6003 | # Determine commands to create old-style static archives. |
| 6004 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' |
| 6005 | old_postinstall_cmds='chmod 644 $oldlib' |
| 6006 | old_postuninstall_cmds= |
| 6007 | |
| 6008 | if test -n "$RANLIB"; then |
| 6009 | case $host_os in |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 6010 | bitrig* | openbsd*) |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 6011 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6012 | ;; |
| 6013 | *) |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 6014 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6015 | ;; |
| 6016 | esac |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 6017 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6018 | fi |
| 6019 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 6020 | case $host_os in |
| 6021 | darwin*) |
| 6022 | lock_old_archive_extraction=yes ;; |
| 6023 | *) |
| 6024 | lock_old_archive_extraction=no ;; |
| 6025 | esac |
| 6026 | |
| 6027 | |
| 6028 | |
| 6029 | |
| 6030 | |
| 6031 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6032 | |
| 6033 | |
| 6034 | |
| 6035 | |
| 6036 | |
| 6037 | |
| 6038 | |
| 6039 | |
| 6040 | |
| 6041 | |
| 6042 | |
| 6043 | |
| 6044 | |
| 6045 | |
| 6046 | |
| 6047 | |
| 6048 | |
| 6049 | |
| 6050 | |
| 6051 | |
| 6052 | |
| 6053 | |
| 6054 | |
| 6055 | |
| 6056 | |
| 6057 | |
| 6058 | |
| 6059 | |
| 6060 | |
| 6061 | |
| 6062 | |
| 6063 | |
| 6064 | |
| 6065 | # If no C compiler was specified, use CC. |
| 6066 | LTCC=${LTCC-"$CC"} |
| 6067 | |
| 6068 | # If no C compiler flags were specified, use CFLAGS. |
| 6069 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 6070 | |
| 6071 | # Allow CC to be a program name with arguments. |
| 6072 | compiler=$CC |
| 6073 | |
| 6074 | |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 6075 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 6076 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 6077 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 6078 | if ${lt_cv_sys_global_symbol_pipe+:} false; then : |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 6079 | $as_echo_n "(cached) " >&6 |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 6080 | else |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 6081 | |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 6082 | # These are sane defaults that work on at least a few old systems. |
| 6083 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 6084 | |
| 6085 | # Character class describing NM global symbol codes. |
| 6086 | symcode='[BCDEGRST]' |
| 6087 | |
| 6088 | # Regexp to match symbols that can be accessed directly from C. |
| 6089 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 6090 | |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 6091 | # Define system-specific variables. |
| 6092 | case $host_os in |
| 6093 | aix*) |
| 6094 | symcode='[BCDT]' |
| 6095 | ;; |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 6096 | cygwin* | mingw* | pw32* | cegcc*) |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 6097 | symcode='[ABCDGISTW]' |
| 6098 | ;; |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6099 | hpux*) |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 6100 | if test ia64 = "$host_cpu"; then |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 6101 | symcode='[ABCDEGRST]' |
| 6102 | fi |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 6103 | ;; |
| 6104 | irix* | nonstopux*) |
| 6105 | symcode='[BCDEGRST]' |
| 6106 | ;; |
| 6107 | osf*) |
| 6108 | symcode='[BCDEGQRST]' |
| 6109 | ;; |
| 6110 | solaris*) |
| 6111 | symcode='[BDRT]' |
| 6112 | ;; |
| 6113 | sco3.2v5*) |
| 6114 | symcode='[DT]' |
| 6115 | ;; |
| 6116 | sysv4.2uw2*) |
| 6117 | symcode='[DT]' |
| 6118 | ;; |
| 6119 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
| 6120 | symcode='[ABDT]' |
| 6121 | ;; |
| 6122 | sysv4) |
| 6123 | symcode='[DFNSTU]' |
| 6124 | ;; |
| 6125 | esac |
| 6126 | |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 6127 | # If we're using GNU nm, then use its standard symbol codes. |
| 6128 | case `$NM -V 2>&1` in |
| 6129 | *GNU* | *'with BFD'*) |
| 6130 | symcode='[ABCDGIRSTW]' ;; |
| 6131 | esac |
| 6132 | |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 6133 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
| 6134 | # Gets list of data symbols to import. |
| 6135 | lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" |
| 6136 | # Adjust the below global symbol transforms to fixup imported variables. |
| 6137 | lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" |
| 6138 | lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" |
| 6139 | lt_c_name_lib_hook="\ |
| 6140 | -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ |
| 6141 | -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" |
| 6142 | else |
| 6143 | # Disable hooks by default. |
| 6144 | lt_cv_sys_global_symbol_to_import= |
| 6145 | lt_cdecl_hook= |
| 6146 | lt_c_name_hook= |
| 6147 | lt_c_name_lib_hook= |
| 6148 | fi |
| 6149 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6150 | # Transform an extracted symbol line into a proper C declaration. |
| 6151 | # Some systems (esp. on ia64) link data and code symbols differently, |
| 6152 | # so use this general approach. |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 6153 | lt_cv_sys_global_symbol_to_cdecl="sed -n"\ |
| 6154 | $lt_cdecl_hook\ |
| 6155 | " -e 's/^T .* \(.*\)$/extern int \1();/p'"\ |
| 6156 | " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6157 | |
| 6158 | # Transform an extracted symbol line into symbol name and symbol address |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 6159 | lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ |
| 6160 | $lt_c_name_hook\ |
| 6161 | " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ |
| 6162 | " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" |
| 6163 | |
| 6164 | # Transform an extracted symbol line into symbol name with lib prefix and |
| 6165 | # symbol address. |
| 6166 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ |
| 6167 | $lt_c_name_lib_hook\ |
| 6168 | " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ |
| 6169 | " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ |
| 6170 | " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6171 | |
| 6172 | # Handle CRLF in mingw tool chain |
| 6173 | opt_cr= |
| 6174 | case $build_os in |
| 6175 | mingw*) |
| 6176 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 6177 | ;; |
| 6178 | esac |
| 6179 | |
| 6180 | # Try without a prefix underscore, then with it. |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 6181 | for ac_symprfx in "" "_"; do |
| 6182 | |
| 6183 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
| 6184 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
| 6185 | |
| 6186 | # Write the raw and C identifiers. |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6187 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 6188 | # Fake it for dumpbin and say T for any non-static function, |
| 6189 | # D for any global variable and I for any imported variable. |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6190 | # Also find C++ and __fastcall symbols from MSVC++, |
| 6191 | # which start with @ or ?. |
| 6192 | lt_cv_sys_global_symbol_pipe="$AWK '"\ |
| 6193 | " {last_section=section; section=\$ 3};"\ |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 6194 | " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6195 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 6196 | " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ |
| 6197 | " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ |
| 6198 | " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6199 | " \$ 0!~/External *\|/{next};"\ |
| 6200 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ |
| 6201 | " {if(hide[section]) next};"\ |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 6202 | " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ |
| 6203 | " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ |
| 6204 | " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ |
| 6205 | " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6206 | " ' prfx=^$ac_symprfx" |
| 6207 | else |
| 6208 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
| 6209 | fi |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 6210 | lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 6211 | |
| 6212 | # Check to see that the pipe works correctly. |
| 6213 | pipe_works=no |
| 6214 | |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 6215 | rm -f conftest* |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6216 | cat > conftest.$ac_ext <<_LT_EOF |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 6217 | #ifdef __cplusplus |
| 6218 | extern "C" { |
| 6219 | #endif |
| 6220 | char nm_test_var; |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6221 | void nm_test_func(void); |
| 6222 | void nm_test_func(void){} |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 6223 | #ifdef __cplusplus |
| 6224 | } |
| 6225 | #endif |
| 6226 | int main(){nm_test_var='a';nm_test_func();return(0);} |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6227 | _LT_EOF |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 6228 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 6229 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 6230 | (eval $ac_compile) 2>&5 |
| 6231 | ac_status=$? |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 6232 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6233 | test $ac_status = 0; }; then |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 6234 | # Now try to grab the symbols. |
| 6235 | nlist=conftest.nm |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 6236 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 |
| 6237 | (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 6238 | ac_status=$? |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 6239 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6240 | test $ac_status = 0; } && test -s "$nlist"; then |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 6241 | # Try sorting and uniquifying the output. |
| 6242 | if sort "$nlist" | uniq > "$nlist"T; then |
| 6243 | mv -f "$nlist"T "$nlist" |
| 6244 | else |
| 6245 | rm -f "$nlist"T |
| 6246 | fi |
| 6247 | |
| 6248 | # Make sure that we snagged all the symbols we need. |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6249 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then |
| 6250 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then |
| 6251 | cat <<_LT_EOF > conftest.$ac_ext |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 6252 | /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 6253 | #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE |
| 6254 | /* DATA imports from DLLs on WIN32 can't be const, because runtime |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 6255 | relocations are performed -- see ld's documentation on pseudo-relocs. */ |
| 6256 | # define LT_DLSYM_CONST |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 6257 | #elif defined __osf__ |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 6258 | /* This system does not cope well with relocations in const data. */ |
| 6259 | # define LT_DLSYM_CONST |
| 6260 | #else |
| 6261 | # define LT_DLSYM_CONST const |
| 6262 | #endif |
| 6263 | |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 6264 | #ifdef __cplusplus |
| 6265 | extern "C" { |
| 6266 | #endif |
| 6267 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6268 | _LT_EOF |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 6269 | # Now generate the symbol file. |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6270 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 6271 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6272 | cat <<_LT_EOF >> conftest.$ac_ext |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 6273 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6274 | /* The mapping between symbol names and symbols. */ |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 6275 | LT_DLSYM_CONST struct { |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 6276 | const char *name; |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6277 | void *address; |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 6278 | } |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6279 | lt__PROGRAM__LTX_preloaded_symbols[] = |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 6280 | { |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6281 | { "@PROGRAM@", (void *) 0 }, |
| 6282 | _LT_EOF |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 6283 | $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6284 | cat <<\_LT_EOF >> conftest.$ac_ext |
| 6285 | {0, (void *) 0} |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 6286 | }; |
| 6287 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6288 | /* This works around a problem in FreeBSD linker */ |
| 6289 | #ifdef FREEBSD_WORKAROUND |
| 6290 | static const void *lt_preloaded_setup() { |
| 6291 | return lt__PROGRAM__LTX_preloaded_symbols; |
| 6292 | } |
| 6293 | #endif |
| 6294 | |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 6295 | #ifdef __cplusplus |
| 6296 | } |
| 6297 | #endif |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6298 | _LT_EOF |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 6299 | # Now try linking the two files. |
| 6300 | mv conftest.$ac_objext conftstm.$ac_objext |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 6301 | lt_globsym_save_LIBS=$LIBS |
| 6302 | lt_globsym_save_CFLAGS=$CFLAGS |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 6303 | LIBS=conftstm.$ac_objext |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 6304 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 6305 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 6306 | (eval $ac_link) 2>&5 |
| 6307 | ac_status=$? |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 6308 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 6309 | test $ac_status = 0; } && test -s conftest$ac_exeext; then |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 6310 | pipe_works=yes |
| 6311 | fi |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 6312 | LIBS=$lt_globsym_save_LIBS |
| 6313 | CFLAGS=$lt_globsym_save_CFLAGS |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 6314 | else |
| 6315 | echo "cannot find nm_test_func in $nlist" >&5 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 6316 | fi |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 6317 | else |
| 6318 | echo "cannot find nm_test_var in $nlist" >&5 |
| 6319 | fi |
| 6320 | else |
| 6321 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 6322 | fi |
| 6323 | else |
| 6324 | echo "$progname: failed program was:" >&5 |
| 6325 | cat conftest.$ac_ext >&5 |
| 6326 | fi |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6327 | rm -rf conftest* conftst* |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 6328 | |
| 6329 | # Do not use the global_symbol_pipe unless it works. |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 6330 | if test yes = "$pipe_works"; then |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 6331 | break |
| 6332 | else |
| 6333 | lt_cv_sys_global_symbol_pipe= |
| 6334 | fi |
| 6335 | done |
| 6336 | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 6337 | fi |
| 6338 | |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 6339 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 6340 | lt_cv_sys_global_symbol_to_cdecl= |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 6341 | fi |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 6342 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 6343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 6344 | $as_echo "failed" >&6; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 6345 | else |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 6346 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 6347 | $as_echo "ok" >&6; } |
| 6348 | fi |
| 6349 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 6350 | # Response file support. |
| 6351 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
| 6352 | nm_file_list_spec='@' |
| 6353 | elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then |
| 6354 | nm_file_list_spec='@' |
| 6355 | fi |
| 6356 | |
Bruce A. Mah | dc1dd2d | 2014-03-04 14:34:40 -0800 | [diff] [blame] | 6357 | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 6358 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6359 | |
| 6360 | |
| 6361 | |
| 6362 | |
| 6363 | |
| 6364 | |
| 6365 | |
| 6366 | |
| 6367 | |
| 6368 | |
| 6369 | |
| 6370 | |
| 6371 | |
| 6372 | |
| 6373 | |
| 6374 | |
| 6375 | |
| 6376 | |
| 6377 | |
| 6378 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 6379 | |
| 6380 | |
| 6381 | |
| 6382 | |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 6383 | |
| 6384 | |
| 6385 | |
| 6386 | |
| 6387 | |
| 6388 | |
| 6389 | |
| 6390 | |
| 6391 | |
| 6392 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 6393 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 |
| 6394 | $as_echo_n "checking for sysroot... " >&6; } |
| 6395 | |
| 6396 | # Check whether --with-sysroot was given. |
| 6397 | if test "${with_sysroot+set}" = set; then : |
| 6398 | withval=$with_sysroot; |
| 6399 | else |
| 6400 | with_sysroot=no |
| 6401 | fi |
| 6402 | |
| 6403 | |
| 6404 | lt_sysroot= |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 6405 | case $with_sysroot in #( |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 6406 | yes) |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 6407 | if test yes = "$GCC"; then |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 6408 | lt_sysroot=`$CC --print-sysroot 2>/dev/null` |
| 6409 | fi |
| 6410 | ;; #( |
| 6411 | /*) |
| 6412 | lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` |
| 6413 | ;; #( |
| 6414 | no|'') |
| 6415 | ;; #( |
| 6416 | *) |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 6417 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 |
| 6418 | $as_echo "$with_sysroot" >&6; } |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 6419 | as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 |
| 6420 | ;; |
| 6421 | esac |
| 6422 | |
| 6423 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 |
| 6424 | $as_echo "${lt_sysroot:-no}" >&6; } |
| 6425 | |
| 6426 | |
| 6427 | |
| 6428 | |
| 6429 | |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 6430 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 |
| 6431 | $as_echo_n "checking for a working dd... " >&6; } |
| 6432 | if ${ac_cv_path_lt_DD+:} false; then : |
| 6433 | $as_echo_n "(cached) " >&6 |
| 6434 | else |
| 6435 | printf 0123456789abcdef0123456789abcdef >conftest.i |
| 6436 | cat conftest.i conftest.i >conftest2.i |
| 6437 | : ${lt_DD:=$DD} |
| 6438 | if test -z "$lt_DD"; then |
| 6439 | ac_path_lt_DD_found=false |
| 6440 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 6441 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6442 | for as_dir in $PATH |
| 6443 | do |
| 6444 | IFS=$as_save_IFS |
| 6445 | test -z "$as_dir" && as_dir=. |
| 6446 | for ac_prog in dd; do |
| 6447 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6448 | ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" |
| 6449 | as_fn_executable_p "$ac_path_lt_DD" || continue |
| 6450 | if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then |
| 6451 | cmp -s conftest.i conftest.out \ |
| 6452 | && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: |
| 6453 | fi |
| 6454 | $ac_path_lt_DD_found && break 3 |
| 6455 | done |
| 6456 | done |
| 6457 | done |
| 6458 | IFS=$as_save_IFS |
| 6459 | if test -z "$ac_cv_path_lt_DD"; then |
| 6460 | : |
| 6461 | fi |
| 6462 | else |
| 6463 | ac_cv_path_lt_DD=$lt_DD |
| 6464 | fi |
| 6465 | |
| 6466 | rm -f conftest.i conftest2.i conftest.out |
| 6467 | fi |
| 6468 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 |
| 6469 | $as_echo "$ac_cv_path_lt_DD" >&6; } |
| 6470 | |
| 6471 | |
| 6472 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 |
| 6473 | $as_echo_n "checking how to truncate binary pipes... " >&6; } |
| 6474 | if ${lt_cv_truncate_bin+:} false; then : |
| 6475 | $as_echo_n "(cached) " >&6 |
| 6476 | else |
| 6477 | printf 0123456789abcdef0123456789abcdef >conftest.i |
| 6478 | cat conftest.i conftest.i >conftest2.i |
| 6479 | lt_cv_truncate_bin= |
| 6480 | if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then |
| 6481 | cmp -s conftest.i conftest.out \ |
| 6482 | && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" |
| 6483 | fi |
| 6484 | rm -f conftest.i conftest2.i conftest.out |
| 6485 | test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" |
| 6486 | fi |
| 6487 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 |
| 6488 | $as_echo "$lt_cv_truncate_bin" >&6; } |
| 6489 | |
| 6490 | |
| 6491 | |
| 6492 | |
| 6493 | |
| 6494 | |
Bruce A. Mah | 5461579 | 2015-05-11 10:42:44 -0700 | [diff] [blame] | 6495 | |
| 6496 | # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. |
| 6497 | func_cc_basename () |
| 6498 | { |
| 6499 | for cc_temp in $*""; do |
| 6500 | case $cc_temp in |
| 6501 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 6502 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 6503 | \-*) ;; |
| 6504 | *) break;; |
| 6505 | esac |
| 6506 | done |
| 6507 | func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
| 6508 | } |
| 6509 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6510 | # Check whether --enable-libtool-lock was given. |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 6511 | if test "${enable_libtool_lock+set}" = set; then : |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6512 | enableval=$enable_libtool_lock; |
| 6513 | fi |
| 6514 | |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 6515 | test no = "$enable_libtool_lock" || enable_libtool_lock=yes |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6516 | |
| 6517 | # Some flags need to be propagated to the compiler or linker for good |
| 6518 | # libtool support. |
| 6519 | case $host in |
| 6520 | ia64-*-hpux*) |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 6521 | # Find out what ABI is being produced by ac_compile, and set mode |
| 6522 | # options accordingly. |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6523 | echo 'int i;' > conftest.$ac_ext |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 6524 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6525 | (eval $ac_compile) 2>&5 |
| 6526 | ac_status=$? |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 6527 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6528 | test $ac_status = 0; }; then |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6529 | case `/usr/bin/file conftest.$ac_objext` in |
| 6530 | *ELF-32*) |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 6531 | HPUX_IA64_MODE=32 |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6532 | ;; |
| 6533 | *ELF-64*) |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 6534 | HPUX_IA64_MODE=64 |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6535 | ;; |
| 6536 | esac |
| 6537 | fi |
| 6538 | rm -rf conftest* |
| 6539 | ;; |
| 6540 | *-*-irix6*) |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 6541 | # Find out what ABI is being produced by ac_compile, and set linker |
| 6542 | # options accordingly. |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 6543 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext |
| 6544 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6545 | (eval $ac_compile) 2>&5 |
| 6546 | ac_status=$? |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 6547 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6548 | test $ac_status = 0; }; then |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 6549 | if test yes = "$lt_cv_prog_gnu_ld"; then |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6550 | case `/usr/bin/file conftest.$ac_objext` in |
| 6551 | *32-bit*) |
| 6552 | LD="${LD-ld} -melf32bsmip" |
| 6553 | ;; |
| 6554 | *N32*) |
| 6555 | LD="${LD-ld} -melf32bmipn32" |
| 6556 | ;; |
| 6557 | *64-bit*) |
| 6558 | LD="${LD-ld} -melf64bmip" |
| 6559 | ;; |
| 6560 | esac |
| 6561 | else |
| 6562 | case `/usr/bin/file conftest.$ac_objext` in |
| 6563 | *32-bit*) |
| 6564 | LD="${LD-ld} -32" |
| 6565 | ;; |
| 6566 | *N32*) |
| 6567 | LD="${LD-ld} -n32" |
| 6568 | ;; |
| 6569 | *64-bit*) |
| 6570 | LD="${LD-ld} -64" |
| 6571 | ;; |
| 6572 | esac |
| 6573 | fi |
| 6574 | fi |
| 6575 | rm -rf conftest* |
| 6576 | ;; |
| 6577 | |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 6578 | mips64*-*linux*) |
| 6579 | # Find out what ABI is being produced by ac_compile, and set linker |
| 6580 | # options accordingly. |
| 6581 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext |
| 6582 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 6583 | (eval $ac_compile) 2>&5 |
| 6584 | ac_status=$? |
| 6585 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6586 | test $ac_status = 0; }; then |
| 6587 | emul=elf |
| 6588 | case `/usr/bin/file conftest.$ac_objext` in |
| 6589 | *32-bit*) |
| 6590 | emul="${emul}32" |
| 6591 | ;; |
| 6592 | *64-bit*) |
| 6593 | emul="${emul}64" |
| 6594 | ;; |
| 6595 | esac |
| 6596 | case `/usr/bin/file conftest.$ac_objext` in |
| 6597 | *MSB*) |
| 6598 | emul="${emul}btsmip" |
| 6599 | ;; |
| 6600 | *LSB*) |
| 6601 | emul="${emul}ltsmip" |
| 6602 | ;; |
| 6603 | esac |
| 6604 | case `/usr/bin/file conftest.$ac_objext` in |
| 6605 | *N32*) |
| 6606 | emul="${emul}n32" |
| 6607 | ;; |
| 6608 | esac |
| 6609 | LD="${LD-ld} -m $emul" |
| 6610 | fi |
| 6611 | rm -rf conftest* |
| 6612 | ;; |
| 6613 | |
| 6614 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6615 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 6616 | # Find out what ABI is being produced by ac_compile, and set linker |
| 6617 | # options accordingly. Note that the listed cases only cover the |
| 6618 | # situations where additional linker options are needed (such as when |
| 6619 | # doing 32-bit compilation for a host where ld defaults to 64-bit, or |
| 6620 | # vice versa); the common cases where no linker options are needed do |
| 6621 | # not appear in the list. |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6622 | echo 'int i;' > conftest.$ac_ext |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 6623 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6624 | (eval $ac_compile) 2>&5 |
| 6625 | ac_status=$? |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 6626 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6627 | test $ac_status = 0; }; then |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6628 | case `/usr/bin/file conftest.o` in |
| 6629 | *32-bit*) |
| 6630 | case $host in |
| 6631 | x86_64-*kfreebsd*-gnu) |
| 6632 | LD="${LD-ld} -m elf_i386_fbsd" |
| 6633 | ;; |
| 6634 | x86_64-*linux*) |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 6635 | case `/usr/bin/file conftest.o` in |
| 6636 | *x86-64*) |
| 6637 | LD="${LD-ld} -m elf32_x86_64" |
| 6638 | ;; |
| 6639 | *) |
| 6640 | LD="${LD-ld} -m elf_i386" |
| 6641 | ;; |
| 6642 | esac |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6643 | ;; |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 6644 | powerpc64le-*linux*) |
| 6645 | LD="${LD-ld} -m elf32lppclinux" |
| 6646 | ;; |
| 6647 | powerpc64-*linux*) |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6648 | LD="${LD-ld} -m elf32ppclinux" |
| 6649 | ;; |
| 6650 | s390x-*linux*) |
| 6651 | LD="${LD-ld} -m elf_s390" |
| 6652 | ;; |
| 6653 | sparc64-*linux*) |
| 6654 | LD="${LD-ld} -m elf32_sparc" |
| 6655 | ;; |
| 6656 | esac |
| 6657 | ;; |
| 6658 | *64-bit*) |
| 6659 | case $host in |
| 6660 | x86_64-*kfreebsd*-gnu) |
| 6661 | LD="${LD-ld} -m elf_x86_64_fbsd" |
| 6662 | ;; |
| 6663 | x86_64-*linux*) |
| 6664 | LD="${LD-ld} -m elf_x86_64" |
| 6665 | ;; |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 6666 | powerpcle-*linux*) |
| 6667 | LD="${LD-ld} -m elf64lppc" |
| 6668 | ;; |
| 6669 | powerpc-*linux*) |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6670 | LD="${LD-ld} -m elf64ppc" |
| 6671 | ;; |
| 6672 | s390*-*linux*|s390*-*tpf*) |
| 6673 | LD="${LD-ld} -m elf64_s390" |
| 6674 | ;; |
| 6675 | sparc*-*linux*) |
| 6676 | LD="${LD-ld} -m elf64_sparc" |
| 6677 | ;; |
| 6678 | esac |
| 6679 | ;; |
| 6680 | esac |
| 6681 | fi |
| 6682 | rm -rf conftest* |
| 6683 | ;; |
| 6684 | |
| 6685 | *-*-sco3.2v5*) |
| 6686 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 6687 | SAVE_CFLAGS=$CFLAGS |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6688 | CFLAGS="$CFLAGS -belf" |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 6689 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 6690 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 6691 | if ${lt_cv_cc_needs_belf+:} false; then : |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 6692 | $as_echo_n "(cached) " >&6 |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6693 | else |
| 6694 | ac_ext=c |
| 6695 | ac_cpp='$CPP $CPPFLAGS' |
| 6696 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6697 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6698 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6699 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 6700 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6701 | /* end confdefs.h. */ |
| 6702 | |
| 6703 | int |
| 6704 | main () |
| 6705 | { |
| 6706 | |
| 6707 | ; |
| 6708 | return 0; |
| 6709 | } |
| 6710 | _ACEOF |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 6711 | if ac_fn_c_try_link "$LINENO"; then : |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6712 | lt_cv_cc_needs_belf=yes |
| 6713 | else |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 6714 | lt_cv_cc_needs_belf=no |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6715 | fi |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 6716 | rm -f core conftest.err conftest.$ac_objext \ |
| 6717 | conftest$ac_exeext conftest.$ac_ext |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6718 | ac_ext=c |
| 6719 | ac_cpp='$CPP $CPPFLAGS' |
| 6720 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6721 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6722 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6723 | |
| 6724 | fi |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 6725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 6726 | $as_echo "$lt_cv_cc_needs_belf" >&6; } |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 6727 | if test yes != "$lt_cv_cc_needs_belf"; then |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6728 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 6729 | CFLAGS=$SAVE_CFLAGS |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6730 | fi |
| 6731 | ;; |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 6732 | *-*solaris*) |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 6733 | # Find out what ABI is being produced by ac_compile, and set linker |
| 6734 | # options accordingly. |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6735 | echo 'int i;' > conftest.$ac_ext |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 6736 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6737 | (eval $ac_compile) 2>&5 |
| 6738 | ac_status=$? |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 6739 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6740 | test $ac_status = 0; }; then |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6741 | case `/usr/bin/file conftest.o` in |
| 6742 | *64-bit*) |
| 6743 | case $lt_cv_prog_gnu_ld in |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 6744 | yes*) |
| 6745 | case $host in |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 6746 | i?86-*-solaris*|x86_64-*-solaris*) |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 6747 | LD="${LD-ld} -m elf_x86_64" |
| 6748 | ;; |
| 6749 | sparc*-*-solaris*) |
| 6750 | LD="${LD-ld} -m elf64_sparc" |
| 6751 | ;; |
| 6752 | esac |
| 6753 | # GNU ld 2.21 introduced _sol2 emulations. Use them if available. |
| 6754 | if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 6755 | LD=${LD-ld}_sol2 |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 6756 | fi |
| 6757 | ;; |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6758 | *) |
| 6759 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then |
| 6760 | LD="${LD-ld} -64" |
| 6761 | fi |
| 6762 | ;; |
| 6763 | esac |
| 6764 | ;; |
| 6765 | esac |
| 6766 | fi |
| 6767 | rm -rf conftest* |
| 6768 | ;; |
| 6769 | esac |
| 6770 | |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 6771 | need_locks=$enable_libtool_lock |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6772 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 6773 | if test -n "$ac_tool_prefix"; then |
| 6774 | # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. |
| 6775 | set dummy ${ac_tool_prefix}mt; ac_word=$2 |
| 6776 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6777 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6778 | if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : |
| 6779 | $as_echo_n "(cached) " >&6 |
| 6780 | else |
| 6781 | if test -n "$MANIFEST_TOOL"; then |
| 6782 | ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. |
| 6783 | else |
| 6784 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6785 | for as_dir in $PATH |
| 6786 | do |
| 6787 | IFS=$as_save_IFS |
| 6788 | test -z "$as_dir" && as_dir=. |
| 6789 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6790 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6791 | ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" |
| 6792 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6793 | break 2 |
| 6794 | fi |
| 6795 | done |
| 6796 | done |
| 6797 | IFS=$as_save_IFS |
| 6798 | |
| 6799 | fi |
| 6800 | fi |
| 6801 | MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL |
| 6802 | if test -n "$MANIFEST_TOOL"; then |
| 6803 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 |
| 6804 | $as_echo "$MANIFEST_TOOL" >&6; } |
| 6805 | else |
| 6806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6807 | $as_echo "no" >&6; } |
| 6808 | fi |
| 6809 | |
| 6810 | |
| 6811 | fi |
| 6812 | if test -z "$ac_cv_prog_MANIFEST_TOOL"; then |
| 6813 | ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL |
| 6814 | # Extract the first word of "mt", so it can be a program name with args. |
| 6815 | set dummy mt; ac_word=$2 |
| 6816 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6817 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6818 | if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : |
| 6819 | $as_echo_n "(cached) " >&6 |
| 6820 | else |
| 6821 | if test -n "$ac_ct_MANIFEST_TOOL"; then |
| 6822 | ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. |
| 6823 | else |
| 6824 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6825 | for as_dir in $PATH |
| 6826 | do |
| 6827 | IFS=$as_save_IFS |
| 6828 | test -z "$as_dir" && as_dir=. |
| 6829 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6830 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6831 | ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" |
| 6832 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6833 | break 2 |
| 6834 | fi |
| 6835 | done |
| 6836 | done |
| 6837 | IFS=$as_save_IFS |
| 6838 | |
| 6839 | fi |
| 6840 | fi |
| 6841 | ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL |
| 6842 | if test -n "$ac_ct_MANIFEST_TOOL"; then |
| 6843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 |
| 6844 | $as_echo "$ac_ct_MANIFEST_TOOL" >&6; } |
| 6845 | else |
| 6846 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6847 | $as_echo "no" >&6; } |
| 6848 | fi |
| 6849 | |
| 6850 | if test "x$ac_ct_MANIFEST_TOOL" = x; then |
| 6851 | MANIFEST_TOOL=":" |
| 6852 | else |
| 6853 | case $cross_compiling:$ac_tool_warned in |
| 6854 | yes:) |
| 6855 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 6856 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 6857 | ac_tool_warned=yes ;; |
| 6858 | esac |
| 6859 | MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL |
| 6860 | fi |
| 6861 | else |
| 6862 | MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" |
| 6863 | fi |
| 6864 | |
| 6865 | test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt |
| 6866 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 |
| 6867 | $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } |
| 6868 | if ${lt_cv_path_mainfest_tool+:} false; then : |
| 6869 | $as_echo_n "(cached) " >&6 |
| 6870 | else |
| 6871 | lt_cv_path_mainfest_tool=no |
| 6872 | echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 |
| 6873 | $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out |
| 6874 | cat conftest.err >&5 |
| 6875 | if $GREP 'Manifest Tool' conftest.out > /dev/null; then |
| 6876 | lt_cv_path_mainfest_tool=yes |
| 6877 | fi |
| 6878 | rm -f conftest* |
| 6879 | fi |
| 6880 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 |
| 6881 | $as_echo "$lt_cv_path_mainfest_tool" >&6; } |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 6882 | if test yes != "$lt_cv_path_mainfest_tool"; then |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 6883 | MANIFEST_TOOL=: |
| 6884 | fi |
| 6885 | |
| 6886 | |
| 6887 | |
| 6888 | |
| 6889 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6890 | |
| 6891 | case $host_os in |
| 6892 | rhapsody* | darwin*) |
| 6893 | if test -n "$ac_tool_prefix"; then |
| 6894 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. |
| 6895 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 6896 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 6897 | $as_echo_n "checking for $ac_word... " >&6; } |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 6898 | if ${ac_cv_prog_DSYMUTIL+:} false; then : |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 6899 | $as_echo_n "(cached) " >&6 |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6900 | else |
| 6901 | if test -n "$DSYMUTIL"; then |
| 6902 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. |
| 6903 | else |
| 6904 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6905 | for as_dir in $PATH |
| 6906 | do |
| 6907 | IFS=$as_save_IFS |
| 6908 | test -z "$as_dir" && as_dir=. |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 6909 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6910 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6911 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 6912 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6913 | break 2 |
| 6914 | fi |
| 6915 | done |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 6916 | done |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6917 | IFS=$as_save_IFS |
| 6918 | |
| 6919 | fi |
| 6920 | fi |
| 6921 | DSYMUTIL=$ac_cv_prog_DSYMUTIL |
| 6922 | if test -n "$DSYMUTIL"; then |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 6923 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 6924 | $as_echo "$DSYMUTIL" >&6; } |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6925 | else |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 6926 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 6927 | $as_echo "no" >&6; } |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6928 | fi |
| 6929 | |
| 6930 | |
| 6931 | fi |
| 6932 | if test -z "$ac_cv_prog_DSYMUTIL"; then |
| 6933 | ac_ct_DSYMUTIL=$DSYMUTIL |
| 6934 | # Extract the first word of "dsymutil", so it can be a program name with args. |
| 6935 | set dummy dsymutil; ac_word=$2 |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 6936 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 6937 | $as_echo_n "checking for $ac_word... " >&6; } |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 6938 | if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 6939 | $as_echo_n "(cached) " >&6 |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6940 | else |
| 6941 | if test -n "$ac_ct_DSYMUTIL"; then |
| 6942 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. |
| 6943 | else |
| 6944 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6945 | for as_dir in $PATH |
| 6946 | do |
| 6947 | IFS=$as_save_IFS |
| 6948 | test -z "$as_dir" && as_dir=. |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 6949 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6950 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6951 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 6952 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6953 | break 2 |
| 6954 | fi |
| 6955 | done |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 6956 | done |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6957 | IFS=$as_save_IFS |
| 6958 | |
| 6959 | fi |
| 6960 | fi |
| 6961 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL |
| 6962 | if test -n "$ac_ct_DSYMUTIL"; then |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 6963 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 6964 | $as_echo "$ac_ct_DSYMUTIL" >&6; } |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6965 | else |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 6966 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 6967 | $as_echo "no" >&6; } |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6968 | fi |
| 6969 | |
| 6970 | if test "x$ac_ct_DSYMUTIL" = x; then |
| 6971 | DSYMUTIL=":" |
| 6972 | else |
| 6973 | case $cross_compiling:$ac_tool_warned in |
| 6974 | yes:) |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 6975 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 6976 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6977 | ac_tool_warned=yes ;; |
| 6978 | esac |
| 6979 | DSYMUTIL=$ac_ct_DSYMUTIL |
| 6980 | fi |
| 6981 | else |
| 6982 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" |
| 6983 | fi |
| 6984 | |
| 6985 | if test -n "$ac_tool_prefix"; then |
| 6986 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. |
| 6987 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 6988 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 6989 | $as_echo_n "checking for $ac_word... " >&6; } |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 6990 | if ${ac_cv_prog_NMEDIT+:} false; then : |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 6991 | $as_echo_n "(cached) " >&6 |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 6992 | else |
| 6993 | if test -n "$NMEDIT"; then |
| 6994 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. |
| 6995 | else |
| 6996 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6997 | for as_dir in $PATH |
| 6998 | do |
| 6999 | IFS=$as_save_IFS |
| 7000 | test -z "$as_dir" && as_dir=. |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 7001 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7002 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7003 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 7004 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7005 | break 2 |
| 7006 | fi |
| 7007 | done |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 7008 | done |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7009 | IFS=$as_save_IFS |
| 7010 | |
| 7011 | fi |
| 7012 | fi |
| 7013 | NMEDIT=$ac_cv_prog_NMEDIT |
| 7014 | if test -n "$NMEDIT"; then |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 7015 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 7016 | $as_echo "$NMEDIT" >&6; } |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7017 | else |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 7018 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 7019 | $as_echo "no" >&6; } |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7020 | fi |
| 7021 | |
| 7022 | |
| 7023 | fi |
| 7024 | if test -z "$ac_cv_prog_NMEDIT"; then |
| 7025 | ac_ct_NMEDIT=$NMEDIT |
| 7026 | # Extract the first word of "nmedit", so it can be a program name with args. |
| 7027 | set dummy nmedit; ac_word=$2 |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 7028 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 7029 | $as_echo_n "checking for $ac_word... " >&6; } |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 7030 | if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 7031 | $as_echo_n "(cached) " >&6 |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7032 | else |
| 7033 | if test -n "$ac_ct_NMEDIT"; then |
| 7034 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. |
| 7035 | else |
| 7036 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7037 | for as_dir in $PATH |
| 7038 | do |
| 7039 | IFS=$as_save_IFS |
| 7040 | test -z "$as_dir" && as_dir=. |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 7041 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7042 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7043 | ac_cv_prog_ac_ct_NMEDIT="nmedit" |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 7044 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7045 | break 2 |
| 7046 | fi |
| 7047 | done |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 7048 | done |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7049 | IFS=$as_save_IFS |
| 7050 | |
| 7051 | fi |
| 7052 | fi |
| 7053 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT |
| 7054 | if test -n "$ac_ct_NMEDIT"; then |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 7055 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 7056 | $as_echo "$ac_ct_NMEDIT" >&6; } |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7057 | else |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 7058 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 7059 | $as_echo "no" >&6; } |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7060 | fi |
| 7061 | |
| 7062 | if test "x$ac_ct_NMEDIT" = x; then |
| 7063 | NMEDIT=":" |
| 7064 | else |
| 7065 | case $cross_compiling:$ac_tool_warned in |
| 7066 | yes:) |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 7067 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 7068 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7069 | ac_tool_warned=yes ;; |
| 7070 | esac |
| 7071 | NMEDIT=$ac_ct_NMEDIT |
| 7072 | fi |
| 7073 | else |
| 7074 | NMEDIT="$ac_cv_prog_NMEDIT" |
| 7075 | fi |
| 7076 | |
| 7077 | if test -n "$ac_tool_prefix"; then |
| 7078 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. |
| 7079 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 7080 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 7081 | $as_echo_n "checking for $ac_word... " >&6; } |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 7082 | if ${ac_cv_prog_LIPO+:} false; then : |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 7083 | $as_echo_n "(cached) " >&6 |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7084 | else |
| 7085 | if test -n "$LIPO"; then |
| 7086 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. |
| 7087 | else |
| 7088 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7089 | for as_dir in $PATH |
| 7090 | do |
| 7091 | IFS=$as_save_IFS |
| 7092 | test -z "$as_dir" && as_dir=. |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 7093 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7094 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7095 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 7096 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7097 | break 2 |
| 7098 | fi |
| 7099 | done |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 7100 | done |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7101 | IFS=$as_save_IFS |
| 7102 | |
| 7103 | fi |
| 7104 | fi |
| 7105 | LIPO=$ac_cv_prog_LIPO |
| 7106 | if test -n "$LIPO"; then |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 7107 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 7108 | $as_echo "$LIPO" >&6; } |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7109 | else |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 7110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 7111 | $as_echo "no" >&6; } |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7112 | fi |
| 7113 | |
| 7114 | |
| 7115 | fi |
| 7116 | if test -z "$ac_cv_prog_LIPO"; then |
| 7117 | ac_ct_LIPO=$LIPO |
| 7118 | # Extract the first word of "lipo", so it can be a program name with args. |
| 7119 | set dummy lipo; ac_word=$2 |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 7120 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 7121 | $as_echo_n "checking for $ac_word... " >&6; } |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 7122 | if ${ac_cv_prog_ac_ct_LIPO+:} false; then : |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 7123 | $as_echo_n "(cached) " >&6 |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7124 | else |
| 7125 | if test -n "$ac_ct_LIPO"; then |
| 7126 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. |
| 7127 | else |
| 7128 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7129 | for as_dir in $PATH |
| 7130 | do |
| 7131 | IFS=$as_save_IFS |
| 7132 | test -z "$as_dir" && as_dir=. |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 7133 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7134 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7135 | ac_cv_prog_ac_ct_LIPO="lipo" |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 7136 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7137 | break 2 |
| 7138 | fi |
| 7139 | done |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 7140 | done |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7141 | IFS=$as_save_IFS |
| 7142 | |
| 7143 | fi |
| 7144 | fi |
| 7145 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO |
| 7146 | if test -n "$ac_ct_LIPO"; then |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 7147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 7148 | $as_echo "$ac_ct_LIPO" >&6; } |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7149 | else |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 7150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 7151 | $as_echo "no" >&6; } |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7152 | fi |
| 7153 | |
| 7154 | if test "x$ac_ct_LIPO" = x; then |
| 7155 | LIPO=":" |
| 7156 | else |
| 7157 | case $cross_compiling:$ac_tool_warned in |
| 7158 | yes:) |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 7159 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 7160 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7161 | ac_tool_warned=yes ;; |
| 7162 | esac |
| 7163 | LIPO=$ac_ct_LIPO |
| 7164 | fi |
| 7165 | else |
| 7166 | LIPO="$ac_cv_prog_LIPO" |
| 7167 | fi |
| 7168 | |
| 7169 | if test -n "$ac_tool_prefix"; then |
| 7170 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. |
| 7171 | set dummy ${ac_tool_prefix}otool; ac_word=$2 |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 7172 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 7173 | $as_echo_n "checking for $ac_word... " >&6; } |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 7174 | if ${ac_cv_prog_OTOOL+:} false; then : |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 7175 | $as_echo_n "(cached) " >&6 |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7176 | else |
| 7177 | if test -n "$OTOOL"; then |
| 7178 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. |
| 7179 | else |
| 7180 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7181 | for as_dir in $PATH |
| 7182 | do |
| 7183 | IFS=$as_save_IFS |
| 7184 | test -z "$as_dir" && as_dir=. |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 7185 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7186 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7187 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 7188 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7189 | break 2 |
| 7190 | fi |
| 7191 | done |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 7192 | done |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7193 | IFS=$as_save_IFS |
| 7194 | |
| 7195 | fi |
| 7196 | fi |
| 7197 | OTOOL=$ac_cv_prog_OTOOL |
| 7198 | if test -n "$OTOOL"; then |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 7199 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 7200 | $as_echo "$OTOOL" >&6; } |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7201 | else |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 7202 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 7203 | $as_echo "no" >&6; } |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7204 | fi |
| 7205 | |
| 7206 | |
| 7207 | fi |
| 7208 | if test -z "$ac_cv_prog_OTOOL"; then |
| 7209 | ac_ct_OTOOL=$OTOOL |
| 7210 | # Extract the first word of "otool", so it can be a program name with args. |
| 7211 | set dummy otool; ac_word=$2 |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 7212 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 7213 | $as_echo_n "checking for $ac_word... " >&6; } |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 7214 | if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 7215 | $as_echo_n "(cached) " >&6 |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7216 | else |
| 7217 | if test -n "$ac_ct_OTOOL"; then |
| 7218 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. |
| 7219 | else |
| 7220 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7221 | for as_dir in $PATH |
| 7222 | do |
| 7223 | IFS=$as_save_IFS |
| 7224 | test -z "$as_dir" && as_dir=. |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 7225 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7226 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7227 | ac_cv_prog_ac_ct_OTOOL="otool" |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 7228 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7229 | break 2 |
| 7230 | fi |
| 7231 | done |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 7232 | done |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7233 | IFS=$as_save_IFS |
| 7234 | |
| 7235 | fi |
| 7236 | fi |
| 7237 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL |
| 7238 | if test -n "$ac_ct_OTOOL"; then |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 7239 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 7240 | $as_echo "$ac_ct_OTOOL" >&6; } |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7241 | else |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 7242 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 7243 | $as_echo "no" >&6; } |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7244 | fi |
| 7245 | |
| 7246 | if test "x$ac_ct_OTOOL" = x; then |
| 7247 | OTOOL=":" |
| 7248 | else |
| 7249 | case $cross_compiling:$ac_tool_warned in |
| 7250 | yes:) |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 7251 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 7252 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7253 | ac_tool_warned=yes ;; |
| 7254 | esac |
| 7255 | OTOOL=$ac_ct_OTOOL |
| 7256 | fi |
| 7257 | else |
| 7258 | OTOOL="$ac_cv_prog_OTOOL" |
| 7259 | fi |
| 7260 | |
| 7261 | if test -n "$ac_tool_prefix"; then |
| 7262 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. |
| 7263 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 7264 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 7265 | $as_echo_n "checking for $ac_word... " >&6; } |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 7266 | if ${ac_cv_prog_OTOOL64+:} false; then : |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 7267 | $as_echo_n "(cached) " >&6 |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7268 | else |
| 7269 | if test -n "$OTOOL64"; then |
| 7270 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. |
| 7271 | else |
| 7272 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7273 | for as_dir in $PATH |
| 7274 | do |
| 7275 | IFS=$as_save_IFS |
| 7276 | test -z "$as_dir" && as_dir=. |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 7277 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7278 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7279 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 7280 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7281 | break 2 |
| 7282 | fi |
| 7283 | done |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 7284 | done |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7285 | IFS=$as_save_IFS |
| 7286 | |
| 7287 | fi |
| 7288 | fi |
| 7289 | OTOOL64=$ac_cv_prog_OTOOL64 |
| 7290 | if test -n "$OTOOL64"; then |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 7291 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 7292 | $as_echo "$OTOOL64" >&6; } |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7293 | else |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 7294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 7295 | $as_echo "no" >&6; } |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7296 | fi |
| 7297 | |
| 7298 | |
| 7299 | fi |
| 7300 | if test -z "$ac_cv_prog_OTOOL64"; then |
| 7301 | ac_ct_OTOOL64=$OTOOL64 |
| 7302 | # Extract the first word of "otool64", so it can be a program name with args. |
| 7303 | set dummy otool64; ac_word=$2 |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 7304 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 7305 | $as_echo_n "checking for $ac_word... " >&6; } |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 7306 | if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 7307 | $as_echo_n "(cached) " >&6 |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7308 | else |
| 7309 | if test -n "$ac_ct_OTOOL64"; then |
| 7310 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. |
| 7311 | else |
| 7312 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7313 | for as_dir in $PATH |
| 7314 | do |
| 7315 | IFS=$as_save_IFS |
| 7316 | test -z "$as_dir" && as_dir=. |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 7317 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7318 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7319 | ac_cv_prog_ac_ct_OTOOL64="otool64" |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 7320 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7321 | break 2 |
| 7322 | fi |
| 7323 | done |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 7324 | done |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7325 | IFS=$as_save_IFS |
| 7326 | |
| 7327 | fi |
| 7328 | fi |
| 7329 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 |
| 7330 | if test -n "$ac_ct_OTOOL64"; then |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 7331 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 7332 | $as_echo "$ac_ct_OTOOL64" >&6; } |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7333 | else |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 7334 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 7335 | $as_echo "no" >&6; } |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7336 | fi |
| 7337 | |
| 7338 | if test "x$ac_ct_OTOOL64" = x; then |
| 7339 | OTOOL64=":" |
| 7340 | else |
| 7341 | case $cross_compiling:$ac_tool_warned in |
| 7342 | yes:) |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 7343 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 7344 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7345 | ac_tool_warned=yes ;; |
| 7346 | esac |
| 7347 | OTOOL64=$ac_ct_OTOOL64 |
| 7348 | fi |
| 7349 | else |
| 7350 | OTOOL64="$ac_cv_prog_OTOOL64" |
| 7351 | fi |
| 7352 | |
| 7353 | |
| 7354 | |
| 7355 | |
| 7356 | |
| 7357 | |
| 7358 | |
| 7359 | |
| 7360 | |
| 7361 | |
| 7362 | |
| 7363 | |
| 7364 | |
| 7365 | |
| 7366 | |
| 7367 | |
| 7368 | |
| 7369 | |
| 7370 | |
| 7371 | |
| 7372 | |
| 7373 | |
| 7374 | |
| 7375 | |
| 7376 | |
| 7377 | |
| 7378 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 7379 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 7380 | $as_echo_n "checking for -single_module linker flag... " >&6; } |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 7381 | if ${lt_cv_apple_cc_single_mod+:} false; then : |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 7382 | $as_echo_n "(cached) " >&6 |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7383 | else |
| 7384 | lt_cv_apple_cc_single_mod=no |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 7385 | if test -z "$LT_MULTI_MODULE"; then |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7386 | # By default we will add the -single_module flag. You can override |
| 7387 | # by either setting the environment variable LT_MULTI_MODULE |
| 7388 | # non-empty at configure time, or by adding -multi_module to the |
| 7389 | # link flags. |
| 7390 | rm -rf libconftest.dylib* |
| 7391 | echo "int foo(void){return 1;}" > conftest.c |
| 7392 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
| 7393 | -dynamiclib -Wl,-single_module conftest.c" >&5 |
| 7394 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
| 7395 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err |
| 7396 | _lt_result=$? |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 7397 | # If there is a non-empty error log, and "single_module" |
| 7398 | # appears in it, assume the flag caused a linker warning |
| 7399 | if test -s conftest.err && $GREP single_module conftest.err; then |
| 7400 | cat conftest.err >&5 |
| 7401 | # Otherwise, if the output was created with a 0 exit code from |
| 7402 | # the compiler, it worked. |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 7403 | elif test -f libconftest.dylib && test 0 = "$_lt_result"; then |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7404 | lt_cv_apple_cc_single_mod=yes |
| 7405 | else |
| 7406 | cat conftest.err >&5 |
| 7407 | fi |
| 7408 | rm -rf libconftest.dylib* |
| 7409 | rm -f conftest.* |
| 7410 | fi |
| 7411 | fi |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 7412 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 7413 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 7414 | |
| 7415 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 7416 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 7417 | if ${lt_cv_ld_exported_symbols_list+:} false; then : |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 7418 | $as_echo_n "(cached) " >&6 |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7419 | else |
| 7420 | lt_cv_ld_exported_symbols_list=no |
| 7421 | save_LDFLAGS=$LDFLAGS |
| 7422 | echo "_main" > conftest.sym |
| 7423 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 7424 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7425 | /* end confdefs.h. */ |
| 7426 | |
| 7427 | int |
| 7428 | main () |
| 7429 | { |
| 7430 | |
| 7431 | ; |
| 7432 | return 0; |
| 7433 | } |
| 7434 | _ACEOF |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 7435 | if ac_fn_c_try_link "$LINENO"; then : |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7436 | lt_cv_ld_exported_symbols_list=yes |
| 7437 | else |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 7438 | lt_cv_ld_exported_symbols_list=no |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7439 | fi |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 7440 | rm -f core conftest.err conftest.$ac_objext \ |
| 7441 | conftest$ac_exeext conftest.$ac_ext |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 7442 | LDFLAGS=$save_LDFLAGS |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7443 | |
| 7444 | fi |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 7445 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 7446 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 7447 | |
| 7448 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 |
| 7449 | $as_echo_n "checking for -force_load linker flag... " >&6; } |
| 7450 | if ${lt_cv_ld_force_load+:} false; then : |
| 7451 | $as_echo_n "(cached) " >&6 |
| 7452 | else |
| 7453 | lt_cv_ld_force_load=no |
| 7454 | cat > conftest.c << _LT_EOF |
| 7455 | int forced_loaded() { return 2;} |
| 7456 | _LT_EOF |
| 7457 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 |
| 7458 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 |
| 7459 | echo "$AR cru libconftest.a conftest.o" >&5 |
| 7460 | $AR cru libconftest.a conftest.o 2>&5 |
| 7461 | echo "$RANLIB libconftest.a" >&5 |
| 7462 | $RANLIB libconftest.a 2>&5 |
| 7463 | cat > conftest.c << _LT_EOF |
| 7464 | int main() { return 0;} |
| 7465 | _LT_EOF |
| 7466 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 |
| 7467 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err |
| 7468 | _lt_result=$? |
| 7469 | if test -s conftest.err && $GREP force_load conftest.err; then |
| 7470 | cat conftest.err >&5 |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 7471 | elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 7472 | lt_cv_ld_force_load=yes |
| 7473 | else |
| 7474 | cat conftest.err >&5 |
| 7475 | fi |
| 7476 | rm -f conftest.err libconftest.a conftest conftest.c |
| 7477 | rm -rf conftest.dSYM |
| 7478 | |
| 7479 | fi |
| 7480 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 |
| 7481 | $as_echo "$lt_cv_ld_force_load" >&6; } |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7482 | case $host_os in |
| 7483 | rhapsody* | darwin1.[012]) |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 7484 | _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7485 | darwin1.*) |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 7486 | _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7487 | darwin*) # darwin 5.x on |
| 7488 | # if running on 10.5 or later, the deployment target defaults |
| 7489 | # to the OS version, if on x86, and 10.4, the deployment |
| 7490 | # target defaults to 10.4. Don't you love it? |
| 7491 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in |
| 7492 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 7493 | _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; |
Bruce A. Mah | 8634b34 | 2014-09-29 14:03:04 -0700 | [diff] [blame] | 7494 | 10.[012][,.]*) |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 7495 | _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7496 | 10.*) |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 7497 | _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7498 | esac |
| 7499 | ;; |
| 7500 | esac |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 7501 | if test yes = "$lt_cv_apple_cc_single_mod"; then |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7502 | _lt_dar_single_mod='$single_module' |
| 7503 | fi |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 7504 | if test yes = "$lt_cv_ld_exported_symbols_list"; then |
| 7505 | _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7506 | else |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 7507 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7508 | fi |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 7509 | if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7510 | _lt_dsymutil='~$DSYMUTIL $lib || :' |
| 7511 | else |
| 7512 | _lt_dsymutil= |
| 7513 | fi |
| 7514 | ;; |
| 7515 | esac |
| 7516 | |
Bruce A. Mah | 5461579 | 2015-05-11 10:42:44 -0700 | [diff] [blame] | 7517 | # func_munge_path_list VARIABLE PATH |
| 7518 | # ----------------------------------- |
| 7519 | # VARIABLE is name of variable containing _space_ separated list of |
| 7520 | # directories to be munged by the contents of PATH, which is string |
| 7521 | # having a format: |
| 7522 | # "DIR[:DIR]:" |
| 7523 | # string "DIR[ DIR]" will be prepended to VARIABLE |
| 7524 | # ":DIR[:DIR]" |
| 7525 | # string "DIR[ DIR]" will be appended to VARIABLE |
| 7526 | # "DIRP[:DIRP]::[DIRA:]DIRA" |
| 7527 | # string "DIRP[ DIRP]" will be prepended to VARIABLE and string |
| 7528 | # "DIRA[ DIRA]" will be appended to VARIABLE |
| 7529 | # "DIR[:DIR]" |
| 7530 | # VARIABLE will be replaced by "DIR[ DIR]" |
| 7531 | func_munge_path_list () |
| 7532 | { |
| 7533 | case x$2 in |
| 7534 | x) |
| 7535 | ;; |
| 7536 | *:) |
| 7537 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" |
| 7538 | ;; |
| 7539 | x:*) |
| 7540 | eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" |
| 7541 | ;; |
| 7542 | *::*) |
| 7543 | eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" |
| 7544 | eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" |
| 7545 | ;; |
| 7546 | *) |
| 7547 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" |
| 7548 | ;; |
| 7549 | esac |
| 7550 | } |
| 7551 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7552 | ac_ext=c |
| 7553 | ac_cpp='$CPP $CPPFLAGS' |
| 7554 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7555 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7556 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 7557 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 7558 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7559 | # On Suns, sometimes $CPP names a directory. |
| 7560 | if test -n "$CPP" && test -d "$CPP"; then |
| 7561 | CPP= |
| 7562 | fi |
| 7563 | if test -z "$CPP"; then |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 7564 | if ${ac_cv_prog_CPP+:} false; then : |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 7565 | $as_echo_n "(cached) " >&6 |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7566 | else |
| 7567 | # Double quotes because CPP needs to be expanded |
| 7568 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 7569 | do |
| 7570 | ac_preproc_ok=false |
| 7571 | for ac_c_preproc_warn_flag in '' yes |
| 7572 | do |
| 7573 | # Use a header file that comes with gcc, so configuring glibc |
| 7574 | # with a fresh cross-compiler works. |
| 7575 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 7576 | # <limits.h> exists even on freestanding compilers. |
| 7577 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 7578 | # not just through cpp. "Syntax error" is here to catch this case. |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 7579 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7580 | /* end confdefs.h. */ |
| 7581 | #ifdef __STDC__ |
| 7582 | # include <limits.h> |
| 7583 | #else |
| 7584 | # include <assert.h> |
| 7585 | #endif |
| 7586 | Syntax error |
| 7587 | _ACEOF |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 7588 | if ac_fn_c_try_cpp "$LINENO"; then : |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 7589 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 7590 | else |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7591 | # Broken: fails on valid input. |
| 7592 | continue |
| 7593 | fi |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 7594 | rm -f conftest.err conftest.i conftest.$ac_ext |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7595 | |
| 7596 | # OK, works on sane cases. Now check whether nonexistent headers |
| 7597 | # can be detected and how. |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 7598 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7599 | /* end confdefs.h. */ |
| 7600 | #include <ac_nonexistent.h> |
| 7601 | _ACEOF |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 7602 | if ac_fn_c_try_cpp "$LINENO"; then : |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7603 | # Broken: success on invalid input. |
| 7604 | continue |
| 7605 | else |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7606 | # Passes both tests. |
| 7607 | ac_preproc_ok=: |
| 7608 | break |
| 7609 | fi |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 7610 | rm -f conftest.err conftest.i conftest.$ac_ext |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7611 | |
| 7612 | done |
| 7613 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 7614 | rm -f conftest.i conftest.err conftest.$ac_ext |
| 7615 | if $ac_preproc_ok; then : |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7616 | break |
| 7617 | fi |
| 7618 | |
| 7619 | done |
| 7620 | ac_cv_prog_CPP=$CPP |
| 7621 | |
| 7622 | fi |
| 7623 | CPP=$ac_cv_prog_CPP |
| 7624 | else |
| 7625 | ac_cv_prog_CPP=$CPP |
| 7626 | fi |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 7627 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 7628 | $as_echo "$CPP" >&6; } |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7629 | ac_preproc_ok=false |
| 7630 | for ac_c_preproc_warn_flag in '' yes |
| 7631 | do |
| 7632 | # Use a header file that comes with gcc, so configuring glibc |
| 7633 | # with a fresh cross-compiler works. |
| 7634 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 7635 | # <limits.h> exists even on freestanding compilers. |
| 7636 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 7637 | # not just through cpp. "Syntax error" is here to catch this case. |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 7638 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7639 | /* end confdefs.h. */ |
| 7640 | #ifdef __STDC__ |
| 7641 | # include <limits.h> |
| 7642 | #else |
| 7643 | # include <assert.h> |
| 7644 | #endif |
| 7645 | Syntax error |
| 7646 | _ACEOF |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 7647 | if ac_fn_c_try_cpp "$LINENO"; then : |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 7648 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 7649 | else |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7650 | # Broken: fails on valid input. |
| 7651 | continue |
| 7652 | fi |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 7653 | rm -f conftest.err conftest.i conftest.$ac_ext |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7654 | |
| 7655 | # OK, works on sane cases. Now check whether nonexistent headers |
| 7656 | # can be detected and how. |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 7657 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7658 | /* end confdefs.h. */ |
| 7659 | #include <ac_nonexistent.h> |
| 7660 | _ACEOF |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 7661 | if ac_fn_c_try_cpp "$LINENO"; then : |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7662 | # Broken: success on invalid input. |
| 7663 | continue |
| 7664 | else |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7665 | # Passes both tests. |
| 7666 | ac_preproc_ok=: |
| 7667 | break |
| 7668 | fi |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 7669 | rm -f conftest.err conftest.i conftest.$ac_ext |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7670 | |
| 7671 | done |
| 7672 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 7673 | rm -f conftest.i conftest.err conftest.$ac_ext |
| 7674 | if $ac_preproc_ok; then : |
| 7675 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7676 | else |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 7677 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 7678 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 7679 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
| 7680 | See \`config.log' for more details" "$LINENO" 5; } |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7681 | fi |
| 7682 | |
| 7683 | ac_ext=c |
| 7684 | ac_cpp='$CPP $CPPFLAGS' |
| 7685 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7686 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7687 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7688 | |
| 7689 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 7690 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 7691 | $as_echo_n "checking for ANSI C header files... " >&6; } |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 7692 | if ${ac_cv_header_stdc+:} false; then : |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 7693 | $as_echo_n "(cached) " >&6 |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7694 | else |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 7695 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7696 | /* end confdefs.h. */ |
| 7697 | #include <stdlib.h> |
| 7698 | #include <stdarg.h> |
| 7699 | #include <string.h> |
| 7700 | #include <float.h> |
| 7701 | |
| 7702 | int |
| 7703 | main () |
| 7704 | { |
| 7705 | |
| 7706 | ; |
| 7707 | return 0; |
| 7708 | } |
| 7709 | _ACEOF |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 7710 | if ac_fn_c_try_compile "$LINENO"; then : |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7711 | ac_cv_header_stdc=yes |
| 7712 | else |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 7713 | ac_cv_header_stdc=no |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7714 | fi |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7715 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7716 | |
| 7717 | if test $ac_cv_header_stdc = yes; then |
| 7718 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 7719 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7720 | /* end confdefs.h. */ |
| 7721 | #include <string.h> |
| 7722 | |
| 7723 | _ACEOF |
| 7724 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 7725 | $EGREP "memchr" >/dev/null 2>&1; then : |
| 7726 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7727 | else |
| 7728 | ac_cv_header_stdc=no |
| 7729 | fi |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 7730 | rm -f conftest* |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7731 | |
| 7732 | fi |
| 7733 | |
| 7734 | if test $ac_cv_header_stdc = yes; then |
| 7735 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 7736 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7737 | /* end confdefs.h. */ |
| 7738 | #include <stdlib.h> |
| 7739 | |
| 7740 | _ACEOF |
| 7741 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 7742 | $EGREP "free" >/dev/null 2>&1; then : |
| 7743 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7744 | else |
| 7745 | ac_cv_header_stdc=no |
| 7746 | fi |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 7747 | rm -f conftest* |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7748 | |
| 7749 | fi |
| 7750 | |
| 7751 | if test $ac_cv_header_stdc = yes; then |
| 7752 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 7753 | if test "$cross_compiling" = yes; then : |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7754 | : |
| 7755 | else |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 7756 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7757 | /* end confdefs.h. */ |
| 7758 | #include <ctype.h> |
| 7759 | #include <stdlib.h> |
| 7760 | #if ((' ' & 0x0FF) == 0x020) |
| 7761 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 7762 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 7763 | #else |
| 7764 | # define ISLOWER(c) \ |
| 7765 | (('a' <= (c) && (c) <= 'i') \ |
| 7766 | || ('j' <= (c) && (c) <= 'r') \ |
| 7767 | || ('s' <= (c) && (c) <= 'z')) |
| 7768 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 7769 | #endif |
| 7770 | |
| 7771 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 7772 | int |
| 7773 | main () |
| 7774 | { |
| 7775 | int i; |
| 7776 | for (i = 0; i < 256; i++) |
| 7777 | if (XOR (islower (i), ISLOWER (i)) |
| 7778 | || toupper (i) != TOUPPER (i)) |
| 7779 | return 2; |
| 7780 | return 0; |
| 7781 | } |
| 7782 | _ACEOF |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 7783 | if ac_fn_c_try_run "$LINENO"; then : |
| 7784 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7785 | else |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 7786 | ac_cv_header_stdc=no |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7787 | fi |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 7788 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 7789 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7790 | fi |
| 7791 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7792 | fi |
| 7793 | fi |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 7794 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 7795 | $as_echo "$ac_cv_header_stdc" >&6; } |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7796 | if test $ac_cv_header_stdc = yes; then |
| 7797 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 7798 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7799 | |
| 7800 | fi |
| 7801 | |
| 7802 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7803 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 7804 | inttypes.h stdint.h unistd.h |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 7805 | do : |
| 7806 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 7807 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
| 7808 | " |
| 7809 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7810 | cat >>confdefs.h <<_ACEOF |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 7811 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7812 | _ACEOF |
| 7813 | |
| 7814 | fi |
| 7815 | |
| 7816 | done |
| 7817 | |
| 7818 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7819 | for ac_header in dlfcn.h |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 7820 | do : |
| 7821 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default |
| 7822 | " |
| 7823 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7824 | cat >>confdefs.h <<_ACEOF |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 7825 | #define HAVE_DLFCN_H 1 |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7826 | _ACEOF |
| 7827 | |
| 7828 | fi |
| 7829 | |
| 7830 | done |
| 7831 | |
| 7832 | |
| 7833 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 7834 | |
| 7835 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7836 | # Set options |
| 7837 | |
| 7838 | |
| 7839 | |
| 7840 | enable_dlopen=no |
| 7841 | |
| 7842 | |
| 7843 | enable_win32_dll=no |
| 7844 | |
| 7845 | |
| 7846 | # Check whether --enable-shared was given. |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 7847 | if test "${enable_shared+set}" = set; then : |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7848 | enableval=$enable_shared; p=${PACKAGE-default} |
| 7849 | case $enableval in |
| 7850 | yes) enable_shared=yes ;; |
| 7851 | no) enable_shared=no ;; |
| 7852 | *) |
| 7853 | enable_shared=no |
| 7854 | # Look at the argument we got. We use all the common list separators. |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 7855 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7856 | for pkg in $enableval; do |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 7857 | IFS=$lt_save_ifs |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7858 | if test "X$pkg" = "X$p"; then |
| 7859 | enable_shared=yes |
| 7860 | fi |
| 7861 | done |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 7862 | IFS=$lt_save_ifs |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7863 | ;; |
| 7864 | esac |
| 7865 | else |
| 7866 | enable_shared=yes |
| 7867 | fi |
| 7868 | |
| 7869 | |
| 7870 | |
| 7871 | |
| 7872 | |
| 7873 | |
| 7874 | |
| 7875 | |
| 7876 | |
| 7877 | # Check whether --enable-static was given. |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 7878 | if test "${enable_static+set}" = set; then : |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7879 | enableval=$enable_static; p=${PACKAGE-default} |
| 7880 | case $enableval in |
| 7881 | yes) enable_static=yes ;; |
| 7882 | no) enable_static=no ;; |
| 7883 | *) |
| 7884 | enable_static=no |
| 7885 | # Look at the argument we got. We use all the common list separators. |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 7886 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7887 | for pkg in $enableval; do |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 7888 | IFS=$lt_save_ifs |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7889 | if test "X$pkg" = "X$p"; then |
| 7890 | enable_static=yes |
| 7891 | fi |
| 7892 | done |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 7893 | IFS=$lt_save_ifs |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7894 | ;; |
| 7895 | esac |
| 7896 | else |
| 7897 | enable_static=yes |
| 7898 | fi |
| 7899 | |
| 7900 | |
| 7901 | |
| 7902 | |
| 7903 | |
| 7904 | |
| 7905 | |
| 7906 | |
| 7907 | |
| 7908 | |
| 7909 | # Check whether --with-pic was given. |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 7910 | if test "${with_pic+set}" = set; then : |
| 7911 | withval=$with_pic; lt_p=${PACKAGE-default} |
| 7912 | case $withval in |
| 7913 | yes|no) pic_mode=$withval ;; |
| 7914 | *) |
| 7915 | pic_mode=default |
| 7916 | # Look at the argument we got. We use all the common list separators. |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 7917 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 7918 | for lt_pkg in $withval; do |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 7919 | IFS=$lt_save_ifs |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 7920 | if test "X$lt_pkg" = "X$lt_p"; then |
| 7921 | pic_mode=yes |
| 7922 | fi |
| 7923 | done |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 7924 | IFS=$lt_save_ifs |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 7925 | ;; |
| 7926 | esac |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7927 | else |
| 7928 | pic_mode=default |
| 7929 | fi |
| 7930 | |
| 7931 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7932 | |
| 7933 | |
| 7934 | |
| 7935 | |
| 7936 | |
| 7937 | |
| 7938 | # Check whether --enable-fast-install was given. |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 7939 | if test "${enable_fast_install+set}" = set; then : |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7940 | enableval=$enable_fast_install; p=${PACKAGE-default} |
| 7941 | case $enableval in |
| 7942 | yes) enable_fast_install=yes ;; |
| 7943 | no) enable_fast_install=no ;; |
| 7944 | *) |
| 7945 | enable_fast_install=no |
| 7946 | # Look at the argument we got. We use all the common list separators. |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 7947 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7948 | for pkg in $enableval; do |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 7949 | IFS=$lt_save_ifs |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7950 | if test "X$pkg" = "X$p"; then |
| 7951 | enable_fast_install=yes |
| 7952 | fi |
| 7953 | done |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 7954 | IFS=$lt_save_ifs |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 7955 | ;; |
| 7956 | esac |
| 7957 | else |
| 7958 | enable_fast_install=yes |
| 7959 | fi |
| 7960 | |
| 7961 | |
| 7962 | |
| 7963 | |
| 7964 | |
| 7965 | |
| 7966 | |
| 7967 | |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 7968 | shared_archive_member_spec= |
| 7969 | case $host,$enable_shared in |
| 7970 | power*-*-aix[5-9]*,yes) |
| 7971 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 |
| 7972 | $as_echo_n "checking which variant of shared library versioning to provide... " >&6; } |
| 7973 | |
| 7974 | # Check whether --with-aix-soname was given. |
| 7975 | if test "${with_aix_soname+set}" = set; then : |
| 7976 | withval=$with_aix_soname; case $withval in |
| 7977 | aix|svr4|both) |
| 7978 | ;; |
| 7979 | *) |
| 7980 | as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 |
| 7981 | ;; |
| 7982 | esac |
| 7983 | lt_cv_with_aix_soname=$with_aix_soname |
| 7984 | else |
| 7985 | if ${lt_cv_with_aix_soname+:} false; then : |
| 7986 | $as_echo_n "(cached) " >&6 |
| 7987 | else |
| 7988 | lt_cv_with_aix_soname=aix |
| 7989 | fi |
| 7990 | |
| 7991 | with_aix_soname=$lt_cv_with_aix_soname |
| 7992 | fi |
| 7993 | |
| 7994 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 |
| 7995 | $as_echo "$with_aix_soname" >&6; } |
| 7996 | if test aix != "$with_aix_soname"; then |
| 7997 | # For the AIX way of multilib, we name the shared archive member |
| 7998 | # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', |
| 7999 | # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. |
| 8000 | # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, |
| 8001 | # the AIX toolchain works better with OBJECT_MODE set (default 32). |
| 8002 | if test 64 = "${OBJECT_MODE-32}"; then |
| 8003 | shared_archive_member_spec=shr_64 |
| 8004 | else |
| 8005 | shared_archive_member_spec=shr |
| 8006 | fi |
| 8007 | fi |
| 8008 | ;; |
| 8009 | *) |
| 8010 | with_aix_soname=aix |
| 8011 | ;; |
| 8012 | esac |
| 8013 | |
| 8014 | |
| 8015 | |
| 8016 | |
| 8017 | |
| 8018 | |
| 8019 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8020 | |
| 8021 | |
| 8022 | |
| 8023 | # This can be used to rebuild libtool when needed |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 8024 | LIBTOOL_DEPS=$ltmain |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8025 | |
| 8026 | # Always use our own libtool. |
| 8027 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
| 8028 | |
| 8029 | |
| 8030 | |
| 8031 | |
| 8032 | |
| 8033 | |
| 8034 | |
| 8035 | |
| 8036 | |
| 8037 | |
| 8038 | |
| 8039 | |
| 8040 | |
| 8041 | |
| 8042 | |
| 8043 | |
| 8044 | |
| 8045 | |
| 8046 | |
| 8047 | |
| 8048 | |
| 8049 | |
| 8050 | |
| 8051 | |
| 8052 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 8053 | |
| 8054 | |
| 8055 | |
| 8056 | |
| 8057 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8058 | test -z "$LN_S" && LN_S="ln -s" |
| 8059 | |
| 8060 | |
| 8061 | |
| 8062 | |
| 8063 | |
| 8064 | |
| 8065 | |
| 8066 | |
| 8067 | |
| 8068 | |
| 8069 | |
| 8070 | |
| 8071 | |
| 8072 | |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 8073 | if test -n "${ZSH_VERSION+set}"; then |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8074 | setopt NO_GLOB_SUBST |
| 8075 | fi |
| 8076 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 8077 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 8078 | $as_echo_n "checking for objdir... " >&6; } |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 8079 | if ${lt_cv_objdir+:} false; then : |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 8080 | $as_echo_n "(cached) " >&6 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8081 | else |
| 8082 | rm -f .libs 2>/dev/null |
| 8083 | mkdir .libs 2>/dev/null |
| 8084 | if test -d .libs; then |
| 8085 | lt_cv_objdir=.libs |
| 8086 | else |
| 8087 | # MS-DOS does not allow filenames that begin with a dot. |
| 8088 | lt_cv_objdir=_libs |
| 8089 | fi |
| 8090 | rmdir .libs 2>/dev/null |
| 8091 | fi |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 8092 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 8093 | $as_echo "$lt_cv_objdir" >&6; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8094 | objdir=$lt_cv_objdir |
| 8095 | |
| 8096 | |
| 8097 | |
| 8098 | |
| 8099 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8100 | cat >>confdefs.h <<_ACEOF |
| 8101 | #define LT_OBJDIR "$lt_cv_objdir/" |
| 8102 | _ACEOF |
| 8103 | |
| 8104 | |
| 8105 | |
| 8106 | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8107 | case $host_os in |
| 8108 | aix3*) |
| 8109 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 8110 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 8111 | # vanish in a puff of smoke. |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 8112 | if test set != "${COLLECT_NAMES+set}"; then |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8113 | COLLECT_NAMES= |
| 8114 | export COLLECT_NAMES |
| 8115 | fi |
| 8116 | ;; |
| 8117 | esac |
| 8118 | |
| 8119 | # Global variables: |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8120 | ofile=libtool |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8121 | can_build_shared=yes |
| 8122 | |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 8123 | # All known linkers require a '.a' archive for static linking (except MSVC, |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8124 | # which needs '.lib'). |
| 8125 | libext=a |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8126 | |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 8127 | with_gnu_ld=$lt_cv_prog_gnu_ld |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8128 | |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 8129 | old_CC=$CC |
| 8130 | old_CFLAGS=$CFLAGS |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8131 | |
| 8132 | # Set sane defaults for various variables |
| 8133 | test -z "$CC" && CC=cc |
| 8134 | test -z "$LTCC" && LTCC=$CC |
| 8135 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
| 8136 | test -z "$LD" && LD=ld |
| 8137 | test -z "$ac_objext" && ac_objext=o |
| 8138 | |
Bruce A. Mah | 5461579 | 2015-05-11 10:42:44 -0700 | [diff] [blame] | 8139 | func_cc_basename $compiler |
| 8140 | cc_basename=$func_cc_basename_result |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8141 | |
| 8142 | |
| 8143 | # Only perform the check for file, if the check method requires it |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8144 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8145 | case $deplibs_check_method in |
| 8146 | file_magic*) |
| 8147 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 8148 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 8149 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 8150 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 8151 | $as_echo_n "(cached) " >&6 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8152 | else |
| 8153 | case $MAGIC_CMD in |
| 8154 | [\\/*] | ?:[\\/]*) |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 8155 | lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8156 | ;; |
| 8157 | *) |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 8158 | lt_save_MAGIC_CMD=$MAGIC_CMD |
| 8159 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8160 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 8161 | for ac_dir in $ac_dummy; do |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 8162 | IFS=$lt_save_ifs |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8163 | test -z "$ac_dir" && ac_dir=. |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 8164 | if test -f "$ac_dir/${ac_tool_prefix}file"; then |
| 8165 | lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8166 | if test -n "$file_magic_test_file"; then |
| 8167 | case $deplibs_check_method in |
| 8168 | "file_magic "*) |
| 8169 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 8170 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8171 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 8172 | $EGREP "$file_magic_regex" > /dev/null; then |
| 8173 | : |
| 8174 | else |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8175 | cat <<_LT_EOF 1>&2 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8176 | |
| 8177 | *** Warning: the command libtool uses to detect shared libraries, |
| 8178 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 8179 | *** The result is that libtool may fail to recognize shared libraries |
| 8180 | *** as such. This will affect the creation of libtool libraries that |
| 8181 | *** depend on shared libraries, but programs linked with such libtool |
| 8182 | *** libraries will work regardless of this problem. Nevertheless, you |
| 8183 | *** may want to report the problem to your system manager and/or to |
| 8184 | *** bug-libtool@gnu.org |
| 8185 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8186 | _LT_EOF |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8187 | fi ;; |
| 8188 | esac |
| 8189 | fi |
| 8190 | break |
| 8191 | fi |
| 8192 | done |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 8193 | IFS=$lt_save_ifs |
| 8194 | MAGIC_CMD=$lt_save_MAGIC_CMD |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8195 | ;; |
| 8196 | esac |
| 8197 | fi |
| 8198 | |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 8199 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8200 | if test -n "$MAGIC_CMD"; then |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 8201 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 8202 | $as_echo "$MAGIC_CMD" >&6; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8203 | else |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 8204 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 8205 | $as_echo "no" >&6; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8206 | fi |
| 8207 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8208 | |
| 8209 | |
| 8210 | |
| 8211 | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8212 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
| 8213 | if test -n "$ac_tool_prefix"; then |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 8214 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 8215 | $as_echo_n "checking for file... " >&6; } |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 8216 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 8217 | $as_echo_n "(cached) " >&6 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8218 | else |
| 8219 | case $MAGIC_CMD in |
| 8220 | [\\/*] | ?:[\\/]*) |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 8221 | lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8222 | ;; |
| 8223 | *) |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 8224 | lt_save_MAGIC_CMD=$MAGIC_CMD |
| 8225 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8226 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 8227 | for ac_dir in $ac_dummy; do |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 8228 | IFS=$lt_save_ifs |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8229 | test -z "$ac_dir" && ac_dir=. |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 8230 | if test -f "$ac_dir/file"; then |
| 8231 | lt_cv_path_MAGIC_CMD=$ac_dir/"file" |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8232 | if test -n "$file_magic_test_file"; then |
| 8233 | case $deplibs_check_method in |
| 8234 | "file_magic "*) |
| 8235 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 8236 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8237 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 8238 | $EGREP "$file_magic_regex" > /dev/null; then |
| 8239 | : |
| 8240 | else |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8241 | cat <<_LT_EOF 1>&2 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8242 | |
| 8243 | *** Warning: the command libtool uses to detect shared libraries, |
| 8244 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 8245 | *** The result is that libtool may fail to recognize shared libraries |
| 8246 | *** as such. This will affect the creation of libtool libraries that |
| 8247 | *** depend on shared libraries, but programs linked with such libtool |
| 8248 | *** libraries will work regardless of this problem. Nevertheless, you |
| 8249 | *** may want to report the problem to your system manager and/or to |
| 8250 | *** bug-libtool@gnu.org |
| 8251 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8252 | _LT_EOF |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8253 | fi ;; |
| 8254 | esac |
| 8255 | fi |
| 8256 | break |
| 8257 | fi |
| 8258 | done |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 8259 | IFS=$lt_save_ifs |
| 8260 | MAGIC_CMD=$lt_save_MAGIC_CMD |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8261 | ;; |
| 8262 | esac |
| 8263 | fi |
| 8264 | |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 8265 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8266 | if test -n "$MAGIC_CMD"; then |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 8267 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 8268 | $as_echo "$MAGIC_CMD" >&6; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8269 | else |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 8270 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 8271 | $as_echo "no" >&6; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8272 | fi |
| 8273 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8274 | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8275 | else |
| 8276 | MAGIC_CMD=: |
| 8277 | fi |
| 8278 | fi |
| 8279 | |
| 8280 | fi |
| 8281 | ;; |
| 8282 | esac |
| 8283 | |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 8284 | # Use C for the default configuration in the libtool script |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8285 | |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 8286 | lt_save_CC=$CC |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8287 | ac_ext=c |
| 8288 | ac_cpp='$CPP $CPPFLAGS' |
| 8289 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8290 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8291 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8292 | |
| 8293 | |
| 8294 | # Source file extension for C test sources. |
| 8295 | ac_ext=c |
| 8296 | |
| 8297 | # Object file extension for compiled C test sources. |
| 8298 | objext=o |
| 8299 | objext=$objext |
| 8300 | |
| 8301 | # Code to be used in simple compile tests |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8302 | lt_simple_compile_test_code="int some_variable = 0;" |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8303 | |
| 8304 | # Code to be used in simple link tests |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8305 | lt_simple_link_test_code='int main(){return(0);}' |
| 8306 | |
| 8307 | |
| 8308 | |
| 8309 | |
| 8310 | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8311 | |
| 8312 | |
| 8313 | # If no C compiler was specified, use CC. |
| 8314 | LTCC=${LTCC-"$CC"} |
| 8315 | |
| 8316 | # If no C compiler flags were specified, use CFLAGS. |
| 8317 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 8318 | |
| 8319 | # Allow CC to be a program name with arguments. |
| 8320 | compiler=$CC |
| 8321 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8322 | # Save the default compiler, since it gets overwritten when the other |
| 8323 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. |
| 8324 | compiler_DEFAULT=$CC |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8325 | |
| 8326 | # save warnings/boilerplate of simple test code |
| 8327 | ac_outfile=conftest.$ac_objext |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8328 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8329 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 8330 | _lt_compiler_boilerplate=`cat conftest.err` |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 8331 | $RM conftest* |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8332 | |
| 8333 | ac_outfile=conftest.$ac_objext |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8334 | echo "$lt_simple_link_test_code" >conftest.$ac_ext |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8335 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 8336 | _lt_linker_boilerplate=`cat conftest.err` |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8337 | $RM -r conftest* |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8338 | |
| 8339 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8340 | if test -n "$compiler"; then |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8341 | |
| 8342 | lt_prog_compiler_no_builtin_flag= |
| 8343 | |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 8344 | if test yes = "$GCC"; then |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 8345 | case $cc_basename in |
| 8346 | nvcc*) |
| 8347 | lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; |
| 8348 | *) |
| 8349 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; |
| 8350 | esac |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8351 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 8352 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 8353 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 8354 | if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 8355 | $as_echo_n "(cached) " >&6 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8356 | else |
| 8357 | lt_cv_prog_compiler_rtti_exceptions=no |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8358 | ac_outfile=conftest.$ac_objext |
| 8359 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 8360 | lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8361 | # Insert the option either (1) after the last *FLAGS variable, or |
| 8362 | # (2) before a word containing "conftest.", or (3) at the end. |
| 8363 | # Note that $ac_compile itself does not contain backslashes and begins |
| 8364 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 8365 | # The option is referenced via a variable to avoid confusing sed. |
| 8366 | lt_compile=`echo "$ac_compile" | $SED \ |
| 8367 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 8368 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 8369 | -e 's:$: $lt_compiler_flag:'` |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 8370 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8371 | (eval "$lt_compile" 2>conftest.err) |
| 8372 | ac_status=$? |
| 8373 | cat conftest.err >&5 |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 8374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8375 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 8376 | # The compiler can only warn and ignore the option if not recognized |
| 8377 | # So say no if there are warnings other than the usual output. |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 8378 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8379 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 8380 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
| 8381 | lt_cv_prog_compiler_rtti_exceptions=yes |
| 8382 | fi |
| 8383 | fi |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 8384 | $RM conftest* |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8385 | |
| 8386 | fi |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 8387 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 8388 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8389 | |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 8390 | if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8391 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
| 8392 | else |
| 8393 | : |
| 8394 | fi |
| 8395 | |
| 8396 | fi |
| 8397 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8398 | |
| 8399 | |
| 8400 | |
| 8401 | |
| 8402 | |
| 8403 | lt_prog_compiler_wl= |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8404 | lt_prog_compiler_pic= |
| 8405 | lt_prog_compiler_static= |
| 8406 | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8407 | |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 8408 | if test yes = "$GCC"; then |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8409 | lt_prog_compiler_wl='-Wl,' |
| 8410 | lt_prog_compiler_static='-static' |
| 8411 | |
| 8412 | case $host_os in |
| 8413 | aix*) |
| 8414 | # All AIX code is PIC. |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 8415 | if test ia64 = "$host_cpu"; then |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8416 | # AIX 5 now supports IA64 processor |
| 8417 | lt_prog_compiler_static='-Bstatic' |
| 8418 | fi |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 8419 | lt_prog_compiler_pic='-fPIC' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8420 | ;; |
| 8421 | |
| 8422 | amigaos*) |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8423 | case $host_cpu in |
| 8424 | powerpc) |
| 8425 | # see comment about AmigaOS4 .so support |
| 8426 | lt_prog_compiler_pic='-fPIC' |
| 8427 | ;; |
| 8428 | m68k) |
| 8429 | # FIXME: we need at least 68020 code to build shared libraries, but |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 8430 | # adding the '-m68020' flag to GCC prevents building anything better, |
| 8431 | # like '-m68040'. |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8432 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
| 8433 | ;; |
| 8434 | esac |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8435 | ;; |
| 8436 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8437 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8438 | # PIC is the default for these OSes. |
| 8439 | ;; |
| 8440 | |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 8441 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8442 | # This hack is so that the source file can tell whether it is being |
| 8443 | # built for inclusion in a dll (and should export symbols for example). |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8444 | # Although the cygwin gcc ignores -fPIC, still need this for old-style |
| 8445 | # (--disable-auto-import) libraries |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8446 | lt_prog_compiler_pic='-DDLL_EXPORT' |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 8447 | case $host_os in |
| 8448 | os2*) |
| 8449 | lt_prog_compiler_static='$wl-static' |
| 8450 | ;; |
| 8451 | esac |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8452 | ;; |
| 8453 | |
| 8454 | darwin* | rhapsody*) |
| 8455 | # PIC is the default on this platform |
| 8456 | # Common symbols not allowed in MH_DYLIB files |
| 8457 | lt_prog_compiler_pic='-fno-common' |
| 8458 | ;; |
| 8459 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 8460 | haiku*) |
| 8461 | # PIC is the default for Haiku. |
| 8462 | # The "-static" flag exists, but is broken. |
| 8463 | lt_prog_compiler_static= |
| 8464 | ;; |
| 8465 | |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 8466 | hpux*) |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 8467 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
| 8468 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag |
| 8469 | # sets the default TLS model and affects inlining. |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 8470 | case $host_cpu in |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 8471 | hppa*64*) |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 8472 | # +Z the default |
| 8473 | ;; |
| 8474 | *) |
| 8475 | lt_prog_compiler_pic='-fPIC' |
| 8476 | ;; |
| 8477 | esac |
| 8478 | ;; |
| 8479 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8480 | interix[3-9]*) |
| 8481 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 8482 | # Instead, we relocate shared libraries at runtime. |
| 8483 | ;; |
| 8484 | |
| 8485 | msdosdjgpp*) |
| 8486 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 8487 | # on systems that don't support them. |
| 8488 | lt_prog_compiler_can_build_shared=no |
| 8489 | enable_shared=no |
| 8490 | ;; |
| 8491 | |
| 8492 | *nto* | *qnx*) |
| 8493 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 8494 | # it will coredump. |
| 8495 | lt_prog_compiler_pic='-fPIC -shared' |
| 8496 | ;; |
| 8497 | |
| 8498 | sysv4*MP*) |
| 8499 | if test -d /usr/nec; then |
| 8500 | lt_prog_compiler_pic=-Kconform_pic |
| 8501 | fi |
| 8502 | ;; |
| 8503 | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8504 | *) |
| 8505 | lt_prog_compiler_pic='-fPIC' |
| 8506 | ;; |
| 8507 | esac |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 8508 | |
| 8509 | case $cc_basename in |
| 8510 | nvcc*) # Cuda Compiler Driver 2.2 |
| 8511 | lt_prog_compiler_wl='-Xlinker ' |
| 8512 | if test -n "$lt_prog_compiler_pic"; then |
| 8513 | lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" |
| 8514 | fi |
| 8515 | ;; |
| 8516 | esac |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8517 | else |
| 8518 | # PORTME Check for flag to pass linker flags through the system compiler. |
| 8519 | case $host_os in |
| 8520 | aix*) |
| 8521 | lt_prog_compiler_wl='-Wl,' |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 8522 | if test ia64 = "$host_cpu"; then |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8523 | # AIX 5 now supports IA64 processor |
| 8524 | lt_prog_compiler_static='-Bstatic' |
| 8525 | else |
| 8526 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
| 8527 | fi |
| 8528 | ;; |
| 8529 | |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 8530 | darwin* | rhapsody*) |
| 8531 | # PIC is the default on this platform |
| 8532 | # Common symbols not allowed in MH_DYLIB files |
| 8533 | lt_prog_compiler_pic='-fno-common' |
| 8534 | case $cc_basename in |
| 8535 | nagfor*) |
| 8536 | # NAG Fortran compiler |
| 8537 | lt_prog_compiler_wl='-Wl,-Wl,,' |
| 8538 | lt_prog_compiler_pic='-PIC' |
| 8539 | lt_prog_compiler_static='-Bstatic' |
| 8540 | ;; |
| 8541 | esac |
| 8542 | ;; |
| 8543 | |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 8544 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8545 | # This hack is so that the source file can tell whether it is being |
| 8546 | # built for inclusion in a dll (and should export symbols for example). |
| 8547 | lt_prog_compiler_pic='-DDLL_EXPORT' |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 8548 | case $host_os in |
| 8549 | os2*) |
| 8550 | lt_prog_compiler_static='$wl-static' |
| 8551 | ;; |
| 8552 | esac |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8553 | ;; |
| 8554 | |
| 8555 | hpux9* | hpux10* | hpux11*) |
| 8556 | lt_prog_compiler_wl='-Wl,' |
| 8557 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 8558 | # not for PA HP-UX. |
| 8559 | case $host_cpu in |
| 8560 | hppa*64*|ia64*) |
| 8561 | # +Z the default |
| 8562 | ;; |
| 8563 | *) |
| 8564 | lt_prog_compiler_pic='+Z' |
| 8565 | ;; |
| 8566 | esac |
| 8567 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 8568 | lt_prog_compiler_static='$wl-a ${wl}archive' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8569 | ;; |
| 8570 | |
| 8571 | irix5* | irix6* | nonstopux*) |
| 8572 | lt_prog_compiler_wl='-Wl,' |
| 8573 | # PIC (with -KPIC) is the default. |
| 8574 | lt_prog_compiler_static='-non_shared' |
| 8575 | ;; |
| 8576 | |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 8577 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8578 | case $cc_basename in |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 8579 | # old Intel for x86_64, which still supported -KPIC. |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 8580 | ecc*) |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8581 | lt_prog_compiler_wl='-Wl,' |
| 8582 | lt_prog_compiler_pic='-KPIC' |
| 8583 | lt_prog_compiler_static='-static' |
| 8584 | ;; |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 8585 | # icc used to be incompatible with GCC. |
| 8586 | # ICC 10 doesn't accept -KPIC any more. |
| 8587 | icc* | ifort*) |
| 8588 | lt_prog_compiler_wl='-Wl,' |
| 8589 | lt_prog_compiler_pic='-fPIC' |
| 8590 | lt_prog_compiler_static='-static' |
| 8591 | ;; |
| 8592 | # Lahey Fortran 8.1. |
| 8593 | lf95*) |
| 8594 | lt_prog_compiler_wl='-Wl,' |
| 8595 | lt_prog_compiler_pic='--shared' |
| 8596 | lt_prog_compiler_static='--static' |
| 8597 | ;; |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 8598 | nagfor*) |
| 8599 | # NAG Fortran compiler |
| 8600 | lt_prog_compiler_wl='-Wl,-Wl,,' |
| 8601 | lt_prog_compiler_pic='-PIC' |
| 8602 | lt_prog_compiler_static='-Bstatic' |
| 8603 | ;; |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 8604 | tcc*) |
| 8605 | # Fabrice Bellard et al's Tiny C Compiler |
| 8606 | lt_prog_compiler_wl='-Wl,' |
| 8607 | lt_prog_compiler_pic='-fPIC' |
| 8608 | lt_prog_compiler_static='-static' |
| 8609 | ;; |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 8610 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8611 | # Portland Group compilers (*not* the Pentium gcc compiler, |
| 8612 | # which looks to be a dead project) |
| 8613 | lt_prog_compiler_wl='-Wl,' |
| 8614 | lt_prog_compiler_pic='-fpic' |
| 8615 | lt_prog_compiler_static='-Bstatic' |
| 8616 | ;; |
| 8617 | ccc*) |
| 8618 | lt_prog_compiler_wl='-Wl,' |
| 8619 | # All Alpha code is PIC. |
| 8620 | lt_prog_compiler_static='-non_shared' |
| 8621 | ;; |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 8622 | xl* | bgxl* | bgf* | mpixl*) |
| 8623 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8624 | lt_prog_compiler_wl='-Wl,' |
| 8625 | lt_prog_compiler_pic='-qpic' |
| 8626 | lt_prog_compiler_static='-qstaticlink' |
| 8627 | ;; |
| 8628 | *) |
| 8629 | case `$CC -V 2>&1 | sed 5q` in |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 8630 | *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) |
| 8631 | # Sun Fortran 8.3 passes all unrecognized flags to the linker |
| 8632 | lt_prog_compiler_pic='-KPIC' |
| 8633 | lt_prog_compiler_static='-Bstatic' |
| 8634 | lt_prog_compiler_wl='' |
| 8635 | ;; |
| 8636 | *Sun\ F* | *Sun*Fortran*) |
| 8637 | lt_prog_compiler_pic='-KPIC' |
| 8638 | lt_prog_compiler_static='-Bstatic' |
| 8639 | lt_prog_compiler_wl='-Qoption ld ' |
| 8640 | ;; |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8641 | *Sun\ C*) |
| 8642 | # Sun C 5.9 |
| 8643 | lt_prog_compiler_pic='-KPIC' |
| 8644 | lt_prog_compiler_static='-Bstatic' |
| 8645 | lt_prog_compiler_wl='-Wl,' |
| 8646 | ;; |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 8647 | *Intel*\ [CF]*Compiler*) |
| 8648 | lt_prog_compiler_wl='-Wl,' |
| 8649 | lt_prog_compiler_pic='-fPIC' |
| 8650 | lt_prog_compiler_static='-static' |
| 8651 | ;; |
| 8652 | *Portland\ Group*) |
| 8653 | lt_prog_compiler_wl='-Wl,' |
| 8654 | lt_prog_compiler_pic='-fpic' |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8655 | lt_prog_compiler_static='-Bstatic' |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8656 | ;; |
| 8657 | esac |
| 8658 | ;; |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8659 | esac |
| 8660 | ;; |
| 8661 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8662 | newsos6) |
| 8663 | lt_prog_compiler_pic='-KPIC' |
| 8664 | lt_prog_compiler_static='-Bstatic' |
| 8665 | ;; |
| 8666 | |
| 8667 | *nto* | *qnx*) |
| 8668 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 8669 | # it will coredump. |
| 8670 | lt_prog_compiler_pic='-fPIC -shared' |
| 8671 | ;; |
| 8672 | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8673 | osf3* | osf4* | osf5*) |
| 8674 | lt_prog_compiler_wl='-Wl,' |
| 8675 | # All OSF/1 code is PIC. |
| 8676 | lt_prog_compiler_static='-non_shared' |
| 8677 | ;; |
| 8678 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8679 | rdos*) |
| 8680 | lt_prog_compiler_static='-non_shared' |
| 8681 | ;; |
| 8682 | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8683 | solaris*) |
| 8684 | lt_prog_compiler_pic='-KPIC' |
| 8685 | lt_prog_compiler_static='-Bstatic' |
| 8686 | case $cc_basename in |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 8687 | f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8688 | lt_prog_compiler_wl='-Qoption ld ';; |
| 8689 | *) |
| 8690 | lt_prog_compiler_wl='-Wl,';; |
| 8691 | esac |
| 8692 | ;; |
| 8693 | |
| 8694 | sunos4*) |
| 8695 | lt_prog_compiler_wl='-Qoption ld ' |
| 8696 | lt_prog_compiler_pic='-PIC' |
| 8697 | lt_prog_compiler_static='-Bstatic' |
| 8698 | ;; |
| 8699 | |
| 8700 | sysv4 | sysv4.2uw2* | sysv4.3*) |
| 8701 | lt_prog_compiler_wl='-Wl,' |
| 8702 | lt_prog_compiler_pic='-KPIC' |
| 8703 | lt_prog_compiler_static='-Bstatic' |
| 8704 | ;; |
| 8705 | |
| 8706 | sysv4*MP*) |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 8707 | if test -d /usr/nec; then |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8708 | lt_prog_compiler_pic='-Kconform_pic' |
| 8709 | lt_prog_compiler_static='-Bstatic' |
| 8710 | fi |
| 8711 | ;; |
| 8712 | |
| 8713 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 8714 | lt_prog_compiler_wl='-Wl,' |
| 8715 | lt_prog_compiler_pic='-KPIC' |
| 8716 | lt_prog_compiler_static='-Bstatic' |
| 8717 | ;; |
| 8718 | |
| 8719 | unicos*) |
| 8720 | lt_prog_compiler_wl='-Wl,' |
| 8721 | lt_prog_compiler_can_build_shared=no |
| 8722 | ;; |
| 8723 | |
| 8724 | uts4*) |
| 8725 | lt_prog_compiler_pic='-pic' |
| 8726 | lt_prog_compiler_static='-Bstatic' |
| 8727 | ;; |
| 8728 | |
| 8729 | *) |
| 8730 | lt_prog_compiler_can_build_shared=no |
| 8731 | ;; |
| 8732 | esac |
| 8733 | fi |
| 8734 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8735 | case $host_os in |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 8736 | # For platforms that do not support PIC, -DPIC is meaningless: |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8737 | *djgpp*) |
| 8738 | lt_prog_compiler_pic= |
| 8739 | ;; |
| 8740 | *) |
| 8741 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
| 8742 | ;; |
| 8743 | esac |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8744 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 8745 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
| 8746 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } |
| 8747 | if ${lt_cv_prog_compiler_pic+:} false; then : |
| 8748 | $as_echo_n "(cached) " >&6 |
| 8749 | else |
| 8750 | lt_cv_prog_compiler_pic=$lt_prog_compiler_pic |
| 8751 | fi |
| 8752 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 |
| 8753 | $as_echo "$lt_cv_prog_compiler_pic" >&6; } |
| 8754 | lt_prog_compiler_pic=$lt_cv_prog_compiler_pic |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8755 | |
| 8756 | # |
| 8757 | # Check to make sure the PIC flag actually works. |
| 8758 | # |
| 8759 | if test -n "$lt_prog_compiler_pic"; then |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 8760 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 8761 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 8762 | if ${lt_cv_prog_compiler_pic_works+:} false; then : |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 8763 | $as_echo_n "(cached) " >&6 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8764 | else |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8765 | lt_cv_prog_compiler_pic_works=no |
| 8766 | ac_outfile=conftest.$ac_objext |
| 8767 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 8768 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8769 | # Insert the option either (1) after the last *FLAGS variable, or |
| 8770 | # (2) before a word containing "conftest.", or (3) at the end. |
| 8771 | # Note that $ac_compile itself does not contain backslashes and begins |
| 8772 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 8773 | # The option is referenced via a variable to avoid confusing sed. |
| 8774 | lt_compile=`echo "$ac_compile" | $SED \ |
| 8775 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 8776 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 8777 | -e 's:$: $lt_compiler_flag:'` |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 8778 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8779 | (eval "$lt_compile" 2>conftest.err) |
| 8780 | ac_status=$? |
| 8781 | cat conftest.err >&5 |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 8782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8783 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 8784 | # The compiler can only warn and ignore the option if not recognized |
| 8785 | # So say no if there are warnings other than the usual output. |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 8786 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8787 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 8788 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8789 | lt_cv_prog_compiler_pic_works=yes |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8790 | fi |
| 8791 | fi |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 8792 | $RM conftest* |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8793 | |
| 8794 | fi |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 8795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 8796 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8797 | |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 8798 | if test yes = "$lt_cv_prog_compiler_pic_works"; then |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8799 | case $lt_prog_compiler_pic in |
| 8800 | "" | " "*) ;; |
| 8801 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
| 8802 | esac |
| 8803 | else |
| 8804 | lt_prog_compiler_pic= |
| 8805 | lt_prog_compiler_can_build_shared=no |
| 8806 | fi |
| 8807 | |
| 8808 | fi |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8809 | |
| 8810 | |
| 8811 | |
| 8812 | |
| 8813 | |
jef | 2ab386b | 2012-08-10 12:43:50 -0700 | [diff] [blame] | 8814 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 8815 | |
| 8816 | |
| 8817 | |
| 8818 | |
| 8819 | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8820 | # |
| 8821 | # Check to make sure the static flag actually works. |
| 8822 | # |
| 8823 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 8824 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 8825 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 8826 | if ${lt_cv_prog_compiler_static_works+:} false; then : |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 8827 | $as_echo_n "(cached) " >&6 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8828 | else |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8829 | lt_cv_prog_compiler_static_works=no |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 8830 | save_LDFLAGS=$LDFLAGS |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8831 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8832 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8833 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 8834 | # The linker can only warn and ignore the option if not recognized |
| 8835 | # So say no if there are warnings |
| 8836 | if test -s conftest.err; then |
| 8837 | # Append any errors to the config.log. |
| 8838 | cat conftest.err 1>&5 |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 8839 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8840 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 8841 | if diff conftest.exp conftest.er2 >/dev/null; then |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8842 | lt_cv_prog_compiler_static_works=yes |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8843 | fi |
| 8844 | else |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8845 | lt_cv_prog_compiler_static_works=yes |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8846 | fi |
| 8847 | fi |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8848 | $RM -r conftest* |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 8849 | LDFLAGS=$save_LDFLAGS |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8850 | |
| 8851 | fi |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 8852 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 8853 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8854 | |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 8855 | if test yes = "$lt_cv_prog_compiler_static_works"; then |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8856 | : |
| 8857 | else |
| 8858 | lt_prog_compiler_static= |
| 8859 | fi |
| 8860 | |
| 8861 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8862 | |
| 8863 | |
| 8864 | |
| 8865 | |
| 8866 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 8867 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 8868 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 8869 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 8870 | $as_echo_n "(cached) " >&6 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8871 | else |
| 8872 | lt_cv_prog_compiler_c_o=no |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8873 | $RM -r conftest 2>/dev/null |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8874 | mkdir conftest |
| 8875 | cd conftest |
| 8876 | mkdir out |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8877 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8878 | |
| 8879 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 8880 | # Insert the option either (1) after the last *FLAGS variable, or |
| 8881 | # (2) before a word containing "conftest.", or (3) at the end. |
| 8882 | # Note that $ac_compile itself does not contain backslashes and begins |
| 8883 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 8884 | lt_compile=`echo "$ac_compile" | $SED \ |
| 8885 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 8886 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 8887 | -e 's:$: $lt_compiler_flag:'` |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 8888 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8889 | (eval "$lt_compile" 2>out/conftest.err) |
| 8890 | ac_status=$? |
| 8891 | cat out/conftest.err >&5 |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 8892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8893 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 8894 | then |
| 8895 | # The compiler can only warn and ignore the option if not recognized |
| 8896 | # So say no if there are warnings |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 8897 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8898 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 8899 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| 8900 | lt_cv_prog_compiler_c_o=yes |
| 8901 | fi |
| 8902 | fi |
| 8903 | chmod u+w . 2>&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 8904 | $RM conftest* |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8905 | # SGI C++ compiler will create directory out/ii_files/ for |
| 8906 | # template instantiation |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8907 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 8908 | $RM out/* && rmdir out |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8909 | cd .. |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8910 | $RM -r conftest |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 8911 | $RM conftest* |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8912 | |
| 8913 | fi |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 8914 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 8915 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8916 | |
| 8917 | |
| 8918 | |
| 8919 | |
| 8920 | |
| 8921 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 8922 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 8923 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 8924 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 8925 | $as_echo_n "(cached) " >&6 |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8926 | else |
| 8927 | lt_cv_prog_compiler_c_o=no |
| 8928 | $RM -r conftest 2>/dev/null |
| 8929 | mkdir conftest |
| 8930 | cd conftest |
| 8931 | mkdir out |
| 8932 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 8933 | |
| 8934 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 8935 | # Insert the option either (1) after the last *FLAGS variable, or |
| 8936 | # (2) before a word containing "conftest.", or (3) at the end. |
| 8937 | # Note that $ac_compile itself does not contain backslashes and begins |
| 8938 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 8939 | lt_compile=`echo "$ac_compile" | $SED \ |
| 8940 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 8941 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 8942 | -e 's:$: $lt_compiler_flag:'` |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 8943 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8944 | (eval "$lt_compile" 2>out/conftest.err) |
| 8945 | ac_status=$? |
| 8946 | cat out/conftest.err >&5 |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 8947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8948 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 8949 | then |
| 8950 | # The compiler can only warn and ignore the option if not recognized |
| 8951 | # So say no if there are warnings |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 8952 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8953 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 8954 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| 8955 | lt_cv_prog_compiler_c_o=yes |
| 8956 | fi |
| 8957 | fi |
| 8958 | chmod u+w . 2>&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 8959 | $RM conftest* |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8960 | # SGI C++ compiler will create directory out/ii_files/ for |
| 8961 | # template instantiation |
| 8962 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 8963 | $RM out/* && rmdir out |
| 8964 | cd .. |
| 8965 | $RM -r conftest |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 8966 | $RM conftest* |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8967 | |
| 8968 | fi |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 8969 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 8970 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8971 | |
| 8972 | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8973 | |
| 8974 | |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 8975 | hard_links=nottested |
| 8976 | if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8977 | # do not overwrite the value of need_locks provided by the user |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 8978 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 8979 | $as_echo_n "checking if we can lock with hard links... " >&6; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8980 | hard_links=yes |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 8981 | $RM conftest* |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8982 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 8983 | touch conftest.a |
| 8984 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 8985 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 8986 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 8987 | $as_echo "$hard_links" >&6; } |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 8988 | if test no = "$hard_links"; then |
| 8989 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 |
| 8990 | $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 8991 | need_locks=warn |
| 8992 | fi |
| 8993 | else |
| 8994 | need_locks=no |
| 8995 | fi |
| 8996 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 8997 | |
| 8998 | |
| 8999 | |
| 9000 | |
| 9001 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 9002 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 9003 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9004 | |
| 9005 | runpath_var= |
| 9006 | allow_undefined_flag= |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 9007 | always_export_symbols=no |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9008 | archive_cmds= |
| 9009 | archive_expsym_cmds= |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 9010 | compiler_needs_object=no |
| 9011 | enable_shared_with_static_runtimes=no |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9012 | export_dynamic_flag_spec= |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 9013 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 9014 | hardcode_automatic=no |
| 9015 | hardcode_direct=no |
| 9016 | hardcode_direct_absolute=no |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9017 | hardcode_libdir_flag_spec= |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9018 | hardcode_libdir_separator= |
| 9019 | hardcode_minus_L=no |
| 9020 | hardcode_shlibpath_var=unsupported |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 9021 | inherit_rpath=no |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9022 | link_all_deplibs=unknown |
| 9023 | module_cmds= |
| 9024 | module_expsym_cmds= |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 9025 | old_archive_from_new_cmds= |
| 9026 | old_archive_from_expsyms_cmds= |
| 9027 | thread_safe_flag_spec= |
| 9028 | whole_archive_flag_spec= |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9029 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 9030 | # included in the symbol list |
| 9031 | include_expsyms= |
| 9032 | # exclude_expsyms can be an extended regexp of symbols to exclude |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 9033 | # it will be wrapped by ' (' and ')$', so one must not match beginning or |
| 9034 | # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', |
| 9035 | # as well as any symbol that contains 'd'. |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 9036 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9037 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 9038 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 9039 | # the symbol is explicitly referenced. Since portable code cannot |
| 9040 | # rely on this symbol name, it's probably fine to never include it in |
| 9041 | # preloaded symbol tables. |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 9042 | # Exclude shared library initialization/finalization symbols. |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9043 | extract_expsyms_cmds= |
| 9044 | |
| 9045 | case $host_os in |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 9046 | cygwin* | mingw* | pw32* | cegcc*) |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9047 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 9048 | # When not using gcc, we currently assume that we are using |
| 9049 | # Microsoft Visual C++. |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 9050 | if test yes != "$GCC"; then |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9051 | with_gnu_ld=no |
| 9052 | fi |
| 9053 | ;; |
| 9054 | interix*) |
| 9055 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
| 9056 | with_gnu_ld=yes |
| 9057 | ;; |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 9058 | openbsd* | bitrig*) |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9059 | with_gnu_ld=no |
| 9060 | ;; |
| 9061 | esac |
| 9062 | |
| 9063 | ld_shlibs=yes |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 9064 | |
| 9065 | # On some targets, GNU ld is compatible enough with the native linker |
| 9066 | # that we're better off using the native interface for both. |
| 9067 | lt_use_gnu_ld_interface=no |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 9068 | if test yes = "$with_gnu_ld"; then |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 9069 | case $host_os in |
| 9070 | aix*) |
| 9071 | # The AIX port of GNU ld has always aspired to compatibility |
| 9072 | # with the native linker. However, as the warning in the GNU ld |
| 9073 | # block says, versions before 2.19.5* couldn't really create working |
| 9074 | # shared libraries, regardless of the interface used. |
| 9075 | case `$LD -v 2>&1` in |
| 9076 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; |
| 9077 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; |
| 9078 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; |
| 9079 | *) |
| 9080 | lt_use_gnu_ld_interface=yes |
| 9081 | ;; |
| 9082 | esac |
| 9083 | ;; |
| 9084 | *) |
| 9085 | lt_use_gnu_ld_interface=yes |
| 9086 | ;; |
| 9087 | esac |
| 9088 | fi |
| 9089 | |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 9090 | if test yes = "$lt_use_gnu_ld_interface"; then |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9091 | # If archive_cmds runs LD, not CC, wlarc should be empty |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 9092 | wlarc='$wl' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9093 | |
| 9094 | # Set some defaults for GNU ld with shared library support. These |
| 9095 | # are reset later if shared libraries are not supported. Putting them |
| 9096 | # here allows them to be overridden if necessary. |
| 9097 | runpath_var=LD_RUN_PATH |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 9098 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
| 9099 | export_dynamic_flag_spec='$wl--export-dynamic' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9100 | # ancient GNU ld didn't support --whole-archive et. al. |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 9101 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 9102 | whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 9103 | else |
| 9104 | whole_archive_flag_spec= |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9105 | fi |
| 9106 | supports_anon_versioning=no |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 9107 | case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 9108 | *GNU\ gold*) supports_anon_versioning=yes ;; |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9109 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 9110 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 9111 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 9112 | *\ 2.11.*) ;; # other 2.11 versions |
| 9113 | *) supports_anon_versioning=yes ;; |
| 9114 | esac |
| 9115 | |
| 9116 | # See if GNU ld supports shared libraries. |
| 9117 | case $host_os in |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 9118 | aix[3-9]*) |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9119 | # On AIX/PPC, the GNU linker is very broken |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 9120 | if test ia64 != "$host_cpu"; then |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9121 | ld_shlibs=no |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 9122 | cat <<_LT_EOF 1>&2 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9123 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 9124 | *** Warning: the GNU linker, at least up to release 2.19, is reported |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9125 | *** to be unable to reliably create shared libraries on AIX. |
| 9126 | *** Therefore, libtool is disabling shared libraries support. If you |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 9127 | *** really care for shared libraries, you may want to install binutils |
| 9128 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. |
| 9129 | *** You will then need to restart the configuration process. |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9130 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 9131 | _LT_EOF |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9132 | fi |
| 9133 | ;; |
| 9134 | |
| 9135 | amigaos*) |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 9136 | case $host_cpu in |
| 9137 | powerpc) |
| 9138 | # see comment about AmigaOS4 .so support |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 9139 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 9140 | archive_expsym_cmds='' |
| 9141 | ;; |
| 9142 | m68k) |
| 9143 | 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)' |
| 9144 | hardcode_libdir_flag_spec='-L$libdir' |
| 9145 | hardcode_minus_L=yes |
| 9146 | ;; |
| 9147 | esac |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9148 | ;; |
| 9149 | |
| 9150 | beos*) |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 9151 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9152 | allow_undefined_flag=unsupported |
| 9153 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 9154 | # support --undefined. This deserves some investigation. FIXME |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 9155 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9156 | else |
| 9157 | ld_shlibs=no |
| 9158 | fi |
| 9159 | ;; |
| 9160 | |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 9161 | cygwin* | mingw* | pw32* | cegcc*) |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 9162 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9163 | # as there is no search path for DLLs. |
| 9164 | hardcode_libdir_flag_spec='-L$libdir' |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 9165 | export_dynamic_flag_spec='$wl--export-all-symbols' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9166 | allow_undefined_flag=unsupported |
| 9167 | always_export_symbols=no |
| 9168 | enable_shared_with_static_runtimes=yes |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 9169 | 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' |
| 9170 | exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9171 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 9172 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 9173 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 9174 | # If the export-symbols file already is a .def file, use it as |
| 9175 | # is; otherwise, prepend EXPORTS... |
| 9176 | archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then |
| 9177 | cp $export_symbols $output_objdir/$soname.def; |
| 9178 | else |
| 9179 | echo EXPORTS > $output_objdir/$soname.def; |
| 9180 | cat $export_symbols >> $output_objdir/$soname.def; |
| 9181 | fi~ |
| 9182 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9183 | else |
| 9184 | ld_shlibs=no |
| 9185 | fi |
| 9186 | ;; |
| 9187 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 9188 | haiku*) |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 9189 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 9190 | link_all_deplibs=yes |
| 9191 | ;; |
| 9192 | |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 9193 | os2*) |
| 9194 | hardcode_libdir_flag_spec='-L$libdir' |
| 9195 | hardcode_minus_L=yes |
| 9196 | allow_undefined_flag=unsupported |
| 9197 | shrext_cmds=.dll |
| 9198 | archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ |
| 9199 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ |
| 9200 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ |
| 9201 | $ECHO EXPORTS >> $output_objdir/$libname.def~ |
| 9202 | emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ |
| 9203 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ |
| 9204 | emximp -o $lib $output_objdir/$libname.def' |
| 9205 | archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ |
| 9206 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ |
| 9207 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ |
| 9208 | $ECHO EXPORTS >> $output_objdir/$libname.def~ |
| 9209 | prefix_cmds="$SED"~ |
| 9210 | if test EXPORTS = "`$SED 1q $export_symbols`"; then |
| 9211 | prefix_cmds="$prefix_cmds -e 1d"; |
| 9212 | fi~ |
| 9213 | prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ |
| 9214 | cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ |
| 9215 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ |
| 9216 | emximp -o $lib $output_objdir/$libname.def' |
| 9217 | old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' |
| 9218 | enable_shared_with_static_runtimes=yes |
| 9219 | ;; |
| 9220 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 9221 | interix[3-9]*) |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9222 | hardcode_direct=no |
| 9223 | hardcode_shlibpath_var=no |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 9224 | hardcode_libdir_flag_spec='$wl-rpath,$libdir' |
| 9225 | export_dynamic_flag_spec='$wl-E' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9226 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 9227 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 9228 | # default) and relocated if they conflict, which is a slow very memory |
| 9229 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 9230 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 9231 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 9232 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 9233 | 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' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9234 | ;; |
| 9235 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 9236 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 9237 | tmp_diet=no |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 9238 | if test linux-dietlibc = "$host_os"; then |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 9239 | case $cc_basename in |
| 9240 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) |
| 9241 | esac |
| 9242 | fi |
| 9243 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 9244 | && test no = "$tmp_diet" |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 9245 | then |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 9246 | tmp_addflag=' $pic_flag' |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 9247 | tmp_sharedflag='-shared' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9248 | case $cc_basename,$host_cpu in |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 9249 | pgcc*) # Portland Group C compiler |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 9250 | 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' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9251 | tmp_addflag=' $pic_flag' |
| 9252 | ;; |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 9253 | pgf77* | pgf90* | pgf95* | pgfortran*) |
| 9254 | # Portland Group f77 and f90 compilers |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 9255 | 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' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9256 | tmp_addflag=' $pic_flag -Mnomain' ;; |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 9257 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9258 | tmp_addflag=' -i_dynamic' ;; |
| 9259 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
| 9260 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
| 9261 | ifc* | ifort*) # Intel Fortran compiler |
| 9262 | tmp_addflag=' -nofor_main' ;; |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 9263 | lf95*) # Lahey Fortran 8.1 |
| 9264 | whole_archive_flag_spec= |
| 9265 | tmp_sharedflag='--shared' ;; |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 9266 | nagfor*) # NAGFOR 5.3 |
| 9267 | tmp_sharedflag='-Wl,-shared' ;; |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 9268 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 9269 | tmp_sharedflag='-qmkshrobj' |
| 9270 | tmp_addflag= ;; |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 9271 | nvcc*) # Cuda Compiler Driver 2.2 |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 9272 | 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' |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 9273 | compiler_needs_object=yes |
| 9274 | ;; |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9275 | esac |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 9276 | case `$CC -V 2>&1 | sed 5q` in |
| 9277 | *Sun\ C*) # Sun C 5.9 |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 9278 | 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' |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 9279 | compiler_needs_object=yes |
| 9280 | tmp_sharedflag='-G' ;; |
| 9281 | *Sun\ F*) # Sun Fortran 8.3 |
| 9282 | tmp_sharedflag='-G' ;; |
| 9283 | esac |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 9284 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9285 | |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 9286 | if test yes = "$supports_anon_versioning"; then |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 9287 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 9288 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 9289 | echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 9290 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 9291 | fi |
| 9292 | |
| 9293 | case $cc_basename in |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 9294 | tcc*) |
| 9295 | export_dynamic_flag_spec='-rdynamic' |
| 9296 | ;; |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 9297 | xlf* | bgf* | bgxlf* | mpixlf*) |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 9298 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
| 9299 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 9300 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 9301 | archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 9302 | if test yes = "$supports_anon_versioning"; then |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 9303 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 9304 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 9305 | echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 9306 | $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 9307 | fi |
| 9308 | ;; |
| 9309 | esac |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9310 | else |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 9311 | ld_shlibs=no |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9312 | fi |
| 9313 | ;; |
| 9314 | |
| 9315 | netbsd*) |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 9316 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9317 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 9318 | wlarc= |
| 9319 | else |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 9320 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
| 9321 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9322 | fi |
| 9323 | ;; |
| 9324 | |
| 9325 | solaris*) |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 9326 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9327 | ld_shlibs=no |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 9328 | cat <<_LT_EOF 1>&2 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9329 | |
| 9330 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 9331 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 9332 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 9333 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 9334 | *** your PATH or compiler configuration so that the native linker is |
| 9335 | *** used, and then restart. |
| 9336 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 9337 | _LT_EOF |
| 9338 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 9339 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
| 9340 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9341 | else |
| 9342 | ld_shlibs=no |
| 9343 | fi |
| 9344 | ;; |
| 9345 | |
| 9346 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
| 9347 | case `$LD -v 2>&1` in |
| 9348 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
| 9349 | ld_shlibs=no |
| 9350 | cat <<_LT_EOF 1>&2 |
| 9351 | |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 9352 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9353 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
| 9354 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 9355 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
| 9356 | *** your PATH or compiler configuration so that the native linker is |
| 9357 | *** used, and then restart. |
| 9358 | |
| 9359 | _LT_EOF |
| 9360 | ;; |
| 9361 | *) |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 9362 | # For security reasons, it is highly recommended that you always |
| 9363 | # use absolute paths for naming shared libraries, and exclude the |
| 9364 | # DT_RUNPATH tag from executables and libraries. But doing so |
| 9365 | # requires that you compile everything twice, which is a pain. |
| 9366 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 9367 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
| 9368 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
| 9369 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9370 | else |
| 9371 | ld_shlibs=no |
| 9372 | fi |
| 9373 | ;; |
| 9374 | esac |
| 9375 | ;; |
| 9376 | |
| 9377 | sunos4*) |
| 9378 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 9379 | wlarc= |
| 9380 | hardcode_direct=yes |
| 9381 | hardcode_shlibpath_var=no |
| 9382 | ;; |
| 9383 | |
| 9384 | *) |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 9385 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 9386 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
| 9387 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9388 | else |
| 9389 | ld_shlibs=no |
| 9390 | fi |
| 9391 | ;; |
| 9392 | esac |
| 9393 | |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 9394 | if test no = "$ld_shlibs"; then |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9395 | runpath_var= |
| 9396 | hardcode_libdir_flag_spec= |
| 9397 | export_dynamic_flag_spec= |
| 9398 | whole_archive_flag_spec= |
| 9399 | fi |
| 9400 | else |
| 9401 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 9402 | case $host_os in |
| 9403 | aix3*) |
| 9404 | allow_undefined_flag=unsupported |
| 9405 | always_export_symbols=yes |
| 9406 | 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' |
| 9407 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 9408 | # are no directories specified by -L. |
| 9409 | hardcode_minus_L=yes |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 9410 | if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9411 | # Neither direct hardcoding nor static linking is supported with a |
| 9412 | # broken collect2. |
| 9413 | hardcode_direct=unsupported |
| 9414 | fi |
| 9415 | ;; |
| 9416 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 9417 | aix[4-9]*) |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 9418 | if test ia64 = "$host_cpu"; then |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9419 | # On IA64, the linker does run time linking by default, so we don't |
| 9420 | # have to do anything special. |
| 9421 | aix_use_runtimelinking=no |
| 9422 | exp_sym_flag='-Bexport' |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 9423 | no_entry_flag= |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9424 | else |
| 9425 | # If we're using GNU nm, then we don't want the "-C" option. |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 9426 | # -C means demangle to GNU nm, but means don't demangle to AIX nm. |
| 9427 | # Without the "-l" option, or with the "-B" option, AIX nm treats |
| 9428 | # weak defined symbols like other global defined symbols, whereas |
| 9429 | # GNU nm marks them as "W". |
| 9430 | # While the 'weak' keyword is ignored in the Export File, we need |
| 9431 | # it in the Import File for the 'aix-soname' feature, so we have |
| 9432 | # to replace the "-B" option with "-P" for AIX nm. |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 9433 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 9434 | export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9435 | else |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 9436 | export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9437 | fi |
| 9438 | aix_use_runtimelinking=no |
| 9439 | |
| 9440 | # Test if we are trying to use run time linking or normal |
| 9441 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 9442 | # have runtime linking enabled, and use it for executables. |
| 9443 | # For shared libraries, we enable/disable runtime linking |
| 9444 | # depending on the kind of the shared library created - |
| 9445 | # when "with_aix_soname,aix_use_runtimelinking" is: |
| 9446 | # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables |
| 9447 | # "aix,yes" lib.so shared, rtl:yes, for executables |
| 9448 | # lib.a static archive |
| 9449 | # "both,no" lib.so.V(shr.o) shared, rtl:yes |
| 9450 | # lib.a(lib.so.V) shared, rtl:no, for executables |
| 9451 | # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables |
| 9452 | # lib.a(lib.so.V) shared, rtl:no |
| 9453 | # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables |
| 9454 | # lib.a static archive |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 9455 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9456 | for ld_flag in $LDFLAGS; do |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 9457 | if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 9458 | aix_use_runtimelinking=yes |
| 9459 | break |
| 9460 | fi |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9461 | done |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 9462 | if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then |
| 9463 | # With aix-soname=svr4, we create the lib.so.V shared archives only, |
| 9464 | # so we don't have lib.a shared libs to link our executables. |
| 9465 | # We have to force runtime linking in this case. |
| 9466 | aix_use_runtimelinking=yes |
| 9467 | LDFLAGS="$LDFLAGS -Wl,-brtl" |
| 9468 | fi |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9469 | ;; |
| 9470 | esac |
| 9471 | |
| 9472 | exp_sym_flag='-bexport' |
| 9473 | no_entry_flag='-bnoentry' |
| 9474 | fi |
| 9475 | |
| 9476 | # When large executables or shared objects are built, AIX ld can |
| 9477 | # have problems creating the table of contents. If linking a library |
| 9478 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 9479 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 9480 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 9481 | |
| 9482 | archive_cmds='' |
| 9483 | hardcode_direct=yes |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 9484 | hardcode_direct_absolute=yes |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9485 | hardcode_libdir_separator=':' |
| 9486 | link_all_deplibs=yes |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 9487 | file_list_spec='$wl-f,' |
| 9488 | case $with_aix_soname,$aix_use_runtimelinking in |
| 9489 | aix,*) ;; # traditional, no import file |
| 9490 | svr4,* | *,yes) # use import file |
| 9491 | # The Import File defines what to hardcode. |
| 9492 | hardcode_direct=no |
| 9493 | hardcode_direct_absolute=no |
| 9494 | ;; |
| 9495 | esac |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9496 | |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 9497 | if test yes = "$GCC"; then |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9498 | case $host_os in aix4.[012]|aix4.[012].*) |
| 9499 | # We only want to do this on AIX 4.2 and lower, the check |
| 9500 | # below for broken collect2 doesn't work under 4.3+ |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 9501 | collect2name=`$CC -print-prog-name=collect2` |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 9502 | if test -f "$collect2name" && |
| 9503 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9504 | then |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 9505 | # We have reworked collect2 |
| 9506 | : |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9507 | else |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 9508 | # We have old collect2 |
| 9509 | hardcode_direct=unsupported |
| 9510 | # It fails to find uninstalled libraries when the uninstalled |
| 9511 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 9512 | # to unsupported forces relinking |
| 9513 | hardcode_minus_L=yes |
| 9514 | hardcode_libdir_flag_spec='-L$libdir' |
| 9515 | hardcode_libdir_separator= |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9516 | fi |
| 9517 | ;; |
| 9518 | esac |
| 9519 | shared_flag='-shared' |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 9520 | if test yes = "$aix_use_runtimelinking"; then |
| 9521 | shared_flag="$shared_flag "'$wl-G' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9522 | fi |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 9523 | # Need to ensure runtime linking is disabled for the traditional |
| 9524 | # shared library, or the linker may eventually find shared libraries |
| 9525 | # /with/ Import File - we do not want to mix them. |
| 9526 | shared_flag_aix='-shared' |
| 9527 | shared_flag_svr4='-shared $wl-G' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9528 | else |
| 9529 | # not using gcc |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 9530 | if test ia64 = "$host_cpu"; then |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 9531 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 9532 | # chokes on -Wl,-G. The following line is correct: |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9533 | shared_flag='-G' |
| 9534 | else |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 9535 | if test yes = "$aix_use_runtimelinking"; then |
| 9536 | shared_flag='$wl-G' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9537 | else |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 9538 | shared_flag='$wl-bM:SRE' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9539 | fi |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 9540 | shared_flag_aix='$wl-bM:SRE' |
| 9541 | shared_flag_svr4='$wl-G' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9542 | fi |
| 9543 | fi |
| 9544 | |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 9545 | export_dynamic_flag_spec='$wl-bexpall' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9546 | # It seems that -bexpall does not export symbols beginning with |
| 9547 | # underscore (_), so it is better to generate a list of symbols to export. |
| 9548 | always_export_symbols=yes |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 9549 | if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9550 | # Warning - without using the other runtime loading flags (-brtl), |
| 9551 | # -berok will link without error, but may produce a broken library. |
| 9552 | allow_undefined_flag='-berok' |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 9553 | # Determine the default libpath from the value encoded in an |
| 9554 | # empty executable. |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 9555 | if test set = "${lt_cv_aix_libpath+set}"; then |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 9556 | aix_libpath=$lt_cv_aix_libpath |
| 9557 | else |
| 9558 | if ${lt_cv_aix_libpath_+:} false; then : |
| 9559 | $as_echo_n "(cached) " >&6 |
| 9560 | else |
| 9561 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9562 | /* end confdefs.h. */ |
| 9563 | |
| 9564 | int |
| 9565 | main () |
| 9566 | { |
| 9567 | |
| 9568 | ; |
| 9569 | return 0; |
| 9570 | } |
| 9571 | _ACEOF |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 9572 | if ac_fn_c_try_link "$LINENO"; then : |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9573 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 9574 | lt_aix_libpath_sed=' |
| 9575 | /Import File Strings/,/^$/ { |
| 9576 | /^0/ { |
| 9577 | s/^0 *\([^ ]*\) *$/\1/ |
| 9578 | p |
| 9579 | } |
| 9580 | }' |
| 9581 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 9582 | # Check for a 64-bit object if we didn't find anything. |
| 9583 | if test -z "$lt_cv_aix_libpath_"; then |
| 9584 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 9585 | fi |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 9586 | fi |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 9587 | rm -f core conftest.err conftest.$ac_objext \ |
| 9588 | conftest$ac_exeext conftest.$ac_ext |
| 9589 | if test -z "$lt_cv_aix_libpath_"; then |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 9590 | lt_cv_aix_libpath_=/usr/lib:/lib |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 9591 | fi |
Jef Poskanzer | 437537f | 2012-11-30 12:16:17 -0800 | [diff] [blame] | 9592 | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9593 | fi |
Jef Poskanzer | 437537f | 2012-11-30 12:16:17 -0800 | [diff] [blame] | 9594 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 9595 | aix_libpath=$lt_cv_aix_libpath_ |
| 9596 | fi |
jef | 2ab386b | 2012-08-10 12:43:50 -0700 | [diff] [blame] | 9597 | |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 9598 | hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" |
| 9599 | archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 9600 | else |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 9601 | if test ia64 = "$host_cpu"; then |
| 9602 | hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9603 | allow_undefined_flag="-z nodefs" |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 9604 | 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" |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9605 | else |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 9606 | # Determine the default libpath from the value encoded in an |
| 9607 | # empty executable. |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 9608 | if test set = "${lt_cv_aix_libpath+set}"; then |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 9609 | aix_libpath=$lt_cv_aix_libpath |
| 9610 | else |
| 9611 | if ${lt_cv_aix_libpath_+:} false; then : |
| 9612 | $as_echo_n "(cached) " >&6 |
| 9613 | else |
| 9614 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9615 | /* end confdefs.h. */ |
| 9616 | |
| 9617 | int |
| 9618 | main () |
| 9619 | { |
| 9620 | |
| 9621 | ; |
| 9622 | return 0; |
| 9623 | } |
| 9624 | _ACEOF |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 9625 | if ac_fn_c_try_link "$LINENO"; then : |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9626 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 9627 | lt_aix_libpath_sed=' |
| 9628 | /Import File Strings/,/^$/ { |
| 9629 | /^0/ { |
| 9630 | s/^0 *\([^ ]*\) *$/\1/ |
| 9631 | p |
| 9632 | } |
| 9633 | }' |
| 9634 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 9635 | # Check for a 64-bit object if we didn't find anything. |
| 9636 | if test -z "$lt_cv_aix_libpath_"; then |
| 9637 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 9638 | fi |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 9639 | fi |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 9640 | rm -f core conftest.err conftest.$ac_objext \ |
| 9641 | conftest$ac_exeext conftest.$ac_ext |
| 9642 | if test -z "$lt_cv_aix_libpath_"; then |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 9643 | lt_cv_aix_libpath_=/usr/lib:/lib |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 9644 | fi |
Jef Poskanzer | 437537f | 2012-11-30 12:16:17 -0800 | [diff] [blame] | 9645 | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9646 | fi |
Jef Poskanzer | 437537f | 2012-11-30 12:16:17 -0800 | [diff] [blame] | 9647 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 9648 | aix_libpath=$lt_cv_aix_libpath_ |
| 9649 | fi |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9650 | |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 9651 | hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9652 | # Warning - without using the other run time loading flags, |
| 9653 | # -berok will link without error, but may produce a broken library. |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 9654 | no_undefined_flag=' $wl-bernotok' |
| 9655 | allow_undefined_flag=' $wl-berok' |
| 9656 | if test yes = "$with_gnu_ld"; then |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 9657 | # We only use this code for GNU lds that support --whole-archive. |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 9658 | whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 9659 | else |
| 9660 | # Exported symbols can be pulled into shared objects from archives |
| 9661 | whole_archive_flag_spec='$convenience' |
| 9662 | fi |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9663 | archive_cmds_need_lc=yes |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 9664 | archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' |
| 9665 | # -brtl affects multiple linker settings, -berok does not and is overridden later |
| 9666 | compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' |
| 9667 | if test svr4 != "$with_aix_soname"; then |
| 9668 | # This is similar to how AIX traditionally builds its shared libraries. |
| 9669 | archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' |
| 9670 | fi |
| 9671 | if test aix != "$with_aix_soname"; then |
| 9672 | archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' |
| 9673 | else |
| 9674 | # used by -dlpreopen to get the symbols |
| 9675 | archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' |
| 9676 | fi |
| 9677 | archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9678 | fi |
| 9679 | fi |
| 9680 | ;; |
| 9681 | |
| 9682 | amigaos*) |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 9683 | case $host_cpu in |
| 9684 | powerpc) |
| 9685 | # see comment about AmigaOS4 .so support |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 9686 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 9687 | archive_expsym_cmds='' |
| 9688 | ;; |
| 9689 | m68k) |
| 9690 | 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)' |
| 9691 | hardcode_libdir_flag_spec='-L$libdir' |
| 9692 | hardcode_minus_L=yes |
| 9693 | ;; |
| 9694 | esac |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9695 | ;; |
| 9696 | |
| 9697 | bsdi[45]*) |
| 9698 | export_dynamic_flag_spec=-rdynamic |
| 9699 | ;; |
| 9700 | |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 9701 | cygwin* | mingw* | pw32* | cegcc*) |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9702 | # When not using gcc, we currently assume that we are using |
| 9703 | # Microsoft Visual C++. |
| 9704 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 9705 | # no search path for DLLs. |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 9706 | case $cc_basename in |
| 9707 | cl*) |
| 9708 | # Native MSVC |
| 9709 | hardcode_libdir_flag_spec=' ' |
| 9710 | allow_undefined_flag=unsupported |
| 9711 | always_export_symbols=yes |
| 9712 | file_list_spec='@' |
| 9713 | # Tell ltmain to make .lib files, not .a files. |
| 9714 | libext=lib |
| 9715 | # Tell ltmain to make .dll files, not .so files. |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 9716 | shrext_cmds=.dll |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 9717 | # FIXME: Setting linknames here is a bad hack. |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 9718 | archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' |
| 9719 | archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then |
| 9720 | cp "$export_symbols" "$output_objdir/$soname.def"; |
| 9721 | echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; |
| 9722 | else |
| 9723 | $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; |
| 9724 | fi~ |
| 9725 | $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ |
| 9726 | linknames=' |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 9727 | # The linker will not automatically build a static lib if we build a DLL. |
| 9728 | # _LT_TAGVAR(old_archive_from_new_cmds, )='true' |
| 9729 | enable_shared_with_static_runtimes=yes |
| 9730 | exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' |
| 9731 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' |
| 9732 | # Don't use ranlib |
| 9733 | old_postinstall_cmds='chmod 644 $oldlib' |
| 9734 | postlink_cmds='lt_outputfile="@OUTPUT@"~ |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 9735 | lt_tool_outputfile="@TOOL_OUTPUT@"~ |
| 9736 | case $lt_outputfile in |
| 9737 | *.exe|*.EXE) ;; |
| 9738 | *) |
| 9739 | lt_outputfile=$lt_outputfile.exe |
| 9740 | lt_tool_outputfile=$lt_tool_outputfile.exe |
| 9741 | ;; |
| 9742 | esac~ |
| 9743 | if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then |
| 9744 | $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; |
| 9745 | $RM "$lt_outputfile.manifest"; |
| 9746 | fi' |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 9747 | ;; |
| 9748 | *) |
| 9749 | # Assume MSVC wrapper |
| 9750 | hardcode_libdir_flag_spec=' ' |
| 9751 | allow_undefined_flag=unsupported |
| 9752 | # Tell ltmain to make .lib files, not .a files. |
| 9753 | libext=lib |
| 9754 | # Tell ltmain to make .dll files, not .so files. |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 9755 | shrext_cmds=.dll |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 9756 | # FIXME: Setting linknames here is a bad hack. |
| 9757 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' |
| 9758 | # The linker will automatically build a .lib file if we build a DLL. |
| 9759 | old_archive_from_new_cmds='true' |
| 9760 | # FIXME: Should let the user specify the lib program. |
| 9761 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' |
| 9762 | enable_shared_with_static_runtimes=yes |
| 9763 | ;; |
| 9764 | esac |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9765 | ;; |
| 9766 | |
| 9767 | darwin* | rhapsody*) |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 9768 | |
| 9769 | |
| 9770 | archive_cmds_need_lc=no |
| 9771 | hardcode_direct=no |
| 9772 | hardcode_automatic=yes |
| 9773 | hardcode_shlibpath_var=unsupported |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 9774 | if test yes = "$lt_cv_ld_force_load"; then |
| 9775 | 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\"`' |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 9776 | |
| 9777 | else |
| 9778 | whole_archive_flag_spec='' |
| 9779 | fi |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 9780 | link_all_deplibs=yes |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 9781 | allow_undefined_flag=$_lt_dar_allow_undefined |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 9782 | case $cc_basename in |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 9783 | ifort*|nagfor*) _lt_dar_can_shared=yes ;; |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 9784 | *) _lt_dar_can_shared=$GCC ;; |
| 9785 | esac |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 9786 | if test yes = "$_lt_dar_can_shared"; then |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 9787 | output_verbose_link_cmd=func_echo_all |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 9788 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" |
| 9789 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" |
| 9790 | 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" |
| 9791 | 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" |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 9792 | |
| 9793 | else |
| 9794 | ld_shlibs=no |
| 9795 | fi |
| 9796 | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9797 | ;; |
| 9798 | |
| 9799 | dgux*) |
| 9800 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 9801 | hardcode_libdir_flag_spec='-L$libdir' |
| 9802 | hardcode_shlibpath_var=no |
| 9803 | ;; |
| 9804 | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9805 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 9806 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 9807 | # does not break anything, and helps significantly (at the cost of a little |
| 9808 | # extra space). |
| 9809 | freebsd2.2*) |
| 9810 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 9811 | hardcode_libdir_flag_spec='-R$libdir' |
| 9812 | hardcode_direct=yes |
| 9813 | hardcode_shlibpath_var=no |
| 9814 | ;; |
| 9815 | |
| 9816 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 9817 | freebsd2.*) |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9818 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 9819 | hardcode_direct=yes |
| 9820 | hardcode_minus_L=yes |
| 9821 | hardcode_shlibpath_var=no |
| 9822 | ;; |
| 9823 | |
| 9824 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 9825 | freebsd* | dragonfly*) |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 9826 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9827 | hardcode_libdir_flag_spec='-R$libdir' |
| 9828 | hardcode_direct=yes |
| 9829 | hardcode_shlibpath_var=no |
| 9830 | ;; |
| 9831 | |
| 9832 | hpux9*) |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 9833 | if test yes = "$GCC"; then |
| 9834 | archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9835 | else |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 9836 | archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9837 | fi |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 9838 | hardcode_libdir_flag_spec='$wl+b $wl$libdir' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9839 | hardcode_libdir_separator=: |
| 9840 | hardcode_direct=yes |
| 9841 | |
| 9842 | # hardcode_minus_L: Not really in the search PATH, |
| 9843 | # but as the default location of the library. |
| 9844 | hardcode_minus_L=yes |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 9845 | export_dynamic_flag_spec='$wl-E' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9846 | ;; |
| 9847 | |
| 9848 | hpux10*) |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 9849 | if test yes,no = "$GCC,$with_gnu_ld"; then |
| 9850 | archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9851 | else |
| 9852 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 9853 | fi |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 9854 | if test no = "$with_gnu_ld"; then |
| 9855 | hardcode_libdir_flag_spec='$wl+b $wl$libdir' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9856 | hardcode_libdir_separator=: |
| 9857 | hardcode_direct=yes |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 9858 | hardcode_direct_absolute=yes |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 9859 | export_dynamic_flag_spec='$wl-E' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9860 | # hardcode_minus_L: Not really in the search PATH, |
| 9861 | # but as the default location of the library. |
| 9862 | hardcode_minus_L=yes |
| 9863 | fi |
| 9864 | ;; |
| 9865 | |
| 9866 | hpux11*) |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 9867 | if test yes,no = "$GCC,$with_gnu_ld"; then |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9868 | case $host_cpu in |
| 9869 | hppa*64*) |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 9870 | archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9871 | ;; |
| 9872 | ia64*) |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 9873 | archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9874 | ;; |
| 9875 | *) |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 9876 | archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9877 | ;; |
| 9878 | esac |
| 9879 | else |
| 9880 | case $host_cpu in |
| 9881 | hppa*64*) |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 9882 | archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9883 | ;; |
| 9884 | ia64*) |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 9885 | archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9886 | ;; |
| 9887 | *) |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 9888 | |
| 9889 | # Older versions of the 11.00 compiler do not understand -b yet |
| 9890 | # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) |
| 9891 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 |
| 9892 | $as_echo_n "checking if $CC understands -b... " >&6; } |
| 9893 | if ${lt_cv_prog_compiler__b+:} false; then : |
| 9894 | $as_echo_n "(cached) " >&6 |
| 9895 | else |
| 9896 | lt_cv_prog_compiler__b=no |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 9897 | save_LDFLAGS=$LDFLAGS |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 9898 | LDFLAGS="$LDFLAGS -b" |
| 9899 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
| 9900 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 9901 | # The linker can only warn and ignore the option if not recognized |
| 9902 | # So say no if there are warnings |
| 9903 | if test -s conftest.err; then |
| 9904 | # Append any errors to the config.log. |
| 9905 | cat conftest.err 1>&5 |
| 9906 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
| 9907 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 9908 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 9909 | lt_cv_prog_compiler__b=yes |
| 9910 | fi |
| 9911 | else |
| 9912 | lt_cv_prog_compiler__b=yes |
| 9913 | fi |
| 9914 | fi |
| 9915 | $RM -r conftest* |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 9916 | LDFLAGS=$save_LDFLAGS |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 9917 | |
| 9918 | fi |
| 9919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 |
| 9920 | $as_echo "$lt_cv_prog_compiler__b" >&6; } |
| 9921 | |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 9922 | if test yes = "$lt_cv_prog_compiler__b"; then |
| 9923 | archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 9924 | else |
| 9925 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 9926 | fi |
| 9927 | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9928 | ;; |
| 9929 | esac |
| 9930 | fi |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 9931 | if test no = "$with_gnu_ld"; then |
| 9932 | hardcode_libdir_flag_spec='$wl+b $wl$libdir' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9933 | hardcode_libdir_separator=: |
| 9934 | |
| 9935 | case $host_cpu in |
| 9936 | hppa*64*|ia64*) |
| 9937 | hardcode_direct=no |
| 9938 | hardcode_shlibpath_var=no |
| 9939 | ;; |
| 9940 | *) |
| 9941 | hardcode_direct=yes |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 9942 | hardcode_direct_absolute=yes |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 9943 | export_dynamic_flag_spec='$wl-E' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9944 | |
| 9945 | # hardcode_minus_L: Not really in the search PATH, |
| 9946 | # but as the default location of the library. |
| 9947 | hardcode_minus_L=yes |
| 9948 | ;; |
| 9949 | esac |
| 9950 | fi |
| 9951 | ;; |
| 9952 | |
| 9953 | irix5* | irix6* | nonstopux*) |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 9954 | if test yes = "$GCC"; then |
| 9955 | 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' |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 9956 | # Try to use the -exported_symbol ld option, if it does not |
| 9957 | # work, assume that -exports_file does not work either and |
| 9958 | # implicitly export all symbols. |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 9959 | # This should be the same for all languages, so no per-tag cache variable. |
| 9960 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 |
| 9961 | $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } |
| 9962 | if ${lt_cv_irix_exported_symbol+:} false; then : |
| 9963 | $as_echo_n "(cached) " >&6 |
Bruce A. Mah | dc1dd2d | 2014-03-04 14:34:40 -0800 | [diff] [blame] | 9964 | else |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 9965 | save_LDFLAGS=$LDFLAGS |
| 9966 | LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 9967 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9968 | /* end confdefs.h. */ |
| 9969 | int foo (void) { return 0; } |
| 9970 | _ACEOF |
| 9971 | if ac_fn_c_try_link "$LINENO"; then : |
| 9972 | lt_cv_irix_exported_symbol=yes |
| 9973 | else |
| 9974 | lt_cv_irix_exported_symbol=no |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 9975 | fi |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 9976 | rm -f core conftest.err conftest.$ac_objext \ |
| 9977 | conftest$ac_exeext conftest.$ac_ext |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 9978 | LDFLAGS=$save_LDFLAGS |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 9979 | fi |
| 9980 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 |
| 9981 | $as_echo "$lt_cv_irix_exported_symbol" >&6; } |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 9982 | if test yes = "$lt_cv_irix_exported_symbol"; then |
| 9983 | 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' |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 9984 | fi |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9985 | else |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 9986 | 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' |
| 9987 | 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' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9988 | fi |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 9989 | archive_cmds_need_lc='no' |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 9990 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9991 | hardcode_libdir_separator=: |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 9992 | inherit_rpath=yes |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 9993 | link_all_deplibs=yes |
| 9994 | ;; |
| 9995 | |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 9996 | linux*) |
| 9997 | case $cc_basename in |
| 9998 | tcc*) |
| 9999 | # Fabrice Bellard et al's Tiny C Compiler |
| 10000 | ld_shlibs=yes |
| 10001 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 10002 | ;; |
| 10003 | esac |
| 10004 | ;; |
| 10005 | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10006 | netbsd*) |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 10007 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10008 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 10009 | else |
| 10010 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 10011 | fi |
| 10012 | hardcode_libdir_flag_spec='-R$libdir' |
| 10013 | hardcode_direct=yes |
| 10014 | hardcode_shlibpath_var=no |
| 10015 | ;; |
| 10016 | |
| 10017 | newsos6) |
| 10018 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 10019 | hardcode_direct=yes |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 10020 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10021 | hardcode_libdir_separator=: |
| 10022 | hardcode_shlibpath_var=no |
| 10023 | ;; |
| 10024 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 10025 | *nto* | *qnx*) |
| 10026 | ;; |
| 10027 | |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 10028 | openbsd* | bitrig*) |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 10029 | if test -f /usr/libexec/ld.so; then |
| 10030 | hardcode_direct=yes |
| 10031 | hardcode_shlibpath_var=no |
| 10032 | hardcode_direct_absolute=yes |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 10033 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 10034 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 10035 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' |
| 10036 | hardcode_libdir_flag_spec='$wl-rpath,$libdir' |
| 10037 | export_dynamic_flag_spec='$wl-E' |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 10038 | else |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 10039 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 10040 | hardcode_libdir_flag_spec='$wl-rpath,$libdir' |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 10041 | fi |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10042 | else |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 10043 | ld_shlibs=no |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10044 | fi |
| 10045 | ;; |
| 10046 | |
| 10047 | os2*) |
| 10048 | hardcode_libdir_flag_spec='-L$libdir' |
| 10049 | hardcode_minus_L=yes |
| 10050 | allow_undefined_flag=unsupported |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 10051 | shrext_cmds=.dll |
| 10052 | archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ |
| 10053 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ |
| 10054 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ |
| 10055 | $ECHO EXPORTS >> $output_objdir/$libname.def~ |
| 10056 | emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ |
| 10057 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ |
| 10058 | emximp -o $lib $output_objdir/$libname.def' |
| 10059 | archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ |
| 10060 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ |
| 10061 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ |
| 10062 | $ECHO EXPORTS >> $output_objdir/$libname.def~ |
| 10063 | prefix_cmds="$SED"~ |
| 10064 | if test EXPORTS = "`$SED 1q $export_symbols`"; then |
| 10065 | prefix_cmds="$prefix_cmds -e 1d"; |
| 10066 | fi~ |
| 10067 | prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ |
| 10068 | cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ |
| 10069 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ |
| 10070 | emximp -o $lib $output_objdir/$libname.def' |
| 10071 | old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' |
| 10072 | enable_shared_with_static_runtimes=yes |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10073 | ;; |
| 10074 | |
| 10075 | osf3*) |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 10076 | if test yes = "$GCC"; then |
| 10077 | allow_undefined_flag=' $wl-expect_unresolved $wl\*' |
| 10078 | 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' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10079 | else |
| 10080 | allow_undefined_flag=' -expect_unresolved \*' |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 10081 | 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' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10082 | fi |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 10083 | archive_cmds_need_lc='no' |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 10084 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10085 | hardcode_libdir_separator=: |
| 10086 | ;; |
| 10087 | |
| 10088 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 10089 | if test yes = "$GCC"; then |
| 10090 | allow_undefined_flag=' $wl-expect_unresolved $wl\*' |
| 10091 | 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' |
| 10092 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10093 | else |
| 10094 | allow_undefined_flag=' -expect_unresolved \*' |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 10095 | 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' |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 10096 | 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~ |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 10097 | $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' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10098 | |
| 10099 | # Both c and cxx compiler support -rpath directly |
| 10100 | hardcode_libdir_flag_spec='-rpath $libdir' |
| 10101 | fi |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 10102 | archive_cmds_need_lc='no' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10103 | hardcode_libdir_separator=: |
| 10104 | ;; |
| 10105 | |
| 10106 | solaris*) |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 10107 | no_undefined_flag=' -z defs' |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 10108 | if test yes = "$GCC"; then |
| 10109 | wlarc='$wl' |
| 10110 | archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 10111 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 10112 | $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' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10113 | else |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 10114 | case `$CC -V 2>&1` in |
| 10115 | *"Compilers 5.0"*) |
| 10116 | wlarc='' |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 10117 | archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 10118 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 10119 | $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 10120 | ;; |
| 10121 | *) |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 10122 | wlarc='$wl' |
| 10123 | archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 10124 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 10125 | $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 10126 | ;; |
| 10127 | esac |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10128 | fi |
| 10129 | hardcode_libdir_flag_spec='-R$libdir' |
| 10130 | hardcode_shlibpath_var=no |
| 10131 | case $host_os in |
| 10132 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 10133 | *) |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 10134 | # The compiler driver will combine and reorder linker options, |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 10135 | # but understands '-z linker_flag'. GCC discards it without '$wl', |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 10136 | # but is careful enough not to reorder. |
| 10137 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 10138 | if test yes = "$GCC"; then |
| 10139 | whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 10140 | else |
| 10141 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' |
| 10142 | fi |
| 10143 | ;; |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10144 | esac |
| 10145 | link_all_deplibs=yes |
| 10146 | ;; |
| 10147 | |
| 10148 | sunos4*) |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 10149 | if test sequent = "$host_vendor"; then |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10150 | # Use $CC to link under sequent, because it throws in some extra .o |
| 10151 | # files that make .init and .fini sections work. |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 10152 | archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10153 | else |
| 10154 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 10155 | fi |
| 10156 | hardcode_libdir_flag_spec='-L$libdir' |
| 10157 | hardcode_direct=yes |
| 10158 | hardcode_minus_L=yes |
| 10159 | hardcode_shlibpath_var=no |
| 10160 | ;; |
| 10161 | |
| 10162 | sysv4) |
| 10163 | case $host_vendor in |
| 10164 | sni) |
| 10165 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 10166 | hardcode_direct=yes # is this really true??? |
| 10167 | ;; |
| 10168 | siemens) |
| 10169 | ## LD is ld it makes a PLAMLIB |
| 10170 | ## CC just makes a GrossModule. |
| 10171 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 10172 | reload_cmds='$CC -r -o $output$reload_objs' |
| 10173 | hardcode_direct=no |
| 10174 | ;; |
| 10175 | motorola) |
| 10176 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 10177 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
| 10178 | ;; |
| 10179 | esac |
| 10180 | runpath_var='LD_RUN_PATH' |
| 10181 | hardcode_shlibpath_var=no |
| 10182 | ;; |
| 10183 | |
| 10184 | sysv4.3*) |
| 10185 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 10186 | hardcode_shlibpath_var=no |
| 10187 | export_dynamic_flag_spec='-Bexport' |
| 10188 | ;; |
| 10189 | |
| 10190 | sysv4*MP*) |
| 10191 | if test -d /usr/nec; then |
| 10192 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 10193 | hardcode_shlibpath_var=no |
| 10194 | runpath_var=LD_RUN_PATH |
| 10195 | hardcode_runpath_var=yes |
| 10196 | ld_shlibs=yes |
| 10197 | fi |
| 10198 | ;; |
| 10199 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 10200 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 10201 | no_undefined_flag='$wl-z,text' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10202 | archive_cmds_need_lc=no |
| 10203 | hardcode_shlibpath_var=no |
| 10204 | runpath_var='LD_RUN_PATH' |
| 10205 | |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 10206 | if test yes = "$GCC"; then |
| 10207 | archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10208 | archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10209 | else |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 10210 | archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10211 | archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10212 | fi |
| 10213 | ;; |
| 10214 | |
| 10215 | sysv5* | sco3.2v5* | sco5v6*) |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 10216 | # Note: We CANNOT use -z defs as we might desire, because we do not |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10217 | # link with -lc, and that would cause any symbols used from libc to |
| 10218 | # always be unresolved, which means just about no library would |
| 10219 | # ever link correctly. If we're not using GNU ld we use -z text |
| 10220 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 10221 | # as -z defs. |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 10222 | no_undefined_flag='$wl-z,text' |
| 10223 | allow_undefined_flag='$wl-z,nodefs' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10224 | archive_cmds_need_lc=no |
| 10225 | hardcode_shlibpath_var=no |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 10226 | hardcode_libdir_flag_spec='$wl-R,$libdir' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10227 | hardcode_libdir_separator=':' |
| 10228 | link_all_deplibs=yes |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 10229 | export_dynamic_flag_spec='$wl-Bexport' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10230 | runpath_var='LD_RUN_PATH' |
| 10231 | |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 10232 | if test yes = "$GCC"; then |
| 10233 | archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10234 | archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10235 | else |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 10236 | archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10237 | archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10238 | fi |
| 10239 | ;; |
| 10240 | |
| 10241 | uts4*) |
| 10242 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 10243 | hardcode_libdir_flag_spec='-L$libdir' |
| 10244 | hardcode_shlibpath_var=no |
| 10245 | ;; |
| 10246 | |
| 10247 | *) |
| 10248 | ld_shlibs=no |
| 10249 | ;; |
| 10250 | esac |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 10251 | |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 10252 | if test sni = "$host_vendor"; then |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 10253 | case $host in |
| 10254 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 10255 | export_dynamic_flag_spec='$wl-Blargedynsym' |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 10256 | ;; |
| 10257 | esac |
| 10258 | fi |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10259 | fi |
| 10260 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 10261 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 10262 | $as_echo "$ld_shlibs" >&6; } |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 10263 | test no = "$ld_shlibs" && can_build_shared=no |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10264 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 10265 | with_gnu_ld=$with_gnu_ld |
| 10266 | |
| 10267 | |
| 10268 | |
| 10269 | |
| 10270 | |
| 10271 | |
| 10272 | |
| 10273 | |
| 10274 | |
| 10275 | |
| 10276 | |
| 10277 | |
| 10278 | |
| 10279 | |
| 10280 | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10281 | # |
| 10282 | # Do we need to explicitly link libc? |
| 10283 | # |
| 10284 | case "x$archive_cmds_need_lc" in |
| 10285 | x|xyes) |
| 10286 | # Assume -lc should be added |
| 10287 | archive_cmds_need_lc=yes |
| 10288 | |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 10289 | if test yes,yes = "$GCC,$enable_shared"; then |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10290 | case $archive_cmds in |
| 10291 | *'~'*) |
| 10292 | # FIXME: we may have to deal with multi-command sequences. |
| 10293 | ;; |
| 10294 | '$CC '*) |
| 10295 | # Test whether the compiler implicitly links with -lc since on some |
| 10296 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 10297 | # to ld, don't add -lc before -lgcc. |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 10298 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 10299 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 10300 | if ${lt_cv_archive_cmds_need_lc+:} false; then : |
| 10301 | $as_echo_n "(cached) " >&6 |
| 10302 | else |
| 10303 | $RM conftest* |
| 10304 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10305 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 10306 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10307 | (eval $ac_compile) 2>&5 |
| 10308 | ac_status=$? |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 10309 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 10310 | test $ac_status = 0; } 2>conftest.err; then |
| 10311 | soname=conftest |
| 10312 | lib=conftest |
| 10313 | libobjs=conftest.$ac_objext |
| 10314 | deplibs= |
| 10315 | wl=$lt_prog_compiler_wl |
| 10316 | pic_flag=$lt_prog_compiler_pic |
| 10317 | compiler_flags=-v |
| 10318 | linker_flags=-v |
| 10319 | verstring= |
| 10320 | output_objdir=. |
| 10321 | libname=conftest |
| 10322 | lt_save_allow_undefined_flag=$allow_undefined_flag |
| 10323 | allow_undefined_flag= |
| 10324 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 10325 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10326 | ac_status=$? |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 10327 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 10328 | test $ac_status = 0; } |
| 10329 | then |
| 10330 | lt_cv_archive_cmds_need_lc=no |
| 10331 | else |
| 10332 | lt_cv_archive_cmds_need_lc=yes |
| 10333 | fi |
| 10334 | allow_undefined_flag=$lt_save_allow_undefined_flag |
| 10335 | else |
| 10336 | cat conftest.err 1>&5 |
| 10337 | fi |
| 10338 | $RM conftest* |
| 10339 | |
| 10340 | fi |
| 10341 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 |
| 10342 | $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } |
| 10343 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10344 | ;; |
| 10345 | esac |
| 10346 | fi |
| 10347 | ;; |
| 10348 | esac |
| 10349 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 10350 | |
| 10351 | |
| 10352 | |
| 10353 | |
| 10354 | |
| 10355 | |
| 10356 | |
| 10357 | |
| 10358 | |
| 10359 | |
| 10360 | |
| 10361 | |
| 10362 | |
| 10363 | |
| 10364 | |
| 10365 | |
| 10366 | |
| 10367 | |
| 10368 | |
| 10369 | |
| 10370 | |
| 10371 | |
| 10372 | |
| 10373 | |
| 10374 | |
| 10375 | |
| 10376 | |
| 10377 | |
| 10378 | |
| 10379 | |
| 10380 | |
| 10381 | |
| 10382 | |
| 10383 | |
| 10384 | |
| 10385 | |
| 10386 | |
| 10387 | |
| 10388 | |
| 10389 | |
| 10390 | |
| 10391 | |
| 10392 | |
| 10393 | |
| 10394 | |
| 10395 | |
| 10396 | |
| 10397 | |
| 10398 | |
| 10399 | |
| 10400 | |
| 10401 | |
| 10402 | |
| 10403 | |
| 10404 | |
| 10405 | |
| 10406 | |
| 10407 | |
| 10408 | |
| 10409 | |
| 10410 | |
| 10411 | |
| 10412 | |
| 10413 | |
| 10414 | |
| 10415 | |
| 10416 | |
| 10417 | |
| 10418 | |
| 10419 | |
| 10420 | |
| 10421 | |
| 10422 | |
| 10423 | |
| 10424 | |
| 10425 | |
| 10426 | |
| 10427 | |
| 10428 | |
| 10429 | |
| 10430 | |
| 10431 | |
| 10432 | |
| 10433 | |
| 10434 | |
| 10435 | |
| 10436 | |
| 10437 | |
| 10438 | |
| 10439 | |
| 10440 | |
| 10441 | |
| 10442 | |
| 10443 | |
| 10444 | |
| 10445 | |
| 10446 | |
| 10447 | |
| 10448 | |
| 10449 | |
| 10450 | |
| 10451 | |
| 10452 | |
| 10453 | |
| 10454 | |
| 10455 | |
| 10456 | |
| 10457 | |
| 10458 | |
| 10459 | |
| 10460 | |
| 10461 | |
| 10462 | |
| 10463 | |
| 10464 | |
| 10465 | |
| 10466 | |
| 10467 | |
| 10468 | |
| 10469 | |
| 10470 | |
| 10471 | |
| 10472 | |
| 10473 | |
| 10474 | |
| 10475 | |
| 10476 | |
| 10477 | |
| 10478 | |
| 10479 | |
| 10480 | |
| 10481 | |
| 10482 | |
| 10483 | |
| 10484 | |
| 10485 | |
| 10486 | |
| 10487 | |
| 10488 | |
| 10489 | |
| 10490 | |
| 10491 | |
| 10492 | |
| 10493 | |
| 10494 | |
| 10495 | |
| 10496 | |
| 10497 | |
| 10498 | |
| 10499 | |
| 10500 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 10501 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 10502 | $as_echo_n "checking dynamic linker characteristics... " >&6; } |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 10503 | |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 10504 | if test yes = "$GCC"; then |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 10505 | case $host_os in |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 10506 | darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; |
| 10507 | *) lt_awk_arg='/^libraries:/' ;; |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 10508 | esac |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 10509 | case $host_os in |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 10510 | mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; |
| 10511 | *) lt_sed_strip_eq='s|=/|/|g' ;; |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 10512 | esac |
| 10513 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` |
| 10514 | case $lt_search_path_spec in |
| 10515 | *\;*) |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 10516 | # if the path contains ";" then we assume it to be the separator |
| 10517 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 10518 | # assumed that no part of a normal pathname contains ";" but that should |
| 10519 | # okay in the real world where ";" in dirpaths is itself problematic. |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 10520 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` |
| 10521 | ;; |
| 10522 | *) |
| 10523 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` |
| 10524 | ;; |
| 10525 | esac |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 10526 | # Ok, now we have the path, separated by spaces, we can step through it |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 10527 | # and add multilib dir if necessary... |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 10528 | lt_tmp_lt_search_path_spec= |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 10529 | lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` |
| 10530 | # ...but if some path component already ends with the multilib dir we assume |
| 10531 | # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). |
| 10532 | case "$lt_multi_os_dir; $lt_search_path_spec " in |
| 10533 | "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) |
| 10534 | lt_multi_os_dir= |
| 10535 | ;; |
| 10536 | esac |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 10537 | for lt_sys_path in $lt_search_path_spec; do |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 10538 | if test -d "$lt_sys_path$lt_multi_os_dir"; then |
| 10539 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" |
| 10540 | elif test -n "$lt_multi_os_dir"; then |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 10541 | test -d "$lt_sys_path" && \ |
| 10542 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" |
| 10543 | fi |
| 10544 | done |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 10545 | lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 10546 | BEGIN {RS = " "; FS = "/|\n";} { |
| 10547 | lt_foo = ""; |
| 10548 | lt_count = 0; |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 10549 | for (lt_i = NF; lt_i > 0; lt_i--) { |
| 10550 | if ($lt_i != "" && $lt_i != ".") { |
| 10551 | if ($lt_i == "..") { |
| 10552 | lt_count++; |
| 10553 | } else { |
| 10554 | if (lt_count == 0) { |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 10555 | lt_foo = "/" $lt_i lt_foo; |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 10556 | } else { |
| 10557 | lt_count--; |
| 10558 | } |
| 10559 | } |
| 10560 | } |
| 10561 | } |
| 10562 | if (lt_foo != "") { lt_freq[lt_foo]++; } |
| 10563 | if (lt_freq[lt_foo] == 1) { print lt_foo; } |
| 10564 | }'` |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 10565 | # AWK program above erroneously prepends '/' to C:/dos/paths |
| 10566 | # for these hosts. |
| 10567 | case $host_os in |
| 10568 | mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 10569 | $SED 's|/\([A-Za-z]:\)|\1|g'` ;; |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 10570 | esac |
| 10571 | sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 10572 | else |
| 10573 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 10574 | fi |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10575 | library_names_spec= |
| 10576 | libname_spec='lib$name' |
| 10577 | soname_spec= |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 10578 | shrext_cmds=.so |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10579 | postinstall_cmds= |
| 10580 | postuninstall_cmds= |
| 10581 | finish_cmds= |
| 10582 | finish_eval= |
| 10583 | shlibpath_var= |
| 10584 | shlibpath_overrides_runpath=unknown |
| 10585 | version_type=none |
| 10586 | dynamic_linker="$host_os ld.so" |
| 10587 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 10588 | need_lib_prefix=unknown |
| 10589 | hardcode_into_libs=no |
| 10590 | |
| 10591 | # when you set need_version to no, make sure it does not cause -set_version |
| 10592 | # flags to be left without arguments |
| 10593 | need_version=unknown |
| 10594 | |
Bruce A. Mah | 5461579 | 2015-05-11 10:42:44 -0700 | [diff] [blame] | 10595 | |
| 10596 | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10597 | case $host_os in |
| 10598 | aix3*) |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 10599 | version_type=linux # correct to gnu/linux during the next big refactor |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 10600 | library_names_spec='$libname$release$shared_ext$versuffix $libname.a' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10601 | shlibpath_var=LIBPATH |
| 10602 | |
| 10603 | # AIX 3 has no versioning support, so we append a major version to the name. |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 10604 | soname_spec='$libname$release$shared_ext$major' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10605 | ;; |
| 10606 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 10607 | aix[4-9]*) |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 10608 | version_type=linux # correct to gnu/linux during the next big refactor |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10609 | need_lib_prefix=no |
| 10610 | need_version=no |
| 10611 | hardcode_into_libs=yes |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 10612 | if test ia64 = "$host_cpu"; then |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10613 | # AIX 5 supports IA64 |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 10614 | library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10615 | shlibpath_var=LD_LIBRARY_PATH |
| 10616 | else |
| 10617 | # With GCC up to 2.95.x, collect2 would create an import file |
| 10618 | # for dependence libraries. The import file would start with |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 10619 | # the line '#! .'. This would cause the generated library to |
| 10620 | # depend on '.', always an invalid library. This was fixed in |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10621 | # development snapshots of GCC prior to 3.0. |
| 10622 | case $host_os in |
| 10623 | aix4 | aix4.[01] | aix4.[01].*) |
| 10624 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 10625 | echo ' yes ' |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 10626 | echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10627 | : |
| 10628 | else |
| 10629 | can_build_shared=no |
| 10630 | fi |
| 10631 | ;; |
| 10632 | esac |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 10633 | # Using Import Files as archive members, it is possible to support |
| 10634 | # filename-based versioning of shared library archives on AIX. While |
| 10635 | # this would work for both with and without runtime linking, it will |
| 10636 | # prevent static linking of such archives. So we do filename-based |
| 10637 | # shared library versioning with .so extension only, which is used |
| 10638 | # when both runtime linking and shared linking is enabled. |
| 10639 | # Unfortunately, runtime linking may impact performance, so we do |
| 10640 | # not want this to be the default eventually. Also, we use the |
| 10641 | # versioned .so libs for executables only if there is the -brtl |
| 10642 | # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. |
| 10643 | # To allow for filename-based versioning support, we need to create |
| 10644 | # libNAME.so.V as an archive file, containing: |
| 10645 | # *) an Import File, referring to the versioned filename of the |
| 10646 | # archive as well as the shared archive member, telling the |
| 10647 | # bitwidth (32 or 64) of that shared object, and providing the |
| 10648 | # list of exported symbols of that shared object, eventually |
| 10649 | # decorated with the 'weak' keyword |
| 10650 | # *) the shared object with the F_LOADONLY flag set, to really avoid |
| 10651 | # it being seen by the linker. |
| 10652 | # At run time we better use the real file rather than another symlink, |
| 10653 | # but for link time we create the symlink libNAME.so -> libNAME.so.V |
| 10654 | |
| 10655 | case $with_aix_soname,$aix_use_runtimelinking in |
| 10656 | # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10657 | # soname into executable. Probably we can add versioning support to |
| 10658 | # collect2, so additional links can be useful in future. |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 10659 | aix,yes) # traditional libtool |
| 10660 | dynamic_linker='AIX unversionable lib.so' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10661 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 10662 | # instead of lib<name>.a to let people know that these are not |
| 10663 | # typical AIX shared libraries. |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 10664 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 10665 | ;; |
| 10666 | aix,no) # traditional AIX only |
| 10667 | dynamic_linker='AIX lib.a(lib.so.V)' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10668 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 10669 | # and later when we are not doing run time linking. |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 10670 | library_names_spec='$libname$release.a $libname.a' |
| 10671 | soname_spec='$libname$release$shared_ext$major' |
| 10672 | ;; |
| 10673 | svr4,*) # full svr4 only |
| 10674 | dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" |
| 10675 | library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' |
| 10676 | # We do not specify a path in Import Files, so LIBPATH fires. |
| 10677 | shlibpath_overrides_runpath=yes |
| 10678 | ;; |
| 10679 | *,yes) # both, prefer svr4 |
| 10680 | dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" |
| 10681 | library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' |
| 10682 | # unpreferred sharedlib libNAME.a needs extra handling |
| 10683 | postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' |
| 10684 | postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' |
| 10685 | # We do not specify a path in Import Files, so LIBPATH fires. |
| 10686 | shlibpath_overrides_runpath=yes |
| 10687 | ;; |
| 10688 | *,no) # both, prefer aix |
| 10689 | dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" |
| 10690 | library_names_spec='$libname$release.a $libname.a' |
| 10691 | soname_spec='$libname$release$shared_ext$major' |
| 10692 | # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling |
| 10693 | postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' |
| 10694 | postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' |
| 10695 | ;; |
| 10696 | esac |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10697 | shlibpath_var=LIBPATH |
| 10698 | fi |
| 10699 | ;; |
| 10700 | |
| 10701 | amigaos*) |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 10702 | case $host_cpu in |
| 10703 | powerpc) |
| 10704 | # Since July 2007 AmigaOS4 officially supports .so libraries. |
| 10705 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 10706 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 10707 | ;; |
| 10708 | m68k) |
| 10709 | library_names_spec='$libname.ixlibrary $libname.a' |
| 10710 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 10711 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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' |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 10712 | ;; |
| 10713 | esac |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10714 | ;; |
| 10715 | |
| 10716 | beos*) |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 10717 | library_names_spec='$libname$shared_ext' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10718 | dynamic_linker="$host_os ld.so" |
| 10719 | shlibpath_var=LIBRARY_PATH |
| 10720 | ;; |
| 10721 | |
| 10722 | bsdi[45]*) |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 10723 | version_type=linux # correct to gnu/linux during the next big refactor |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10724 | need_version=no |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 10725 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 10726 | soname_spec='$libname$release$shared_ext$major' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10727 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 10728 | shlibpath_var=LD_LIBRARY_PATH |
| 10729 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 10730 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 10731 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 10732 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 10733 | # libtool to hard-code these into programs |
| 10734 | ;; |
| 10735 | |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 10736 | cygwin* | mingw* | pw32* | cegcc*) |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10737 | version_type=windows |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 10738 | shrext_cmds=.dll |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10739 | need_version=no |
| 10740 | need_lib_prefix=no |
| 10741 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 10742 | case $GCC,$cc_basename in |
| 10743 | yes,*) |
| 10744 | # gcc |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10745 | library_names_spec='$libname.dll.a' |
| 10746 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 10747 | postinstall_cmds='base_file=`basename \$file`~ |
| 10748 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10749 | dldir=$destdir/`dirname \$dlpath`~ |
| 10750 | test -d \$dldir || mkdir -p \$dldir~ |
| 10751 | $install_prog $dir/$dlname \$dldir/$dlname~ |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 10752 | chmod a+x \$dldir/$dlname~ |
| 10753 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then |
| 10754 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; |
| 10755 | fi' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10756 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 10757 | dlpath=$dir/\$dldll~ |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 10758 | $RM \$dlpath' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10759 | shlibpath_overrides_runpath=yes |
| 10760 | |
| 10761 | case $host_os in |
| 10762 | cygwin*) |
| 10763 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 10764 | soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 10765 | |
| 10766 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10767 | ;; |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 10768 | mingw* | cegcc*) |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10769 | # MinGW DLLs use traditional 'lib' prefix |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 10770 | soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10771 | ;; |
| 10772 | pw32*) |
| 10773 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 10774 | library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10775 | ;; |
| 10776 | esac |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 10777 | dynamic_linker='Win32 ld.exe' |
| 10778 | ;; |
| 10779 | |
| 10780 | *,cl*) |
| 10781 | # Native MSVC |
| 10782 | libname_spec='$name' |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 10783 | soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
| 10784 | library_names_spec='$libname.dll.lib' |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 10785 | |
| 10786 | case $build_os in |
| 10787 | mingw*) |
| 10788 | sys_lib_search_path_spec= |
| 10789 | lt_save_ifs=$IFS |
| 10790 | IFS=';' |
| 10791 | for lt_path in $LIB |
| 10792 | do |
| 10793 | IFS=$lt_save_ifs |
| 10794 | # Let DOS variable expansion print the short 8.3 style file name. |
| 10795 | lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` |
| 10796 | sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" |
| 10797 | done |
| 10798 | IFS=$lt_save_ifs |
| 10799 | # Convert to MSYS style. |
| 10800 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` |
| 10801 | ;; |
| 10802 | cygwin*) |
| 10803 | # Convert to unix form, then to dos form, then back to unix form |
| 10804 | # but this time dos style (no spaces!) so that the unix form looks |
| 10805 | # like /cygdrive/c/PROGRA~1:/cygdr... |
| 10806 | sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` |
| 10807 | sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` |
| 10808 | sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 10809 | ;; |
| 10810 | *) |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 10811 | sys_lib_search_path_spec=$LIB |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 10812 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then |
| 10813 | # It is most probably a Windows format PATH. |
| 10814 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 10815 | else |
| 10816 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 10817 | fi |
| 10818 | # FIXME: find the short name or the path components, as spaces are |
| 10819 | # common. (e.g. "Program Files" -> "PROGRA~1") |
| 10820 | ;; |
| 10821 | esac |
| 10822 | |
| 10823 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 10824 | postinstall_cmds='base_file=`basename \$file`~ |
| 10825 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 10826 | dldir=$destdir/`dirname \$dlpath`~ |
| 10827 | test -d \$dldir || mkdir -p \$dldir~ |
| 10828 | $install_prog $dir/$dlname \$dldir/$dlname' |
| 10829 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 10830 | dlpath=$dir/\$dldll~ |
| 10831 | $RM \$dlpath' |
| 10832 | shlibpath_overrides_runpath=yes |
| 10833 | dynamic_linker='Win32 link.exe' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10834 | ;; |
| 10835 | |
| 10836 | *) |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 10837 | # Assume MSVC wrapper |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 10838 | library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 10839 | dynamic_linker='Win32 ld.exe' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10840 | ;; |
| 10841 | esac |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10842 | # FIXME: first we should search . and the directory the executable is in |
| 10843 | shlibpath_var=PATH |
| 10844 | ;; |
| 10845 | |
| 10846 | darwin* | rhapsody*) |
| 10847 | dynamic_linker="$host_os dyld" |
| 10848 | version_type=darwin |
| 10849 | need_lib_prefix=no |
| 10850 | need_version=no |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 10851 | library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' |
| 10852 | soname_spec='$libname$release$major$shared_ext' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10853 | shlibpath_overrides_runpath=yes |
| 10854 | shlibpath_var=DYLD_LIBRARY_PATH |
| 10855 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 10856 | |
| 10857 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10858 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 10859 | ;; |
| 10860 | |
| 10861 | dgux*) |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 10862 | version_type=linux # correct to gnu/linux during the next big refactor |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10863 | need_lib_prefix=no |
| 10864 | need_version=no |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 10865 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 10866 | soname_spec='$libname$release$shared_ext$major' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10867 | shlibpath_var=LD_LIBRARY_PATH |
| 10868 | ;; |
| 10869 | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10870 | freebsd* | dragonfly*) |
| 10871 | # DragonFly does not have aout. When/if they implement a new |
| 10872 | # versioning mechanism, adjust this. |
| 10873 | if test -x /usr/bin/objformat; then |
| 10874 | objformat=`/usr/bin/objformat` |
| 10875 | else |
| 10876 | case $host_os in |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 10877 | freebsd[23].*) objformat=aout ;; |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10878 | *) objformat=elf ;; |
| 10879 | esac |
| 10880 | fi |
| 10881 | version_type=freebsd-$objformat |
| 10882 | case $version_type in |
| 10883 | freebsd-elf*) |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 10884 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
Bruce A. Mah | 5461579 | 2015-05-11 10:42:44 -0700 | [diff] [blame] | 10885 | soname_spec='$libname$release$shared_ext$major' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10886 | need_version=no |
| 10887 | need_lib_prefix=no |
| 10888 | ;; |
| 10889 | freebsd-*) |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 10890 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10891 | need_version=yes |
| 10892 | ;; |
| 10893 | esac |
| 10894 | shlibpath_var=LD_LIBRARY_PATH |
| 10895 | case $host_os in |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 10896 | freebsd2.*) |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10897 | shlibpath_overrides_runpath=yes |
| 10898 | ;; |
| 10899 | freebsd3.[01]* | freebsdelf3.[01]*) |
| 10900 | shlibpath_overrides_runpath=yes |
| 10901 | hardcode_into_libs=yes |
| 10902 | ;; |
| 10903 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 10904 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
| 10905 | shlibpath_overrides_runpath=no |
| 10906 | hardcode_into_libs=yes |
| 10907 | ;; |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 10908 | *) # from 4.6 on, and DragonFly |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10909 | shlibpath_overrides_runpath=yes |
| 10910 | hardcode_into_libs=yes |
| 10911 | ;; |
| 10912 | esac |
| 10913 | ;; |
| 10914 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 10915 | haiku*) |
| 10916 | version_type=linux # correct to gnu/linux during the next big refactor |
| 10917 | need_lib_prefix=no |
| 10918 | need_version=no |
| 10919 | dynamic_linker="$host_os runtime_loader" |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 10920 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 10921 | soname_spec='$libname$release$shared_ext$major' |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 10922 | shlibpath_var=LIBRARY_PATH |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 10923 | shlibpath_overrides_runpath=no |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 10924 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10925 | hardcode_into_libs=yes |
| 10926 | ;; |
| 10927 | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10928 | hpux9* | hpux10* | hpux11*) |
| 10929 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 10930 | # link against other versions. |
| 10931 | version_type=sunos |
| 10932 | need_lib_prefix=no |
| 10933 | need_version=no |
| 10934 | case $host_cpu in |
| 10935 | ia64*) |
| 10936 | shrext_cmds='.so' |
| 10937 | hardcode_into_libs=yes |
| 10938 | dynamic_linker="$host_os dld.so" |
| 10939 | shlibpath_var=LD_LIBRARY_PATH |
| 10940 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 10941 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 10942 | soname_spec='$libname$release$shared_ext$major' |
| 10943 | if test 32 = "$HPUX_IA64_MODE"; then |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10944 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
Bruce A. Mah | 5461579 | 2015-05-11 10:42:44 -0700 | [diff] [blame] | 10945 | sys_lib_dlsearch_path_spec=/usr/lib/hpux32 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10946 | else |
| 10947 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
Bruce A. Mah | 5461579 | 2015-05-11 10:42:44 -0700 | [diff] [blame] | 10948 | sys_lib_dlsearch_path_spec=/usr/lib/hpux64 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10949 | fi |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10950 | ;; |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 10951 | hppa*64*) |
| 10952 | shrext_cmds='.sl' |
| 10953 | hardcode_into_libs=yes |
| 10954 | dynamic_linker="$host_os dld.sl" |
| 10955 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 10956 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 10957 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 10958 | soname_spec='$libname$release$shared_ext$major' |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 10959 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 10960 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 10961 | ;; |
| 10962 | *) |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10963 | shrext_cmds='.sl' |
| 10964 | dynamic_linker="$host_os dld.sl" |
| 10965 | shlibpath_var=SHLIB_PATH |
| 10966 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 10967 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 10968 | soname_spec='$libname$release$shared_ext$major' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10969 | ;; |
| 10970 | esac |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 10971 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10972 | postinstall_cmds='chmod 555 $lib' |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 10973 | # or fails outright, so override atomically: |
| 10974 | install_override_mode=555 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10975 | ;; |
| 10976 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 10977 | interix[3-9]*) |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 10978 | version_type=linux # correct to gnu/linux during the next big refactor |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10979 | need_lib_prefix=no |
| 10980 | need_version=no |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 10981 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 10982 | soname_spec='$libname$release$shared_ext$major' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10983 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 10984 | shlibpath_var=LD_LIBRARY_PATH |
| 10985 | shlibpath_overrides_runpath=no |
| 10986 | hardcode_into_libs=yes |
| 10987 | ;; |
| 10988 | |
| 10989 | irix5* | irix6* | nonstopux*) |
| 10990 | case $host_os in |
| 10991 | nonstopux*) version_type=nonstopux ;; |
| 10992 | *) |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 10993 | if test yes = "$lt_cv_prog_gnu_ld"; then |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 10994 | version_type=linux # correct to gnu/linux during the next big refactor |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 10995 | else |
| 10996 | version_type=irix |
| 10997 | fi ;; |
| 10998 | esac |
| 10999 | need_lib_prefix=no |
| 11000 | need_version=no |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 11001 | soname_spec='$libname$release$shared_ext$major' |
| 11002 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11003 | case $host_os in |
| 11004 | irix5* | nonstopux*) |
| 11005 | libsuff= shlibsuff= |
| 11006 | ;; |
| 11007 | *) |
| 11008 | case $LD in # libtool.m4 will add one of these switches to LD |
| 11009 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 11010 | libsuff= shlibsuff= libmagic=32-bit;; |
| 11011 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 11012 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 11013 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 11014 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 11015 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 11016 | esac |
| 11017 | ;; |
| 11018 | esac |
| 11019 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 11020 | shlibpath_overrides_runpath=no |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 11021 | sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" |
| 11022 | sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11023 | hardcode_into_libs=yes |
| 11024 | ;; |
| 11025 | |
| 11026 | # No shared lib support for Linux oldld, aout, or coff. |
| 11027 | linux*oldld* | linux*aout* | linux*coff*) |
| 11028 | dynamic_linker=no |
| 11029 | ;; |
| 11030 | |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 11031 | linux*android*) |
| 11032 | version_type=none # Android doesn't support versioned libraries. |
| 11033 | need_lib_prefix=no |
| 11034 | need_version=no |
| 11035 | library_names_spec='$libname$release$shared_ext' |
| 11036 | soname_spec='$libname$release$shared_ext' |
| 11037 | finish_cmds= |
| 11038 | shlibpath_var=LD_LIBRARY_PATH |
| 11039 | shlibpath_overrides_runpath=yes |
| 11040 | |
| 11041 | # This implies no fast_install, which is unacceptable. |
| 11042 | # Some rework will be needed to allow for fast_install |
| 11043 | # before this can be enabled. |
| 11044 | hardcode_into_libs=yes |
| 11045 | |
| 11046 | dynamic_linker='Android linker' |
| 11047 | # Don't embed -rpath directories since the linker doesn't support them. |
| 11048 | hardcode_libdir_flag_spec='-L$libdir' |
| 11049 | ;; |
| 11050 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 11051 | # This must be glibc/ELF. |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 11052 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 11053 | version_type=linux # correct to gnu/linux during the next big refactor |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11054 | need_lib_prefix=no |
| 11055 | need_version=no |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 11056 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 11057 | soname_spec='$libname$release$shared_ext$major' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11058 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 11059 | shlibpath_var=LD_LIBRARY_PATH |
| 11060 | shlibpath_overrides_runpath=no |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 11061 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 11062 | # Some binutils ld are patched to set DT_RUNPATH |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 11063 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : |
| 11064 | $as_echo_n "(cached) " >&6 |
| 11065 | else |
| 11066 | lt_cv_shlibpath_overrides_runpath=no |
| 11067 | save_LDFLAGS=$LDFLAGS |
| 11068 | save_libdir=$libdir |
| 11069 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ |
| 11070 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" |
| 11071 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 11072 | /* end confdefs.h. */ |
| 11073 | |
| 11074 | int |
| 11075 | main () |
| 11076 | { |
| 11077 | |
| 11078 | ; |
| 11079 | return 0; |
| 11080 | } |
| 11081 | _ACEOF |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 11082 | if ac_fn_c_try_link "$LINENO"; then : |
| 11083 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : |
| 11084 | lt_cv_shlibpath_overrides_runpath=yes |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 11085 | fi |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 11086 | fi |
| 11087 | rm -f core conftest.err conftest.$ac_objext \ |
| 11088 | conftest$ac_exeext conftest.$ac_ext |
| 11089 | LDFLAGS=$save_LDFLAGS |
| 11090 | libdir=$save_libdir |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 11091 | |
| 11092 | fi |
| 11093 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 11094 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 11095 | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11096 | # This implies no fast_install, which is unacceptable. |
| 11097 | # Some rework will be needed to allow for fast_install |
| 11098 | # before this can be enabled. |
| 11099 | hardcode_into_libs=yes |
| 11100 | |
Bruce A. Mah | 5461579 | 2015-05-11 10:42:44 -0700 | [diff] [blame] | 11101 | # Ideally, we could use ldconfig to report *all* directores which are |
| 11102 | # searched for libraries, however this is still not possible. Aside from not |
| 11103 | # being certain /sbin/ldconfig is available, command |
| 11104 | # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, |
| 11105 | # even though it is searched at run-time. Try to do the best guess by |
| 11106 | # appending ld.so.conf contents (and includes) to the search path. |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11107 | if test -f /etc/ld.so.conf; then |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 11108 | 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' ' '` |
| 11109 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11110 | fi |
| 11111 | |
| 11112 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 11113 | # powerpc, because MkLinux only supported shared libraries with the |
| 11114 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 11115 | # most powerpc-linux boxes support dynamic linking these days and |
| 11116 | # people can always --disable-shared, the test was removed, and we |
| 11117 | # assume the GNU/Linux dynamic linker is in use. |
| 11118 | dynamic_linker='GNU/Linux ld.so' |
| 11119 | ;; |
| 11120 | |
| 11121 | netbsd*) |
| 11122 | version_type=sunos |
| 11123 | need_lib_prefix=no |
| 11124 | need_version=no |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 11125 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 11126 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11127 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 11128 | dynamic_linker='NetBSD (a.out) ld.so' |
| 11129 | else |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 11130 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 11131 | soname_spec='$libname$release$shared_ext$major' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11132 | dynamic_linker='NetBSD ld.elf_so' |
| 11133 | fi |
| 11134 | shlibpath_var=LD_LIBRARY_PATH |
| 11135 | shlibpath_overrides_runpath=yes |
| 11136 | hardcode_into_libs=yes |
| 11137 | ;; |
| 11138 | |
| 11139 | newsos6) |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 11140 | version_type=linux # correct to gnu/linux during the next big refactor |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 11141 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11142 | shlibpath_var=LD_LIBRARY_PATH |
| 11143 | shlibpath_overrides_runpath=yes |
| 11144 | ;; |
| 11145 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 11146 | *nto* | *qnx*) |
| 11147 | version_type=qnx |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11148 | need_lib_prefix=no |
| 11149 | need_version=no |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 11150 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 11151 | soname_spec='$libname$release$shared_ext$major' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11152 | shlibpath_var=LD_LIBRARY_PATH |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 11153 | shlibpath_overrides_runpath=no |
| 11154 | hardcode_into_libs=yes |
| 11155 | dynamic_linker='ldqnx.so' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11156 | ;; |
| 11157 | |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 11158 | openbsd* | bitrig*) |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11159 | version_type=sunos |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 11160 | sys_lib_dlsearch_path_spec=/usr/lib |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11161 | need_lib_prefix=no |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 11162 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then |
| 11163 | need_version=no |
| 11164 | else |
| 11165 | need_version=yes |
| 11166 | fi |
| 11167 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11168 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 11169 | shlibpath_var=LD_LIBRARY_PATH |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 11170 | shlibpath_overrides_runpath=yes |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11171 | ;; |
| 11172 | |
| 11173 | os2*) |
| 11174 | libname_spec='$name' |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 11175 | version_type=windows |
| 11176 | shrext_cmds=.dll |
| 11177 | need_version=no |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11178 | need_lib_prefix=no |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 11179 | # OS/2 can only load a DLL with a base name of 8 characters or less. |
| 11180 | soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; |
| 11181 | v=$($ECHO $release$versuffix | tr -d .-); |
| 11182 | n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); |
| 11183 | $ECHO $n$v`$shared_ext' |
| 11184 | library_names_spec='${libname}_dll.$libext' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11185 | dynamic_linker='OS/2 ld.exe' |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 11186 | shlibpath_var=BEGINLIBPATH |
| 11187 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 11188 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 11189 | postinstall_cmds='base_file=`basename \$file`~ |
| 11190 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ |
| 11191 | dldir=$destdir/`dirname \$dlpath`~ |
| 11192 | test -d \$dldir || mkdir -p \$dldir~ |
| 11193 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 11194 | chmod a+x \$dldir/$dlname~ |
| 11195 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then |
| 11196 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; |
| 11197 | fi' |
| 11198 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ |
| 11199 | dlpath=$dir/\$dldll~ |
| 11200 | $RM \$dlpath' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11201 | ;; |
| 11202 | |
| 11203 | osf3* | osf4* | osf5*) |
| 11204 | version_type=osf |
| 11205 | need_lib_prefix=no |
| 11206 | need_version=no |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 11207 | soname_spec='$libname$release$shared_ext$major' |
| 11208 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11209 | shlibpath_var=LD_LIBRARY_PATH |
| 11210 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 11211 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11212 | ;; |
| 11213 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 11214 | rdos*) |
| 11215 | dynamic_linker=no |
| 11216 | ;; |
| 11217 | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11218 | solaris*) |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 11219 | version_type=linux # correct to gnu/linux during the next big refactor |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11220 | need_lib_prefix=no |
| 11221 | need_version=no |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 11222 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 11223 | soname_spec='$libname$release$shared_ext$major' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11224 | shlibpath_var=LD_LIBRARY_PATH |
| 11225 | shlibpath_overrides_runpath=yes |
| 11226 | hardcode_into_libs=yes |
| 11227 | # ldd complains unless libraries are executable |
| 11228 | postinstall_cmds='chmod +x $lib' |
| 11229 | ;; |
| 11230 | |
| 11231 | sunos4*) |
| 11232 | version_type=sunos |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 11233 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11234 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 11235 | shlibpath_var=LD_LIBRARY_PATH |
| 11236 | shlibpath_overrides_runpath=yes |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 11237 | if test yes = "$with_gnu_ld"; then |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11238 | need_lib_prefix=no |
| 11239 | fi |
| 11240 | need_version=yes |
| 11241 | ;; |
| 11242 | |
| 11243 | sysv4 | sysv4.3*) |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 11244 | version_type=linux # correct to gnu/linux during the next big refactor |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 11245 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 11246 | soname_spec='$libname$release$shared_ext$major' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11247 | shlibpath_var=LD_LIBRARY_PATH |
| 11248 | case $host_vendor in |
| 11249 | sni) |
| 11250 | shlibpath_overrides_runpath=no |
| 11251 | need_lib_prefix=no |
| 11252 | runpath_var=LD_RUN_PATH |
| 11253 | ;; |
| 11254 | siemens) |
| 11255 | need_lib_prefix=no |
| 11256 | ;; |
| 11257 | motorola) |
| 11258 | need_lib_prefix=no |
| 11259 | need_version=no |
| 11260 | shlibpath_overrides_runpath=no |
| 11261 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 11262 | ;; |
| 11263 | esac |
| 11264 | ;; |
| 11265 | |
| 11266 | sysv4*MP*) |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 11267 | if test -d /usr/nec; then |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 11268 | version_type=linux # correct to gnu/linux during the next big refactor |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 11269 | library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' |
| 11270 | soname_spec='$libname$shared_ext.$major' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11271 | shlibpath_var=LD_LIBRARY_PATH |
| 11272 | fi |
| 11273 | ;; |
| 11274 | |
| 11275 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 11276 | version_type=sco |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11277 | need_lib_prefix=no |
| 11278 | need_version=no |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 11279 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' |
| 11280 | soname_spec='$libname$release$shared_ext$major' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11281 | shlibpath_var=LD_LIBRARY_PATH |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 11282 | shlibpath_overrides_runpath=yes |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11283 | hardcode_into_libs=yes |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 11284 | if test yes = "$with_gnu_ld"; then |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11285 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 11286 | else |
| 11287 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 11288 | case $host_os in |
| 11289 | sco3.2v5*) |
| 11290 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 11291 | ;; |
| 11292 | esac |
| 11293 | fi |
| 11294 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 11295 | ;; |
| 11296 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 11297 | tpf*) |
| 11298 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 11299 | version_type=linux # correct to gnu/linux during the next big refactor |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 11300 | need_lib_prefix=no |
| 11301 | need_version=no |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 11302 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 11303 | shlibpath_var=LD_LIBRARY_PATH |
| 11304 | shlibpath_overrides_runpath=no |
| 11305 | hardcode_into_libs=yes |
| 11306 | ;; |
| 11307 | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11308 | uts4*) |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 11309 | version_type=linux # correct to gnu/linux during the next big refactor |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 11310 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 11311 | soname_spec='$libname$release$shared_ext$major' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11312 | shlibpath_var=LD_LIBRARY_PATH |
| 11313 | ;; |
| 11314 | |
| 11315 | *) |
| 11316 | dynamic_linker=no |
| 11317 | ;; |
| 11318 | esac |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 11319 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 11320 | $as_echo "$dynamic_linker" >&6; } |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 11321 | test no = "$dynamic_linker" && can_build_shared=no |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11322 | |
| 11323 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 11324 | if test yes = "$GCC"; then |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11325 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 11326 | fi |
| 11327 | |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 11328 | if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then |
| 11329 | sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 11330 | fi |
Bruce A. Mah | 5461579 | 2015-05-11 10:42:44 -0700 | [diff] [blame] | 11331 | |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 11332 | if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then |
| 11333 | sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 11334 | fi |
| 11335 | |
Bruce A. Mah | 5461579 | 2015-05-11 10:42:44 -0700 | [diff] [blame] | 11336 | # remember unaugmented sys_lib_dlsearch_path content for libtool script decls... |
| 11337 | configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec |
| 11338 | |
| 11339 | # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code |
| 11340 | func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" |
| 11341 | |
| 11342 | # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool |
| 11343 | configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH |
| 11344 | |
| 11345 | |
| 11346 | |
| 11347 | |
| 11348 | |
| 11349 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 11350 | |
| 11351 | |
| 11352 | |
| 11353 | |
| 11354 | |
| 11355 | |
| 11356 | |
| 11357 | |
| 11358 | |
| 11359 | |
| 11360 | |
| 11361 | |
| 11362 | |
| 11363 | |
| 11364 | |
| 11365 | |
| 11366 | |
| 11367 | |
| 11368 | |
| 11369 | |
| 11370 | |
| 11371 | |
| 11372 | |
| 11373 | |
| 11374 | |
| 11375 | |
| 11376 | |
| 11377 | |
| 11378 | |
| 11379 | |
| 11380 | |
| 11381 | |
| 11382 | |
| 11383 | |
| 11384 | |
| 11385 | |
| 11386 | |
| 11387 | |
| 11388 | |
| 11389 | |
| 11390 | |
| 11391 | |
| 11392 | |
| 11393 | |
| 11394 | |
| 11395 | |
| 11396 | |
| 11397 | |
| 11398 | |
| 11399 | |
| 11400 | |
| 11401 | |
| 11402 | |
| 11403 | |
| 11404 | |
| 11405 | |
| 11406 | |
| 11407 | |
| 11408 | |
| 11409 | |
| 11410 | |
| 11411 | |
| 11412 | |
| 11413 | |
| 11414 | |
| 11415 | |
| 11416 | |
| 11417 | |
| 11418 | |
| 11419 | |
| 11420 | |
| 11421 | |
| 11422 | |
| 11423 | |
| 11424 | |
| 11425 | |
| 11426 | |
| 11427 | |
| 11428 | |
| 11429 | |
| 11430 | |
| 11431 | |
| 11432 | |
| 11433 | |
| 11434 | |
| 11435 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 11436 | |
| 11437 | |
| 11438 | |
| 11439 | |
| 11440 | |
| 11441 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 11442 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11443 | hardcode_action= |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 11444 | if test -n "$hardcode_libdir_flag_spec" || |
| 11445 | test -n "$runpath_var" || |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 11446 | test yes = "$hardcode_automatic"; then |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11447 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 11448 | # We can hardcode non-existent directories. |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 11449 | if test no != "$hardcode_direct" && |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11450 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 11451 | # have to relink, otherwise we might link with an installed library |
| 11452 | # when we should be linking with a yet-to-be-installed one |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 11453 | ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && |
| 11454 | test no != "$hardcode_minus_L"; then |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11455 | # Linking always hardcodes the temporary library directory. |
| 11456 | hardcode_action=relink |
| 11457 | else |
| 11458 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 11459 | hardcode_action=immediate |
| 11460 | fi |
| 11461 | else |
| 11462 | # We cannot hardcode anything, or else we can only hardcode existing |
| 11463 | # directories. |
| 11464 | hardcode_action=unsupported |
| 11465 | fi |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 11466 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 11467 | $as_echo "$hardcode_action" >&6; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11468 | |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 11469 | if test relink = "$hardcode_action" || |
| 11470 | test yes = "$inherit_rpath"; then |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11471 | # Fast installation is not supported |
| 11472 | enable_fast_install=no |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 11473 | elif test yes = "$shlibpath_overrides_runpath" || |
| 11474 | test no = "$enable_shared"; then |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11475 | # Fast installation is not necessary |
| 11476 | enable_fast_install=needless |
| 11477 | fi |
| 11478 | |
| 11479 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 11480 | |
| 11481 | |
| 11482 | |
| 11483 | |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 11484 | if test yes != "$enable_dlopen"; then |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11485 | enable_dlopen=unknown |
| 11486 | enable_dlopen_self=unknown |
| 11487 | enable_dlopen_self_static=unknown |
| 11488 | else |
| 11489 | lt_cv_dlopen=no |
| 11490 | lt_cv_dlopen_libs= |
| 11491 | |
| 11492 | case $host_os in |
| 11493 | beos*) |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 11494 | lt_cv_dlopen=load_add_on |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11495 | lt_cv_dlopen_libs= |
| 11496 | lt_cv_dlopen_self=yes |
| 11497 | ;; |
| 11498 | |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 11499 | mingw* | pw32* | cegcc*) |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 11500 | lt_cv_dlopen=LoadLibrary |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11501 | lt_cv_dlopen_libs= |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 11502 | ;; |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11503 | |
| 11504 | cygwin*) |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 11505 | lt_cv_dlopen=dlopen |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11506 | lt_cv_dlopen_libs= |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 11507 | ;; |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11508 | |
| 11509 | darwin*) |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 11510 | # if libdl is installed we need to link against it |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 11511 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 11512 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 11513 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 11514 | $as_echo_n "(cached) " >&6 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11515 | else |
| 11516 | ac_check_lib_save_LIBS=$LIBS |
| 11517 | LIBS="-ldl $LIBS" |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 11518 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11519 | /* end confdefs.h. */ |
| 11520 | |
| 11521 | /* Override any GCC internal prototype to avoid an error. |
| 11522 | Use char because int might match the return type of a GCC |
| 11523 | builtin and then its argument prototype would still apply. */ |
| 11524 | #ifdef __cplusplus |
| 11525 | extern "C" |
| 11526 | #endif |
| 11527 | char dlopen (); |
| 11528 | int |
| 11529 | main () |
| 11530 | { |
| 11531 | return dlopen (); |
| 11532 | ; |
| 11533 | return 0; |
| 11534 | } |
| 11535 | _ACEOF |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 11536 | if ac_fn_c_try_link "$LINENO"; then : |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11537 | ac_cv_lib_dl_dlopen=yes |
| 11538 | else |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 11539 | ac_cv_lib_dl_dlopen=no |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11540 | fi |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 11541 | rm -f core conftest.err conftest.$ac_objext \ |
| 11542 | conftest$ac_exeext conftest.$ac_ext |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11543 | LIBS=$ac_check_lib_save_LIBS |
| 11544 | fi |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 11545 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 11546 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 11547 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 11548 | lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11549 | else |
| 11550 | |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 11551 | lt_cv_dlopen=dyld |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11552 | lt_cv_dlopen_libs= |
| 11553 | lt_cv_dlopen_self=yes |
| 11554 | |
| 11555 | fi |
| 11556 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 11557 | ;; |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11558 | |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 11559 | tpf*) |
| 11560 | # Don't try to run any link tests for TPF. We know it's impossible |
| 11561 | # because TPF is a cross-compiler, and we know how we open DSOs. |
| 11562 | lt_cv_dlopen=dlopen |
| 11563 | lt_cv_dlopen_libs= |
| 11564 | lt_cv_dlopen_self=no |
| 11565 | ;; |
| 11566 | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11567 | *) |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 11568 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" |
| 11569 | if test "x$ac_cv_func_shl_load" = xyes; then : |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 11570 | lt_cv_dlopen=shl_load |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11571 | else |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 11572 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 11573 | $as_echo_n "checking for shl_load in -ldld... " >&6; } |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 11574 | if ${ac_cv_lib_dld_shl_load+:} false; then : |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 11575 | $as_echo_n "(cached) " >&6 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11576 | else |
| 11577 | ac_check_lib_save_LIBS=$LIBS |
| 11578 | LIBS="-ldld $LIBS" |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 11579 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11580 | /* end confdefs.h. */ |
| 11581 | |
| 11582 | /* Override any GCC internal prototype to avoid an error. |
| 11583 | Use char because int might match the return type of a GCC |
| 11584 | builtin and then its argument prototype would still apply. */ |
| 11585 | #ifdef __cplusplus |
| 11586 | extern "C" |
| 11587 | #endif |
| 11588 | char shl_load (); |
| 11589 | int |
| 11590 | main () |
| 11591 | { |
| 11592 | return shl_load (); |
| 11593 | ; |
| 11594 | return 0; |
| 11595 | } |
| 11596 | _ACEOF |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 11597 | if ac_fn_c_try_link "$LINENO"; then : |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11598 | ac_cv_lib_dld_shl_load=yes |
| 11599 | else |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 11600 | ac_cv_lib_dld_shl_load=no |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11601 | fi |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 11602 | rm -f core conftest.err conftest.$ac_objext \ |
| 11603 | conftest$ac_exeext conftest.$ac_ext |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11604 | LIBS=$ac_check_lib_save_LIBS |
| 11605 | fi |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 11606 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 11607 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 11608 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 11609 | lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11610 | else |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 11611 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" |
| 11612 | if test "x$ac_cv_func_dlopen" = xyes; then : |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 11613 | lt_cv_dlopen=dlopen |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11614 | else |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 11615 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 11616 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 11617 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 11618 | $as_echo_n "(cached) " >&6 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11619 | else |
| 11620 | ac_check_lib_save_LIBS=$LIBS |
| 11621 | LIBS="-ldl $LIBS" |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 11622 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11623 | /* end confdefs.h. */ |
| 11624 | |
| 11625 | /* Override any GCC internal prototype to avoid an error. |
| 11626 | Use char because int might match the return type of a GCC |
| 11627 | builtin and then its argument prototype would still apply. */ |
| 11628 | #ifdef __cplusplus |
| 11629 | extern "C" |
| 11630 | #endif |
| 11631 | char dlopen (); |
| 11632 | int |
| 11633 | main () |
| 11634 | { |
| 11635 | return dlopen (); |
| 11636 | ; |
| 11637 | return 0; |
| 11638 | } |
| 11639 | _ACEOF |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 11640 | if ac_fn_c_try_link "$LINENO"; then : |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11641 | ac_cv_lib_dl_dlopen=yes |
| 11642 | else |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 11643 | ac_cv_lib_dl_dlopen=no |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11644 | fi |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 11645 | rm -f core conftest.err conftest.$ac_objext \ |
| 11646 | conftest$ac_exeext conftest.$ac_ext |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11647 | LIBS=$ac_check_lib_save_LIBS |
| 11648 | fi |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 11649 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 11650 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 11651 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 11652 | lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11653 | else |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 11654 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 11655 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 11656 | if ${ac_cv_lib_svld_dlopen+:} false; then : |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 11657 | $as_echo_n "(cached) " >&6 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11658 | else |
| 11659 | ac_check_lib_save_LIBS=$LIBS |
| 11660 | LIBS="-lsvld $LIBS" |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 11661 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11662 | /* end confdefs.h. */ |
| 11663 | |
| 11664 | /* Override any GCC internal prototype to avoid an error. |
| 11665 | Use char because int might match the return type of a GCC |
| 11666 | builtin and then its argument prototype would still apply. */ |
| 11667 | #ifdef __cplusplus |
| 11668 | extern "C" |
| 11669 | #endif |
| 11670 | char dlopen (); |
| 11671 | int |
| 11672 | main () |
| 11673 | { |
| 11674 | return dlopen (); |
| 11675 | ; |
| 11676 | return 0; |
| 11677 | } |
| 11678 | _ACEOF |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 11679 | if ac_fn_c_try_link "$LINENO"; then : |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11680 | ac_cv_lib_svld_dlopen=yes |
| 11681 | else |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 11682 | ac_cv_lib_svld_dlopen=no |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11683 | fi |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 11684 | rm -f core conftest.err conftest.$ac_objext \ |
| 11685 | conftest$ac_exeext conftest.$ac_ext |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11686 | LIBS=$ac_check_lib_save_LIBS |
| 11687 | fi |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 11688 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 11689 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 11690 | if test "x$ac_cv_lib_svld_dlopen" = xyes; then : |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 11691 | lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11692 | else |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 11693 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 11694 | $as_echo_n "checking for dld_link in -ldld... " >&6; } |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 11695 | if ${ac_cv_lib_dld_dld_link+:} false; then : |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 11696 | $as_echo_n "(cached) " >&6 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11697 | else |
| 11698 | ac_check_lib_save_LIBS=$LIBS |
| 11699 | LIBS="-ldld $LIBS" |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 11700 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11701 | /* end confdefs.h. */ |
| 11702 | |
| 11703 | /* Override any GCC internal prototype to avoid an error. |
| 11704 | Use char because int might match the return type of a GCC |
| 11705 | builtin and then its argument prototype would still apply. */ |
| 11706 | #ifdef __cplusplus |
| 11707 | extern "C" |
| 11708 | #endif |
| 11709 | char dld_link (); |
| 11710 | int |
| 11711 | main () |
| 11712 | { |
| 11713 | return dld_link (); |
| 11714 | ; |
| 11715 | return 0; |
| 11716 | } |
| 11717 | _ACEOF |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 11718 | if ac_fn_c_try_link "$LINENO"; then : |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11719 | ac_cv_lib_dld_dld_link=yes |
| 11720 | else |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 11721 | ac_cv_lib_dld_dld_link=no |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11722 | fi |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 11723 | rm -f core conftest.err conftest.$ac_objext \ |
| 11724 | conftest$ac_exeext conftest.$ac_ext |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11725 | LIBS=$ac_check_lib_save_LIBS |
| 11726 | fi |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 11727 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 11728 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 11729 | if test "x$ac_cv_lib_dld_dld_link" = xyes; then : |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 11730 | lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11731 | fi |
| 11732 | |
| 11733 | |
| 11734 | fi |
| 11735 | |
| 11736 | |
| 11737 | fi |
| 11738 | |
| 11739 | |
| 11740 | fi |
| 11741 | |
| 11742 | |
| 11743 | fi |
| 11744 | |
| 11745 | |
| 11746 | fi |
| 11747 | |
| 11748 | ;; |
| 11749 | esac |
| 11750 | |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 11751 | if test no = "$lt_cv_dlopen"; then |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11752 | enable_dlopen=no |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 11753 | else |
| 11754 | enable_dlopen=yes |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11755 | fi |
| 11756 | |
| 11757 | case $lt_cv_dlopen in |
| 11758 | dlopen) |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 11759 | save_CPPFLAGS=$CPPFLAGS |
| 11760 | test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11761 | |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 11762 | save_LDFLAGS=$LDFLAGS |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11763 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
| 11764 | |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 11765 | save_LIBS=$LIBS |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11766 | LIBS="$lt_cv_dlopen_libs $LIBS" |
| 11767 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 11768 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 11769 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 11770 | if ${lt_cv_dlopen_self+:} false; then : |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 11771 | $as_echo_n "(cached) " >&6 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11772 | else |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 11773 | if test yes = "$cross_compiling"; then : |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11774 | lt_cv_dlopen_self=cross |
| 11775 | else |
| 11776 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 11777 | lt_status=$lt_dlunknown |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 11778 | cat > conftest.$ac_ext <<_LT_EOF |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 11779 | #line $LINENO "configure" |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11780 | #include "confdefs.h" |
| 11781 | |
| 11782 | #if HAVE_DLFCN_H |
| 11783 | #include <dlfcn.h> |
| 11784 | #endif |
| 11785 | |
| 11786 | #include <stdio.h> |
| 11787 | |
| 11788 | #ifdef RTLD_GLOBAL |
| 11789 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 11790 | #else |
| 11791 | # ifdef DL_GLOBAL |
| 11792 | # define LT_DLGLOBAL DL_GLOBAL |
| 11793 | # else |
| 11794 | # define LT_DLGLOBAL 0 |
| 11795 | # endif |
| 11796 | #endif |
| 11797 | |
| 11798 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 11799 | find out it does not work in some platform. */ |
| 11800 | #ifndef LT_DLLAZY_OR_NOW |
| 11801 | # ifdef RTLD_LAZY |
| 11802 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 11803 | # else |
| 11804 | # ifdef DL_LAZY |
| 11805 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 11806 | # else |
| 11807 | # ifdef RTLD_NOW |
| 11808 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 11809 | # else |
| 11810 | # ifdef DL_NOW |
| 11811 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 11812 | # else |
| 11813 | # define LT_DLLAZY_OR_NOW 0 |
| 11814 | # endif |
| 11815 | # endif |
| 11816 | # endif |
| 11817 | # endif |
| 11818 | #endif |
| 11819 | |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 11820 | /* When -fvisibility=hidden is used, assume the code has been annotated |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 11821 | correspondingly for the symbols needed. */ |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 11822 | #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 11823 | int fnord () __attribute__((visibility("default"))); |
| 11824 | #endif |
| 11825 | |
| 11826 | int fnord () { return 42; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11827 | int main () |
| 11828 | { |
| 11829 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 11830 | int status = $lt_dlunknown; |
| 11831 | |
| 11832 | if (self) |
| 11833 | { |
| 11834 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 11835 | else |
| 11836 | { |
| 11837 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 11838 | else puts (dlerror ()); |
| 11839 | } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11840 | /* dlclose (self); */ |
| 11841 | } |
| 11842 | else |
| 11843 | puts (dlerror ()); |
| 11844 | |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 11845 | return status; |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11846 | } |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 11847 | _LT_EOF |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 11848 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11849 | (eval $ac_link) 2>&5 |
| 11850 | ac_status=$? |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 11851 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 11852 | test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11853 | (./conftest; exit; ) >&5 2>/dev/null |
| 11854 | lt_status=$? |
| 11855 | case x$lt_status in |
| 11856 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
| 11857 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
| 11858 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; |
| 11859 | esac |
| 11860 | else : |
| 11861 | # compilation failed |
| 11862 | lt_cv_dlopen_self=no |
| 11863 | fi |
| 11864 | fi |
| 11865 | rm -fr conftest* |
| 11866 | |
| 11867 | |
| 11868 | fi |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 11869 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 11870 | $as_echo "$lt_cv_dlopen_self" >&6; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11871 | |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 11872 | if test yes = "$lt_cv_dlopen_self"; then |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11873 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 11874 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 11875 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 11876 | if ${lt_cv_dlopen_self_static+:} false; then : |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 11877 | $as_echo_n "(cached) " >&6 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11878 | else |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 11879 | if test yes = "$cross_compiling"; then : |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11880 | lt_cv_dlopen_self_static=cross |
| 11881 | else |
| 11882 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 11883 | lt_status=$lt_dlunknown |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 11884 | cat > conftest.$ac_ext <<_LT_EOF |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 11885 | #line $LINENO "configure" |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11886 | #include "confdefs.h" |
| 11887 | |
| 11888 | #if HAVE_DLFCN_H |
| 11889 | #include <dlfcn.h> |
| 11890 | #endif |
| 11891 | |
| 11892 | #include <stdio.h> |
| 11893 | |
| 11894 | #ifdef RTLD_GLOBAL |
| 11895 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 11896 | #else |
| 11897 | # ifdef DL_GLOBAL |
| 11898 | # define LT_DLGLOBAL DL_GLOBAL |
| 11899 | # else |
| 11900 | # define LT_DLGLOBAL 0 |
| 11901 | # endif |
| 11902 | #endif |
| 11903 | |
| 11904 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 11905 | find out it does not work in some platform. */ |
| 11906 | #ifndef LT_DLLAZY_OR_NOW |
| 11907 | # ifdef RTLD_LAZY |
| 11908 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 11909 | # else |
| 11910 | # ifdef DL_LAZY |
| 11911 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 11912 | # else |
| 11913 | # ifdef RTLD_NOW |
| 11914 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 11915 | # else |
| 11916 | # ifdef DL_NOW |
| 11917 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 11918 | # else |
| 11919 | # define LT_DLLAZY_OR_NOW 0 |
| 11920 | # endif |
| 11921 | # endif |
| 11922 | # endif |
| 11923 | # endif |
| 11924 | #endif |
| 11925 | |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 11926 | /* When -fvisibility=hidden is used, assume the code has been annotated |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 11927 | correspondingly for the symbols needed. */ |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 11928 | #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 11929 | int fnord () __attribute__((visibility("default"))); |
| 11930 | #endif |
| 11931 | |
| 11932 | int fnord () { return 42; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11933 | int main () |
| 11934 | { |
| 11935 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 11936 | int status = $lt_dlunknown; |
| 11937 | |
| 11938 | if (self) |
| 11939 | { |
| 11940 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 11941 | else |
| 11942 | { |
| 11943 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 11944 | else puts (dlerror ()); |
| 11945 | } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11946 | /* dlclose (self); */ |
| 11947 | } |
| 11948 | else |
| 11949 | puts (dlerror ()); |
| 11950 | |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 11951 | return status; |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11952 | } |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 11953 | _LT_EOF |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 11954 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11955 | (eval $ac_link) 2>&5 |
| 11956 | ac_status=$? |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 11957 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 11958 | test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11959 | (./conftest; exit; ) >&5 2>/dev/null |
| 11960 | lt_status=$? |
| 11961 | case x$lt_status in |
| 11962 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
| 11963 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
| 11964 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; |
| 11965 | esac |
| 11966 | else : |
| 11967 | # compilation failed |
| 11968 | lt_cv_dlopen_self_static=no |
| 11969 | fi |
| 11970 | fi |
| 11971 | rm -fr conftest* |
| 11972 | |
| 11973 | |
| 11974 | fi |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 11975 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 11976 | $as_echo "$lt_cv_dlopen_self_static" >&6; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11977 | fi |
| 11978 | |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 11979 | CPPFLAGS=$save_CPPFLAGS |
| 11980 | LDFLAGS=$save_LDFLAGS |
| 11981 | LIBS=$save_LIBS |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11982 | ;; |
| 11983 | esac |
| 11984 | |
| 11985 | case $lt_cv_dlopen_self in |
| 11986 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| 11987 | *) enable_dlopen_self=unknown ;; |
| 11988 | esac |
| 11989 | |
| 11990 | case $lt_cv_dlopen_self_static in |
| 11991 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| 11992 | *) enable_dlopen_self_static=unknown ;; |
| 11993 | esac |
| 11994 | fi |
| 11995 | |
| 11996 | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11997 | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 11998 | |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 11999 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 12000 | |
| 12001 | |
| 12002 | |
| 12003 | |
| 12004 | |
| 12005 | |
| 12006 | |
| 12007 | |
| 12008 | |
| 12009 | |
| 12010 | |
| 12011 | |
| 12012 | striplib= |
| 12013 | old_striplib= |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 12014 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 12015 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 12016 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then |
| 12017 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 12018 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 12019 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 12020 | $as_echo "yes" >&6; } |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 12021 | else |
| 12022 | # FIXME - insert some real tests, host_os isn't really good enough |
| 12023 | case $host_os in |
| 12024 | darwin*) |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 12025 | if test -n "$STRIP"; then |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 12026 | striplib="$STRIP -x" |
| 12027 | old_striplib="$STRIP -S" |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 12028 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 12029 | $as_echo "yes" >&6; } |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 12030 | else |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 12031 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 12032 | $as_echo "no" >&6; } |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 12033 | fi |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 12034 | ;; |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 12035 | *) |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 12036 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 12037 | $as_echo "no" >&6; } |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 12038 | ;; |
| 12039 | esac |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 12040 | fi |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 12041 | |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 12042 | |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 12043 | |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 12044 | |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 12045 | |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 12046 | |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 12047 | |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 12048 | |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 12049 | |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 12050 | |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 12051 | |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 12052 | |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 12053 | # Report what library types will actually be built |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 12054 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 12055 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 12056 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 12057 | $as_echo "$can_build_shared" >&6; } |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 12058 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 12059 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 12060 | $as_echo_n "checking whether to build shared libraries... " >&6; } |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 12061 | test no = "$can_build_shared" && enable_shared=no |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 12062 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 12063 | # On AIX, shared libraries and static libraries use the same namespace, and |
| 12064 | # are all built from PIC. |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 12065 | case $host_os in |
| 12066 | aix3*) |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 12067 | test yes = "$enable_shared" && enable_static=no |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 12068 | if test -n "$RANLIB"; then |
| 12069 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
| 12070 | postinstall_cmds='$RANLIB $lib' |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 12071 | fi |
| 12072 | ;; |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 12073 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 12074 | aix[4-9]*) |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 12075 | if test ia64 != "$host_cpu"; then |
| 12076 | case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in |
| 12077 | yes,aix,yes) ;; # shared object as lib.so file only |
| 12078 | yes,svr4,*) ;; # shared object as lib.so archive member only |
| 12079 | yes,*) enable_static=no ;; # shared object in lib.a archive as well |
| 12080 | esac |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 12081 | fi |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 12082 | ;; |
| 12083 | esac |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 12084 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 12085 | $as_echo "$enable_shared" >&6; } |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 12086 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 12087 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 12088 | $as_echo_n "checking whether to build static libraries... " >&6; } |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 12089 | # Make sure either enable_shared or enable_static is yes. |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 12090 | test yes = "$enable_shared" || enable_static=yes |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 12091 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 12092 | $as_echo "$enable_static" >&6; } |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 12093 | |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 12094 | |
Jef Poskanzer | 437537f | 2012-11-30 12:16:17 -0800 | [diff] [blame] | 12095 | |
| 12096 | |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 12097 | fi |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 12098 | ac_ext=c |
| 12099 | ac_cpp='$CPP $CPPFLAGS' |
| 12100 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 12101 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 12102 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 12103 | |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 12104 | CC=$lt_save_CC |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 12105 | |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 12106 | |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 12107 | |
| 12108 | |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 12109 | |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 12110 | |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 12111 | |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 12112 | |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 12113 | |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 12114 | |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 12115 | |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 12116 | |
| 12117 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 12118 | |
| 12119 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 12120 | ac_config_commands="$ac_config_commands libtool" |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 12121 | |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 12122 | |
| 12123 | |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 12124 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 12125 | # Only expand once: |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 12126 | |
| 12127 | |
| 12128 | |
Bruce A. Mah | b506d67 | 2014-05-19 15:23:20 -0700 | [diff] [blame] | 12129 | # Add -Wall if we are using GCC. |
Bruce A. Mah | 99b5861 | 2014-05-19 15:04:25 -0700 | [diff] [blame] | 12130 | if test "x$GCC" = "xyes"; then |
Bruce A. Mah | b506d67 | 2014-05-19 15:23:20 -0700 | [diff] [blame] | 12131 | CFLAGS="$CFLAGS -Wall" |
Bruce A. Mah | 99b5861 | 2014-05-19 15:04:25 -0700 | [diff] [blame] | 12132 | fi |
| 12133 | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 12134 | # Checks for header files. |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 12135 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 12136 | $as_echo_n "checking for ANSI C header files... " >&6; } |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 12137 | if ${ac_cv_header_stdc+:} false; then : |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 12138 | $as_echo_n "(cached) " >&6 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 12139 | else |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 12140 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 12141 | /* end confdefs.h. */ |
| 12142 | #include <stdlib.h> |
| 12143 | #include <stdarg.h> |
| 12144 | #include <string.h> |
| 12145 | #include <float.h> |
| 12146 | |
| 12147 | int |
| 12148 | main () |
| 12149 | { |
| 12150 | |
| 12151 | ; |
| 12152 | return 0; |
| 12153 | } |
| 12154 | _ACEOF |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 12155 | if ac_fn_c_try_compile "$LINENO"; then : |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 12156 | ac_cv_header_stdc=yes |
| 12157 | else |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 12158 | ac_cv_header_stdc=no |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 12159 | fi |
| 12160 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12161 | |
| 12162 | if test $ac_cv_header_stdc = yes; then |
| 12163 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 12164 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 12165 | /* end confdefs.h. */ |
| 12166 | #include <string.h> |
| 12167 | |
| 12168 | _ACEOF |
| 12169 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 12170 | $EGREP "memchr" >/dev/null 2>&1; then : |
| 12171 | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 12172 | else |
| 12173 | ac_cv_header_stdc=no |
| 12174 | fi |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 12175 | rm -f conftest* |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 12176 | |
| 12177 | fi |
| 12178 | |
| 12179 | if test $ac_cv_header_stdc = yes; then |
| 12180 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 12181 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 12182 | /* end confdefs.h. */ |
| 12183 | #include <stdlib.h> |
| 12184 | |
| 12185 | _ACEOF |
| 12186 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 12187 | $EGREP "free" >/dev/null 2>&1; then : |
| 12188 | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 12189 | else |
| 12190 | ac_cv_header_stdc=no |
| 12191 | fi |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 12192 | rm -f conftest* |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 12193 | |
| 12194 | fi |
| 12195 | |
| 12196 | if test $ac_cv_header_stdc = yes; then |
| 12197 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 12198 | if test "$cross_compiling" = yes; then : |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 12199 | : |
| 12200 | else |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 12201 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 12202 | /* end confdefs.h. */ |
| 12203 | #include <ctype.h> |
| 12204 | #include <stdlib.h> |
| 12205 | #if ((' ' & 0x0FF) == 0x020) |
| 12206 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 12207 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 12208 | #else |
| 12209 | # define ISLOWER(c) \ |
| 12210 | (('a' <= (c) && (c) <= 'i') \ |
| 12211 | || ('j' <= (c) && (c) <= 'r') \ |
| 12212 | || ('s' <= (c) && (c) <= 'z')) |
| 12213 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 12214 | #endif |
| 12215 | |
| 12216 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 12217 | int |
| 12218 | main () |
| 12219 | { |
| 12220 | int i; |
| 12221 | for (i = 0; i < 256; i++) |
| 12222 | if (XOR (islower (i), ISLOWER (i)) |
| 12223 | || toupper (i) != TOUPPER (i)) |
| 12224 | return 2; |
| 12225 | return 0; |
| 12226 | } |
| 12227 | _ACEOF |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 12228 | if ac_fn_c_try_run "$LINENO"; then : |
| 12229 | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 12230 | else |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 12231 | ac_cv_header_stdc=no |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 12232 | fi |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 12233 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 12234 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 12235 | fi |
| 12236 | |
| 12237 | fi |
| 12238 | fi |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 12239 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 12240 | $as_echo "$ac_cv_header_stdc" >&6; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 12241 | if test $ac_cv_header_stdc = yes; then |
| 12242 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 12243 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
Jon Dugan | 9286415 | 2010-09-20 21:50:12 +0000 | [diff] [blame] | 12244 | |
| 12245 | fi |
| 12246 | |
| 12247 | |
| 12248 | # Check for systems which need -lsocket and -lnsl |
jef | 56a97f9 | 2012-08-20 14:35:58 -0700 | [diff] [blame] | 12249 | #AX_LIB_SOCKET_NSL |
Jon Dugan | 9286415 | 2010-09-20 21:50:12 +0000 | [diff] [blame] | 12250 | |
Bruce A. Mah | 701ba3e | 2016-06-03 09:26:26 -0700 | [diff] [blame] | 12251 | # Check for the math library (needed by cjson on some platforms) |
| 12252 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing floor" >&5 |
| 12253 | $as_echo_n "checking for library containing floor... " >&6; } |
| 12254 | if ${ac_cv_search_floor+:} false; then : |
| 12255 | $as_echo_n "(cached) " >&6 |
| 12256 | else |
| 12257 | ac_func_search_save_LIBS=$LIBS |
| 12258 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12259 | /* end confdefs.h. */ |
| 12260 | |
| 12261 | /* Override any GCC internal prototype to avoid an error. |
| 12262 | Use char because int might match the return type of a GCC |
| 12263 | builtin and then its argument prototype would still apply. */ |
| 12264 | #ifdef __cplusplus |
| 12265 | extern "C" |
| 12266 | #endif |
| 12267 | char floor (); |
| 12268 | int |
| 12269 | main () |
| 12270 | { |
| 12271 | return floor (); |
| 12272 | ; |
| 12273 | return 0; |
| 12274 | } |
| 12275 | _ACEOF |
| 12276 | for ac_lib in '' m; do |
| 12277 | if test -z "$ac_lib"; then |
| 12278 | ac_res="none required" |
| 12279 | else |
| 12280 | ac_res=-l$ac_lib |
| 12281 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 12282 | fi |
| 12283 | if ac_fn_c_try_link "$LINENO"; then : |
| 12284 | ac_cv_search_floor=$ac_res |
| 12285 | fi |
| 12286 | rm -f core conftest.err conftest.$ac_objext \ |
| 12287 | conftest$ac_exeext |
| 12288 | if ${ac_cv_search_floor+:} false; then : |
| 12289 | break |
| 12290 | fi |
| 12291 | done |
| 12292 | if ${ac_cv_search_floor+:} false; then : |
| 12293 | |
| 12294 | else |
| 12295 | ac_cv_search_floor=no |
| 12296 | fi |
| 12297 | rm conftest.$ac_ext |
| 12298 | LIBS=$ac_func_search_save_LIBS |
| 12299 | fi |
| 12300 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_floor" >&5 |
| 12301 | $as_echo "$ac_cv_search_floor" >&6; } |
| 12302 | ac_res=$ac_cv_search_floor |
| 12303 | if test "$ac_res" != no; then : |
| 12304 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 12305 | |
| 12306 | else |
| 12307 | |
| 12308 | echo "floor()" |
| 12309 | exit 1 |
| 12310 | |
| 12311 | fi |
| 12312 | |
| 12313 | |
Bruce A. Mah | 9e93dab | 2014-10-16 11:14:23 -0700 | [diff] [blame] | 12314 | # On illumos we need -lsocket |
| 12315 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 |
| 12316 | $as_echo_n "checking for library containing socket... " >&6; } |
| 12317 | if ${ac_cv_search_socket+:} false; then : |
| 12318 | $as_echo_n "(cached) " >&6 |
| 12319 | else |
| 12320 | ac_func_search_save_LIBS=$LIBS |
| 12321 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12322 | /* end confdefs.h. */ |
| 12323 | |
| 12324 | /* Override any GCC internal prototype to avoid an error. |
| 12325 | Use char because int might match the return type of a GCC |
| 12326 | builtin and then its argument prototype would still apply. */ |
| 12327 | #ifdef __cplusplus |
| 12328 | extern "C" |
| 12329 | #endif |
| 12330 | char socket (); |
| 12331 | int |
| 12332 | main () |
| 12333 | { |
| 12334 | return socket (); |
| 12335 | ; |
| 12336 | return 0; |
| 12337 | } |
| 12338 | _ACEOF |
| 12339 | for ac_lib in '' socket; do |
| 12340 | if test -z "$ac_lib"; then |
| 12341 | ac_res="none required" |
| 12342 | else |
| 12343 | ac_res=-l$ac_lib |
| 12344 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 12345 | fi |
| 12346 | if ac_fn_c_try_link "$LINENO"; then : |
| 12347 | ac_cv_search_socket=$ac_res |
| 12348 | fi |
| 12349 | rm -f core conftest.err conftest.$ac_objext \ |
| 12350 | conftest$ac_exeext |
| 12351 | if ${ac_cv_search_socket+:} false; then : |
| 12352 | break |
| 12353 | fi |
| 12354 | done |
| 12355 | if ${ac_cv_search_socket+:} false; then : |
| 12356 | |
| 12357 | else |
| 12358 | ac_cv_search_socket=no |
| 12359 | fi |
| 12360 | rm conftest.$ac_ext |
| 12361 | LIBS=$ac_func_search_save_LIBS |
| 12362 | fi |
| 12363 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 |
| 12364 | $as_echo "$ac_cv_search_socket" >&6; } |
| 12365 | ac_res=$ac_cv_search_socket |
| 12366 | if test "$ac_res" != no; then : |
| 12367 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 12368 | |
| 12369 | else |
| 12370 | |
| 12371 | echo "socket()" |
| 12372 | exit 1 |
| 12373 | |
| 12374 | fi |
| 12375 | |
| 12376 | |
| 12377 | # On illumos inet_ntop in in -lnsl |
| 12378 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5 |
| 12379 | $as_echo_n "checking for library containing inet_ntop... " >&6; } |
| 12380 | if ${ac_cv_search_inet_ntop+:} false; then : |
| 12381 | $as_echo_n "(cached) " >&6 |
| 12382 | else |
| 12383 | ac_func_search_save_LIBS=$LIBS |
| 12384 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12385 | /* end confdefs.h. */ |
| 12386 | |
| 12387 | /* Override any GCC internal prototype to avoid an error. |
| 12388 | Use char because int might match the return type of a GCC |
| 12389 | builtin and then its argument prototype would still apply. */ |
| 12390 | #ifdef __cplusplus |
| 12391 | extern "C" |
| 12392 | #endif |
| 12393 | char inet_ntop (); |
| 12394 | int |
| 12395 | main () |
| 12396 | { |
| 12397 | return inet_ntop (); |
| 12398 | ; |
| 12399 | return 0; |
| 12400 | } |
| 12401 | _ACEOF |
| 12402 | for ac_lib in '' nsl; do |
| 12403 | if test -z "$ac_lib"; then |
| 12404 | ac_res="none required" |
| 12405 | else |
| 12406 | ac_res=-l$ac_lib |
| 12407 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 12408 | fi |
| 12409 | if ac_fn_c_try_link "$LINENO"; then : |
| 12410 | ac_cv_search_inet_ntop=$ac_res |
| 12411 | fi |
| 12412 | rm -f core conftest.err conftest.$ac_objext \ |
| 12413 | conftest$ac_exeext |
| 12414 | if ${ac_cv_search_inet_ntop+:} false; then : |
| 12415 | break |
| 12416 | fi |
| 12417 | done |
| 12418 | if ${ac_cv_search_inet_ntop+:} false; then : |
| 12419 | |
| 12420 | else |
| 12421 | ac_cv_search_inet_ntop=no |
| 12422 | fi |
| 12423 | rm conftest.$ac_ext |
| 12424 | LIBS=$ac_func_search_save_LIBS |
| 12425 | fi |
| 12426 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5 |
| 12427 | $as_echo "$ac_cv_search_inet_ntop" >&6; } |
| 12428 | ac_res=$ac_cv_search_inet_ntop |
| 12429 | if test "$ac_res" != no; then : |
| 12430 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 12431 | |
| 12432 | else |
| 12433 | |
| 12434 | echo "inet_ntop()" |
| 12435 | exit 1 |
| 12436 | |
| 12437 | fi |
| 12438 | |
| 12439 | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 12440 | # Checks for typedefs, structures, and compiler characteristics. |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 12441 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 12442 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 12443 | if ${ac_cv_c_const+:} false; then : |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 12444 | $as_echo_n "(cached) " >&6 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 12445 | else |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 12446 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 12447 | /* end confdefs.h. */ |
| 12448 | |
| 12449 | int |
| 12450 | main () |
| 12451 | { |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 12452 | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 12453 | #ifndef __cplusplus |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 12454 | /* Ultrix mips cc rejects this sort of thing. */ |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 12455 | typedef int charset[2]; |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 12456 | const charset cs = { 0, 0 }; |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 12457 | /* SunOS 4.1.1 cc rejects this. */ |
| 12458 | char const *const *pcpcc; |
| 12459 | char **ppc; |
| 12460 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 12461 | struct point {int x, y;}; |
| 12462 | static struct point const zero = {0,0}; |
| 12463 | /* AIX XL C 1.02.0.0 rejects this. |
| 12464 | It does not let you subtract one const X* pointer from another in |
| 12465 | an arm of an if-expression whose if-part is not a constant |
| 12466 | expression */ |
| 12467 | const char *g = "string"; |
| 12468 | pcpcc = &g + (g ? g-g : 0); |
| 12469 | /* HPUX 7.0 cc rejects these. */ |
| 12470 | ++pcpcc; |
| 12471 | ppc = (char**) pcpcc; |
| 12472 | pcpcc = (char const *const *) ppc; |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 12473 | { /* SCO 3.2v4 cc rejects this sort of thing. */ |
| 12474 | char tx; |
| 12475 | char *t = &tx; |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 12476 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 12477 | |
| 12478 | *t++ = 0; |
| 12479 | if (s) return 0; |
| 12480 | } |
| 12481 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 12482 | int x[] = {25, 17}; |
| 12483 | const int *foo = &x[0]; |
| 12484 | ++foo; |
| 12485 | } |
| 12486 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 12487 | typedef const int *iptr; |
| 12488 | iptr p = 0; |
| 12489 | ++p; |
| 12490 | } |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 12491 | { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 12492 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 12493 | struct s { int j; const int *ap[3]; } bx; |
| 12494 | struct s *b = &bx; b->j = 5; |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 12495 | } |
| 12496 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 12497 | const int foo = 10; |
| 12498 | if (!foo) return 0; |
| 12499 | } |
| 12500 | return !cs[0] && !zero.x; |
| 12501 | #endif |
| 12502 | |
| 12503 | ; |
| 12504 | return 0; |
| 12505 | } |
| 12506 | _ACEOF |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 12507 | if ac_fn_c_try_compile "$LINENO"; then : |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 12508 | ac_cv_c_const=yes |
| 12509 | else |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 12510 | ac_cv_c_const=no |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 12511 | fi |
| 12512 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12513 | fi |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 12514 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 12515 | $as_echo "$ac_cv_c_const" >&6; } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 12516 | if test $ac_cv_c_const = no; then |
| 12517 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 12518 | $as_echo "#define const /**/" >>confdefs.h |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 12519 | |
| 12520 | fi |
| 12521 | |
| 12522 | |
Bruce A. Mah | 9d7d60a | 2017-05-17 12:50:50 -0700 | [diff] [blame] | 12523 | # Check for poll.h (it's in POSIX so everyone should have it?) |
| 12524 | for ac_header in poll.h |
| 12525 | do : |
| 12526 | ac_fn_c_check_header_mongrel "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default" |
| 12527 | if test "x$ac_cv_header_poll_h" = xyes; then : |
| 12528 | cat >>confdefs.h <<_ACEOF |
| 12529 | #define HAVE_POLL_H 1 |
| 12530 | _ACEOF |
| 12531 | |
| 12532 | fi |
| 12533 | |
| 12534 | done |
| 12535 | |
| 12536 | |
Bruce A. Mah | 81f9bbb | 2014-04-09 10:36:32 -0700 | [diff] [blame] | 12537 | # Check for SCTP support |
Bruce A. Mah | 662a7ca | 2014-10-16 11:30:07 -0700 | [diff] [blame] | 12538 | for ac_header in sys/socket.h |
| 12539 | do : |
| 12540 | ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default" |
| 12541 | if test "x$ac_cv_header_sys_socket_h" = xyes; then : |
| 12542 | cat >>confdefs.h <<_ACEOF |
| 12543 | #define HAVE_SYS_SOCKET_H 1 |
| 12544 | _ACEOF |
| 12545 | |
| 12546 | fi |
| 12547 | |
| 12548 | done |
| 12549 | |
Bruce A. Mah | 81f9bbb | 2014-04-09 10:36:32 -0700 | [diff] [blame] | 12550 | for ac_header in netinet/sctp.h |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 12551 | do : |
Bruce A. Mah | 662a7ca | 2014-10-16 11:30:07 -0700 | [diff] [blame] | 12552 | ac_fn_c_check_header_compile "$LINENO" "netinet/sctp.h" "ac_cv_header_netinet_sctp_h" "#ifdef HAVE_SYS_SOCKET_H |
| 12553 | #include <sys/socket.h> |
| 12554 | #endif |
| 12555 | |
| 12556 | " |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 12557 | if test "x$ac_cv_header_netinet_sctp_h" = xyes; then : |
Bruce A. Mah | 81f9bbb | 2014-04-09 10:36:32 -0700 | [diff] [blame] | 12558 | cat >>confdefs.h <<_ACEOF |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 12559 | #define HAVE_NETINET_SCTP_H 1 |
Bruce A. Mah | 81f9bbb | 2014-04-09 10:36:32 -0700 | [diff] [blame] | 12560 | _ACEOF |
| 12561 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 12562 | $as_echo "#define HAVE_SCTP 1" >>confdefs.h |
Bruce A. Mah | 81f9bbb | 2014-04-09 10:36:32 -0700 | [diff] [blame] | 12563 | |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 12564 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sctp_bindx" >&5 |
| 12565 | $as_echo_n "checking for library containing sctp_bindx... " >&6; } |
| 12566 | if ${ac_cv_search_sctp_bindx+:} false; then : |
| 12567 | $as_echo_n "(cached) " >&6 |
| 12568 | else |
| 12569 | ac_func_search_save_LIBS=$LIBS |
| 12570 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12571 | /* end confdefs.h. */ |
| 12572 | |
| 12573 | /* Override any GCC internal prototype to avoid an error. |
| 12574 | Use char because int might match the return type of a GCC |
| 12575 | builtin and then its argument prototype would still apply. */ |
| 12576 | #ifdef __cplusplus |
| 12577 | extern "C" |
| 12578 | #endif |
| 12579 | char sctp_bindx (); |
| 12580 | int |
| 12581 | main () |
| 12582 | { |
| 12583 | return sctp_bindx (); |
| 12584 | ; |
| 12585 | return 0; |
| 12586 | } |
| 12587 | _ACEOF |
| 12588 | for ac_lib in '' sctp; do |
| 12589 | if test -z "$ac_lib"; then |
| 12590 | ac_res="none required" |
| 12591 | else |
| 12592 | ac_res=-l$ac_lib |
| 12593 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 12594 | fi |
| 12595 | if ac_fn_c_try_link "$LINENO"; then : |
| 12596 | ac_cv_search_sctp_bindx=$ac_res |
| 12597 | fi |
| 12598 | rm -f core conftest.err conftest.$ac_objext \ |
| 12599 | conftest$ac_exeext |
| 12600 | if ${ac_cv_search_sctp_bindx+:} false; then : |
| 12601 | break |
| 12602 | fi |
| 12603 | done |
| 12604 | if ${ac_cv_search_sctp_bindx+:} false; then : |
| 12605 | |
| 12606 | else |
| 12607 | ac_cv_search_sctp_bindx=no |
| 12608 | fi |
| 12609 | rm conftest.$ac_ext |
| 12610 | LIBS=$ac_func_search_save_LIBS |
| 12611 | fi |
| 12612 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sctp_bindx" >&5 |
| 12613 | $as_echo "$ac_cv_search_sctp_bindx" >&6; } |
| 12614 | ac_res=$ac_cv_search_sctp_bindx |
| 12615 | if test "$ac_res" != no; then : |
| 12616 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 12617 | |
| 12618 | fi |
| 12619 | |
Bruce A. Mah | bf32d9d | 2015-01-06 10:40:04 -0800 | [diff] [blame] | 12620 | |
| 12621 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
| 12622 | # ------------------------------------------- |
| 12623 | # Tests whether TYPE exists after having included INCLUDES, setting cache |
| 12624 | # variable VAR accordingly. |
| 12625 | ac_fn_c_check_type () |
| 12626 | { |
| 12627 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 12628 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 12629 | $as_echo_n "checking for $2... " >&6; } |
| 12630 | if eval \${$3+:} false; then : |
| 12631 | $as_echo_n "(cached) " >&6 |
| 12632 | else |
| 12633 | eval "$3=no" |
| 12634 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12635 | /* end confdefs.h. */ |
| 12636 | $4 |
| 12637 | int |
| 12638 | main () |
| 12639 | { |
| 12640 | if (sizeof ($2)) |
| 12641 | return 0; |
| 12642 | ; |
| 12643 | return 0; |
| 12644 | } |
| 12645 | _ACEOF |
| 12646 | if ac_fn_c_try_compile "$LINENO"; then : |
| 12647 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12648 | /* end confdefs.h. */ |
| 12649 | $4 |
| 12650 | int |
| 12651 | main () |
| 12652 | { |
| 12653 | if (sizeof (($2))) |
| 12654 | return 0; |
| 12655 | ; |
| 12656 | return 0; |
| 12657 | } |
| 12658 | _ACEOF |
| 12659 | if ac_fn_c_try_compile "$LINENO"; then : |
| 12660 | |
| 12661 | else |
| 12662 | eval "$3=yes" |
| 12663 | fi |
| 12664 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12665 | fi |
| 12666 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12667 | fi |
| 12668 | eval ac_res=\$$3 |
| 12669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 12670 | $as_echo "$ac_res" >&6; } |
| 12671 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 12672 | |
| 12673 | } # ac_fn_c_check_type |
| 12674 | ac_fn_c_check_type "$LINENO" "struct sctp_assoc_value" "ac_cv_type_struct_sctp_assoc_value" "#include <netinet/sctp.h> |
| 12675 | " |
| 12676 | if test "x$ac_cv_type_struct_sctp_assoc_value" = xyes; then : |
| 12677 | |
| 12678 | cat >>confdefs.h <<_ACEOF |
| 12679 | #define HAVE_STRUCT_SCTP_ASSOC_VALUE 1 |
| 12680 | _ACEOF |
| 12681 | |
| 12682 | |
| 12683 | fi |
| 12684 | |
Bruce A. Mah | 81f9bbb | 2014-04-09 10:36:32 -0700 | [diff] [blame] | 12685 | fi |
| 12686 | |
| 12687 | done |
| 12688 | |
| 12689 | |
Bruce A. Mah | bf51208 | 2017-11-08 09:30:18 -0800 | [diff] [blame] | 12690 | ac_fn_c_check_header_mongrel "$LINENO" "endian.h" "ac_cv_header_endian_h" "$ac_includes_default" |
| 12691 | if test "x$ac_cv_header_endian_h" = xyes; then : |
| 12692 | |
| 12693 | $as_echo "#define HAVE_ENDIAN_H 1" >>confdefs.h |
| 12694 | |
| 12695 | else |
| 12696 | ac_fn_c_check_header_mongrel "$LINENO" "sys/endian.h" "ac_cv_header_sys_endian_h" "$ac_includes_default" |
| 12697 | if test "x$ac_cv_header_sys_endian_h" = xyes; then : |
| 12698 | |
| 12699 | $as_echo "#define HAVE_SYS_ENDIAN_H 1" >>confdefs.h |
| 12700 | |
| 12701 | else |
| 12702 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Couldn't find endian.h or sys/endian.h files: doing compile-time tests." >&5 |
| 12703 | $as_echo "$as_me: WARNING: Couldn't find endian.h or sys/endian.h files: doing compile-time tests." >&2;} |
| 12704 | |
| 12705 | fi |
| 12706 | |
| 12707 | |
| 12708 | |
| 12709 | fi |
| 12710 | |
| 12711 | |
| 12712 | |
Bruce A. Mah | 7cf95d2 | 2017-08-14 13:46:35 -0700 | [diff] [blame] | 12713 | if test "x$with_openssl" = "xno"; then |
| 12714 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Building without OpenSSL; disabling iperf_auth functionality. " >&5 |
| 12715 | $as_echo "$as_me: WARNING: Building without OpenSSL; disabling iperf_auth functionality. " >&2;} |
| 12716 | else |
| 12717 | # Check for OPENSSL support |
ralcini | a51045d | 2017-04-20 19:01:08 +0200 | [diff] [blame] | 12718 | |
| 12719 | found=false |
| 12720 | |
| 12721 | # Check whether --with-openssl was given. |
| 12722 | if test "${with_openssl+set}" = set; then : |
| 12723 | withval=$with_openssl; |
| 12724 | case "$withval" in |
| 12725 | "" | y | ye | yes | n | no) |
| 12726 | as_fn_error $? "Invalid --with-openssl value" "$LINENO" 5 |
| 12727 | ;; |
| 12728 | *) ssldirs="$withval" |
| 12729 | ;; |
| 12730 | esac |
| 12731 | |
| 12732 | else |
| 12733 | |
| 12734 | # if pkg-config is installed and openssl has installed a .pc file, |
| 12735 | # then use that information and don't search ssldirs |
| 12736 | if test -n "$ac_tool_prefix"; then |
| 12737 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
| 12738 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
| 12739 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 12740 | $as_echo_n "checking for $ac_word... " >&6; } |
| 12741 | if ${ac_cv_prog_PKG_CONFIG+:} false; then : |
| 12742 | $as_echo_n "(cached) " >&6 |
| 12743 | else |
| 12744 | if test -n "$PKG_CONFIG"; then |
| 12745 | ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test. |
| 12746 | else |
| 12747 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12748 | for as_dir in $PATH |
| 12749 | do |
| 12750 | IFS=$as_save_IFS |
| 12751 | test -z "$as_dir" && as_dir=. |
| 12752 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 12753 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 12754 | ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config" |
| 12755 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 12756 | break 2 |
| 12757 | fi |
| 12758 | done |
| 12759 | done |
| 12760 | IFS=$as_save_IFS |
| 12761 | |
| 12762 | fi |
| 12763 | fi |
| 12764 | PKG_CONFIG=$ac_cv_prog_PKG_CONFIG |
| 12765 | if test -n "$PKG_CONFIG"; then |
| 12766 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
| 12767 | $as_echo "$PKG_CONFIG" >&6; } |
| 12768 | else |
| 12769 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12770 | $as_echo "no" >&6; } |
| 12771 | fi |
| 12772 | |
| 12773 | |
| 12774 | fi |
| 12775 | if test -z "$ac_cv_prog_PKG_CONFIG"; then |
| 12776 | ac_ct_PKG_CONFIG=$PKG_CONFIG |
| 12777 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 12778 | set dummy pkg-config; ac_word=$2 |
| 12779 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 12780 | $as_echo_n "checking for $ac_word... " >&6; } |
| 12781 | if ${ac_cv_prog_ac_ct_PKG_CONFIG+:} false; then : |
| 12782 | $as_echo_n "(cached) " >&6 |
| 12783 | else |
| 12784 | if test -n "$ac_ct_PKG_CONFIG"; then |
| 12785 | ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test. |
| 12786 | else |
| 12787 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12788 | for as_dir in $PATH |
| 12789 | do |
| 12790 | IFS=$as_save_IFS |
| 12791 | test -z "$as_dir" && as_dir=. |
| 12792 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 12793 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 12794 | ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config" |
| 12795 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 12796 | break 2 |
| 12797 | fi |
| 12798 | done |
| 12799 | done |
| 12800 | IFS=$as_save_IFS |
| 12801 | |
| 12802 | fi |
| 12803 | fi |
| 12804 | ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG |
| 12805 | if test -n "$ac_ct_PKG_CONFIG"; then |
| 12806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PKG_CONFIG" >&5 |
| 12807 | $as_echo "$ac_ct_PKG_CONFIG" >&6; } |
| 12808 | else |
| 12809 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12810 | $as_echo "no" >&6; } |
| 12811 | fi |
| 12812 | |
| 12813 | if test "x$ac_ct_PKG_CONFIG" = x; then |
| 12814 | PKG_CONFIG="" |
| 12815 | else |
| 12816 | case $cross_compiling:$ac_tool_warned in |
| 12817 | yes:) |
| 12818 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 12819 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 12820 | ac_tool_warned=yes ;; |
| 12821 | esac |
| 12822 | PKG_CONFIG=$ac_ct_PKG_CONFIG |
| 12823 | fi |
| 12824 | else |
| 12825 | PKG_CONFIG="$ac_cv_prog_PKG_CONFIG" |
| 12826 | fi |
| 12827 | |
| 12828 | if test x"$PKG_CONFIG" != x""; then |
| 12829 | OPENSSL_LDFLAGS=`$PKG_CONFIG openssl --libs-only-L 2>/dev/null` |
| 12830 | if test $? = 0; then |
| 12831 | OPENSSL_LIBS=`$PKG_CONFIG openssl --libs-only-l 2>/dev/null` |
| 12832 | OPENSSL_INCLUDES=`$PKG_CONFIG openssl --cflags-only-I 2>/dev/null` |
| 12833 | found=true |
| 12834 | fi |
| 12835 | fi |
| 12836 | |
| 12837 | # no such luck; use some default ssldirs |
| 12838 | if ! $found; then |
| 12839 | ssldirs="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /usr" |
| 12840 | fi |
| 12841 | |
| 12842 | |
| 12843 | fi |
| 12844 | |
| 12845 | |
| 12846 | |
| 12847 | # note that we #include <openssl/foo.h>, so the OpenSSL headers have to be in |
| 12848 | # an 'openssl' subdirectory |
| 12849 | |
| 12850 | if ! $found; then |
| 12851 | OPENSSL_INCLUDES= |
| 12852 | for ssldir in $ssldirs; do |
| 12853 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl/ssl.h in $ssldir" >&5 |
| 12854 | $as_echo_n "checking for openssl/ssl.h in $ssldir... " >&6; } |
| 12855 | if test -f "$ssldir/include/openssl/ssl.h"; then |
| 12856 | OPENSSL_INCLUDES="-I$ssldir/include" |
| 12857 | OPENSSL_LDFLAGS="-L$ssldir/lib" |
| 12858 | OPENSSL_LIBS="-lssl -lcrypto" |
| 12859 | found=true |
| 12860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 12861 | $as_echo "yes" >&6; } |
| 12862 | break |
| 12863 | else |
| 12864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12865 | $as_echo "no" >&6; } |
| 12866 | fi |
| 12867 | done |
| 12868 | |
| 12869 | # if the file wasn't found, well, go ahead and try the link anyway -- maybe |
| 12870 | # it will just work! |
| 12871 | fi |
| 12872 | |
| 12873 | # try the preprocessor and linker with our new flags, |
| 12874 | # being careful not to pollute the global LIBS, LDFLAGS, and CPPFLAGS |
| 12875 | |
| 12876 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling and linking against OpenSSL works" >&5 |
| 12877 | $as_echo_n "checking whether compiling and linking against OpenSSL works... " >&6; } |
| 12878 | echo "Trying link with OPENSSL_LDFLAGS=$OPENSSL_LDFLAGS;" \ |
| 12879 | "OPENSSL_LIBS=$OPENSSL_LIBS; OPENSSL_INCLUDES=$OPENSSL_INCLUDES" >&5 |
| 12880 | |
| 12881 | save_LIBS="$LIBS" |
| 12882 | save_LDFLAGS="$LDFLAGS" |
| 12883 | save_CPPFLAGS="$CPPFLAGS" |
| 12884 | LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS" |
| 12885 | LIBS="$OPENSSL_LIBS $LIBS" |
| 12886 | CPPFLAGS="$OPENSSL_INCLUDES $CPPFLAGS" |
| 12887 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12888 | /* end confdefs.h. */ |
| 12889 | #include <openssl/ssl.h> |
| 12890 | int |
| 12891 | main () |
| 12892 | { |
| 12893 | SSL_new(NULL) |
| 12894 | ; |
| 12895 | return 0; |
| 12896 | } |
| 12897 | _ACEOF |
| 12898 | if ac_fn_c_try_link "$LINENO"; then : |
| 12899 | |
| 12900 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 12901 | $as_echo "yes" >&6; } |
| 12902 | |
| 12903 | $as_echo "#define HAVE_SSL 1" >>confdefs.h |
| 12904 | |
| 12905 | |
ralcini | a51045d | 2017-04-20 19:01:08 +0200 | [diff] [blame] | 12906 | else |
| 12907 | |
| 12908 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12909 | $as_echo "no" >&6; } |
Bruce A. Mah | 4a45b32 | 2017-08-15 11:13:08 -0700 | [diff] [blame] | 12910 | if test "x$with_openssl" != "x"; then |
| 12911 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Bruce A. Mah | 7cf95d2 | 2017-08-14 13:46:35 -0700 | [diff] [blame] | 12912 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Bruce A. Mah | 4a45b32 | 2017-08-15 11:13:08 -0700 | [diff] [blame] | 12913 | as_fn_error $? "--with-openssl was given, but test for OpenSSL failed |
Bruce A. Mah | 7cf95d2 | 2017-08-14 13:46:35 -0700 | [diff] [blame] | 12914 | See \`config.log' for more details" "$LINENO" 5; } |
Bruce A. Mah | 4a45b32 | 2017-08-15 11:13:08 -0700 | [diff] [blame] | 12915 | fi |
ralcini | a51045d | 2017-04-20 19:01:08 +0200 | [diff] [blame] | 12916 | |
| 12917 | |
| 12918 | fi |
| 12919 | rm -f core conftest.err conftest.$ac_objext \ |
| 12920 | conftest$ac_exeext conftest.$ac_ext |
| 12921 | CPPFLAGS="$save_CPPFLAGS" |
| 12922 | LDFLAGS="$save_LDFLAGS" |
| 12923 | LIBS="$save_LIBS" |
| 12924 | |
| 12925 | |
| 12926 | |
| 12927 | |
| 12928 | |
Bruce A. Mah | 7cf95d2 | 2017-08-14 13:46:35 -0700 | [diff] [blame] | 12929 | LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS" |
| 12930 | LIBS="$OPENSSL_LIBS $LIBS" |
| 12931 | CPPFLAGS="$OPENSSL_INCLUDES $CPPFLAGS" |
| 12932 | fi |
ralcini | a51045d | 2017-04-20 19:01:08 +0200 | [diff] [blame] | 12933 | |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 12934 | # Check for TCP_CONGESTION sockopt (believed to be Linux and FreeBSD only) |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 12935 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking TCP_CONGESTION socket option" >&5 |
Bruce A. Mah | 8cb96d1 | 2014-04-10 10:55:26 -0700 | [diff] [blame] | 12936 | $as_echo_n "checking TCP_CONGESTION socket option... " >&6; } |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 12937 | if ${iperf3_cv_header_tcp_congestion+:} false; then : |
Bruce A. Mah | 8cb96d1 | 2014-04-10 10:55:26 -0700 | [diff] [blame] | 12938 | $as_echo_n "(cached) " >&6 |
| 12939 | else |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 12940 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Bruce A. Mah | 8cb96d1 | 2014-04-10 10:55:26 -0700 | [diff] [blame] | 12941 | /* end confdefs.h. */ |
| 12942 | #include <netinet/tcp.h> |
| 12943 | #ifdef TCP_CONGESTION |
| 12944 | yes |
| 12945 | #endif |
| 12946 | |
| 12947 | _ACEOF |
| 12948 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 12949 | $EGREP "yes" >/dev/null 2>&1; then : |
Bruce A. Mah | 8cb96d1 | 2014-04-10 10:55:26 -0700 | [diff] [blame] | 12950 | iperf3_cv_header_tcp_congestion=yes |
| 12951 | else |
| 12952 | iperf3_cv_header_tcp_congestion=no |
| 12953 | fi |
| 12954 | rm -f conftest* |
| 12955 | |
| 12956 | fi |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 12957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $iperf3_cv_header_tcp_congestion" >&5 |
Bruce A. Mah | 8cb96d1 | 2014-04-10 10:55:26 -0700 | [diff] [blame] | 12958 | $as_echo "$iperf3_cv_header_tcp_congestion" >&6; } |
| 12959 | if test "x$iperf3_cv_header_tcp_congestion" = "xyes"; then |
| 12960 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 12961 | $as_echo "#define HAVE_TCP_CONGESTION 1" >>confdefs.h |
Bruce A. Mah | 8cb96d1 | 2014-04-10 10:55:26 -0700 | [diff] [blame] | 12962 | |
| 12963 | fi |
| 12964 | |
Bruce A. Mah | b904a78 | 2014-04-10 11:22:49 -0700 | [diff] [blame] | 12965 | # Check for IPv6 flowlabel support (believed to be Linux only) |
| 12966 | # We check for IPV6_FLOWLABEL_MGR in <linux/in6.h> even though we |
| 12967 | # don't use that file directly (we have our own stripped-down |
| 12968 | # copy, see src/flowlabel.h for more details). |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 12969 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking IPv6 flowlabel support" >&5 |
Bruce A. Mah | b904a78 | 2014-04-10 11:22:49 -0700 | [diff] [blame] | 12970 | $as_echo_n "checking IPv6 flowlabel support... " >&6; } |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 12971 | if ${iperf3_cv_header_flowlabel+:} false; then : |
Bruce A. Mah | b904a78 | 2014-04-10 11:22:49 -0700 | [diff] [blame] | 12972 | $as_echo_n "(cached) " >&6 |
| 12973 | else |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 12974 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Bruce A. Mah | b904a78 | 2014-04-10 11:22:49 -0700 | [diff] [blame] | 12975 | /* end confdefs.h. */ |
| 12976 | #include <sys/types.h> |
| 12977 | #include <linux/in6.h> |
| 12978 | #ifdef IPV6_FLOWLABEL_MGR |
| 12979 | yes |
| 12980 | #endif |
| 12981 | |
| 12982 | _ACEOF |
| 12983 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 12984 | $EGREP "yes" >/dev/null 2>&1; then : |
Bruce A. Mah | b904a78 | 2014-04-10 11:22:49 -0700 | [diff] [blame] | 12985 | iperf3_cv_header_flowlabel=yes |
| 12986 | else |
| 12987 | iperf3_cv_header_flowlabel=no |
| 12988 | fi |
| 12989 | rm -f conftest* |
| 12990 | |
| 12991 | fi |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 12992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $iperf3_cv_header_flowlabel" >&5 |
Bruce A. Mah | b904a78 | 2014-04-10 11:22:49 -0700 | [diff] [blame] | 12993 | $as_echo "$iperf3_cv_header_flowlabel" >&6; } |
| 12994 | if test "x$iperf3_cv_header_flowlabel" = "xyes"; then |
| 12995 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 12996 | $as_echo "#define HAVE_FLOWLABEL 1" >>confdefs.h |
Bruce A. Mah | b904a78 | 2014-04-10 11:22:49 -0700 | [diff] [blame] | 12997 | |
| 12998 | fi |
| 12999 | |
Bruce A. Mah | 75ee0f4 | 2014-04-14 10:49:59 -0700 | [diff] [blame] | 13000 | # Check for CPU affinity support. FreeBSD and Linux do this differently |
| 13001 | # unfortunately so we have to check separately for each of them. |
| 13002 | # FreeBSD uses cpuset_setaffinity while Linux uses sched_setaffinity. |
| 13003 | # Define HAVE_CPU_AFFINITY to indicate the CPU affinity setting as a |
| 13004 | # generic concept is available. |
Boris Okunev | 5b27ea3 | 2017-11-13 23:54:34 +0300 | [diff] [blame] | 13005 | for ac_func in cpuset_setaffinity sched_setaffinity SetProcessAffinityMask |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 13006 | do : |
| 13007 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 13008 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 13009 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
Bruce A. Mah | 75ee0f4 | 2014-04-14 10:49:59 -0700 | [diff] [blame] | 13010 | cat >>confdefs.h <<_ACEOF |
| 13011 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 13012 | _ACEOF |
| 13013 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 13014 | $as_echo "#define HAVE_CPU_AFFINITY 1" >>confdefs.h |
Bruce A. Mah | 75ee0f4 | 2014-04-14 10:49:59 -0700 | [diff] [blame] | 13015 | |
| 13016 | fi |
| 13017 | done |
| 13018 | |
| 13019 | |
Bruce A. Mah | 73b02f9 | 2017-11-11 10:12:55 -0800 | [diff] [blame] | 13020 | # Check for daemon(). Most systems have this but a few (IRIX) don't. |
| 13021 | for ac_func in daemon |
| 13022 | do : |
| 13023 | ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon" |
| 13024 | if test "x$ac_cv_func_daemon" = xyes; then : |
| 13025 | cat >>confdefs.h <<_ACEOF |
| 13026 | #define HAVE_DAEMON 1 |
| 13027 | _ACEOF |
| 13028 | |
| 13029 | fi |
| 13030 | done |
| 13031 | |
| 13032 | |
Bruce A. Mah | de54235 | 2014-04-14 14:49:39 -0700 | [diff] [blame] | 13033 | # Check for sendfile support. FreeBSD, Linux, and MacOS all support |
| 13034 | # this system call, but they're all different in terms of what headers |
| 13035 | # it needs and what arguments it expects. |
Bruce A. Mah | de54235 | 2014-04-14 14:49:39 -0700 | [diff] [blame] | 13036 | for ac_func in sendfile |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 13037 | do : |
| 13038 | ac_fn_c_check_func "$LINENO" "sendfile" "ac_cv_func_sendfile" |
| 13039 | if test "x$ac_cv_func_sendfile" = xyes; then : |
Bruce A. Mah | de54235 | 2014-04-14 14:49:39 -0700 | [diff] [blame] | 13040 | cat >>confdefs.h <<_ACEOF |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 13041 | #define HAVE_SENDFILE 1 |
Bruce A. Mah | de54235 | 2014-04-14 14:49:39 -0700 | [diff] [blame] | 13042 | _ACEOF |
| 13043 | |
| 13044 | fi |
| 13045 | done |
| 13046 | |
| 13047 | |
Bruce A. Mah | d064158 | 2017-11-08 10:19:49 -0800 | [diff] [blame] | 13048 | # Check for getline support, used as a part of authenticated |
| 13049 | # connections. |
| 13050 | for ac_func in getline |
| 13051 | do : |
| 13052 | ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline" |
| 13053 | if test "x$ac_cv_func_getline" = xyes; then : |
| 13054 | cat >>confdefs.h <<_ACEOF |
| 13055 | #define HAVE_GETLINE 1 |
| 13056 | _ACEOF |
| 13057 | |
| 13058 | fi |
| 13059 | done |
| 13060 | |
| 13061 | |
Bruce A. Mah | a5f5765 | 2016-05-26 09:49:16 -0700 | [diff] [blame] | 13062 | # Check for packet pacing socket option (Linux only for now). |
| 13063 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking SO_MAX_PACING_RATE socket option" >&5 |
| 13064 | $as_echo_n "checking SO_MAX_PACING_RATE socket option... " >&6; } |
| 13065 | if ${iperf3_cv_header_so_max_pacing_rate+:} false; then : |
| 13066 | $as_echo_n "(cached) " >&6 |
| 13067 | else |
| 13068 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13069 | /* end confdefs.h. */ |
| 13070 | #include <sys/socket.h> |
| 13071 | #ifdef SO_MAX_PACING_RATE |
| 13072 | yes |
| 13073 | #endif |
| 13074 | |
| 13075 | _ACEOF |
| 13076 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 13077 | $EGREP "yes" >/dev/null 2>&1; then : |
| 13078 | iperf3_cv_header_so_max_pacing_rate=yes |
| 13079 | else |
| 13080 | iperf3_cv_header_so_max_pacing_rate=no |
| 13081 | fi |
| 13082 | rm -f conftest* |
| 13083 | |
| 13084 | fi |
| 13085 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $iperf3_cv_header_so_max_pacing_rate" >&5 |
| 13086 | $as_echo "$iperf3_cv_header_so_max_pacing_rate" >&6; } |
| 13087 | if test "x$iperf3_cv_header_so_max_pacing_rate" = "xyes"; then |
| 13088 | |
| 13089 | $as_echo "#define HAVE_SO_MAX_PACING_RATE 1" >>confdefs.h |
| 13090 | |
| 13091 | fi |
| 13092 | |
| 13093 | |
Bruce A. Mah | bf22c9d | 2014-10-14 13:45:04 -0700 | [diff] [blame] | 13094 | ac_config_files="$ac_config_files Makefile src/Makefile src/version.h examples/Makefile iperf3.spec" |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 13095 | |
| 13096 | cat >confcache <<\_ACEOF |
| 13097 | # This file is a shell script that caches the results of configure |
| 13098 | # tests run on this system so they can be shared between configure |
| 13099 | # scripts and configure runs, see configure's option --config-cache. |
| 13100 | # It is not useful on other systems. If it contains results you don't |
| 13101 | # want to keep, you may remove or edit it. |
| 13102 | # |
| 13103 | # config.status only pays attention to the cache file if you give it |
| 13104 | # the --recheck option to rerun configure. |
| 13105 | # |
| 13106 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 13107 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 13108 | # following values. |
| 13109 | |
| 13110 | _ACEOF |
| 13111 | |
| 13112 | # The following way of writing the cache mishandles newlines in values, |
| 13113 | # but we know of no workaround that is simple, portable, and efficient. |
| 13114 | # So, we kill variables containing newlines. |
| 13115 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 13116 | # and sets the high bit in the cache file unless we assign to the vars. |
| 13117 | ( |
| 13118 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 13119 | eval ac_val=\$$ac_var |
| 13120 | case $ac_val in #( |
| 13121 | *${as_nl}*) |
| 13122 | case $ac_var in #( |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 13123 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 13124 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 13125 | esac |
| 13126 | case $ac_var in #( |
| 13127 | _ | IFS | as_nl) ;; #( |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 13128 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 13129 | *) { eval $ac_var=; unset $ac_var;} ;; |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 13130 | esac ;; |
| 13131 | esac |
| 13132 | done |
| 13133 | |
| 13134 | (set) 2>&1 | |
| 13135 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 13136 | *${as_nl}ac_space=\ *) |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 13137 | # `set' does not quote correctly, so add quotes: double-quote |
| 13138 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 13139 | sed -n \ |
| 13140 | "s/'/'\\\\''/g; |
| 13141 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 13142 | ;; #( |
| 13143 | *) |
| 13144 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 13145 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
| 13146 | ;; |
| 13147 | esac | |
| 13148 | sort |
| 13149 | ) | |
| 13150 | sed ' |
| 13151 | /^ac_cv_env_/b end |
| 13152 | t clear |
| 13153 | :clear |
| 13154 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 13155 | t end |
| 13156 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 13157 | :end' >>confcache |
| 13158 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 13159 | if test -w "$cache_file"; then |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 13160 | if test "x$cache_file" != "x/dev/null"; then |
| 13161 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 13162 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 13163 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
| 13164 | cat confcache >"$cache_file" |
| 13165 | else |
| 13166 | case $cache_file in #( |
| 13167 | */* | ?:*) |
| 13168 | mv -f confcache "$cache_file"$$ && |
| 13169 | mv -f "$cache_file"$$ "$cache_file" ;; #( |
| 13170 | *) |
| 13171 | mv -f confcache "$cache_file" ;; |
| 13172 | esac |
| 13173 | fi |
| 13174 | fi |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 13175 | else |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 13176 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 13177 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 13178 | fi |
| 13179 | fi |
| 13180 | rm -f confcache |
| 13181 | |
| 13182 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 13183 | # Let make expand exec_prefix. |
| 13184 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 13185 | |
| 13186 | DEFS=-DHAVE_CONFIG_H |
| 13187 | |
| 13188 | ac_libobjs= |
| 13189 | ac_ltlibobjs= |
| 13190 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 13191 | # 1. Remove the extension, and $U if already installed. |
| 13192 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 13193 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 13194 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 13195 | # will be set to the directory where LIBOBJS objects are built. |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 13196 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 13197 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 13198 | done |
| 13199 | LIBOBJS=$ac_libobjs |
| 13200 | |
| 13201 | LTLIBOBJS=$ac_ltlibobjs |
| 13202 | |
| 13203 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 13204 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 |
| 13205 | $as_echo_n "checking that generated files are newer than configure... " >&6; } |
| 13206 | if test -n "$am_sleep_pid"; then |
| 13207 | # Hide warnings about reused PIDs. |
| 13208 | wait $am_sleep_pid 2>/dev/null |
| 13209 | fi |
| 13210 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 |
| 13211 | $as_echo "done" >&6; } |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 13212 | if test -n "$EXEEXT"; then |
| 13213 | am__EXEEXT_TRUE= |
| 13214 | am__EXEEXT_FALSE='#' |
| 13215 | else |
| 13216 | am__EXEEXT_TRUE='#' |
| 13217 | am__EXEEXT_FALSE= |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 13218 | fi |
| 13219 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 13220 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
| 13221 | as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. |
| 13222 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 13223 | fi |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 13224 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 13225 | as_fn_error $? "conditional \"AMDEP\" was never defined. |
| 13226 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 13227 | fi |
| 13228 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 13229 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. |
| 13230 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 13231 | fi |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 13232 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 13233 | : "${CONFIG_STATUS=./config.status}" |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 13234 | ac_write_fail=0 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 13235 | ac_clean_files_save=$ac_clean_files |
| 13236 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 13237 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 13238 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 13239 | as_write_fail=0 |
| 13240 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 13241 | #! $SHELL |
| 13242 | # Generated by $as_me. |
| 13243 | # Run this file to recreate the current configuration. |
| 13244 | # Compiler output produced by configure, useful for debugging |
| 13245 | # configure, is in config.log if it exists. |
| 13246 | |
| 13247 | debug=false |
| 13248 | ac_cs_recheck=false |
| 13249 | ac_cs_silent=false |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 13250 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 13251 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 13252 | export SHELL |
| 13253 | _ASEOF |
| 13254 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
| 13255 | ## -------------------- ## |
| 13256 | ## M4sh Initialization. ## |
| 13257 | ## -------------------- ## |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 13258 | |
| 13259 | # Be more Bourne compatible |
| 13260 | DUALCASE=1; export DUALCASE # for MKS sh |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 13261 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 13262 | emulate sh |
| 13263 | NULLCMD=: |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 13264 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 13265 | # is contrary to our usage. Disable this feature. |
| 13266 | alias -g '${1+"$@"}'='"$@"' |
| 13267 | setopt NO_GLOB_SUBST |
| 13268 | else |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 13269 | case `(set -o) 2>/dev/null` in #( |
| 13270 | *posix*) : |
| 13271 | set -o posix ;; #( |
| 13272 | *) : |
| 13273 | ;; |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 13274 | esac |
| 13275 | fi |
| 13276 | |
| 13277 | |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 13278 | as_nl=' |
| 13279 | ' |
| 13280 | export as_nl |
| 13281 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 13282 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 13283 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 13284 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 13285 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 13286 | # but without wasting forks for bash or zsh. |
| 13287 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 13288 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 13289 | as_echo='print -r --' |
| 13290 | as_echo_n='print -rn --' |
| 13291 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 13292 | as_echo='printf %s\n' |
| 13293 | as_echo_n='printf %s' |
| 13294 | else |
| 13295 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 13296 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 13297 | as_echo_n='/usr/ucb/echo -n' |
| 13298 | else |
| 13299 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 13300 | as_echo_n_body='eval |
| 13301 | arg=$1; |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 13302 | case $arg in #( |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 13303 | *"$as_nl"*) |
| 13304 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 13305 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 13306 | esac; |
| 13307 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 13308 | ' |
| 13309 | export as_echo_n_body |
| 13310 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 13311 | fi |
| 13312 | export as_echo_body |
| 13313 | as_echo='sh -c $as_echo_body as_echo' |
| 13314 | fi |
Jef Poskanzer | 437537f | 2012-11-30 12:16:17 -0800 | [diff] [blame] | 13315 | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 13316 | # The user is always right. |
| 13317 | if test "${PATH_SEPARATOR+set}" != set; then |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 13318 | PATH_SEPARATOR=: |
| 13319 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 13320 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 13321 | PATH_SEPARATOR=';' |
| 13322 | } |
Jef Poskanzer | 437537f | 2012-11-30 12:16:17 -0800 | [diff] [blame] | 13323 | fi |
| 13324 | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 13325 | |
| 13326 | # IFS |
| 13327 | # We need space, tab and new line, in precisely that order. Quoting is |
| 13328 | # there to prevent editors from complaining about space-tab. |
| 13329 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 13330 | # splitting by setting IFS to empty value.) |
| 13331 | IFS=" "" $as_nl" |
| 13332 | |
| 13333 | # Find who we are. Look in the path if we contain no directory separator. |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 13334 | as_myself= |
| 13335 | case $0 in #(( |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 13336 | *[\\/]* ) as_myself=$0 ;; |
| 13337 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13338 | for as_dir in $PATH |
| 13339 | do |
| 13340 | IFS=$as_save_IFS |
| 13341 | test -z "$as_dir" && as_dir=. |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 13342 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 13343 | done |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 13344 | IFS=$as_save_IFS |
| 13345 | |
| 13346 | ;; |
| 13347 | esac |
| 13348 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 13349 | # in which case we are not to be found in the path. |
| 13350 | if test "x$as_myself" = x; then |
| 13351 | as_myself=$0 |
| 13352 | fi |
| 13353 | if test ! -f "$as_myself"; then |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 13354 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 13355 | exit 1 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 13356 | fi |
| 13357 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 13358 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 13359 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 13360 | # suppresses any "Segmentation fault" message there. '((' could |
| 13361 | # trigger a bug in pdksh 5.2.14. |
| 13362 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 13363 | do eval test x\${$as_var+set} = xset \ |
| 13364 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 13365 | done |
| 13366 | PS1='$ ' |
| 13367 | PS2='> ' |
| 13368 | PS4='+ ' |
| 13369 | |
| 13370 | # NLS nuisances. |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 13371 | LC_ALL=C |
| 13372 | export LC_ALL |
| 13373 | LANGUAGE=C |
| 13374 | export LANGUAGE |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 13375 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 13376 | # CDPATH. |
| 13377 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 13378 | |
| 13379 | |
| 13380 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 13381 | # ---------------------------------------- |
| 13382 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 13383 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 13384 | # script with STATUS, using 1 if that was 0. |
| 13385 | as_fn_error () |
| 13386 | { |
| 13387 | as_status=$1; test $as_status -eq 0 && as_status=1 |
| 13388 | if test "$4"; then |
| 13389 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 13390 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
| 13391 | fi |
| 13392 | $as_echo "$as_me: error: $2" >&2 |
| 13393 | as_fn_exit $as_status |
| 13394 | } # as_fn_error |
| 13395 | |
| 13396 | |
| 13397 | # as_fn_set_status STATUS |
| 13398 | # ----------------------- |
| 13399 | # Set $? to STATUS, without forking. |
| 13400 | as_fn_set_status () |
| 13401 | { |
| 13402 | return $1 |
| 13403 | } # as_fn_set_status |
| 13404 | |
| 13405 | # as_fn_exit STATUS |
| 13406 | # ----------------- |
| 13407 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 13408 | as_fn_exit () |
| 13409 | { |
| 13410 | set +e |
| 13411 | as_fn_set_status $1 |
| 13412 | exit $1 |
| 13413 | } # as_fn_exit |
| 13414 | |
| 13415 | # as_fn_unset VAR |
| 13416 | # --------------- |
| 13417 | # Portably unset VAR. |
| 13418 | as_fn_unset () |
| 13419 | { |
| 13420 | { eval $1=; unset $1;} |
| 13421 | } |
| 13422 | as_unset=as_fn_unset |
| 13423 | # as_fn_append VAR VALUE |
| 13424 | # ---------------------- |
| 13425 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 13426 | # advantage of any shell optimizations that allow amortized linear growth over |
| 13427 | # repeated appends, instead of the typical quadratic growth present in naive |
| 13428 | # implementations. |
| 13429 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 13430 | eval 'as_fn_append () |
| 13431 | { |
| 13432 | eval $1+=\$2 |
| 13433 | }' |
| 13434 | else |
| 13435 | as_fn_append () |
| 13436 | { |
| 13437 | eval $1=\$$1\$2 |
| 13438 | } |
| 13439 | fi # as_fn_append |
| 13440 | |
| 13441 | # as_fn_arith ARG... |
| 13442 | # ------------------ |
| 13443 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 13444 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 13445 | # must be portable across $(()) and expr. |
| 13446 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 13447 | eval 'as_fn_arith () |
| 13448 | { |
| 13449 | as_val=$(( $* )) |
| 13450 | }' |
| 13451 | else |
| 13452 | as_fn_arith () |
| 13453 | { |
| 13454 | as_val=`expr "$@" || test $? -eq 1` |
| 13455 | } |
| 13456 | fi # as_fn_arith |
| 13457 | |
| 13458 | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 13459 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 13460 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 13461 | as_expr=expr |
| 13462 | else |
| 13463 | as_expr=false |
| 13464 | fi |
| 13465 | |
| 13466 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 13467 | as_basename=basename |
| 13468 | else |
| 13469 | as_basename=false |
| 13470 | fi |
| 13471 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 13472 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 13473 | as_dirname=dirname |
| 13474 | else |
| 13475 | as_dirname=false |
| 13476 | fi |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 13477 | |
| 13478 | as_me=`$as_basename -- "$0" || |
| 13479 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 13480 | X"$0" : 'X\(//\)$' \| \ |
| 13481 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 13482 | $as_echo X/"$0" | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 13483 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 13484 | s//\1/ |
| 13485 | q |
| 13486 | } |
| 13487 | /^X\/\(\/\/\)$/{ |
| 13488 | s//\1/ |
| 13489 | q |
| 13490 | } |
| 13491 | /^X\/\(\/\).*/{ |
| 13492 | s//\1/ |
| 13493 | q |
| 13494 | } |
| 13495 | s/.*/./; q'` |
| 13496 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 13497 | # Avoid depending upon Character Ranges. |
| 13498 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 13499 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 13500 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 13501 | as_cr_digits='0123456789' |
| 13502 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 13503 | |
| 13504 | ECHO_C= ECHO_N= ECHO_T= |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 13505 | case `echo -n x` in #((((( |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 13506 | -n*) |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 13507 | case `echo 'xy\c'` in |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 13508 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 13509 | xy) ECHO_C='\c';; |
| 13510 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 13511 | ECHO_T=' ';; |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 13512 | esac;; |
| 13513 | *) |
| 13514 | ECHO_N='-n';; |
| 13515 | esac |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 13516 | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 13517 | rm -f conf$$ conf$$.exe conf$$.file |
| 13518 | if test -d conf$$.dir; then |
| 13519 | rm -f conf$$.dir/conf$$.file |
| 13520 | else |
| 13521 | rm -f conf$$.dir |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 13522 | mkdir conf$$.dir 2>/dev/null |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 13523 | fi |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 13524 | if (echo >conf$$.file) 2>/dev/null; then |
| 13525 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 13526 | as_ln_s='ln -s' |
| 13527 | # ... but there are two gotchas: |
| 13528 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 13529 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 13530 | # In both cases, we have to default to `cp -pR'. |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 13531 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 13532 | as_ln_s='cp -pR' |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 13533 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 13534 | as_ln_s=ln |
| 13535 | else |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 13536 | as_ln_s='cp -pR' |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 13537 | fi |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 13538 | else |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 13539 | as_ln_s='cp -pR' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 13540 | fi |
| 13541 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 13542 | rmdir conf$$.dir 2>/dev/null |
| 13543 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 13544 | |
| 13545 | # as_fn_mkdir_p |
| 13546 | # ------------- |
| 13547 | # Create "$as_dir" as a directory, including parents if necessary. |
| 13548 | as_fn_mkdir_p () |
| 13549 | { |
| 13550 | |
| 13551 | case $as_dir in #( |
| 13552 | -*) as_dir=./$as_dir;; |
| 13553 | esac |
| 13554 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 13555 | as_dirs= |
| 13556 | while :; do |
| 13557 | case $as_dir in #( |
| 13558 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 13559 | *) as_qdir=$as_dir;; |
| 13560 | esac |
| 13561 | as_dirs="'$as_qdir' $as_dirs" |
| 13562 | as_dir=`$as_dirname -- "$as_dir" || |
| 13563 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 13564 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 13565 | X"$as_dir" : 'X\(//\)$' \| \ |
| 13566 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 13567 | $as_echo X"$as_dir" | |
| 13568 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 13569 | s//\1/ |
| 13570 | q |
| 13571 | } |
| 13572 | /^X\(\/\/\)[^/].*/{ |
| 13573 | s//\1/ |
| 13574 | q |
| 13575 | } |
| 13576 | /^X\(\/\/\)$/{ |
| 13577 | s//\1/ |
| 13578 | q |
| 13579 | } |
| 13580 | /^X\(\/\).*/{ |
| 13581 | s//\1/ |
| 13582 | q |
| 13583 | } |
| 13584 | s/.*/./; q'` |
| 13585 | test -d "$as_dir" && break |
| 13586 | done |
| 13587 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 13588 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
| 13589 | |
| 13590 | |
| 13591 | } # as_fn_mkdir_p |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 13592 | if mkdir -p . 2>/dev/null; then |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 13593 | as_mkdir_p='mkdir -p "$as_dir"' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 13594 | else |
| 13595 | test -d ./-p && rmdir ./-p |
| 13596 | as_mkdir_p=false |
| 13597 | fi |
| 13598 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 13599 | |
| 13600 | # as_fn_executable_p FILE |
| 13601 | # ----------------------- |
| 13602 | # Test if FILE is an executable regular file. |
| 13603 | as_fn_executable_p () |
| 13604 | { |
| 13605 | test -f "$1" && test -x "$1" |
| 13606 | } # as_fn_executable_p |
| 13607 | as_test_x='test -x' |
| 13608 | as_executable_p=as_fn_executable_p |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 13609 | |
| 13610 | # Sed expression to map a string onto a valid CPP name. |
| 13611 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 13612 | |
| 13613 | # Sed expression to map a string onto a valid variable name. |
| 13614 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 13615 | |
| 13616 | |
| 13617 | exec 6>&1 |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 13618 | ## ----------------------------------- ## |
| 13619 | ## Main body of $CONFIG_STATUS script. ## |
| 13620 | ## ----------------------------------- ## |
| 13621 | _ASEOF |
| 13622 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 13623 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 13624 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 13625 | # Save the log message, to keep $0 and so on meaningful, and to |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 13626 | # report actual input values of CONFIG_FILES etc. instead of their |
| 13627 | # values after options handling. |
| 13628 | ac_log=" |
Bruce A. Mah | ff1ea4e | 2018-02-28 13:24:06 -0800 | [diff] [blame^] | 13629 | This file was extended by iperf $as_me 3.5, which was |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 13630 | generated by GNU Autoconf 2.69. Invocation command line was |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 13631 | |
| 13632 | CONFIG_FILES = $CONFIG_FILES |
| 13633 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 13634 | CONFIG_LINKS = $CONFIG_LINKS |
| 13635 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 13636 | $ $0 $@ |
| 13637 | |
| 13638 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 13639 | " |
| 13640 | |
| 13641 | _ACEOF |
| 13642 | |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 13643 | case $ac_config_files in *" |
| 13644 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
| 13645 | esac |
| 13646 | |
| 13647 | case $ac_config_headers in *" |
| 13648 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
| 13649 | esac |
| 13650 | |
| 13651 | |
| 13652 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 13653 | # Files that config.status was made for. |
| 13654 | config_files="$ac_config_files" |
| 13655 | config_headers="$ac_config_headers" |
| 13656 | config_commands="$ac_config_commands" |
| 13657 | |
| 13658 | _ACEOF |
| 13659 | |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 13660 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 13661 | ac_cs_usage="\ |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 13662 | \`$as_me' instantiates files and other configuration actions |
| 13663 | from templates according to the current configuration. Unless the files |
| 13664 | and actions are specified as TAGs, all are instantiated by default. |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 13665 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 13666 | Usage: $0 [OPTION]... [TAG]... |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 13667 | |
| 13668 | -h, --help print this help, then exit |
| 13669 | -V, --version print version number and configuration settings, then exit |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 13670 | --config print configuration, then exit |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 13671 | -q, --quiet, --silent |
| 13672 | do not print progress messages |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 13673 | -d, --debug don't remove temporary files |
| 13674 | --recheck update $as_me by reconfiguring in the same conditions |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 13675 | --file=FILE[:TEMPLATE] |
| 13676 | instantiate the configuration file FILE |
| 13677 | --header=FILE[:TEMPLATE] |
| 13678 | instantiate the configuration header FILE |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 13679 | |
| 13680 | Configuration files: |
| 13681 | $config_files |
| 13682 | |
| 13683 | Configuration headers: |
| 13684 | $config_headers |
| 13685 | |
| 13686 | Configuration commands: |
| 13687 | $config_commands |
| 13688 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 13689 | Report bugs to <https://github.com/esnet/iperf>. |
| 13690 | iperf home page: <http://software.es.net/iperf/>." |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 13691 | |
| 13692 | _ACEOF |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 13693 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 13694 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 13695 | ac_cs_version="\\ |
Bruce A. Mah | ff1ea4e | 2018-02-28 13:24:06 -0800 | [diff] [blame^] | 13696 | iperf config.status 3.5 |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 13697 | configured by $0, generated by GNU Autoconf 2.69, |
| 13698 | with options \\"\$ac_cs_config\\" |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 13699 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 13700 | Copyright (C) 2012 Free Software Foundation, Inc. |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 13701 | This config.status script is free software; the Free Software Foundation |
| 13702 | gives unlimited permission to copy, distribute and modify it." |
| 13703 | |
| 13704 | ac_pwd='$ac_pwd' |
| 13705 | srcdir='$srcdir' |
| 13706 | INSTALL='$INSTALL' |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 13707 | MKDIR_P='$MKDIR_P' |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 13708 | AWK='$AWK' |
| 13709 | test -n "\$AWK" || AWK=awk |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 13710 | _ACEOF |
| 13711 | |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 13712 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 13713 | # The default lists apply if the user does not specify any file. |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 13714 | ac_need_defaults=: |
| 13715 | while test $# != 0 |
| 13716 | do |
| 13717 | case $1 in |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 13718 | --*=?*) |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 13719 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 13720 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
| 13721 | ac_shift=: |
| 13722 | ;; |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 13723 | --*=) |
| 13724 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 13725 | ac_optarg= |
| 13726 | ac_shift=: |
| 13727 | ;; |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 13728 | *) |
| 13729 | ac_option=$1 |
| 13730 | ac_optarg=$2 |
| 13731 | ac_shift=shift |
| 13732 | ;; |
| 13733 | esac |
| 13734 | |
| 13735 | case $ac_option in |
| 13736 | # Handling of the options. |
| 13737 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 13738 | ac_cs_recheck=: ;; |
| 13739 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 13740 | $as_echo "$ac_cs_version"; exit ;; |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 13741 | --config | --confi | --conf | --con | --co | --c ) |
| 13742 | $as_echo "$ac_cs_config"; exit ;; |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 13743 | --debug | --debu | --deb | --de | --d | -d ) |
| 13744 | debug=: ;; |
| 13745 | --file | --fil | --fi | --f ) |
| 13746 | $ac_shift |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 13747 | case $ac_optarg in |
| 13748 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 13749 | '') as_fn_error $? "missing file argument" ;; |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 13750 | esac |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 13751 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 13752 | ac_need_defaults=false;; |
| 13753 | --header | --heade | --head | --hea ) |
| 13754 | $ac_shift |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 13755 | case $ac_optarg in |
| 13756 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 13757 | esac |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 13758 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 13759 | ac_need_defaults=false;; |
| 13760 | --he | --h) |
| 13761 | # Conflict between --help and --header |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 13762 | as_fn_error $? "ambiguous option: \`$1' |
| 13763 | Try \`$0 --help' for more information.";; |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 13764 | --help | --hel | -h ) |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 13765 | $as_echo "$ac_cs_usage"; exit ;; |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 13766 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 13767 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 13768 | ac_cs_silent=: ;; |
| 13769 | |
| 13770 | # This is an error. |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 13771 | -*) as_fn_error $? "unrecognized option: \`$1' |
| 13772 | Try \`$0 --help' for more information." ;; |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 13773 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 13774 | *) as_fn_append ac_config_targets " $1" |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 13775 | ac_need_defaults=false ;; |
| 13776 | |
| 13777 | esac |
| 13778 | shift |
| 13779 | done |
| 13780 | |
| 13781 | ac_configure_extra_args= |
| 13782 | |
| 13783 | if $ac_cs_silent; then |
| 13784 | exec 6>/dev/null |
| 13785 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 13786 | fi |
| 13787 | |
| 13788 | _ACEOF |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 13789 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 13790 | if \$ac_cs_recheck; then |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 13791 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 13792 | shift |
| 13793 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 13794 | CONFIG_SHELL='$SHELL' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 13795 | export CONFIG_SHELL |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 13796 | exec "\$@" |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 13797 | fi |
| 13798 | |
| 13799 | _ACEOF |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 13800 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 13801 | exec 5>>config.log |
| 13802 | { |
| 13803 | echo |
| 13804 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 13805 | ## Running $as_me. ## |
| 13806 | _ASBOX |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 13807 | $as_echo "$ac_log" |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 13808 | } >&5 |
| 13809 | |
| 13810 | _ACEOF |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 13811 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 13812 | # |
| 13813 | # INIT-COMMANDS |
| 13814 | # |
Bruce A. Mah | ff1ea4e | 2018-02-28 13:24:06 -0800 | [diff] [blame^] | 13815 | AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 13816 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 13817 | |
| 13818 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 13819 | # if CDPATH is set. |
| 13820 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 13821 | |
| 13822 | sed_quote_subst='$sed_quote_subst' |
| 13823 | double_quote_subst='$double_quote_subst' |
| 13824 | delay_variable_subst='$delay_variable_subst' |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 13825 | macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' |
| 13826 | macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' |
| 13827 | enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' |
| 13828 | enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' |
| 13829 | pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' |
| 13830 | enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 13831 | shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 13832 | SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' |
| 13833 | ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' |
| 13834 | PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' |
| 13835 | host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' |
| 13836 | host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' |
| 13837 | host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' |
| 13838 | build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' |
| 13839 | build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' |
| 13840 | build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' |
| 13841 | SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' |
| 13842 | Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' |
| 13843 | GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' |
| 13844 | EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' |
| 13845 | FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' |
| 13846 | LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' |
| 13847 | NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' |
| 13848 | LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' |
| 13849 | max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' |
| 13850 | ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' |
| 13851 | exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' |
| 13852 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' |
| 13853 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' |
| 13854 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' |
| 13855 | lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' |
| 13856 | lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' |
| 13857 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' |
| 13858 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' |
| 13859 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' |
| 13860 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' |
| 13861 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' |
| 13862 | file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' |
| 13863 | want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' |
| 13864 | DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' |
| 13865 | sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' |
| 13866 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' |
| 13867 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' |
| 13868 | archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' |
| 13869 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' |
| 13870 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' |
| 13871 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' |
| 13872 | old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' |
| 13873 | old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' |
| 13874 | lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' |
| 13875 | CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' |
| 13876 | CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' |
| 13877 | compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' |
| 13878 | GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' |
| 13879 | lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' |
| 13880 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 13881 | lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 13882 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' |
| 13883 | 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"`' |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 13884 | lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 13885 | nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' |
| 13886 | lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 13887 | lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 13888 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' |
| 13889 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' |
| 13890 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' |
| 13891 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' |
| 13892 | lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' |
| 13893 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' |
| 13894 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' |
| 13895 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' |
| 13896 | MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' |
| 13897 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' |
| 13898 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' |
| 13899 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' |
| 13900 | OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' |
| 13901 | OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' |
| 13902 | libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' |
| 13903 | shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' |
| 13904 | extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' |
| 13905 | archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' |
| 13906 | enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' |
| 13907 | export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' |
| 13908 | whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' |
| 13909 | compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' |
| 13910 | old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' |
| 13911 | old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' |
| 13912 | archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' |
| 13913 | archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' |
| 13914 | module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' |
| 13915 | module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' |
| 13916 | with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' |
| 13917 | allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' |
| 13918 | no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' |
| 13919 | hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' |
| 13920 | hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' |
| 13921 | hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' |
| 13922 | hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' |
| 13923 | hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' |
| 13924 | hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' |
| 13925 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' |
| 13926 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' |
| 13927 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' |
| 13928 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' |
| 13929 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' |
| 13930 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' |
| 13931 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' |
| 13932 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' |
| 13933 | postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' |
| 13934 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' |
| 13935 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' |
| 13936 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' |
| 13937 | need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' |
| 13938 | version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' |
| 13939 | runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' |
| 13940 | shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' |
| 13941 | shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' |
| 13942 | libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' |
| 13943 | library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' |
| 13944 | soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' |
| 13945 | install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' |
| 13946 | postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' |
| 13947 | postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' |
| 13948 | finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' |
| 13949 | finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' |
| 13950 | hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' |
| 13951 | sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' |
Bruce A. Mah | 5461579 | 2015-05-11 10:42:44 -0700 | [diff] [blame] | 13952 | configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' |
| 13953 | configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 13954 | hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' |
| 13955 | enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' |
| 13956 | enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' |
| 13957 | enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' |
| 13958 | old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' |
| 13959 | striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 13960 | |
| 13961 | LTCC='$LTCC' |
| 13962 | LTCFLAGS='$LTCFLAGS' |
| 13963 | compiler='$compiler_DEFAULT' |
| 13964 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 13965 | # A function that is used when there is no print builtin or printf. |
| 13966 | func_fallback_echo () |
| 13967 | { |
| 13968 | eval 'cat <<_LTECHO_EOF |
| 13969 | \$1 |
| 13970 | _LTECHO_EOF' |
| 13971 | } |
| 13972 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 13973 | # Quote evaled strings. |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 13974 | for var in SHELL \ |
| 13975 | ECHO \ |
| 13976 | PATH_SEPARATOR \ |
| 13977 | SED \ |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 13978 | GREP \ |
| 13979 | EGREP \ |
| 13980 | FGREP \ |
| 13981 | LD \ |
| 13982 | NM \ |
| 13983 | LN_S \ |
| 13984 | lt_SP2NL \ |
| 13985 | lt_NL2SP \ |
| 13986 | reload_flag \ |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 13987 | OBJDUMP \ |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 13988 | deplibs_check_method \ |
| 13989 | file_magic_cmd \ |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 13990 | file_magic_glob \ |
| 13991 | want_nocaseglob \ |
| 13992 | DLLTOOL \ |
| 13993 | sharedlib_from_linklib_cmd \ |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 13994 | AR \ |
| 13995 | AR_FLAGS \ |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 13996 | archiver_list_spec \ |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 13997 | STRIP \ |
| 13998 | RANLIB \ |
| 13999 | CC \ |
| 14000 | CFLAGS \ |
| 14001 | compiler \ |
| 14002 | lt_cv_sys_global_symbol_pipe \ |
| 14003 | lt_cv_sys_global_symbol_to_cdecl \ |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 14004 | lt_cv_sys_global_symbol_to_import \ |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 14005 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 14006 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 14007 | lt_cv_nm_interface \ |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 14008 | nm_file_list_spec \ |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 14009 | lt_cv_truncate_bin \ |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 14010 | lt_prog_compiler_no_builtin_flag \ |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 14011 | lt_prog_compiler_pic \ |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 14012 | lt_prog_compiler_wl \ |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 14013 | lt_prog_compiler_static \ |
| 14014 | lt_cv_prog_compiler_c_o \ |
| 14015 | need_locks \ |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 14016 | MANIFEST_TOOL \ |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 14017 | DSYMUTIL \ |
| 14018 | NMEDIT \ |
| 14019 | LIPO \ |
| 14020 | OTOOL \ |
| 14021 | OTOOL64 \ |
| 14022 | shrext_cmds \ |
| 14023 | export_dynamic_flag_spec \ |
| 14024 | whole_archive_flag_spec \ |
| 14025 | compiler_needs_object \ |
| 14026 | with_gnu_ld \ |
| 14027 | allow_undefined_flag \ |
| 14028 | no_undefined_flag \ |
| 14029 | hardcode_libdir_flag_spec \ |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 14030 | hardcode_libdir_separator \ |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 14031 | exclude_expsyms \ |
| 14032 | include_expsyms \ |
| 14033 | file_list_spec \ |
| 14034 | variables_saved_for_relink \ |
| 14035 | libname_spec \ |
| 14036 | library_names_spec \ |
| 14037 | soname_spec \ |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 14038 | install_override_mode \ |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 14039 | finish_eval \ |
| 14040 | old_striplib \ |
| 14041 | striplib; do |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 14042 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 14043 | *[\\\\\\\`\\"\\\$]*) |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 14044 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 14045 | ;; |
| 14046 | *) |
| 14047 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
| 14048 | ;; |
| 14049 | esac |
| 14050 | done |
| 14051 | |
| 14052 | # Double-quote double-evaled strings. |
| 14053 | for var in reload_cmds \ |
| 14054 | old_postinstall_cmds \ |
| 14055 | old_postuninstall_cmds \ |
| 14056 | old_archive_cmds \ |
| 14057 | extract_expsyms_cmds \ |
| 14058 | old_archive_from_new_cmds \ |
| 14059 | old_archive_from_expsyms_cmds \ |
| 14060 | archive_cmds \ |
| 14061 | archive_expsym_cmds \ |
| 14062 | module_cmds \ |
| 14063 | module_expsym_cmds \ |
| 14064 | export_symbols_cmds \ |
| 14065 | prelink_cmds \ |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 14066 | postlink_cmds \ |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 14067 | postinstall_cmds \ |
| 14068 | postuninstall_cmds \ |
| 14069 | finish_cmds \ |
| 14070 | sys_lib_search_path_spec \ |
Bruce A. Mah | 5461579 | 2015-05-11 10:42:44 -0700 | [diff] [blame] | 14071 | configure_time_dlsearch_path \ |
| 14072 | configure_time_lt_sys_library_path; do |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 14073 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 14074 | *[\\\\\\\`\\"\\\$]*) |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 14075 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 14076 | ;; |
| 14077 | *) |
| 14078 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
| 14079 | ;; |
| 14080 | esac |
| 14081 | done |
| 14082 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 14083 | ac_aux_dir='$ac_aux_dir' |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 14084 | |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 14085 | # See if we are running on zsh, and set the options that allow our |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 14086 | # commands through without removal of \ escapes INIT. |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 14087 | if test -n "\${ZSH_VERSION+set}"; then |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 14088 | setopt NO_GLOB_SUBST |
| 14089 | fi |
| 14090 | |
| 14091 | |
| 14092 | PACKAGE='$PACKAGE' |
| 14093 | VERSION='$VERSION' |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 14094 | RM='$RM' |
| 14095 | ofile='$ofile' |
| 14096 | |
| 14097 | |
| 14098 | |
| 14099 | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 14100 | _ACEOF |
| 14101 | |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 14102 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 14103 | |
| 14104 | # Handling of arguments. |
| 14105 | for ac_config_target in $ac_config_targets |
| 14106 | do |
| 14107 | case $ac_config_target in |
Bruce A. Mah | a57bcc2 | 2014-04-14 13:37:47 -0700 | [diff] [blame] | 14108 | "src/iperf_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/iperf_config.h" ;; |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 14109 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 14110 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 14111 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
| 14112 | "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
Bruce A. Mah | fa27522 | 2014-04-24 10:25:36 -0700 | [diff] [blame] | 14113 | "src/version.h") CONFIG_FILES="$CONFIG_FILES src/version.h" ;; |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 14114 | "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;; |
Bruce A. Mah | bf22c9d | 2014-10-14 13:45:04 -0700 | [diff] [blame] | 14115 | "iperf3.spec") CONFIG_FILES="$CONFIG_FILES iperf3.spec" ;; |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 14116 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 14117 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 14118 | esac |
| 14119 | done |
| 14120 | |
| 14121 | |
| 14122 | # If the user did not use the arguments to specify the items to instantiate, |
| 14123 | # then the envvar interface is used. Set only those that are not. |
| 14124 | # We use the long form for the default assignment because of an extremely |
| 14125 | # bizarre bug on SunOS 4.1.3. |
| 14126 | if $ac_need_defaults; then |
| 14127 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 14128 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 14129 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 14130 | fi |
| 14131 | |
| 14132 | # Have a temporary directory for convenience. Make it in the build tree |
| 14133 | # simply because there is no reason against having it here, and in addition, |
| 14134 | # creating and moving files from /tmp can sometimes cause problems. |
| 14135 | # Hook for its removal unless debugging. |
| 14136 | # Note that there is a small window in which the directory will not be cleaned: |
| 14137 | # after its creation but before its name has been assigned to `$tmp'. |
| 14138 | $debug || |
| 14139 | { |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 14140 | tmp= ac_tmp= |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 14141 | trap 'exit_status=$? |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 14142 | : "${ac_tmp:=$tmp}" |
| 14143 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 14144 | ' 0 |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 14145 | trap 'as_fn_exit 1' 1 2 13 15 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 14146 | } |
| 14147 | # Create a (secure) tmp directory for tmp files. |
| 14148 | |
| 14149 | { |
| 14150 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 14151 | test -d "$tmp" |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 14152 | } || |
| 14153 | { |
| 14154 | tmp=./conf$$-$RANDOM |
| 14155 | (umask 077 && mkdir "$tmp") |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 14156 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
| 14157 | ac_tmp=$tmp |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 14158 | |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 14159 | # Set up the scripts for CONFIG_FILES section. |
| 14160 | # No need to generate them if there are no CONFIG_FILES. |
| 14161 | # This happens for instance with `./config.status config.h'. |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 14162 | if test -n "$CONFIG_FILES"; then |
| 14163 | |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 14164 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 14165 | ac_cr=`echo X | tr X '\015'` |
| 14166 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
| 14167 | # But we know of no other shell where ac_cr would be empty at this |
| 14168 | # point, so we can use a bashism as a fallback. |
| 14169 | if test "x$ac_cr" = x; then |
| 14170 | eval ac_cr=\$\'\\r\' |
| 14171 | fi |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 14172 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 14173 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
| 14174 | ac_cs_awk_cr='\\r' |
| 14175 | else |
| 14176 | ac_cs_awk_cr=$ac_cr |
| 14177 | fi |
| 14178 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 14179 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 14180 | _ACEOF |
| 14181 | |
| 14182 | |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 14183 | { |
| 14184 | echo "cat >conf$$subs.awk <<_ACEOF" && |
| 14185 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 14186 | echo "_ACEOF" |
| 14187 | } >conf$$subs.sh || |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 14188 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 14189 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 14190 | ac_delim='%!_!# ' |
| 14191 | for ac_last_try in false false false false false :; do |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 14192 | . ./conf$$subs.sh || |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 14193 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 14194 | |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 14195 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
| 14196 | if test $ac_delim_n = $ac_delim_num; then |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 14197 | break |
| 14198 | elif $ac_last_try; then |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 14199 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 14200 | else |
| 14201 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 14202 | fi |
| 14203 | done |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 14204 | rm -f conf$$subs.sh |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 14205 | |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 14206 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 14207 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 14208 | _ACEOF |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 14209 | sed -n ' |
| 14210 | h |
| 14211 | s/^/S["/; s/!.*/"]=/ |
| 14212 | p |
| 14213 | g |
| 14214 | s/^[^!]*!// |
| 14215 | :repl |
| 14216 | t repl |
| 14217 | s/'"$ac_delim"'$// |
| 14218 | t delim |
| 14219 | :nl |
| 14220 | h |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 14221 | s/\(.\{148\}\)..*/\1/ |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 14222 | t more1 |
| 14223 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 14224 | p |
| 14225 | n |
| 14226 | b repl |
| 14227 | :more1 |
| 14228 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 14229 | p |
| 14230 | g |
| 14231 | s/.\{148\}// |
| 14232 | t nl |
| 14233 | :delim |
| 14234 | h |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 14235 | s/\(.\{148\}\)..*/\1/ |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 14236 | t more2 |
| 14237 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 14238 | p |
| 14239 | b |
| 14240 | :more2 |
| 14241 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 14242 | p |
| 14243 | g |
| 14244 | s/.\{148\}// |
| 14245 | t delim |
| 14246 | ' <conf$$subs.awk | sed ' |
| 14247 | /^[^""]/{ |
| 14248 | N |
| 14249 | s/\n// |
| 14250 | } |
| 14251 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
| 14252 | rm -f conf$$subs.awk |
| 14253 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 14254 | _ACAWK |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 14255 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 14256 | for (key in S) S_is_set[key] = 1 |
| 14257 | FS = "" |
| 14258 | |
| 14259 | } |
| 14260 | { |
| 14261 | line = $ 0 |
| 14262 | nfields = split(line, field, "@") |
| 14263 | substed = 0 |
| 14264 | len = length(field[1]) |
| 14265 | for (i = 2; i < nfields; i++) { |
| 14266 | key = field[i] |
| 14267 | keylen = length(key) |
| 14268 | if (S_is_set[key]) { |
| 14269 | value = S[key] |
| 14270 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 14271 | len += length(value) + length(field[++i]) |
| 14272 | substed = 1 |
| 14273 | } else |
| 14274 | len += 1 + keylen |
| 14275 | } |
| 14276 | |
| 14277 | print line |
| 14278 | } |
| 14279 | |
| 14280 | _ACAWK |
| 14281 | _ACEOF |
| 14282 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 14283 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 14284 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 14285 | else |
| 14286 | cat |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 14287 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
| 14288 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 14289 | _ACEOF |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 14290 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 14291 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
| 14292 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 14293 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 14294 | # (actually we leave an empty line to preserve line numbers). |
| 14295 | if test "x$srcdir" = x.; then |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 14296 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
| 14297 | h |
| 14298 | s/// |
| 14299 | s/^/:/ |
| 14300 | s/[ ]*$/:/ |
| 14301 | s/:\$(srcdir):/:/g |
| 14302 | s/:\${srcdir}:/:/g |
| 14303 | s/:@srcdir@:/:/g |
| 14304 | s/^:*// |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 14305 | s/:*$// |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 14306 | x |
| 14307 | s/\(=[ ]*\).*/\1/ |
| 14308 | G |
| 14309 | s/\n// |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 14310 | s/^[^=]*=[ ]*$// |
| 14311 | }' |
| 14312 | fi |
| 14313 | |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 14314 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 14315 | fi # test -n "$CONFIG_FILES" |
| 14316 | |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 14317 | # Set up the scripts for CONFIG_HEADERS section. |
| 14318 | # No need to generate them if there are no CONFIG_HEADERS. |
| 14319 | # This happens for instance with `./config.status Makefile'. |
| 14320 | if test -n "$CONFIG_HEADERS"; then |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 14321 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 14322 | BEGIN { |
| 14323 | _ACEOF |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 14324 | |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 14325 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
| 14326 | # here-document in config.status, that substitutes the proper values into |
| 14327 | # config.h.in to produce config.h. |
| 14328 | |
| 14329 | # Create a delimiter string that does not exist in confdefs.h, to ease |
| 14330 | # handling of long lines. |
| 14331 | ac_delim='%!_!# ' |
| 14332 | for ac_last_try in false false :; do |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 14333 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
| 14334 | if test -z "$ac_tt"; then |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 14335 | break |
| 14336 | elif $ac_last_try; then |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 14337 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 14338 | else |
| 14339 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 14340 | fi |
| 14341 | done |
| 14342 | |
| 14343 | # For the awk script, D is an array of macro values keyed by name, |
| 14344 | # likewise P contains macro parameters if any. Preserve backslash |
| 14345 | # newline sequences. |
| 14346 | |
| 14347 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 14348 | sed -n ' |
| 14349 | s/.\{148\}/&'"$ac_delim"'/g |
| 14350 | t rset |
| 14351 | :rset |
| 14352 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
| 14353 | t def |
| 14354 | d |
| 14355 | :def |
| 14356 | s/\\$// |
| 14357 | t bsnl |
| 14358 | s/["\\]/\\&/g |
| 14359 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 14360 | D["\1"]=" \3"/p |
| 14361 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
| 14362 | d |
| 14363 | :bsnl |
| 14364 | s/["\\]/\\&/g |
| 14365 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 14366 | D["\1"]=" \3\\\\\\n"\\/p |
| 14367 | t cont |
| 14368 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
| 14369 | t cont |
| 14370 | d |
| 14371 | :cont |
| 14372 | n |
| 14373 | s/.\{148\}/&'"$ac_delim"'/g |
| 14374 | t clear |
| 14375 | :clear |
| 14376 | s/\\$// |
| 14377 | t bsnlc |
| 14378 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
| 14379 | d |
| 14380 | :bsnlc |
| 14381 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
| 14382 | b cont |
| 14383 | ' <confdefs.h | sed ' |
| 14384 | s/'"$ac_delim"'/"\\\ |
| 14385 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
| 14386 | |
| 14387 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 14388 | for (key in D) D_is_set[key] = 1 |
| 14389 | FS = "" |
| 14390 | } |
| 14391 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
| 14392 | line = \$ 0 |
| 14393 | split(line, arg, " ") |
| 14394 | if (arg[1] == "#") { |
| 14395 | defundef = arg[2] |
| 14396 | mac1 = arg[3] |
| 14397 | } else { |
| 14398 | defundef = substr(arg[1], 2) |
| 14399 | mac1 = arg[2] |
| 14400 | } |
| 14401 | split(mac1, mac2, "(") #) |
| 14402 | macro = mac2[1] |
| 14403 | prefix = substr(line, 1, index(line, defundef) - 1) |
| 14404 | if (D_is_set[macro]) { |
| 14405 | # Preserve the white space surrounding the "#". |
| 14406 | print prefix "define", macro P[macro] D[macro] |
| 14407 | next |
| 14408 | } else { |
| 14409 | # Replace #undef with comments. This is necessary, for example, |
| 14410 | # in the case of _POSIX_SOURCE, which is predefined and required |
| 14411 | # on some systems where configure will not decide to define it. |
| 14412 | if (defundef == "undef") { |
| 14413 | print "/*", prefix defundef, macro, "*/" |
| 14414 | next |
| 14415 | } |
| 14416 | } |
| 14417 | } |
| 14418 | { print } |
| 14419 | _ACAWK |
| 14420 | _ACEOF |
| 14421 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 14422 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 14423 | fi # test -n "$CONFIG_HEADERS" |
| 14424 | |
| 14425 | |
| 14426 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
| 14427 | shift |
| 14428 | for ac_tag |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 14429 | do |
| 14430 | case $ac_tag in |
| 14431 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 14432 | esac |
| 14433 | case $ac_mode$ac_tag in |
| 14434 | :[FHL]*:*);; |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 14435 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 14436 | :[FH]-) ac_tag=-:-;; |
| 14437 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 14438 | esac |
| 14439 | ac_save_IFS=$IFS |
| 14440 | IFS=: |
| 14441 | set x $ac_tag |
| 14442 | IFS=$ac_save_IFS |
| 14443 | shift |
| 14444 | ac_file=$1 |
| 14445 | shift |
| 14446 | |
| 14447 | case $ac_mode in |
| 14448 | :L) ac_source=$1;; |
| 14449 | :[FH]) |
| 14450 | ac_file_inputs= |
| 14451 | for ac_f |
| 14452 | do |
| 14453 | case $ac_f in |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 14454 | -) ac_f="$ac_tmp/stdin";; |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 14455 | *) # Look for the file first in the build tree, then in the source tree |
| 14456 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 14457 | # because $ac_f cannot contain `:'. |
| 14458 | test -f "$ac_f" || |
| 14459 | case $ac_f in |
| 14460 | [\\/$]*) false;; |
| 14461 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 14462 | esac || |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 14463 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 14464 | esac |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 14465 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 14466 | as_fn_append ac_file_inputs " '$ac_f'" |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 14467 | done |
| 14468 | |
| 14469 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 14470 | # use $as_me), people would be surprised to read: |
| 14471 | # /* config.h. Generated by config.status. */ |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 14472 | configure_input='Generated from '` |
| 14473 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 14474 | `' by configure.' |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 14475 | if test x"$ac_file" != x-; then |
| 14476 | configure_input="$ac_file. $configure_input" |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 14477 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 14478 | $as_echo "$as_me: creating $ac_file" >&6;} |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 14479 | fi |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 14480 | # Neutralize special characters interpreted by sed in replacement strings. |
| 14481 | case $configure_input in #( |
| 14482 | *\&* | *\|* | *\\* ) |
| 14483 | ac_sed_conf_input=`$as_echo "$configure_input" | |
| 14484 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 14485 | *) ac_sed_conf_input=$configure_input;; |
| 14486 | esac |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 14487 | |
| 14488 | case $ac_tag in |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 14489 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
| 14490 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 14491 | esac |
| 14492 | ;; |
| 14493 | esac |
| 14494 | |
| 14495 | ac_dir=`$as_dirname -- "$ac_file" || |
| 14496 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 14497 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 14498 | X"$ac_file" : 'X\(//\)$' \| \ |
| 14499 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 14500 | $as_echo X"$ac_file" | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 14501 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 14502 | s//\1/ |
| 14503 | q |
| 14504 | } |
| 14505 | /^X\(\/\/\)[^/].*/{ |
| 14506 | s//\1/ |
| 14507 | q |
| 14508 | } |
| 14509 | /^X\(\/\/\)$/{ |
| 14510 | s//\1/ |
| 14511 | q |
| 14512 | } |
| 14513 | /^X\(\/\).*/{ |
| 14514 | s//\1/ |
| 14515 | q |
| 14516 | } |
| 14517 | s/.*/./; q'` |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 14518 | as_dir="$ac_dir"; as_fn_mkdir_p |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 14519 | ac_builddir=. |
| 14520 | |
| 14521 | case "$ac_dir" in |
| 14522 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 14523 | *) |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 14524 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 14525 | # A ".." for each directory in $ac_dir_suffix. |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 14526 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 14527 | case $ac_top_builddir_sub in |
| 14528 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 14529 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 14530 | esac ;; |
| 14531 | esac |
| 14532 | ac_abs_top_builddir=$ac_pwd |
| 14533 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 14534 | # for backward compatibility: |
| 14535 | ac_top_builddir=$ac_top_build_prefix |
| 14536 | |
| 14537 | case $srcdir in |
| 14538 | .) # We are building in place. |
| 14539 | ac_srcdir=. |
| 14540 | ac_top_srcdir=$ac_top_builddir_sub |
| 14541 | ac_abs_top_srcdir=$ac_pwd ;; |
| 14542 | [\\/]* | ?:[\\/]* ) # Absolute name. |
| 14543 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 14544 | ac_top_srcdir=$srcdir |
| 14545 | ac_abs_top_srcdir=$srcdir ;; |
| 14546 | *) # Relative name. |
| 14547 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 14548 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 14549 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 14550 | esac |
| 14551 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 14552 | |
| 14553 | |
| 14554 | case $ac_mode in |
| 14555 | :F) |
| 14556 | # |
| 14557 | # CONFIG_FILE |
| 14558 | # |
| 14559 | |
| 14560 | case $INSTALL in |
| 14561 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 14562 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
| 14563 | esac |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 14564 | ac_MKDIR_P=$MKDIR_P |
| 14565 | case $MKDIR_P in |
| 14566 | [\\/$]* | ?:[\\/]* ) ;; |
| 14567 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; |
| 14568 | esac |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 14569 | _ACEOF |
| 14570 | |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 14571 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 14572 | # If the template does not know about datarootdir, expand it. |
| 14573 | # FIXME: This hack should be removed a few years after 2.60. |
| 14574 | ac_datarootdir_hack=; ac_datarootdir_seen= |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 14575 | ac_sed_dataroot=' |
| 14576 | /datarootdir/ { |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 14577 | p |
| 14578 | q |
| 14579 | } |
| 14580 | /@datadir@/p |
| 14581 | /@docdir@/p |
| 14582 | /@infodir@/p |
| 14583 | /@localedir@/p |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 14584 | /@mandir@/p' |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 14585 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 14586 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 14587 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 14588 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 14589 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 14590 | _ACEOF |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 14591 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 14592 | ac_datarootdir_hack=' |
| 14593 | s&@datadir@&$datadir&g |
| 14594 | s&@docdir@&$docdir&g |
| 14595 | s&@infodir@&$infodir&g |
| 14596 | s&@localedir@&$localedir&g |
| 14597 | s&@mandir@&$mandir&g |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 14598 | s&\\\${datarootdir}&$datarootdir&g' ;; |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 14599 | esac |
| 14600 | _ACEOF |
| 14601 | |
| 14602 | # Neutralize VPATH when `$srcdir' = `.'. |
| 14603 | # Shell code in configure.ac might set extrasub. |
| 14604 | # FIXME: do we really want to maintain this feature? |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 14605 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 14606 | ac_sed_extra="$ac_vpsub |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 14607 | $extrasub |
| 14608 | _ACEOF |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 14609 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 14610 | :t |
| 14611 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 14612 | s|@configure_input@|$ac_sed_conf_input|;t t |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 14613 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 14614 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 14615 | s&@srcdir@&$ac_srcdir&;t t |
| 14616 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 14617 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 14618 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 14619 | s&@builddir@&$ac_builddir&;t t |
| 14620 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 14621 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 14622 | s&@INSTALL@&$ac_INSTALL&;t t |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 14623 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 14624 | $ac_datarootdir_hack |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 14625 | " |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 14626 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
| 14627 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 14628 | |
| 14629 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 14630 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
| 14631 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
| 14632 | "$ac_tmp/out"`; test -z "$ac_out"; } && |
| 14633 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 14634 | which seems to be undefined. Please make sure it is defined" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 14635 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 14636 | which seems to be undefined. Please make sure it is defined" >&2;} |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 14637 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 14638 | rm -f "$ac_tmp/stdin" |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 14639 | case $ac_file in |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 14640 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
| 14641 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 14642 | esac \ |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 14643 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 14644 | ;; |
| 14645 | :H) |
| 14646 | # |
| 14647 | # CONFIG_HEADER |
| 14648 | # |
| 14649 | if test x"$ac_file" != x-; then |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 14650 | { |
| 14651 | $as_echo "/* $configure_input */" \ |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 14652 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
| 14653 | } >"$ac_tmp/config.h" \ |
| 14654 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 14655 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
| 14656 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 14657 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 14658 | else |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 14659 | rm -f "$ac_file" |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 14660 | mv "$ac_tmp/config.h" "$ac_file" \ |
| 14661 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 14662 | fi |
| 14663 | else |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 14664 | $as_echo "/* $configure_input */" \ |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 14665 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
| 14666 | || as_fn_error $? "could not create -" "$LINENO" 5 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 14667 | fi |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 14668 | # Compute "$ac_file"'s index in $config_headers. |
| 14669 | _am_arg="$ac_file" |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 14670 | _am_stamp_count=1 |
| 14671 | for _am_header in $config_headers :; do |
| 14672 | case $_am_header in |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 14673 | $_am_arg | $_am_arg:* ) |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 14674 | break ;; |
| 14675 | * ) |
| 14676 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
| 14677 | esac |
| 14678 | done |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 14679 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
| 14680 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 14681 | X"$_am_arg" : 'X\(//\)[^/]' \| \ |
| 14682 | X"$_am_arg" : 'X\(//\)$' \| \ |
| 14683 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || |
| 14684 | $as_echo X"$_am_arg" | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 14685 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 14686 | s//\1/ |
| 14687 | q |
| 14688 | } |
| 14689 | /^X\(\/\/\)[^/].*/{ |
| 14690 | s//\1/ |
| 14691 | q |
| 14692 | } |
| 14693 | /^X\(\/\/\)$/{ |
| 14694 | s//\1/ |
| 14695 | q |
| 14696 | } |
| 14697 | /^X\(\/\).*/{ |
| 14698 | s//\1/ |
| 14699 | q |
| 14700 | } |
| 14701 | s/.*/./; q'`/stamp-h$_am_stamp_count |
| 14702 | ;; |
| 14703 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 14704 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 14705 | $as_echo "$as_me: executing $ac_file commands" >&6;} |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 14706 | ;; |
| 14707 | esac |
| 14708 | |
| 14709 | |
| 14710 | case $ac_file$ac_mode in |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 14711 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 14712 | # Older Autoconf quotes --file arguments for eval, but not when files |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 14713 | # are listed without --file. Let's play safe and only enable the eval |
| 14714 | # if we detect the quoting. |
Bruce A. Mah | ff1ea4e | 2018-02-28 13:24:06 -0800 | [diff] [blame^] | 14715 | # TODO: see whether this extra hack can be removed once we start |
| 14716 | # requiring Autoconf 2.70 or later. |
| 14717 | case $CONFIG_FILES in #( |
| 14718 | *\'*) : |
| 14719 | eval set x "$CONFIG_FILES" ;; #( |
| 14720 | *) : |
| 14721 | set x $CONFIG_FILES ;; #( |
| 14722 | *) : |
| 14723 | ;; |
| 14724 | esac |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 14725 | shift |
Bruce A. Mah | ff1ea4e | 2018-02-28 13:24:06 -0800 | [diff] [blame^] | 14726 | # Used to flag and report bootstrapping failures. |
| 14727 | am_rc=0 |
| 14728 | for am_mf |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 14729 | do |
| 14730 | # Strip MF so we end up with the name of the file. |
Bruce A. Mah | ff1ea4e | 2018-02-28 13:24:06 -0800 | [diff] [blame^] | 14731 | am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'` |
| 14732 | # Check whether this is an Automake generated Makefile which includes |
| 14733 | # dependency-tracking related rules and includes. |
| 14734 | # Grep'ing the whole file directly is not great: AIX grep has a line |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 14735 | # limit of 2048, but all sed's we know have understand at least 4000. |
Bruce A. Mah | ff1ea4e | 2018-02-28 13:24:06 -0800 | [diff] [blame^] | 14736 | sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ |
| 14737 | || continue |
| 14738 | am_dirpart=`$as_dirname -- "$am_mf" || |
| 14739 | $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 14740 | X"$am_mf" : 'X\(//\)[^/]' \| \ |
| 14741 | X"$am_mf" : 'X\(//\)$' \| \ |
| 14742 | X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || |
| 14743 | $as_echo X"$am_mf" | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 14744 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 14745 | s//\1/ |
| 14746 | q |
| 14747 | } |
| 14748 | /^X\(\/\/\)[^/].*/{ |
| 14749 | s//\1/ |
| 14750 | q |
| 14751 | } |
| 14752 | /^X\(\/\/\)$/{ |
| 14753 | s//\1/ |
| 14754 | q |
| 14755 | } |
| 14756 | /^X\(\/\).*/{ |
| 14757 | s//\1/ |
| 14758 | q |
| 14759 | } |
| 14760 | s/.*/./; q'` |
Bruce A. Mah | ff1ea4e | 2018-02-28 13:24:06 -0800 | [diff] [blame^] | 14761 | am_filepart=`$as_basename -- "$am_mf" || |
| 14762 | $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ |
| 14763 | X"$am_mf" : 'X\(//\)$' \| \ |
| 14764 | X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || |
| 14765 | $as_echo X/"$am_mf" | |
| 14766 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 14767 | s//\1/ |
| 14768 | q |
| 14769 | } |
Bruce A. Mah | ff1ea4e | 2018-02-28 13:24:06 -0800 | [diff] [blame^] | 14770 | /^X\/\(\/\/\)$/{ |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 14771 | s//\1/ |
| 14772 | q |
| 14773 | } |
Bruce A. Mah | ff1ea4e | 2018-02-28 13:24:06 -0800 | [diff] [blame^] | 14774 | /^X\/\(\/\).*/{ |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 14775 | s//\1/ |
| 14776 | q |
| 14777 | } |
| 14778 | s/.*/./; q'` |
Bruce A. Mah | ff1ea4e | 2018-02-28 13:24:06 -0800 | [diff] [blame^] | 14779 | { echo "$as_me:$LINENO: cd "$am_dirpart" \ |
| 14780 | && sed -e '/# am--include-marker/d' "$am_filepart" \ |
| 14781 | | $MAKE -f - am--depfiles" >&5 |
| 14782 | (cd "$am_dirpart" \ |
| 14783 | && sed -e '/# am--include-marker/d' "$am_filepart" \ |
| 14784 | | $MAKE -f - am--depfiles) >&5 2>&5 |
| 14785 | ac_status=$? |
| 14786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14787 | (exit $ac_status); } || am_rc=$? |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 14788 | done |
Bruce A. Mah | ff1ea4e | 2018-02-28 13:24:06 -0800 | [diff] [blame^] | 14789 | if test $am_rc -ne 0; then |
| 14790 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 14791 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 14792 | as_fn_error $? "Something went wrong bootstrapping makefile fragments |
| 14793 | for automatic dependency tracking. Try re-running configure with the |
| 14794 | '--disable-dependency-tracking' option to at least be able to build |
| 14795 | the package (albeit without support for automatic dependency tracking). |
| 14796 | See \`config.log' for more details" "$LINENO" 5; } |
| 14797 | fi |
| 14798 | { am_dirpart=; unset am_dirpart;} |
| 14799 | { am_filepart=; unset am_filepart;} |
| 14800 | { am_mf=; unset am_mf;} |
| 14801 | { am_rc=; unset am_rc;} |
| 14802 | rm -f conftest-deps.mk |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 14803 | } |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 14804 | ;; |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 14805 | "libtool":C) |
| 14806 | |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 14807 | # See if we are running on zsh, and set the options that allow our |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 14808 | # commands through without removal of \ escapes. |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 14809 | if test -n "${ZSH_VERSION+set}"; then |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 14810 | setopt NO_GLOB_SUBST |
| 14811 | fi |
| 14812 | |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 14813 | cfgfile=${ofile}T |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 14814 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 |
| 14815 | $RM "$cfgfile" |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 14816 | |
| 14817 | cat <<_LT_EOF >> "$cfgfile" |
| 14818 | #! $SHELL |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 14819 | # Generated automatically by $as_me ($PACKAGE) $VERSION |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 14820 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 14821 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 14822 | |
| 14823 | # Provide generalized library-building support services. |
| 14824 | # Written by Gordon Matzigkeit, 1996 |
| 14825 | |
| 14826 | # Copyright (C) 2014 Free Software Foundation, Inc. |
| 14827 | # This is free software; see the source for copying conditions. There is NO |
| 14828 | # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| 14829 | |
| 14830 | # GNU Libtool is free software; you can redistribute it and/or modify |
| 14831 | # it under the terms of the GNU General Public License as published by |
| 14832 | # the Free Software Foundation; either version 2 of of the License, or |
| 14833 | # (at your option) any later version. |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 14834 | # |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 14835 | # As a special exception to the GNU General Public License, if you |
| 14836 | # distribute this file as part of a program or library that is built |
| 14837 | # using GNU Libtool, you may include this file under the same |
| 14838 | # distribution terms that you use for the rest of that program. |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 14839 | # |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 14840 | # GNU Libtool is distributed in the hope that it will be useful, but |
| 14841 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 14842 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 14843 | # GNU General Public License for more details. |
| 14844 | # |
| 14845 | # You should have received a copy of the GNU General Public License |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 14846 | # along with this program. If not, see <http://www.gnu.org/licenses/>. |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 14847 | |
| 14848 | |
| 14849 | # The names of the tagged configurations supported by this script. |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 14850 | available_tags='' |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 14851 | |
Bruce A. Mah | 5461579 | 2015-05-11 10:42:44 -0700 | [diff] [blame] | 14852 | # Configured defaults for sys_lib_dlsearch_path munging. |
| 14853 | : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} |
| 14854 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 14855 | # ### BEGIN LIBTOOL CONFIG |
| 14856 | |
| 14857 | # Which release of libtool.m4 was used? |
| 14858 | macro_version=$macro_version |
| 14859 | macro_revision=$macro_revision |
| 14860 | |
| 14861 | # Whether or not to build shared libraries. |
| 14862 | build_libtool_libs=$enable_shared |
| 14863 | |
| 14864 | # Whether or not to build static libraries. |
| 14865 | build_old_libs=$enable_static |
| 14866 | |
| 14867 | # What type of objects to build. |
| 14868 | pic_mode=$pic_mode |
| 14869 | |
| 14870 | # Whether or not to optimize for fast installation. |
| 14871 | fast_install=$enable_fast_install |
| 14872 | |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 14873 | # Shared archive member basename,for filename based shared library versioning on AIX. |
| 14874 | shared_archive_member_spec=$shared_archive_member_spec |
| 14875 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 14876 | # Shell to use when invoking shell scripts. |
| 14877 | SHELL=$lt_SHELL |
| 14878 | |
| 14879 | # An echo program that protects backslashes. |
| 14880 | ECHO=$lt_ECHO |
| 14881 | |
| 14882 | # The PATH separator for the build system. |
| 14883 | PATH_SEPARATOR=$lt_PATH_SEPARATOR |
| 14884 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 14885 | # The host system. |
| 14886 | host_alias=$host_alias |
| 14887 | host=$host |
| 14888 | host_os=$host_os |
| 14889 | |
| 14890 | # The build system. |
| 14891 | build_alias=$build_alias |
| 14892 | build=$build |
| 14893 | build_os=$build_os |
| 14894 | |
| 14895 | # A sed program that does not truncate output. |
| 14896 | SED=$lt_SED |
| 14897 | |
| 14898 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
| 14899 | Xsed="\$SED -e 1s/^X//" |
| 14900 | |
| 14901 | # A grep program that handles long lines. |
| 14902 | GREP=$lt_GREP |
| 14903 | |
| 14904 | # An ERE matcher. |
| 14905 | EGREP=$lt_EGREP |
| 14906 | |
| 14907 | # A literal string matcher. |
| 14908 | FGREP=$lt_FGREP |
| 14909 | |
| 14910 | # A BSD- or MS-compatible name lister. |
| 14911 | NM=$lt_NM |
| 14912 | |
| 14913 | # Whether we need soft or hard links. |
| 14914 | LN_S=$lt_LN_S |
| 14915 | |
| 14916 | # What is the maximum length of a command? |
| 14917 | max_cmd_len=$max_cmd_len |
| 14918 | |
| 14919 | # Object file suffix (normally "o"). |
| 14920 | objext=$ac_objext |
| 14921 | |
| 14922 | # Executable file suffix (normally ""). |
| 14923 | exeext=$exeext |
| 14924 | |
| 14925 | # whether the shell understands "unset". |
| 14926 | lt_unset=$lt_unset |
| 14927 | |
| 14928 | # turn spaces into newlines. |
| 14929 | SP2NL=$lt_lt_SP2NL |
| 14930 | |
| 14931 | # turn newlines into spaces. |
| 14932 | NL2SP=$lt_lt_NL2SP |
| 14933 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 14934 | # convert \$build file names to \$host format. |
| 14935 | to_host_file_cmd=$lt_cv_to_host_file_cmd |
| 14936 | |
| 14937 | # convert \$build files to toolchain format. |
| 14938 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 14939 | |
| 14940 | # An object symbol dumper. |
| 14941 | OBJDUMP=$lt_OBJDUMP |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 14942 | |
| 14943 | # Method to check whether dependent libraries are shared objects. |
| 14944 | deplibs_check_method=$lt_deplibs_check_method |
| 14945 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 14946 | # Command to use when deplibs_check_method = "file_magic". |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 14947 | file_magic_cmd=$lt_file_magic_cmd |
| 14948 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 14949 | # How to find potential files when deplibs_check_method = "file_magic". |
| 14950 | file_magic_glob=$lt_file_magic_glob |
| 14951 | |
| 14952 | # Find potential files using nocaseglob when deplibs_check_method = "file_magic". |
| 14953 | want_nocaseglob=$lt_want_nocaseglob |
| 14954 | |
| 14955 | # DLL creation program. |
| 14956 | DLLTOOL=$lt_DLLTOOL |
| 14957 | |
| 14958 | # Command to associate shared and link libraries. |
| 14959 | sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd |
| 14960 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 14961 | # The archiver. |
| 14962 | AR=$lt_AR |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 14963 | |
| 14964 | # Flags to create an archive. |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 14965 | AR_FLAGS=$lt_AR_FLAGS |
| 14966 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 14967 | # How to feed a file listing to the archiver. |
| 14968 | archiver_list_spec=$lt_archiver_list_spec |
| 14969 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 14970 | # A symbol stripping program. |
| 14971 | STRIP=$lt_STRIP |
| 14972 | |
| 14973 | # Commands used to install an old-style archive. |
| 14974 | RANLIB=$lt_RANLIB |
| 14975 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 14976 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 14977 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 14978 | # Whether to use a lock for old archive extraction. |
| 14979 | lock_old_archive_extraction=$lock_old_archive_extraction |
| 14980 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 14981 | # A C compiler. |
| 14982 | LTCC=$lt_CC |
| 14983 | |
| 14984 | # LTCC compiler flags. |
| 14985 | LTCFLAGS=$lt_CFLAGS |
| 14986 | |
| 14987 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 14988 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 14989 | |
| 14990 | # Transform the output of nm in a proper C declaration. |
| 14991 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 14992 | |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 14993 | # Transform the output of nm into a list of symbols to manually relocate. |
| 14994 | global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import |
| 14995 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 14996 | # Transform the output of nm in a C name address pair. |
| 14997 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 14998 | |
| 14999 | # Transform the output of nm in a C name address pair when lib prefix is needed. |
| 15000 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix |
| 15001 | |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 15002 | # The name lister interface. |
| 15003 | nm_interface=$lt_lt_cv_nm_interface |
| 15004 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 15005 | # Specify filename containing input files for \$NM. |
| 15006 | nm_file_list_spec=$lt_nm_file_list_spec |
| 15007 | |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 15008 | # The root where to search for dependent libraries,and where our libraries should be installed. |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 15009 | lt_sysroot=$lt_sysroot |
| 15010 | |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 15011 | # Command to truncate a binary pipe. |
| 15012 | lt_truncate_bin=$lt_lt_cv_truncate_bin |
| 15013 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 15014 | # The name of the directory that contains temporary libtool files. |
| 15015 | objdir=$objdir |
| 15016 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 15017 | # Used to examine libraries when file_magic_cmd begins with "file". |
| 15018 | MAGIC_CMD=$MAGIC_CMD |
| 15019 | |
| 15020 | # Must we lock files when doing compilation? |
| 15021 | need_locks=$lt_need_locks |
| 15022 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 15023 | # Manifest tool. |
| 15024 | MANIFEST_TOOL=$lt_MANIFEST_TOOL |
| 15025 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 15026 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
| 15027 | DSYMUTIL=$lt_DSYMUTIL |
| 15028 | |
| 15029 | # Tool to change global to local symbols on Mac OS X. |
| 15030 | NMEDIT=$lt_NMEDIT |
| 15031 | |
| 15032 | # Tool to manipulate fat objects and archives on Mac OS X. |
| 15033 | LIPO=$lt_LIPO |
| 15034 | |
| 15035 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. |
| 15036 | OTOOL=$lt_OTOOL |
| 15037 | |
| 15038 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. |
| 15039 | OTOOL64=$lt_OTOOL64 |
| 15040 | |
| 15041 | # Old archive suffix (normally "a"). |
| 15042 | libext=$libext |
| 15043 | |
| 15044 | # Shared library suffix (normally ".so"). |
| 15045 | shrext_cmds=$lt_shrext_cmds |
| 15046 | |
| 15047 | # The commands to extract the exported symbol list from a shared archive. |
| 15048 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 15049 | |
| 15050 | # Variables whose values should be saved in libtool wrapper scripts and |
| 15051 | # restored at link time. |
| 15052 | variables_saved_for_relink=$lt_variables_saved_for_relink |
| 15053 | |
| 15054 | # Do we need the "lib" prefix for modules? |
| 15055 | need_lib_prefix=$need_lib_prefix |
| 15056 | |
| 15057 | # Do we need a version for libraries? |
| 15058 | need_version=$need_version |
| 15059 | |
| 15060 | # Library versioning type. |
| 15061 | version_type=$version_type |
| 15062 | |
| 15063 | # Shared library runtime path variable. |
| 15064 | runpath_var=$runpath_var |
| 15065 | |
| 15066 | # Shared library path variable. |
| 15067 | shlibpath_var=$shlibpath_var |
| 15068 | |
| 15069 | # Is shlibpath searched before the hard-coded library search path? |
| 15070 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 15071 | |
| 15072 | # Format of library name prefix. |
| 15073 | libname_spec=$lt_libname_spec |
| 15074 | |
| 15075 | # List of archive names. First name is the real one, the rest are links. |
| 15076 | # The last name is the one that the linker finds with -lNAME |
| 15077 | library_names_spec=$lt_library_names_spec |
| 15078 | |
| 15079 | # The coded name of the library, if different from the real name. |
| 15080 | soname_spec=$lt_soname_spec |
| 15081 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 15082 | # Permission mode override for installation of shared libraries. |
| 15083 | install_override_mode=$lt_install_override_mode |
| 15084 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 15085 | # Command to use after installation of a shared archive. |
| 15086 | postinstall_cmds=$lt_postinstall_cmds |
| 15087 | |
| 15088 | # Command to use after uninstallation of a shared archive. |
| 15089 | postuninstall_cmds=$lt_postuninstall_cmds |
| 15090 | |
| 15091 | # Commands used to finish a libtool library installation in a directory. |
| 15092 | finish_cmds=$lt_finish_cmds |
| 15093 | |
| 15094 | # As "finish_cmds", except a single script fragment to be evaled but |
| 15095 | # not shown. |
| 15096 | finish_eval=$lt_finish_eval |
| 15097 | |
| 15098 | # Whether we should hardcode library paths into libraries. |
| 15099 | hardcode_into_libs=$hardcode_into_libs |
| 15100 | |
| 15101 | # Compile-time system search path for libraries. |
| 15102 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 15103 | |
Bruce A. Mah | 5461579 | 2015-05-11 10:42:44 -0700 | [diff] [blame] | 15104 | # Detected run-time system search path for libraries. |
| 15105 | sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path |
| 15106 | |
| 15107 | # Explicit LT_SYS_LIBRARY_PATH set during ./configure time. |
| 15108 | configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 15109 | |
| 15110 | # Whether dlopen is supported. |
| 15111 | dlopen_support=$enable_dlopen |
| 15112 | |
| 15113 | # Whether dlopen of programs is supported. |
| 15114 | dlopen_self=$enable_dlopen_self |
| 15115 | |
| 15116 | # Whether dlopen of statically linked programs is supported. |
| 15117 | dlopen_self_static=$enable_dlopen_self_static |
| 15118 | |
| 15119 | # Commands to strip libraries. |
| 15120 | old_striplib=$lt_old_striplib |
| 15121 | striplib=$lt_striplib |
| 15122 | |
| 15123 | |
| 15124 | # The linker used to build libraries. |
| 15125 | LD=$lt_LD |
| 15126 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 15127 | # How to create reloadable object files. |
| 15128 | reload_flag=$lt_reload_flag |
| 15129 | reload_cmds=$lt_reload_cmds |
| 15130 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 15131 | # Commands used to build an old-style archive. |
| 15132 | old_archive_cmds=$lt_old_archive_cmds |
| 15133 | |
| 15134 | # A language specific compiler. |
| 15135 | CC=$lt_compiler |
| 15136 | |
| 15137 | # Is the compiler the GNU compiler? |
| 15138 | with_gcc=$GCC |
| 15139 | |
| 15140 | # Compiler flag to turn off builtin functions. |
| 15141 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
| 15142 | |
Bruce A. Mah | 5d2f2cf | 2014-03-20 09:58:27 -0700 | [diff] [blame] | 15143 | # Additional compiler flags for building library objects. |
| 15144 | pic_flag=$lt_lt_prog_compiler_pic |
| 15145 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 15146 | # How to pass a linker flag through the compiler. |
| 15147 | wl=$lt_lt_prog_compiler_wl |
| 15148 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 15149 | # Compiler flag to prevent dynamic linking. |
| 15150 | link_static_flag=$lt_lt_prog_compiler_static |
| 15151 | |
| 15152 | # Does compiler simultaneously support -c and -o options? |
| 15153 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
| 15154 | |
| 15155 | # Whether or not to add -lc for building shared libraries. |
| 15156 | build_libtool_need_lc=$archive_cmds_need_lc |
| 15157 | |
| 15158 | # Whether or not to disallow shared libs when runtime libs are static. |
| 15159 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
| 15160 | |
| 15161 | # Compiler flag to allow reflexive dlopens. |
| 15162 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
| 15163 | |
| 15164 | # Compiler flag to generate shared objects directly from archives. |
| 15165 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
| 15166 | |
| 15167 | # Whether the compiler copes with passing no objects directly. |
| 15168 | compiler_needs_object=$lt_compiler_needs_object |
| 15169 | |
| 15170 | # Create an old-style archive from a shared archive. |
| 15171 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
| 15172 | |
| 15173 | # Create a temporary old-style archive to link instead of a shared archive. |
| 15174 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
| 15175 | |
| 15176 | # Commands used to build a shared archive. |
| 15177 | archive_cmds=$lt_archive_cmds |
| 15178 | archive_expsym_cmds=$lt_archive_expsym_cmds |
| 15179 | |
| 15180 | # Commands used to build a loadable module if different from building |
| 15181 | # a shared archive. |
| 15182 | module_cmds=$lt_module_cmds |
| 15183 | module_expsym_cmds=$lt_module_expsym_cmds |
| 15184 | |
| 15185 | # Whether we are building with GNU ld or not. |
| 15186 | with_gnu_ld=$lt_with_gnu_ld |
| 15187 | |
| 15188 | # Flag that allows shared libraries with undefined symbols to be built. |
| 15189 | allow_undefined_flag=$lt_allow_undefined_flag |
| 15190 | |
| 15191 | # Flag that enforces no undefined symbols. |
| 15192 | no_undefined_flag=$lt_no_undefined_flag |
| 15193 | |
| 15194 | # Flag to hardcode \$libdir into a binary during linking. |
| 15195 | # This must work even if \$libdir does not exist |
| 15196 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
| 15197 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 15198 | # Whether we need a single "-rpath" flag with a separated argument. |
| 15199 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
| 15200 | |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 15201 | # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 15202 | # DIR into the resulting binary. |
| 15203 | hardcode_direct=$hardcode_direct |
| 15204 | |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 15205 | # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 15206 | # DIR into the resulting binary and the resulting library dependency is |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 15207 | # "absolute",i.e impossible to change by setting \$shlibpath_var if the |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 15208 | # library is relocated. |
| 15209 | hardcode_direct_absolute=$hardcode_direct_absolute |
| 15210 | |
| 15211 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
| 15212 | # into the resulting binary. |
| 15213 | hardcode_minus_L=$hardcode_minus_L |
| 15214 | |
| 15215 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
| 15216 | # into the resulting binary. |
| 15217 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
| 15218 | |
| 15219 | # Set to "yes" if building a shared library automatically hardcodes DIR |
| 15220 | # into the library and all subsequent libraries and executables linked |
| 15221 | # against it. |
| 15222 | hardcode_automatic=$hardcode_automatic |
| 15223 | |
| 15224 | # Set to yes if linker adds runtime paths of dependent libraries |
| 15225 | # to runtime path list. |
| 15226 | inherit_rpath=$inherit_rpath |
| 15227 | |
| 15228 | # Whether libtool must link a program against all its dependency libraries. |
| 15229 | link_all_deplibs=$link_all_deplibs |
| 15230 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 15231 | # Set to "yes" if exported symbols are required. |
| 15232 | always_export_symbols=$always_export_symbols |
| 15233 | |
| 15234 | # The commands to list exported symbols. |
| 15235 | export_symbols_cmds=$lt_export_symbols_cmds |
| 15236 | |
| 15237 | # Symbols that should not be listed in the preloaded symbols. |
| 15238 | exclude_expsyms=$lt_exclude_expsyms |
| 15239 | |
| 15240 | # Symbols that must always be exported. |
| 15241 | include_expsyms=$lt_include_expsyms |
| 15242 | |
| 15243 | # Commands necessary for linking programs (against libraries) with templates. |
| 15244 | prelink_cmds=$lt_prelink_cmds |
| 15245 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 15246 | # Commands necessary for finishing linking programs. |
| 15247 | postlink_cmds=$lt_postlink_cmds |
| 15248 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 15249 | # Specify filename containing input files. |
| 15250 | file_list_spec=$lt_file_list_spec |
| 15251 | |
| 15252 | # How to hardcode a shared library path into an executable. |
| 15253 | hardcode_action=$hardcode_action |
| 15254 | |
| 15255 | # ### END LIBTOOL CONFIG |
| 15256 | |
| 15257 | _LT_EOF |
| 15258 | |
Bruce A. Mah | 5461579 | 2015-05-11 10:42:44 -0700 | [diff] [blame] | 15259 | cat <<'_LT_EOF' >> "$cfgfile" |
| 15260 | |
| 15261 | # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE |
| 15262 | |
| 15263 | # func_munge_path_list VARIABLE PATH |
| 15264 | # ----------------------------------- |
| 15265 | # VARIABLE is name of variable containing _space_ separated list of |
| 15266 | # directories to be munged by the contents of PATH, which is string |
| 15267 | # having a format: |
| 15268 | # "DIR[:DIR]:" |
| 15269 | # string "DIR[ DIR]" will be prepended to VARIABLE |
| 15270 | # ":DIR[:DIR]" |
| 15271 | # string "DIR[ DIR]" will be appended to VARIABLE |
| 15272 | # "DIRP[:DIRP]::[DIRA:]DIRA" |
| 15273 | # string "DIRP[ DIRP]" will be prepended to VARIABLE and string |
| 15274 | # "DIRA[ DIRA]" will be appended to VARIABLE |
| 15275 | # "DIR[:DIR]" |
| 15276 | # VARIABLE will be replaced by "DIR[ DIR]" |
| 15277 | func_munge_path_list () |
| 15278 | { |
| 15279 | case x$2 in |
| 15280 | x) |
| 15281 | ;; |
| 15282 | *:) |
| 15283 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" |
| 15284 | ;; |
| 15285 | x:*) |
| 15286 | eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" |
| 15287 | ;; |
| 15288 | *::*) |
| 15289 | eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" |
| 15290 | eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" |
| 15291 | ;; |
| 15292 | *) |
| 15293 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" |
| 15294 | ;; |
| 15295 | esac |
| 15296 | } |
| 15297 | |
| 15298 | |
| 15299 | # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. |
| 15300 | func_cc_basename () |
| 15301 | { |
| 15302 | for cc_temp in $*""; do |
| 15303 | case $cc_temp in |
| 15304 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 15305 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 15306 | \-*) ;; |
| 15307 | *) break;; |
| 15308 | esac |
| 15309 | done |
| 15310 | func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
| 15311 | } |
| 15312 | |
| 15313 | |
| 15314 | # ### END FUNCTIONS SHARED WITH CONFIGURE |
| 15315 | |
| 15316 | _LT_EOF |
| 15317 | |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 15318 | case $host_os in |
| 15319 | aix3*) |
| 15320 | cat <<\_LT_EOF >> "$cfgfile" |
| 15321 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 15322 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 15323 | # vanish in a puff of smoke. |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 15324 | if test set != "${COLLECT_NAMES+set}"; then |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 15325 | COLLECT_NAMES= |
| 15326 | export COLLECT_NAMES |
| 15327 | fi |
| 15328 | _LT_EOF |
| 15329 | ;; |
| 15330 | esac |
| 15331 | |
| 15332 | |
Bruce A. Mah | 4874c4a | 2015-01-05 15:23:07 -0800 | [diff] [blame] | 15333 | ltmain=$ac_aux_dir/ltmain.sh |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 15334 | |
| 15335 | |
| 15336 | # We use sed instead of cat because bash on DJGPP gets confused if |
| 15337 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
| 15338 | # text mode, it properly converts lines to CR/LF. This bash problem |
| 15339 | # is reportedly fixed, but why not run on old versions too? |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 15340 | sed '$q' "$ltmain" >> "$cfgfile" \ |
| 15341 | || (rm -f "$cfgfile"; exit 1) |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 15342 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 15343 | mv -f "$cfgfile" "$ofile" || |
Jef Poskanzer | ba7b91d | 2013-11-26 10:07:32 -0800 | [diff] [blame] | 15344 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
| 15345 | chmod +x "$ofile" |
| 15346 | |
| 15347 | ;; |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 15348 | |
| 15349 | esac |
| 15350 | done # for ac_tag |
| 15351 | |
| 15352 | |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 15353 | as_fn_exit 0 |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 15354 | _ACEOF |
| 15355 | ac_clean_files=$ac_clean_files_save |
| 15356 | |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 15357 | test $ac_write_fail = 0 || |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 15358 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 15359 | |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 15360 | |
| 15361 | # configure is writing to config.log, and then calls config.status. |
| 15362 | # config.status does its own redirection, appending to config.log. |
| 15363 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 15364 | # by configure, so config.status won't be able to write to it; its |
| 15365 | # output is simply discarded. So we exec the FD to /dev/null, |
| 15366 | # effectively closing config.log, so it can be properly (re)opened and |
| 15367 | # appended to by config.status. When coming back to configure, we |
| 15368 | # need to make the FD available again. |
| 15369 | if test "$no_create" != yes; then |
| 15370 | ac_cs_success=: |
| 15371 | ac_config_status_args= |
| 15372 | test "$silent" = yes && |
| 15373 | ac_config_status_args="$ac_config_status_args --quiet" |
| 15374 | exec 5>/dev/null |
| 15375 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 15376 | exec 5>>config.log |
| 15377 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 15378 | # would make configure fail if this is the last instruction. |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 15379 | $ac_cs_success || as_fn_exit 1 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 15380 | fi |
| 15381 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
Bruce A. Mah | 6edfd8d | 2014-05-02 11:32:12 -0700 | [diff] [blame] | 15382 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
Bruce A. Mah | 60bd98a | 2014-02-14 11:52:16 -0800 | [diff] [blame] | 15383 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
Jon Dugan | 9286415 | 2010-09-20 21:50:12 +0000 | [diff] [blame] | 15384 | fi |
Jon Dugan | e34c20c | 2010-07-08 23:26:52 +0000 | [diff] [blame] | 15385 | |